@parcha/agentrun-client 0.1.0-beta.37 → 0.1.0-beta.39
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 +1853 -136
- package/dist/operations.generated.js +126 -6
- 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;
|
|
@@ -38,6 +173,8 @@ export type DefinitionInput = {
|
|
|
38
173
|
count: number;
|
|
39
174
|
};
|
|
40
175
|
persistent?: boolean;
|
|
176
|
+
surface?: "code" | "tools";
|
|
177
|
+
exec?: boolean;
|
|
41
178
|
};
|
|
42
179
|
tool_settings?: {
|
|
43
180
|
read?: {
|
|
@@ -64,6 +201,24 @@ export type DefinitionInput = {
|
|
|
64
201
|
provider?: "auto" | "native" | "exa-keyless" | "parallel" | "off";
|
|
65
202
|
permission?: "allow" | "ask" | "deny";
|
|
66
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
|
+
};
|
|
67
222
|
browser?: {
|
|
68
223
|
provider?: "auto" | "browserbase" | "kernel" | "chrome";
|
|
69
224
|
permission?: "allow" | "deny";
|
|
@@ -97,65 +252,8 @@ export type DefinitionInput = {
|
|
|
97
252
|
approvals?: "ask" | "never";
|
|
98
253
|
learning?: true | false | "notes";
|
|
99
254
|
checkout?: "pull_request" | "none";
|
|
100
|
-
max_tool_calls?: number;
|
|
101
|
-
cap_mode?: "expected" | "strict";
|
|
102
255
|
};
|
|
103
|
-
export type Id = string;
|
|
104
256
|
export type JsonObject = Record<string, unknown>;
|
|
105
|
-
export type SkillFiles = Record<string, string>;
|
|
106
|
-
export type Agent = {
|
|
107
|
-
agent_id: Id;
|
|
108
|
-
definition: Definition;
|
|
109
|
-
source: Source | null;
|
|
110
|
-
skills: Array<SkillFileInfo>;
|
|
111
|
-
sign_ins: Array<SignIn>;
|
|
112
|
-
runs: {
|
|
113
|
-
count: number;
|
|
114
|
-
live: number;
|
|
115
|
-
};
|
|
116
|
-
region: string;
|
|
117
|
-
home_etag: string;
|
|
118
|
-
created_at: Timestamp;
|
|
119
|
-
updated_at: Timestamp;
|
|
120
|
-
external?: {
|
|
121
|
-
source: string;
|
|
122
|
-
kind: string;
|
|
123
|
-
id: string;
|
|
124
|
-
version: string;
|
|
125
|
-
};
|
|
126
|
-
console_url?: string;
|
|
127
|
-
tools?: Array<{
|
|
128
|
-
name: string;
|
|
129
|
-
blurb?: string;
|
|
130
|
-
provider?: string;
|
|
131
|
-
provider_from?: "agent" | "server" | "default";
|
|
132
|
-
default_provider?: string;
|
|
133
|
-
resolved?: string;
|
|
134
|
-
permission: "allow" | "ask" | "deny";
|
|
135
|
-
permission_from: "agent" | "server" | "default" | "unattended";
|
|
136
|
-
default_permission: "allow" | "ask" | "deny";
|
|
137
|
-
permissions: Array<"allow" | "ask" | "deny">;
|
|
138
|
-
}>;
|
|
139
|
-
kind?: "agentic" | "workflow" | null;
|
|
140
|
-
revision?: string | null;
|
|
141
|
-
revisions?: number;
|
|
142
|
-
archived_at?: string | null;
|
|
143
|
-
learning?: {
|
|
144
|
-
pending: number;
|
|
145
|
-
};
|
|
146
|
-
own_computer?: {
|
|
147
|
-
provider: string;
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
state: "held" | "detached" | "deleting";
|
|
151
|
-
since: string;
|
|
152
|
-
image?: string;
|
|
153
|
-
run_id?: string;
|
|
154
|
-
why?: string;
|
|
155
|
-
} | null;
|
|
156
|
-
warnings?: Array<InputIssue>;
|
|
157
|
-
};
|
|
158
|
-
export type Definition = DefinitionInput;
|
|
159
257
|
export type Source = {
|
|
160
258
|
sha: CommitSha;
|
|
161
259
|
refreshed_at: Timestamp;
|
|
@@ -183,13 +281,19 @@ export type SecretMeta = {
|
|
|
183
281
|
};
|
|
184
282
|
export type InputIssue = {
|
|
185
283
|
field: string;
|
|
186
|
-
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";
|
|
187
285
|
expected?: string;
|
|
188
286
|
message: string;
|
|
189
287
|
fix?: string;
|
|
190
288
|
code?: string;
|
|
191
289
|
example?: unknown;
|
|
192
290
|
};
|
|
291
|
+
export type AgentCreate = {
|
|
292
|
+
definition: DefinitionInput;
|
|
293
|
+
skills?: SkillFiles;
|
|
294
|
+
note?: string;
|
|
295
|
+
};
|
|
296
|
+
export type SkillFiles = Record<string, string>;
|
|
193
297
|
export type AgentList = {
|
|
194
298
|
agents: Array<Agent>;
|
|
195
299
|
next_cursor: string | null;
|
|
@@ -209,6 +313,49 @@ export type RunSummary = {
|
|
|
209
313
|
created_at: Timestamp;
|
|
210
314
|
ended_at: Timestamp | null;
|
|
211
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
|
+
};
|
|
212
359
|
console_url?: string;
|
|
213
360
|
revision: string;
|
|
214
361
|
kind: "agentic" | "workflow";
|
|
@@ -263,16 +410,18 @@ export type RunSummary = {
|
|
|
263
410
|
tool: string;
|
|
264
411
|
call_id: string;
|
|
265
412
|
args_preview: string;
|
|
413
|
+
summary?: string;
|
|
266
414
|
requested_at: string;
|
|
267
|
-
price?: number | "not metered";
|
|
415
|
+
price?: number | "not metered" | "priced by usage";
|
|
416
|
+
destructive?: true;
|
|
268
417
|
} | {
|
|
269
418
|
kind: "budget";
|
|
270
419
|
cap_usd: number;
|
|
271
420
|
spent_usd?: number;
|
|
421
|
+
held_usd?: number;
|
|
272
422
|
needs_usd?: number;
|
|
273
423
|
least_cap_usd?: number;
|
|
274
424
|
suggested_cap_usd?: number;
|
|
275
|
-
overshoot_bound_usd?: number;
|
|
276
425
|
said: string;
|
|
277
426
|
at: string;
|
|
278
427
|
node?: string | null;
|
|
@@ -289,6 +438,8 @@ export type RunSummary = {
|
|
|
289
438
|
completion_condition: string;
|
|
290
439
|
asked_at: string;
|
|
291
440
|
expires_at: string;
|
|
441
|
+
} | {
|
|
442
|
+
kind: "stopped";
|
|
292
443
|
} | null;
|
|
293
444
|
imported_from?: {
|
|
294
445
|
source: "claude-code" | "codex" | "pi";
|
|
@@ -306,9 +457,14 @@ export type Cost = {
|
|
|
306
457
|
basis: "charge" | "estimate";
|
|
307
458
|
charge_state?: "held" | "settled" | "released" | null;
|
|
308
459
|
cap_usd?: number | null;
|
|
460
|
+
free?: true;
|
|
309
461
|
so_far_usd?: number;
|
|
310
462
|
unpriced?: number;
|
|
311
|
-
|
|
463
|
+
upper_bound?: true;
|
|
464
|
+
plan?: {
|
|
465
|
+
requests: number;
|
|
466
|
+
tokens: number;
|
|
467
|
+
};
|
|
312
468
|
};
|
|
313
469
|
export type Effort = "low" | "medium" | "high";
|
|
314
470
|
export type RunError = {
|
|
@@ -379,7 +535,7 @@ export type RunCreateInline = {
|
|
|
379
535
|
mcp_auth?: Record<string, {
|
|
380
536
|
headers: Record<string, string>;
|
|
381
537
|
}>;
|
|
382
|
-
|
|
538
|
+
workflow_first?: boolean;
|
|
383
539
|
learning?: "use";
|
|
384
540
|
repo?: string;
|
|
385
541
|
archil_disk?: {
|
|
@@ -410,13 +566,57 @@ export type Run = {
|
|
|
410
566
|
error: RunError | null;
|
|
411
567
|
cost: Cost;
|
|
412
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
|
+
};
|
|
413
612
|
console_url?: string;
|
|
414
613
|
revision: string;
|
|
415
614
|
kind: "agentic" | "workflow";
|
|
416
615
|
archived_at: string | null;
|
|
417
616
|
approvals?: "ask" | "never";
|
|
418
|
-
cap_mode?: "expected" | "strict" | null;
|
|
419
617
|
last_progress_at?: string | null;
|
|
618
|
+
input?: Record<string, unknown> | null;
|
|
619
|
+
file_ids?: Array<string>;
|
|
420
620
|
claim?: {
|
|
421
621
|
runner: string;
|
|
422
622
|
epoch: number;
|
|
@@ -489,16 +689,18 @@ export type Run = {
|
|
|
489
689
|
tool: string;
|
|
490
690
|
call_id: string;
|
|
491
691
|
args_preview: string;
|
|
692
|
+
summary?: string;
|
|
492
693
|
requested_at: string;
|
|
493
|
-
price?: number | "not metered";
|
|
694
|
+
price?: number | "not metered" | "priced by usage";
|
|
695
|
+
destructive?: true;
|
|
494
696
|
} | {
|
|
495
697
|
kind: "budget";
|
|
496
698
|
cap_usd: number;
|
|
497
699
|
spent_usd?: number;
|
|
700
|
+
held_usd?: number;
|
|
498
701
|
needs_usd?: number;
|
|
499
702
|
least_cap_usd?: number;
|
|
500
703
|
suggested_cap_usd?: number;
|
|
501
|
-
overshoot_bound_usd?: number;
|
|
502
704
|
said: string;
|
|
503
705
|
at: string;
|
|
504
706
|
node?: string | null;
|
|
@@ -515,6 +717,8 @@ export type Run = {
|
|
|
515
717
|
completion_condition: string;
|
|
516
718
|
asked_at: string;
|
|
517
719
|
expires_at: string;
|
|
720
|
+
} | {
|
|
721
|
+
kind: "stopped";
|
|
518
722
|
} | null;
|
|
519
723
|
imported_from?: {
|
|
520
724
|
source: "claude-code" | "codex" | "pi";
|
|
@@ -528,6 +732,7 @@ export type Run = {
|
|
|
528
732
|
export type RunResult = {
|
|
529
733
|
output: unknown;
|
|
530
734
|
final_answer: string | null;
|
|
735
|
+
output_error?: string;
|
|
531
736
|
};
|
|
532
737
|
export type RunFileList = {
|
|
533
738
|
run_id: Id;
|
|
@@ -565,7 +770,7 @@ export type RunCreate = {
|
|
|
565
770
|
mcp_auth?: Record<string, {
|
|
566
771
|
headers: Record<string, string>;
|
|
567
772
|
}>;
|
|
568
|
-
|
|
773
|
+
workflow_first?: boolean;
|
|
569
774
|
learning?: "use";
|
|
570
775
|
repo?: string;
|
|
571
776
|
archil_disk?: {
|
|
@@ -620,7 +825,7 @@ export type TimelineRow = {
|
|
|
620
825
|
origin?: "server" | "trigger";
|
|
621
826
|
trigger?: {
|
|
622
827
|
id: string;
|
|
623
|
-
source: "schedule" | "webhook" | "slack" | "github";
|
|
828
|
+
source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email";
|
|
624
829
|
owner: boolean;
|
|
625
830
|
name?: string;
|
|
626
831
|
};
|
|
@@ -634,11 +839,19 @@ export type TimelineRow = {
|
|
|
634
839
|
}>;
|
|
635
840
|
computer_calls?: Array<{
|
|
636
841
|
method: string;
|
|
842
|
+
started_at: string;
|
|
843
|
+
app?: string;
|
|
637
844
|
ok: boolean;
|
|
638
845
|
ms: number;
|
|
639
846
|
code?: string;
|
|
640
847
|
steps?: Array<{
|
|
641
848
|
do: string;
|
|
849
|
+
on?: {
|
|
850
|
+
role: string;
|
|
851
|
+
name?: string;
|
|
852
|
+
};
|
|
853
|
+
keys?: string;
|
|
854
|
+
nav?: string;
|
|
642
855
|
route?: string;
|
|
643
856
|
verified?: boolean;
|
|
644
857
|
error?: string;
|
|
@@ -646,6 +859,8 @@ export type TimelineRow = {
|
|
|
646
859
|
expect?: "met" | "unmet";
|
|
647
860
|
}>;
|
|
648
861
|
computer_calls_dropped?: number;
|
|
862
|
+
tool_input?: Record<string, unknown>;
|
|
863
|
+
tool_result_text?: string | null;
|
|
649
864
|
learning?: {
|
|
650
865
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
651
866
|
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
|
|
@@ -655,9 +870,11 @@ export type TimelineRow = {
|
|
|
655
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";
|
|
656
871
|
export type TimelineUsage = {
|
|
657
872
|
usd: number | null;
|
|
658
|
-
requests: number;
|
|
873
|
+
requests: number | null;
|
|
874
|
+
free?: true;
|
|
659
875
|
so_far_usd?: number;
|
|
660
876
|
unpriced?: number;
|
|
877
|
+
upper_bound?: true;
|
|
661
878
|
not_metered?: number;
|
|
662
879
|
};
|
|
663
880
|
export type Capabilities = {
|
|
@@ -711,12 +928,17 @@ export type Capabilities = {
|
|
|
711
928
|
harnesses?: Array<{
|
|
712
929
|
id: "pi" | "claude-agent" | "codex" | "opencode";
|
|
713
930
|
available: boolean;
|
|
931
|
+
free_models: Array<{
|
|
932
|
+
id: string;
|
|
933
|
+
context_window: number;
|
|
934
|
+
}>;
|
|
714
935
|
models: Array<string>;
|
|
715
936
|
run_memory_mib: number;
|
|
716
937
|
max_concurrent_runs: number;
|
|
717
938
|
default_model: string | null;
|
|
718
939
|
steer: boolean;
|
|
719
940
|
reason?: string;
|
|
941
|
+
needs?: Array<"key" | "chatgpt">;
|
|
720
942
|
installs?: "on_first_use";
|
|
721
943
|
}>;
|
|
722
944
|
tools: Array<{
|
|
@@ -726,6 +948,7 @@ export type Capabilities = {
|
|
|
726
948
|
nodes: boolean;
|
|
727
949
|
calls: boolean;
|
|
728
950
|
call_only?: boolean;
|
|
951
|
+
meta?: boolean;
|
|
729
952
|
sandbox_only?: boolean;
|
|
730
953
|
available: boolean;
|
|
731
954
|
reason?: string;
|
|
@@ -866,7 +1089,7 @@ export type Features = {
|
|
|
866
1089
|
};
|
|
867
1090
|
triggers?: {
|
|
868
1091
|
routes: boolean;
|
|
869
|
-
sources: Array<"schedule" | "webhook" | "github">;
|
|
1092
|
+
sources: Array<"schedule" | "webhook" | "github" | "composio" | "email">;
|
|
870
1093
|
targets: Array<"start_run" | "message_run">;
|
|
871
1094
|
min_every_s: number;
|
|
872
1095
|
history_kept: number;
|
|
@@ -874,12 +1097,13 @@ export type Features = {
|
|
|
874
1097
|
failures_to_pause: number;
|
|
875
1098
|
webhook: {
|
|
876
1099
|
signing: "standard-webhooks/v1";
|
|
877
|
-
signatures: Array<"standard" | "github"
|
|
1100
|
+
signatures: Array<"standard" | "github">;
|
|
878
1101
|
tolerance_s: number;
|
|
879
1102
|
max_body_bytes: number;
|
|
880
1103
|
payload_kept_bytes: number;
|
|
881
1104
|
at_rest: "sealed";
|
|
882
1105
|
};
|
|
1106
|
+
public_url?: boolean;
|
|
883
1107
|
};
|
|
884
1108
|
};
|
|
885
1109
|
export type Meter = "tokens" | "agent_time" | "browser_time" | "disk" | "tools" | "learning";
|
|
@@ -902,6 +1126,7 @@ export type Limits = {
|
|
|
902
1126
|
min: Usd;
|
|
903
1127
|
max: Usd;
|
|
904
1128
|
} | null;
|
|
1129
|
+
free_model_requests?: number;
|
|
905
1130
|
};
|
|
906
1131
|
export type Usd = number;
|
|
907
1132
|
export type Usage = {
|
|
@@ -931,6 +1156,52 @@ export type UsageLine = {
|
|
|
931
1156
|
};
|
|
932
1157
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
933
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
|
+
};
|
|
934
1205
|
/** Create an agent home (POST /agents). */
|
|
935
1206
|
export type CreateAgentBody = AgentCreate;
|
|
936
1207
|
export interface CreateAgentParams {
|
|
@@ -947,6 +1218,79 @@ export type DeleteAgentArchilResponse = {
|
|
|
947
1218
|
disk_id: string;
|
|
948
1219
|
} | null;
|
|
949
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
|
+
};
|
|
950
1294
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
951
1295
|
export type ForgetSignInResponse = {
|
|
952
1296
|
key: string;
|
|
@@ -978,6 +1322,81 @@ export type GetAgentArchilResponse = {
|
|
|
978
1322
|
disk_id: string;
|
|
979
1323
|
} | null;
|
|
980
1324
|
};
|
|
1325
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
1326
|
+
export type GetLearningLoopResponse = {
|
|
1327
|
+
agent: string;
|
|
1328
|
+
compiles: Array<{
|
|
1329
|
+
run_id: string;
|
|
1330
|
+
round: number;
|
|
1331
|
+
at: string;
|
|
1332
|
+
workflow: string | null;
|
|
1333
|
+
from_notes: Array<string>;
|
|
1334
|
+
attempts: Array<{
|
|
1335
|
+
ok: boolean;
|
|
1336
|
+
errors: Array<string>;
|
|
1337
|
+
}>;
|
|
1338
|
+
digest: string | null;
|
|
1339
|
+
promoted: boolean | null;
|
|
1340
|
+
draft_errors: Array<string>;
|
|
1341
|
+
withheld: boolean;
|
|
1342
|
+
}>;
|
|
1343
|
+
guards: Array<{
|
|
1344
|
+
workflow: string;
|
|
1345
|
+
digest: string;
|
|
1346
|
+
node: string;
|
|
1347
|
+
signal: "self" | "jev" | "both";
|
|
1348
|
+
threshold: number | null;
|
|
1349
|
+
runs: number;
|
|
1350
|
+
escalated: number;
|
|
1351
|
+
right: number;
|
|
1352
|
+
wrong: number;
|
|
1353
|
+
grades_past: number;
|
|
1354
|
+
replays: number;
|
|
1355
|
+
points: Array<{
|
|
1356
|
+
run_id: string;
|
|
1357
|
+
p: number | null;
|
|
1358
|
+
escalated: boolean;
|
|
1359
|
+
correct: boolean | null;
|
|
1360
|
+
}>;
|
|
1361
|
+
}>;
|
|
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
|
+
};
|
|
981
1400
|
/** List agents (GET /agents). */
|
|
982
1401
|
export interface ListAgentsParams {
|
|
983
1402
|
limit?: number;
|
|
@@ -985,6 +1404,62 @@ export interface ListAgentsParams {
|
|
|
985
1404
|
archived?: boolean;
|
|
986
1405
|
}
|
|
987
1406
|
export type ListAgentsResponse = AgentList;
|
|
1407
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
1408
|
+
export type ListLearningPromotionsResponse = {
|
|
1409
|
+
agent: string;
|
|
1410
|
+
promotions: Array<{
|
|
1411
|
+
workflow: string;
|
|
1412
|
+
digest: string;
|
|
1413
|
+
at: string;
|
|
1414
|
+
decided: "promote" | "hold" | "replaying" | "superseded";
|
|
1415
|
+
source: "replay" | "dry_run" | "refit" | "graded";
|
|
1416
|
+
reason: string;
|
|
1417
|
+
replay?: {
|
|
1418
|
+
n: number;
|
|
1419
|
+
agree: number;
|
|
1420
|
+
agent_acc: number;
|
|
1421
|
+
wf_acc: number;
|
|
1422
|
+
delta: number;
|
|
1423
|
+
handed_back: number;
|
|
1424
|
+
of?: Array<string>;
|
|
1425
|
+
cost_usd?: number | null;
|
|
1426
|
+
skipped_tools?: Array<{
|
|
1427
|
+
tool: string;
|
|
1428
|
+
inputs: number;
|
|
1429
|
+
no_read_only_hint: boolean;
|
|
1430
|
+
}>;
|
|
1431
|
+
outcomes?: {
|
|
1432
|
+
answered: number;
|
|
1433
|
+
handed_back: number;
|
|
1434
|
+
failed: number;
|
|
1435
|
+
skipped_write: number;
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
runs?: Array<string>;
|
|
1439
|
+
inputs?: Array<string>;
|
|
1440
|
+
replay_id?: string;
|
|
1441
|
+
refit?: {
|
|
1442
|
+
from: string;
|
|
1443
|
+
guards: Array<{
|
|
1444
|
+
node: string;
|
|
1445
|
+
was: number | null;
|
|
1446
|
+
threshold: number | null;
|
|
1447
|
+
fit?: Record<string, unknown>;
|
|
1448
|
+
escalate?: true;
|
|
1449
|
+
}>;
|
|
1450
|
+
};
|
|
1451
|
+
checked?: number;
|
|
1452
|
+
since?: number;
|
|
1453
|
+
held_on?: Array<string>;
|
|
1454
|
+
commit?: string;
|
|
1455
|
+
superseded_by?: string;
|
|
1456
|
+
}>;
|
|
1457
|
+
serving: Array<{
|
|
1458
|
+
workflow: string;
|
|
1459
|
+
digest: string | null;
|
|
1460
|
+
replaying: string | null;
|
|
1461
|
+
}>;
|
|
1462
|
+
};
|
|
988
1463
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
989
1464
|
export interface ListRunsParams {
|
|
990
1465
|
limit?: number;
|
|
@@ -1000,6 +1475,241 @@ export interface UpdateDefinitionParams {
|
|
|
1000
1475
|
"If-Match"?: string;
|
|
1001
1476
|
}
|
|
1002
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
|
+
};
|
|
1003
1713
|
/** Reserve an upload (POST /files). */
|
|
1004
1714
|
export type CreateFileBody = FileCreate;
|
|
1005
1715
|
export interface CreateFileParams {
|
|
@@ -1292,15 +2002,31 @@ export type GetLearningCostResponse = {
|
|
|
1292
2002
|
n: number;
|
|
1293
2003
|
run_id: string;
|
|
1294
2004
|
started_at: string;
|
|
1295
|
-
path: "agent" | "handed_back" | "workflow";
|
|
2005
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
1296
2006
|
workflow: string | null;
|
|
1297
2007
|
learned_revision: string | null;
|
|
1298
2008
|
cost_usd: number | null;
|
|
2009
|
+
cost_upper_bound: boolean;
|
|
1299
2010
|
learning_usd: number | null;
|
|
1300
2011
|
total_usd: number | null;
|
|
1301
2012
|
}>;
|
|
1302
2013
|
total_runs: number;
|
|
1303
2014
|
unknown_cost_runs: number;
|
|
2015
|
+
unknown_path_runs: number;
|
|
2016
|
+
workflows: Array<{
|
|
2017
|
+
workflow: string;
|
|
2018
|
+
digest: string;
|
|
2019
|
+
state: "serving" | "needs_revision";
|
|
2020
|
+
served: {
|
|
2021
|
+
runs: number;
|
|
2022
|
+
mean_usd: number;
|
|
2023
|
+
} | null;
|
|
2024
|
+
by_hand: {
|
|
2025
|
+
runs: number;
|
|
2026
|
+
mean_usd: number;
|
|
2027
|
+
} | null;
|
|
2028
|
+
unknown_cost_runs: number;
|
|
2029
|
+
}>;
|
|
1304
2030
|
summary: {
|
|
1305
2031
|
takeover: {
|
|
1306
2032
|
n: number;
|
|
@@ -1315,6 +2041,20 @@ export type GetLearningCostResponse = {
|
|
|
1315
2041
|
mean_usd: number;
|
|
1316
2042
|
} | null;
|
|
1317
2043
|
times_cheaper: number | null;
|
|
2044
|
+
hand_backs: {
|
|
2045
|
+
ran: number;
|
|
2046
|
+
back: number;
|
|
2047
|
+
} | null;
|
|
2048
|
+
withheld: {
|
|
2049
|
+
unknown: number;
|
|
2050
|
+
at_most: number;
|
|
2051
|
+
} | null;
|
|
2052
|
+
replay: {
|
|
2053
|
+
n: number;
|
|
2054
|
+
workflow_pct: number;
|
|
2055
|
+
agent_pct: number;
|
|
2056
|
+
cleared: boolean;
|
|
2057
|
+
} | null;
|
|
1318
2058
|
};
|
|
1319
2059
|
};
|
|
1320
2060
|
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
@@ -1546,6 +2286,31 @@ export type RecordLearningEvalResponse = {
|
|
|
1546
2286
|
ci: Array<number>;
|
|
1547
2287
|
recorded_at: string;
|
|
1548
2288
|
};
|
|
2289
|
+
/** 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}). */
|
|
2290
|
+
export type GetLearnedWorkflowReplayResponse = {
|
|
2291
|
+
replay: string;
|
|
2292
|
+
workflow: string;
|
|
2293
|
+
digest: string;
|
|
2294
|
+
status: "running" | "done" | "failed";
|
|
2295
|
+
inputs: number;
|
|
2296
|
+
outcomes: {
|
|
2297
|
+
answered: number;
|
|
2298
|
+
handed_back: number;
|
|
2299
|
+
failed: number;
|
|
2300
|
+
skipped_write: number;
|
|
2301
|
+
};
|
|
2302
|
+
score: {
|
|
2303
|
+
n: number;
|
|
2304
|
+
agree: number;
|
|
2305
|
+
agent_acc: number;
|
|
2306
|
+
wf_acc: number;
|
|
2307
|
+
delta: number;
|
|
2308
|
+
handed_back: number;
|
|
2309
|
+
};
|
|
2310
|
+
cost_usd: number | null;
|
|
2311
|
+
decided?: "promote" | "hold" | "superseded";
|
|
2312
|
+
reason?: string;
|
|
2313
|
+
};
|
|
1549
2314
|
/** 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). */
|
|
1550
2315
|
export interface RetireLearningFileParams {
|
|
1551
2316
|
"If-Match"?: string;
|
|
@@ -1567,6 +2332,7 @@ export type ListLearnedWorkflowRevisionsResponse = {
|
|
|
1567
2332
|
};
|
|
1568
2333
|
reason: string;
|
|
1569
2334
|
text: string | null;
|
|
2335
|
+
digest: string | null;
|
|
1570
2336
|
}>;
|
|
1571
2337
|
total: number;
|
|
1572
2338
|
truncated: boolean;
|
|
@@ -1594,7 +2360,12 @@ export type CreatePairingResponse = {
|
|
|
1594
2360
|
code: string;
|
|
1595
2361
|
expires_at: string;
|
|
1596
2362
|
};
|
|
2363
|
+
/** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
|
|
2364
|
+
export type DeleteComposioSubscriptionResponse = {
|
|
2365
|
+
deleted: true;
|
|
2366
|
+
};
|
|
1597
2367
|
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
2368
|
+
/** Forget this server's email account (DELETE /settings/email). */
|
|
1598
2369
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
1599
2370
|
export type DeleteWorkspaceArchilResponse = {
|
|
1600
2371
|
on: boolean;
|
|
@@ -1615,6 +2386,43 @@ export type DisconnectGitHubResponse = {
|
|
|
1615
2386
|
triggers_off: number;
|
|
1616
2387
|
note: string;
|
|
1617
2388
|
};
|
|
2389
|
+
/** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
|
|
2390
|
+
export type FinishChatGPTSignInBody = {
|
|
2391
|
+
redirect_url: string;
|
|
2392
|
+
};
|
|
2393
|
+
export type FinishChatGPTSignInResponse = {
|
|
2394
|
+
state: "signed_out" | "pending" | "signed_in" | "expired";
|
|
2395
|
+
email?: string;
|
|
2396
|
+
plan?: string;
|
|
2397
|
+
authorize_url?: string;
|
|
2398
|
+
expires_at?: string;
|
|
2399
|
+
models?: Array<string>;
|
|
2400
|
+
};
|
|
2401
|
+
/** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
|
|
2402
|
+
export type GetChatGPTSignInResponse = {
|
|
2403
|
+
state: "signed_out" | "pending" | "signed_in" | "expired";
|
|
2404
|
+
email?: string;
|
|
2405
|
+
plan?: string;
|
|
2406
|
+
authorize_url?: string;
|
|
2407
|
+
expires_at?: string;
|
|
2408
|
+
models?: Array<string>;
|
|
2409
|
+
};
|
|
2410
|
+
/** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
|
|
2411
|
+
export type GetEmailAccountResponse = {
|
|
2412
|
+
configured: boolean;
|
|
2413
|
+
preset: "gmail" | "fastmail" | "icloud" | "other" | null;
|
|
2414
|
+
address: string | null;
|
|
2415
|
+
user: string | null;
|
|
2416
|
+
imap: {
|
|
2417
|
+
host: string;
|
|
2418
|
+
port: number;
|
|
2419
|
+
} | null;
|
|
2420
|
+
smtp: {
|
|
2421
|
+
host: string;
|
|
2422
|
+
port: number;
|
|
2423
|
+
} | null;
|
|
2424
|
+
password_unreadable: boolean;
|
|
2425
|
+
};
|
|
1618
2426
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
1619
2427
|
export type GetGitHubConnectionResponse = {
|
|
1620
2428
|
connected: false;
|
|
@@ -1652,6 +2460,19 @@ export interface GitHubInstalledParams {
|
|
|
1652
2460
|
setup_action?: string;
|
|
1653
2461
|
state?: string;
|
|
1654
2462
|
}
|
|
2463
|
+
/** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
|
|
2464
|
+
export type ListComposioEventsResponse = {
|
|
2465
|
+
server: string;
|
|
2466
|
+
toolkit: string;
|
|
2467
|
+
events: Array<{
|
|
2468
|
+
slug: string;
|
|
2469
|
+
name: string;
|
|
2470
|
+
description: string;
|
|
2471
|
+
config: Record<string, unknown>;
|
|
2472
|
+
polled: boolean;
|
|
2473
|
+
instructions?: string;
|
|
2474
|
+
}>;
|
|
2475
|
+
};
|
|
1655
2476
|
/** 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. */
|
|
1656
2477
|
export type ListComposioToolsBody = {
|
|
1657
2478
|
api_key: string;
|
|
@@ -1666,6 +2487,22 @@ export type ListComposioToolsResponse = {
|
|
|
1666
2487
|
description: string;
|
|
1667
2488
|
}>;
|
|
1668
2489
|
};
|
|
2490
|
+
/** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
|
|
2491
|
+
export type ListComposioTriggersResponse = {
|
|
2492
|
+
triggers: Array<{
|
|
2493
|
+
id: string;
|
|
2494
|
+
name: string;
|
|
2495
|
+
enabled: boolean;
|
|
2496
|
+
event: string;
|
|
2497
|
+
instance_id: string;
|
|
2498
|
+
on_composio: "on" | "off" | "missing" | "unknown";
|
|
2499
|
+
}>;
|
|
2500
|
+
subscription: {
|
|
2501
|
+
ours: boolean;
|
|
2502
|
+
webhook_url: string;
|
|
2503
|
+
} | null;
|
|
2504
|
+
composio_error?: string;
|
|
2505
|
+
};
|
|
1669
2506
|
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
1670
2507
|
export type ListComputerChoicesResponse = {
|
|
1671
2508
|
choices: Array<{
|
|
@@ -1784,6 +2621,54 @@ export type PutWorkspaceArchilResponse = {
|
|
|
1784
2621
|
s3Url?: string;
|
|
1785
2622
|
image?: string;
|
|
1786
2623
|
};
|
|
2624
|
+
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
2625
|
+
export type ReceiveHookComposioResponse = {
|
|
2626
|
+
firings: Array<{
|
|
2627
|
+
key: string;
|
|
2628
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2629
|
+
nominal_at: string;
|
|
2630
|
+
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2631
|
+
at: string;
|
|
2632
|
+
run_id: string | null;
|
|
2633
|
+
reason: string | null;
|
|
2634
|
+
error: {
|
|
2635
|
+
code: string;
|
|
2636
|
+
message: string;
|
|
2637
|
+
} | null;
|
|
2638
|
+
count?: number;
|
|
2639
|
+
attempts?: number;
|
|
2640
|
+
retry_at?: string;
|
|
2641
|
+
catch_up?: true;
|
|
2642
|
+
} | {
|
|
2643
|
+
ok: "duplicate";
|
|
2644
|
+
}>;
|
|
2645
|
+
} | {
|
|
2646
|
+
ok: "ignored";
|
|
2647
|
+
} | {
|
|
2648
|
+
firings: Array<{
|
|
2649
|
+
key: string;
|
|
2650
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2651
|
+
nominal_at: string;
|
|
2652
|
+
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2653
|
+
at: string;
|
|
2654
|
+
run_id: string | null;
|
|
2655
|
+
reason: string | null;
|
|
2656
|
+
error: {
|
|
2657
|
+
code: string;
|
|
2658
|
+
message: string;
|
|
2659
|
+
} | null;
|
|
2660
|
+
count?: number;
|
|
2661
|
+
attempts?: number;
|
|
2662
|
+
retry_at?: string;
|
|
2663
|
+
catch_up?: true;
|
|
2664
|
+
} | {
|
|
2665
|
+
ok: "duplicate";
|
|
2666
|
+
}>;
|
|
2667
|
+
};
|
|
2668
|
+
/** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
|
|
2669
|
+
export type RotateComposioSecretResponse = {
|
|
2670
|
+
rotated: true;
|
|
2671
|
+
};
|
|
1787
2672
|
/** 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. */
|
|
1788
2673
|
export type SaveComposioServerBody = {
|
|
1789
2674
|
api_key: string;
|
|
@@ -1795,6 +2680,8 @@ export type SaveComposioServerResponse = {
|
|
|
1795
2680
|
server: {
|
|
1796
2681
|
name: string;
|
|
1797
2682
|
url: string;
|
|
2683
|
+
source: "composio" | "github" | "url";
|
|
2684
|
+
toolkit: string | null;
|
|
1798
2685
|
auth: {
|
|
1799
2686
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1800
2687
|
headers?: Array<string>;
|
|
@@ -1818,7 +2705,11 @@ export type SaveComposioServerResponse = {
|
|
|
1818
2705
|
annotations?: Record<string, unknown>;
|
|
1819
2706
|
grantable?: false;
|
|
1820
2707
|
reason?: string;
|
|
2708
|
+
effect?: "read" | "write" | "destructive";
|
|
2709
|
+
grant_problems?: Record<string, string>;
|
|
1821
2710
|
permission?: "allow" | "ask" | "deny";
|
|
2711
|
+
allow_reads?: true;
|
|
2712
|
+
fallback_allow_reads?: true;
|
|
1822
2713
|
default_permission?: "allow" | "ask" | "deny";
|
|
1823
2714
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1824
2715
|
}>;
|
|
@@ -1872,12 +2763,53 @@ export type SaveComputerKeysResponse = {
|
|
|
1872
2763
|
images?: Array<string>;
|
|
1873
2764
|
};
|
|
1874
2765
|
};
|
|
2766
|
+
/** Save this server's email account, its password sealed (PUT /settings/email). */
|
|
2767
|
+
export type SaveEmailAccountBody = {
|
|
2768
|
+
preset?: "gmail" | "fastmail" | "icloud" | "other" | "outlook";
|
|
2769
|
+
address: string;
|
|
2770
|
+
user?: string;
|
|
2771
|
+
password: string;
|
|
2772
|
+
imap?: {
|
|
2773
|
+
host: string;
|
|
2774
|
+
port: number;
|
|
2775
|
+
};
|
|
2776
|
+
smtp?: {
|
|
2777
|
+
host: string;
|
|
2778
|
+
port: number;
|
|
2779
|
+
};
|
|
2780
|
+
};
|
|
2781
|
+
export type SaveEmailAccountResponse = {
|
|
2782
|
+
configured: boolean;
|
|
2783
|
+
preset: "gmail" | "fastmail" | "icloud" | "other" | null;
|
|
2784
|
+
address: string | null;
|
|
2785
|
+
user: string | null;
|
|
2786
|
+
imap: {
|
|
2787
|
+
host: string;
|
|
2788
|
+
port: number;
|
|
2789
|
+
} | null;
|
|
2790
|
+
smtp: {
|
|
2791
|
+
host: string;
|
|
2792
|
+
port: number;
|
|
2793
|
+
} | null;
|
|
2794
|
+
password_unreadable: boolean;
|
|
2795
|
+
};
|
|
2796
|
+
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
2797
|
+
export type SignOutChatGPTResponse = {
|
|
2798
|
+
revoked: boolean;
|
|
2799
|
+
message?: string;
|
|
2800
|
+
};
|
|
2801
|
+
/** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
|
|
2802
|
+
export type StartChatGPTSignInResponse = {
|
|
2803
|
+
authorize_url: string;
|
|
2804
|
+
expires_at: string;
|
|
2805
|
+
};
|
|
1875
2806
|
/** 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. */
|
|
1876
2807
|
export type StartMcpOAuthBody = {
|
|
1877
2808
|
url: string;
|
|
1878
2809
|
scopes?: Array<string>;
|
|
1879
2810
|
client_id?: string;
|
|
1880
2811
|
client_secret?: string;
|
|
2812
|
+
toolkit?: string | null;
|
|
1881
2813
|
};
|
|
1882
2814
|
export type StartMcpOAuthResponse = {
|
|
1883
2815
|
authorization_url: string;
|
|
@@ -1890,6 +2822,32 @@ export type TestComputerResponse = {
|
|
|
1890
2822
|
ok: false;
|
|
1891
2823
|
why: string;
|
|
1892
2824
|
};
|
|
2825
|
+
/** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
|
|
2826
|
+
export type TestEmailAccountBody = {
|
|
2827
|
+
preset?: "gmail" | "fastmail" | "icloud" | "other" | "outlook";
|
|
2828
|
+
address?: string;
|
|
2829
|
+
user?: string;
|
|
2830
|
+
password?: string;
|
|
2831
|
+
imap?: {
|
|
2832
|
+
host: string;
|
|
2833
|
+
port: number;
|
|
2834
|
+
};
|
|
2835
|
+
smtp?: {
|
|
2836
|
+
host: string;
|
|
2837
|
+
port: number;
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
export type TestEmailAccountResponse = {
|
|
2841
|
+
ok: boolean;
|
|
2842
|
+
imap: {
|
|
2843
|
+
ok: boolean;
|
|
2844
|
+
message: string;
|
|
2845
|
+
};
|
|
2846
|
+
smtp: {
|
|
2847
|
+
ok: boolean;
|
|
2848
|
+
message: string;
|
|
2849
|
+
};
|
|
2850
|
+
};
|
|
1893
2851
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
1894
2852
|
export type TestWorkspaceArchilResponse = {
|
|
1895
2853
|
ok: true;
|
|
@@ -1899,10 +2857,19 @@ export type TestWorkspaceArchilResponse = {
|
|
|
1899
2857
|
why: string;
|
|
1900
2858
|
};
|
|
1901
2859
|
/** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
|
|
2860
|
+
export type DeleteMcpServerResponse = {
|
|
2861
|
+
deleted: true;
|
|
2862
|
+
composio: {
|
|
2863
|
+
removed: false;
|
|
2864
|
+
note: string;
|
|
2865
|
+
};
|
|
2866
|
+
};
|
|
1902
2867
|
/** One saved MCP server; never its credential (GET /settings/mcp-servers/{name}). */
|
|
1903
2868
|
export type GetMcpServerResponse = {
|
|
1904
2869
|
name: string;
|
|
1905
2870
|
url: string;
|
|
2871
|
+
source: "composio" | "github" | "url";
|
|
2872
|
+
toolkit: string | null;
|
|
1906
2873
|
auth: {
|
|
1907
2874
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1908
2875
|
headers?: Array<string>;
|
|
@@ -1926,7 +2893,11 @@ export type GetMcpServerResponse = {
|
|
|
1926
2893
|
annotations?: Record<string, unknown>;
|
|
1927
2894
|
grantable?: false;
|
|
1928
2895
|
reason?: string;
|
|
2896
|
+
effect?: "read" | "write" | "destructive";
|
|
2897
|
+
grant_problems?: Record<string, string>;
|
|
1929
2898
|
permission?: "allow" | "ask" | "deny";
|
|
2899
|
+
allow_reads?: true;
|
|
2900
|
+
fallback_allow_reads?: true;
|
|
1930
2901
|
default_permission?: "allow" | "ask" | "deny";
|
|
1931
2902
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1932
2903
|
}>;
|
|
@@ -1941,6 +2912,8 @@ export type ListMcpServersResponse = {
|
|
|
1941
2912
|
servers: Array<{
|
|
1942
2913
|
name: string;
|
|
1943
2914
|
url: string;
|
|
2915
|
+
source: "composio" | "github" | "url";
|
|
2916
|
+
toolkit: string | null;
|
|
1944
2917
|
auth: {
|
|
1945
2918
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1946
2919
|
headers?: Array<string>;
|
|
@@ -1964,7 +2937,11 @@ export type ListMcpServersResponse = {
|
|
|
1964
2937
|
annotations?: Record<string, unknown>;
|
|
1965
2938
|
grantable?: false;
|
|
1966
2939
|
reason?: string;
|
|
2940
|
+
effect?: "read" | "write" | "destructive";
|
|
2941
|
+
grant_problems?: Record<string, string>;
|
|
1967
2942
|
permission?: "allow" | "ask" | "deny";
|
|
2943
|
+
allow_reads?: true;
|
|
2944
|
+
fallback_allow_reads?: true;
|
|
1968
2945
|
default_permission?: "allow" | "ask" | "deny";
|
|
1969
2946
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1970
2947
|
}>;
|
|
@@ -2002,7 +2979,11 @@ export type PreviewMcpServerResponse = {
|
|
|
2002
2979
|
annotations?: Record<string, unknown>;
|
|
2003
2980
|
grantable?: false;
|
|
2004
2981
|
reason?: string;
|
|
2982
|
+
effect?: "read" | "write" | "destructive";
|
|
2983
|
+
grant_problems?: Record<string, string>;
|
|
2005
2984
|
permission?: "allow" | "ask" | "deny";
|
|
2985
|
+
allow_reads?: true;
|
|
2986
|
+
fallback_allow_reads?: true;
|
|
2006
2987
|
default_permission?: "allow" | "ask" | "deny";
|
|
2007
2988
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
2008
2989
|
}>;
|
|
@@ -2019,6 +3000,8 @@ export type RefreshMcpServerResponse = {
|
|
|
2019
3000
|
server: {
|
|
2020
3001
|
name: string;
|
|
2021
3002
|
url: string;
|
|
3003
|
+
source: "composio" | "github" | "url";
|
|
3004
|
+
toolkit: string | null;
|
|
2022
3005
|
auth: {
|
|
2023
3006
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
2024
3007
|
headers?: Array<string>;
|
|
@@ -2042,7 +3025,11 @@ export type RefreshMcpServerResponse = {
|
|
|
2042
3025
|
annotations?: Record<string, unknown>;
|
|
2043
3026
|
grantable?: false;
|
|
2044
3027
|
reason?: string;
|
|
3028
|
+
effect?: "read" | "write" | "destructive";
|
|
3029
|
+
grant_problems?: Record<string, string>;
|
|
2045
3030
|
permission?: "allow" | "ask" | "deny";
|
|
3031
|
+
allow_reads?: true;
|
|
3032
|
+
fallback_allow_reads?: true;
|
|
2046
3033
|
default_permission?: "allow" | "ask" | "deny";
|
|
2047
3034
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
2048
3035
|
}>;
|
|
@@ -2062,10 +3049,13 @@ export type SaveMcpServerBody = {
|
|
|
2062
3049
|
headers?: Record<string, string>;
|
|
2063
3050
|
};
|
|
2064
3051
|
prices?: Record<string, number>;
|
|
3052
|
+
toolkit?: string | null;
|
|
2065
3053
|
};
|
|
2066
3054
|
export type SaveMcpServerResponse = {
|
|
2067
3055
|
name: string;
|
|
2068
3056
|
url: string;
|
|
3057
|
+
source: "composio" | "github" | "url";
|
|
3058
|
+
toolkit: string | null;
|
|
2069
3059
|
auth: {
|
|
2070
3060
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
2071
3061
|
headers?: Array<string>;
|
|
@@ -2089,7 +3079,11 @@ export type SaveMcpServerResponse = {
|
|
|
2089
3079
|
annotations?: Record<string, unknown>;
|
|
2090
3080
|
grantable?: false;
|
|
2091
3081
|
reason?: string;
|
|
3082
|
+
effect?: "read" | "write" | "destructive";
|
|
3083
|
+
grant_problems?: Record<string, string>;
|
|
2092
3084
|
permission?: "allow" | "ask" | "deny";
|
|
3085
|
+
allow_reads?: true;
|
|
3086
|
+
fallback_allow_reads?: true;
|
|
2093
3087
|
default_permission?: "allow" | "ask" | "deny";
|
|
2094
3088
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
2095
3089
|
}>;
|
|
@@ -2099,6 +3093,84 @@ export type SaveMcpServerResponse = {
|
|
|
2099
3093
|
updated_at: string;
|
|
2100
3094
|
secret?: SecretMeta;
|
|
2101
3095
|
};
|
|
3096
|
+
/** Read activity and token usage reported by externally running agents (GET /observations). */
|
|
3097
|
+
export interface GetObservationsParams {
|
|
3098
|
+
days?: number;
|
|
3099
|
+
session_id?: string;
|
|
3100
|
+
}
|
|
3101
|
+
export type GetObservationsResponse = {
|
|
3102
|
+
connectors: Array<{
|
|
3103
|
+
id: string;
|
|
3104
|
+
display_name: string;
|
|
3105
|
+
connection_state: "online" | "offline" | "disconnected";
|
|
3106
|
+
ingestion_mode: "polling" | "otlp";
|
|
3107
|
+
last_heartbeat_at: string | null;
|
|
3108
|
+
receipt_count: number;
|
|
3109
|
+
receipt_capacity: number;
|
|
3110
|
+
storage_full: boolean;
|
|
3111
|
+
}>;
|
|
3112
|
+
sessions: Array<{
|
|
3113
|
+
id: string;
|
|
3114
|
+
connector_id: string;
|
|
3115
|
+
source_id: string;
|
|
3116
|
+
external_session_id: string;
|
|
3117
|
+
harness: "claude" | "codex";
|
|
3118
|
+
activity: "unknown" | "working" | "idle" | "waiting_input" | "finished" | "failed" | "stopped";
|
|
3119
|
+
reported_activity: "unknown" | "working" | "idle" | "waiting_input" | "finished" | "failed" | "stopped";
|
|
3120
|
+
connection_state: "online" | "offline" | "disconnected";
|
|
3121
|
+
selection_active: boolean;
|
|
3122
|
+
occurred_at: string;
|
|
3123
|
+
received_at: string;
|
|
3124
|
+
created_at: string;
|
|
3125
|
+
updated_at: string;
|
|
3126
|
+
sequence: number;
|
|
3127
|
+
display_name: string;
|
|
3128
|
+
models: Array<string>;
|
|
3129
|
+
usage: {
|
|
3130
|
+
input_tokens: number;
|
|
3131
|
+
output_tokens: number;
|
|
3132
|
+
cache_read_tokens: number | null;
|
|
3133
|
+
cache_write_tokens: number | null;
|
|
3134
|
+
total_tokens: number;
|
|
3135
|
+
cache_hit_rate: number | null;
|
|
3136
|
+
overflow: boolean;
|
|
3137
|
+
status: "reported" | "unavailable";
|
|
3138
|
+
};
|
|
3139
|
+
observation_only: true;
|
|
3140
|
+
}>;
|
|
3141
|
+
usage: {
|
|
3142
|
+
input_tokens: number | null;
|
|
3143
|
+
output_tokens: number | null;
|
|
3144
|
+
cache_read_tokens: number | null;
|
|
3145
|
+
cache_write_tokens: number | null;
|
|
3146
|
+
total_tokens: number | null;
|
|
3147
|
+
cache_hit_rate: number | null;
|
|
3148
|
+
overflow: boolean;
|
|
3149
|
+
status: "partial" | "unavailable";
|
|
3150
|
+
models: Array<{
|
|
3151
|
+
input_tokens: number | null;
|
|
3152
|
+
output_tokens: number | null;
|
|
3153
|
+
cache_read_tokens: number | null;
|
|
3154
|
+
cache_write_tokens: number | null;
|
|
3155
|
+
total_tokens: number | null;
|
|
3156
|
+
cache_hit_rate: number | null;
|
|
3157
|
+
overflow: boolean;
|
|
3158
|
+
model: string;
|
|
3159
|
+
}>;
|
|
3160
|
+
daily: Array<{
|
|
3161
|
+
date: string;
|
|
3162
|
+
total_tokens: number | null;
|
|
3163
|
+
}>;
|
|
3164
|
+
};
|
|
3165
|
+
limits: {
|
|
3166
|
+
max_receipts_per_connector: number;
|
|
3167
|
+
max_sessions_per_connector: number;
|
|
3168
|
+
receipt_retention: string;
|
|
3169
|
+
receipt_window_seconds: number;
|
|
3170
|
+
session_retention_days: number;
|
|
3171
|
+
usage_retention_days: number;
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
2102
3174
|
/** The agent's revisions, newest first (GET /agents/{agent_id}/revisions). */
|
|
2103
3175
|
export interface ListRevisionsParams {
|
|
2104
3176
|
limit?: number;
|
|
@@ -2114,6 +3186,16 @@ export type ListRevisionsResponse = {
|
|
|
2114
3186
|
note: string | null;
|
|
2115
3187
|
created_at: Timestamp;
|
|
2116
3188
|
definition: Definition;
|
|
3189
|
+
mcp_pin?: Record<string, {
|
|
3190
|
+
tools: Array<{
|
|
3191
|
+
name: string;
|
|
3192
|
+
title?: string;
|
|
3193
|
+
description?: string;
|
|
3194
|
+
input_schema: Record<string, unknown>;
|
|
3195
|
+
annotations?: Record<string, unknown>;
|
|
3196
|
+
}>;
|
|
3197
|
+
prices?: Record<string, number>;
|
|
3198
|
+
}> | null;
|
|
2117
3199
|
}>;
|
|
2118
3200
|
next_cursor: string | null;
|
|
2119
3201
|
};
|
|
@@ -2159,6 +3241,24 @@ export type CreateInlineRunResponse = Run;
|
|
|
2159
3241
|
export type ListRunFilesResponse = RunFileList;
|
|
2160
3242
|
/** One run (GET /runs/{run_id}). */
|
|
2161
3243
|
export type GetRunResponse = Run;
|
|
3244
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
3245
|
+
export type GradeRunBody = {
|
|
3246
|
+
correct: boolean;
|
|
3247
|
+
expected?: Record<string, unknown>;
|
|
3248
|
+
source?: "feedback" | "eval";
|
|
3249
|
+
label?: string;
|
|
3250
|
+
};
|
|
3251
|
+
export type GradeRunResponse = {
|
|
3252
|
+
run_id: string;
|
|
3253
|
+
correct: boolean;
|
|
3254
|
+
source: "feedback" | "eval";
|
|
3255
|
+
graded_at: string;
|
|
3256
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
3257
|
+
workflow: string | null;
|
|
3258
|
+
workflow_digest: string | null;
|
|
3259
|
+
feedback: "revise" | "look_back" | null;
|
|
3260
|
+
expected?: Record<string, unknown>;
|
|
3261
|
+
};
|
|
2162
3262
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
2163
3263
|
export type GetRunGraphResponse = {
|
|
2164
3264
|
read_at: string;
|
|
@@ -2271,6 +3371,17 @@ export type GetRunLearningResponse = {
|
|
|
2271
3371
|
path?: string;
|
|
2272
3372
|
detail: string;
|
|
2273
3373
|
}>;
|
|
3374
|
+
compiled: {
|
|
3375
|
+
workflow: string;
|
|
3376
|
+
from_notes: Array<string>;
|
|
3377
|
+
attempts: Array<{
|
|
3378
|
+
ok: boolean;
|
|
3379
|
+
errors: Array<string>;
|
|
3380
|
+
}>;
|
|
3381
|
+
digest: string | null;
|
|
3382
|
+
promoted: boolean | null;
|
|
3383
|
+
} | null;
|
|
3384
|
+
draft_errors: Array<string>;
|
|
2274
3385
|
cost_usd: {
|
|
2275
3386
|
grade: number | null;
|
|
2276
3387
|
};
|
|
@@ -2316,6 +3427,17 @@ export type GetRunLearningResponse = {
|
|
|
2316
3427
|
name: string;
|
|
2317
3428
|
pending?: true;
|
|
2318
3429
|
}>;
|
|
3430
|
+
graded?: {
|
|
3431
|
+
run_id: string;
|
|
3432
|
+
correct: boolean;
|
|
3433
|
+
source: "feedback" | "eval";
|
|
3434
|
+
graded_at: string;
|
|
3435
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
3436
|
+
workflow: string | null;
|
|
3437
|
+
workflow_digest: string | null;
|
|
3438
|
+
feedback: "revise" | "look_back" | null;
|
|
3439
|
+
feedback_status: "running" | "ended" | "not_run" | null;
|
|
3440
|
+
};
|
|
2319
3441
|
} | null;
|
|
2320
3442
|
/** What the run proposed, file by file (GET /runs/{run_id}/learning/diff). */
|
|
2321
3443
|
export type GetRunLearningDiffResponse = {
|
|
@@ -2400,11 +3522,105 @@ export interface GetTimelineParams {
|
|
|
2400
3522
|
after?: number;
|
|
2401
3523
|
wait_ms?: number;
|
|
2402
3524
|
limit?: number;
|
|
3525
|
+
calls?: "whole";
|
|
2403
3526
|
"Last-Event-ID"?: string;
|
|
2404
3527
|
}
|
|
2405
3528
|
export type GetTimelineResponse = TimelinePage;
|
|
2406
3529
|
/** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
|
|
2407
3530
|
export type UnarchiveRunResponse = Record<string, unknown>;
|
|
3531
|
+
/** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
|
|
3532
|
+
export type CompleteSdkRunBody = {
|
|
3533
|
+
status: "completed" | "failed" | "cancelled";
|
|
3534
|
+
answer: string;
|
|
3535
|
+
error?: string;
|
|
3536
|
+
model?: string;
|
|
3537
|
+
session_id?: string;
|
|
3538
|
+
usage?: {
|
|
3539
|
+
input_tokens?: number | null;
|
|
3540
|
+
output_tokens?: number | null;
|
|
3541
|
+
cache_read_tokens?: number | null;
|
|
3542
|
+
cache_write_tokens?: number | null;
|
|
3543
|
+
cost_usd?: number | null;
|
|
3544
|
+
};
|
|
3545
|
+
evidence_complete?: boolean;
|
|
3546
|
+
};
|
|
3547
|
+
export interface CompleteSdkRunParams {
|
|
3548
|
+
"Idempotency-Key"?: string;
|
|
3549
|
+
}
|
|
3550
|
+
export type CompleteSdkRunResponse = {
|
|
3551
|
+
accepted: true;
|
|
3552
|
+
};
|
|
3553
|
+
/** Record bounded SDK execution evidence (POST /sdk-runs/{run_id}/events). */
|
|
3554
|
+
export type SdkRunEventsBody = {
|
|
3555
|
+
sequence: number;
|
|
3556
|
+
events: Array<{
|
|
3557
|
+
type: "text";
|
|
3558
|
+
text: string;
|
|
3559
|
+
} | {
|
|
3560
|
+
type: "session";
|
|
3561
|
+
session_id: string;
|
|
3562
|
+
} | {
|
|
3563
|
+
type: "tool";
|
|
3564
|
+
id: string;
|
|
3565
|
+
name: string;
|
|
3566
|
+
status: "started" | "completed" | "failed";
|
|
3567
|
+
input?: unknown;
|
|
3568
|
+
output?: unknown;
|
|
3569
|
+
parent_tool_use_id?: string;
|
|
3570
|
+
}>;
|
|
3571
|
+
};
|
|
3572
|
+
export interface SdkRunEventsParams {
|
|
3573
|
+
"Idempotency-Key"?: string;
|
|
3574
|
+
}
|
|
3575
|
+
export type SdkRunEventsResponse = {
|
|
3576
|
+
accepted: true;
|
|
3577
|
+
};
|
|
3578
|
+
/** Read SDK run and learning state (GET /sdk-runs/{run_id}). */
|
|
3579
|
+
export type GetSdkRunResponse = {
|
|
3580
|
+
run_id: string;
|
|
3581
|
+
state: "running" | "processing" | "completed" | "failed" | "cancelled";
|
|
3582
|
+
learning_run_id?: string;
|
|
3583
|
+
learning: unknown;
|
|
3584
|
+
};
|
|
3585
|
+
/** Register a task executed by an existing backend SDK (POST /agents/{agent_id}/sdk-runs). */
|
|
3586
|
+
export type StartSdkRunBody = {
|
|
3587
|
+
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
3588
|
+
input: string;
|
|
3589
|
+
instructions: string;
|
|
3590
|
+
model?: string;
|
|
3591
|
+
workflow_tools?: Array<{
|
|
3592
|
+
name: string;
|
|
3593
|
+
description: string;
|
|
3594
|
+
input_schema: Record<string, unknown>;
|
|
3595
|
+
output_schema?: Record<string, unknown>;
|
|
3596
|
+
permission: "allow" | "ask" | "deny";
|
|
3597
|
+
price_usd?: number;
|
|
3598
|
+
}>;
|
|
3599
|
+
workflow_adapters?: Array<"runNode" | "runJudge">;
|
|
3600
|
+
};
|
|
3601
|
+
export interface StartSdkRunParams {
|
|
3602
|
+
"Idempotency-Key": string;
|
|
3603
|
+
}
|
|
3604
|
+
export type StartSdkRunResponse = {
|
|
3605
|
+
run_id: string;
|
|
3606
|
+
agent_id: string;
|
|
3607
|
+
console_url: string;
|
|
3608
|
+
token: string;
|
|
3609
|
+
learning: {
|
|
3610
|
+
enabled: boolean;
|
|
3611
|
+
revision: string | null;
|
|
3612
|
+
context: string;
|
|
3613
|
+
skills: Array<{
|
|
3614
|
+
name: string;
|
|
3615
|
+
files: Record<string, string>;
|
|
3616
|
+
}>;
|
|
3617
|
+
workflows: Array<{
|
|
3618
|
+
name: string;
|
|
3619
|
+
workflow: string;
|
|
3620
|
+
description: string;
|
|
3621
|
+
}>;
|
|
3622
|
+
};
|
|
3623
|
+
};
|
|
2408
3624
|
/** What this backend offers (GET /capabilities). */
|
|
2409
3625
|
export type GetCapabilitiesResponse = Capabilities;
|
|
2410
3626
|
/** Whether this server can serve (GET /health). */
|
|
@@ -2475,15 +3691,15 @@ export type GetStatsResponse = {
|
|
|
2475
3691
|
needs_review: number;
|
|
2476
3692
|
failed: number;
|
|
2477
3693
|
runs_with_metrics: number;
|
|
2478
|
-
tokens: number;
|
|
3694
|
+
tokens: number | null;
|
|
2479
3695
|
cost_usd: number | null;
|
|
2480
3696
|
unknown_cost_runs: number;
|
|
2481
|
-
input: number;
|
|
2482
|
-
cache_read: number;
|
|
2483
|
-
cache_write: number;
|
|
2484
|
-
output: number;
|
|
2485
|
-
requests: number;
|
|
2486
|
-
unmetered: number;
|
|
3697
|
+
input: number | null;
|
|
3698
|
+
cache_read: number | null;
|
|
3699
|
+
cache_write: number | null;
|
|
3700
|
+
output: number | null;
|
|
3701
|
+
requests: number | null;
|
|
3702
|
+
unmetered: number | null;
|
|
2487
3703
|
};
|
|
2488
3704
|
time: {
|
|
2489
3705
|
ended_runs: number;
|
|
@@ -2499,7 +3715,7 @@ export type GetStatsResponse = {
|
|
|
2499
3715
|
needs_review: number;
|
|
2500
3716
|
failed: number;
|
|
2501
3717
|
runs_with_metrics: number;
|
|
2502
|
-
tokens: number;
|
|
3718
|
+
tokens: number | null;
|
|
2503
3719
|
cost_usd: number | null;
|
|
2504
3720
|
unknown_cost_runs: number;
|
|
2505
3721
|
}>;
|
|
@@ -2510,7 +3726,7 @@ export type GetStatsResponse = {
|
|
|
2510
3726
|
needs_review: number;
|
|
2511
3727
|
failed: number;
|
|
2512
3728
|
runs_with_metrics: number;
|
|
2513
|
-
tokens: number;
|
|
3729
|
+
tokens: number | null;
|
|
2514
3730
|
cost_usd: number | null;
|
|
2515
3731
|
unknown_cost_runs: number;
|
|
2516
3732
|
}>;
|
|
@@ -2521,7 +3737,7 @@ export type GetStatsResponse = {
|
|
|
2521
3737
|
needs_review: number;
|
|
2522
3738
|
failed: number;
|
|
2523
3739
|
runs_with_metrics: number;
|
|
2524
|
-
tokens: number;
|
|
3740
|
+
tokens: number | null;
|
|
2525
3741
|
cost_usd: number | null;
|
|
2526
3742
|
unknown_cost_runs: number;
|
|
2527
3743
|
}>;
|
|
@@ -2542,32 +3758,137 @@ export type GetStatsResponse = {
|
|
|
2542
3758
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
2543
3759
|
export type ApplyTemplateBody = {
|
|
2544
3760
|
parameters?: Record<string, unknown>;
|
|
3761
|
+
servers?: Record<string, string>;
|
|
2545
3762
|
grants?: Array<string>;
|
|
2546
3763
|
overrides?: {
|
|
2547
3764
|
model?: string;
|
|
3765
|
+
choice?: string;
|
|
2548
3766
|
approvals?: "ask" | "never";
|
|
2549
3767
|
};
|
|
2550
|
-
};
|
|
2551
|
-
export interface ApplyTemplateParams {
|
|
2552
|
-
"Idempotency-Key"?: string;
|
|
2553
|
-
}
|
|
2554
|
-
export type ApplyTemplateResponse = {
|
|
2555
|
-
template: string;
|
|
2556
|
-
version: string;
|
|
2557
|
-
agent_id: string;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
}
|
|
2568
|
-
|
|
3768
|
+
};
|
|
3769
|
+
export interface ApplyTemplateParams {
|
|
3770
|
+
"Idempotency-Key"?: string;
|
|
3771
|
+
}
|
|
3772
|
+
export type ApplyTemplateResponse = {
|
|
3773
|
+
template: string;
|
|
3774
|
+
version: string;
|
|
3775
|
+
agent_id: string;
|
|
3776
|
+
servers: Record<string, string | null>;
|
|
3777
|
+
trigger_ids: Array<string>;
|
|
3778
|
+
warnings: Array<InputIssue>;
|
|
3779
|
+
webhook_secrets?: Array<{
|
|
3780
|
+
trigger_id: string;
|
|
3781
|
+
secret: SecretMeta;
|
|
3782
|
+
signing_secret?: string;
|
|
3783
|
+
secret_set?: true;
|
|
3784
|
+
note?: string;
|
|
3785
|
+
}>;
|
|
3786
|
+
};
|
|
3787
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
3788
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
3789
|
+
export type ImportTemplateBody = {
|
|
3790
|
+
source: string;
|
|
3791
|
+
dry_run?: boolean;
|
|
3792
|
+
trust_publisher?: boolean;
|
|
3793
|
+
};
|
|
3794
|
+
export type ImportTemplateResponse = {
|
|
3795
|
+
template: {
|
|
3796
|
+
id: string;
|
|
3797
|
+
bundled: boolean;
|
|
3798
|
+
source: string | null;
|
|
3799
|
+
sha: string | null;
|
|
3800
|
+
publisher: string | null;
|
|
3801
|
+
name: string;
|
|
3802
|
+
display_name: string | null;
|
|
3803
|
+
version: string;
|
|
3804
|
+
description: string;
|
|
3805
|
+
license: string | null;
|
|
3806
|
+
author: {
|
|
3807
|
+
name: string;
|
|
3808
|
+
email?: string;
|
|
3809
|
+
url?: string;
|
|
3810
|
+
} | null;
|
|
3811
|
+
repository: string | null;
|
|
3812
|
+
output: {
|
|
3813
|
+
schema: string;
|
|
3814
|
+
json_schema: Record<string, unknown> | null;
|
|
3815
|
+
} | null;
|
|
3816
|
+
harness: Array<string> | null;
|
|
3817
|
+
model: {
|
|
3818
|
+
tier: "fast" | "balanced" | "strong";
|
|
3819
|
+
prefer?: string;
|
|
3820
|
+
fast?: string;
|
|
3821
|
+
strong?: string;
|
|
3822
|
+
choices?: Array<{
|
|
3823
|
+
id: string;
|
|
3824
|
+
label: string;
|
|
3825
|
+
model: string;
|
|
3826
|
+
harness: string;
|
|
3827
|
+
warning: string | null;
|
|
3828
|
+
note: string | null;
|
|
3829
|
+
secrets: Array<string>;
|
|
3830
|
+
}>;
|
|
3831
|
+
} | null;
|
|
3832
|
+
effort: string | null;
|
|
3833
|
+
tools: Array<string> | null;
|
|
3834
|
+
checkout: "pull_request" | null;
|
|
3835
|
+
tool_policy: {
|
|
3836
|
+
bash: "read-only";
|
|
3837
|
+
} | null;
|
|
3838
|
+
computer: Array<"shell" | "none"> | null;
|
|
3839
|
+
computer_here: {
|
|
3840
|
+
entry: "shell" | "none" | null;
|
|
3841
|
+
computer: {
|
|
3842
|
+
kind: string;
|
|
3843
|
+
provider?: string;
|
|
3844
|
+
} | null;
|
|
3845
|
+
shell: string | null;
|
|
3846
|
+
dropped: Array<string>;
|
|
3847
|
+
note: string | null;
|
|
3848
|
+
} | null;
|
|
3849
|
+
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
3850
|
+
tags: Array<string>;
|
|
3851
|
+
mcp: Array<{
|
|
3852
|
+
source: "composio" | "github" | "url";
|
|
3853
|
+
toolkit: string;
|
|
3854
|
+
required: boolean;
|
|
3855
|
+
reason: string | null;
|
|
3856
|
+
tools: Array<{
|
|
3857
|
+
name: string;
|
|
3858
|
+
tool: string;
|
|
3859
|
+
asks: "allow" | "ask";
|
|
3860
|
+
pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null> | {
|
|
3861
|
+
keys: Array<string>;
|
|
3862
|
+
}>;
|
|
3863
|
+
}>;
|
|
3864
|
+
}>;
|
|
3865
|
+
parameters: Record<string, unknown>;
|
|
3866
|
+
input_schema: Record<string, unknown> | null;
|
|
3867
|
+
secrets: Array<string>;
|
|
3868
|
+
budget: {
|
|
3869
|
+
per_run_usd: number;
|
|
3870
|
+
} | null;
|
|
3871
|
+
learning: boolean;
|
|
3872
|
+
approvals_default: "ask" | "never";
|
|
3873
|
+
triggers: Array<Record<string, unknown>>;
|
|
3874
|
+
skills: Array<string>;
|
|
3875
|
+
evals: Array<string>;
|
|
3876
|
+
};
|
|
3877
|
+
instructions: string;
|
|
3878
|
+
skill_files: Record<string, string>;
|
|
3879
|
+
publisher_trusted: boolean;
|
|
3880
|
+
stored: boolean;
|
|
3881
|
+
replaced: string | null;
|
|
3882
|
+
console_url: string;
|
|
3883
|
+
};
|
|
3884
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
2569
3885
|
export type ListTemplatesResponse = {
|
|
2570
3886
|
templates: Array<{
|
|
3887
|
+
id: string;
|
|
3888
|
+
bundled: boolean;
|
|
3889
|
+
source: string | null;
|
|
3890
|
+
sha: string | null;
|
|
3891
|
+
publisher: string | null;
|
|
2571
3892
|
name: string;
|
|
2572
3893
|
display_name: string | null;
|
|
2573
3894
|
version: string;
|
|
@@ -2587,6 +3908,17 @@ export type ListTemplatesResponse = {
|
|
|
2587
3908
|
model: {
|
|
2588
3909
|
tier: "fast" | "balanced" | "strong";
|
|
2589
3910
|
prefer?: string;
|
|
3911
|
+
fast?: string;
|
|
3912
|
+
strong?: string;
|
|
3913
|
+
choices?: Array<{
|
|
3914
|
+
id: string;
|
|
3915
|
+
label: string;
|
|
3916
|
+
model: string;
|
|
3917
|
+
harness: string;
|
|
3918
|
+
warning: string | null;
|
|
3919
|
+
note: string | null;
|
|
3920
|
+
secrets: Array<string>;
|
|
3921
|
+
}>;
|
|
2590
3922
|
} | null;
|
|
2591
3923
|
effort: string | null;
|
|
2592
3924
|
tools: Array<string> | null;
|
|
@@ -2605,29 +3937,27 @@ export type ListTemplatesResponse = {
|
|
|
2605
3937
|
dropped: Array<string>;
|
|
2606
3938
|
note: string | null;
|
|
2607
3939
|
} | null;
|
|
3940
|
+
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
3941
|
+
tags: Array<string>;
|
|
2608
3942
|
mcp: Array<{
|
|
2609
|
-
|
|
3943
|
+
source: "composio" | "github" | "url";
|
|
3944
|
+
toolkit: string;
|
|
2610
3945
|
required: boolean;
|
|
3946
|
+
reason: string | null;
|
|
2611
3947
|
tools: Array<{
|
|
2612
3948
|
name: string;
|
|
2613
3949
|
tool: string;
|
|
2614
3950
|
asks: "allow" | "ask";
|
|
2615
|
-
pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null
|
|
3951
|
+
pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null> | {
|
|
3952
|
+
keys: Array<string>;
|
|
3953
|
+
}>;
|
|
2616
3954
|
}>;
|
|
2617
3955
|
}>;
|
|
2618
|
-
parameters: Record<string,
|
|
2619
|
-
|
|
2620
|
-
required: boolean;
|
|
2621
|
-
description: string;
|
|
2622
|
-
pattern?: string;
|
|
2623
|
-
enum?: Array<string | number | boolean>;
|
|
2624
|
-
format?: "cron" | "timezone";
|
|
2625
|
-
default?: string | number | boolean;
|
|
2626
|
-
}>;
|
|
3956
|
+
parameters: Record<string, unknown>;
|
|
3957
|
+
input_schema: Record<string, unknown> | null;
|
|
2627
3958
|
secrets: Array<string>;
|
|
2628
3959
|
budget: {
|
|
2629
|
-
per_run_usd
|
|
2630
|
-
tool_calls?: number;
|
|
3960
|
+
per_run_usd: number;
|
|
2631
3961
|
} | null;
|
|
2632
3962
|
learning: boolean;
|
|
2633
3963
|
approvals_default: "ask" | "never";
|
|
@@ -2715,6 +4045,21 @@ export type PutToolSettingsBody = {
|
|
|
2715
4045
|
provider?: "auto" | "native" | "exa-keyless" | "parallel" | "off";
|
|
2716
4046
|
permission?: "allow" | "ask" | "deny";
|
|
2717
4047
|
};
|
|
4048
|
+
email_search?: {
|
|
4049
|
+
permission?: "allow" | "ask" | "deny";
|
|
4050
|
+
};
|
|
4051
|
+
email_read?: {
|
|
4052
|
+
permission?: "allow" | "ask" | "deny";
|
|
4053
|
+
};
|
|
4054
|
+
email_draft?: {
|
|
4055
|
+
permission?: "allow" | "ask" | "deny";
|
|
4056
|
+
};
|
|
4057
|
+
email_send?: {
|
|
4058
|
+
permission?: "allow" | "ask" | "deny";
|
|
4059
|
+
};
|
|
4060
|
+
email_file?: {
|
|
4061
|
+
permission?: "allow" | "ask" | "deny";
|
|
4062
|
+
};
|
|
2718
4063
|
browser?: {
|
|
2719
4064
|
provider?: "auto" | "browserbase" | "kernel" | "chrome";
|
|
2720
4065
|
permission?: "allow" | "deny";
|
|
@@ -2777,7 +4122,7 @@ export type CreateTriggerBody = {
|
|
|
2777
4122
|
start_at?: string;
|
|
2778
4123
|
} | {
|
|
2779
4124
|
kind: "webhook";
|
|
2780
|
-
signature?: "standard" | "github"
|
|
4125
|
+
signature?: "standard" | "github";
|
|
2781
4126
|
accept?: Array<{
|
|
2782
4127
|
event: string;
|
|
2783
4128
|
actions?: Array<string>;
|
|
@@ -2808,6 +4153,47 @@ export type CreateTriggerBody = {
|
|
|
2808
4153
|
prefix: string;
|
|
2809
4154
|
}>;
|
|
2810
4155
|
}>;
|
|
4156
|
+
} | {
|
|
4157
|
+
kind: "composio";
|
|
4158
|
+
server: string;
|
|
4159
|
+
event: string;
|
|
4160
|
+
config: Record<string, unknown>;
|
|
4161
|
+
accept?: Array<{
|
|
4162
|
+
event: string;
|
|
4163
|
+
actions?: Array<string>;
|
|
4164
|
+
where?: Array<{
|
|
4165
|
+
pointer: string;
|
|
4166
|
+
in: Array<unknown>;
|
|
4167
|
+
} | {
|
|
4168
|
+
pointer: string;
|
|
4169
|
+
exists: boolean;
|
|
4170
|
+
} | {
|
|
4171
|
+
pointer: string;
|
|
4172
|
+
prefix: string;
|
|
4173
|
+
}>;
|
|
4174
|
+
}>;
|
|
4175
|
+
instance_id?: string;
|
|
4176
|
+
hook?: string;
|
|
4177
|
+
move_subscription?: true;
|
|
4178
|
+
} | {
|
|
4179
|
+
kind: "email";
|
|
4180
|
+
account?: "default";
|
|
4181
|
+
mailbox?: string;
|
|
4182
|
+
every_s?: number;
|
|
4183
|
+
accept?: Array<{
|
|
4184
|
+
event: string;
|
|
4185
|
+
actions?: Array<string>;
|
|
4186
|
+
where?: Array<{
|
|
4187
|
+
pointer: string;
|
|
4188
|
+
in: Array<unknown>;
|
|
4189
|
+
} | {
|
|
4190
|
+
pointer: string;
|
|
4191
|
+
exists: boolean;
|
|
4192
|
+
} | {
|
|
4193
|
+
pointer: string;
|
|
4194
|
+
prefix: string;
|
|
4195
|
+
}>;
|
|
4196
|
+
}>;
|
|
2811
4197
|
};
|
|
2812
4198
|
target: {
|
|
2813
4199
|
kind: "start_run";
|
|
@@ -2845,7 +4231,7 @@ export type CreateTriggerResponse = {
|
|
|
2845
4231
|
start_at: string;
|
|
2846
4232
|
} | {
|
|
2847
4233
|
kind: "webhook";
|
|
2848
|
-
signature?: "standard" | "github"
|
|
4234
|
+
signature?: "standard" | "github";
|
|
2849
4235
|
accept?: Array<{
|
|
2850
4236
|
event: string;
|
|
2851
4237
|
actions?: Array<string>;
|
|
@@ -2876,6 +4262,47 @@ export type CreateTriggerResponse = {
|
|
|
2876
4262
|
prefix: string;
|
|
2877
4263
|
}>;
|
|
2878
4264
|
}>;
|
|
4265
|
+
} | {
|
|
4266
|
+
kind: "composio";
|
|
4267
|
+
server: string;
|
|
4268
|
+
event: string;
|
|
4269
|
+
config: Record<string, unknown>;
|
|
4270
|
+
accept?: Array<{
|
|
4271
|
+
event: string;
|
|
4272
|
+
actions?: Array<string>;
|
|
4273
|
+
where?: Array<{
|
|
4274
|
+
pointer: string;
|
|
4275
|
+
in: Array<unknown>;
|
|
4276
|
+
} | {
|
|
4277
|
+
pointer: string;
|
|
4278
|
+
exists: boolean;
|
|
4279
|
+
} | {
|
|
4280
|
+
pointer: string;
|
|
4281
|
+
prefix: string;
|
|
4282
|
+
}>;
|
|
4283
|
+
}>;
|
|
4284
|
+
instance_id?: string;
|
|
4285
|
+
hook?: string;
|
|
4286
|
+
move_subscription?: true;
|
|
4287
|
+
} | {
|
|
4288
|
+
kind: "email";
|
|
4289
|
+
account: "default";
|
|
4290
|
+
mailbox: string;
|
|
4291
|
+
every_s: number;
|
|
4292
|
+
accept?: Array<{
|
|
4293
|
+
event: string;
|
|
4294
|
+
actions?: Array<string>;
|
|
4295
|
+
where?: Array<{
|
|
4296
|
+
pointer: string;
|
|
4297
|
+
in: Array<unknown>;
|
|
4298
|
+
} | {
|
|
4299
|
+
pointer: string;
|
|
4300
|
+
exists: boolean;
|
|
4301
|
+
} | {
|
|
4302
|
+
pointer: string;
|
|
4303
|
+
prefix: string;
|
|
4304
|
+
}>;
|
|
4305
|
+
}>;
|
|
2879
4306
|
};
|
|
2880
4307
|
target: {
|
|
2881
4308
|
kind: "start_run";
|
|
@@ -2908,6 +4335,10 @@ export type CreateTriggerResponse = {
|
|
|
2908
4335
|
at: string;
|
|
2909
4336
|
reason: "connection_lost";
|
|
2910
4337
|
detail: string;
|
|
4338
|
+
} | {
|
|
4339
|
+
at: string;
|
|
4340
|
+
reason: "sign_in_refused";
|
|
4341
|
+
detail: string;
|
|
2911
4342
|
} | null;
|
|
2912
4343
|
next_at: string | null;
|
|
2913
4344
|
last_run_id: string | null;
|
|
@@ -2915,7 +4346,7 @@ export type CreateTriggerResponse = {
|
|
|
2915
4346
|
updated_at: string;
|
|
2916
4347
|
last_firing: {
|
|
2917
4348
|
key: string;
|
|
2918
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4349
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2919
4350
|
nominal_at: string;
|
|
2920
4351
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2921
4352
|
at: string;
|
|
@@ -2930,6 +4361,11 @@ export type CreateTriggerResponse = {
|
|
|
2930
4361
|
retry_at?: string;
|
|
2931
4362
|
catch_up?: true;
|
|
2932
4363
|
} | null;
|
|
4364
|
+
last_check?: {
|
|
4365
|
+
at: string;
|
|
4366
|
+
ok: boolean;
|
|
4367
|
+
message: string;
|
|
4368
|
+
} | null;
|
|
2933
4369
|
hook_url?: string;
|
|
2934
4370
|
secret?: SecretMeta;
|
|
2935
4371
|
signing_secret?: string;
|
|
@@ -2937,13 +4373,20 @@ export type CreateTriggerResponse = {
|
|
|
2937
4373
|
note?: string;
|
|
2938
4374
|
};
|
|
2939
4375
|
/** Delete a trigger and its firings; the runs it started stay (DELETE /triggers/{trigger_id}). */
|
|
4376
|
+
export type DeleteTriggerResponse = {
|
|
4377
|
+
deleted: true;
|
|
4378
|
+
composio: {
|
|
4379
|
+
done: false;
|
|
4380
|
+
note: string;
|
|
4381
|
+
};
|
|
4382
|
+
};
|
|
2940
4383
|
/** Run it now: one firing per Idempotency-Key (POST /triggers/{trigger_id}/fire). */
|
|
2941
4384
|
export interface FireTriggerParams {
|
|
2942
4385
|
"Idempotency-Key": string;
|
|
2943
4386
|
}
|
|
2944
4387
|
export type FireTriggerResponse = {
|
|
2945
4388
|
key: string;
|
|
2946
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4389
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2947
4390
|
nominal_at: string;
|
|
2948
4391
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2949
4392
|
at: string;
|
|
@@ -2962,7 +4405,7 @@ export type FireTriggerResponse = {
|
|
|
2962
4405
|
export type ListTriggerFiringsResponse = {
|
|
2963
4406
|
firings: Array<{
|
|
2964
4407
|
key: string;
|
|
2965
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4408
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
2966
4409
|
nominal_at: string;
|
|
2967
4410
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
2968
4411
|
at: string;
|
|
@@ -2996,7 +4439,7 @@ export type GetTriggerResponse = {
|
|
|
2996
4439
|
start_at: string;
|
|
2997
4440
|
} | {
|
|
2998
4441
|
kind: "webhook";
|
|
2999
|
-
signature?: "standard" | "github"
|
|
4442
|
+
signature?: "standard" | "github";
|
|
3000
4443
|
accept?: Array<{
|
|
3001
4444
|
event: string;
|
|
3002
4445
|
actions?: Array<string>;
|
|
@@ -3027,6 +4470,47 @@ export type GetTriggerResponse = {
|
|
|
3027
4470
|
prefix: string;
|
|
3028
4471
|
}>;
|
|
3029
4472
|
}>;
|
|
4473
|
+
} | {
|
|
4474
|
+
kind: "composio";
|
|
4475
|
+
server: string;
|
|
4476
|
+
event: string;
|
|
4477
|
+
config: Record<string, unknown>;
|
|
4478
|
+
accept?: Array<{
|
|
4479
|
+
event: string;
|
|
4480
|
+
actions?: Array<string>;
|
|
4481
|
+
where?: Array<{
|
|
4482
|
+
pointer: string;
|
|
4483
|
+
in: Array<unknown>;
|
|
4484
|
+
} | {
|
|
4485
|
+
pointer: string;
|
|
4486
|
+
exists: boolean;
|
|
4487
|
+
} | {
|
|
4488
|
+
pointer: string;
|
|
4489
|
+
prefix: string;
|
|
4490
|
+
}>;
|
|
4491
|
+
}>;
|
|
4492
|
+
instance_id?: string;
|
|
4493
|
+
hook?: string;
|
|
4494
|
+
move_subscription?: true;
|
|
4495
|
+
} | {
|
|
4496
|
+
kind: "email";
|
|
4497
|
+
account: "default";
|
|
4498
|
+
mailbox: string;
|
|
4499
|
+
every_s: number;
|
|
4500
|
+
accept?: Array<{
|
|
4501
|
+
event: string;
|
|
4502
|
+
actions?: Array<string>;
|
|
4503
|
+
where?: Array<{
|
|
4504
|
+
pointer: string;
|
|
4505
|
+
in: Array<unknown>;
|
|
4506
|
+
} | {
|
|
4507
|
+
pointer: string;
|
|
4508
|
+
exists: boolean;
|
|
4509
|
+
} | {
|
|
4510
|
+
pointer: string;
|
|
4511
|
+
prefix: string;
|
|
4512
|
+
}>;
|
|
4513
|
+
}>;
|
|
3030
4514
|
};
|
|
3031
4515
|
target: {
|
|
3032
4516
|
kind: "start_run";
|
|
@@ -3059,6 +4543,10 @@ export type GetTriggerResponse = {
|
|
|
3059
4543
|
at: string;
|
|
3060
4544
|
reason: "connection_lost";
|
|
3061
4545
|
detail: string;
|
|
4546
|
+
} | {
|
|
4547
|
+
at: string;
|
|
4548
|
+
reason: "sign_in_refused";
|
|
4549
|
+
detail: string;
|
|
3062
4550
|
} | null;
|
|
3063
4551
|
next_at: string | null;
|
|
3064
4552
|
last_run_id: string | null;
|
|
@@ -3066,7 +4554,7 @@ export type GetTriggerResponse = {
|
|
|
3066
4554
|
updated_at: string;
|
|
3067
4555
|
last_firing: {
|
|
3068
4556
|
key: string;
|
|
3069
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4557
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3070
4558
|
nominal_at: string;
|
|
3071
4559
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3072
4560
|
at: string;
|
|
@@ -3081,6 +4569,11 @@ export type GetTriggerResponse = {
|
|
|
3081
4569
|
retry_at?: string;
|
|
3082
4570
|
catch_up?: true;
|
|
3083
4571
|
} | null;
|
|
4572
|
+
last_check?: {
|
|
4573
|
+
at: string;
|
|
4574
|
+
ok: boolean;
|
|
4575
|
+
message: string;
|
|
4576
|
+
} | null;
|
|
3084
4577
|
hook_url?: string;
|
|
3085
4578
|
secret?: SecretMeta;
|
|
3086
4579
|
note?: string;
|
|
@@ -3104,7 +4597,7 @@ export type ListTriggersResponse = {
|
|
|
3104
4597
|
start_at: string;
|
|
3105
4598
|
} | {
|
|
3106
4599
|
kind: "webhook";
|
|
3107
|
-
signature?: "standard" | "github"
|
|
4600
|
+
signature?: "standard" | "github";
|
|
3108
4601
|
accept?: Array<{
|
|
3109
4602
|
event: string;
|
|
3110
4603
|
actions?: Array<string>;
|
|
@@ -3135,6 +4628,47 @@ export type ListTriggersResponse = {
|
|
|
3135
4628
|
prefix: string;
|
|
3136
4629
|
}>;
|
|
3137
4630
|
}>;
|
|
4631
|
+
} | {
|
|
4632
|
+
kind: "composio";
|
|
4633
|
+
server: string;
|
|
4634
|
+
event: string;
|
|
4635
|
+
config: Record<string, unknown>;
|
|
4636
|
+
accept?: Array<{
|
|
4637
|
+
event: string;
|
|
4638
|
+
actions?: Array<string>;
|
|
4639
|
+
where?: Array<{
|
|
4640
|
+
pointer: string;
|
|
4641
|
+
in: Array<unknown>;
|
|
4642
|
+
} | {
|
|
4643
|
+
pointer: string;
|
|
4644
|
+
exists: boolean;
|
|
4645
|
+
} | {
|
|
4646
|
+
pointer: string;
|
|
4647
|
+
prefix: string;
|
|
4648
|
+
}>;
|
|
4649
|
+
}>;
|
|
4650
|
+
instance_id?: string;
|
|
4651
|
+
hook?: string;
|
|
4652
|
+
move_subscription?: true;
|
|
4653
|
+
} | {
|
|
4654
|
+
kind: "email";
|
|
4655
|
+
account: "default";
|
|
4656
|
+
mailbox: string;
|
|
4657
|
+
every_s: number;
|
|
4658
|
+
accept?: Array<{
|
|
4659
|
+
event: string;
|
|
4660
|
+
actions?: Array<string>;
|
|
4661
|
+
where?: Array<{
|
|
4662
|
+
pointer: string;
|
|
4663
|
+
in: Array<unknown>;
|
|
4664
|
+
} | {
|
|
4665
|
+
pointer: string;
|
|
4666
|
+
exists: boolean;
|
|
4667
|
+
} | {
|
|
4668
|
+
pointer: string;
|
|
4669
|
+
prefix: string;
|
|
4670
|
+
}>;
|
|
4671
|
+
}>;
|
|
3138
4672
|
};
|
|
3139
4673
|
target: {
|
|
3140
4674
|
kind: "start_run";
|
|
@@ -3167,6 +4701,10 @@ export type ListTriggersResponse = {
|
|
|
3167
4701
|
at: string;
|
|
3168
4702
|
reason: "connection_lost";
|
|
3169
4703
|
detail: string;
|
|
4704
|
+
} | {
|
|
4705
|
+
at: string;
|
|
4706
|
+
reason: "sign_in_refused";
|
|
4707
|
+
detail: string;
|
|
3170
4708
|
} | null;
|
|
3171
4709
|
next_at: string | null;
|
|
3172
4710
|
last_run_id: string | null;
|
|
@@ -3174,7 +4712,7 @@ export type ListTriggersResponse = {
|
|
|
3174
4712
|
updated_at: string;
|
|
3175
4713
|
last_firing: {
|
|
3176
4714
|
key: string;
|
|
3177
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4715
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3178
4716
|
nominal_at: string;
|
|
3179
4717
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3180
4718
|
at: string;
|
|
@@ -3189,15 +4727,17 @@ export type ListTriggersResponse = {
|
|
|
3189
4727
|
retry_at?: string;
|
|
3190
4728
|
catch_up?: true;
|
|
3191
4729
|
} | null;
|
|
4730
|
+
last_check?: {
|
|
4731
|
+
at: string;
|
|
4732
|
+
ok: boolean;
|
|
4733
|
+
message: string;
|
|
4734
|
+
} | null;
|
|
3192
4735
|
hook_url?: string;
|
|
3193
4736
|
secret?: SecretMeta;
|
|
3194
4737
|
note?: string;
|
|
3195
4738
|
}>;
|
|
3196
4739
|
};
|
|
3197
4740
|
/** 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. */
|
|
3198
|
-
export type RotateTriggerSecretBody = {
|
|
3199
|
-
secret?: string;
|
|
3200
|
-
};
|
|
3201
4741
|
export type RotateTriggerSecretResponse = {
|
|
3202
4742
|
secret: SecretMeta;
|
|
3203
4743
|
signing_secret?: string;
|
|
@@ -3219,7 +4759,7 @@ export type UpdateTriggerBody = {
|
|
|
3219
4759
|
start_at?: string;
|
|
3220
4760
|
} | {
|
|
3221
4761
|
kind: "webhook";
|
|
3222
|
-
signature?: "standard" | "github"
|
|
4762
|
+
signature?: "standard" | "github";
|
|
3223
4763
|
accept?: Array<{
|
|
3224
4764
|
event: string;
|
|
3225
4765
|
actions?: Array<string>;
|
|
@@ -3250,6 +4790,47 @@ export type UpdateTriggerBody = {
|
|
|
3250
4790
|
prefix: string;
|
|
3251
4791
|
}>;
|
|
3252
4792
|
}>;
|
|
4793
|
+
} | {
|
|
4794
|
+
kind: "composio";
|
|
4795
|
+
server: string;
|
|
4796
|
+
event: string;
|
|
4797
|
+
config: Record<string, unknown>;
|
|
4798
|
+
accept?: Array<{
|
|
4799
|
+
event: string;
|
|
4800
|
+
actions?: Array<string>;
|
|
4801
|
+
where?: Array<{
|
|
4802
|
+
pointer: string;
|
|
4803
|
+
in: Array<unknown>;
|
|
4804
|
+
} | {
|
|
4805
|
+
pointer: string;
|
|
4806
|
+
exists: boolean;
|
|
4807
|
+
} | {
|
|
4808
|
+
pointer: string;
|
|
4809
|
+
prefix: string;
|
|
4810
|
+
}>;
|
|
4811
|
+
}>;
|
|
4812
|
+
instance_id?: string;
|
|
4813
|
+
hook?: string;
|
|
4814
|
+
move_subscription?: true;
|
|
4815
|
+
} | {
|
|
4816
|
+
kind: "email";
|
|
4817
|
+
account?: "default";
|
|
4818
|
+
mailbox?: string;
|
|
4819
|
+
every_s?: number;
|
|
4820
|
+
accept?: Array<{
|
|
4821
|
+
event: string;
|
|
4822
|
+
actions?: Array<string>;
|
|
4823
|
+
where?: Array<{
|
|
4824
|
+
pointer: string;
|
|
4825
|
+
in: Array<unknown>;
|
|
4826
|
+
} | {
|
|
4827
|
+
pointer: string;
|
|
4828
|
+
exists: boolean;
|
|
4829
|
+
} | {
|
|
4830
|
+
pointer: string;
|
|
4831
|
+
prefix: string;
|
|
4832
|
+
}>;
|
|
4833
|
+
}>;
|
|
3253
4834
|
};
|
|
3254
4835
|
target?: {
|
|
3255
4836
|
kind: "start_run";
|
|
@@ -3284,7 +4865,7 @@ export type UpdateTriggerResponse = {
|
|
|
3284
4865
|
start_at: string;
|
|
3285
4866
|
} | {
|
|
3286
4867
|
kind: "webhook";
|
|
3287
|
-
signature?: "standard" | "github"
|
|
4868
|
+
signature?: "standard" | "github";
|
|
3288
4869
|
accept?: Array<{
|
|
3289
4870
|
event: string;
|
|
3290
4871
|
actions?: Array<string>;
|
|
@@ -3315,6 +4896,47 @@ export type UpdateTriggerResponse = {
|
|
|
3315
4896
|
prefix: string;
|
|
3316
4897
|
}>;
|
|
3317
4898
|
}>;
|
|
4899
|
+
} | {
|
|
4900
|
+
kind: "composio";
|
|
4901
|
+
server: string;
|
|
4902
|
+
event: string;
|
|
4903
|
+
config: Record<string, unknown>;
|
|
4904
|
+
accept?: Array<{
|
|
4905
|
+
event: string;
|
|
4906
|
+
actions?: Array<string>;
|
|
4907
|
+
where?: Array<{
|
|
4908
|
+
pointer: string;
|
|
4909
|
+
in: Array<unknown>;
|
|
4910
|
+
} | {
|
|
4911
|
+
pointer: string;
|
|
4912
|
+
exists: boolean;
|
|
4913
|
+
} | {
|
|
4914
|
+
pointer: string;
|
|
4915
|
+
prefix: string;
|
|
4916
|
+
}>;
|
|
4917
|
+
}>;
|
|
4918
|
+
instance_id?: string;
|
|
4919
|
+
hook?: string;
|
|
4920
|
+
move_subscription?: true;
|
|
4921
|
+
} | {
|
|
4922
|
+
kind: "email";
|
|
4923
|
+
account: "default";
|
|
4924
|
+
mailbox: string;
|
|
4925
|
+
every_s: number;
|
|
4926
|
+
accept?: Array<{
|
|
4927
|
+
event: string;
|
|
4928
|
+
actions?: Array<string>;
|
|
4929
|
+
where?: Array<{
|
|
4930
|
+
pointer: string;
|
|
4931
|
+
in: Array<unknown>;
|
|
4932
|
+
} | {
|
|
4933
|
+
pointer: string;
|
|
4934
|
+
exists: boolean;
|
|
4935
|
+
} | {
|
|
4936
|
+
pointer: string;
|
|
4937
|
+
prefix: string;
|
|
4938
|
+
}>;
|
|
4939
|
+
}>;
|
|
3318
4940
|
};
|
|
3319
4941
|
target: {
|
|
3320
4942
|
kind: "start_run";
|
|
@@ -3347,6 +4969,10 @@ export type UpdateTriggerResponse = {
|
|
|
3347
4969
|
at: string;
|
|
3348
4970
|
reason: "connection_lost";
|
|
3349
4971
|
detail: string;
|
|
4972
|
+
} | {
|
|
4973
|
+
at: string;
|
|
4974
|
+
reason: "sign_in_refused";
|
|
4975
|
+
detail: string;
|
|
3350
4976
|
} | null;
|
|
3351
4977
|
next_at: string | null;
|
|
3352
4978
|
last_run_id: string | null;
|
|
@@ -3354,7 +4980,7 @@ export type UpdateTriggerResponse = {
|
|
|
3354
4980
|
updated_at: string;
|
|
3355
4981
|
last_firing: {
|
|
3356
4982
|
key: string;
|
|
3357
|
-
by: "schedule" | "manual" | "webhook" | "github";
|
|
4983
|
+
by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
|
|
3358
4984
|
nominal_at: string;
|
|
3359
4985
|
status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
|
|
3360
4986
|
at: string;
|
|
@@ -3369,9 +4995,18 @@ export type UpdateTriggerResponse = {
|
|
|
3369
4995
|
retry_at?: string;
|
|
3370
4996
|
catch_up?: true;
|
|
3371
4997
|
} | null;
|
|
4998
|
+
last_check?: {
|
|
4999
|
+
at: string;
|
|
5000
|
+
ok: boolean;
|
|
5001
|
+
message: string;
|
|
5002
|
+
} | null;
|
|
3372
5003
|
hook_url?: string;
|
|
3373
5004
|
secret?: SecretMeta;
|
|
3374
5005
|
note?: string;
|
|
5006
|
+
composio?: {
|
|
5007
|
+
done: false;
|
|
5008
|
+
note: string;
|
|
5009
|
+
};
|
|
3375
5010
|
};
|
|
3376
5011
|
/** Usage by meter over a period (GET /usage). */
|
|
3377
5012
|
export interface GetUsageParams {
|
|
@@ -3489,24 +5124,58 @@ export declare function resources(call: Call): {
|
|
|
3489
5124
|
agents: {
|
|
3490
5125
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
3491
5126
|
archive: (agentId: string, options?: RequestOptions) => Promise<ArchiveAgentResponse>;
|
|
5127
|
+
/** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
|
|
5128
|
+
connectNative: (body: ConnectNativeBody, options?: RequestOptions) => Promise<ConnectNativeResponse>;
|
|
3492
5129
|
/** Create an agent home (POST /agents). */
|
|
3493
5130
|
create: (body: CreateAgentBody, params?: CreateAgentParams, options?: RequestOptions) => Promise<CreateAgentResponse>;
|
|
3494
5131
|
/** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
|
|
3495
5132
|
deleteAgentArchil: (agentId: string, options?: RequestOptions) => Promise<DeleteAgentArchilResponse>;
|
|
5133
|
+
/** Disconnect future native jobs while retaining source configuration and history (POST /agents/{agent_id}/native/disconnect). */
|
|
5134
|
+
disconnectNative: (agentId: string, options?: RequestOptions) => Promise<DisconnectNativeResponse>;
|
|
5135
|
+
/** Discover existing native projects on this source machine without running a model (POST /native/discover). */
|
|
5136
|
+
discoverNative: (body: DiscoverNativeBody, options?: RequestOptions) => Promise<DiscoverNativeResponse>;
|
|
3496
5137
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
3497
5138
|
forgetSignIn: (agentId: string, key: string, options?: RequestOptions) => Promise<ForgetSignInResponse>;
|
|
3498
5139
|
/** One agent (GET /agents/{agent_id}). */
|
|
3499
5140
|
get: (agentId: string, options?: RequestOptions) => Promise<Tagged<GetAgentResponse>>;
|
|
3500
5141
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
3501
5142
|
getAgentArchil: (agentId: string, options?: RequestOptions) => Promise<GetAgentArchilResponse>;
|
|
5143
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
5144
|
+
getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
|
|
5145
|
+
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
5146
|
+
getNative: (agentId: string, options?: RequestOptions) => Promise<GetNativeResponse>;
|
|
3502
5147
|
/** List agents (GET /agents). */
|
|
3503
5148
|
list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
|
|
5149
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
5150
|
+
listLearningPromotions: (agentId: string, options?: RequestOptions) => Promise<ListLearningPromotionsResponse>;
|
|
3504
5151
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
3505
5152
|
runs: (agentId: string, params?: ListRunsParams, options?: RequestOptions) => Promise<ListRunsResponse>;
|
|
3506
5153
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
3507
5154
|
unarchive: (agentId: string, options?: RequestOptions) => Promise<UnarchiveAgentResponse>;
|
|
3508
5155
|
/** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
|
|
3509
5156
|
update: (agentId: string, body: UpdateDefinitionBody, params?: UpdateDefinitionParams, options?: RequestOptions) => Promise<Tagged<UpdateDefinitionResponse>>;
|
|
5157
|
+
/** Check native CLI and sign-in without a paid model call (POST /agents/{agent_id}/native/verify). */
|
|
5158
|
+
verifyNative: (agentId: string, options?: RequestOptions) => Promise<VerifyNativeResponse>;
|
|
5159
|
+
};
|
|
5160
|
+
connectors: {
|
|
5161
|
+
/** Complete a source command once under its valid lease (POST /connectors/{connector_id}/commands/{command_id}/complete). */
|
|
5162
|
+
completeRemoteCommand: (connectorId: string, commandId: string, body: CompleteRemoteCommandBody, options?: RequestOptions) => Promise<CompleteRemoteCommandResponse>;
|
|
5163
|
+
/** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
|
|
5164
|
+
enrollRemoteConnector: (body: EnrollRemoteConnectorBody, options?: RequestOptions) => Promise<EnrollRemoteConnectorResponse>;
|
|
5165
|
+
/** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
|
|
5166
|
+
importRemoteHistory: (connectorId: string, targetId: string, body: ImportRemoteHistoryBody, options?: RequestOptions) => Promise<ImportRemoteHistoryResponse>;
|
|
5167
|
+
/** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
|
|
5168
|
+
importRemoteTarget: (connectorId: string, body: ImportRemoteTargetBody, options?: RequestOptions) => Promise<ImportRemoteTargetResponse>;
|
|
5169
|
+
/** List remote source machines and imported agent targets (GET /connectors). */
|
|
5170
|
+
listRemoteConnectors: (options?: RequestOptions) => Promise<ListRemoteConnectorsResponse>;
|
|
5171
|
+
/** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
|
|
5172
|
+
pollRemoteConnector: (connectorId: string, body: PollRemoteConnectorBody, options?: RequestOptions) => Promise<PollRemoteConnectorResponse>;
|
|
5173
|
+
/** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
|
|
5174
|
+
registerRemoteConnector: (body: RegisterRemoteConnectorBody, options?: RequestOptions) => Promise<RegisterRemoteConnectorResponse>;
|
|
5175
|
+
/** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
|
|
5176
|
+
remoteCommandEvents: (connectorId: string, commandId: string, body: RemoteCommandEventsBody, options?: RequestOptions) => Promise<RemoteCommandEventsResponse>;
|
|
5177
|
+
/** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
|
|
5178
|
+
revokeRemoteConnector: (connectorId: string, options?: RequestOptions) => Promise<RevokeRemoteConnectorResponse>;
|
|
3510
5179
|
};
|
|
3511
5180
|
files: {
|
|
3512
5181
|
/** Reserve an upload (POST /files). */
|
|
@@ -3553,6 +5222,8 @@ export declare function resources(call: Call): {
|
|
|
3553
5222
|
read: (agentId: string, file: string, options?: RequestOptions) => Promise<Tagged<ReadLearningFileResponse | string>>;
|
|
3554
5223
|
/** 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). */
|
|
3555
5224
|
recordEval: (agentId: string, body: RecordLearningEvalBody, params?: RecordLearningEvalParams, options?: RequestOptions) => Promise<RecordLearningEvalResponse>;
|
|
5225
|
+
/** 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}). */
|
|
5226
|
+
replay: (agentId: string, name: string, digest: string, replayId: string, options?: RequestOptions) => Promise<GetLearnedWorkflowReplayResponse>;
|
|
3556
5227
|
/** 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). */
|
|
3557
5228
|
retire: (agentId: string, file: string, params?: RetireLearningFileParams, options?: RequestOptions) => Promise<Tagged<string>>;
|
|
3558
5229
|
/** 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). */
|
|
@@ -3563,36 +5234,62 @@ export declare function resources(call: Call): {
|
|
|
3563
5234
|
local: {
|
|
3564
5235
|
/** A code that pairs a person's own computer with this server (POST /computers/pairings). */
|
|
3565
5236
|
createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
|
|
5237
|
+
/** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
|
|
5238
|
+
deleteComposioSubscription: (name: string, options?: RequestOptions) => Promise<DeleteComposioSubscriptionResponse>;
|
|
3566
5239
|
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
3567
5240
|
deleteComputer: (computerId: string, options?: RequestOptions) => Promise<void>;
|
|
5241
|
+
/** Forget this server's email account (DELETE /settings/email). */
|
|
5242
|
+
deleteEmailAccount: (options?: RequestOptions) => Promise<void>;
|
|
3568
5243
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
3569
5244
|
deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
|
|
3570
5245
|
/** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
|
|
3571
5246
|
disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
|
|
5247
|
+
/** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
|
|
5248
|
+
finishChatGptsignIn: (body: FinishChatGPTSignInBody, options?: RequestOptions) => Promise<FinishChatGPTSignInResponse>;
|
|
5249
|
+
/** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
|
|
5250
|
+
getChatGptsignIn: (options?: RequestOptions) => Promise<GetChatGPTSignInResponse>;
|
|
5251
|
+
/** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
|
|
5252
|
+
getEmailAccount: (options?: RequestOptions) => Promise<GetEmailAccountResponse>;
|
|
3572
5253
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
3573
5254
|
getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
|
|
3574
5255
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
3575
5256
|
getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
|
|
5257
|
+
/** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
|
|
5258
|
+
listComposioEvents: (name: string, options?: RequestOptions) => Promise<ListComposioEventsResponse>;
|
|
3576
5259
|
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
|
|
3577
5260
|
listComposioTools: (body: ListComposioToolsBody, options?: RequestOptions) => Promise<ListComposioToolsResponse>;
|
|
5261
|
+
/** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
|
|
5262
|
+
listComposioTriggers: (name: string, options?: RequestOptions) => Promise<ListComposioTriggersResponse>;
|
|
3578
5263
|
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
3579
5264
|
listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
|
|
3580
5265
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
3581
5266
|
listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
|
|
3582
5267
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
3583
5268
|
putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
|
|
5269
|
+
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
5270
|
+
receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
|
|
5271
|
+
/** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
|
|
5272
|
+
rotateComposioSecret: (name: string, options?: RequestOptions) => Promise<RotateComposioSecretResponse>;
|
|
3584
5273
|
/** 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). */
|
|
3585
5274
|
saveComposioServer: (name: string, body: SaveComposioServerBody, options?: RequestOptions) => Promise<SaveComposioServerResponse>;
|
|
3586
5275
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
3587
5276
|
saveComputerKeys: (provider: string, body: SaveComputerKeysBody, options?: RequestOptions) => Promise<SaveComputerKeysResponse>;
|
|
5277
|
+
/** Save this server's email account, its password sealed (PUT /settings/email). */
|
|
5278
|
+
saveEmailAccount: (body: SaveEmailAccountBody, options?: RequestOptions) => Promise<SaveEmailAccountResponse>;
|
|
5279
|
+
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
5280
|
+
signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
|
|
5281
|
+
/** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
|
|
5282
|
+
startChatGptsignIn: (options?: RequestOptions) => Promise<StartChatGPTSignInResponse>;
|
|
3588
5283
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
3589
5284
|
testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
|
|
5285
|
+
/** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
|
|
5286
|
+
testEmailAccount: (body?: TestEmailAccountBody, options?: RequestOptions) => Promise<TestEmailAccountResponse>;
|
|
3590
5287
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
3591
5288
|
testWorkspaceArchil: (options?: RequestOptions) => Promise<TestWorkspaceArchilResponse>;
|
|
3592
5289
|
};
|
|
3593
5290
|
mcpServers: {
|
|
3594
5291
|
/** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
|
|
3595
|
-
delete: (name: string, options?: RequestOptions) => Promise<
|
|
5292
|
+
delete: (name: string, options?: RequestOptions) => Promise<DeleteMcpServerResponse | undefined>;
|
|
3596
5293
|
/** One saved MCP server; never its credential (GET /settings/mcp-servers/{name}). */
|
|
3597
5294
|
get: (name: string, options?: RequestOptions) => Promise<GetMcpServerResponse>;
|
|
3598
5295
|
/** The remote MCP servers saved here, with their tools; never a credential (GET /settings/mcp-servers). */
|
|
@@ -3608,6 +5305,10 @@ export declare function resources(call: Call): {
|
|
|
3608
5305
|
/** Preview a remote MCP server, then save it with the tools listed and its credential sealed (PUT /settings/mcp-servers/{name}). */
|
|
3609
5306
|
save: (name: string, body: SaveMcpServerBody, options?: RequestOptions) => Promise<SaveMcpServerResponse>;
|
|
3610
5307
|
};
|
|
5308
|
+
Observations: {
|
|
5309
|
+
/** Read activity and token usage reported by externally running agents (GET /observations). */
|
|
5310
|
+
getObservations: (params?: GetObservationsParams, options?: RequestOptions) => Promise<GetObservationsResponse>;
|
|
5311
|
+
};
|
|
3611
5312
|
revisions: {
|
|
3612
5313
|
/** The agent's revisions, newest first (GET /agents/{agent_id}/revisions). */
|
|
3613
5314
|
list: (agentId: string, params?: ListRevisionsParams, options?: RequestOptions) => Promise<ListRevisionsResponse>;
|
|
@@ -3629,6 +5330,8 @@ export declare function resources(call: Call): {
|
|
|
3629
5330
|
files: (runId: string, options?: RequestOptions) => Promise<ListRunFilesResponse>;
|
|
3630
5331
|
/** One run (GET /runs/{run_id}). */
|
|
3631
5332
|
get: (runId: string, options?: RequestOptions) => Promise<GetRunResponse>;
|
|
5333
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
5334
|
+
gradeRun: (runId: string, body: GradeRunBody, options?: RequestOptions) => Promise<GradeRunResponse>;
|
|
3632
5335
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
3633
5336
|
graph: (runId: string, options?: RequestOptions) => Promise<GetRunGraphResponse>;
|
|
3634
5337
|
/** Hand the run's computer back to the agent, or answer its ask for the owner (POST /runs/{run_id}/computer/hand-back). */
|
|
@@ -3662,6 +5365,16 @@ export declare function resources(call: Call): {
|
|
|
3662
5365
|
/** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
|
|
3663
5366
|
unarchive: (runId: string, options?: RequestOptions) => Promise<UnarchiveRunResponse>;
|
|
3664
5367
|
};
|
|
5368
|
+
sdkRuns: {
|
|
5369
|
+
/** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
|
|
5370
|
+
complete: (runId: string, body: CompleteSdkRunBody, params?: CompleteSdkRunParams, options?: RequestOptions) => Promise<CompleteSdkRunResponse>;
|
|
5371
|
+
/** Record bounded SDK execution evidence (POST /sdk-runs/{run_id}/events). */
|
|
5372
|
+
events: (runId: string, body: SdkRunEventsBody, params?: SdkRunEventsParams, options?: RequestOptions) => Promise<SdkRunEventsResponse>;
|
|
5373
|
+
/** Read SDK run and learning state (GET /sdk-runs/{run_id}). */
|
|
5374
|
+
get: (runId: string, options?: RequestOptions) => Promise<GetSdkRunResponse>;
|
|
5375
|
+
/** Register a task executed by an existing backend SDK (POST /agents/{agent_id}/sdk-runs). */
|
|
5376
|
+
start: (agentId: string, body: StartSdkRunBody, params: StartSdkRunParams, options?: RequestOptions) => Promise<StartSdkRunResponse>;
|
|
5377
|
+
};
|
|
3665
5378
|
server: {
|
|
3666
5379
|
/** What this backend offers (GET /capabilities). */
|
|
3667
5380
|
capabilities: (options?: RequestOptions) => Promise<GetCapabilitiesResponse>;
|
|
@@ -3679,7 +5392,11 @@ export declare function resources(call: Call): {
|
|
|
3679
5392
|
template: {
|
|
3680
5393
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
3681
5394
|
apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
|
|
3682
|
-
/**
|
|
5395
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
5396
|
+
delete: (template: string, options?: RequestOptions) => Promise<void>;
|
|
5397
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
5398
|
+
import: (body: ImportTemplateBody, options?: RequestOptions) => Promise<ImportTemplateResponse>;
|
|
5399
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
3683
5400
|
list: (options?: RequestOptions) => Promise<ListTemplatesResponse>;
|
|
3684
5401
|
};
|
|
3685
5402
|
toolKeys: {
|
|
@@ -3700,7 +5417,7 @@ export declare function resources(call: Call): {
|
|
|
3700
5417
|
/** Make a trigger: a schedule or a signed webhook that starts a capped run of an agent, or messages a run (POST /triggers). */
|
|
3701
5418
|
create: (body: CreateTriggerBody, params?: CreateTriggerParams, options?: RequestOptions) => Promise<CreateTriggerResponse>;
|
|
3702
5419
|
/** Delete a trigger and its firings; the runs it started stay (DELETE /triggers/{trigger_id}). */
|
|
3703
|
-
delete: (triggerId: string, options?: RequestOptions) => Promise<
|
|
5420
|
+
delete: (triggerId: string, options?: RequestOptions) => Promise<DeleteTriggerResponse | undefined>;
|
|
3704
5421
|
/** Run it now: one firing per Idempotency-Key (POST /triggers/{trigger_id}/fire). */
|
|
3705
5422
|
fire: (triggerId: string, params: FireTriggerParams, options?: RequestOptions) => Promise<FireTriggerResponse>;
|
|
3706
5423
|
/** The trigger's last 200 firings, newest first (GET /triggers/{trigger_id}/firings). */
|
|
@@ -3710,7 +5427,7 @@ export declare function resources(call: Call): {
|
|
|
3710
5427
|
/** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
|
|
3711
5428
|
list: (options?: RequestOptions) => Promise<ListTriggersResponse>;
|
|
3712
5429
|
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
|
|
3713
|
-
rotateSecret: (triggerId: string,
|
|
5430
|
+
rotateSecret: (triggerId: string, options?: RequestOptions) => Promise<RotateTriggerSecretResponse>;
|
|
3714
5431
|
/** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
|
|
3715
5432
|
update: (triggerId: string, body: UpdateTriggerBody, options?: RequestOptions) => Promise<UpdateTriggerResponse>;
|
|
3716
5433
|
};
|