@parcha/agentrun-client 0.1.0-beta.38 → 0.1.0-beta.40
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 +32 -0
- package/dist/claude.d.ts +19 -0
- package/dist/claude.js +210 -0
- package/dist/codex.d.ts +23 -0
- package/dist/codex.js +198 -0
- package/dist/learning.d.ts +154 -0
- package/dist/learning.js +407 -0
- package/dist/operations.generated.d.ts +1525 -128
- package/dist/operations.generated.js +109 -4
- package/dist/workflows.d.ts +106 -0
- package/dist/workflows.js +381 -0
- package/package.json +29 -2
|
@@ -1,9 +1,107 @@
|
|
|
1
1
|
import type { BodyOptions, Call, DownloadOptions, Operation, RawBody, RequestOptions, Tagged } from "./types.js";
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export type Agent = {
|
|
3
|
+
agent_id: Id;
|
|
4
|
+
definition: Definition;
|
|
5
|
+
source: Source | null;
|
|
6
|
+
skills: Array<SkillFileInfo>;
|
|
7
|
+
sign_ins: Array<SignIn>;
|
|
8
|
+
runs: {
|
|
9
|
+
count: number;
|
|
10
|
+
live: number;
|
|
11
|
+
};
|
|
12
|
+
region: string;
|
|
13
|
+
home_etag: string;
|
|
14
|
+
created_at: Timestamp;
|
|
15
|
+
updated_at: Timestamp;
|
|
16
|
+
native_status?: {
|
|
17
|
+
runtime: "claude-code" | "codex";
|
|
18
|
+
project: string;
|
|
19
|
+
selector: {
|
|
20
|
+
kind: "project" | "agent" | "profile";
|
|
21
|
+
name?: string;
|
|
22
|
+
};
|
|
23
|
+
machine_id: string;
|
|
24
|
+
version: string | null;
|
|
25
|
+
model: string | null;
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
configuration: Array<{
|
|
28
|
+
path: string;
|
|
29
|
+
sha256: string;
|
|
30
|
+
}>;
|
|
31
|
+
skills: Array<string>;
|
|
32
|
+
mcp_servers: Array<string>;
|
|
33
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
34
|
+
issues: Array<string>;
|
|
35
|
+
capabilities: {
|
|
36
|
+
launch: boolean;
|
|
37
|
+
notes: boolean;
|
|
38
|
+
skills: boolean;
|
|
39
|
+
workflows: false;
|
|
40
|
+
approval: "native" | "unavailable";
|
|
41
|
+
usage: boolean;
|
|
42
|
+
};
|
|
43
|
+
connected: boolean;
|
|
44
|
+
verified_at?: string;
|
|
45
|
+
remote?: {
|
|
46
|
+
connector_id: string;
|
|
47
|
+
target_id: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
external?: {
|
|
51
|
+
source: string;
|
|
52
|
+
kind: string;
|
|
53
|
+
id: string;
|
|
54
|
+
version: string;
|
|
55
|
+
};
|
|
56
|
+
console_url?: string;
|
|
57
|
+
tools?: Array<{
|
|
58
|
+
name: string;
|
|
59
|
+
blurb?: string;
|
|
60
|
+
provider?: string;
|
|
61
|
+
provider_from?: "agent" | "server" | "default";
|
|
62
|
+
default_provider?: string;
|
|
63
|
+
resolved?: string;
|
|
64
|
+
permission: "allow" | "ask" | "deny";
|
|
65
|
+
permission_from: "agent" | "server" | "default" | "unattended";
|
|
66
|
+
default_permission: "allow" | "ask" | "deny";
|
|
67
|
+
permissions: Array<"allow" | "ask" | "deny">;
|
|
68
|
+
}>;
|
|
69
|
+
kind?: "agentic" | "workflow" | null;
|
|
70
|
+
revision?: string | null;
|
|
71
|
+
revisions?: number;
|
|
72
|
+
archived_at?: string | null;
|
|
73
|
+
learning?: {
|
|
74
|
+
pending: number;
|
|
75
|
+
};
|
|
76
|
+
mcp_pin?: Record<string, {
|
|
77
|
+
tools: Array<{
|
|
78
|
+
name: string;
|
|
79
|
+
title?: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
input_schema: Record<string, unknown>;
|
|
82
|
+
annotations?: Record<string, unknown>;
|
|
83
|
+
}>;
|
|
84
|
+
prices?: Record<string, number>;
|
|
85
|
+
}> | null;
|
|
86
|
+
own_computer?: {
|
|
87
|
+
provider: string;
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
state: "held" | "detached" | "deleting";
|
|
91
|
+
since: string;
|
|
92
|
+
image?: string;
|
|
93
|
+
run_id?: string;
|
|
94
|
+
why?: string;
|
|
95
|
+
} | null;
|
|
96
|
+
template?: {
|
|
97
|
+
id: string;
|
|
98
|
+
version: string;
|
|
99
|
+
sha: string | null;
|
|
100
|
+
} | null;
|
|
101
|
+
warnings?: Array<InputIssue>;
|
|
6
102
|
};
|
|
103
|
+
export type Id = string;
|
|
104
|
+
export type Definition = DefinitionInput;
|
|
7
105
|
export type DefinitionInput = {
|
|
8
106
|
id?: Id;
|
|
9
107
|
version?: number;
|
|
@@ -16,6 +114,43 @@ export type DefinitionInput = {
|
|
|
16
114
|
output_schema?: JsonObject;
|
|
17
115
|
workflow?: JsonObject;
|
|
18
116
|
max_cost_usd?: number;
|
|
117
|
+
sdk?: {
|
|
118
|
+
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
119
|
+
};
|
|
120
|
+
native?: {
|
|
121
|
+
runtime: "claude-code" | "codex";
|
|
122
|
+
project: string;
|
|
123
|
+
selector: {
|
|
124
|
+
kind: "project" | "agent" | "profile";
|
|
125
|
+
name?: string;
|
|
126
|
+
};
|
|
127
|
+
machine_id: string;
|
|
128
|
+
version: string | null;
|
|
129
|
+
model: string | null;
|
|
130
|
+
fingerprint: string;
|
|
131
|
+
configuration: Array<{
|
|
132
|
+
path: string;
|
|
133
|
+
sha256: string;
|
|
134
|
+
}>;
|
|
135
|
+
skills: Array<string>;
|
|
136
|
+
mcp_servers: Array<string>;
|
|
137
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
138
|
+
issues: Array<string>;
|
|
139
|
+
capabilities: {
|
|
140
|
+
launch: boolean;
|
|
141
|
+
notes: boolean;
|
|
142
|
+
skills: boolean;
|
|
143
|
+
workflows: false;
|
|
144
|
+
approval: "native" | "unavailable";
|
|
145
|
+
usage: boolean;
|
|
146
|
+
};
|
|
147
|
+
connected: boolean;
|
|
148
|
+
verified_at?: string;
|
|
149
|
+
remote?: {
|
|
150
|
+
connector_id: string;
|
|
151
|
+
target_id: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
19
154
|
model?: string;
|
|
20
155
|
model_tiers?: {
|
|
21
156
|
fast?: string;
|
|
@@ -66,6 +201,24 @@ export type DefinitionInput = {
|
|
|
66
201
|
provider?: "auto" | "native" | "exa-keyless" | "parallel" | "off";
|
|
67
202
|
permission?: "allow" | "ask" | "deny";
|
|
68
203
|
};
|
|
204
|
+
email_search?: {
|
|
205
|
+
permission?: "allow" | "ask" | "deny";
|
|
206
|
+
scope?: "thread" | "mailbox";
|
|
207
|
+
};
|
|
208
|
+
email_read?: {
|
|
209
|
+
permission?: "allow" | "ask" | "deny";
|
|
210
|
+
scope?: "thread" | "mailbox";
|
|
211
|
+
};
|
|
212
|
+
email_draft?: {
|
|
213
|
+
permission?: "allow" | "ask" | "deny";
|
|
214
|
+
};
|
|
215
|
+
email_send?: {
|
|
216
|
+
permission?: "allow" | "ask" | "deny";
|
|
217
|
+
};
|
|
218
|
+
email_file?: {
|
|
219
|
+
permission?: "allow" | "ask" | "deny";
|
|
220
|
+
scope?: "thread" | "mailbox";
|
|
221
|
+
};
|
|
69
222
|
browser?: {
|
|
70
223
|
provider?: "auto" | "browserbase" | "kernel" | "chrome";
|
|
71
224
|
permission?: "allow" | "deny";
|
|
@@ -99,79 +252,8 @@ export type DefinitionInput = {
|
|
|
99
252
|
approvals?: "ask" | "never";
|
|
100
253
|
learning?: true | false | "notes";
|
|
101
254
|
checkout?: "pull_request" | "none";
|
|
102
|
-
cap_mode?: "expected" | "strict";
|
|
103
255
|
};
|
|
104
|
-
export type Id = string;
|
|
105
256
|
export type JsonObject = Record<string, unknown>;
|
|
106
|
-
export type SkillFiles = Record<string, string>;
|
|
107
|
-
export type Agent = {
|
|
108
|
-
agent_id: Id;
|
|
109
|
-
definition: Definition;
|
|
110
|
-
source: Source | null;
|
|
111
|
-
skills: Array<SkillFileInfo>;
|
|
112
|
-
sign_ins: Array<SignIn>;
|
|
113
|
-
runs: {
|
|
114
|
-
count: number;
|
|
115
|
-
live: number;
|
|
116
|
-
};
|
|
117
|
-
region: string;
|
|
118
|
-
home_etag: string;
|
|
119
|
-
created_at: Timestamp;
|
|
120
|
-
updated_at: Timestamp;
|
|
121
|
-
external?: {
|
|
122
|
-
source: string;
|
|
123
|
-
kind: string;
|
|
124
|
-
id: string;
|
|
125
|
-
version: string;
|
|
126
|
-
};
|
|
127
|
-
console_url?: string;
|
|
128
|
-
tools?: Array<{
|
|
129
|
-
name: string;
|
|
130
|
-
blurb?: string;
|
|
131
|
-
provider?: string;
|
|
132
|
-
provider_from?: "agent" | "server" | "default";
|
|
133
|
-
default_provider?: string;
|
|
134
|
-
resolved?: string;
|
|
135
|
-
permission: "allow" | "ask" | "deny";
|
|
136
|
-
permission_from: "agent" | "server" | "default" | "unattended";
|
|
137
|
-
default_permission: "allow" | "ask" | "deny";
|
|
138
|
-
permissions: Array<"allow" | "ask" | "deny">;
|
|
139
|
-
}>;
|
|
140
|
-
kind?: "agentic" | "workflow" | null;
|
|
141
|
-
revision?: string | null;
|
|
142
|
-
revisions?: number;
|
|
143
|
-
archived_at?: string | null;
|
|
144
|
-
learning?: {
|
|
145
|
-
pending: number;
|
|
146
|
-
};
|
|
147
|
-
mcp_pin?: Record<string, {
|
|
148
|
-
tools: Array<{
|
|
149
|
-
name: string;
|
|
150
|
-
title?: string;
|
|
151
|
-
description?: string;
|
|
152
|
-
input_schema: Record<string, unknown>;
|
|
153
|
-
annotations?: Record<string, unknown>;
|
|
154
|
-
}>;
|
|
155
|
-
prices?: Record<string, number>;
|
|
156
|
-
}> | null;
|
|
157
|
-
own_computer?: {
|
|
158
|
-
provider: string;
|
|
159
|
-
id: string;
|
|
160
|
-
name: string;
|
|
161
|
-
state: "held" | "detached" | "deleting";
|
|
162
|
-
since: string;
|
|
163
|
-
image?: string;
|
|
164
|
-
run_id?: string;
|
|
165
|
-
why?: string;
|
|
166
|
-
} | null;
|
|
167
|
-
template?: {
|
|
168
|
-
id: string;
|
|
169
|
-
version: string;
|
|
170
|
-
sha: string | null;
|
|
171
|
-
} | null;
|
|
172
|
-
warnings?: Array<InputIssue>;
|
|
173
|
-
};
|
|
174
|
-
export type Definition = DefinitionInput;
|
|
175
257
|
export type Source = {
|
|
176
258
|
sha: CommitSha;
|
|
177
259
|
refreshed_at: Timestamp;
|
|
@@ -199,13 +281,19 @@ export type SecretMeta = {
|
|
|
199
281
|
};
|
|
200
282
|
export type InputIssue = {
|
|
201
283
|
field: string;
|
|
202
|
-
reason: "missing" | "wrong_type" | "not_allowed" | "not_an_option" | "too_short" | "too_long" | "too_few" | "too_many" | "bad_format" | "duplicate" | "invalid" | "not_set_up_here" | "redirect" | "not_https" | "too_many_tools" | "tools_too_large" | "reserved" | "expired" | "registration_unavailable";
|
|
284
|
+
reason: "missing" | "wrong_type" | "not_allowed" | "not_an_option" | "too_short" | "too_long" | "too_few" | "too_many" | "bad_format" | "duplicate" | "invalid" | "not_set_up_here" | "redirect" | "not_https" | "too_many_tools" | "tools_too_large" | "reserved" | "expired" | "registration_unavailable" | "priced_by_usage";
|
|
203
285
|
expected?: string;
|
|
204
286
|
message: string;
|
|
205
287
|
fix?: string;
|
|
206
288
|
code?: string;
|
|
207
289
|
example?: unknown;
|
|
208
290
|
};
|
|
291
|
+
export type AgentCreate = {
|
|
292
|
+
definition: DefinitionInput;
|
|
293
|
+
skills?: SkillFiles;
|
|
294
|
+
note?: string;
|
|
295
|
+
};
|
|
296
|
+
export type SkillFiles = Record<string, string>;
|
|
209
297
|
export type AgentList = {
|
|
210
298
|
agents: Array<Agent>;
|
|
211
299
|
next_cursor: string | null;
|
|
@@ -225,6 +313,49 @@ export type RunSummary = {
|
|
|
225
313
|
created_at: Timestamp;
|
|
226
314
|
ended_at: Timestamp | null;
|
|
227
315
|
cost: Cost;
|
|
316
|
+
sdk?: {
|
|
317
|
+
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
318
|
+
model: string | null;
|
|
319
|
+
session_id: string | null;
|
|
320
|
+
learning_revision: string | null;
|
|
321
|
+
usage: {
|
|
322
|
+
input_tokens?: number | null;
|
|
323
|
+
output_tokens?: number | null;
|
|
324
|
+
cache_read_tokens?: number | null;
|
|
325
|
+
cache_write_tokens?: number | null;
|
|
326
|
+
cost_usd?: number | null;
|
|
327
|
+
} | null;
|
|
328
|
+
};
|
|
329
|
+
native?: {
|
|
330
|
+
runtime: string;
|
|
331
|
+
project: string;
|
|
332
|
+
selector: {
|
|
333
|
+
kind: "project" | "agent" | "profile";
|
|
334
|
+
name?: string;
|
|
335
|
+
};
|
|
336
|
+
machine_id: string;
|
|
337
|
+
fingerprint: string;
|
|
338
|
+
session_id: string | null;
|
|
339
|
+
model: string | null;
|
|
340
|
+
learning_revision: string | null;
|
|
341
|
+
usage: {
|
|
342
|
+
task: {
|
|
343
|
+
input_tokens: number | null;
|
|
344
|
+
output_tokens: number | null;
|
|
345
|
+
cache_read_tokens: number | null;
|
|
346
|
+
cache_write_tokens: number | null;
|
|
347
|
+
cost_usd: number | null;
|
|
348
|
+
} | null;
|
|
349
|
+
reflection: Array<{
|
|
350
|
+
input_tokens: number | null;
|
|
351
|
+
output_tokens: number | null;
|
|
352
|
+
cache_read_tokens: number | null;
|
|
353
|
+
cache_write_tokens: number | null;
|
|
354
|
+
cost_usd: number | null;
|
|
355
|
+
}>;
|
|
356
|
+
};
|
|
357
|
+
model_requests: null;
|
|
358
|
+
};
|
|
228
359
|
console_url?: string;
|
|
229
360
|
revision: string;
|
|
230
361
|
kind: "agentic" | "workflow";
|
|
@@ -279,17 +410,18 @@ export type RunSummary = {
|
|
|
279
410
|
tool: string;
|
|
280
411
|
call_id: string;
|
|
281
412
|
args_preview: string;
|
|
413
|
+
summary?: string;
|
|
282
414
|
requested_at: string;
|
|
283
|
-
price?: number | "not metered";
|
|
415
|
+
price?: number | "not metered" | "priced by usage";
|
|
284
416
|
destructive?: true;
|
|
285
417
|
} | {
|
|
286
418
|
kind: "budget";
|
|
287
419
|
cap_usd: number;
|
|
288
420
|
spent_usd?: number;
|
|
421
|
+
held_usd?: number;
|
|
289
422
|
needs_usd?: number;
|
|
290
423
|
least_cap_usd?: number;
|
|
291
424
|
suggested_cap_usd?: number;
|
|
292
|
-
overshoot_bound_usd?: number;
|
|
293
425
|
said: string;
|
|
294
426
|
at: string;
|
|
295
427
|
node?: string | null;
|
|
@@ -306,6 +438,8 @@ export type RunSummary = {
|
|
|
306
438
|
completion_condition: string;
|
|
307
439
|
asked_at: string;
|
|
308
440
|
expires_at: string;
|
|
441
|
+
} | {
|
|
442
|
+
kind: "stopped";
|
|
309
443
|
} | null;
|
|
310
444
|
imported_from?: {
|
|
311
445
|
source: "claude-code" | "codex" | "pi";
|
|
@@ -323,9 +457,14 @@ export type Cost = {
|
|
|
323
457
|
basis: "charge" | "estimate";
|
|
324
458
|
charge_state?: "held" | "settled" | "released" | null;
|
|
325
459
|
cap_usd?: number | null;
|
|
460
|
+
free?: true;
|
|
326
461
|
so_far_usd?: number;
|
|
327
462
|
unpriced?: number;
|
|
328
|
-
|
|
463
|
+
upper_bound?: true;
|
|
464
|
+
plan?: {
|
|
465
|
+
requests: number;
|
|
466
|
+
tokens: number;
|
|
467
|
+
};
|
|
329
468
|
};
|
|
330
469
|
export type Effort = "low" | "medium" | "high";
|
|
331
470
|
export type RunError = {
|
|
@@ -396,7 +535,6 @@ export type RunCreateInline = {
|
|
|
396
535
|
mcp_auth?: Record<string, {
|
|
397
536
|
headers: Record<string, string>;
|
|
398
537
|
}>;
|
|
399
|
-
cap_mode?: "expected" | "strict";
|
|
400
538
|
workflow_first?: boolean;
|
|
401
539
|
learning?: "use";
|
|
402
540
|
repo?: string;
|
|
@@ -428,12 +566,54 @@ export type Run = {
|
|
|
428
566
|
error: RunError | null;
|
|
429
567
|
cost: Cost;
|
|
430
568
|
poll_after_ms: number;
|
|
569
|
+
sdk?: {
|
|
570
|
+
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
571
|
+
model: string | null;
|
|
572
|
+
session_id: string | null;
|
|
573
|
+
learning_revision: string | null;
|
|
574
|
+
usage: {
|
|
575
|
+
input_tokens?: number | null;
|
|
576
|
+
output_tokens?: number | null;
|
|
577
|
+
cache_read_tokens?: number | null;
|
|
578
|
+
cache_write_tokens?: number | null;
|
|
579
|
+
cost_usd?: number | null;
|
|
580
|
+
} | null;
|
|
581
|
+
};
|
|
582
|
+
native?: {
|
|
583
|
+
runtime: string;
|
|
584
|
+
project: string;
|
|
585
|
+
selector: {
|
|
586
|
+
kind: "project" | "agent" | "profile";
|
|
587
|
+
name?: string;
|
|
588
|
+
};
|
|
589
|
+
machine_id: string;
|
|
590
|
+
fingerprint: string;
|
|
591
|
+
session_id: string | null;
|
|
592
|
+
model: string | null;
|
|
593
|
+
learning_revision: string | null;
|
|
594
|
+
usage: {
|
|
595
|
+
task: {
|
|
596
|
+
input_tokens: number | null;
|
|
597
|
+
output_tokens: number | null;
|
|
598
|
+
cache_read_tokens: number | null;
|
|
599
|
+
cache_write_tokens: number | null;
|
|
600
|
+
cost_usd: number | null;
|
|
601
|
+
} | null;
|
|
602
|
+
reflection: Array<{
|
|
603
|
+
input_tokens: number | null;
|
|
604
|
+
output_tokens: number | null;
|
|
605
|
+
cache_read_tokens: number | null;
|
|
606
|
+
cache_write_tokens: number | null;
|
|
607
|
+
cost_usd: number | null;
|
|
608
|
+
}>;
|
|
609
|
+
};
|
|
610
|
+
model_requests: null;
|
|
611
|
+
};
|
|
431
612
|
console_url?: string;
|
|
432
613
|
revision: string;
|
|
433
614
|
kind: "agentic" | "workflow";
|
|
434
615
|
archived_at: string | null;
|
|
435
616
|
approvals?: "ask" | "never";
|
|
436
|
-
cap_mode?: "expected" | "strict" | null;
|
|
437
617
|
last_progress_at?: string | null;
|
|
438
618
|
input?: Record<string, unknown> | null;
|
|
439
619
|
file_ids?: Array<string>;
|
|
@@ -509,17 +689,18 @@ export type Run = {
|
|
|
509
689
|
tool: string;
|
|
510
690
|
call_id: string;
|
|
511
691
|
args_preview: string;
|
|
692
|
+
summary?: string;
|
|
512
693
|
requested_at: string;
|
|
513
|
-
price?: number | "not metered";
|
|
694
|
+
price?: number | "not metered" | "priced by usage";
|
|
514
695
|
destructive?: true;
|
|
515
696
|
} | {
|
|
516
697
|
kind: "budget";
|
|
517
698
|
cap_usd: number;
|
|
518
699
|
spent_usd?: number;
|
|
700
|
+
held_usd?: number;
|
|
519
701
|
needs_usd?: number;
|
|
520
702
|
least_cap_usd?: number;
|
|
521
703
|
suggested_cap_usd?: number;
|
|
522
|
-
overshoot_bound_usd?: number;
|
|
523
704
|
said: string;
|
|
524
705
|
at: string;
|
|
525
706
|
node?: string | null;
|
|
@@ -536,6 +717,8 @@ export type Run = {
|
|
|
536
717
|
completion_condition: string;
|
|
537
718
|
asked_at: string;
|
|
538
719
|
expires_at: string;
|
|
720
|
+
} | {
|
|
721
|
+
kind: "stopped";
|
|
539
722
|
} | null;
|
|
540
723
|
imported_from?: {
|
|
541
724
|
source: "claude-code" | "codex" | "pi";
|
|
@@ -587,7 +770,6 @@ export type RunCreate = {
|
|
|
587
770
|
mcp_auth?: Record<string, {
|
|
588
771
|
headers: Record<string, string>;
|
|
589
772
|
}>;
|
|
590
|
-
cap_mode?: "expected" | "strict";
|
|
591
773
|
workflow_first?: boolean;
|
|
592
774
|
learning?: "use";
|
|
593
775
|
repo?: string;
|
|
@@ -643,7 +825,7 @@ export type TimelineRow = {
|
|
|
643
825
|
origin?: "server" | "trigger";
|
|
644
826
|
trigger?: {
|
|
645
827
|
id: string;
|
|
646
|
-
source: "schedule" | "webhook" | "slack" | "github";
|
|
828
|
+
source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email";
|
|
647
829
|
owner: boolean;
|
|
648
830
|
name?: string;
|
|
649
831
|
};
|
|
@@ -677,6 +859,8 @@ export type TimelineRow = {
|
|
|
677
859
|
expect?: "met" | "unmet";
|
|
678
860
|
}>;
|
|
679
861
|
computer_calls_dropped?: number;
|
|
862
|
+
tool_input?: Record<string, unknown>;
|
|
863
|
+
tool_result_text?: string | null;
|
|
680
864
|
learning?: {
|
|
681
865
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
682
866
|
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
|
|
@@ -686,9 +870,11 @@ export type TimelineRow = {
|
|
|
686
870
|
export type TimelineKind = "thinking" | "text_block" | "tool_use" | "tool_result" | "phase" | "subagent_started" | "subagent_progress" | "subagent_completed" | "final_answer" | "error" | "user_message" | "waiting" | "usage" | "decision" | "tool_approval_requested" | "learning";
|
|
687
871
|
export type TimelineUsage = {
|
|
688
872
|
usd: number | null;
|
|
689
|
-
requests: number;
|
|
873
|
+
requests: number | null;
|
|
874
|
+
free?: true;
|
|
690
875
|
so_far_usd?: number;
|
|
691
876
|
unpriced?: number;
|
|
877
|
+
upper_bound?: true;
|
|
692
878
|
not_metered?: number;
|
|
693
879
|
};
|
|
694
880
|
export type Capabilities = {
|
|
@@ -742,12 +928,17 @@ export type Capabilities = {
|
|
|
742
928
|
harnesses?: Array<{
|
|
743
929
|
id: "pi" | "claude-agent" | "codex" | "opencode";
|
|
744
930
|
available: boolean;
|
|
931
|
+
free_models: Array<{
|
|
932
|
+
id: string;
|
|
933
|
+
context_window: number;
|
|
934
|
+
}>;
|
|
745
935
|
models: Array<string>;
|
|
746
936
|
run_memory_mib: number;
|
|
747
937
|
max_concurrent_runs: number;
|
|
748
938
|
default_model: string | null;
|
|
749
939
|
steer: boolean;
|
|
750
940
|
reason?: string;
|
|
941
|
+
needs?: Array<"key" | "chatgpt">;
|
|
751
942
|
installs?: "on_first_use";
|
|
752
943
|
}>;
|
|
753
944
|
tools: Array<{
|
|
@@ -898,7 +1089,7 @@ export type Features = {
|
|
|
898
1089
|
};
|
|
899
1090
|
triggers?: {
|
|
900
1091
|
routes: boolean;
|
|
901
|
-
sources: Array<"schedule" | "webhook" | "github">;
|
|
1092
|
+
sources: Array<"schedule" | "webhook" | "github" | "composio" | "email">;
|
|
902
1093
|
targets: Array<"start_run" | "message_run">;
|
|
903
1094
|
min_every_s: number;
|
|
904
1095
|
history_kept: number;
|
|
@@ -906,12 +1097,13 @@ export type Features = {
|
|
|
906
1097
|
failures_to_pause: number;
|
|
907
1098
|
webhook: {
|
|
908
1099
|
signing: "standard-webhooks/v1";
|
|
909
|
-
signatures: Array<"standard" | "github"
|
|
1100
|
+
signatures: Array<"standard" | "github">;
|
|
910
1101
|
tolerance_s: number;
|
|
911
1102
|
max_body_bytes: number;
|
|
912
1103
|
payload_kept_bytes: number;
|
|
913
1104
|
at_rest: "sealed";
|
|
914
1105
|
};
|
|
1106
|
+
public_url?: boolean;
|
|
915
1107
|
};
|
|
916
1108
|
};
|
|
917
1109
|
export type Meter = "tokens" | "agent_time" | "browser_time" | "disk" | "tools" | "learning";
|
|
@@ -934,6 +1126,7 @@ export type Limits = {
|
|
|
934
1126
|
min: Usd;
|
|
935
1127
|
max: Usd;
|
|
936
1128
|
} | null;
|
|
1129
|
+
free_model_requests?: number;
|
|
937
1130
|
};
|
|
938
1131
|
export type Usd = number;
|
|
939
1132
|
export type Usage = {
|
|
@@ -963,6 +1156,52 @@ export type UsageLine = {
|
|
|
963
1156
|
};
|
|
964
1157
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
965
1158
|
export type ArchiveAgentResponse = Record<string, unknown>;
|
|
1159
|
+
/** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
|
|
1160
|
+
export type ConnectNativeBody = {
|
|
1161
|
+
project: string;
|
|
1162
|
+
runtime: "claude-code" | "codex";
|
|
1163
|
+
selector?: {
|
|
1164
|
+
kind: "project" | "agent" | "profile";
|
|
1165
|
+
name?: string;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
export type ConnectNativeResponse = {
|
|
1169
|
+
agent: Agent;
|
|
1170
|
+
native: {
|
|
1171
|
+
runtime: "claude-code" | "codex";
|
|
1172
|
+
project: string;
|
|
1173
|
+
selector: {
|
|
1174
|
+
kind: "project" | "agent" | "profile";
|
|
1175
|
+
name?: string;
|
|
1176
|
+
};
|
|
1177
|
+
machine_id: string;
|
|
1178
|
+
version: string | null;
|
|
1179
|
+
model: string | null;
|
|
1180
|
+
fingerprint: string;
|
|
1181
|
+
configuration: Array<{
|
|
1182
|
+
path: string;
|
|
1183
|
+
sha256: string;
|
|
1184
|
+
}>;
|
|
1185
|
+
skills: Array<string>;
|
|
1186
|
+
mcp_servers: Array<string>;
|
|
1187
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1188
|
+
issues: Array<string>;
|
|
1189
|
+
capabilities: {
|
|
1190
|
+
launch: boolean;
|
|
1191
|
+
notes: boolean;
|
|
1192
|
+
skills: boolean;
|
|
1193
|
+
workflows: false;
|
|
1194
|
+
approval: "native" | "unavailable";
|
|
1195
|
+
usage: boolean;
|
|
1196
|
+
};
|
|
1197
|
+
connected: boolean;
|
|
1198
|
+
verified_at?: string;
|
|
1199
|
+
remote?: {
|
|
1200
|
+
connector_id: string;
|
|
1201
|
+
target_id: string;
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
966
1205
|
/** Create an agent home (POST /agents). */
|
|
967
1206
|
export type CreateAgentBody = AgentCreate;
|
|
968
1207
|
export interface CreateAgentParams {
|
|
@@ -979,6 +1218,79 @@ export type DeleteAgentArchilResponse = {
|
|
|
979
1218
|
disk_id: string;
|
|
980
1219
|
} | null;
|
|
981
1220
|
};
|
|
1221
|
+
/** Disconnect future native jobs while retaining source configuration and history (POST /agents/{agent_id}/native/disconnect). */
|
|
1222
|
+
export type DisconnectNativeResponse = {
|
|
1223
|
+
native: {
|
|
1224
|
+
runtime: "claude-code" | "codex";
|
|
1225
|
+
project: string;
|
|
1226
|
+
selector: {
|
|
1227
|
+
kind: "project" | "agent" | "profile";
|
|
1228
|
+
name?: string;
|
|
1229
|
+
};
|
|
1230
|
+
machine_id: string;
|
|
1231
|
+
version: string | null;
|
|
1232
|
+
model: string | null;
|
|
1233
|
+
fingerprint: string;
|
|
1234
|
+
configuration: Array<{
|
|
1235
|
+
path: string;
|
|
1236
|
+
sha256: string;
|
|
1237
|
+
}>;
|
|
1238
|
+
skills: Array<string>;
|
|
1239
|
+
mcp_servers: Array<string>;
|
|
1240
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1241
|
+
issues: Array<string>;
|
|
1242
|
+
capabilities: {
|
|
1243
|
+
launch: boolean;
|
|
1244
|
+
notes: boolean;
|
|
1245
|
+
skills: boolean;
|
|
1246
|
+
workflows: false;
|
|
1247
|
+
approval: "native" | "unavailable";
|
|
1248
|
+
usage: boolean;
|
|
1249
|
+
};
|
|
1250
|
+
connected: boolean;
|
|
1251
|
+
verified_at?: string;
|
|
1252
|
+
remote?: {
|
|
1253
|
+
connector_id: string;
|
|
1254
|
+
target_id: string;
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
/** Discover existing native projects on this source machine without running a model (POST /native/discover). */
|
|
1259
|
+
export type DiscoverNativeBody = {
|
|
1260
|
+
project: string;
|
|
1261
|
+
runtime?: "claude-code" | "codex";
|
|
1262
|
+
};
|
|
1263
|
+
export type DiscoverNativeResponse = {
|
|
1264
|
+
machine_id: string;
|
|
1265
|
+
targets: Array<{
|
|
1266
|
+
runtime: "claude-code" | "codex";
|
|
1267
|
+
project: string;
|
|
1268
|
+
selector: {
|
|
1269
|
+
kind: "project" | "agent" | "profile";
|
|
1270
|
+
name?: string;
|
|
1271
|
+
};
|
|
1272
|
+
machine_id: string;
|
|
1273
|
+
version: string | null;
|
|
1274
|
+
model: string | null;
|
|
1275
|
+
fingerprint: string;
|
|
1276
|
+
configuration: Array<{
|
|
1277
|
+
path: string;
|
|
1278
|
+
sha256: string;
|
|
1279
|
+
}>;
|
|
1280
|
+
skills: Array<string>;
|
|
1281
|
+
mcp_servers: Array<string>;
|
|
1282
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1283
|
+
issues: Array<string>;
|
|
1284
|
+
capabilities: {
|
|
1285
|
+
launch: boolean;
|
|
1286
|
+
notes: boolean;
|
|
1287
|
+
skills: boolean;
|
|
1288
|
+
workflows: false;
|
|
1289
|
+
approval: "native" | "unavailable";
|
|
1290
|
+
usage: boolean;
|
|
1291
|
+
};
|
|
1292
|
+
}>;
|
|
1293
|
+
};
|
|
982
1294
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
983
1295
|
export type ForgetSignInResponse = {
|
|
984
1296
|
key: string;
|
|
@@ -1048,6 +1360,43 @@ export type GetLearningLoopResponse = {
|
|
|
1048
1360
|
}>;
|
|
1049
1361
|
}>;
|
|
1050
1362
|
};
|
|
1363
|
+
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
1364
|
+
export type GetNativeResponse = {
|
|
1365
|
+
native: {
|
|
1366
|
+
runtime: "claude-code" | "codex";
|
|
1367
|
+
project: string;
|
|
1368
|
+
selector: {
|
|
1369
|
+
kind: "project" | "agent" | "profile";
|
|
1370
|
+
name?: string;
|
|
1371
|
+
};
|
|
1372
|
+
machine_id: string;
|
|
1373
|
+
version: string | null;
|
|
1374
|
+
model: string | null;
|
|
1375
|
+
fingerprint: string;
|
|
1376
|
+
configuration: Array<{
|
|
1377
|
+
path: string;
|
|
1378
|
+
sha256: string;
|
|
1379
|
+
}>;
|
|
1380
|
+
skills: Array<string>;
|
|
1381
|
+
mcp_servers: Array<string>;
|
|
1382
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1383
|
+
issues: Array<string>;
|
|
1384
|
+
capabilities: {
|
|
1385
|
+
launch: boolean;
|
|
1386
|
+
notes: boolean;
|
|
1387
|
+
skills: boolean;
|
|
1388
|
+
workflows: false;
|
|
1389
|
+
approval: "native" | "unavailable";
|
|
1390
|
+
usage: boolean;
|
|
1391
|
+
};
|
|
1392
|
+
connected: boolean;
|
|
1393
|
+
verified_at?: string;
|
|
1394
|
+
remote?: {
|
|
1395
|
+
connector_id: string;
|
|
1396
|
+
target_id: string;
|
|
1397
|
+
};
|
|
1398
|
+
} | null;
|
|
1399
|
+
};
|
|
1051
1400
|
/** List agents (GET /agents). */
|
|
1052
1401
|
export interface ListAgentsParams {
|
|
1053
1402
|
limit?: number;
|
|
@@ -1062,7 +1411,7 @@ export type ListLearningPromotionsResponse = {
|
|
|
1062
1411
|
workflow: string;
|
|
1063
1412
|
digest: string;
|
|
1064
1413
|
at: string;
|
|
1065
|
-
decided: "promote" | "hold" | "replaying" | "
|
|
1414
|
+
decided: "promote" | "hold" | "replaying" | "queued" | "skipped";
|
|
1066
1415
|
source: "replay" | "dry_run" | "refit" | "graded";
|
|
1067
1416
|
reason: string;
|
|
1068
1417
|
replay?: {
|
|
@@ -1074,15 +1423,21 @@ export type ListLearningPromotionsResponse = {
|
|
|
1074
1423
|
handed_back: number;
|
|
1075
1424
|
of?: Array<string>;
|
|
1076
1425
|
cost_usd?: number | null;
|
|
1077
|
-
skipped_write?: number;
|
|
1078
1426
|
skipped_tools?: Array<{
|
|
1079
1427
|
tool: string;
|
|
1080
1428
|
inputs: number;
|
|
1081
1429
|
no_read_only_hint: boolean;
|
|
1082
1430
|
}>;
|
|
1431
|
+
outcomes?: {
|
|
1432
|
+
answered: number;
|
|
1433
|
+
handed_back: number;
|
|
1434
|
+
failed: number;
|
|
1435
|
+
skipped_write: number;
|
|
1436
|
+
};
|
|
1083
1437
|
};
|
|
1084
1438
|
runs?: Array<string>;
|
|
1085
1439
|
inputs?: Array<string>;
|
|
1440
|
+
replay_id?: string;
|
|
1086
1441
|
refit?: {
|
|
1087
1442
|
from: string;
|
|
1088
1443
|
guards: Array<{
|
|
@@ -1094,8 +1449,10 @@ export type ListLearningPromotionsResponse = {
|
|
|
1094
1449
|
}>;
|
|
1095
1450
|
};
|
|
1096
1451
|
checked?: number;
|
|
1452
|
+
since?: number;
|
|
1453
|
+
held_on?: Array<string>;
|
|
1097
1454
|
commit?: string;
|
|
1098
|
-
|
|
1455
|
+
skipped_by?: string;
|
|
1099
1456
|
}>;
|
|
1100
1457
|
serving: Array<{
|
|
1101
1458
|
workflow: string;
|
|
@@ -1118,6 +1475,241 @@ export interface UpdateDefinitionParams {
|
|
|
1118
1475
|
"If-Match"?: string;
|
|
1119
1476
|
}
|
|
1120
1477
|
export type UpdateDefinitionResponse = Agent;
|
|
1478
|
+
/** Check native CLI and sign-in without a paid model call (POST /agents/{agent_id}/native/verify). */
|
|
1479
|
+
export type VerifyNativeResponse = {
|
|
1480
|
+
native: {
|
|
1481
|
+
runtime: "claude-code" | "codex";
|
|
1482
|
+
project: string;
|
|
1483
|
+
selector: {
|
|
1484
|
+
kind: "project" | "agent" | "profile";
|
|
1485
|
+
name?: string;
|
|
1486
|
+
};
|
|
1487
|
+
machine_id: string;
|
|
1488
|
+
version: string | null;
|
|
1489
|
+
model: string | null;
|
|
1490
|
+
fingerprint: string;
|
|
1491
|
+
configuration: Array<{
|
|
1492
|
+
path: string;
|
|
1493
|
+
sha256: string;
|
|
1494
|
+
}>;
|
|
1495
|
+
skills: Array<string>;
|
|
1496
|
+
mcp_servers: Array<string>;
|
|
1497
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1498
|
+
issues: Array<string>;
|
|
1499
|
+
capabilities: {
|
|
1500
|
+
launch: boolean;
|
|
1501
|
+
notes: boolean;
|
|
1502
|
+
skills: boolean;
|
|
1503
|
+
workflows: false;
|
|
1504
|
+
approval: "native" | "unavailable";
|
|
1505
|
+
usage: boolean;
|
|
1506
|
+
};
|
|
1507
|
+
connected: boolean;
|
|
1508
|
+
verified_at?: string;
|
|
1509
|
+
remote?: {
|
|
1510
|
+
connector_id: string;
|
|
1511
|
+
target_id: string;
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1515
|
+
/** Complete a source command once under its valid lease (POST /connectors/{connector_id}/commands/{command_id}/complete). */
|
|
1516
|
+
export type CompleteRemoteCommandBody = {
|
|
1517
|
+
lease_token: string;
|
|
1518
|
+
result?: unknown;
|
|
1519
|
+
error?: string;
|
|
1520
|
+
};
|
|
1521
|
+
export type CompleteRemoteCommandResponse = {
|
|
1522
|
+
accepted: true;
|
|
1523
|
+
};
|
|
1524
|
+
/** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
|
|
1525
|
+
export type EnrollRemoteConnectorBody = {
|
|
1526
|
+
label?: string;
|
|
1527
|
+
capabilities?: {
|
|
1528
|
+
native_execution?: boolean;
|
|
1529
|
+
history_import?: boolean;
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
export type EnrollRemoteConnectorResponse = {
|
|
1533
|
+
enrollment_token: string;
|
|
1534
|
+
expires_at: string;
|
|
1535
|
+
workspace_id: "local";
|
|
1536
|
+
};
|
|
1537
|
+
/** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
|
|
1538
|
+
export type ImportRemoteHistoryBody = {
|
|
1539
|
+
sessions: Array<Record<string, unknown>>;
|
|
1540
|
+
};
|
|
1541
|
+
export type ImportRemoteHistoryResponse = {
|
|
1542
|
+
agent_id: string;
|
|
1543
|
+
runs: Array<{
|
|
1544
|
+
session_id: string;
|
|
1545
|
+
run_id: string;
|
|
1546
|
+
already: boolean;
|
|
1547
|
+
}>;
|
|
1548
|
+
imported: number;
|
|
1549
|
+
already: number;
|
|
1550
|
+
};
|
|
1551
|
+
/** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
|
|
1552
|
+
export type ImportRemoteTargetBody = {
|
|
1553
|
+
target_id: string;
|
|
1554
|
+
name?: string;
|
|
1555
|
+
target: {
|
|
1556
|
+
runtime: "claude-code" | "codex";
|
|
1557
|
+
project: string;
|
|
1558
|
+
selector: {
|
|
1559
|
+
kind: "project" | "agent" | "profile";
|
|
1560
|
+
name?: string;
|
|
1561
|
+
};
|
|
1562
|
+
machine_id: string;
|
|
1563
|
+
version: string | null;
|
|
1564
|
+
model: string | null;
|
|
1565
|
+
fingerprint: string;
|
|
1566
|
+
configuration: Array<{
|
|
1567
|
+
path: string;
|
|
1568
|
+
sha256: string;
|
|
1569
|
+
}>;
|
|
1570
|
+
skills: Array<string>;
|
|
1571
|
+
mcp_servers: Array<string>;
|
|
1572
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1573
|
+
issues: Array<string>;
|
|
1574
|
+
capabilities: {
|
|
1575
|
+
launch: boolean;
|
|
1576
|
+
notes: boolean;
|
|
1577
|
+
skills: boolean;
|
|
1578
|
+
workflows: false;
|
|
1579
|
+
approval: "native" | "unavailable";
|
|
1580
|
+
usage: boolean;
|
|
1581
|
+
};
|
|
1582
|
+
connected: boolean;
|
|
1583
|
+
verified_at?: string;
|
|
1584
|
+
remote?: {
|
|
1585
|
+
connector_id: string;
|
|
1586
|
+
target_id: string;
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
history_only?: boolean;
|
|
1590
|
+
};
|
|
1591
|
+
export type ImportRemoteTargetResponse = {
|
|
1592
|
+
agent_id: string;
|
|
1593
|
+
native: {
|
|
1594
|
+
runtime: "claude-code" | "codex";
|
|
1595
|
+
project: string;
|
|
1596
|
+
selector: {
|
|
1597
|
+
kind: "project" | "agent" | "profile";
|
|
1598
|
+
name?: string;
|
|
1599
|
+
};
|
|
1600
|
+
machine_id: string;
|
|
1601
|
+
version: string | null;
|
|
1602
|
+
model: string | null;
|
|
1603
|
+
fingerprint: string;
|
|
1604
|
+
configuration: Array<{
|
|
1605
|
+
path: string;
|
|
1606
|
+
sha256: string;
|
|
1607
|
+
}>;
|
|
1608
|
+
skills: Array<string>;
|
|
1609
|
+
mcp_servers: Array<string>;
|
|
1610
|
+
state: "needs_verification" | "needs_attention" | "ready";
|
|
1611
|
+
issues: Array<string>;
|
|
1612
|
+
capabilities: {
|
|
1613
|
+
launch: boolean;
|
|
1614
|
+
notes: boolean;
|
|
1615
|
+
skills: boolean;
|
|
1616
|
+
workflows: false;
|
|
1617
|
+
approval: "native" | "unavailable";
|
|
1618
|
+
usage: boolean;
|
|
1619
|
+
};
|
|
1620
|
+
connected: boolean;
|
|
1621
|
+
verified_at?: string;
|
|
1622
|
+
remote?: {
|
|
1623
|
+
connector_id: string;
|
|
1624
|
+
target_id: string;
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
/** List remote source machines and imported agent targets (GET /connectors). */
|
|
1629
|
+
export type ListRemoteConnectorsResponse = {
|
|
1630
|
+
connectors: Array<{
|
|
1631
|
+
id: string;
|
|
1632
|
+
connector_id: string;
|
|
1633
|
+
label: string;
|
|
1634
|
+
created_at: string;
|
|
1635
|
+
last_seen_at: string | null;
|
|
1636
|
+
status: "online" | "offline" | "revoked";
|
|
1637
|
+
capabilities: {
|
|
1638
|
+
observe: true;
|
|
1639
|
+
native_execution: boolean;
|
|
1640
|
+
history_import: boolean;
|
|
1641
|
+
};
|
|
1642
|
+
targets: Array<Record<string, unknown>>;
|
|
1643
|
+
}>;
|
|
1644
|
+
};
|
|
1645
|
+
/** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
|
|
1646
|
+
export type PollRemoteConnectorBody = {
|
|
1647
|
+
worker_id: string;
|
|
1648
|
+
active?: Array<{
|
|
1649
|
+
command_id: string;
|
|
1650
|
+
lease_token: string;
|
|
1651
|
+
}>;
|
|
1652
|
+
};
|
|
1653
|
+
export type PollRemoteConnectorResponse = {
|
|
1654
|
+
commands: Array<Record<string, unknown>>;
|
|
1655
|
+
cancelled: Array<string>;
|
|
1656
|
+
server_time: number;
|
|
1657
|
+
lease_ttl_ms: number;
|
|
1658
|
+
};
|
|
1659
|
+
/** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
|
|
1660
|
+
export type RegisterRemoteConnectorBody = {
|
|
1661
|
+
installation_id: string;
|
|
1662
|
+
operation_id: string;
|
|
1663
|
+
label?: string;
|
|
1664
|
+
capabilities: {
|
|
1665
|
+
native_execution: boolean;
|
|
1666
|
+
history_import?: boolean;
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
export type RegisterRemoteConnectorResponse = {
|
|
1670
|
+
connector: {
|
|
1671
|
+
id: string;
|
|
1672
|
+
connector_id: string;
|
|
1673
|
+
label: string;
|
|
1674
|
+
created_at: string;
|
|
1675
|
+
last_seen_at: string | null;
|
|
1676
|
+
status: "online" | "offline" | "revoked";
|
|
1677
|
+
capabilities: {
|
|
1678
|
+
observe: true;
|
|
1679
|
+
native_execution: boolean;
|
|
1680
|
+
history_import: boolean;
|
|
1681
|
+
};
|
|
1682
|
+
targets: Array<Record<string, unknown>>;
|
|
1683
|
+
};
|
|
1684
|
+
credential: string;
|
|
1685
|
+
credential_expires_at: string;
|
|
1686
|
+
};
|
|
1687
|
+
/** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
|
|
1688
|
+
export type RemoteCommandEventsBody = {
|
|
1689
|
+
lease_token: string;
|
|
1690
|
+
sequence: number;
|
|
1691
|
+
events: Array<Record<string, unknown>>;
|
|
1692
|
+
};
|
|
1693
|
+
export type RemoteCommandEventsResponse = {
|
|
1694
|
+
accepted: true;
|
|
1695
|
+
};
|
|
1696
|
+
/** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
|
|
1697
|
+
export type RevokeRemoteConnectorResponse = {
|
|
1698
|
+
connector: {
|
|
1699
|
+
id: string;
|
|
1700
|
+
connector_id: string;
|
|
1701
|
+
label: string;
|
|
1702
|
+
created_at: string;
|
|
1703
|
+
last_seen_at: string | null;
|
|
1704
|
+
status: "online" | "offline" | "revoked";
|
|
1705
|
+
capabilities: {
|
|
1706
|
+
observe: true;
|
|
1707
|
+
native_execution: boolean;
|
|
1708
|
+
history_import: boolean;
|
|
1709
|
+
};
|
|
1710
|
+
targets: Array<Record<string, unknown>>;
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1121
1713
|
/** Reserve an upload (POST /files). */
|
|
1122
1714
|
export type CreateFileBody = FileCreate;
|
|
1123
1715
|
export interface CreateFileParams {
|
|
@@ -1414,6 +2006,7 @@ export type GetLearningCostResponse = {
|
|
|
1414
2006
|
workflow: string | null;
|
|
1415
2007
|
learned_revision: string | null;
|
|
1416
2008
|
cost_usd: number | null;
|
|
2009
|
+
cost_upper_bound: boolean;
|
|
1417
2010
|
learning_usd: number | null;
|
|
1418
2011
|
total_usd: number | null;
|
|
1419
2012
|
}>;
|
|
@@ -1447,11 +2040,22 @@ export type GetLearningCostResponse = {
|
|
|
1447
2040
|
runs: number;
|
|
1448
2041
|
mean_usd: number;
|
|
1449
2042
|
} | null;
|
|
2043
|
+
after_state: "priced" | "no_served_runs" | "cost_unknown";
|
|
1450
2044
|
times_cheaper: number | null;
|
|
1451
2045
|
hand_backs: {
|
|
1452
2046
|
ran: number;
|
|
1453
2047
|
back: number;
|
|
1454
2048
|
} | null;
|
|
2049
|
+
withheld: {
|
|
2050
|
+
unknown: number;
|
|
2051
|
+
at_most: number;
|
|
2052
|
+
} | null;
|
|
2053
|
+
replay: {
|
|
2054
|
+
n: number;
|
|
2055
|
+
workflow_pct: number;
|
|
2056
|
+
agent_pct: number;
|
|
2057
|
+
cleared: boolean;
|
|
2058
|
+
} | null;
|
|
1455
2059
|
};
|
|
1456
2060
|
};
|
|
1457
2061
|
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
@@ -1683,6 +2287,31 @@ export type RecordLearningEvalResponse = {
|
|
|
1683
2287
|
ci: Array<number>;
|
|
1684
2288
|
recorded_at: string;
|
|
1685
2289
|
};
|
|
2290
|
+
/** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
|
|
2291
|
+
export type GetLearnedWorkflowReplayResponse = {
|
|
2292
|
+
replay: string;
|
|
2293
|
+
workflow: string;
|
|
2294
|
+
digest: string;
|
|
2295
|
+
status: "running" | "done" | "failed";
|
|
2296
|
+
inputs: number;
|
|
2297
|
+
outcomes: {
|
|
2298
|
+
answered: number;
|
|
2299
|
+
handed_back: number;
|
|
2300
|
+
failed: number;
|
|
2301
|
+
skipped_write: number;
|
|
2302
|
+
};
|
|
2303
|
+
score: {
|
|
2304
|
+
n: number;
|
|
2305
|
+
agree: number;
|
|
2306
|
+
agent_acc: number;
|
|
2307
|
+
wf_acc: number;
|
|
2308
|
+
delta: number;
|
|
2309
|
+
handed_back: number;
|
|
2310
|
+
};
|
|
2311
|
+
cost_usd: number | null;
|
|
2312
|
+
decided?: "promote" | "hold";
|
|
2313
|
+
reason?: string;
|
|
2314
|
+
};
|
|
1686
2315
|
/** Retire a note, a skill or a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
|
|
1687
2316
|
export interface RetireLearningFileParams {
|
|
1688
2317
|
"If-Match"?: string;
|
|
@@ -1732,7 +2361,12 @@ export type CreatePairingResponse = {
|
|
|
1732
2361
|
code: string;
|
|
1733
2362
|
expires_at: string;
|
|
1734
2363
|
};
|
|
2364
|
+
/** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
|
|
2365
|
+
export type DeleteComposioSubscriptionResponse = {
|
|
2366
|
+
deleted: true;
|
|
2367
|
+
};
|
|
1735
2368
|
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
2369
|
+
/** Forget this server's email account (DELETE /settings/email). */
|
|
1736
2370
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
1737
2371
|
export type DeleteWorkspaceArchilResponse = {
|
|
1738
2372
|
on: boolean;
|
|
@@ -1753,6 +2387,43 @@ export type DisconnectGitHubResponse = {
|
|
|
1753
2387
|
triggers_off: number;
|
|
1754
2388
|
note: string;
|
|
1755
2389
|
};
|
|
2390
|
+
/** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
|
|
2391
|
+
export type FinishChatGPTSignInBody = {
|
|
2392
|
+
redirect_url: string;
|
|
2393
|
+
};
|
|
2394
|
+
export type FinishChatGPTSignInResponse = {
|
|
2395
|
+
state: "signed_out" | "pending" | "signed_in" | "expired";
|
|
2396
|
+
email?: string;
|
|
2397
|
+
plan?: string;
|
|
2398
|
+
authorize_url?: string;
|
|
2399
|
+
expires_at?: string;
|
|
2400
|
+
models?: Array<string>;
|
|
2401
|
+
};
|
|
2402
|
+
/** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
|
|
2403
|
+
export type GetChatGPTSignInResponse = {
|
|
2404
|
+
state: "signed_out" | "pending" | "signed_in" | "expired";
|
|
2405
|
+
email?: string;
|
|
2406
|
+
plan?: string;
|
|
2407
|
+
authorize_url?: string;
|
|
2408
|
+
expires_at?: string;
|
|
2409
|
+
models?: Array<string>;
|
|
2410
|
+
};
|
|
2411
|
+
/** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
|
|
2412
|
+
export type GetEmailAccountResponse = {
|
|
2413
|
+
configured: boolean;
|
|
2414
|
+
preset: "gmail" | "fastmail" | "icloud" | "other" | null;
|
|
2415
|
+
address: string | null;
|
|
2416
|
+
user: string | null;
|
|
2417
|
+
imap: {
|
|
2418
|
+
host: string;
|
|
2419
|
+
port: number;
|
|
2420
|
+
} | null;
|
|
2421
|
+
smtp: {
|
|
2422
|
+
host: string;
|
|
2423
|
+
port: number;
|
|
2424
|
+
} | null;
|
|
2425
|
+
password_unreadable: boolean;
|
|
2426
|
+
};
|
|
1756
2427
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
1757
2428
|
export type GetGitHubConnectionResponse = {
|
|
1758
2429
|
connected: false;
|
|
@@ -1790,6 +2461,19 @@ export interface GitHubInstalledParams {
|
|
|
1790
2461
|
setup_action?: string;
|
|
1791
2462
|
state?: string;
|
|
1792
2463
|
}
|
|
2464
|
+
/** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
|
|
2465
|
+
export type ListComposioEventsResponse = {
|
|
2466
|
+
server: string;
|
|
2467
|
+
toolkit: string;
|
|
2468
|
+
events: Array<{
|
|
2469
|
+
slug: string;
|
|
2470
|
+
name: string;
|
|
2471
|
+
description: string;
|
|
2472
|
+
config: Record<string, unknown>;
|
|
2473
|
+
polled: boolean;
|
|
2474
|
+
instructions?: string;
|
|
2475
|
+
}>;
|
|
2476
|
+
};
|
|
1793
2477
|
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
1794
2478
|
export type ListComposioToolsBody = {
|
|
1795
2479
|
api_key: string;
|
|
@@ -1804,6 +2488,22 @@ export type ListComposioToolsResponse = {
|
|
|
1804
2488
|
description: string;
|
|
1805
2489
|
}>;
|
|
1806
2490
|
};
|
|
2491
|
+
/** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
|
|
2492
|
+
export type ListComposioTriggersResponse = {
|
|
2493
|
+
triggers: Array<{
|
|
2494
|
+
id: string;
|
|
2495
|
+
name: string;
|
|
2496
|
+
enabled: boolean;
|
|
2497
|
+
event: string;
|
|
2498
|
+
instance_id: string;
|
|
2499
|
+
on_composio: "on" | "off" | "missing" | "unknown";
|
|
2500
|
+
}>;
|
|
2501
|
+
subscription: {
|
|
2502
|
+
ours: boolean;
|
|
2503
|
+
webhook_url: string;
|
|
2504
|
+
} | null;
|
|
2505
|
+
composio_error?: string;
|
|
2506
|
+
};
|
|
1807
2507
|
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
1808
2508
|
export type ListComputerChoicesResponse = {
|
|
1809
2509
|
choices: Array<{
|
|
@@ -1922,6 +2622,54 @@ export type PutWorkspaceArchilResponse = {
|
|
|
1922
2622
|
s3Url?: string;
|
|
1923
2623
|
image?: string;
|
|
1924
2624
|
};
|
|
2625
|
+
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
2626
|
+
export type ReceiveHookComposioResponse = {
|
|
2627
|
+
firings: Array<{
|
|
2628
|
+
key: string;
|
|
2629
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2630
|
+
nominal_at: string;
|
|
2631
|
+
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2632
|
+
at: string;
|
|
2633
|
+
run_id: string | null;
|
|
2634
|
+
reason: string | null;
|
|
2635
|
+
error: {
|
|
2636
|
+
code: string;
|
|
2637
|
+
message: string;
|
|
2638
|
+
} | null;
|
|
2639
|
+
count?: number;
|
|
2640
|
+
attempts?: number;
|
|
2641
|
+
retry_at?: string;
|
|
2642
|
+
catch_up?: true;
|
|
2643
|
+
} | {
|
|
2644
|
+
ok: "duplicate";
|
|
2645
|
+
}>;
|
|
2646
|
+
} | {
|
|
2647
|
+
ok: "ignored";
|
|
2648
|
+
} | {
|
|
2649
|
+
firings: Array<{
|
|
2650
|
+
key: string;
|
|
2651
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2652
|
+
nominal_at: string;
|
|
2653
|
+
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2654
|
+
at: string;
|
|
2655
|
+
run_id: string | null;
|
|
2656
|
+
reason: string | null;
|
|
2657
|
+
error: {
|
|
2658
|
+
code: string;
|
|
2659
|
+
message: string;
|
|
2660
|
+
} | null;
|
|
2661
|
+
count?: number;
|
|
2662
|
+
attempts?: number;
|
|
2663
|
+
retry_at?: string;
|
|
2664
|
+
catch_up?: true;
|
|
2665
|
+
} | {
|
|
2666
|
+
ok: "duplicate";
|
|
2667
|
+
}>;
|
|
2668
|
+
};
|
|
2669
|
+
/** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
|
|
2670
|
+
export type RotateComposioSecretResponse = {
|
|
2671
|
+
rotated: true;
|
|
2672
|
+
};
|
|
1925
2673
|
/** Have Composio make a managed MCP server for a toolkit's chosen actions, and save it as an MCP server (PUT /settings/mcp-servers/{name}/composio). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
1926
2674
|
export type SaveComposioServerBody = {
|
|
1927
2675
|
api_key: string;
|
|
@@ -2016,6 +2764,46 @@ export type SaveComputerKeysResponse = {
|
|
|
2016
2764
|
images?: Array<string>;
|
|
2017
2765
|
};
|
|
2018
2766
|
};
|
|
2767
|
+
/** Save this server's email account, its password sealed (PUT /settings/email). */
|
|
2768
|
+
export type SaveEmailAccountBody = {
|
|
2769
|
+
preset?: "gmail" | "fastmail" | "icloud" | "other" | "outlook";
|
|
2770
|
+
address: string;
|
|
2771
|
+
user?: string;
|
|
2772
|
+
password: string;
|
|
2773
|
+
imap?: {
|
|
2774
|
+
host: string;
|
|
2775
|
+
port: number;
|
|
2776
|
+
};
|
|
2777
|
+
smtp?: {
|
|
2778
|
+
host: string;
|
|
2779
|
+
port: number;
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2782
|
+
export type SaveEmailAccountResponse = {
|
|
2783
|
+
configured: boolean;
|
|
2784
|
+
preset: "gmail" | "fastmail" | "icloud" | "other" | null;
|
|
2785
|
+
address: string | null;
|
|
2786
|
+
user: string | null;
|
|
2787
|
+
imap: {
|
|
2788
|
+
host: string;
|
|
2789
|
+
port: number;
|
|
2790
|
+
} | null;
|
|
2791
|
+
smtp: {
|
|
2792
|
+
host: string;
|
|
2793
|
+
port: number;
|
|
2794
|
+
} | null;
|
|
2795
|
+
password_unreadable: boolean;
|
|
2796
|
+
};
|
|
2797
|
+
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
2798
|
+
export type SignOutChatGPTResponse = {
|
|
2799
|
+
revoked: boolean;
|
|
2800
|
+
message?: string;
|
|
2801
|
+
};
|
|
2802
|
+
/** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
|
|
2803
|
+
export type StartChatGPTSignInResponse = {
|
|
2804
|
+
authorize_url: string;
|
|
2805
|
+
expires_at: string;
|
|
2806
|
+
};
|
|
2019
2807
|
/** Start signing in to an MCP server with OAuth: the page the owner opens (POST /settings/mcp-servers/{name}/oauth/start). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
2020
2808
|
export type StartMcpOAuthBody = {
|
|
2021
2809
|
url: string;
|
|
@@ -2035,6 +2823,32 @@ export type TestComputerResponse = {
|
|
|
2035
2823
|
ok: false;
|
|
2036
2824
|
why: string;
|
|
2037
2825
|
};
|
|
2826
|
+
/** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
|
|
2827
|
+
export type TestEmailAccountBody = {
|
|
2828
|
+
preset?: "gmail" | "fastmail" | "icloud" | "other" | "outlook";
|
|
2829
|
+
address?: string;
|
|
2830
|
+
user?: string;
|
|
2831
|
+
password?: string;
|
|
2832
|
+
imap?: {
|
|
2833
|
+
host: string;
|
|
2834
|
+
port: number;
|
|
2835
|
+
};
|
|
2836
|
+
smtp?: {
|
|
2837
|
+
host: string;
|
|
2838
|
+
port: number;
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
export type TestEmailAccountResponse = {
|
|
2842
|
+
ok: boolean;
|
|
2843
|
+
imap: {
|
|
2844
|
+
ok: boolean;
|
|
2845
|
+
message: string;
|
|
2846
|
+
};
|
|
2847
|
+
smtp: {
|
|
2848
|
+
ok: boolean;
|
|
2849
|
+
message: string;
|
|
2850
|
+
};
|
|
2851
|
+
};
|
|
2038
2852
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
2039
2853
|
export type TestWorkspaceArchilResponse = {
|
|
2040
2854
|
ok: true;
|
|
@@ -2280,6 +3094,84 @@ export type SaveMcpServerResponse = {
|
|
|
2280
3094
|
updated_at: string;
|
|
2281
3095
|
secret?: SecretMeta;
|
|
2282
3096
|
};
|
|
3097
|
+
/** Read activity and token usage reported by externally running agents (GET /observations). */
|
|
3098
|
+
export interface GetObservationsParams {
|
|
3099
|
+
days?: number;
|
|
3100
|
+
session_id?: string;
|
|
3101
|
+
}
|
|
3102
|
+
export type GetObservationsResponse = {
|
|
3103
|
+
connectors: Array<{
|
|
3104
|
+
id: string;
|
|
3105
|
+
display_name: string;
|
|
3106
|
+
connection_state: "online" | "offline" | "disconnected";
|
|
3107
|
+
ingestion_mode: "polling" | "otlp";
|
|
3108
|
+
last_heartbeat_at: string | null;
|
|
3109
|
+
receipt_count: number;
|
|
3110
|
+
receipt_capacity: number;
|
|
3111
|
+
storage_full: boolean;
|
|
3112
|
+
}>;
|
|
3113
|
+
sessions: Array<{
|
|
3114
|
+
id: string;
|
|
3115
|
+
connector_id: string;
|
|
3116
|
+
source_id: string;
|
|
3117
|
+
external_session_id: string;
|
|
3118
|
+
harness: "claude" | "codex";
|
|
3119
|
+
activity: "unknown" | "working" | "idle" | "waiting_input" | "finished" | "failed" | "stopped";
|
|
3120
|
+
reported_activity: "unknown" | "working" | "idle" | "waiting_input" | "finished" | "failed" | "stopped";
|
|
3121
|
+
connection_state: "online" | "offline" | "disconnected";
|
|
3122
|
+
selection_active: boolean;
|
|
3123
|
+
occurred_at: string;
|
|
3124
|
+
received_at: string;
|
|
3125
|
+
created_at: string;
|
|
3126
|
+
updated_at: string;
|
|
3127
|
+
sequence: number;
|
|
3128
|
+
display_name: string;
|
|
3129
|
+
models: Array<string>;
|
|
3130
|
+
usage: {
|
|
3131
|
+
input_tokens: number;
|
|
3132
|
+
output_tokens: number;
|
|
3133
|
+
cache_read_tokens: number | null;
|
|
3134
|
+
cache_write_tokens: number | null;
|
|
3135
|
+
total_tokens: number;
|
|
3136
|
+
cache_hit_rate: number | null;
|
|
3137
|
+
overflow: boolean;
|
|
3138
|
+
status: "reported" | "unavailable";
|
|
3139
|
+
};
|
|
3140
|
+
observation_only: true;
|
|
3141
|
+
}>;
|
|
3142
|
+
usage: {
|
|
3143
|
+
input_tokens: number | null;
|
|
3144
|
+
output_tokens: number | null;
|
|
3145
|
+
cache_read_tokens: number | null;
|
|
3146
|
+
cache_write_tokens: number | null;
|
|
3147
|
+
total_tokens: number | null;
|
|
3148
|
+
cache_hit_rate: number | null;
|
|
3149
|
+
overflow: boolean;
|
|
3150
|
+
status: "partial" | "unavailable";
|
|
3151
|
+
models: Array<{
|
|
3152
|
+
input_tokens: number | null;
|
|
3153
|
+
output_tokens: number | null;
|
|
3154
|
+
cache_read_tokens: number | null;
|
|
3155
|
+
cache_write_tokens: number | null;
|
|
3156
|
+
total_tokens: number | null;
|
|
3157
|
+
cache_hit_rate: number | null;
|
|
3158
|
+
overflow: boolean;
|
|
3159
|
+
model: string;
|
|
3160
|
+
}>;
|
|
3161
|
+
daily: Array<{
|
|
3162
|
+
date: string;
|
|
3163
|
+
total_tokens: number | null;
|
|
3164
|
+
}>;
|
|
3165
|
+
};
|
|
3166
|
+
limits: {
|
|
3167
|
+
max_receipts_per_connector: number;
|
|
3168
|
+
max_sessions_per_connector: number;
|
|
3169
|
+
receipt_retention: string;
|
|
3170
|
+
receipt_window_seconds: number;
|
|
3171
|
+
session_retention_days: number;
|
|
3172
|
+
usage_retention_days: number;
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
2283
3175
|
/** The agent's revisions, newest first (GET /agents/{agent_id}/revisions). */
|
|
2284
3176
|
export interface ListRevisionsParams {
|
|
2285
3177
|
limit?: number;
|
|
@@ -2536,6 +3428,17 @@ export type GetRunLearningResponse = {
|
|
|
2536
3428
|
name: string;
|
|
2537
3429
|
pending?: true;
|
|
2538
3430
|
}>;
|
|
3431
|
+
graded?: {
|
|
3432
|
+
run_id: string;
|
|
3433
|
+
correct: boolean;
|
|
3434
|
+
source: "feedback" | "eval";
|
|
3435
|
+
graded_at: string;
|
|
3436
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
3437
|
+
workflow: string | null;
|
|
3438
|
+
workflow_digest: string | null;
|
|
3439
|
+
feedback: "revise" | "look_back" | null;
|
|
3440
|
+
feedback_status: "running" | "ended" | "not_run" | null;
|
|
3441
|
+
};
|
|
2539
3442
|
} | null;
|
|
2540
3443
|
/** What the run proposed, file by file (GET /runs/{run_id}/learning/diff). */
|
|
2541
3444
|
export type GetRunLearningDiffResponse = {
|
|
@@ -2615,16 +3518,110 @@ export type TakeOverRunComputerResponse = {
|
|
|
2615
3518
|
hold: "agent" | "pending" | "person";
|
|
2616
3519
|
outcome?: "done" | "cancelled" | "expired";
|
|
2617
3520
|
};
|
|
2618
|
-
/** The run's timeline, as a page or a stream (GET /runs/{run_id}/timeline). */
|
|
2619
|
-
export interface GetTimelineParams {
|
|
2620
|
-
after?: number;
|
|
2621
|
-
wait_ms?: number;
|
|
2622
|
-
limit?: number;
|
|
2623
|
-
"
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
3521
|
+
/** The run's timeline, as a page or a stream (GET /runs/{run_id}/timeline). */
|
|
3522
|
+
export interface GetTimelineParams {
|
|
3523
|
+
after?: number;
|
|
3524
|
+
wait_ms?: number;
|
|
3525
|
+
limit?: number;
|
|
3526
|
+
calls?: "whole";
|
|
3527
|
+
"Last-Event-ID"?: string;
|
|
3528
|
+
}
|
|
3529
|
+
export type GetTimelineResponse = TimelinePage;
|
|
3530
|
+
/** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
|
|
3531
|
+
export type UnarchiveRunResponse = Record<string, unknown>;
|
|
3532
|
+
/** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
|
|
3533
|
+
export type CompleteSdkRunBody = {
|
|
3534
|
+
status: "completed" | "failed" | "cancelled";
|
|
3535
|
+
answer: string;
|
|
3536
|
+
error?: string;
|
|
3537
|
+
model?: string;
|
|
3538
|
+
session_id?: string;
|
|
3539
|
+
usage?: {
|
|
3540
|
+
input_tokens?: number | null;
|
|
3541
|
+
output_tokens?: number | null;
|
|
3542
|
+
cache_read_tokens?: number | null;
|
|
3543
|
+
cache_write_tokens?: number | null;
|
|
3544
|
+
cost_usd?: number | null;
|
|
3545
|
+
};
|
|
3546
|
+
evidence_complete?: boolean;
|
|
3547
|
+
};
|
|
3548
|
+
export interface CompleteSdkRunParams {
|
|
3549
|
+
"Idempotency-Key"?: string;
|
|
3550
|
+
}
|
|
3551
|
+
export type CompleteSdkRunResponse = {
|
|
3552
|
+
accepted: true;
|
|
3553
|
+
};
|
|
3554
|
+
/** Record bounded SDK execution evidence (POST /sdk-runs/{run_id}/events). */
|
|
3555
|
+
export type SdkRunEventsBody = {
|
|
3556
|
+
sequence: number;
|
|
3557
|
+
events: Array<{
|
|
3558
|
+
type: "text";
|
|
3559
|
+
text: string;
|
|
3560
|
+
} | {
|
|
3561
|
+
type: "session";
|
|
3562
|
+
session_id: string;
|
|
3563
|
+
} | {
|
|
3564
|
+
type: "tool";
|
|
3565
|
+
id: string;
|
|
3566
|
+
name: string;
|
|
3567
|
+
status: "started" | "completed" | "failed";
|
|
3568
|
+
input?: unknown;
|
|
3569
|
+
output?: unknown;
|
|
3570
|
+
parent_tool_use_id?: string;
|
|
3571
|
+
}>;
|
|
3572
|
+
};
|
|
3573
|
+
export interface SdkRunEventsParams {
|
|
3574
|
+
"Idempotency-Key"?: string;
|
|
3575
|
+
}
|
|
3576
|
+
export type SdkRunEventsResponse = {
|
|
3577
|
+
accepted: true;
|
|
3578
|
+
};
|
|
3579
|
+
/** Read SDK run and learning state (GET /sdk-runs/{run_id}). */
|
|
3580
|
+
export type GetSdkRunResponse = {
|
|
3581
|
+
run_id: string;
|
|
3582
|
+
state: "running" | "processing" | "completed" | "failed" | "cancelled";
|
|
3583
|
+
learning_run_id?: string;
|
|
3584
|
+
learning: unknown;
|
|
3585
|
+
};
|
|
3586
|
+
/** Register a task executed by an existing backend SDK (POST /agents/{agent_id}/sdk-runs). */
|
|
3587
|
+
export type StartSdkRunBody = {
|
|
3588
|
+
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
3589
|
+
input: string;
|
|
3590
|
+
instructions: string;
|
|
3591
|
+
model?: string;
|
|
3592
|
+
workflow_tools?: Array<{
|
|
3593
|
+
name: string;
|
|
3594
|
+
description: string;
|
|
3595
|
+
input_schema: Record<string, unknown>;
|
|
3596
|
+
output_schema?: Record<string, unknown>;
|
|
3597
|
+
permission: "allow" | "ask" | "deny";
|
|
3598
|
+
price_usd?: number;
|
|
3599
|
+
}>;
|
|
3600
|
+
workflow_adapters?: Array<"runNode" | "runJudge">;
|
|
3601
|
+
};
|
|
3602
|
+
export interface StartSdkRunParams {
|
|
3603
|
+
"Idempotency-Key": string;
|
|
3604
|
+
}
|
|
3605
|
+
export type StartSdkRunResponse = {
|
|
3606
|
+
run_id: string;
|
|
3607
|
+
agent_id: string;
|
|
3608
|
+
console_url: string;
|
|
3609
|
+
token: string;
|
|
3610
|
+
learning: {
|
|
3611
|
+
enabled: boolean;
|
|
3612
|
+
revision: string | null;
|
|
3613
|
+
context: string;
|
|
3614
|
+
skills: Array<{
|
|
3615
|
+
name: string;
|
|
3616
|
+
files: Record<string, string>;
|
|
3617
|
+
}>;
|
|
3618
|
+
workflows: Array<{
|
|
3619
|
+
name: string;
|
|
3620
|
+
workflow: string;
|
|
3621
|
+
description: string;
|
|
3622
|
+
}>;
|
|
3623
|
+
};
|
|
3624
|
+
};
|
|
2628
3625
|
/** What this backend offers (GET /capabilities). */
|
|
2629
3626
|
export type GetCapabilitiesResponse = Capabilities;
|
|
2630
3627
|
/** Whether this server can serve (GET /health). */
|
|
@@ -2695,15 +3692,15 @@ export type GetStatsResponse = {
|
|
|
2695
3692
|
needs_review: number;
|
|
2696
3693
|
failed: number;
|
|
2697
3694
|
runs_with_metrics: number;
|
|
2698
|
-
tokens: number;
|
|
3695
|
+
tokens: number | null;
|
|
2699
3696
|
cost_usd: number | null;
|
|
2700
3697
|
unknown_cost_runs: number;
|
|
2701
|
-
input: number;
|
|
2702
|
-
cache_read: number;
|
|
2703
|
-
cache_write: number;
|
|
2704
|
-
output: number;
|
|
2705
|
-
requests: number;
|
|
2706
|
-
unmetered: number;
|
|
3698
|
+
input: number | null;
|
|
3699
|
+
cache_read: number | null;
|
|
3700
|
+
cache_write: number | null;
|
|
3701
|
+
output: number | null;
|
|
3702
|
+
requests: number | null;
|
|
3703
|
+
unmetered: number | null;
|
|
2707
3704
|
};
|
|
2708
3705
|
time: {
|
|
2709
3706
|
ended_runs: number;
|
|
@@ -2719,7 +3716,7 @@ export type GetStatsResponse = {
|
|
|
2719
3716
|
needs_review: number;
|
|
2720
3717
|
failed: number;
|
|
2721
3718
|
runs_with_metrics: number;
|
|
2722
|
-
tokens: number;
|
|
3719
|
+
tokens: number | null;
|
|
2723
3720
|
cost_usd: number | null;
|
|
2724
3721
|
unknown_cost_runs: number;
|
|
2725
3722
|
}>;
|
|
@@ -2730,7 +3727,7 @@ export type GetStatsResponse = {
|
|
|
2730
3727
|
needs_review: number;
|
|
2731
3728
|
failed: number;
|
|
2732
3729
|
runs_with_metrics: number;
|
|
2733
|
-
tokens: number;
|
|
3730
|
+
tokens: number | null;
|
|
2734
3731
|
cost_usd: number | null;
|
|
2735
3732
|
unknown_cost_runs: number;
|
|
2736
3733
|
}>;
|
|
@@ -2741,7 +3738,7 @@ export type GetStatsResponse = {
|
|
|
2741
3738
|
needs_review: number;
|
|
2742
3739
|
failed: number;
|
|
2743
3740
|
runs_with_metrics: number;
|
|
2744
|
-
tokens: number;
|
|
3741
|
+
tokens: number | null;
|
|
2745
3742
|
cost_usd: number | null;
|
|
2746
3743
|
unknown_cost_runs: number;
|
|
2747
3744
|
}>;
|
|
@@ -2766,6 +3763,7 @@ export type ApplyTemplateBody = {
|
|
|
2766
3763
|
grants?: Array<string>;
|
|
2767
3764
|
overrides?: {
|
|
2768
3765
|
model?: string;
|
|
3766
|
+
choice?: string;
|
|
2769
3767
|
approvals?: "ask" | "never";
|
|
2770
3768
|
};
|
|
2771
3769
|
};
|
|
@@ -2820,6 +3818,17 @@ export type ImportTemplateResponse = {
|
|
|
2820
3818
|
model: {
|
|
2821
3819
|
tier: "fast" | "balanced" | "strong";
|
|
2822
3820
|
prefer?: string;
|
|
3821
|
+
fast?: string;
|
|
3822
|
+
strong?: string;
|
|
3823
|
+
choices?: Array<{
|
|
3824
|
+
id: string;
|
|
3825
|
+
label: string;
|
|
3826
|
+
model: string;
|
|
3827
|
+
harness: string;
|
|
3828
|
+
warning: string | null;
|
|
3829
|
+
note: string | null;
|
|
3830
|
+
secrets: Array<string>;
|
|
3831
|
+
}>;
|
|
2823
3832
|
} | null;
|
|
2824
3833
|
effort: string | null;
|
|
2825
3834
|
tools: Array<string> | null;
|
|
@@ -2900,6 +3909,17 @@ export type ListTemplatesResponse = {
|
|
|
2900
3909
|
model: {
|
|
2901
3910
|
tier: "fast" | "balanced" | "strong";
|
|
2902
3911
|
prefer?: string;
|
|
3912
|
+
fast?: string;
|
|
3913
|
+
strong?: string;
|
|
3914
|
+
choices?: Array<{
|
|
3915
|
+
id: string;
|
|
3916
|
+
label: string;
|
|
3917
|
+
model: string;
|
|
3918
|
+
harness: string;
|
|
3919
|
+
warning: string | null;
|
|
3920
|
+
note: string | null;
|
|
3921
|
+
secrets: Array<string>;
|
|
3922
|
+
}>;
|
|
2903
3923
|
} | null;
|
|
2904
3924
|
effort: string | null;
|
|
2905
3925
|
tools: Array<string> | null;
|
|
@@ -3026,6 +4046,21 @@ export type PutToolSettingsBody = {
|
|
|
3026
4046
|
provider?: "auto" | "native" | "exa-keyless" | "parallel" | "off";
|
|
3027
4047
|
permission?: "allow" | "ask" | "deny";
|
|
3028
4048
|
};
|
|
4049
|
+
email_search?: {
|
|
4050
|
+
permission?: "allow" | "ask" | "deny";
|
|
4051
|
+
};
|
|
4052
|
+
email_read?: {
|
|
4053
|
+
permission?: "allow" | "ask" | "deny";
|
|
4054
|
+
};
|
|
4055
|
+
email_draft?: {
|
|
4056
|
+
permission?: "allow" | "ask" | "deny";
|
|
4057
|
+
};
|
|
4058
|
+
email_send?: {
|
|
4059
|
+
permission?: "allow" | "ask" | "deny";
|
|
4060
|
+
};
|
|
4061
|
+
email_file?: {
|
|
4062
|
+
permission?: "allow" | "ask" | "deny";
|
|
4063
|
+
};
|
|
3029
4064
|
browser?: {
|
|
3030
4065
|
provider?: "auto" | "browserbase" | "kernel" | "chrome";
|
|
3031
4066
|
permission?: "allow" | "deny";
|
|
@@ -3088,7 +4123,7 @@ export type CreateTriggerBody = {
|
|
|
3088
4123
|
start_at?: string;
|
|
3089
4124
|
} | {
|
|
3090
4125
|
kind: "webhook";
|
|
3091
|
-
signature?: "standard" | "github"
|
|
4126
|
+
signature?: "standard" | "github";
|
|
3092
4127
|
accept?: Array<{
|
|
3093
4128
|
event: string;
|
|
3094
4129
|
actions?: Array<string>;
|
|
@@ -3119,6 +4154,47 @@ export type CreateTriggerBody = {
|
|
|
3119
4154
|
prefix: string;
|
|
3120
4155
|
}>;
|
|
3121
4156
|
}>;
|
|
4157
|
+
} | {
|
|
4158
|
+
kind: "composio";
|
|
4159
|
+
server: string;
|
|
4160
|
+
event: string;
|
|
4161
|
+
config: Record<string, unknown>;
|
|
4162
|
+
accept?: Array<{
|
|
4163
|
+
event: string;
|
|
4164
|
+
actions?: Array<string>;
|
|
4165
|
+
where?: Array<{
|
|
4166
|
+
pointer: string;
|
|
4167
|
+
in: Array<unknown>;
|
|
4168
|
+
} | {
|
|
4169
|
+
pointer: string;
|
|
4170
|
+
exists: boolean;
|
|
4171
|
+
} | {
|
|
4172
|
+
pointer: string;
|
|
4173
|
+
prefix: string;
|
|
4174
|
+
}>;
|
|
4175
|
+
}>;
|
|
4176
|
+
instance_id?: string;
|
|
4177
|
+
hook?: string;
|
|
4178
|
+
move_subscription?: true;
|
|
4179
|
+
} | {
|
|
4180
|
+
kind: "email";
|
|
4181
|
+
account?: "default";
|
|
4182
|
+
mailbox?: string;
|
|
4183
|
+
every_s?: number;
|
|
4184
|
+
accept?: Array<{
|
|
4185
|
+
event: string;
|
|
4186
|
+
actions?: Array<string>;
|
|
4187
|
+
where?: Array<{
|
|
4188
|
+
pointer: string;
|
|
4189
|
+
in: Array<unknown>;
|
|
4190
|
+
} | {
|
|
4191
|
+
pointer: string;
|
|
4192
|
+
exists: boolean;
|
|
4193
|
+
} | {
|
|
4194
|
+
pointer: string;
|
|
4195
|
+
prefix: string;
|
|
4196
|
+
}>;
|
|
4197
|
+
}>;
|
|
3122
4198
|
};
|
|
3123
4199
|
target: {
|
|
3124
4200
|
kind: "start_run";
|
|
@@ -3156,7 +4232,7 @@ export type CreateTriggerResponse = {
|
|
|
3156
4232
|
start_at: string;
|
|
3157
4233
|
} | {
|
|
3158
4234
|
kind: "webhook";
|
|
3159
|
-
signature?: "standard" | "github"
|
|
4235
|
+
signature?: "standard" | "github";
|
|
3160
4236
|
accept?: Array<{
|
|
3161
4237
|
event: string;
|
|
3162
4238
|
actions?: Array<string>;
|
|
@@ -3187,6 +4263,47 @@ export type CreateTriggerResponse = {
|
|
|
3187
4263
|
prefix: string;
|
|
3188
4264
|
}>;
|
|
3189
4265
|
}>;
|
|
4266
|
+
} | {
|
|
4267
|
+
kind: "composio";
|
|
4268
|
+
server: string;
|
|
4269
|
+
event: string;
|
|
4270
|
+
config: Record<string, unknown>;
|
|
4271
|
+
accept?: Array<{
|
|
4272
|
+
event: string;
|
|
4273
|
+
actions?: Array<string>;
|
|
4274
|
+
where?: Array<{
|
|
4275
|
+
pointer: string;
|
|
4276
|
+
in: Array<unknown>;
|
|
4277
|
+
} | {
|
|
4278
|
+
pointer: string;
|
|
4279
|
+
exists: boolean;
|
|
4280
|
+
} | {
|
|
4281
|
+
pointer: string;
|
|
4282
|
+
prefix: string;
|
|
4283
|
+
}>;
|
|
4284
|
+
}>;
|
|
4285
|
+
instance_id?: string;
|
|
4286
|
+
hook?: string;
|
|
4287
|
+
move_subscription?: true;
|
|
4288
|
+
} | {
|
|
4289
|
+
kind: "email";
|
|
4290
|
+
account: "default";
|
|
4291
|
+
mailbox: string;
|
|
4292
|
+
every_s: number;
|
|
4293
|
+
accept?: Array<{
|
|
4294
|
+
event: string;
|
|
4295
|
+
actions?: Array<string>;
|
|
4296
|
+
where?: Array<{
|
|
4297
|
+
pointer: string;
|
|
4298
|
+
in: Array<unknown>;
|
|
4299
|
+
} | {
|
|
4300
|
+
pointer: string;
|
|
4301
|
+
exists: boolean;
|
|
4302
|
+
} | {
|
|
4303
|
+
pointer: string;
|
|
4304
|
+
prefix: string;
|
|
4305
|
+
}>;
|
|
4306
|
+
}>;
|
|
3190
4307
|
};
|
|
3191
4308
|
target: {
|
|
3192
4309
|
kind: "start_run";
|
|
@@ -3219,6 +4336,10 @@ export type CreateTriggerResponse = {
|
|
|
3219
4336
|
at: string;
|
|
3220
4337
|
reason: "connection_lost";
|
|
3221
4338
|
detail: string;
|
|
4339
|
+
} | {
|
|
4340
|
+
at: string;
|
|
4341
|
+
reason: "sign_in_refused";
|
|
4342
|
+
detail: string;
|
|
3222
4343
|
} | null;
|
|
3223
4344
|
next_at: string | null;
|
|
3224
4345
|
last_run_id: string | null;
|
|
@@ -3226,7 +4347,7 @@ export type CreateTriggerResponse = {
|
|
|
3226
4347
|
updated_at: string;
|
|
3227
4348
|
last_firing: {
|
|
3228
4349
|
key: string;
|
|
3229
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4350
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3230
4351
|
nominal_at: string;
|
|
3231
4352
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3232
4353
|
at: string;
|
|
@@ -3241,6 +4362,11 @@ export type CreateTriggerResponse = {
|
|
|
3241
4362
|
retry_at?: string;
|
|
3242
4363
|
catch_up?: true;
|
|
3243
4364
|
} | null;
|
|
4365
|
+
last_check?: {
|
|
4366
|
+
at: string;
|
|
4367
|
+
ok: boolean;
|
|
4368
|
+
message: string;
|
|
4369
|
+
} | null;
|
|
3244
4370
|
hook_url?: string;
|
|
3245
4371
|
secret?: SecretMeta;
|
|
3246
4372
|
signing_secret?: string;
|
|
@@ -3248,13 +4374,20 @@ export type CreateTriggerResponse = {
|
|
|
3248
4374
|
note?: string;
|
|
3249
4375
|
};
|
|
3250
4376
|
/** Delete a trigger and its firings; the runs it started stay (DELETE /triggers/{trigger_id}). */
|
|
4377
|
+
export type DeleteTriggerResponse = {
|
|
4378
|
+
deleted: true;
|
|
4379
|
+
composio: {
|
|
4380
|
+
done: false;
|
|
4381
|
+
note: string;
|
|
4382
|
+
};
|
|
4383
|
+
};
|
|
3251
4384
|
/** Run it now: one firing per Idempotency-Key (POST /triggers/{trigger_id}/fire). */
|
|
3252
4385
|
export interface FireTriggerParams {
|
|
3253
4386
|
"Idempotency-Key": string;
|
|
3254
4387
|
}
|
|
3255
4388
|
export type FireTriggerResponse = {
|
|
3256
4389
|
key: string;
|
|
3257
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4390
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3258
4391
|
nominal_at: string;
|
|
3259
4392
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3260
4393
|
at: string;
|
|
@@ -3273,7 +4406,7 @@ export type FireTriggerResponse = {
|
|
|
3273
4406
|
export type ListTriggerFiringsResponse = {
|
|
3274
4407
|
firings: Array<{
|
|
3275
4408
|
key: string;
|
|
3276
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4409
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3277
4410
|
nominal_at: string;
|
|
3278
4411
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3279
4412
|
at: string;
|
|
@@ -3307,7 +4440,7 @@ export type GetTriggerResponse = {
|
|
|
3307
4440
|
start_at: string;
|
|
3308
4441
|
} | {
|
|
3309
4442
|
kind: "webhook";
|
|
3310
|
-
signature?: "standard" | "github"
|
|
4443
|
+
signature?: "standard" | "github";
|
|
3311
4444
|
accept?: Array<{
|
|
3312
4445
|
event: string;
|
|
3313
4446
|
actions?: Array<string>;
|
|
@@ -3338,6 +4471,47 @@ export type GetTriggerResponse = {
|
|
|
3338
4471
|
prefix: string;
|
|
3339
4472
|
}>;
|
|
3340
4473
|
}>;
|
|
4474
|
+
} | {
|
|
4475
|
+
kind: "composio";
|
|
4476
|
+
server: string;
|
|
4477
|
+
event: string;
|
|
4478
|
+
config: Record<string, unknown>;
|
|
4479
|
+
accept?: Array<{
|
|
4480
|
+
event: string;
|
|
4481
|
+
actions?: Array<string>;
|
|
4482
|
+
where?: Array<{
|
|
4483
|
+
pointer: string;
|
|
4484
|
+
in: Array<unknown>;
|
|
4485
|
+
} | {
|
|
4486
|
+
pointer: string;
|
|
4487
|
+
exists: boolean;
|
|
4488
|
+
} | {
|
|
4489
|
+
pointer: string;
|
|
4490
|
+
prefix: string;
|
|
4491
|
+
}>;
|
|
4492
|
+
}>;
|
|
4493
|
+
instance_id?: string;
|
|
4494
|
+
hook?: string;
|
|
4495
|
+
move_subscription?: true;
|
|
4496
|
+
} | {
|
|
4497
|
+
kind: "email";
|
|
4498
|
+
account: "default";
|
|
4499
|
+
mailbox: string;
|
|
4500
|
+
every_s: number;
|
|
4501
|
+
accept?: Array<{
|
|
4502
|
+
event: string;
|
|
4503
|
+
actions?: Array<string>;
|
|
4504
|
+
where?: Array<{
|
|
4505
|
+
pointer: string;
|
|
4506
|
+
in: Array<unknown>;
|
|
4507
|
+
} | {
|
|
4508
|
+
pointer: string;
|
|
4509
|
+
exists: boolean;
|
|
4510
|
+
} | {
|
|
4511
|
+
pointer: string;
|
|
4512
|
+
prefix: string;
|
|
4513
|
+
}>;
|
|
4514
|
+
}>;
|
|
3341
4515
|
};
|
|
3342
4516
|
target: {
|
|
3343
4517
|
kind: "start_run";
|
|
@@ -3370,6 +4544,10 @@ export type GetTriggerResponse = {
|
|
|
3370
4544
|
at: string;
|
|
3371
4545
|
reason: "connection_lost";
|
|
3372
4546
|
detail: string;
|
|
4547
|
+
} | {
|
|
4548
|
+
at: string;
|
|
4549
|
+
reason: "sign_in_refused";
|
|
4550
|
+
detail: string;
|
|
3373
4551
|
} | null;
|
|
3374
4552
|
next_at: string | null;
|
|
3375
4553
|
last_run_id: string | null;
|
|
@@ -3377,7 +4555,7 @@ export type GetTriggerResponse = {
|
|
|
3377
4555
|
updated_at: string;
|
|
3378
4556
|
last_firing: {
|
|
3379
4557
|
key: string;
|
|
3380
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4558
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3381
4559
|
nominal_at: string;
|
|
3382
4560
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3383
4561
|
at: string;
|
|
@@ -3392,6 +4570,11 @@ export type GetTriggerResponse = {
|
|
|
3392
4570
|
retry_at?: string;
|
|
3393
4571
|
catch_up?: true;
|
|
3394
4572
|
} | null;
|
|
4573
|
+
last_check?: {
|
|
4574
|
+
at: string;
|
|
4575
|
+
ok: boolean;
|
|
4576
|
+
message: string;
|
|
4577
|
+
} | null;
|
|
3395
4578
|
hook_url?: string;
|
|
3396
4579
|
secret?: SecretMeta;
|
|
3397
4580
|
note?: string;
|
|
@@ -3415,7 +4598,7 @@ export type ListTriggersResponse = {
|
|
|
3415
4598
|
start_at: string;
|
|
3416
4599
|
} | {
|
|
3417
4600
|
kind: "webhook";
|
|
3418
|
-
signature?: "standard" | "github"
|
|
4601
|
+
signature?: "standard" | "github";
|
|
3419
4602
|
accept?: Array<{
|
|
3420
4603
|
event: string;
|
|
3421
4604
|
actions?: Array<string>;
|
|
@@ -3446,6 +4629,47 @@ export type ListTriggersResponse = {
|
|
|
3446
4629
|
prefix: string;
|
|
3447
4630
|
}>;
|
|
3448
4631
|
}>;
|
|
4632
|
+
} | {
|
|
4633
|
+
kind: "composio";
|
|
4634
|
+
server: string;
|
|
4635
|
+
event: string;
|
|
4636
|
+
config: Record<string, unknown>;
|
|
4637
|
+
accept?: Array<{
|
|
4638
|
+
event: string;
|
|
4639
|
+
actions?: Array<string>;
|
|
4640
|
+
where?: Array<{
|
|
4641
|
+
pointer: string;
|
|
4642
|
+
in: Array<unknown>;
|
|
4643
|
+
} | {
|
|
4644
|
+
pointer: string;
|
|
4645
|
+
exists: boolean;
|
|
4646
|
+
} | {
|
|
4647
|
+
pointer: string;
|
|
4648
|
+
prefix: string;
|
|
4649
|
+
}>;
|
|
4650
|
+
}>;
|
|
4651
|
+
instance_id?: string;
|
|
4652
|
+
hook?: string;
|
|
4653
|
+
move_subscription?: true;
|
|
4654
|
+
} | {
|
|
4655
|
+
kind: "email";
|
|
4656
|
+
account: "default";
|
|
4657
|
+
mailbox: string;
|
|
4658
|
+
every_s: number;
|
|
4659
|
+
accept?: Array<{
|
|
4660
|
+
event: string;
|
|
4661
|
+
actions?: Array<string>;
|
|
4662
|
+
where?: Array<{
|
|
4663
|
+
pointer: string;
|
|
4664
|
+
in: Array<unknown>;
|
|
4665
|
+
} | {
|
|
4666
|
+
pointer: string;
|
|
4667
|
+
exists: boolean;
|
|
4668
|
+
} | {
|
|
4669
|
+
pointer: string;
|
|
4670
|
+
prefix: string;
|
|
4671
|
+
}>;
|
|
4672
|
+
}>;
|
|
3449
4673
|
};
|
|
3450
4674
|
target: {
|
|
3451
4675
|
kind: "start_run";
|
|
@@ -3478,6 +4702,10 @@ export type ListTriggersResponse = {
|
|
|
3478
4702
|
at: string;
|
|
3479
4703
|
reason: "connection_lost";
|
|
3480
4704
|
detail: string;
|
|
4705
|
+
} | {
|
|
4706
|
+
at: string;
|
|
4707
|
+
reason: "sign_in_refused";
|
|
4708
|
+
detail: string;
|
|
3481
4709
|
} | null;
|
|
3482
4710
|
next_at: string | null;
|
|
3483
4711
|
last_run_id: string | null;
|
|
@@ -3485,7 +4713,7 @@ export type ListTriggersResponse = {
|
|
|
3485
4713
|
updated_at: string;
|
|
3486
4714
|
last_firing: {
|
|
3487
4715
|
key: string;
|
|
3488
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4716
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3489
4717
|
nominal_at: string;
|
|
3490
4718
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3491
4719
|
at: string;
|
|
@@ -3500,15 +4728,17 @@ export type ListTriggersResponse = {
|
|
|
3500
4728
|
retry_at?: string;
|
|
3501
4729
|
catch_up?: true;
|
|
3502
4730
|
} | null;
|
|
4731
|
+
last_check?: {
|
|
4732
|
+
at: string;
|
|
4733
|
+
ok: boolean;
|
|
4734
|
+
message: string;
|
|
4735
|
+
} | null;
|
|
3503
4736
|
hook_url?: string;
|
|
3504
4737
|
secret?: SecretMeta;
|
|
3505
4738
|
note?: string;
|
|
3506
4739
|
}>;
|
|
3507
4740
|
};
|
|
3508
4741
|
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
3509
|
-
export type RotateTriggerSecretBody = {
|
|
3510
|
-
secret?: string;
|
|
3511
|
-
};
|
|
3512
4742
|
export type RotateTriggerSecretResponse = {
|
|
3513
4743
|
secret: SecretMeta;
|
|
3514
4744
|
signing_secret?: string;
|
|
@@ -3530,7 +4760,7 @@ export type UpdateTriggerBody = {
|
|
|
3530
4760
|
start_at?: string;
|
|
3531
4761
|
} | {
|
|
3532
4762
|
kind: "webhook";
|
|
3533
|
-
signature?: "standard" | "github"
|
|
4763
|
+
signature?: "standard" | "github";
|
|
3534
4764
|
accept?: Array<{
|
|
3535
4765
|
event: string;
|
|
3536
4766
|
actions?: Array<string>;
|
|
@@ -3561,6 +4791,47 @@ export type UpdateTriggerBody = {
|
|
|
3561
4791
|
prefix: string;
|
|
3562
4792
|
}>;
|
|
3563
4793
|
}>;
|
|
4794
|
+
} | {
|
|
4795
|
+
kind: "composio";
|
|
4796
|
+
server: string;
|
|
4797
|
+
event: string;
|
|
4798
|
+
config: Record<string, unknown>;
|
|
4799
|
+
accept?: Array<{
|
|
4800
|
+
event: string;
|
|
4801
|
+
actions?: Array<string>;
|
|
4802
|
+
where?: Array<{
|
|
4803
|
+
pointer: string;
|
|
4804
|
+
in: Array<unknown>;
|
|
4805
|
+
} | {
|
|
4806
|
+
pointer: string;
|
|
4807
|
+
exists: boolean;
|
|
4808
|
+
} | {
|
|
4809
|
+
pointer: string;
|
|
4810
|
+
prefix: string;
|
|
4811
|
+
}>;
|
|
4812
|
+
}>;
|
|
4813
|
+
instance_id?: string;
|
|
4814
|
+
hook?: string;
|
|
4815
|
+
move_subscription?: true;
|
|
4816
|
+
} | {
|
|
4817
|
+
kind: "email";
|
|
4818
|
+
account?: "default";
|
|
4819
|
+
mailbox?: string;
|
|
4820
|
+
every_s?: number;
|
|
4821
|
+
accept?: Array<{
|
|
4822
|
+
event: string;
|
|
4823
|
+
actions?: Array<string>;
|
|
4824
|
+
where?: Array<{
|
|
4825
|
+
pointer: string;
|
|
4826
|
+
in: Array<unknown>;
|
|
4827
|
+
} | {
|
|
4828
|
+
pointer: string;
|
|
4829
|
+
exists: boolean;
|
|
4830
|
+
} | {
|
|
4831
|
+
pointer: string;
|
|
4832
|
+
prefix: string;
|
|
4833
|
+
}>;
|
|
4834
|
+
}>;
|
|
3564
4835
|
};
|
|
3565
4836
|
target?: {
|
|
3566
4837
|
kind: "start_run";
|
|
@@ -3595,7 +4866,7 @@ export type UpdateTriggerResponse = {
|
|
|
3595
4866
|
start_at: string;
|
|
3596
4867
|
} | {
|
|
3597
4868
|
kind: "webhook";
|
|
3598
|
-
signature?: "standard" | "github"
|
|
4869
|
+
signature?: "standard" | "github";
|
|
3599
4870
|
accept?: Array<{
|
|
3600
4871
|
event: string;
|
|
3601
4872
|
actions?: Array<string>;
|
|
@@ -3626,6 +4897,47 @@ export type UpdateTriggerResponse = {
|
|
|
3626
4897
|
prefix: string;
|
|
3627
4898
|
}>;
|
|
3628
4899
|
}>;
|
|
4900
|
+
} | {
|
|
4901
|
+
kind: "composio";
|
|
4902
|
+
server: string;
|
|
4903
|
+
event: string;
|
|
4904
|
+
config: Record<string, unknown>;
|
|
4905
|
+
accept?: Array<{
|
|
4906
|
+
event: string;
|
|
4907
|
+
actions?: Array<string>;
|
|
4908
|
+
where?: Array<{
|
|
4909
|
+
pointer: string;
|
|
4910
|
+
in: Array<unknown>;
|
|
4911
|
+
} | {
|
|
4912
|
+
pointer: string;
|
|
4913
|
+
exists: boolean;
|
|
4914
|
+
} | {
|
|
4915
|
+
pointer: string;
|
|
4916
|
+
prefix: string;
|
|
4917
|
+
}>;
|
|
4918
|
+
}>;
|
|
4919
|
+
instance_id?: string;
|
|
4920
|
+
hook?: string;
|
|
4921
|
+
move_subscription?: true;
|
|
4922
|
+
} | {
|
|
4923
|
+
kind: "email";
|
|
4924
|
+
account: "default";
|
|
4925
|
+
mailbox: string;
|
|
4926
|
+
every_s: number;
|
|
4927
|
+
accept?: Array<{
|
|
4928
|
+
event: string;
|
|
4929
|
+
actions?: Array<string>;
|
|
4930
|
+
where?: Array<{
|
|
4931
|
+
pointer: string;
|
|
4932
|
+
in: Array<unknown>;
|
|
4933
|
+
} | {
|
|
4934
|
+
pointer: string;
|
|
4935
|
+
exists: boolean;
|
|
4936
|
+
} | {
|
|
4937
|
+
pointer: string;
|
|
4938
|
+
prefix: string;
|
|
4939
|
+
}>;
|
|
4940
|
+
}>;
|
|
3629
4941
|
};
|
|
3630
4942
|
target: {
|
|
3631
4943
|
kind: "start_run";
|
|
@@ -3658,6 +4970,10 @@ export type UpdateTriggerResponse = {
|
|
|
3658
4970
|
at: string;
|
|
3659
4971
|
reason: "connection_lost";
|
|
3660
4972
|
detail: string;
|
|
4973
|
+
} | {
|
|
4974
|
+
at: string;
|
|
4975
|
+
reason: "sign_in_refused";
|
|
4976
|
+
detail: string;
|
|
3661
4977
|
} | null;
|
|
3662
4978
|
next_at: string | null;
|
|
3663
4979
|
last_run_id: string | null;
|
|
@@ -3665,7 +4981,7 @@ export type UpdateTriggerResponse = {
|
|
|
3665
4981
|
updated_at: string;
|
|
3666
4982
|
last_firing: {
|
|
3667
4983
|
key: string;
|
|
3668
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4984
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3669
4985
|
nominal_at: string;
|
|
3670
4986
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3671
4987
|
at: string;
|
|
@@ -3680,9 +4996,18 @@ export type UpdateTriggerResponse = {
|
|
|
3680
4996
|
retry_at?: string;
|
|
3681
4997
|
catch_up?: true;
|
|
3682
4998
|
} | null;
|
|
4999
|
+
last_check?: {
|
|
5000
|
+
at: string;
|
|
5001
|
+
ok: boolean;
|
|
5002
|
+
message: string;
|
|
5003
|
+
} | null;
|
|
3683
5004
|
hook_url?: string;
|
|
3684
5005
|
secret?: SecretMeta;
|
|
3685
5006
|
note?: string;
|
|
5007
|
+
composio?: {
|
|
5008
|
+
done: false;
|
|
5009
|
+
note: string;
|
|
5010
|
+
};
|
|
3686
5011
|
};
|
|
3687
5012
|
/** Usage by meter over a period (GET /usage). */
|
|
3688
5013
|
export interface GetUsageParams {
|
|
@@ -3800,10 +5125,16 @@ export declare function resources(call: Call): {
|
|
|
3800
5125
|
agents: {
|
|
3801
5126
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
3802
5127
|
archive: (agentId: string, options?: RequestOptions) => Promise<ArchiveAgentResponse>;
|
|
5128
|
+
/** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
|
|
5129
|
+
connectNative: (body: ConnectNativeBody, options?: RequestOptions) => Promise<ConnectNativeResponse>;
|
|
3803
5130
|
/** Create an agent home (POST /agents). */
|
|
3804
5131
|
create: (body: CreateAgentBody, params?: CreateAgentParams, options?: RequestOptions) => Promise<CreateAgentResponse>;
|
|
3805
5132
|
/** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
|
|
3806
5133
|
deleteAgentArchil: (agentId: string, options?: RequestOptions) => Promise<DeleteAgentArchilResponse>;
|
|
5134
|
+
/** Disconnect future native jobs while retaining source configuration and history (POST /agents/{agent_id}/native/disconnect). */
|
|
5135
|
+
disconnectNative: (agentId: string, options?: RequestOptions) => Promise<DisconnectNativeResponse>;
|
|
5136
|
+
/** Discover existing native projects on this source machine without running a model (POST /native/discover). */
|
|
5137
|
+
discoverNative: (body: DiscoverNativeBody, options?: RequestOptions) => Promise<DiscoverNativeResponse>;
|
|
3807
5138
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
3808
5139
|
forgetSignIn: (agentId: string, key: string, options?: RequestOptions) => Promise<ForgetSignInResponse>;
|
|
3809
5140
|
/** One agent (GET /agents/{agent_id}). */
|
|
@@ -3812,6 +5143,8 @@ export declare function resources(call: Call): {
|
|
|
3812
5143
|
getAgentArchil: (agentId: string, options?: RequestOptions) => Promise<GetAgentArchilResponse>;
|
|
3813
5144
|
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
3814
5145
|
getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
|
|
5146
|
+
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
5147
|
+
getNative: (agentId: string, options?: RequestOptions) => Promise<GetNativeResponse>;
|
|
3815
5148
|
/** List agents (GET /agents). */
|
|
3816
5149
|
list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
|
|
3817
5150
|
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
@@ -3822,6 +5155,28 @@ export declare function resources(call: Call): {
|
|
|
3822
5155
|
unarchive: (agentId: string, options?: RequestOptions) => Promise<UnarchiveAgentResponse>;
|
|
3823
5156
|
/** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
|
|
3824
5157
|
update: (agentId: string, body: UpdateDefinitionBody, params?: UpdateDefinitionParams, options?: RequestOptions) => Promise<Tagged<UpdateDefinitionResponse>>;
|
|
5158
|
+
/** Check native CLI and sign-in without a paid model call (POST /agents/{agent_id}/native/verify). */
|
|
5159
|
+
verifyNative: (agentId: string, options?: RequestOptions) => Promise<VerifyNativeResponse>;
|
|
5160
|
+
};
|
|
5161
|
+
connectors: {
|
|
5162
|
+
/** Complete a source command once under its valid lease (POST /connectors/{connector_id}/commands/{command_id}/complete). */
|
|
5163
|
+
completeRemoteCommand: (connectorId: string, commandId: string, body: CompleteRemoteCommandBody, options?: RequestOptions) => Promise<CompleteRemoteCommandResponse>;
|
|
5164
|
+
/** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
|
|
5165
|
+
enrollRemoteConnector: (body: EnrollRemoteConnectorBody, options?: RequestOptions) => Promise<EnrollRemoteConnectorResponse>;
|
|
5166
|
+
/** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
|
|
5167
|
+
importRemoteHistory: (connectorId: string, targetId: string, body: ImportRemoteHistoryBody, options?: RequestOptions) => Promise<ImportRemoteHistoryResponse>;
|
|
5168
|
+
/** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
|
|
5169
|
+
importRemoteTarget: (connectorId: string, body: ImportRemoteTargetBody, options?: RequestOptions) => Promise<ImportRemoteTargetResponse>;
|
|
5170
|
+
/** List remote source machines and imported agent targets (GET /connectors). */
|
|
5171
|
+
listRemoteConnectors: (options?: RequestOptions) => Promise<ListRemoteConnectorsResponse>;
|
|
5172
|
+
/** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
|
|
5173
|
+
pollRemoteConnector: (connectorId: string, body: PollRemoteConnectorBody, options?: RequestOptions) => Promise<PollRemoteConnectorResponse>;
|
|
5174
|
+
/** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
|
|
5175
|
+
registerRemoteConnector: (body: RegisterRemoteConnectorBody, options?: RequestOptions) => Promise<RegisterRemoteConnectorResponse>;
|
|
5176
|
+
/** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
|
|
5177
|
+
remoteCommandEvents: (connectorId: string, commandId: string, body: RemoteCommandEventsBody, options?: RequestOptions) => Promise<RemoteCommandEventsResponse>;
|
|
5178
|
+
/** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
|
|
5179
|
+
revokeRemoteConnector: (connectorId: string, options?: RequestOptions) => Promise<RevokeRemoteConnectorResponse>;
|
|
3825
5180
|
};
|
|
3826
5181
|
files: {
|
|
3827
5182
|
/** Reserve an upload (POST /files). */
|
|
@@ -3868,6 +5223,8 @@ export declare function resources(call: Call): {
|
|
|
3868
5223
|
read: (agentId: string, file: string, options?: RequestOptions) => Promise<Tagged<ReadLearningFileResponse | string>>;
|
|
3869
5224
|
/** Record a held-out test of the agent: its counts and the cost a task, with learning and by hand (POST /agents/{agent_id}/learning/evals). */
|
|
3870
5225
|
recordEval: (agentId: string, body: RecordLearningEvalBody, params?: RecordLearningEvalParams, options?: RequestOptions) => Promise<RecordLearningEvalResponse>;
|
|
5226
|
+
/** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
|
|
5227
|
+
replay: (agentId: string, name: string, digest: string, replayId: string, options?: RequestOptions) => Promise<GetLearnedWorkflowReplayResponse>;
|
|
3871
5228
|
/** Retire a note, a skill or a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
|
|
3872
5229
|
retire: (agentId: string, file: string, params?: RetireLearningFileParams, options?: RequestOptions) => Promise<Tagged<string>>;
|
|
3873
5230
|
/** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
|
|
@@ -3878,30 +5235,56 @@ export declare function resources(call: Call): {
|
|
|
3878
5235
|
local: {
|
|
3879
5236
|
/** A code that pairs a person's own computer with this server (POST /computers/pairings). */
|
|
3880
5237
|
createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
|
|
5238
|
+
/** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
|
|
5239
|
+
deleteComposioSubscription: (name: string, options?: RequestOptions) => Promise<DeleteComposioSubscriptionResponse>;
|
|
3881
5240
|
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
3882
5241
|
deleteComputer: (computerId: string, options?: RequestOptions) => Promise<void>;
|
|
5242
|
+
/** Forget this server's email account (DELETE /settings/email). */
|
|
5243
|
+
deleteEmailAccount: (options?: RequestOptions) => Promise<void>;
|
|
3883
5244
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
3884
5245
|
deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
|
|
3885
5246
|
/** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
|
|
3886
5247
|
disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
|
|
5248
|
+
/** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
|
|
5249
|
+
finishChatGptsignIn: (body: FinishChatGPTSignInBody, options?: RequestOptions) => Promise<FinishChatGPTSignInResponse>;
|
|
5250
|
+
/** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
|
|
5251
|
+
getChatGptsignIn: (options?: RequestOptions) => Promise<GetChatGPTSignInResponse>;
|
|
5252
|
+
/** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
|
|
5253
|
+
getEmailAccount: (options?: RequestOptions) => Promise<GetEmailAccountResponse>;
|
|
3887
5254
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
3888
5255
|
getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
|
|
3889
5256
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
3890
5257
|
getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
|
|
5258
|
+
/** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
|
|
5259
|
+
listComposioEvents: (name: string, options?: RequestOptions) => Promise<ListComposioEventsResponse>;
|
|
3891
5260
|
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
|
|
3892
5261
|
listComposioTools: (body: ListComposioToolsBody, options?: RequestOptions) => Promise<ListComposioToolsResponse>;
|
|
5262
|
+
/** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
|
|
5263
|
+
listComposioTriggers: (name: string, options?: RequestOptions) => Promise<ListComposioTriggersResponse>;
|
|
3893
5264
|
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
3894
5265
|
listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
|
|
3895
5266
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
3896
5267
|
listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
|
|
3897
5268
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
3898
5269
|
putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
|
|
5270
|
+
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
5271
|
+
receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
|
|
5272
|
+
/** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
|
|
5273
|
+
rotateComposioSecret: (name: string, options?: RequestOptions) => Promise<RotateComposioSecretResponse>;
|
|
3899
5274
|
/** Have Composio make a managed MCP server for a toolkit's chosen actions, and save it as an MCP server (PUT /settings/mcp-servers/{name}/composio). */
|
|
3900
5275
|
saveComposioServer: (name: string, body: SaveComposioServerBody, options?: RequestOptions) => Promise<SaveComposioServerResponse>;
|
|
3901
5276
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
3902
5277
|
saveComputerKeys: (provider: string, body: SaveComputerKeysBody, options?: RequestOptions) => Promise<SaveComputerKeysResponse>;
|
|
5278
|
+
/** Save this server's email account, its password sealed (PUT /settings/email). */
|
|
5279
|
+
saveEmailAccount: (body: SaveEmailAccountBody, options?: RequestOptions) => Promise<SaveEmailAccountResponse>;
|
|
5280
|
+
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
5281
|
+
signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
|
|
5282
|
+
/** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
|
|
5283
|
+
startChatGptsignIn: (options?: RequestOptions) => Promise<StartChatGPTSignInResponse>;
|
|
3903
5284
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
3904
5285
|
testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
|
|
5286
|
+
/** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
|
|
5287
|
+
testEmailAccount: (body?: TestEmailAccountBody, options?: RequestOptions) => Promise<TestEmailAccountResponse>;
|
|
3905
5288
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
3906
5289
|
testWorkspaceArchil: (options?: RequestOptions) => Promise<TestWorkspaceArchilResponse>;
|
|
3907
5290
|
};
|
|
@@ -3923,6 +5306,10 @@ export declare function resources(call: Call): {
|
|
|
3923
5306
|
/** Preview a remote MCP server, then save it with the tools listed and its credential sealed (PUT /settings/mcp-servers/{name}). */
|
|
3924
5307
|
save: (name: string, body: SaveMcpServerBody, options?: RequestOptions) => Promise<SaveMcpServerResponse>;
|
|
3925
5308
|
};
|
|
5309
|
+
Observations: {
|
|
5310
|
+
/** Read activity and token usage reported by externally running agents (GET /observations). */
|
|
5311
|
+
getObservations: (params?: GetObservationsParams, options?: RequestOptions) => Promise<GetObservationsResponse>;
|
|
5312
|
+
};
|
|
3926
5313
|
revisions: {
|
|
3927
5314
|
/** The agent's revisions, newest first (GET /agents/{agent_id}/revisions). */
|
|
3928
5315
|
list: (agentId: string, params?: ListRevisionsParams, options?: RequestOptions) => Promise<ListRevisionsResponse>;
|
|
@@ -3979,6 +5366,16 @@ export declare function resources(call: Call): {
|
|
|
3979
5366
|
/** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
|
|
3980
5367
|
unarchive: (runId: string, options?: RequestOptions) => Promise<UnarchiveRunResponse>;
|
|
3981
5368
|
};
|
|
5369
|
+
sdkRuns: {
|
|
5370
|
+
/** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
|
|
5371
|
+
complete: (runId: string, body: CompleteSdkRunBody, params?: CompleteSdkRunParams, options?: RequestOptions) => Promise<CompleteSdkRunResponse>;
|
|
5372
|
+
/** Record bounded SDK execution evidence (POST /sdk-runs/{run_id}/events). */
|
|
5373
|
+
events: (runId: string, body: SdkRunEventsBody, params?: SdkRunEventsParams, options?: RequestOptions) => Promise<SdkRunEventsResponse>;
|
|
5374
|
+
/** Read SDK run and learning state (GET /sdk-runs/{run_id}). */
|
|
5375
|
+
get: (runId: string, options?: RequestOptions) => Promise<GetSdkRunResponse>;
|
|
5376
|
+
/** Register a task executed by an existing backend SDK (POST /agents/{agent_id}/sdk-runs). */
|
|
5377
|
+
start: (agentId: string, body: StartSdkRunBody, params: StartSdkRunParams, options?: RequestOptions) => Promise<StartSdkRunResponse>;
|
|
5378
|
+
};
|
|
3982
5379
|
server: {
|
|
3983
5380
|
/** What this backend offers (GET /capabilities). */
|
|
3984
5381
|
capabilities: (options?: RequestOptions) => Promise<GetCapabilitiesResponse>;
|
|
@@ -4021,7 +5418,7 @@ export declare function resources(call: Call): {
|
|
|
4021
5418
|
/** Make a trigger: a schedule or a signed webhook that starts a capped run of an agent, or messages a run (POST /triggers). */
|
|
4022
5419
|
create: (body: CreateTriggerBody, params?: CreateTriggerParams, options?: RequestOptions) => Promise<CreateTriggerResponse>;
|
|
4023
5420
|
/** Delete a trigger and its firings; the runs it started stay (DELETE /triggers/{trigger_id}). */
|
|
4024
|
-
delete: (triggerId: string, options?: RequestOptions) => Promise<
|
|
5421
|
+
delete: (triggerId: string, options?: RequestOptions) => Promise<DeleteTriggerResponse | undefined>;
|
|
4025
5422
|
/** Run it now: one firing per Idempotency-Key (POST /triggers/{trigger_id}/fire). */
|
|
4026
5423
|
fire: (triggerId: string, params: FireTriggerParams, options?: RequestOptions) => Promise<FireTriggerResponse>;
|
|
4027
5424
|
/** The trigger's last 200 firings, newest first (GET /triggers/{trigger_id}/firings). */
|
|
@@ -4031,7 +5428,7 @@ export declare function resources(call: Call): {
|
|
|
4031
5428
|
/** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
|
|
4032
5429
|
list: (options?: RequestOptions) => Promise<ListTriggersResponse>;
|
|
4033
5430
|
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
|
|
4034
|
-
rotateSecret: (triggerId: string,
|
|
5431
|
+
rotateSecret: (triggerId: string, options?: RequestOptions) => Promise<RotateTriggerSecretResponse>;
|
|
4035
5432
|
/** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
|
|
4036
5433
|
update: (triggerId: string, body: UpdateTriggerBody, options?: RequestOptions) => Promise<UpdateTriggerResponse>;
|
|
4037
5434
|
};
|