openclaw-client 1.0.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.
- package/README.md +127 -0
- package/dist/client.d.ts +122 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +294 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/server-client.d.ts +29 -0
- package/dist/server-client.d.ts.map +1 -0
- package/dist/server-client.js +62 -0
- package/dist/types.d.ts +1222 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/package.json +47 -0
- package/src/client.ts +379 -0
- package/src/generate-openclaw-types.ts +70 -0
- package/src/index.ts +3 -0
- package/src/protocol.schema.json +5457 -0
- package/src/server-client.ts +69 -0
- package/src/types.ts +1375 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,1222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handshake, request/response, and event frames for the Gateway WebSocket.
|
|
3
|
+
*/
|
|
4
|
+
export type OpenClawGatewayProtocol = RequestFrame | ResponseFrame | EventFrame;
|
|
5
|
+
export interface RequestFrame {
|
|
6
|
+
type: 'req';
|
|
7
|
+
id: string;
|
|
8
|
+
method: string;
|
|
9
|
+
params?: any;
|
|
10
|
+
}
|
|
11
|
+
export interface ResponseFrame {
|
|
12
|
+
type: 'res';
|
|
13
|
+
id: string;
|
|
14
|
+
ok: boolean;
|
|
15
|
+
payload?: any;
|
|
16
|
+
error?: {
|
|
17
|
+
code: string;
|
|
18
|
+
message: string;
|
|
19
|
+
details?: any;
|
|
20
|
+
retryable?: boolean;
|
|
21
|
+
retryAfterMs?: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface EventFrame {
|
|
25
|
+
type: 'event';
|
|
26
|
+
event: string;
|
|
27
|
+
payload?: any;
|
|
28
|
+
seq?: number;
|
|
29
|
+
stateVersion?: {
|
|
30
|
+
presence: number;
|
|
31
|
+
health: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface ConnectParams {
|
|
35
|
+
minProtocol: number;
|
|
36
|
+
maxProtocol: number;
|
|
37
|
+
client: {
|
|
38
|
+
id: 'webchat-ui' | 'openclaw-control-ui' | 'webchat' | 'cli' | 'gateway-client' | 'openclaw-macos' | 'openclaw-ios' | 'openclaw-android' | 'node-host' | 'test' | 'fingerprint' | 'openclaw-probe';
|
|
39
|
+
displayName?: string;
|
|
40
|
+
version: string;
|
|
41
|
+
platform: string;
|
|
42
|
+
deviceFamily?: string;
|
|
43
|
+
modelIdentifier?: string;
|
|
44
|
+
mode: 'webchat' | 'cli' | 'ui' | 'backend' | 'node' | 'probe' | 'test';
|
|
45
|
+
instanceId?: string;
|
|
46
|
+
};
|
|
47
|
+
caps?: string[];
|
|
48
|
+
commands?: string[];
|
|
49
|
+
permissions?: {
|
|
50
|
+
/**
|
|
51
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
52
|
+
* via the `patternProperty` "^(.*)$".
|
|
53
|
+
*/
|
|
54
|
+
[k: string]: boolean;
|
|
55
|
+
};
|
|
56
|
+
pathEnv?: string;
|
|
57
|
+
role?: string;
|
|
58
|
+
scopes?: string[];
|
|
59
|
+
device?: {
|
|
60
|
+
id: string;
|
|
61
|
+
publicKey: string;
|
|
62
|
+
signature: string;
|
|
63
|
+
signedAt: number;
|
|
64
|
+
nonce?: string;
|
|
65
|
+
};
|
|
66
|
+
auth?: {
|
|
67
|
+
token?: string;
|
|
68
|
+
password?: string;
|
|
69
|
+
};
|
|
70
|
+
locale?: string;
|
|
71
|
+
userAgent?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface HelloOk {
|
|
74
|
+
type: 'hello-ok';
|
|
75
|
+
protocol: number;
|
|
76
|
+
server: {
|
|
77
|
+
version: string;
|
|
78
|
+
commit?: string;
|
|
79
|
+
host?: string;
|
|
80
|
+
connId: string;
|
|
81
|
+
};
|
|
82
|
+
features: {
|
|
83
|
+
methods: string[];
|
|
84
|
+
events: string[];
|
|
85
|
+
};
|
|
86
|
+
snapshot: {
|
|
87
|
+
presence: {
|
|
88
|
+
host?: string;
|
|
89
|
+
ip?: string;
|
|
90
|
+
version?: string;
|
|
91
|
+
platform?: string;
|
|
92
|
+
deviceFamily?: string;
|
|
93
|
+
modelIdentifier?: string;
|
|
94
|
+
mode?: string;
|
|
95
|
+
lastInputSeconds?: number;
|
|
96
|
+
reason?: string;
|
|
97
|
+
tags?: string[];
|
|
98
|
+
text?: string;
|
|
99
|
+
ts: number;
|
|
100
|
+
deviceId?: string;
|
|
101
|
+
roles?: string[];
|
|
102
|
+
scopes?: string[];
|
|
103
|
+
instanceId?: string;
|
|
104
|
+
}[];
|
|
105
|
+
health: any;
|
|
106
|
+
stateVersion: {
|
|
107
|
+
presence: number;
|
|
108
|
+
health: number;
|
|
109
|
+
};
|
|
110
|
+
uptimeMs: number;
|
|
111
|
+
configPath?: string;
|
|
112
|
+
stateDir?: string;
|
|
113
|
+
sessionDefaults?: {
|
|
114
|
+
defaultAgentId: string;
|
|
115
|
+
mainKey: string;
|
|
116
|
+
mainSessionKey: string;
|
|
117
|
+
scope?: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
canvasHostUrl?: string;
|
|
121
|
+
auth?: {
|
|
122
|
+
deviceToken: string;
|
|
123
|
+
role: string;
|
|
124
|
+
scopes: string[];
|
|
125
|
+
issuedAtMs?: number;
|
|
126
|
+
};
|
|
127
|
+
policy: {
|
|
128
|
+
maxPayload: number;
|
|
129
|
+
maxBufferedBytes: number;
|
|
130
|
+
tickIntervalMs: number;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export type GatewayFrame = {
|
|
134
|
+
type: 'req';
|
|
135
|
+
id: string;
|
|
136
|
+
method: string;
|
|
137
|
+
params?: any;
|
|
138
|
+
} | {
|
|
139
|
+
type: 'res';
|
|
140
|
+
id: string;
|
|
141
|
+
ok: boolean;
|
|
142
|
+
payload?: any;
|
|
143
|
+
error?: {
|
|
144
|
+
code: string;
|
|
145
|
+
message: string;
|
|
146
|
+
details?: any;
|
|
147
|
+
retryable?: boolean;
|
|
148
|
+
retryAfterMs?: number;
|
|
149
|
+
};
|
|
150
|
+
} | {
|
|
151
|
+
type: 'event';
|
|
152
|
+
event: string;
|
|
153
|
+
payload?: any;
|
|
154
|
+
seq?: number;
|
|
155
|
+
stateVersion?: {
|
|
156
|
+
presence: number;
|
|
157
|
+
health: number;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
export interface PresenceEntry {
|
|
161
|
+
host?: string;
|
|
162
|
+
ip?: string;
|
|
163
|
+
version?: string;
|
|
164
|
+
platform?: string;
|
|
165
|
+
deviceFamily?: string;
|
|
166
|
+
modelIdentifier?: string;
|
|
167
|
+
mode?: string;
|
|
168
|
+
lastInputSeconds?: number;
|
|
169
|
+
reason?: string;
|
|
170
|
+
tags?: string[];
|
|
171
|
+
text?: string;
|
|
172
|
+
ts: number;
|
|
173
|
+
deviceId?: string;
|
|
174
|
+
roles?: string[];
|
|
175
|
+
scopes?: string[];
|
|
176
|
+
instanceId?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface StateVersion {
|
|
179
|
+
presence: number;
|
|
180
|
+
health: number;
|
|
181
|
+
}
|
|
182
|
+
export interface Snapshot {
|
|
183
|
+
presence: {
|
|
184
|
+
host?: string;
|
|
185
|
+
ip?: string;
|
|
186
|
+
version?: string;
|
|
187
|
+
platform?: string;
|
|
188
|
+
deviceFamily?: string;
|
|
189
|
+
modelIdentifier?: string;
|
|
190
|
+
mode?: string;
|
|
191
|
+
lastInputSeconds?: number;
|
|
192
|
+
reason?: string;
|
|
193
|
+
tags?: string[];
|
|
194
|
+
text?: string;
|
|
195
|
+
ts: number;
|
|
196
|
+
deviceId?: string;
|
|
197
|
+
roles?: string[];
|
|
198
|
+
scopes?: string[];
|
|
199
|
+
instanceId?: string;
|
|
200
|
+
}[];
|
|
201
|
+
health: any;
|
|
202
|
+
stateVersion: {
|
|
203
|
+
presence: number;
|
|
204
|
+
health: number;
|
|
205
|
+
};
|
|
206
|
+
uptimeMs: number;
|
|
207
|
+
configPath?: string;
|
|
208
|
+
stateDir?: string;
|
|
209
|
+
sessionDefaults?: {
|
|
210
|
+
defaultAgentId: string;
|
|
211
|
+
mainKey: string;
|
|
212
|
+
mainSessionKey: string;
|
|
213
|
+
scope?: string;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export interface ErrorShape {
|
|
217
|
+
code: string;
|
|
218
|
+
message: string;
|
|
219
|
+
details?: any;
|
|
220
|
+
retryable?: boolean;
|
|
221
|
+
retryAfterMs?: number;
|
|
222
|
+
}
|
|
223
|
+
export interface AgentEvent {
|
|
224
|
+
runId: string;
|
|
225
|
+
seq: number;
|
|
226
|
+
stream: string;
|
|
227
|
+
ts: number;
|
|
228
|
+
data: {
|
|
229
|
+
/**
|
|
230
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
231
|
+
* via the `patternProperty` "^(.*)$".
|
|
232
|
+
*/
|
|
233
|
+
[k: string]: any;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export interface SendParams {
|
|
237
|
+
to: string;
|
|
238
|
+
message: string;
|
|
239
|
+
mediaUrl?: string;
|
|
240
|
+
mediaUrls?: string[];
|
|
241
|
+
gifPlayback?: boolean;
|
|
242
|
+
channel?: string;
|
|
243
|
+
accountId?: string;
|
|
244
|
+
sessionKey?: string;
|
|
245
|
+
idempotencyKey: string;
|
|
246
|
+
}
|
|
247
|
+
export interface PollParams {
|
|
248
|
+
to: string;
|
|
249
|
+
question: string;
|
|
250
|
+
/**
|
|
251
|
+
* @minItems 2
|
|
252
|
+
* @maxItems 12
|
|
253
|
+
*/
|
|
254
|
+
options: [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
255
|
+
maxSelections?: number;
|
|
256
|
+
durationHours?: number;
|
|
257
|
+
channel?: string;
|
|
258
|
+
accountId?: string;
|
|
259
|
+
idempotencyKey: string;
|
|
260
|
+
}
|
|
261
|
+
export interface AgentParams {
|
|
262
|
+
message: string;
|
|
263
|
+
agentId?: string;
|
|
264
|
+
to?: string;
|
|
265
|
+
replyTo?: string;
|
|
266
|
+
sessionId?: string;
|
|
267
|
+
sessionKey?: string;
|
|
268
|
+
thinking?: string;
|
|
269
|
+
deliver?: boolean;
|
|
270
|
+
attachments?: any[];
|
|
271
|
+
channel?: string;
|
|
272
|
+
replyChannel?: string;
|
|
273
|
+
accountId?: string;
|
|
274
|
+
replyAccountId?: string;
|
|
275
|
+
threadId?: string;
|
|
276
|
+
groupId?: string;
|
|
277
|
+
groupChannel?: string;
|
|
278
|
+
groupSpace?: string;
|
|
279
|
+
timeout?: number;
|
|
280
|
+
lane?: string;
|
|
281
|
+
extraSystemPrompt?: string;
|
|
282
|
+
idempotencyKey: string;
|
|
283
|
+
label?: string;
|
|
284
|
+
spawnedBy?: string;
|
|
285
|
+
}
|
|
286
|
+
export interface AgentIdentityParams {
|
|
287
|
+
agentId?: string;
|
|
288
|
+
sessionKey?: string;
|
|
289
|
+
}
|
|
290
|
+
export interface AgentIdentityResult {
|
|
291
|
+
agentId: string;
|
|
292
|
+
name?: string;
|
|
293
|
+
avatar?: string;
|
|
294
|
+
emoji?: string;
|
|
295
|
+
}
|
|
296
|
+
export interface AgentWaitParams {
|
|
297
|
+
runId: string;
|
|
298
|
+
timeoutMs?: number;
|
|
299
|
+
}
|
|
300
|
+
export interface WakeParams {
|
|
301
|
+
mode: 'now' | 'next-heartbeat';
|
|
302
|
+
text: string;
|
|
303
|
+
}
|
|
304
|
+
export interface NodePairRequestParams {
|
|
305
|
+
nodeId: string;
|
|
306
|
+
displayName?: string;
|
|
307
|
+
platform?: string;
|
|
308
|
+
version?: string;
|
|
309
|
+
coreVersion?: string;
|
|
310
|
+
uiVersion?: string;
|
|
311
|
+
deviceFamily?: string;
|
|
312
|
+
modelIdentifier?: string;
|
|
313
|
+
caps?: string[];
|
|
314
|
+
commands?: string[];
|
|
315
|
+
remoteIp?: string;
|
|
316
|
+
silent?: boolean;
|
|
317
|
+
}
|
|
318
|
+
export interface NodePairListParams {
|
|
319
|
+
}
|
|
320
|
+
export interface NodePairApproveParams {
|
|
321
|
+
requestId: string;
|
|
322
|
+
}
|
|
323
|
+
export interface NodePairRejectParams {
|
|
324
|
+
requestId: string;
|
|
325
|
+
}
|
|
326
|
+
export interface NodePairVerifyParams {
|
|
327
|
+
nodeId: string;
|
|
328
|
+
token: string;
|
|
329
|
+
}
|
|
330
|
+
export interface NodeRenameParams {
|
|
331
|
+
nodeId: string;
|
|
332
|
+
displayName: string;
|
|
333
|
+
}
|
|
334
|
+
export interface NodeListParams {
|
|
335
|
+
}
|
|
336
|
+
export interface NodeDescribeParams {
|
|
337
|
+
nodeId: string;
|
|
338
|
+
}
|
|
339
|
+
export interface NodeInvokeParams {
|
|
340
|
+
nodeId: string;
|
|
341
|
+
command: string;
|
|
342
|
+
params?: any;
|
|
343
|
+
timeoutMs?: number;
|
|
344
|
+
idempotencyKey: string;
|
|
345
|
+
}
|
|
346
|
+
export interface NodeInvokeResultParams {
|
|
347
|
+
id: string;
|
|
348
|
+
nodeId: string;
|
|
349
|
+
ok: boolean;
|
|
350
|
+
payload?: any;
|
|
351
|
+
payloadJSON?: string;
|
|
352
|
+
error?: {
|
|
353
|
+
code?: string;
|
|
354
|
+
message?: string;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
export interface NodeEventParams {
|
|
358
|
+
event: string;
|
|
359
|
+
payload?: any;
|
|
360
|
+
payloadJSON?: string;
|
|
361
|
+
}
|
|
362
|
+
export interface NodeInvokeRequestEvent {
|
|
363
|
+
id: string;
|
|
364
|
+
nodeId: string;
|
|
365
|
+
command: string;
|
|
366
|
+
paramsJSON?: string;
|
|
367
|
+
timeoutMs?: number;
|
|
368
|
+
idempotencyKey?: string;
|
|
369
|
+
}
|
|
370
|
+
export interface SessionsListParams {
|
|
371
|
+
limit?: number;
|
|
372
|
+
activeMinutes?: number;
|
|
373
|
+
includeGlobal?: boolean;
|
|
374
|
+
includeUnknown?: boolean;
|
|
375
|
+
includeDerivedTitles?: boolean;
|
|
376
|
+
includeLastMessage?: boolean;
|
|
377
|
+
label?: string;
|
|
378
|
+
spawnedBy?: string;
|
|
379
|
+
agentId?: string;
|
|
380
|
+
search?: string;
|
|
381
|
+
}
|
|
382
|
+
export interface SessionsPreviewParams {
|
|
383
|
+
/**
|
|
384
|
+
* @minItems 1
|
|
385
|
+
*/
|
|
386
|
+
keys: [string, ...string[]];
|
|
387
|
+
limit?: number;
|
|
388
|
+
maxChars?: number;
|
|
389
|
+
}
|
|
390
|
+
export interface SessionsResolveParams {
|
|
391
|
+
key?: string;
|
|
392
|
+
sessionId?: string;
|
|
393
|
+
label?: string;
|
|
394
|
+
agentId?: string;
|
|
395
|
+
spawnedBy?: string;
|
|
396
|
+
includeGlobal?: boolean;
|
|
397
|
+
includeUnknown?: boolean;
|
|
398
|
+
}
|
|
399
|
+
export interface SessionsPatchParams {
|
|
400
|
+
key: string;
|
|
401
|
+
label?: string | null;
|
|
402
|
+
thinkingLevel?: string | null;
|
|
403
|
+
verboseLevel?: string | null;
|
|
404
|
+
reasoningLevel?: string | null;
|
|
405
|
+
responseUsage?: 'off' | 'tokens' | 'full' | 'on' | null;
|
|
406
|
+
elevatedLevel?: string | null;
|
|
407
|
+
execHost?: string | null;
|
|
408
|
+
execSecurity?: string | null;
|
|
409
|
+
execAsk?: string | null;
|
|
410
|
+
execNode?: string | null;
|
|
411
|
+
model?: string | null;
|
|
412
|
+
spawnedBy?: string | null;
|
|
413
|
+
sendPolicy?: 'allow' | 'deny' | null;
|
|
414
|
+
groupActivation?: 'mention' | 'always' | null;
|
|
415
|
+
}
|
|
416
|
+
export interface SessionsResetParams {
|
|
417
|
+
key: string;
|
|
418
|
+
}
|
|
419
|
+
export interface SessionsDeleteParams {
|
|
420
|
+
key: string;
|
|
421
|
+
deleteTranscript?: boolean;
|
|
422
|
+
}
|
|
423
|
+
export interface SessionsCompactParams {
|
|
424
|
+
key: string;
|
|
425
|
+
maxLines?: number;
|
|
426
|
+
}
|
|
427
|
+
export interface ConfigGetParams {
|
|
428
|
+
}
|
|
429
|
+
export interface ConfigSetParams {
|
|
430
|
+
raw: string;
|
|
431
|
+
baseHash?: string;
|
|
432
|
+
}
|
|
433
|
+
export interface ConfigApplyParams {
|
|
434
|
+
raw: string;
|
|
435
|
+
baseHash?: string;
|
|
436
|
+
sessionKey?: string;
|
|
437
|
+
note?: string;
|
|
438
|
+
restartDelayMs?: number;
|
|
439
|
+
}
|
|
440
|
+
export interface ConfigPatchParams {
|
|
441
|
+
raw: string;
|
|
442
|
+
baseHash?: string;
|
|
443
|
+
sessionKey?: string;
|
|
444
|
+
note?: string;
|
|
445
|
+
restartDelayMs?: number;
|
|
446
|
+
}
|
|
447
|
+
export interface ConfigSchemaParams {
|
|
448
|
+
}
|
|
449
|
+
export interface ConfigSchemaResponse {
|
|
450
|
+
schema: any;
|
|
451
|
+
uiHints: {
|
|
452
|
+
/**
|
|
453
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
454
|
+
* via the `patternProperty` "^(.*)$".
|
|
455
|
+
*/
|
|
456
|
+
[k: string]: {
|
|
457
|
+
label?: string;
|
|
458
|
+
help?: string;
|
|
459
|
+
group?: string;
|
|
460
|
+
order?: number;
|
|
461
|
+
advanced?: boolean;
|
|
462
|
+
sensitive?: boolean;
|
|
463
|
+
placeholder?: string;
|
|
464
|
+
itemTemplate?: any;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
version: string;
|
|
468
|
+
generatedAt: string;
|
|
469
|
+
}
|
|
470
|
+
export interface WizardStartParams {
|
|
471
|
+
mode?: 'local' | 'remote';
|
|
472
|
+
workspace?: string;
|
|
473
|
+
}
|
|
474
|
+
export interface WizardNextParams {
|
|
475
|
+
sessionId: string;
|
|
476
|
+
answer?: {
|
|
477
|
+
stepId: string;
|
|
478
|
+
value?: any;
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
export interface WizardCancelParams {
|
|
482
|
+
sessionId: string;
|
|
483
|
+
}
|
|
484
|
+
export interface WizardStatusParams {
|
|
485
|
+
sessionId: string;
|
|
486
|
+
}
|
|
487
|
+
export interface WizardStep {
|
|
488
|
+
id: string;
|
|
489
|
+
type: 'note' | 'select' | 'text' | 'confirm' | 'multiselect' | 'progress' | 'action';
|
|
490
|
+
title?: string;
|
|
491
|
+
message?: string;
|
|
492
|
+
options?: {
|
|
493
|
+
value: any;
|
|
494
|
+
label: string;
|
|
495
|
+
hint?: string;
|
|
496
|
+
}[];
|
|
497
|
+
initialValue?: any;
|
|
498
|
+
placeholder?: string;
|
|
499
|
+
sensitive?: boolean;
|
|
500
|
+
executor?: 'gateway' | 'client';
|
|
501
|
+
}
|
|
502
|
+
export interface WizardNextResult {
|
|
503
|
+
done: boolean;
|
|
504
|
+
step?: {
|
|
505
|
+
id: string;
|
|
506
|
+
type: 'note' | 'select' | 'text' | 'confirm' | 'multiselect' | 'progress' | 'action';
|
|
507
|
+
title?: string;
|
|
508
|
+
message?: string;
|
|
509
|
+
options?: {
|
|
510
|
+
value: any;
|
|
511
|
+
label: string;
|
|
512
|
+
hint?: string;
|
|
513
|
+
}[];
|
|
514
|
+
initialValue?: any;
|
|
515
|
+
placeholder?: string;
|
|
516
|
+
sensitive?: boolean;
|
|
517
|
+
executor?: 'gateway' | 'client';
|
|
518
|
+
};
|
|
519
|
+
status?: 'running' | 'done' | 'cancelled' | 'error';
|
|
520
|
+
error?: string;
|
|
521
|
+
}
|
|
522
|
+
export interface WizardStartResult {
|
|
523
|
+
sessionId: string;
|
|
524
|
+
done: boolean;
|
|
525
|
+
step?: {
|
|
526
|
+
id: string;
|
|
527
|
+
type: 'note' | 'select' | 'text' | 'confirm' | 'multiselect' | 'progress' | 'action';
|
|
528
|
+
title?: string;
|
|
529
|
+
message?: string;
|
|
530
|
+
options?: {
|
|
531
|
+
value: any;
|
|
532
|
+
label: string;
|
|
533
|
+
hint?: string;
|
|
534
|
+
}[];
|
|
535
|
+
initialValue?: any;
|
|
536
|
+
placeholder?: string;
|
|
537
|
+
sensitive?: boolean;
|
|
538
|
+
executor?: 'gateway' | 'client';
|
|
539
|
+
};
|
|
540
|
+
status?: 'running' | 'done' | 'cancelled' | 'error';
|
|
541
|
+
error?: string;
|
|
542
|
+
}
|
|
543
|
+
export interface WizardStatusResult {
|
|
544
|
+
status: 'running' | 'done' | 'cancelled' | 'error';
|
|
545
|
+
error?: string;
|
|
546
|
+
}
|
|
547
|
+
export interface TalkModeParams {
|
|
548
|
+
enabled: boolean;
|
|
549
|
+
phase?: string;
|
|
550
|
+
}
|
|
551
|
+
export interface ChannelsStatusParams {
|
|
552
|
+
probe?: boolean;
|
|
553
|
+
timeoutMs?: number;
|
|
554
|
+
}
|
|
555
|
+
export interface ChannelsStatusResult {
|
|
556
|
+
ts: number;
|
|
557
|
+
channelOrder: string[];
|
|
558
|
+
channelLabels: {
|
|
559
|
+
/**
|
|
560
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
561
|
+
* via the `patternProperty` "^(.*)$".
|
|
562
|
+
*/
|
|
563
|
+
[k: string]: string;
|
|
564
|
+
};
|
|
565
|
+
channelDetailLabels?: {
|
|
566
|
+
/**
|
|
567
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
568
|
+
* via the `patternProperty` "^(.*)$".
|
|
569
|
+
*/
|
|
570
|
+
[k: string]: string;
|
|
571
|
+
};
|
|
572
|
+
channelSystemImages?: {
|
|
573
|
+
/**
|
|
574
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
575
|
+
* via the `patternProperty` "^(.*)$".
|
|
576
|
+
*/
|
|
577
|
+
[k: string]: string;
|
|
578
|
+
};
|
|
579
|
+
channelMeta?: {
|
|
580
|
+
id: string;
|
|
581
|
+
label: string;
|
|
582
|
+
detailLabel: string;
|
|
583
|
+
systemImage?: string;
|
|
584
|
+
}[];
|
|
585
|
+
channels: {
|
|
586
|
+
/**
|
|
587
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
588
|
+
* via the `patternProperty` "^(.*)$".
|
|
589
|
+
*/
|
|
590
|
+
[k: string]: any;
|
|
591
|
+
};
|
|
592
|
+
channelAccounts: {
|
|
593
|
+
/**
|
|
594
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
595
|
+
* via the `patternProperty` "^(.*)$".
|
|
596
|
+
*/
|
|
597
|
+
[k: string]: {
|
|
598
|
+
accountId: string;
|
|
599
|
+
name?: string;
|
|
600
|
+
enabled?: boolean;
|
|
601
|
+
configured?: boolean;
|
|
602
|
+
linked?: boolean;
|
|
603
|
+
running?: boolean;
|
|
604
|
+
connected?: boolean;
|
|
605
|
+
reconnectAttempts?: number;
|
|
606
|
+
lastConnectedAt?: number;
|
|
607
|
+
lastError?: string;
|
|
608
|
+
lastStartAt?: number;
|
|
609
|
+
lastStopAt?: number;
|
|
610
|
+
lastInboundAt?: number;
|
|
611
|
+
lastOutboundAt?: number;
|
|
612
|
+
lastProbeAt?: number;
|
|
613
|
+
mode?: string;
|
|
614
|
+
dmPolicy?: string;
|
|
615
|
+
allowFrom?: string[];
|
|
616
|
+
tokenSource?: string;
|
|
617
|
+
botTokenSource?: string;
|
|
618
|
+
appTokenSource?: string;
|
|
619
|
+
baseUrl?: string;
|
|
620
|
+
allowUnmentionedGroups?: boolean;
|
|
621
|
+
cliPath?: string | null;
|
|
622
|
+
dbPath?: string | null;
|
|
623
|
+
port?: number | null;
|
|
624
|
+
probe?: any;
|
|
625
|
+
audit?: any;
|
|
626
|
+
application?: any;
|
|
627
|
+
[k: string]: any;
|
|
628
|
+
}[];
|
|
629
|
+
};
|
|
630
|
+
channelDefaultAccountId: {
|
|
631
|
+
/**
|
|
632
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
633
|
+
* via the `patternProperty` "^(.*)$".
|
|
634
|
+
*/
|
|
635
|
+
[k: string]: string;
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
export interface ChannelsLogoutParams {
|
|
639
|
+
channel: string;
|
|
640
|
+
accountId?: string;
|
|
641
|
+
}
|
|
642
|
+
export interface WebLoginStartParams {
|
|
643
|
+
force?: boolean;
|
|
644
|
+
timeoutMs?: number;
|
|
645
|
+
verbose?: boolean;
|
|
646
|
+
accountId?: string;
|
|
647
|
+
}
|
|
648
|
+
export interface WebLoginWaitParams {
|
|
649
|
+
timeoutMs?: number;
|
|
650
|
+
accountId?: string;
|
|
651
|
+
}
|
|
652
|
+
export interface AgentSummary {
|
|
653
|
+
id: string;
|
|
654
|
+
name?: string;
|
|
655
|
+
identity?: {
|
|
656
|
+
name?: string;
|
|
657
|
+
theme?: string;
|
|
658
|
+
emoji?: string;
|
|
659
|
+
avatar?: string;
|
|
660
|
+
avatarUrl?: string;
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
export interface AgentsFileEntry {
|
|
664
|
+
name: string;
|
|
665
|
+
path: string;
|
|
666
|
+
missing: boolean;
|
|
667
|
+
size?: number;
|
|
668
|
+
updatedAtMs?: number;
|
|
669
|
+
content?: string;
|
|
670
|
+
}
|
|
671
|
+
export interface AgentsFilesListParams {
|
|
672
|
+
agentId: string;
|
|
673
|
+
}
|
|
674
|
+
export interface AgentsFilesListResult {
|
|
675
|
+
agentId: string;
|
|
676
|
+
workspace: string;
|
|
677
|
+
files: {
|
|
678
|
+
name: string;
|
|
679
|
+
path: string;
|
|
680
|
+
missing: boolean;
|
|
681
|
+
size?: number;
|
|
682
|
+
updatedAtMs?: number;
|
|
683
|
+
content?: string;
|
|
684
|
+
}[];
|
|
685
|
+
}
|
|
686
|
+
export interface AgentsFilesGetParams {
|
|
687
|
+
agentId: string;
|
|
688
|
+
name: string;
|
|
689
|
+
}
|
|
690
|
+
export interface AgentsFilesGetResult {
|
|
691
|
+
agentId: string;
|
|
692
|
+
workspace: string;
|
|
693
|
+
file: {
|
|
694
|
+
name: string;
|
|
695
|
+
path: string;
|
|
696
|
+
missing: boolean;
|
|
697
|
+
size?: number;
|
|
698
|
+
updatedAtMs?: number;
|
|
699
|
+
content?: string;
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
export interface AgentsFilesSetParams {
|
|
703
|
+
agentId: string;
|
|
704
|
+
name: string;
|
|
705
|
+
content: string;
|
|
706
|
+
}
|
|
707
|
+
export interface AgentsFilesSetResult {
|
|
708
|
+
ok: true;
|
|
709
|
+
agentId: string;
|
|
710
|
+
workspace: string;
|
|
711
|
+
file: {
|
|
712
|
+
name: string;
|
|
713
|
+
path: string;
|
|
714
|
+
missing: boolean;
|
|
715
|
+
size?: number;
|
|
716
|
+
updatedAtMs?: number;
|
|
717
|
+
content?: string;
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
export interface AgentsListParams {
|
|
721
|
+
}
|
|
722
|
+
export interface AgentsListResult {
|
|
723
|
+
defaultId: string;
|
|
724
|
+
mainKey: string;
|
|
725
|
+
scope: 'per-sender' | 'global';
|
|
726
|
+
agents: {
|
|
727
|
+
id: string;
|
|
728
|
+
name?: string;
|
|
729
|
+
identity?: {
|
|
730
|
+
name?: string;
|
|
731
|
+
theme?: string;
|
|
732
|
+
emoji?: string;
|
|
733
|
+
avatar?: string;
|
|
734
|
+
avatarUrl?: string;
|
|
735
|
+
};
|
|
736
|
+
}[];
|
|
737
|
+
}
|
|
738
|
+
export interface ModelChoice {
|
|
739
|
+
id: string;
|
|
740
|
+
name: string;
|
|
741
|
+
provider: string;
|
|
742
|
+
contextWindow?: number;
|
|
743
|
+
reasoning?: boolean;
|
|
744
|
+
}
|
|
745
|
+
export interface ModelsListParams {
|
|
746
|
+
}
|
|
747
|
+
export interface ModelsListResult {
|
|
748
|
+
models: {
|
|
749
|
+
id: string;
|
|
750
|
+
name: string;
|
|
751
|
+
provider: string;
|
|
752
|
+
contextWindow?: number;
|
|
753
|
+
reasoning?: boolean;
|
|
754
|
+
}[];
|
|
755
|
+
}
|
|
756
|
+
export interface SkillsStatusParams {
|
|
757
|
+
agentId?: string;
|
|
758
|
+
}
|
|
759
|
+
export interface SkillsBinsParams {
|
|
760
|
+
}
|
|
761
|
+
export interface SkillsBinsResult {
|
|
762
|
+
bins: string[];
|
|
763
|
+
}
|
|
764
|
+
export interface SkillsInstallParams {
|
|
765
|
+
name: string;
|
|
766
|
+
installId: string;
|
|
767
|
+
timeoutMs?: number;
|
|
768
|
+
}
|
|
769
|
+
export interface SkillsUpdateParams {
|
|
770
|
+
skillKey: string;
|
|
771
|
+
enabled?: boolean;
|
|
772
|
+
apiKey?: string;
|
|
773
|
+
env?: {
|
|
774
|
+
/**
|
|
775
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
776
|
+
* via the `patternProperty` "^(.*)$".
|
|
777
|
+
*/
|
|
778
|
+
[k: string]: string;
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
export interface CronJob {
|
|
782
|
+
id: string;
|
|
783
|
+
agentId?: string;
|
|
784
|
+
name: string;
|
|
785
|
+
description?: string;
|
|
786
|
+
enabled: boolean;
|
|
787
|
+
deleteAfterRun?: boolean;
|
|
788
|
+
createdAtMs: number;
|
|
789
|
+
updatedAtMs: number;
|
|
790
|
+
schedule: {
|
|
791
|
+
kind: 'at';
|
|
792
|
+
at: string;
|
|
793
|
+
} | {
|
|
794
|
+
kind: 'every';
|
|
795
|
+
everyMs: number;
|
|
796
|
+
anchorMs?: number;
|
|
797
|
+
} | {
|
|
798
|
+
kind: 'cron';
|
|
799
|
+
expr: string;
|
|
800
|
+
tz?: string;
|
|
801
|
+
};
|
|
802
|
+
sessionTarget: 'main' | 'isolated';
|
|
803
|
+
wakeMode: 'next-heartbeat' | 'now';
|
|
804
|
+
payload: {
|
|
805
|
+
kind: 'systemEvent';
|
|
806
|
+
text: string;
|
|
807
|
+
} | {
|
|
808
|
+
kind: 'agentTurn';
|
|
809
|
+
message: string;
|
|
810
|
+
model?: string;
|
|
811
|
+
thinking?: string;
|
|
812
|
+
timeoutSeconds?: number;
|
|
813
|
+
};
|
|
814
|
+
delivery?: {
|
|
815
|
+
mode: 'none' | 'announce';
|
|
816
|
+
channel?: 'last' | string;
|
|
817
|
+
to?: string;
|
|
818
|
+
bestEffort?: boolean;
|
|
819
|
+
};
|
|
820
|
+
state: {
|
|
821
|
+
nextRunAtMs?: number;
|
|
822
|
+
runningAtMs?: number;
|
|
823
|
+
lastRunAtMs?: number;
|
|
824
|
+
lastStatus?: 'ok' | 'error' | 'skipped';
|
|
825
|
+
lastError?: string;
|
|
826
|
+
lastDurationMs?: number;
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
export interface CronListParams {
|
|
830
|
+
includeDisabled?: boolean;
|
|
831
|
+
}
|
|
832
|
+
export interface CronStatusParams {
|
|
833
|
+
}
|
|
834
|
+
export interface CronAddParams {
|
|
835
|
+
name: string;
|
|
836
|
+
agentId?: string | null;
|
|
837
|
+
description?: string;
|
|
838
|
+
enabled?: boolean;
|
|
839
|
+
deleteAfterRun?: boolean;
|
|
840
|
+
schedule: {
|
|
841
|
+
kind: 'at';
|
|
842
|
+
at: string;
|
|
843
|
+
} | {
|
|
844
|
+
kind: 'every';
|
|
845
|
+
everyMs: number;
|
|
846
|
+
anchorMs?: number;
|
|
847
|
+
} | {
|
|
848
|
+
kind: 'cron';
|
|
849
|
+
expr: string;
|
|
850
|
+
tz?: string;
|
|
851
|
+
};
|
|
852
|
+
sessionTarget: 'main' | 'isolated';
|
|
853
|
+
wakeMode: 'next-heartbeat' | 'now';
|
|
854
|
+
payload: {
|
|
855
|
+
kind: 'systemEvent';
|
|
856
|
+
text: string;
|
|
857
|
+
} | {
|
|
858
|
+
kind: 'agentTurn';
|
|
859
|
+
message: string;
|
|
860
|
+
model?: string;
|
|
861
|
+
thinking?: string;
|
|
862
|
+
timeoutSeconds?: number;
|
|
863
|
+
};
|
|
864
|
+
delivery?: {
|
|
865
|
+
mode: 'none' | 'announce';
|
|
866
|
+
channel?: 'last' | string;
|
|
867
|
+
to?: string;
|
|
868
|
+
bestEffort?: boolean;
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
export type CronUpdateParams = {
|
|
872
|
+
id: string;
|
|
873
|
+
patch: {
|
|
874
|
+
name?: string;
|
|
875
|
+
agentId?: string | null;
|
|
876
|
+
description?: string;
|
|
877
|
+
enabled?: boolean;
|
|
878
|
+
deleteAfterRun?: boolean;
|
|
879
|
+
schedule?: {
|
|
880
|
+
kind: 'at';
|
|
881
|
+
at: string;
|
|
882
|
+
} | {
|
|
883
|
+
kind: 'every';
|
|
884
|
+
everyMs: number;
|
|
885
|
+
anchorMs?: number;
|
|
886
|
+
} | {
|
|
887
|
+
kind: 'cron';
|
|
888
|
+
expr: string;
|
|
889
|
+
tz?: string;
|
|
890
|
+
};
|
|
891
|
+
sessionTarget?: 'main' | 'isolated';
|
|
892
|
+
wakeMode?: 'next-heartbeat' | 'now';
|
|
893
|
+
payload?: {
|
|
894
|
+
kind: 'systemEvent';
|
|
895
|
+
text?: string;
|
|
896
|
+
} | {
|
|
897
|
+
kind: 'agentTurn';
|
|
898
|
+
message?: string;
|
|
899
|
+
model?: string;
|
|
900
|
+
thinking?: string;
|
|
901
|
+
timeoutSeconds?: number;
|
|
902
|
+
};
|
|
903
|
+
delivery?: {
|
|
904
|
+
mode?: 'none' | 'announce';
|
|
905
|
+
channel?: 'last' | string;
|
|
906
|
+
to?: string;
|
|
907
|
+
bestEffort?: boolean;
|
|
908
|
+
};
|
|
909
|
+
state?: {
|
|
910
|
+
nextRunAtMs?: number;
|
|
911
|
+
runningAtMs?: number;
|
|
912
|
+
lastRunAtMs?: number;
|
|
913
|
+
lastStatus?: 'ok' | 'error' | 'skipped';
|
|
914
|
+
lastError?: string;
|
|
915
|
+
lastDurationMs?: number;
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
} | {
|
|
919
|
+
jobId: string;
|
|
920
|
+
patch: {
|
|
921
|
+
name?: string;
|
|
922
|
+
agentId?: string | null;
|
|
923
|
+
description?: string;
|
|
924
|
+
enabled?: boolean;
|
|
925
|
+
deleteAfterRun?: boolean;
|
|
926
|
+
schedule?: {
|
|
927
|
+
kind: 'at';
|
|
928
|
+
at: string;
|
|
929
|
+
} | {
|
|
930
|
+
kind: 'every';
|
|
931
|
+
everyMs: number;
|
|
932
|
+
anchorMs?: number;
|
|
933
|
+
} | {
|
|
934
|
+
kind: 'cron';
|
|
935
|
+
expr: string;
|
|
936
|
+
tz?: string;
|
|
937
|
+
};
|
|
938
|
+
sessionTarget?: 'main' | 'isolated';
|
|
939
|
+
wakeMode?: 'next-heartbeat' | 'now';
|
|
940
|
+
payload?: {
|
|
941
|
+
kind: 'systemEvent';
|
|
942
|
+
text?: string;
|
|
943
|
+
} | {
|
|
944
|
+
kind: 'agentTurn';
|
|
945
|
+
message?: string;
|
|
946
|
+
model?: string;
|
|
947
|
+
thinking?: string;
|
|
948
|
+
timeoutSeconds?: number;
|
|
949
|
+
};
|
|
950
|
+
delivery?: {
|
|
951
|
+
mode?: 'none' | 'announce';
|
|
952
|
+
channel?: 'last' | string;
|
|
953
|
+
to?: string;
|
|
954
|
+
bestEffort?: boolean;
|
|
955
|
+
};
|
|
956
|
+
state?: {
|
|
957
|
+
nextRunAtMs?: number;
|
|
958
|
+
runningAtMs?: number;
|
|
959
|
+
lastRunAtMs?: number;
|
|
960
|
+
lastStatus?: 'ok' | 'error' | 'skipped';
|
|
961
|
+
lastError?: string;
|
|
962
|
+
lastDurationMs?: number;
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
export type CronRemoveParams = {
|
|
967
|
+
id: string;
|
|
968
|
+
} | {
|
|
969
|
+
jobId: string;
|
|
970
|
+
};
|
|
971
|
+
export type CronRunParams = {
|
|
972
|
+
id: string;
|
|
973
|
+
mode?: 'due' | 'force';
|
|
974
|
+
} | {
|
|
975
|
+
jobId: string;
|
|
976
|
+
mode?: 'due' | 'force';
|
|
977
|
+
};
|
|
978
|
+
export type CronRunsParams = {
|
|
979
|
+
id: string;
|
|
980
|
+
limit?: number;
|
|
981
|
+
} | {
|
|
982
|
+
jobId: string;
|
|
983
|
+
limit?: number;
|
|
984
|
+
};
|
|
985
|
+
export interface CronRunLogEntry {
|
|
986
|
+
ts: number;
|
|
987
|
+
jobId: string;
|
|
988
|
+
action: 'finished';
|
|
989
|
+
status?: 'ok' | 'error' | 'skipped';
|
|
990
|
+
error?: string;
|
|
991
|
+
summary?: string;
|
|
992
|
+
runAtMs?: number;
|
|
993
|
+
durationMs?: number;
|
|
994
|
+
nextRunAtMs?: number;
|
|
995
|
+
}
|
|
996
|
+
export interface LogsTailParams {
|
|
997
|
+
cursor?: number;
|
|
998
|
+
limit?: number;
|
|
999
|
+
maxBytes?: number;
|
|
1000
|
+
}
|
|
1001
|
+
export interface LogsTailResult {
|
|
1002
|
+
file: string;
|
|
1003
|
+
cursor: number;
|
|
1004
|
+
size: number;
|
|
1005
|
+
lines: string[];
|
|
1006
|
+
truncated?: boolean;
|
|
1007
|
+
reset?: boolean;
|
|
1008
|
+
}
|
|
1009
|
+
export interface ExecApprovalsGetParams {
|
|
1010
|
+
}
|
|
1011
|
+
export interface ExecApprovalsSetParams {
|
|
1012
|
+
file: {
|
|
1013
|
+
version: 1;
|
|
1014
|
+
socket?: {
|
|
1015
|
+
path?: string;
|
|
1016
|
+
token?: string;
|
|
1017
|
+
};
|
|
1018
|
+
defaults?: {
|
|
1019
|
+
security?: string;
|
|
1020
|
+
ask?: string;
|
|
1021
|
+
askFallback?: string;
|
|
1022
|
+
autoAllowSkills?: boolean;
|
|
1023
|
+
};
|
|
1024
|
+
agents?: {
|
|
1025
|
+
/**
|
|
1026
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
1027
|
+
* via the `patternProperty` "^(.*)$".
|
|
1028
|
+
*/
|
|
1029
|
+
[k: string]: {
|
|
1030
|
+
security?: string;
|
|
1031
|
+
ask?: string;
|
|
1032
|
+
askFallback?: string;
|
|
1033
|
+
autoAllowSkills?: boolean;
|
|
1034
|
+
allowlist?: {
|
|
1035
|
+
id?: string;
|
|
1036
|
+
pattern: string;
|
|
1037
|
+
lastUsedAt?: number;
|
|
1038
|
+
lastUsedCommand?: string;
|
|
1039
|
+
lastResolvedPath?: string;
|
|
1040
|
+
}[];
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
baseHash?: string;
|
|
1045
|
+
}
|
|
1046
|
+
export interface ExecApprovalsNodeGetParams {
|
|
1047
|
+
nodeId: string;
|
|
1048
|
+
}
|
|
1049
|
+
export interface ExecApprovalsNodeSetParams {
|
|
1050
|
+
nodeId: string;
|
|
1051
|
+
file: {
|
|
1052
|
+
version: 1;
|
|
1053
|
+
socket?: {
|
|
1054
|
+
path?: string;
|
|
1055
|
+
token?: string;
|
|
1056
|
+
};
|
|
1057
|
+
defaults?: {
|
|
1058
|
+
security?: string;
|
|
1059
|
+
ask?: string;
|
|
1060
|
+
askFallback?: string;
|
|
1061
|
+
autoAllowSkills?: boolean;
|
|
1062
|
+
};
|
|
1063
|
+
agents?: {
|
|
1064
|
+
/**
|
|
1065
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
1066
|
+
* via the `patternProperty` "^(.*)$".
|
|
1067
|
+
*/
|
|
1068
|
+
[k: string]: {
|
|
1069
|
+
security?: string;
|
|
1070
|
+
ask?: string;
|
|
1071
|
+
askFallback?: string;
|
|
1072
|
+
autoAllowSkills?: boolean;
|
|
1073
|
+
allowlist?: {
|
|
1074
|
+
id?: string;
|
|
1075
|
+
pattern: string;
|
|
1076
|
+
lastUsedAt?: number;
|
|
1077
|
+
lastUsedCommand?: string;
|
|
1078
|
+
lastResolvedPath?: string;
|
|
1079
|
+
}[];
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
baseHash?: string;
|
|
1084
|
+
}
|
|
1085
|
+
export interface ExecApprovalsSnapshot {
|
|
1086
|
+
path: string;
|
|
1087
|
+
exists: boolean;
|
|
1088
|
+
hash: string;
|
|
1089
|
+
file: {
|
|
1090
|
+
version: 1;
|
|
1091
|
+
socket?: {
|
|
1092
|
+
path?: string;
|
|
1093
|
+
token?: string;
|
|
1094
|
+
};
|
|
1095
|
+
defaults?: {
|
|
1096
|
+
security?: string;
|
|
1097
|
+
ask?: string;
|
|
1098
|
+
askFallback?: string;
|
|
1099
|
+
autoAllowSkills?: boolean;
|
|
1100
|
+
};
|
|
1101
|
+
agents?: {
|
|
1102
|
+
/**
|
|
1103
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
1104
|
+
* via the `patternProperty` "^(.*)$".
|
|
1105
|
+
*/
|
|
1106
|
+
[k: string]: {
|
|
1107
|
+
security?: string;
|
|
1108
|
+
ask?: string;
|
|
1109
|
+
askFallback?: string;
|
|
1110
|
+
autoAllowSkills?: boolean;
|
|
1111
|
+
allowlist?: {
|
|
1112
|
+
id?: string;
|
|
1113
|
+
pattern: string;
|
|
1114
|
+
lastUsedAt?: number;
|
|
1115
|
+
lastUsedCommand?: string;
|
|
1116
|
+
lastResolvedPath?: string;
|
|
1117
|
+
}[];
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
export interface ExecApprovalRequestParams {
|
|
1123
|
+
id?: string;
|
|
1124
|
+
command: string;
|
|
1125
|
+
cwd?: string | null;
|
|
1126
|
+
host?: string | null;
|
|
1127
|
+
security?: string | null;
|
|
1128
|
+
ask?: string | null;
|
|
1129
|
+
agentId?: string | null;
|
|
1130
|
+
resolvedPath?: string | null;
|
|
1131
|
+
sessionKey?: string | null;
|
|
1132
|
+
timeoutMs?: number;
|
|
1133
|
+
}
|
|
1134
|
+
export interface ExecApprovalResolveParams {
|
|
1135
|
+
id: string;
|
|
1136
|
+
decision: string;
|
|
1137
|
+
}
|
|
1138
|
+
export interface DevicePairListParams {
|
|
1139
|
+
}
|
|
1140
|
+
export interface DevicePairApproveParams {
|
|
1141
|
+
requestId: string;
|
|
1142
|
+
}
|
|
1143
|
+
export interface DevicePairRejectParams {
|
|
1144
|
+
requestId: string;
|
|
1145
|
+
}
|
|
1146
|
+
export interface DeviceTokenRotateParams {
|
|
1147
|
+
deviceId: string;
|
|
1148
|
+
role: string;
|
|
1149
|
+
scopes?: string[];
|
|
1150
|
+
}
|
|
1151
|
+
export interface DeviceTokenRevokeParams {
|
|
1152
|
+
deviceId: string;
|
|
1153
|
+
role: string;
|
|
1154
|
+
}
|
|
1155
|
+
export interface DevicePairRequestedEvent {
|
|
1156
|
+
requestId: string;
|
|
1157
|
+
deviceId: string;
|
|
1158
|
+
publicKey: string;
|
|
1159
|
+
displayName?: string;
|
|
1160
|
+
platform?: string;
|
|
1161
|
+
clientId?: string;
|
|
1162
|
+
clientMode?: string;
|
|
1163
|
+
role?: string;
|
|
1164
|
+
roles?: string[];
|
|
1165
|
+
scopes?: string[];
|
|
1166
|
+
remoteIp?: string;
|
|
1167
|
+
silent?: boolean;
|
|
1168
|
+
isRepair?: boolean;
|
|
1169
|
+
ts: number;
|
|
1170
|
+
}
|
|
1171
|
+
export interface DevicePairResolvedEvent {
|
|
1172
|
+
requestId: string;
|
|
1173
|
+
deviceId: string;
|
|
1174
|
+
decision: string;
|
|
1175
|
+
ts: number;
|
|
1176
|
+
}
|
|
1177
|
+
export interface ChatHistoryParams {
|
|
1178
|
+
sessionKey: string;
|
|
1179
|
+
limit?: number;
|
|
1180
|
+
}
|
|
1181
|
+
export interface ChatSendParams {
|
|
1182
|
+
sessionKey: string;
|
|
1183
|
+
message: string;
|
|
1184
|
+
thinking?: string;
|
|
1185
|
+
deliver?: boolean;
|
|
1186
|
+
attachments?: any[];
|
|
1187
|
+
timeoutMs?: number;
|
|
1188
|
+
idempotencyKey: string;
|
|
1189
|
+
}
|
|
1190
|
+
export interface ChatAbortParams {
|
|
1191
|
+
sessionKey: string;
|
|
1192
|
+
runId?: string;
|
|
1193
|
+
}
|
|
1194
|
+
export interface ChatInjectParams {
|
|
1195
|
+
sessionKey: string;
|
|
1196
|
+
message: string;
|
|
1197
|
+
label?: string;
|
|
1198
|
+
}
|
|
1199
|
+
export interface ChatEvent {
|
|
1200
|
+
runId: string;
|
|
1201
|
+
sessionKey: string;
|
|
1202
|
+
seq: number;
|
|
1203
|
+
state: 'delta' | 'final' | 'aborted' | 'error';
|
|
1204
|
+
message?: any;
|
|
1205
|
+
errorMessage?: string;
|
|
1206
|
+
usage?: any;
|
|
1207
|
+
stopReason?: string;
|
|
1208
|
+
}
|
|
1209
|
+
export interface UpdateRunParams {
|
|
1210
|
+
sessionKey?: string;
|
|
1211
|
+
note?: string;
|
|
1212
|
+
restartDelayMs?: number;
|
|
1213
|
+
timeoutMs?: number;
|
|
1214
|
+
}
|
|
1215
|
+
export interface TickEvent {
|
|
1216
|
+
ts: number;
|
|
1217
|
+
}
|
|
1218
|
+
export interface ShutdownEvent {
|
|
1219
|
+
reason: string;
|
|
1220
|
+
restartExpectedMs?: number;
|
|
1221
|
+
}
|
|
1222
|
+
//# sourceMappingURL=types.d.ts.map
|