@tolinax/ayoune-interfaces 2026.32.2 → 2026.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,7 +22,15 @@ export interface IComputingEntityStats {
|
|
|
22
22
|
endianness?: string;
|
|
23
23
|
networkInterfaces?: any;
|
|
24
24
|
}
|
|
25
|
+
export interface IComputingEntityProgramHealthCheck {
|
|
26
|
+
type?: 'pid' | 'http' | 'tcp';
|
|
27
|
+
url?: string;
|
|
28
|
+
port?: number;
|
|
29
|
+
intervalMs?: number;
|
|
30
|
+
timeoutMs?: number;
|
|
31
|
+
}
|
|
25
32
|
export interface IComputingEntityProgram {
|
|
33
|
+
_id?: ObjectId;
|
|
26
34
|
pid?: number;
|
|
27
35
|
executablePath?: string;
|
|
28
36
|
executableName?: string;
|
|
@@ -66,6 +74,19 @@ export interface IComputingEntityProgram {
|
|
|
66
74
|
elapsed?: number;
|
|
67
75
|
timestamp?: number;
|
|
68
76
|
};
|
|
77
|
+
name?: string;
|
|
78
|
+
type?: 'executable' | 'script' | 'service';
|
|
79
|
+
args?: string[];
|
|
80
|
+
workingDir?: string;
|
|
81
|
+
env?: Record<string, string>;
|
|
82
|
+
restartPolicy?: 'always' | 'on-failure' | 'never';
|
|
83
|
+
maxRestarts?: number;
|
|
84
|
+
restartDelayMs?: number;
|
|
85
|
+
restartCount?: number;
|
|
86
|
+
logPaths?: string[];
|
|
87
|
+
healthCheck?: IComputingEntityProgramHealthCheck;
|
|
88
|
+
adapter?: string;
|
|
89
|
+
adapterConfig?: Record<string, any>;
|
|
69
90
|
}
|
|
70
91
|
export interface IComputingEntitySetting {
|
|
71
92
|
mode?: string;
|
|
@@ -73,11 +94,48 @@ export interface IComputingEntitySetting {
|
|
|
73
94
|
initDone?: boolean;
|
|
74
95
|
initLogs?: boolean;
|
|
75
96
|
}
|
|
97
|
+
export interface IComputingEntityConfigFile {
|
|
98
|
+
_file?: ObjectId;
|
|
99
|
+
targetPath?: string;
|
|
100
|
+
encoding?: string;
|
|
101
|
+
name?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface IComputingEntityBinary {
|
|
104
|
+
_file?: ObjectId;
|
|
105
|
+
targetPath?: string;
|
|
106
|
+
checksum?: string;
|
|
107
|
+
name?: string;
|
|
108
|
+
}
|
|
76
109
|
export interface IComputingEntityConfig {
|
|
77
110
|
customConfig?: ObjectId;
|
|
78
111
|
onDemand?: boolean;
|
|
79
112
|
useCase?: string;
|
|
80
113
|
userData?: string;
|
|
114
|
+
adapter?: string;
|
|
115
|
+
binaries?: IComputingEntityBinary[];
|
|
116
|
+
configFiles?: IComputingEntityConfigFile[];
|
|
117
|
+
}
|
|
118
|
+
export type RemoteCommandType = 'start-process' | 'stop-process' | 'restart-process' | 'deploy-config' | 'reboot' | 'restart-agent' | 'run-sequence' | 'remote-input';
|
|
119
|
+
export interface IRemoteCommand {
|
|
120
|
+
_id?: ObjectId;
|
|
121
|
+
type: RemoteCommandType;
|
|
122
|
+
programId?: string;
|
|
123
|
+
payload?: any;
|
|
124
|
+
timestamp?: Date;
|
|
125
|
+
acknowledged?: boolean;
|
|
126
|
+
acknowledgedAt?: Date;
|
|
127
|
+
result?: any;
|
|
128
|
+
}
|
|
129
|
+
export interface IRemoteSequenceStep {
|
|
130
|
+
action: 'keyTap' | 'keyDown' | 'keyUp' | 'type' | 'mouseMove' | 'mouseClick' | 'mouseScroll' | 'wait';
|
|
131
|
+
key?: string;
|
|
132
|
+
modifiers?: string[];
|
|
133
|
+
text?: string;
|
|
134
|
+
x?: number;
|
|
135
|
+
y?: number;
|
|
136
|
+
button?: 'left' | 'right' | 'middle';
|
|
137
|
+
delta?: number;
|
|
138
|
+
delay?: number;
|
|
81
139
|
}
|
|
82
140
|
export interface IComputingEntity extends IDefaultFields {
|
|
83
141
|
shortID?: string;
|
|
@@ -109,4 +167,10 @@ export interface IComputingEntity extends IDefaultFields {
|
|
|
109
167
|
config?: IComputingEntityConfig;
|
|
110
168
|
programs?: IComputingEntityProgram[];
|
|
111
169
|
settings?: IComputingEntitySetting;
|
|
170
|
+
agentType?: 'desktop-client' | 'standalone' | 'legacy';
|
|
171
|
+
capabilities?: string[];
|
|
172
|
+
lastHeartbeat?: Date;
|
|
173
|
+
agentStatus?: 'online' | 'offline' | 'stale' | 'updating';
|
|
174
|
+
tags?: string[];
|
|
175
|
+
pendingCommands?: IRemoteCommand[];
|
|
112
176
|
}
|