@parcha/agentrun-client 0.1.0-beta.46 → 0.1.0-beta.48
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 +61 -5
- package/dist/claude.d.ts +1 -1
- package/dist/claude.js +9 -3
- package/dist/codex.js +7 -3
- package/dist/learning.d.ts +104 -10
- package/dist/learning.js +201 -34
- package/dist/operations.generated.d.ts +320 -26
- package/dist/operations.generated.js +38 -0
- package/dist/workflows.d.ts +36 -5
- package/dist/workflows.js +365 -65
- package/package.json +11 -3
|
@@ -65,10 +65,10 @@ export type Agent = {
|
|
|
65
65
|
default_permission: "allow" | "ask" | "deny";
|
|
66
66
|
permissions: Array<"allow" | "ask" | "deny">;
|
|
67
67
|
}>;
|
|
68
|
-
kind
|
|
69
|
-
revision
|
|
70
|
-
revisions
|
|
71
|
-
archived_at
|
|
68
|
+
kind: "agentic" | "workflow" | null;
|
|
69
|
+
revision: string | null;
|
|
70
|
+
revisions: number;
|
|
71
|
+
archived_at: string | null;
|
|
72
72
|
learning?: {
|
|
73
73
|
pending: number;
|
|
74
74
|
};
|
|
@@ -97,6 +97,10 @@ export type Agent = {
|
|
|
97
97
|
version: string;
|
|
98
98
|
sha: string | null;
|
|
99
99
|
} | null;
|
|
100
|
+
run_blockers?: {
|
|
101
|
+
message: string;
|
|
102
|
+
fields: Array<InputIssue>;
|
|
103
|
+
} | null;
|
|
100
104
|
warnings?: Array<InputIssue>;
|
|
101
105
|
};
|
|
102
106
|
export type Id = string;
|
|
@@ -114,7 +118,7 @@ export type DefinitionInput = {
|
|
|
114
118
|
workflow?: JsonObject;
|
|
115
119
|
max_cost_usd?: number;
|
|
116
120
|
sdk?: {
|
|
117
|
-
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
121
|
+
runtime: "claude-agent-sdk" | "codex-sdk" | "eve";
|
|
118
122
|
};
|
|
119
123
|
native?: {
|
|
120
124
|
runtime: "claude-code" | "codex";
|
|
@@ -327,7 +331,7 @@ export type RunSummary = {
|
|
|
327
331
|
ended_at: Timestamp | null;
|
|
328
332
|
cost: Cost;
|
|
329
333
|
sdk?: {
|
|
330
|
-
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
334
|
+
runtime: "claude-agent-sdk" | "codex-sdk" | "eve";
|
|
331
335
|
model: string | null;
|
|
332
336
|
session_id: string | null;
|
|
333
337
|
learning_revision: string | null;
|
|
@@ -441,19 +445,35 @@ export type RunSummary = {
|
|
|
441
445
|
id: string;
|
|
442
446
|
firing_key: string;
|
|
443
447
|
} | null;
|
|
448
|
+
path?: "agent" | "handed_back" | "workflow" | "replay" | "audit" | null;
|
|
449
|
+
workflow?: {
|
|
450
|
+
name: string | null;
|
|
451
|
+
digest: string | null;
|
|
452
|
+
repick: "found" | "missed" | null;
|
|
453
|
+
} | null;
|
|
444
454
|
};
|
|
445
455
|
export type RunStatus = "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
|
|
446
456
|
export type RunState = "working" | "waiting" | "idle";
|
|
447
457
|
export type Cost = {
|
|
448
458
|
usd: number | null;
|
|
449
|
-
basis: "charge" | "estimate";
|
|
459
|
+
basis: "charge" | "estimate" | "reported" | "unpriced";
|
|
450
460
|
charge_state?: "held" | "settled" | "released" | null;
|
|
451
461
|
cap_usd?: number | null;
|
|
452
462
|
free?: true;
|
|
453
463
|
so_far_usd?: number;
|
|
454
464
|
unpriced?: number;
|
|
455
465
|
upper_bound?: true;
|
|
466
|
+
unknown?: "booking_unread";
|
|
467
|
+
tokens?: {
|
|
468
|
+
input: number;
|
|
469
|
+
output: number;
|
|
470
|
+
cache_read: number;
|
|
471
|
+
cache_write: number;
|
|
472
|
+
requests?: number;
|
|
473
|
+
unmetered?: number;
|
|
474
|
+
};
|
|
456
475
|
learning_usd?: number | null;
|
|
476
|
+
tools_usd?: number | null;
|
|
457
477
|
all_in_usd?: number | null;
|
|
458
478
|
plan?: {
|
|
459
479
|
requests: number;
|
|
@@ -471,7 +491,7 @@ export type RunError = {
|
|
|
471
491
|
reason: "server_lost_at_launch" | "server_lost_at_setup";
|
|
472
492
|
};
|
|
473
493
|
};
|
|
474
|
-
export type RunErrorCode = "run_failed" | "moderated" | "agent_not_runnable" | "needs_connection" | "needs_reconnect" | "connection_revoked" | "output_invalid" | "spend_cap_reached" | "wall_clock_timeout" | "input_expired" | "internal";
|
|
494
|
+
export type RunErrorCode = "run_failed" | "moderated" | "agent_not_runnable" | "needs_connection" | "needs_reconnect" | "connection_revoked" | "output_invalid" | "spend_cap_reached" | "wall_clock_timeout" | "input_expired" | "internal" | "computer_unavailable" | "runner_refused";
|
|
475
495
|
export type NextAction = RequestAction | PersonAction;
|
|
476
496
|
export type RequestAction = {
|
|
477
497
|
type: "request";
|
|
@@ -530,7 +550,7 @@ export type RunCreateInline = {
|
|
|
530
550
|
model_key?: string;
|
|
531
551
|
mcp_auth?: Record<string, {
|
|
532
552
|
headers: Record<string, string>;
|
|
533
|
-
}>;
|
|
553
|
+
} | ComposioRunBinding>;
|
|
534
554
|
labels?: Record<string, string>;
|
|
535
555
|
workflow_first?: boolean;
|
|
536
556
|
learning?: "use";
|
|
@@ -547,6 +567,10 @@ export type ExternalRef = {
|
|
|
547
567
|
id: string;
|
|
548
568
|
version: string | number;
|
|
549
569
|
};
|
|
570
|
+
export type ComposioRunBinding = {
|
|
571
|
+
composio_user_id: string;
|
|
572
|
+
connected_account_id?: string;
|
|
573
|
+
};
|
|
550
574
|
export type Run = {
|
|
551
575
|
run_id: Id;
|
|
552
576
|
agent_id: Id;
|
|
@@ -564,7 +588,7 @@ export type Run = {
|
|
|
564
588
|
cost: Cost;
|
|
565
589
|
poll_after_ms: number;
|
|
566
590
|
sdk?: {
|
|
567
|
-
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
591
|
+
runtime: "claude-agent-sdk" | "codex-sdk" | "eve";
|
|
568
592
|
model: string | null;
|
|
569
593
|
session_id: string | null;
|
|
570
594
|
learning_revision: string | null;
|
|
@@ -713,6 +737,11 @@ export type Run = {
|
|
|
713
737
|
} | null;
|
|
714
738
|
audit_of?: string | null;
|
|
715
739
|
path?: "agent" | "handed_back" | "workflow" | "replay" | "audit" | null;
|
|
740
|
+
workflow?: {
|
|
741
|
+
name: string | null;
|
|
742
|
+
digest: string | null;
|
|
743
|
+
repick: "found" | "missed" | null;
|
|
744
|
+
} | null;
|
|
716
745
|
};
|
|
717
746
|
export type RunResult = {
|
|
718
747
|
output: unknown;
|
|
@@ -737,7 +766,7 @@ export type MessageCreate = {
|
|
|
737
766
|
model_key?: string;
|
|
738
767
|
mcp_auth?: Record<string, {
|
|
739
768
|
headers: Record<string, string>;
|
|
740
|
-
}>;
|
|
769
|
+
} | ComposioRunBinding>;
|
|
741
770
|
};
|
|
742
771
|
export type MessageResult = {
|
|
743
772
|
run_id: Id;
|
|
@@ -756,7 +785,7 @@ export type RunCreate = {
|
|
|
756
785
|
model_key?: string;
|
|
757
786
|
mcp_auth?: Record<string, {
|
|
758
787
|
headers: Record<string, string>;
|
|
759
|
-
}>;
|
|
788
|
+
} | ComposioRunBinding>;
|
|
760
789
|
labels?: Record<string, string>;
|
|
761
790
|
workflow_first?: boolean;
|
|
762
791
|
learning?: "use";
|
|
@@ -887,6 +916,13 @@ export type Capabilities = {
|
|
|
887
916
|
features: Features;
|
|
888
917
|
regions: Array<Region>;
|
|
889
918
|
limits: Limits;
|
|
919
|
+
learning_model: {
|
|
920
|
+
location: "server" | "native";
|
|
921
|
+
ready: boolean;
|
|
922
|
+
model: string | null;
|
|
923
|
+
needs: "key" | "model" | null;
|
|
924
|
+
reason: string | null;
|
|
925
|
+
};
|
|
890
926
|
learning: {
|
|
891
927
|
pending: true;
|
|
892
928
|
approve: boolean;
|
|
@@ -912,7 +948,7 @@ export type Capabilities = {
|
|
|
912
948
|
default_reason?: string;
|
|
913
949
|
allow: Array<string>;
|
|
914
950
|
};
|
|
915
|
-
harnesses
|
|
951
|
+
harnesses: Array<{
|
|
916
952
|
id: string;
|
|
917
953
|
label: string;
|
|
918
954
|
promises: {
|
|
@@ -933,6 +969,7 @@ export type Capabilities = {
|
|
|
933
969
|
reason?: string;
|
|
934
970
|
needs?: Array<"key" | "chatgpt">;
|
|
935
971
|
installs?: "on_first_use";
|
|
972
|
+
card?: string;
|
|
936
973
|
}>;
|
|
937
974
|
tools: Array<{
|
|
938
975
|
name: string;
|
|
@@ -998,6 +1035,12 @@ export type Capabilities = {
|
|
|
998
1035
|
limit: string;
|
|
999
1036
|
};
|
|
1000
1037
|
run_isolation?: "uid" | "process";
|
|
1038
|
+
runner_refused?: string | null;
|
|
1039
|
+
switches: Record<string, {
|
|
1040
|
+
on: boolean;
|
|
1041
|
+
value: string | null;
|
|
1042
|
+
allows: string;
|
|
1043
|
+
}>;
|
|
1001
1044
|
};
|
|
1002
1045
|
export type Features = {
|
|
1003
1046
|
agents: {
|
|
@@ -1081,6 +1124,11 @@ export type Features = {
|
|
|
1081
1124
|
signing: "standard-webhooks/v1";
|
|
1082
1125
|
at_rest: "sealed";
|
|
1083
1126
|
};
|
|
1127
|
+
slack?: {
|
|
1128
|
+
routes: boolean;
|
|
1129
|
+
events: Array<"run.needs_input" | "run.ended" | "trigger.failed">;
|
|
1130
|
+
at_rest: "sealed";
|
|
1131
|
+
};
|
|
1084
1132
|
triggers?: {
|
|
1085
1133
|
routes: boolean;
|
|
1086
1134
|
sources: Array<"schedule" | "webhook" | "github" | "composio" | "email" | "feed">;
|
|
@@ -1127,7 +1175,7 @@ export type Usage = {
|
|
|
1127
1175
|
from: Timestamp;
|
|
1128
1176
|
to: Timestamp;
|
|
1129
1177
|
currency: "USD";
|
|
1130
|
-
basis: "charge" | "estimate";
|
|
1178
|
+
basis: "charge" | "estimate" | "reported" | "unpriced";
|
|
1131
1179
|
group_by: "meter" | "agent" | "key" | "day" | "region";
|
|
1132
1180
|
total_usd: number | null;
|
|
1133
1181
|
lines: Array<UsageLine>;
|
|
@@ -1410,6 +1458,7 @@ export type ListLearningPromotionsResponse = {
|
|
|
1410
1458
|
alone_min: number;
|
|
1411
1459
|
attempt: 1 | 2;
|
|
1412
1460
|
agree_on?: Array<string>;
|
|
1461
|
+
grader?: string;
|
|
1413
1462
|
n?: number;
|
|
1414
1463
|
agreed?: number;
|
|
1415
1464
|
alone?: number;
|
|
@@ -1434,13 +1483,17 @@ export type ListLearningPromotionsResponse = {
|
|
|
1434
1483
|
draft?: string;
|
|
1435
1484
|
escalated?: string;
|
|
1436
1485
|
failed?: true;
|
|
1486
|
+
differs_on?: string;
|
|
1437
1487
|
}>;
|
|
1438
1488
|
stopped?: true;
|
|
1489
|
+
released?: number;
|
|
1490
|
+
fresh_reads?: number;
|
|
1439
1491
|
};
|
|
1440
1492
|
runs?: Array<string>;
|
|
1441
1493
|
inputs?: Array<string>;
|
|
1442
1494
|
replay_id?: string;
|
|
1443
1495
|
commit?: string;
|
|
1496
|
+
via?: "sdk";
|
|
1444
1497
|
audit?: {
|
|
1445
1498
|
window: number;
|
|
1446
1499
|
disagree: number;
|
|
@@ -1494,6 +1547,7 @@ export type ListLearningPromotionsResponse = {
|
|
|
1494
1547
|
alone_min: number;
|
|
1495
1548
|
attempt: 1 | 2;
|
|
1496
1549
|
agree_on?: Array<string>;
|
|
1550
|
+
grader?: string;
|
|
1497
1551
|
n?: number;
|
|
1498
1552
|
agreed?: number;
|
|
1499
1553
|
alone?: number;
|
|
@@ -1518,8 +1572,11 @@ export type ListLearningPromotionsResponse = {
|
|
|
1518
1572
|
draft?: string;
|
|
1519
1573
|
escalated?: string;
|
|
1520
1574
|
failed?: true;
|
|
1575
|
+
differs_on?: string;
|
|
1521
1576
|
}>;
|
|
1522
1577
|
stopped?: true;
|
|
1578
|
+
released?: number;
|
|
1579
|
+
fresh_reads?: number;
|
|
1523
1580
|
} | null;
|
|
1524
1581
|
} | null;
|
|
1525
1582
|
}>;
|
|
@@ -1902,15 +1959,6 @@ export type GetLearningCostResponse = {
|
|
|
1902
1959
|
} | null;
|
|
1903
1960
|
};
|
|
1904
1961
|
bill: {
|
|
1905
|
-
baseline: {
|
|
1906
|
-
runs: number;
|
|
1907
|
-
mean_usd: number;
|
|
1908
|
-
} | null;
|
|
1909
|
-
promoted: {
|
|
1910
|
-
n: number;
|
|
1911
|
-
run_id: string;
|
|
1912
|
-
at: string;
|
|
1913
|
-
} | null;
|
|
1914
1962
|
learning_usd: number;
|
|
1915
1963
|
points: Array<{
|
|
1916
1964
|
n: number;
|
|
@@ -1949,6 +1997,13 @@ export type GetLearningCostResponse = {
|
|
|
1949
1997
|
};
|
|
1950
1998
|
/** What the agent has learned: its corrections, workflow drafts, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
1951
1999
|
export type GetAgentLearningResponse = {
|
|
2000
|
+
learning_model: {
|
|
2001
|
+
location: "server" | "native";
|
|
2002
|
+
ready: boolean;
|
|
2003
|
+
model: string | null;
|
|
2004
|
+
needs: "key" | "model" | null;
|
|
2005
|
+
reason: string | null;
|
|
2006
|
+
};
|
|
1952
2007
|
agent: string;
|
|
1953
2008
|
main: string | null;
|
|
1954
2009
|
corrections: string;
|
|
@@ -2114,6 +2169,25 @@ export type DeleteComposioSubscriptionResponse = {
|
|
|
2114
2169
|
};
|
|
2115
2170
|
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
2116
2171
|
/** Forget this server's email account (DELETE /settings/email). */
|
|
2172
|
+
/** Stop using the saved model gateway: the provider keys are back in force (DELETE /settings/model-gateway). */
|
|
2173
|
+
export type DeleteModelGatewayResponse = {
|
|
2174
|
+
source: "env" | "console" | null;
|
|
2175
|
+
base_url: string | null;
|
|
2176
|
+
ids: "as_named" | "bare";
|
|
2177
|
+
models: {
|
|
2178
|
+
default: string | null;
|
|
2179
|
+
fast: string | null;
|
|
2180
|
+
strong: string | null;
|
|
2181
|
+
};
|
|
2182
|
+
set_at_start: Array<string>;
|
|
2183
|
+
secret: {
|
|
2184
|
+
name: string;
|
|
2185
|
+
set: boolean;
|
|
2186
|
+
source: "env" | "console" | "sign-in" | null;
|
|
2187
|
+
changed_at: string | null;
|
|
2188
|
+
};
|
|
2189
|
+
problem: string | null;
|
|
2190
|
+
};
|
|
2117
2191
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
2118
2192
|
export type DeleteWorkspaceArchilResponse = {
|
|
2119
2193
|
on: boolean;
|
|
@@ -2204,6 +2278,25 @@ export type GetGitHubConnectionResponse = {
|
|
|
2204
2278
|
account: string;
|
|
2205
2279
|
}>;
|
|
2206
2280
|
};
|
|
2281
|
+
/** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
|
|
2282
|
+
export type GetModelGatewayResponse = {
|
|
2283
|
+
source: "env" | "console" | null;
|
|
2284
|
+
base_url: string | null;
|
|
2285
|
+
ids: "as_named" | "bare";
|
|
2286
|
+
models: {
|
|
2287
|
+
default: string | null;
|
|
2288
|
+
fast: string | null;
|
|
2289
|
+
strong: string | null;
|
|
2290
|
+
};
|
|
2291
|
+
set_at_start: Array<string>;
|
|
2292
|
+
secret: {
|
|
2293
|
+
name: string;
|
|
2294
|
+
set: boolean;
|
|
2295
|
+
source: "env" | "console" | "sign-in" | null;
|
|
2296
|
+
changed_at: string | null;
|
|
2297
|
+
};
|
|
2298
|
+
problem: string | null;
|
|
2299
|
+
};
|
|
2207
2300
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
2208
2301
|
export type GetWorkspaceArchilResponse = {
|
|
2209
2302
|
on: boolean;
|
|
@@ -2325,6 +2418,7 @@ export type ListComputersResponse = {
|
|
|
2325
2418
|
offered: boolean;
|
|
2326
2419
|
groups: Array<string>;
|
|
2327
2420
|
tools: Array<string>;
|
|
2421
|
+
settings: Array<string>;
|
|
2328
2422
|
providers: Array<{
|
|
2329
2423
|
id: string;
|
|
2330
2424
|
name: string;
|
|
@@ -2338,6 +2432,7 @@ export type ListComputersResponse = {
|
|
|
2338
2432
|
required: Array<string>;
|
|
2339
2433
|
ready: boolean;
|
|
2340
2434
|
runs_refused: string | null;
|
|
2435
|
+
folder: "bind" | "archil" | "sync" | null;
|
|
2341
2436
|
shell: "computer" | "local" | "none";
|
|
2342
2437
|
host_tools: Array<string>;
|
|
2343
2438
|
why?: string;
|
|
@@ -2457,6 +2552,8 @@ export type SaveComposioServerBody = {
|
|
|
2457
2552
|
toolkit: string;
|
|
2458
2553
|
tools: Array<string>;
|
|
2459
2554
|
user_id?: string;
|
|
2555
|
+
auth_config_id?: string;
|
|
2556
|
+
price_usd?: number;
|
|
2460
2557
|
};
|
|
2461
2558
|
export type SaveComposioServerResponse = {
|
|
2462
2559
|
server: {
|
|
@@ -2523,6 +2620,7 @@ export type SaveComputerKeysResponse = {
|
|
|
2523
2620
|
required: Array<string>;
|
|
2524
2621
|
ready: boolean;
|
|
2525
2622
|
runs_refused: string | null;
|
|
2623
|
+
folder: "bind" | "archil" | "sync" | null;
|
|
2526
2624
|
shell: "computer" | "local" | "none";
|
|
2527
2625
|
host_tools: Array<string>;
|
|
2528
2626
|
why?: string;
|
|
@@ -2580,6 +2678,35 @@ export type SaveEmailAccountResponse = {
|
|
|
2580
2678
|
} | null;
|
|
2581
2679
|
password_unreadable: boolean;
|
|
2582
2680
|
};
|
|
2681
|
+
/** Use a model gateway for every model, saved here (PUT /settings/model-gateway). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
2682
|
+
export type SaveModelGatewayBody = {
|
|
2683
|
+
base_url: string;
|
|
2684
|
+
api_key?: string | null;
|
|
2685
|
+
ids?: "as_named" | "bare";
|
|
2686
|
+
models?: {
|
|
2687
|
+
default?: string;
|
|
2688
|
+
fast?: string | null;
|
|
2689
|
+
strong?: string | null;
|
|
2690
|
+
};
|
|
2691
|
+
};
|
|
2692
|
+
export type SaveModelGatewayResponse = {
|
|
2693
|
+
source: "env" | "console" | null;
|
|
2694
|
+
base_url: string | null;
|
|
2695
|
+
ids: "as_named" | "bare";
|
|
2696
|
+
models: {
|
|
2697
|
+
default: string | null;
|
|
2698
|
+
fast: string | null;
|
|
2699
|
+
strong: string | null;
|
|
2700
|
+
};
|
|
2701
|
+
set_at_start: Array<string>;
|
|
2702
|
+
secret: {
|
|
2703
|
+
name: string;
|
|
2704
|
+
set: boolean;
|
|
2705
|
+
source: "env" | "console" | "sign-in" | null;
|
|
2706
|
+
changed_at: string | null;
|
|
2707
|
+
};
|
|
2708
|
+
problem: string | null;
|
|
2709
|
+
};
|
|
2583
2710
|
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
2584
2711
|
export type SignOutChatGPTResponse = {
|
|
2585
2712
|
revoked: boolean;
|
|
@@ -2657,6 +2784,18 @@ export type TestEmailAccountResponse = {
|
|
|
2657
2784
|
message: string;
|
|
2658
2785
|
};
|
|
2659
2786
|
};
|
|
2787
|
+
/** Ask a model gateway which models it serves (POST /settings/model-gateway/test). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
2788
|
+
export type TestModelGatewayBody = {
|
|
2789
|
+
base_url?: string;
|
|
2790
|
+
api_key?: string | null;
|
|
2791
|
+
};
|
|
2792
|
+
export type TestModelGatewayResponse = {
|
|
2793
|
+
ok: true;
|
|
2794
|
+
models: Array<string>;
|
|
2795
|
+
} | {
|
|
2796
|
+
ok: false;
|
|
2797
|
+
why: string;
|
|
2798
|
+
};
|
|
2660
2799
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
2661
2800
|
export type TestWorkspaceArchilResponse = {
|
|
2662
2801
|
ok: true;
|
|
@@ -3082,6 +3221,12 @@ export interface CreateInlineRunParams {
|
|
|
3082
3221
|
"Idempotency-Key"?: string;
|
|
3083
3222
|
}
|
|
3084
3223
|
export type CreateInlineRunResponse = Run;
|
|
3224
|
+
/** Mint a link to the run's live view for the backend's user (POST /runs/{run_id}/computer/viewer). */
|
|
3225
|
+
export type CreateRunComputerViewerBody = Record<string, never>;
|
|
3226
|
+
export type CreateRunComputerViewerResponse = {
|
|
3227
|
+
url: string;
|
|
3228
|
+
expires_at: string;
|
|
3229
|
+
};
|
|
3085
3230
|
/** The files the run wrote (GET /runs/{run_id}/files). */
|
|
3086
3231
|
export type ListRunFilesResponse = RunFileList;
|
|
3087
3232
|
/** One run (GET /runs/{run_id}). */
|
|
@@ -3388,6 +3533,18 @@ export type SdkRunEventsBody = {
|
|
|
3388
3533
|
} | {
|
|
3389
3534
|
type: "session";
|
|
3390
3535
|
session_id: string;
|
|
3536
|
+
} | {
|
|
3537
|
+
type: "workflow_check";
|
|
3538
|
+
id: string;
|
|
3539
|
+
digest: string;
|
|
3540
|
+
outcome: "answered" | "handed_back" | "failed" | "skipped_write";
|
|
3541
|
+
answer?: string;
|
|
3542
|
+
reason?: string;
|
|
3543
|
+
skipped?: {
|
|
3544
|
+
tool: string;
|
|
3545
|
+
unmarked?: true;
|
|
3546
|
+
};
|
|
3547
|
+
fresh_reads?: number;
|
|
3391
3548
|
} | {
|
|
3392
3549
|
type: "tool";
|
|
3393
3550
|
id: string;
|
|
@@ -3413,7 +3570,7 @@ export type GetSdkRunResponse = {
|
|
|
3413
3570
|
};
|
|
3414
3571
|
/** Register a task executed by an existing backend SDK (POST /agents/{agent_id}/sdk-runs). */
|
|
3415
3572
|
export type StartSdkRunBody = {
|
|
3416
|
-
runtime: "claude-agent-sdk" | "codex-sdk";
|
|
3573
|
+
runtime: "claude-agent-sdk" | "codex-sdk" | "eve";
|
|
3417
3574
|
input: string;
|
|
3418
3575
|
instructions: string;
|
|
3419
3576
|
model?: string;
|
|
@@ -3444,17 +3601,29 @@ export type StartSdkRunResponse = {
|
|
|
3444
3601
|
workflow: string;
|
|
3445
3602
|
description: string;
|
|
3446
3603
|
}>;
|
|
3604
|
+
check?: {
|
|
3605
|
+
id: string;
|
|
3606
|
+
revision: string;
|
|
3607
|
+
digest: string;
|
|
3608
|
+
workflow: {
|
|
3609
|
+
name: string;
|
|
3610
|
+
workflow: string;
|
|
3611
|
+
description: string;
|
|
3612
|
+
};
|
|
3613
|
+
};
|
|
3447
3614
|
};
|
|
3448
3615
|
};
|
|
3449
3616
|
/** What this backend offers (GET /capabilities). */
|
|
3450
3617
|
export type GetCapabilitiesResponse = Capabilities;
|
|
3451
3618
|
/** Whether this server can serve (GET /health). */
|
|
3452
3619
|
export type GetHealthResponse = {
|
|
3453
|
-
status: "ok" | "failing" | "warming";
|
|
3620
|
+
status: "ok" | "degraded" | "failing" | "warming";
|
|
3454
3621
|
checks: {
|
|
3455
3622
|
store: "ok" | "does_not_open" | "opening";
|
|
3456
3623
|
disk: "ok" | "below_floor" | "cannot_check";
|
|
3624
|
+
runner?: "refused";
|
|
3457
3625
|
};
|
|
3626
|
+
runner_refused?: string;
|
|
3458
3627
|
};
|
|
3459
3628
|
/** The MCP endpoint: this API's tools, for a coding agent (POST /mcp). */
|
|
3460
3629
|
export type CallMcpBody = {
|
|
@@ -3474,6 +3643,92 @@ export type CallMcpResponse = {
|
|
|
3474
3643
|
};
|
|
3475
3644
|
/** This document (GET /openapi.json). */
|
|
3476
3645
|
export type GetOpenapiResponse = Record<string, unknown>;
|
|
3646
|
+
/** Remove Slack; its pending messages are dropped, the log of attempts is kept (DELETE /settings/slack). */
|
|
3647
|
+
/** Slack's last 50 attempts, newest first (GET /settings/slack/deliveries). */
|
|
3648
|
+
export type ListSlackDeliveriesResponse = {
|
|
3649
|
+
attempts: Array<{
|
|
3650
|
+
webhook_id: string;
|
|
3651
|
+
type: "run.needs_input" | "run.ended" | "trigger.failed" | "slack.test";
|
|
3652
|
+
at: string;
|
|
3653
|
+
status_code: number | null;
|
|
3654
|
+
latency_ms: number;
|
|
3655
|
+
error: string | null;
|
|
3656
|
+
retry_at: string | null;
|
|
3657
|
+
redelivery: boolean;
|
|
3658
|
+
}>;
|
|
3659
|
+
};
|
|
3660
|
+
/** Where this server posts run notices in Slack, if it is set; never the URL (GET /settings/slack). */
|
|
3661
|
+
export type GetSlackResponse = {
|
|
3662
|
+
configured: false;
|
|
3663
|
+
secret: SecretMeta;
|
|
3664
|
+
events: {
|
|
3665
|
+
"run.needs_input": boolean;
|
|
3666
|
+
"run.ended": boolean;
|
|
3667
|
+
"trigger.failed": boolean;
|
|
3668
|
+
};
|
|
3669
|
+
} | {
|
|
3670
|
+
configured: true;
|
|
3671
|
+
url: string;
|
|
3672
|
+
url_state: "sealed" | "unreadable";
|
|
3673
|
+
secret: SecretMeta;
|
|
3674
|
+
events: {
|
|
3675
|
+
"run.needs_input": boolean;
|
|
3676
|
+
"run.ended": boolean;
|
|
3677
|
+
"trigger.failed": boolean;
|
|
3678
|
+
};
|
|
3679
|
+
disabled: {
|
|
3680
|
+
at: string;
|
|
3681
|
+
reason: string;
|
|
3682
|
+
} | null;
|
|
3683
|
+
updated_at: string;
|
|
3684
|
+
};
|
|
3685
|
+
/** Post a message of Slack's log again, once now, under the same id and body (POST /settings/slack/deliveries/{webhook_id}/redeliver). */
|
|
3686
|
+
export type RedeliverSlackResponse = {
|
|
3687
|
+
webhook_id: string;
|
|
3688
|
+
type: "run.needs_input" | "run.ended" | "trigger.failed" | "slack.test";
|
|
3689
|
+
at: string;
|
|
3690
|
+
status_code: number | null;
|
|
3691
|
+
latency_ms: number;
|
|
3692
|
+
error: string | null;
|
|
3693
|
+
retry_at: string | null;
|
|
3694
|
+
redelivery: boolean;
|
|
3695
|
+
};
|
|
3696
|
+
/** Set Slack's incoming-webhook URL, or which events it is sent (PUT /settings/slack). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
3697
|
+
export type SaveSlackBody = {
|
|
3698
|
+
url?: string;
|
|
3699
|
+
events?: {
|
|
3700
|
+
"run.needs_input"?: boolean;
|
|
3701
|
+
"run.ended"?: boolean;
|
|
3702
|
+
"trigger.failed"?: boolean;
|
|
3703
|
+
};
|
|
3704
|
+
};
|
|
3705
|
+
export type SaveSlackResponse = {
|
|
3706
|
+
configured: true;
|
|
3707
|
+
url: string;
|
|
3708
|
+
url_state: "sealed" | "unreadable";
|
|
3709
|
+
secret: SecretMeta;
|
|
3710
|
+
events: {
|
|
3711
|
+
"run.needs_input": boolean;
|
|
3712
|
+
"run.ended": boolean;
|
|
3713
|
+
"trigger.failed": boolean;
|
|
3714
|
+
};
|
|
3715
|
+
disabled: {
|
|
3716
|
+
at: string;
|
|
3717
|
+
reason: string;
|
|
3718
|
+
} | null;
|
|
3719
|
+
updated_at: string;
|
|
3720
|
+
};
|
|
3721
|
+
/** Post a test message to Slack now, once, and say how it went (POST /settings/slack/test). */
|
|
3722
|
+
export type TestSlackResponse = {
|
|
3723
|
+
webhook_id: string;
|
|
3724
|
+
type: "run.needs_input" | "run.ended" | "trigger.failed" | "slack.test";
|
|
3725
|
+
at: string;
|
|
3726
|
+
status_code: number | null;
|
|
3727
|
+
latency_ms: number;
|
|
3728
|
+
error: string | null;
|
|
3729
|
+
retry_at: string | null;
|
|
3730
|
+
redelivery: boolean;
|
|
3731
|
+
};
|
|
3477
3732
|
/** Counts and cost over every agent and run (GET /stats). */
|
|
3478
3733
|
export interface GetStatsParams {
|
|
3479
3734
|
from?: string;
|
|
@@ -3497,7 +3752,7 @@ export type GetStatsResponse = {
|
|
|
3497
3752
|
}>;
|
|
3498
3753
|
cost: {
|
|
3499
3754
|
usd: number | null;
|
|
3500
|
-
basis: "estimate" | null;
|
|
3755
|
+
basis: "reported" | "estimate" | "unpriced" | null;
|
|
3501
3756
|
unknown_runs: number;
|
|
3502
3757
|
};
|
|
3503
3758
|
archived: {
|
|
@@ -5022,6 +5277,19 @@ export type RedeliverWebhookResponse = {
|
|
|
5022
5277
|
retry_at: string | null;
|
|
5023
5278
|
redelivery: boolean;
|
|
5024
5279
|
};
|
|
5280
|
+
/** The webhook's new signing secret, shown once; the old one signs nothing from now on (POST /settings/webhook/secret). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
5281
|
+
export type RotateWebhookSecretResponse = {
|
|
5282
|
+
configured: true;
|
|
5283
|
+
url: string;
|
|
5284
|
+
secret: SecretMeta;
|
|
5285
|
+
signing: "sealed" | "unreadable";
|
|
5286
|
+
disabled: {
|
|
5287
|
+
at: string;
|
|
5288
|
+
reason: string;
|
|
5289
|
+
} | null;
|
|
5290
|
+
updated_at: string;
|
|
5291
|
+
signing_secret: string;
|
|
5292
|
+
};
|
|
5025
5293
|
/** Set the webhook's URL (PUT /settings/webhook). */
|
|
5026
5294
|
export type SaveWebhookBody = {
|
|
5027
5295
|
url: string;
|
|
@@ -5201,6 +5469,8 @@ export declare function resources(call: Call): {
|
|
|
5201
5469
|
deleteComputer: (computerId: string, options?: RequestOptions) => Promise<void>;
|
|
5202
5470
|
/** Forget this server's email account (DELETE /settings/email). */
|
|
5203
5471
|
deleteEmailAccount: (options?: RequestOptions) => Promise<void>;
|
|
5472
|
+
/** Stop using the saved model gateway: the provider keys are back in force (DELETE /settings/model-gateway). */
|
|
5473
|
+
deleteModelGateway: (options?: RequestOptions) => Promise<DeleteModelGatewayResponse>;
|
|
5204
5474
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
5205
5475
|
deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
|
|
5206
5476
|
/** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
|
|
@@ -5217,6 +5487,8 @@ export declare function resources(call: Call): {
|
|
|
5217
5487
|
getEmailAccount: (options?: RequestOptions) => Promise<GetEmailAccountResponse>;
|
|
5218
5488
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
5219
5489
|
getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
|
|
5490
|
+
/** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
|
|
5491
|
+
getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
|
|
5220
5492
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
5221
5493
|
getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
|
|
5222
5494
|
/** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
|
|
@@ -5243,6 +5515,8 @@ export declare function resources(call: Call): {
|
|
|
5243
5515
|
saveComputerKeys: (provider: string, body: SaveComputerKeysBody, options?: RequestOptions) => Promise<SaveComputerKeysResponse>;
|
|
5244
5516
|
/** Save this server's email account, its password sealed (PUT /settings/email). */
|
|
5245
5517
|
saveEmailAccount: (body: SaveEmailAccountBody, options?: RequestOptions) => Promise<SaveEmailAccountResponse>;
|
|
5518
|
+
/** Use a model gateway for every model, saved here (PUT /settings/model-gateway). */
|
|
5519
|
+
saveModelGateway: (body: SaveModelGatewayBody, options?: RequestOptions) => Promise<SaveModelGatewayResponse>;
|
|
5246
5520
|
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
5247
5521
|
signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
|
|
5248
5522
|
/** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
|
|
@@ -5255,6 +5529,8 @@ export declare function resources(call: Call): {
|
|
|
5255
5529
|
testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
|
|
5256
5530
|
/** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
|
|
5257
5531
|
testEmailAccount: (body?: TestEmailAccountBody, options?: RequestOptions) => Promise<TestEmailAccountResponse>;
|
|
5532
|
+
/** Ask a model gateway which models it serves (POST /settings/model-gateway/test). */
|
|
5533
|
+
testModelGateway: (body?: TestModelGatewayBody, options?: RequestOptions) => Promise<TestModelGatewayResponse>;
|
|
5258
5534
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
5259
5535
|
testWorkspaceArchil: (options?: RequestOptions) => Promise<TestWorkspaceArchilResponse>;
|
|
5260
5536
|
/** Turn off Claude Code's login on this machine (DELETE /settings/claude-login). */
|
|
@@ -5301,6 +5577,8 @@ export declare function resources(call: Call): {
|
|
|
5301
5577
|
computerRelease: (runId: string, body?: ReleaseRunComputerBody, options?: RequestOptions) => Promise<ReleaseRunComputerResponse>;
|
|
5302
5578
|
/** Start a run of an agent another system owns, given inline (POST /runs). */
|
|
5303
5579
|
createInlineRun: (body: CreateInlineRunBody, params?: CreateInlineRunParams, options?: RequestOptions) => Promise<CreateInlineRunResponse>;
|
|
5580
|
+
/** Mint a link to the run's live view for the backend's user (POST /runs/{run_id}/computer/viewer). */
|
|
5581
|
+
createRunComputerViewer: (runId: string, body?: CreateRunComputerViewerBody, options?: RequestOptions) => Promise<CreateRunComputerViewerResponse>;
|
|
5304
5582
|
/** The files the run wrote (GET /runs/{run_id}/files). */
|
|
5305
5583
|
files: (runId: string, options?: RequestOptions) => Promise<ListRunFilesResponse>;
|
|
5306
5584
|
/** One run (GET /runs/{run_id}). */
|
|
@@ -5362,6 +5640,20 @@ export declare function resources(call: Call): {
|
|
|
5362
5640
|
/** This document (GET /openapi.json). */
|
|
5363
5641
|
openapi: (options?: RequestOptions) => Promise<GetOpenapiResponse>;
|
|
5364
5642
|
};
|
|
5643
|
+
slack: {
|
|
5644
|
+
/** Remove Slack; its pending messages are dropped, the log of attempts is kept (DELETE /settings/slack). */
|
|
5645
|
+
delete: (options?: RequestOptions) => Promise<void>;
|
|
5646
|
+
/** Slack's last 50 attempts, newest first (GET /settings/slack/deliveries). */
|
|
5647
|
+
deliveries: (options?: RequestOptions) => Promise<ListSlackDeliveriesResponse>;
|
|
5648
|
+
/** Where this server posts run notices in Slack, if it is set; never the URL (GET /settings/slack). */
|
|
5649
|
+
get: (options?: RequestOptions) => Promise<GetSlackResponse>;
|
|
5650
|
+
/** Post a message of Slack's log again, once now, under the same id and body (POST /settings/slack/deliveries/{webhook_id}/redeliver). */
|
|
5651
|
+
redeliver: (webhookId: string, options?: RequestOptions) => Promise<RedeliverSlackResponse>;
|
|
5652
|
+
/** Set Slack's incoming-webhook URL, or which events it is sent (PUT /settings/slack). */
|
|
5653
|
+
save: (body: SaveSlackBody, options?: RequestOptions) => Promise<SaveSlackResponse>;
|
|
5654
|
+
/** Post a test message to Slack now, once, and say how it went (POST /settings/slack/test). */
|
|
5655
|
+
test: (options?: RequestOptions) => Promise<TestSlackResponse>;
|
|
5656
|
+
};
|
|
5365
5657
|
/** Counts and cost over every agent and run (GET /stats). */
|
|
5366
5658
|
stats: (params?: GetStatsParams, options?: RequestOptions) => Promise<GetStatsResponse>;
|
|
5367
5659
|
/** Usage by meter over a period (GET /usage). */
|
|
@@ -5417,6 +5709,8 @@ export declare function resources(call: Call): {
|
|
|
5417
5709
|
get: (options?: RequestOptions) => Promise<GetWebhookResponse>;
|
|
5418
5710
|
/** Send a message of the log again, once now, under the same webhook-id and body (POST /settings/webhook/deliveries/{webhook_id}/redeliver). */
|
|
5419
5711
|
redeliver: (webhookId: string, options?: RequestOptions) => Promise<RedeliverWebhookResponse>;
|
|
5712
|
+
/** The webhook's new signing secret, shown once; the old one signs nothing from now on (POST /settings/webhook/secret). */
|
|
5713
|
+
rotateSecret: (options?: RequestOptions) => Promise<RotateWebhookSecretResponse>;
|
|
5420
5714
|
/** Set the webhook's URL (PUT /settings/webhook). */
|
|
5421
5715
|
save: (body: SaveWebhookBody, options?: RequestOptions) => Promise<SaveWebhookResponse>;
|
|
5422
5716
|
/** Send a `webhook.test` message now, once, and say how it went (POST /settings/webhook/test). */
|