@remotehost/sdk 0.3.0 → 0.5.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.
@@ -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
- /** Retrieve a sandbox */
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 completion. Standard output and error are each capped at 64 KiB; the tail is kept when either is truncated. The default timeout is 120 seconds.
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
- /** Read a sandbox file */
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 with its own expiry; it requires sandbox.preview.share.
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
- /** @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. */
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
- /** @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. */
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
- /** @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. */
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
- /** @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. */
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;
@@ -870,6 +1006,7 @@ export interface components {
870
1006
  allocated_memory_gb: number;
871
1007
  allocated_disk_gb: number;
872
1008
  end_user_id: string | null;
1009
+ vm_lost_at: string | null;
873
1010
  created_at: string;
874
1011
  updated_at: string;
875
1012
  };
@@ -1059,7 +1196,7 @@ export interface components {
1059
1196
  AgentSessionCommunication: {
1060
1197
  /** @enum {string} */
1061
1198
  status: "ready" | "starting" | "restart_required" | "setup_required" | "unavailable" | "unsupported";
1062
- capabilities: ("messages" | "output" | "approvals" | "interrupt" | "recover")[];
1199
+ capabilities: ("messages" | "output" | "approvals" | "interrupt" | "recover" | "release")[];
1063
1200
  message: string | null;
1064
1201
  requirements: {
1065
1202
  code: string;
@@ -1099,6 +1236,8 @@ export interface components {
1099
1236
  error: string | null;
1100
1237
  /** @enum {string|null} */
1101
1238
  bridgeState: "starting" | "ready" | "closed" | null;
1239
+ released: boolean;
1240
+ releasing: boolean;
1102
1241
  bridgeEventSeq: number | null;
1103
1242
  drifted: boolean;
1104
1243
  problems: {
@@ -2983,7 +3122,9 @@ export interface operations {
2983
3122
  };
2984
3123
  wakeSandbox: {
2985
3124
  parameters: {
2986
- query?: never;
3125
+ query?: {
3126
+ acknowledgeLostState?: "true" | "false";
3127
+ };
2987
3128
  header?: never;
2988
3129
  path: {
2989
3130
  sandboxId: string;
@@ -3182,7 +3323,9 @@ export interface operations {
3182
3323
  };
3183
3324
  resumeSandbox: {
3184
3325
  parameters: {
3185
- query?: never;
3326
+ query?: {
3327
+ acknowledgeLostState?: "true" | "false";
3328
+ };
3186
3329
  header?: never;
3187
3330
  path: {
3188
3331
  sandboxId: string;
@@ -5086,6 +5229,130 @@ export interface operations {
5086
5229
  };
5087
5230
  };
5088
5231
  };
5232
+ releaseAgentSession: {
5233
+ parameters: {
5234
+ query?: never;
5235
+ header?: never;
5236
+ path: {
5237
+ sessionId: string;
5238
+ };
5239
+ cookie?: never;
5240
+ };
5241
+ requestBody?: never;
5242
+ responses: {
5243
+ /** @description Control released; resume in the same sandbox using the returned command, arguments and directory. Resume is null if no vendor conversation exists yet. */
5244
+ 200: {
5245
+ headers: {
5246
+ [name: string]: unknown;
5247
+ };
5248
+ content: {
5249
+ "application/json": components["schemas"]["AgentSessionState"] & {
5250
+ resume: {
5251
+ command: string;
5252
+ args: string[];
5253
+ cwd: string;
5254
+ } | null;
5255
+ };
5256
+ };
5257
+ };
5258
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5259
+ 400: {
5260
+ headers: {
5261
+ [name: string]: unknown;
5262
+ };
5263
+ content: {
5264
+ "application/json": {
5265
+ error: {
5266
+ message: string;
5267
+ code?: string;
5268
+ turnId?: string;
5269
+ communication?: components["schemas"]["AgentSessionCommunication"];
5270
+ };
5271
+ };
5272
+ };
5273
+ };
5274
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5275
+ 403: {
5276
+ headers: {
5277
+ [name: string]: unknown;
5278
+ };
5279
+ content: {
5280
+ "application/json": {
5281
+ error: {
5282
+ message: string;
5283
+ code?: string;
5284
+ turnId?: string;
5285
+ communication?: components["schemas"]["AgentSessionCommunication"];
5286
+ };
5287
+ };
5288
+ };
5289
+ };
5290
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5291
+ 404: {
5292
+ headers: {
5293
+ [name: string]: unknown;
5294
+ };
5295
+ content: {
5296
+ "application/json": {
5297
+ error: {
5298
+ message: string;
5299
+ code?: string;
5300
+ turnId?: string;
5301
+ communication?: components["schemas"]["AgentSessionCommunication"];
5302
+ };
5303
+ };
5304
+ };
5305
+ };
5306
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5307
+ 409: {
5308
+ headers: {
5309
+ [name: string]: unknown;
5310
+ };
5311
+ content: {
5312
+ "application/json": {
5313
+ error: {
5314
+ message: string;
5315
+ code?: string;
5316
+ turnId?: string;
5317
+ communication?: components["schemas"]["AgentSessionCommunication"];
5318
+ };
5319
+ };
5320
+ };
5321
+ };
5322
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5323
+ 500: {
5324
+ headers: {
5325
+ [name: string]: unknown;
5326
+ };
5327
+ content: {
5328
+ "application/json": {
5329
+ error: {
5330
+ message: string;
5331
+ code?: string;
5332
+ turnId?: string;
5333
+ communication?: components["schemas"]["AgentSessionCommunication"];
5334
+ };
5335
+ };
5336
+ };
5337
+ };
5338
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5339
+ 503: {
5340
+ headers: {
5341
+ [name: string]: unknown;
5342
+ };
5343
+ content: {
5344
+ "application/json": {
5345
+ error: {
5346
+ message: string;
5347
+ code?: string;
5348
+ turnId?: string;
5349
+ communication?: components["schemas"]["AgentSessionCommunication"];
5350
+ };
5351
+ };
5352
+ };
5353
+ };
5354
+ };
5355
+ };
5089
5356
  listAgentAccessTokens: {
5090
5357
  parameters: {
5091
5358
  query?: never;
@@ -6115,6 +6382,475 @@ export interface operations {
6115
6382
  };
6116
6383
  };
6117
6384
  };
6385
+ streamAgentSessionEvents: {
6386
+ parameters: {
6387
+ query?: {
6388
+ /** @description Output cursor to resume from when no Last-Event-ID header is sent. */
6389
+ after?: number | null;
6390
+ };
6391
+ header?: {
6392
+ /** @description The id of the last output event received; takes precedence over after. */
6393
+ "last-event-id"?: string;
6394
+ };
6395
+ path: {
6396
+ sessionId: string;
6397
+ };
6398
+ cookie?: never;
6399
+ };
6400
+ requestBody?: never;
6401
+ responses: {
6402
+ /** @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. */
6403
+ 200: {
6404
+ headers: {
6405
+ [name: string]: unknown;
6406
+ };
6407
+ content: {
6408
+ "text/event-stream": string;
6409
+ };
6410
+ };
6411
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6412
+ 400: {
6413
+ headers: {
6414
+ [name: string]: unknown;
6415
+ };
6416
+ content: {
6417
+ "application/json": {
6418
+ error: {
6419
+ message: string;
6420
+ code?: string;
6421
+ turnId?: string;
6422
+ communication?: components["schemas"]["AgentSessionCommunication"];
6423
+ };
6424
+ };
6425
+ };
6426
+ };
6427
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6428
+ 403: {
6429
+ headers: {
6430
+ [name: string]: unknown;
6431
+ };
6432
+ content: {
6433
+ "application/json": {
6434
+ error: {
6435
+ message: string;
6436
+ code?: string;
6437
+ turnId?: string;
6438
+ communication?: components["schemas"]["AgentSessionCommunication"];
6439
+ };
6440
+ };
6441
+ };
6442
+ };
6443
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6444
+ 404: {
6445
+ headers: {
6446
+ [name: string]: unknown;
6447
+ };
6448
+ content: {
6449
+ "application/json": {
6450
+ error: {
6451
+ message: string;
6452
+ code?: string;
6453
+ turnId?: string;
6454
+ communication?: components["schemas"]["AgentSessionCommunication"];
6455
+ };
6456
+ };
6457
+ };
6458
+ };
6459
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6460
+ 409: {
6461
+ headers: {
6462
+ [name: string]: unknown;
6463
+ };
6464
+ content: {
6465
+ "application/json": {
6466
+ error: {
6467
+ message: string;
6468
+ code?: string;
6469
+ turnId?: string;
6470
+ communication?: components["schemas"]["AgentSessionCommunication"];
6471
+ };
6472
+ };
6473
+ };
6474
+ };
6475
+ /** @description Too many event streams are open for this credential. */
6476
+ 429: {
6477
+ headers: {
6478
+ [name: string]: unknown;
6479
+ };
6480
+ content: {
6481
+ "application/json": {
6482
+ error: {
6483
+ code: string;
6484
+ message: string;
6485
+ };
6486
+ };
6487
+ };
6488
+ };
6489
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6490
+ 500: {
6491
+ headers: {
6492
+ [name: string]: unknown;
6493
+ };
6494
+ content: {
6495
+ "application/json": {
6496
+ error: {
6497
+ message: string;
6498
+ code?: string;
6499
+ turnId?: string;
6500
+ communication?: components["schemas"]["AgentSessionCommunication"];
6501
+ };
6502
+ };
6503
+ };
6504
+ };
6505
+ /** @description Event streaming is not enabled on this API. */
6506
+ 501: {
6507
+ headers: {
6508
+ [name: string]: unknown;
6509
+ };
6510
+ content: {
6511
+ "application/json": {
6512
+ error: {
6513
+ code: string;
6514
+ message: string;
6515
+ };
6516
+ };
6517
+ };
6518
+ };
6519
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6520
+ 503: {
6521
+ headers: {
6522
+ [name: string]: unknown;
6523
+ };
6524
+ content: {
6525
+ "application/json": {
6526
+ error: {
6527
+ message: string;
6528
+ code?: string;
6529
+ turnId?: string;
6530
+ communication?: components["schemas"]["AgentSessionCommunication"];
6531
+ };
6532
+ };
6533
+ };
6534
+ };
6535
+ };
6536
+ };
6537
+ getAgentTranscript: {
6538
+ parameters: {
6539
+ query?: {
6540
+ after?: number | null;
6541
+ limit?: number;
6542
+ };
6543
+ header?: never;
6544
+ path: {
6545
+ sessionId: string;
6546
+ };
6547
+ cookie?: never;
6548
+ };
6549
+ requestBody?: never;
6550
+ responses: {
6551
+ /** @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. */
6552
+ 200: {
6553
+ headers: {
6554
+ [name: string]: unknown;
6555
+ };
6556
+ content: {
6557
+ "application/json": {
6558
+ items: ({
6559
+ seq: number;
6560
+ at: string;
6561
+ type: string;
6562
+ turnId: string | null;
6563
+ } & {
6564
+ [key: string]: unknown;
6565
+ })[];
6566
+ partial: ({
6567
+ seq: number;
6568
+ type: string;
6569
+ itemId: string;
6570
+ text: string;
6571
+ } & {
6572
+ [key: string]: unknown;
6573
+ })[];
6574
+ nextCursor: number;
6575
+ hasMore: boolean;
6576
+ };
6577
+ };
6578
+ };
6579
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6580
+ 400: {
6581
+ headers: {
6582
+ [name: string]: unknown;
6583
+ };
6584
+ content: {
6585
+ "application/json": {
6586
+ error: {
6587
+ message: string;
6588
+ code?: string;
6589
+ turnId?: string;
6590
+ communication?: components["schemas"]["AgentSessionCommunication"];
6591
+ };
6592
+ };
6593
+ };
6594
+ };
6595
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6596
+ 403: {
6597
+ headers: {
6598
+ [name: string]: unknown;
6599
+ };
6600
+ content: {
6601
+ "application/json": {
6602
+ error: {
6603
+ message: string;
6604
+ code?: string;
6605
+ turnId?: string;
6606
+ communication?: components["schemas"]["AgentSessionCommunication"];
6607
+ };
6608
+ };
6609
+ };
6610
+ };
6611
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6612
+ 404: {
6613
+ headers: {
6614
+ [name: string]: unknown;
6615
+ };
6616
+ content: {
6617
+ "application/json": {
6618
+ error: {
6619
+ message: string;
6620
+ code?: string;
6621
+ turnId?: string;
6622
+ communication?: components["schemas"]["AgentSessionCommunication"];
6623
+ };
6624
+ };
6625
+ };
6626
+ };
6627
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6628
+ 409: {
6629
+ headers: {
6630
+ [name: string]: unknown;
6631
+ };
6632
+ content: {
6633
+ "application/json": {
6634
+ error: {
6635
+ message: string;
6636
+ code?: string;
6637
+ turnId?: string;
6638
+ communication?: components["schemas"]["AgentSessionCommunication"];
6639
+ };
6640
+ };
6641
+ };
6642
+ };
6643
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6644
+ 500: {
6645
+ headers: {
6646
+ [name: string]: unknown;
6647
+ };
6648
+ content: {
6649
+ "application/json": {
6650
+ error: {
6651
+ message: string;
6652
+ code?: string;
6653
+ turnId?: string;
6654
+ communication?: components["schemas"]["AgentSessionCommunication"];
6655
+ };
6656
+ };
6657
+ };
6658
+ };
6659
+ /** @description Transcripts are not enabled on this API. */
6660
+ 501: {
6661
+ headers: {
6662
+ [name: string]: unknown;
6663
+ };
6664
+ content: {
6665
+ "application/json": {
6666
+ error: {
6667
+ code: string;
6668
+ message: string;
6669
+ };
6670
+ };
6671
+ };
6672
+ };
6673
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6674
+ 503: {
6675
+ headers: {
6676
+ [name: string]: unknown;
6677
+ };
6678
+ content: {
6679
+ "application/json": {
6680
+ error: {
6681
+ message: string;
6682
+ code?: string;
6683
+ turnId?: string;
6684
+ communication?: components["schemas"]["AgentSessionCommunication"];
6685
+ };
6686
+ };
6687
+ };
6688
+ };
6689
+ };
6690
+ };
6691
+ waitForAgentSession: {
6692
+ parameters: {
6693
+ query?: {
6694
+ after?: number | null;
6695
+ timeoutMs?: number;
6696
+ };
6697
+ header?: never;
6698
+ path: {
6699
+ sessionId: string;
6700
+ };
6701
+ cookie?: never;
6702
+ };
6703
+ requestBody?: never;
6704
+ responses: {
6705
+ /** @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. */
6706
+ 200: {
6707
+ headers: {
6708
+ [name: string]: unknown;
6709
+ };
6710
+ content: {
6711
+ "application/json": {
6712
+ changed: boolean;
6713
+ session: components["schemas"]["AgentSessionState"];
6714
+ output: {
6715
+ messages: {
6716
+ seq: number;
6717
+ turnId: string | null;
6718
+ at: string;
6719
+ text: string;
6720
+ truncated: boolean;
6721
+ }[];
6722
+ nextCursor: number;
6723
+ hasMore: boolean;
6724
+ };
6725
+ };
6726
+ };
6727
+ };
6728
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6729
+ 400: {
6730
+ headers: {
6731
+ [name: string]: unknown;
6732
+ };
6733
+ content: {
6734
+ "application/json": {
6735
+ error: {
6736
+ message: string;
6737
+ code?: string;
6738
+ turnId?: string;
6739
+ communication?: components["schemas"]["AgentSessionCommunication"];
6740
+ };
6741
+ };
6742
+ };
6743
+ };
6744
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6745
+ 403: {
6746
+ headers: {
6747
+ [name: string]: unknown;
6748
+ };
6749
+ content: {
6750
+ "application/json": {
6751
+ error: {
6752
+ message: string;
6753
+ code?: string;
6754
+ turnId?: string;
6755
+ communication?: components["schemas"]["AgentSessionCommunication"];
6756
+ };
6757
+ };
6758
+ };
6759
+ };
6760
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6761
+ 404: {
6762
+ headers: {
6763
+ [name: string]: unknown;
6764
+ };
6765
+ content: {
6766
+ "application/json": {
6767
+ error: {
6768
+ message: string;
6769
+ code?: string;
6770
+ turnId?: string;
6771
+ communication?: components["schemas"]["AgentSessionCommunication"];
6772
+ };
6773
+ };
6774
+ };
6775
+ };
6776
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6777
+ 409: {
6778
+ headers: {
6779
+ [name: string]: unknown;
6780
+ };
6781
+ content: {
6782
+ "application/json": {
6783
+ error: {
6784
+ message: string;
6785
+ code?: string;
6786
+ turnId?: string;
6787
+ communication?: components["schemas"]["AgentSessionCommunication"];
6788
+ };
6789
+ };
6790
+ };
6791
+ };
6792
+ /** @description Too many waits or event streams are open for this credential. */
6793
+ 429: {
6794
+ headers: {
6795
+ [name: string]: unknown;
6796
+ };
6797
+ content: {
6798
+ "application/json": {
6799
+ error: {
6800
+ code: string;
6801
+ message: string;
6802
+ };
6803
+ };
6804
+ };
6805
+ };
6806
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6807
+ 500: {
6808
+ headers: {
6809
+ [name: string]: unknown;
6810
+ };
6811
+ content: {
6812
+ "application/json": {
6813
+ error: {
6814
+ message: string;
6815
+ code?: string;
6816
+ turnId?: string;
6817
+ communication?: components["schemas"]["AgentSessionCommunication"];
6818
+ };
6819
+ };
6820
+ };
6821
+ };
6822
+ /** @description Waiting is not enabled on this API. */
6823
+ 501: {
6824
+ headers: {
6825
+ [name: string]: unknown;
6826
+ };
6827
+ content: {
6828
+ "application/json": {
6829
+ error: {
6830
+ code: string;
6831
+ message: string;
6832
+ };
6833
+ };
6834
+ };
6835
+ };
6836
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6837
+ 503: {
6838
+ headers: {
6839
+ [name: string]: unknown;
6840
+ };
6841
+ content: {
6842
+ "application/json": {
6843
+ error: {
6844
+ message: string;
6845
+ code?: string;
6846
+ turnId?: string;
6847
+ communication?: components["schemas"]["AgentSessionCommunication"];
6848
+ };
6849
+ };
6850
+ };
6851
+ };
6852
+ };
6853
+ };
6118
6854
  sendAgentMessage: {
6119
6855
  parameters: {
6120
6856
  query?: never;