@remotehost/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/schema.d.ts +740 -9
- package/dist/generated/schema.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export interface paths {
|
|
|
10
10
|
path?: never;
|
|
11
11
|
cookie?: never;
|
|
12
12
|
};
|
|
13
|
+
/** List your organizations */
|
|
13
14
|
get: operations["listMyOrgs"];
|
|
14
15
|
put?: never;
|
|
15
16
|
post?: never;
|
|
@@ -26,8 +27,10 @@ export interface paths {
|
|
|
26
27
|
path?: never;
|
|
27
28
|
cookie?: never;
|
|
28
29
|
};
|
|
30
|
+
/** List projects */
|
|
29
31
|
get: operations["listOrgProjects"];
|
|
30
32
|
put?: never;
|
|
33
|
+
/** Create a project */
|
|
31
34
|
post: operations["createProject"];
|
|
32
35
|
delete?: never;
|
|
33
36
|
options?: never;
|
|
@@ -48,6 +51,7 @@ export interface paths {
|
|
|
48
51
|
delete?: never;
|
|
49
52
|
options?: never;
|
|
50
53
|
head?: never;
|
|
54
|
+
/** Update a project */
|
|
51
55
|
patch: operations["updateProject"];
|
|
52
56
|
trace?: never;
|
|
53
57
|
};
|
|
@@ -58,6 +62,7 @@ export interface paths {
|
|
|
58
62
|
path?: never;
|
|
59
63
|
cookie?: never;
|
|
60
64
|
};
|
|
65
|
+
/** List a project's repositories */
|
|
61
66
|
get: operations["listProjectRepos"];
|
|
62
67
|
put?: never;
|
|
63
68
|
post?: never;
|
|
@@ -74,6 +79,7 @@ export interface paths {
|
|
|
74
79
|
path?: never;
|
|
75
80
|
cookie?: never;
|
|
76
81
|
};
|
|
82
|
+
/** List a project's MCP connections */
|
|
77
83
|
get: operations["listProjectMcpConnections"];
|
|
78
84
|
put?: never;
|
|
79
85
|
post?: never;
|
|
@@ -90,6 +96,7 @@ export interface paths {
|
|
|
90
96
|
path?: never;
|
|
91
97
|
cookie?: never;
|
|
92
98
|
};
|
|
99
|
+
/** List a project's skill connections */
|
|
93
100
|
get: operations["listProjectSkillConnections"];
|
|
94
101
|
put?: never;
|
|
95
102
|
post?: never;
|
|
@@ -106,6 +113,7 @@ export interface paths {
|
|
|
106
113
|
path?: never;
|
|
107
114
|
cookie?: never;
|
|
108
115
|
};
|
|
116
|
+
/** List project members */
|
|
109
117
|
get: operations["listProjectMembers"];
|
|
110
118
|
put?: never;
|
|
111
119
|
post?: never;
|
|
@@ -122,6 +130,7 @@ export interface paths {
|
|
|
122
130
|
path?: never;
|
|
123
131
|
cookie?: never;
|
|
124
132
|
};
|
|
133
|
+
/** Read an organization's subscription */
|
|
125
134
|
get: operations["getOrgSubscription"];
|
|
126
135
|
put?: never;
|
|
127
136
|
post?: never;
|
|
@@ -138,8 +147,16 @@ export interface paths {
|
|
|
138
147
|
path?: never;
|
|
139
148
|
cookie?: never;
|
|
140
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* List sandboxes
|
|
152
|
+
* @description Newest first. Deleted sandboxes are excluded.
|
|
153
|
+
*/
|
|
141
154
|
get: operations["listOrgSandboxes"];
|
|
142
155
|
put?: never;
|
|
156
|
+
/**
|
|
157
|
+
* Create a sandbox
|
|
158
|
+
* @description `agent` (`claude` or `codex`) and `projectId` are required; every other field falls back to the project's defaults, the selected profile, or a server-generated value. `profile` picks a workload shape (`auto`, `agent-small`, `agent-standard`, `build-heavy`, `browser-heavy`, `repo-large` or `long-running`), and `machineSize` overrides its initial machine tier. `region` picks where it runs; an unavailable region is refused rather than replaced. Infrastructure tier comes from the org's plan. `endUserId` and `metadata` attribute the sandbox to one of your own users. The sandbox is returned while it is still provisioning; poll GET /sandboxes/{sandboxId} until it is ready.
|
|
159
|
+
*/
|
|
143
160
|
post: operations["createSandbox"];
|
|
144
161
|
delete?: never;
|
|
145
162
|
options?: never;
|
|
@@ -156,6 +173,10 @@ export interface paths {
|
|
|
156
173
|
};
|
|
157
174
|
get?: never;
|
|
158
175
|
put?: never;
|
|
176
|
+
/**
|
|
177
|
+
* Put a sandbox to sleep
|
|
178
|
+
* @description Snapshots the sandbox, releases its machine and ends machine-time billing. A sleeping sandbox reports status `stopped` and keeps everything for wake. An ephemeral sandbox has no snapshot to keep, so sleeping ends it.
|
|
179
|
+
*/
|
|
159
180
|
post: operations["sleepSandbox"];
|
|
160
181
|
delete?: never;
|
|
161
182
|
options?: never;
|
|
@@ -173,6 +194,7 @@ export interface paths {
|
|
|
173
194
|
get?: never;
|
|
174
195
|
put?: never;
|
|
175
196
|
/**
|
|
197
|
+
* Stop a sandbox
|
|
176
198
|
* @deprecated
|
|
177
199
|
* @description Deprecated: use POST /sandboxes/{sandboxId}/sleep.
|
|
178
200
|
*/
|
|
@@ -192,6 +214,10 @@ export interface paths {
|
|
|
192
214
|
};
|
|
193
215
|
get?: never;
|
|
194
216
|
put?: never;
|
|
217
|
+
/**
|
|
218
|
+
* Destroy a sandbox
|
|
219
|
+
* @description Permanently deletes the sandbox and its retained snapshot. Sleep it instead if you intend to come back to it.
|
|
220
|
+
*/
|
|
195
221
|
post: operations["destroySandbox"];
|
|
196
222
|
delete?: never;
|
|
197
223
|
options?: never;
|
|
@@ -208,6 +234,10 @@ export interface paths {
|
|
|
208
234
|
};
|
|
209
235
|
get?: never;
|
|
210
236
|
put?: never;
|
|
237
|
+
/**
|
|
238
|
+
* Renew an ephemeral sandbox
|
|
239
|
+
* @description Extends a running ephemeral sandbox's expiry by its configured TTL. The plan's session cap still applies; once it is exhausted the sandbox can no longer be renewed.
|
|
240
|
+
*/
|
|
211
241
|
post: operations["renewSandbox"];
|
|
212
242
|
delete?: never;
|
|
213
243
|
options?: never;
|
|
@@ -224,6 +254,10 @@ export interface paths {
|
|
|
224
254
|
};
|
|
225
255
|
get?: never;
|
|
226
256
|
put?: never;
|
|
257
|
+
/**
|
|
258
|
+
* Resize a sandbox
|
|
259
|
+
* @description Sets an exact allocation. A sleeping sandbox's allocation changes immediately. A running sandbox is resized live only when the provider can verify the change; otherwise the shape is stored as `pendingAllocation` and applied on the next wake.
|
|
260
|
+
*/
|
|
227
261
|
post: operations["resizeSandbox"];
|
|
228
262
|
delete?: never;
|
|
229
263
|
options?: never;
|
|
@@ -240,6 +274,10 @@ export interface paths {
|
|
|
240
274
|
};
|
|
241
275
|
get?: never;
|
|
242
276
|
put?: never;
|
|
277
|
+
/**
|
|
278
|
+
* Wake a sleeping sandbox
|
|
279
|
+
* @description Boots a sleeping sandbox from its own snapshot.
|
|
280
|
+
*/
|
|
243
281
|
post: operations["wakeSandbox"];
|
|
244
282
|
delete?: never;
|
|
245
283
|
options?: never;
|
|
@@ -257,6 +295,7 @@ export interface paths {
|
|
|
257
295
|
get?: never;
|
|
258
296
|
put?: never;
|
|
259
297
|
/**
|
|
298
|
+
* Resume a sandbox
|
|
260
299
|
* @deprecated
|
|
261
300
|
* @description Deprecated: use POST /sandboxes/{sandboxId}/wake.
|
|
262
301
|
*/
|
|
@@ -274,7 +313,10 @@ export interface paths {
|
|
|
274
313
|
path?: never;
|
|
275
314
|
cookie?: never;
|
|
276
315
|
};
|
|
277
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* Retrieve a sandbox
|
|
318
|
+
* @description Poll this to follow provisioning and lifecycle changes. The platform does not send lifecycle webhooks.
|
|
319
|
+
*/
|
|
278
320
|
get: operations["getSandbox"];
|
|
279
321
|
put?: never;
|
|
280
322
|
post?: never;
|
|
@@ -295,7 +337,7 @@ export interface paths {
|
|
|
295
337
|
put?: never;
|
|
296
338
|
/**
|
|
297
339
|
* Run a command in a sandbox
|
|
298
|
-
* @description Runs a non-interactive command to
|
|
340
|
+
* @description Runs a non-interactive command through /bin/sh in /code and waits for it to exit. The sandbox must be running or ready. Standard output and error are each capped at 64 KiB; the tail is kept when either is truncated. The default timeout is 120 seconds. A non-zero exitCode is still a successful request: the command ran and failed. A command that hits the timeout returns timedOut true and exitCode 124.
|
|
299
341
|
*/
|
|
300
342
|
post: operations["execSandboxCommand"];
|
|
301
343
|
delete?: never;
|
|
@@ -331,7 +373,10 @@ export interface paths {
|
|
|
331
373
|
path?: never;
|
|
332
374
|
cookie?: never;
|
|
333
375
|
};
|
|
334
|
-
/**
|
|
376
|
+
/**
|
|
377
|
+
* Read a sandbox file
|
|
378
|
+
* @description Returns the content as UTF-8, or as base64 for binary files, with its size in bytes. Relative paths resolve beneath /code.
|
|
379
|
+
*/
|
|
335
380
|
get: operations["readSandboxFile"];
|
|
336
381
|
/**
|
|
337
382
|
* Write a sandbox file
|
|
@@ -360,7 +405,7 @@ export interface paths {
|
|
|
360
405
|
put?: never;
|
|
361
406
|
/**
|
|
362
407
|
* Create a sandbox preview
|
|
363
|
-
* @description A team preview (the default) is a signed URL for signed-in organization members. A public preview is a persistent, revocable link
|
|
408
|
+
* @description A team preview (the default) is a signed URL for signed-in organization members. A public preview is a persistent, revocable link that anyone holding the URL can open; it requires sandbox.preview.share and expires after expiresInSeconds (24 hours by default, 30 days at most).
|
|
364
409
|
*/
|
|
365
410
|
post: operations["createSandboxPreview"];
|
|
366
411
|
delete?: never;
|
|
@@ -544,6 +589,26 @@ export interface paths {
|
|
|
544
589
|
patch?: never;
|
|
545
590
|
trace?: never;
|
|
546
591
|
};
|
|
592
|
+
"/agent-sessions/{sessionId}/release": {
|
|
593
|
+
parameters: {
|
|
594
|
+
query?: never;
|
|
595
|
+
header?: never;
|
|
596
|
+
path?: never;
|
|
597
|
+
cookie?: never;
|
|
598
|
+
};
|
|
599
|
+
get?: never;
|
|
600
|
+
put?: never;
|
|
601
|
+
/**
|
|
602
|
+
* Release a session to its native terminal
|
|
603
|
+
* @description Release an idle managed session to its native terminal without deleting its saved conversation. Requires agent_session.send and bridge v8. Refuses active turns; interrupt first. Returns resume arguments only after the bridge and agent processes exit. Retry on an uncertain response; repeated release is safe. Close manual CLI ownership before using recover to restore remote control. Native terminal surfaces are unsupported.
|
|
604
|
+
*/
|
|
605
|
+
post: operations["releaseAgentSession"];
|
|
606
|
+
delete?: never;
|
|
607
|
+
options?: never;
|
|
608
|
+
head?: never;
|
|
609
|
+
patch?: never;
|
|
610
|
+
trace?: never;
|
|
611
|
+
};
|
|
547
612
|
"/me/agent-tokens": {
|
|
548
613
|
parameters: {
|
|
549
614
|
query?: never;
|
|
@@ -551,9 +616,13 @@ export interface paths {
|
|
|
551
616
|
path?: never;
|
|
552
617
|
cookie?: never;
|
|
553
618
|
};
|
|
619
|
+
/** List personal agent tokens */
|
|
554
620
|
get: operations["listAgentAccessTokens"];
|
|
555
621
|
put?: never;
|
|
556
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* Create a personal agent token
|
|
624
|
+
* @description User sign-in required. Explicit delegation across accessible organizations; does not alter organization API keys. sandbox.create permits waking existing sandboxes only. Token returned once.
|
|
625
|
+
*/
|
|
557
626
|
post: operations["createAgentAccessToken"];
|
|
558
627
|
delete?: never;
|
|
559
628
|
options?: never;
|
|
@@ -571,6 +640,7 @@ export interface paths {
|
|
|
571
640
|
get?: never;
|
|
572
641
|
put?: never;
|
|
573
642
|
post?: never;
|
|
643
|
+
/** Revoke a personal agent token */
|
|
574
644
|
delete: operations["revokeAgentAccessToken"];
|
|
575
645
|
options?: never;
|
|
576
646
|
head?: never;
|
|
@@ -584,7 +654,10 @@ export interface paths {
|
|
|
584
654
|
path?: never;
|
|
585
655
|
cookie?: never;
|
|
586
656
|
};
|
|
587
|
-
/**
|
|
657
|
+
/**
|
|
658
|
+
* Discover agent sessions
|
|
659
|
+
* @description Discover registered sessions across accessible projects. Organization API keys retain their org limit; personal agent tokens span accessible orgs. New Codex terminals are registered; existing standalone and native Claude sessions are not attached. State is last known; read a session to refresh it. Pages are ordered by stable session ID, not activity.
|
|
660
|
+
*/
|
|
588
661
|
get: operations["discoverAgentSessions"];
|
|
589
662
|
put?: never;
|
|
590
663
|
post?: never;
|
|
@@ -603,7 +676,10 @@ export interface paths {
|
|
|
603
676
|
};
|
|
604
677
|
get?: never;
|
|
605
678
|
put?: never;
|
|
606
|
-
/**
|
|
679
|
+
/**
|
|
680
|
+
* Start an agent session
|
|
681
|
+
* @description Start a separate managed conversation using this running sandbox's configured agent. Does not attach to its native terminal conversation. Requires agent_session.send.
|
|
682
|
+
*/
|
|
607
683
|
post: operations["createAgentSession"];
|
|
608
684
|
delete?: never;
|
|
609
685
|
options?: never;
|
|
@@ -618,6 +694,7 @@ export interface paths {
|
|
|
618
694
|
path?: never;
|
|
619
695
|
cookie?: never;
|
|
620
696
|
};
|
|
697
|
+
/** List a project's agent sessions */
|
|
621
698
|
get: operations["listAgentSessions"];
|
|
622
699
|
put?: never;
|
|
623
700
|
post?: never;
|
|
@@ -634,6 +711,7 @@ export interface paths {
|
|
|
634
711
|
path?: never;
|
|
635
712
|
cookie?: never;
|
|
636
713
|
};
|
|
714
|
+
/** Retrieve an agent session */
|
|
637
715
|
get: operations["getAgentSession"];
|
|
638
716
|
put?: never;
|
|
639
717
|
post?: never;
|
|
@@ -650,6 +728,7 @@ export interface paths {
|
|
|
650
728
|
path?: never;
|
|
651
729
|
cookie?: never;
|
|
652
730
|
};
|
|
731
|
+
/** Read agent replies */
|
|
653
732
|
get: operations["getAgentOutput"];
|
|
654
733
|
put?: never;
|
|
655
734
|
post?: never;
|
|
@@ -659,6 +738,57 @@ export interface paths {
|
|
|
659
738
|
patch?: never;
|
|
660
739
|
trace?: never;
|
|
661
740
|
};
|
|
741
|
+
"/agent-sessions/{sessionId}/events": {
|
|
742
|
+
parameters: {
|
|
743
|
+
query?: never;
|
|
744
|
+
header?: never;
|
|
745
|
+
path?: never;
|
|
746
|
+
cookie?: never;
|
|
747
|
+
};
|
|
748
|
+
/** Stream agent session events */
|
|
749
|
+
get: operations["streamAgentSessionEvents"];
|
|
750
|
+
put?: never;
|
|
751
|
+
post?: never;
|
|
752
|
+
delete?: never;
|
|
753
|
+
options?: never;
|
|
754
|
+
head?: never;
|
|
755
|
+
patch?: never;
|
|
756
|
+
trace?: never;
|
|
757
|
+
};
|
|
758
|
+
"/agent-sessions/{sessionId}/transcript": {
|
|
759
|
+
parameters: {
|
|
760
|
+
query?: never;
|
|
761
|
+
header?: never;
|
|
762
|
+
path?: never;
|
|
763
|
+
cookie?: never;
|
|
764
|
+
};
|
|
765
|
+
/** Read an agent session's conversation */
|
|
766
|
+
get: operations["getAgentTranscript"];
|
|
767
|
+
put?: never;
|
|
768
|
+
post?: never;
|
|
769
|
+
delete?: never;
|
|
770
|
+
options?: never;
|
|
771
|
+
head?: never;
|
|
772
|
+
patch?: never;
|
|
773
|
+
trace?: never;
|
|
774
|
+
};
|
|
775
|
+
"/agent-sessions/{sessionId}/wait": {
|
|
776
|
+
parameters: {
|
|
777
|
+
query?: never;
|
|
778
|
+
header?: never;
|
|
779
|
+
path?: never;
|
|
780
|
+
cookie?: never;
|
|
781
|
+
};
|
|
782
|
+
/** Wait for an agent session to change */
|
|
783
|
+
get: operations["waitForAgentSession"];
|
|
784
|
+
put?: never;
|
|
785
|
+
post?: never;
|
|
786
|
+
delete?: never;
|
|
787
|
+
options?: never;
|
|
788
|
+
head?: never;
|
|
789
|
+
patch?: never;
|
|
790
|
+
trace?: never;
|
|
791
|
+
};
|
|
662
792
|
"/agent-sessions/{sessionId}/messages": {
|
|
663
793
|
parameters: {
|
|
664
794
|
query?: never;
|
|
@@ -668,6 +798,7 @@ export interface paths {
|
|
|
668
798
|
};
|
|
669
799
|
get?: never;
|
|
670
800
|
put?: never;
|
|
801
|
+
/** Send a message to an agent */
|
|
671
802
|
post: operations["sendAgentMessage"];
|
|
672
803
|
delete?: never;
|
|
673
804
|
options?: never;
|
|
@@ -684,6 +815,7 @@ export interface paths {
|
|
|
684
815
|
};
|
|
685
816
|
get?: never;
|
|
686
817
|
put?: never;
|
|
818
|
+
/** Answer an agent's prompt */
|
|
687
819
|
post: operations["answerAgentPrompt"];
|
|
688
820
|
delete?: never;
|
|
689
821
|
options?: never;
|
|
@@ -700,6 +832,7 @@ export interface paths {
|
|
|
700
832
|
};
|
|
701
833
|
get?: never;
|
|
702
834
|
put?: never;
|
|
835
|
+
/** Interrupt the current turn */
|
|
703
836
|
post: operations["interruptAgentTurn"];
|
|
704
837
|
delete?: never;
|
|
705
838
|
options?: never;
|
|
@@ -716,7 +849,10 @@ export interface paths {
|
|
|
716
849
|
};
|
|
717
850
|
get?: never;
|
|
718
851
|
put?: never;
|
|
719
|
-
/**
|
|
852
|
+
/**
|
|
853
|
+
* Recover an agent session
|
|
854
|
+
* @description Resume a saved managed Claude or Codex conversation, or a registered native Codex session. Requires agent_session.send and the original running sandbox with saved history. Already-ready sessions are unchanged; known live previous processes prevent restart. Queued work is never replayed; interrupted turns have uncertain prior effects. Native Claude attachment is not supported.
|
|
855
|
+
*/
|
|
720
856
|
post: operations["recoverAgentSession"];
|
|
721
857
|
delete?: never;
|
|
722
858
|
options?: never;
|
|
@@ -1059,7 +1195,7 @@ export interface components {
|
|
|
1059
1195
|
AgentSessionCommunication: {
|
|
1060
1196
|
/** @enum {string} */
|
|
1061
1197
|
status: "ready" | "starting" | "restart_required" | "setup_required" | "unavailable" | "unsupported";
|
|
1062
|
-
capabilities: ("messages" | "output" | "approvals" | "interrupt" | "recover")[];
|
|
1198
|
+
capabilities: ("messages" | "output" | "approvals" | "interrupt" | "recover" | "release")[];
|
|
1063
1199
|
message: string | null;
|
|
1064
1200
|
requirements: {
|
|
1065
1201
|
code: string;
|
|
@@ -1099,6 +1235,8 @@ export interface components {
|
|
|
1099
1235
|
error: string | null;
|
|
1100
1236
|
/** @enum {string|null} */
|
|
1101
1237
|
bridgeState: "starting" | "ready" | "closed" | null;
|
|
1238
|
+
released: boolean;
|
|
1239
|
+
releasing: boolean;
|
|
1102
1240
|
bridgeEventSeq: number | null;
|
|
1103
1241
|
drifted: boolean;
|
|
1104
1242
|
problems: {
|
|
@@ -5086,6 +5224,130 @@ export interface operations {
|
|
|
5086
5224
|
};
|
|
5087
5225
|
};
|
|
5088
5226
|
};
|
|
5227
|
+
releaseAgentSession: {
|
|
5228
|
+
parameters: {
|
|
5229
|
+
query?: never;
|
|
5230
|
+
header?: never;
|
|
5231
|
+
path: {
|
|
5232
|
+
sessionId: string;
|
|
5233
|
+
};
|
|
5234
|
+
cookie?: never;
|
|
5235
|
+
};
|
|
5236
|
+
requestBody?: never;
|
|
5237
|
+
responses: {
|
|
5238
|
+
/** @description Control released; resume in the same sandbox using the returned command, arguments and directory. Resume is null if no vendor conversation exists yet. */
|
|
5239
|
+
200: {
|
|
5240
|
+
headers: {
|
|
5241
|
+
[name: string]: unknown;
|
|
5242
|
+
};
|
|
5243
|
+
content: {
|
|
5244
|
+
"application/json": components["schemas"]["AgentSessionState"] & {
|
|
5245
|
+
resume: {
|
|
5246
|
+
command: string;
|
|
5247
|
+
args: string[];
|
|
5248
|
+
cwd: string;
|
|
5249
|
+
} | null;
|
|
5250
|
+
};
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
5254
|
+
400: {
|
|
5255
|
+
headers: {
|
|
5256
|
+
[name: string]: unknown;
|
|
5257
|
+
};
|
|
5258
|
+
content: {
|
|
5259
|
+
"application/json": {
|
|
5260
|
+
error: {
|
|
5261
|
+
message: string;
|
|
5262
|
+
code?: string;
|
|
5263
|
+
turnId?: string;
|
|
5264
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
5265
|
+
};
|
|
5266
|
+
};
|
|
5267
|
+
};
|
|
5268
|
+
};
|
|
5269
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
5270
|
+
403: {
|
|
5271
|
+
headers: {
|
|
5272
|
+
[name: string]: unknown;
|
|
5273
|
+
};
|
|
5274
|
+
content: {
|
|
5275
|
+
"application/json": {
|
|
5276
|
+
error: {
|
|
5277
|
+
message: string;
|
|
5278
|
+
code?: string;
|
|
5279
|
+
turnId?: string;
|
|
5280
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
5281
|
+
};
|
|
5282
|
+
};
|
|
5283
|
+
};
|
|
5284
|
+
};
|
|
5285
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
5286
|
+
404: {
|
|
5287
|
+
headers: {
|
|
5288
|
+
[name: string]: unknown;
|
|
5289
|
+
};
|
|
5290
|
+
content: {
|
|
5291
|
+
"application/json": {
|
|
5292
|
+
error: {
|
|
5293
|
+
message: string;
|
|
5294
|
+
code?: string;
|
|
5295
|
+
turnId?: string;
|
|
5296
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
5297
|
+
};
|
|
5298
|
+
};
|
|
5299
|
+
};
|
|
5300
|
+
};
|
|
5301
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
5302
|
+
409: {
|
|
5303
|
+
headers: {
|
|
5304
|
+
[name: string]: unknown;
|
|
5305
|
+
};
|
|
5306
|
+
content: {
|
|
5307
|
+
"application/json": {
|
|
5308
|
+
error: {
|
|
5309
|
+
message: string;
|
|
5310
|
+
code?: string;
|
|
5311
|
+
turnId?: string;
|
|
5312
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
5313
|
+
};
|
|
5314
|
+
};
|
|
5315
|
+
};
|
|
5316
|
+
};
|
|
5317
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
5318
|
+
500: {
|
|
5319
|
+
headers: {
|
|
5320
|
+
[name: string]: unknown;
|
|
5321
|
+
};
|
|
5322
|
+
content: {
|
|
5323
|
+
"application/json": {
|
|
5324
|
+
error: {
|
|
5325
|
+
message: string;
|
|
5326
|
+
code?: string;
|
|
5327
|
+
turnId?: string;
|
|
5328
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
5329
|
+
};
|
|
5330
|
+
};
|
|
5331
|
+
};
|
|
5332
|
+
};
|
|
5333
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
5334
|
+
503: {
|
|
5335
|
+
headers: {
|
|
5336
|
+
[name: string]: unknown;
|
|
5337
|
+
};
|
|
5338
|
+
content: {
|
|
5339
|
+
"application/json": {
|
|
5340
|
+
error: {
|
|
5341
|
+
message: string;
|
|
5342
|
+
code?: string;
|
|
5343
|
+
turnId?: string;
|
|
5344
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
5345
|
+
};
|
|
5346
|
+
};
|
|
5347
|
+
};
|
|
5348
|
+
};
|
|
5349
|
+
};
|
|
5350
|
+
};
|
|
5089
5351
|
listAgentAccessTokens: {
|
|
5090
5352
|
parameters: {
|
|
5091
5353
|
query?: never;
|
|
@@ -6115,6 +6377,475 @@ export interface operations {
|
|
|
6115
6377
|
};
|
|
6116
6378
|
};
|
|
6117
6379
|
};
|
|
6380
|
+
streamAgentSessionEvents: {
|
|
6381
|
+
parameters: {
|
|
6382
|
+
query?: {
|
|
6383
|
+
/** @description Output cursor to resume from when no Last-Event-ID header is sent. */
|
|
6384
|
+
after?: number | null;
|
|
6385
|
+
};
|
|
6386
|
+
header?: {
|
|
6387
|
+
/** @description The id of the last output event received; takes precedence over after. */
|
|
6388
|
+
"last-event-id"?: string;
|
|
6389
|
+
};
|
|
6390
|
+
path: {
|
|
6391
|
+
sessionId: string;
|
|
6392
|
+
};
|
|
6393
|
+
cookie?: never;
|
|
6394
|
+
};
|
|
6395
|
+
requestBody?: never;
|
|
6396
|
+
responses: {
|
|
6397
|
+
/** @description Server-sent events. `ready` ({cursor}) opens the stream; `state` carries the same body as getAgentSession whenever it changes (always once on connect); `output` carries one reply (with itemId when it was streamed) and its id is the output cursor; `conversation` carries one conversation event (user.message, agent.delta, agent.thought, tool.started, tool.output, tool.completed; bridge v9+) under the same cursor; `reconnect` ({cursor, reason}) closes a rotated stream; `unavailable` ({code, message}) closes when the sandbox cannot be followed; `error` ({code, message}) closes on lost access. Streams rotate within four minutes; reconnect with Last-Event-ID to continue without gaps or repeats. Requires agent_session.read. */
|
|
6398
|
+
200: {
|
|
6399
|
+
headers: {
|
|
6400
|
+
[name: string]: unknown;
|
|
6401
|
+
};
|
|
6402
|
+
content: {
|
|
6403
|
+
"text/event-stream": string;
|
|
6404
|
+
};
|
|
6405
|
+
};
|
|
6406
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6407
|
+
400: {
|
|
6408
|
+
headers: {
|
|
6409
|
+
[name: string]: unknown;
|
|
6410
|
+
};
|
|
6411
|
+
content: {
|
|
6412
|
+
"application/json": {
|
|
6413
|
+
error: {
|
|
6414
|
+
message: string;
|
|
6415
|
+
code?: string;
|
|
6416
|
+
turnId?: string;
|
|
6417
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6418
|
+
};
|
|
6419
|
+
};
|
|
6420
|
+
};
|
|
6421
|
+
};
|
|
6422
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6423
|
+
403: {
|
|
6424
|
+
headers: {
|
|
6425
|
+
[name: string]: unknown;
|
|
6426
|
+
};
|
|
6427
|
+
content: {
|
|
6428
|
+
"application/json": {
|
|
6429
|
+
error: {
|
|
6430
|
+
message: string;
|
|
6431
|
+
code?: string;
|
|
6432
|
+
turnId?: string;
|
|
6433
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6434
|
+
};
|
|
6435
|
+
};
|
|
6436
|
+
};
|
|
6437
|
+
};
|
|
6438
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6439
|
+
404: {
|
|
6440
|
+
headers: {
|
|
6441
|
+
[name: string]: unknown;
|
|
6442
|
+
};
|
|
6443
|
+
content: {
|
|
6444
|
+
"application/json": {
|
|
6445
|
+
error: {
|
|
6446
|
+
message: string;
|
|
6447
|
+
code?: string;
|
|
6448
|
+
turnId?: string;
|
|
6449
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6450
|
+
};
|
|
6451
|
+
};
|
|
6452
|
+
};
|
|
6453
|
+
};
|
|
6454
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6455
|
+
409: {
|
|
6456
|
+
headers: {
|
|
6457
|
+
[name: string]: unknown;
|
|
6458
|
+
};
|
|
6459
|
+
content: {
|
|
6460
|
+
"application/json": {
|
|
6461
|
+
error: {
|
|
6462
|
+
message: string;
|
|
6463
|
+
code?: string;
|
|
6464
|
+
turnId?: string;
|
|
6465
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6466
|
+
};
|
|
6467
|
+
};
|
|
6468
|
+
};
|
|
6469
|
+
};
|
|
6470
|
+
/** @description Too many event streams are open for this credential. */
|
|
6471
|
+
429: {
|
|
6472
|
+
headers: {
|
|
6473
|
+
[name: string]: unknown;
|
|
6474
|
+
};
|
|
6475
|
+
content: {
|
|
6476
|
+
"application/json": {
|
|
6477
|
+
error: {
|
|
6478
|
+
code: string;
|
|
6479
|
+
message: string;
|
|
6480
|
+
};
|
|
6481
|
+
};
|
|
6482
|
+
};
|
|
6483
|
+
};
|
|
6484
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6485
|
+
500: {
|
|
6486
|
+
headers: {
|
|
6487
|
+
[name: string]: unknown;
|
|
6488
|
+
};
|
|
6489
|
+
content: {
|
|
6490
|
+
"application/json": {
|
|
6491
|
+
error: {
|
|
6492
|
+
message: string;
|
|
6493
|
+
code?: string;
|
|
6494
|
+
turnId?: string;
|
|
6495
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6496
|
+
};
|
|
6497
|
+
};
|
|
6498
|
+
};
|
|
6499
|
+
};
|
|
6500
|
+
/** @description Event streaming is not enabled on this API. */
|
|
6501
|
+
501: {
|
|
6502
|
+
headers: {
|
|
6503
|
+
[name: string]: unknown;
|
|
6504
|
+
};
|
|
6505
|
+
content: {
|
|
6506
|
+
"application/json": {
|
|
6507
|
+
error: {
|
|
6508
|
+
code: string;
|
|
6509
|
+
message: string;
|
|
6510
|
+
};
|
|
6511
|
+
};
|
|
6512
|
+
};
|
|
6513
|
+
};
|
|
6514
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6515
|
+
503: {
|
|
6516
|
+
headers: {
|
|
6517
|
+
[name: string]: unknown;
|
|
6518
|
+
};
|
|
6519
|
+
content: {
|
|
6520
|
+
"application/json": {
|
|
6521
|
+
error: {
|
|
6522
|
+
message: string;
|
|
6523
|
+
code?: string;
|
|
6524
|
+
turnId?: string;
|
|
6525
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6526
|
+
};
|
|
6527
|
+
};
|
|
6528
|
+
};
|
|
6529
|
+
};
|
|
6530
|
+
};
|
|
6531
|
+
};
|
|
6532
|
+
getAgentTranscript: {
|
|
6533
|
+
parameters: {
|
|
6534
|
+
query?: {
|
|
6535
|
+
after?: number | null;
|
|
6536
|
+
limit?: number;
|
|
6537
|
+
};
|
|
6538
|
+
header?: never;
|
|
6539
|
+
path: {
|
|
6540
|
+
sessionId: string;
|
|
6541
|
+
};
|
|
6542
|
+
cookie?: never;
|
|
6543
|
+
};
|
|
6544
|
+
requestBody?: never;
|
|
6545
|
+
responses: {
|
|
6546
|
+
/** @description The conversation in order, read in the guest: user.message (origin caller or terminal), agent.message, agent.thought, tool.started, tool.completed (kind command | file_change | mcp | web_search | tool; status completed | failed | declined; bounded output tail and diff), plus turn and approval markers. Streaming deltas are folded into their final item; `partial` holds text still streaming when the page reaches the end of the log. Follow getAgentSessionEvents from nextCursor afterwards. Requires bridge v9 (409 session_transcript_upgrade_required otherwise) and agent_session.read. */
|
|
6547
|
+
200: {
|
|
6548
|
+
headers: {
|
|
6549
|
+
[name: string]: unknown;
|
|
6550
|
+
};
|
|
6551
|
+
content: {
|
|
6552
|
+
"application/json": {
|
|
6553
|
+
items: ({
|
|
6554
|
+
seq: number;
|
|
6555
|
+
at: string;
|
|
6556
|
+
type: string;
|
|
6557
|
+
turnId: string | null;
|
|
6558
|
+
} & {
|
|
6559
|
+
[key: string]: unknown;
|
|
6560
|
+
})[];
|
|
6561
|
+
partial: ({
|
|
6562
|
+
seq: number;
|
|
6563
|
+
type: string;
|
|
6564
|
+
itemId: string;
|
|
6565
|
+
text: string;
|
|
6566
|
+
} & {
|
|
6567
|
+
[key: string]: unknown;
|
|
6568
|
+
})[];
|
|
6569
|
+
nextCursor: number;
|
|
6570
|
+
hasMore: boolean;
|
|
6571
|
+
};
|
|
6572
|
+
};
|
|
6573
|
+
};
|
|
6574
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6575
|
+
400: {
|
|
6576
|
+
headers: {
|
|
6577
|
+
[name: string]: unknown;
|
|
6578
|
+
};
|
|
6579
|
+
content: {
|
|
6580
|
+
"application/json": {
|
|
6581
|
+
error: {
|
|
6582
|
+
message: string;
|
|
6583
|
+
code?: string;
|
|
6584
|
+
turnId?: string;
|
|
6585
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6586
|
+
};
|
|
6587
|
+
};
|
|
6588
|
+
};
|
|
6589
|
+
};
|
|
6590
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6591
|
+
403: {
|
|
6592
|
+
headers: {
|
|
6593
|
+
[name: string]: unknown;
|
|
6594
|
+
};
|
|
6595
|
+
content: {
|
|
6596
|
+
"application/json": {
|
|
6597
|
+
error: {
|
|
6598
|
+
message: string;
|
|
6599
|
+
code?: string;
|
|
6600
|
+
turnId?: string;
|
|
6601
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6602
|
+
};
|
|
6603
|
+
};
|
|
6604
|
+
};
|
|
6605
|
+
};
|
|
6606
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6607
|
+
404: {
|
|
6608
|
+
headers: {
|
|
6609
|
+
[name: string]: unknown;
|
|
6610
|
+
};
|
|
6611
|
+
content: {
|
|
6612
|
+
"application/json": {
|
|
6613
|
+
error: {
|
|
6614
|
+
message: string;
|
|
6615
|
+
code?: string;
|
|
6616
|
+
turnId?: string;
|
|
6617
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6618
|
+
};
|
|
6619
|
+
};
|
|
6620
|
+
};
|
|
6621
|
+
};
|
|
6622
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6623
|
+
409: {
|
|
6624
|
+
headers: {
|
|
6625
|
+
[name: string]: unknown;
|
|
6626
|
+
};
|
|
6627
|
+
content: {
|
|
6628
|
+
"application/json": {
|
|
6629
|
+
error: {
|
|
6630
|
+
message: string;
|
|
6631
|
+
code?: string;
|
|
6632
|
+
turnId?: string;
|
|
6633
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6634
|
+
};
|
|
6635
|
+
};
|
|
6636
|
+
};
|
|
6637
|
+
};
|
|
6638
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6639
|
+
500: {
|
|
6640
|
+
headers: {
|
|
6641
|
+
[name: string]: unknown;
|
|
6642
|
+
};
|
|
6643
|
+
content: {
|
|
6644
|
+
"application/json": {
|
|
6645
|
+
error: {
|
|
6646
|
+
message: string;
|
|
6647
|
+
code?: string;
|
|
6648
|
+
turnId?: string;
|
|
6649
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6650
|
+
};
|
|
6651
|
+
};
|
|
6652
|
+
};
|
|
6653
|
+
};
|
|
6654
|
+
/** @description Transcripts are not enabled on this API. */
|
|
6655
|
+
501: {
|
|
6656
|
+
headers: {
|
|
6657
|
+
[name: string]: unknown;
|
|
6658
|
+
};
|
|
6659
|
+
content: {
|
|
6660
|
+
"application/json": {
|
|
6661
|
+
error: {
|
|
6662
|
+
code: string;
|
|
6663
|
+
message: string;
|
|
6664
|
+
};
|
|
6665
|
+
};
|
|
6666
|
+
};
|
|
6667
|
+
};
|
|
6668
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6669
|
+
503: {
|
|
6670
|
+
headers: {
|
|
6671
|
+
[name: string]: unknown;
|
|
6672
|
+
};
|
|
6673
|
+
content: {
|
|
6674
|
+
"application/json": {
|
|
6675
|
+
error: {
|
|
6676
|
+
message: string;
|
|
6677
|
+
code?: string;
|
|
6678
|
+
turnId?: string;
|
|
6679
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6680
|
+
};
|
|
6681
|
+
};
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
6684
|
+
};
|
|
6685
|
+
};
|
|
6686
|
+
waitForAgentSession: {
|
|
6687
|
+
parameters: {
|
|
6688
|
+
query?: {
|
|
6689
|
+
after?: number | null;
|
|
6690
|
+
timeoutMs?: number;
|
|
6691
|
+
};
|
|
6692
|
+
header?: never;
|
|
6693
|
+
path: {
|
|
6694
|
+
sessionId: string;
|
|
6695
|
+
};
|
|
6696
|
+
cookie?: never;
|
|
6697
|
+
};
|
|
6698
|
+
requestBody?: never;
|
|
6699
|
+
responses: {
|
|
6700
|
+
/** @description Long-poll for clients that cannot hold an event stream. Returns as soon as a reply, turn transition or approval request lands after `after`, or with changed: false at the timeout (default 25 s). `output` follows the same cursor and page bounds as getAgentOutput. Requires agent_session.read. */
|
|
6701
|
+
200: {
|
|
6702
|
+
headers: {
|
|
6703
|
+
[name: string]: unknown;
|
|
6704
|
+
};
|
|
6705
|
+
content: {
|
|
6706
|
+
"application/json": {
|
|
6707
|
+
changed: boolean;
|
|
6708
|
+
session: components["schemas"]["AgentSessionState"];
|
|
6709
|
+
output: {
|
|
6710
|
+
messages: {
|
|
6711
|
+
seq: number;
|
|
6712
|
+
turnId: string | null;
|
|
6713
|
+
at: string;
|
|
6714
|
+
text: string;
|
|
6715
|
+
truncated: boolean;
|
|
6716
|
+
}[];
|
|
6717
|
+
nextCursor: number;
|
|
6718
|
+
hasMore: boolean;
|
|
6719
|
+
};
|
|
6720
|
+
};
|
|
6721
|
+
};
|
|
6722
|
+
};
|
|
6723
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6724
|
+
400: {
|
|
6725
|
+
headers: {
|
|
6726
|
+
[name: string]: unknown;
|
|
6727
|
+
};
|
|
6728
|
+
content: {
|
|
6729
|
+
"application/json": {
|
|
6730
|
+
error: {
|
|
6731
|
+
message: string;
|
|
6732
|
+
code?: string;
|
|
6733
|
+
turnId?: string;
|
|
6734
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6735
|
+
};
|
|
6736
|
+
};
|
|
6737
|
+
};
|
|
6738
|
+
};
|
|
6739
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6740
|
+
403: {
|
|
6741
|
+
headers: {
|
|
6742
|
+
[name: string]: unknown;
|
|
6743
|
+
};
|
|
6744
|
+
content: {
|
|
6745
|
+
"application/json": {
|
|
6746
|
+
error: {
|
|
6747
|
+
message: string;
|
|
6748
|
+
code?: string;
|
|
6749
|
+
turnId?: string;
|
|
6750
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6751
|
+
};
|
|
6752
|
+
};
|
|
6753
|
+
};
|
|
6754
|
+
};
|
|
6755
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6756
|
+
404: {
|
|
6757
|
+
headers: {
|
|
6758
|
+
[name: string]: unknown;
|
|
6759
|
+
};
|
|
6760
|
+
content: {
|
|
6761
|
+
"application/json": {
|
|
6762
|
+
error: {
|
|
6763
|
+
message: string;
|
|
6764
|
+
code?: string;
|
|
6765
|
+
turnId?: string;
|
|
6766
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6767
|
+
};
|
|
6768
|
+
};
|
|
6769
|
+
};
|
|
6770
|
+
};
|
|
6771
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6772
|
+
409: {
|
|
6773
|
+
headers: {
|
|
6774
|
+
[name: string]: unknown;
|
|
6775
|
+
};
|
|
6776
|
+
content: {
|
|
6777
|
+
"application/json": {
|
|
6778
|
+
error: {
|
|
6779
|
+
message: string;
|
|
6780
|
+
code?: string;
|
|
6781
|
+
turnId?: string;
|
|
6782
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6783
|
+
};
|
|
6784
|
+
};
|
|
6785
|
+
};
|
|
6786
|
+
};
|
|
6787
|
+
/** @description Too many waits or event streams are open for this credential. */
|
|
6788
|
+
429: {
|
|
6789
|
+
headers: {
|
|
6790
|
+
[name: string]: unknown;
|
|
6791
|
+
};
|
|
6792
|
+
content: {
|
|
6793
|
+
"application/json": {
|
|
6794
|
+
error: {
|
|
6795
|
+
code: string;
|
|
6796
|
+
message: string;
|
|
6797
|
+
};
|
|
6798
|
+
};
|
|
6799
|
+
};
|
|
6800
|
+
};
|
|
6801
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6802
|
+
500: {
|
|
6803
|
+
headers: {
|
|
6804
|
+
[name: string]: unknown;
|
|
6805
|
+
};
|
|
6806
|
+
content: {
|
|
6807
|
+
"application/json": {
|
|
6808
|
+
error: {
|
|
6809
|
+
message: string;
|
|
6810
|
+
code?: string;
|
|
6811
|
+
turnId?: string;
|
|
6812
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6813
|
+
};
|
|
6814
|
+
};
|
|
6815
|
+
};
|
|
6816
|
+
};
|
|
6817
|
+
/** @description Waiting is not enabled on this API. */
|
|
6818
|
+
501: {
|
|
6819
|
+
headers: {
|
|
6820
|
+
[name: string]: unknown;
|
|
6821
|
+
};
|
|
6822
|
+
content: {
|
|
6823
|
+
"application/json": {
|
|
6824
|
+
error: {
|
|
6825
|
+
code: string;
|
|
6826
|
+
message: string;
|
|
6827
|
+
};
|
|
6828
|
+
};
|
|
6829
|
+
};
|
|
6830
|
+
};
|
|
6831
|
+
/** @description The operation could not be completed; inspect error.message and error.code. */
|
|
6832
|
+
503: {
|
|
6833
|
+
headers: {
|
|
6834
|
+
[name: string]: unknown;
|
|
6835
|
+
};
|
|
6836
|
+
content: {
|
|
6837
|
+
"application/json": {
|
|
6838
|
+
error: {
|
|
6839
|
+
message: string;
|
|
6840
|
+
code?: string;
|
|
6841
|
+
turnId?: string;
|
|
6842
|
+
communication?: components["schemas"]["AgentSessionCommunication"];
|
|
6843
|
+
};
|
|
6844
|
+
};
|
|
6845
|
+
};
|
|
6846
|
+
};
|
|
6847
|
+
};
|
|
6848
|
+
};
|
|
6118
6849
|
sendAgentMessage: {
|
|
6119
6850
|
parameters: {
|
|
6120
6851
|
query?: never;
|