Remotely/Shared/Interfaces/IAgentHubClient.cs
2023-08-03 10:45:59 -07:00

93 lines
2.1 KiB
C#

using Remotely.Shared.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Remotely.Shared.Interfaces;
public interface IAgentHubClient
{
Task ChangeWindowsSession(
string viewerConnectionId,
string sessionId,
string accessKey,
string userConnectionId,
string requesterName,
string orgName,
string orgId,
int targetSessionId);
Task SendChatMessage(
string senderName,
string message,
string orgName,
string orgId,
bool disconnected,
string senderConnectionId);
Task InvokeCtrlAltDel();
Task DeleteLogs();
Task ExecuteCommand(
ScriptingShell shell,
string command,
string authToken,
string senderUsername,
string senderConnectionId);
Task ExecuteCommandFromApi(ScriptingShell shell,
string authToken,
string requestID,
string command,
string senderUsername);
Task GetLogs(string senderConnectionId);
Task GetPowerShellCompletions(
string inputText,
int currentIndex,
CompletionIntent intent,
bool? forward,
string senderConnectionId);
Task ReinstallAgent();
Task UninstallAgent();
Task RemoteControl(
Guid sessionId,
string accessKey,
string userConnectionId,
string requesterName,
string orgName,
string orgId);
Task RestartScreenCaster(
string[] viewerIds,
string sessionId,
string accessKey,
string userConnectionId,
string requesterName,
string orgName,
string orgId);
Task RunScript(
Guid savedScriptId,
int scriptRunId,
string initiator,
ScriptInputType scriptInputType,
string authToken);
Task TransferFileFromBrowserToAgent(
string transferId,
string[] fileIds,
string requesterId,
string expiringToken);
Task TriggerHeartbeat();
Task WakeDevice(string macAddress);
}