@remotehost/sdk 0.2.0 → 0.3.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.
@@ -544,23 +544,39 @@ export interface paths {
544
544
  patch?: never;
545
545
  trace?: never;
546
546
  };
547
- "/agent-sessions/{sessionId}/recover": {
547
+ "/me/agent-tokens": {
548
548
  parameters: {
549
549
  query?: never;
550
550
  header?: never;
551
551
  path?: never;
552
552
  cookie?: never;
553
553
  };
554
- get?: never;
554
+ get: operations["listAgentAccessTokens"];
555
555
  put?: never;
556
- /** @description Resume a stopped managed bridge in the same running sandbox using its saved vendor conversation. Idempotent when already ready. Interrupted work and pending approvals are not replayed. Requires agent_session.send; cannot recover destroyed sandbox storage. */
557
- post: operations["recoverAgentSession"];
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. */
557
+ post: operations["createAgentAccessToken"];
558
558
  delete?: never;
559
559
  options?: never;
560
560
  head?: never;
561
561
  patch?: never;
562
562
  trace?: never;
563
563
  };
564
+ "/me/agent-tokens/{tokenId}": {
565
+ parameters: {
566
+ query?: never;
567
+ header?: never;
568
+ path?: never;
569
+ cookie?: never;
570
+ };
571
+ get?: never;
572
+ put?: never;
573
+ post?: never;
574
+ delete: operations["revokeAgentAccessToken"];
575
+ options?: never;
576
+ head?: never;
577
+ patch?: never;
578
+ trace?: never;
579
+ };
564
580
  "/agent-sessions": {
565
581
  parameters: {
566
582
  query?: never;
@@ -568,7 +584,7 @@ export interface paths {
568
584
  path?: never;
569
585
  cookie?: never;
570
586
  };
571
- /** @description Discover registered sessions across accessible projects. API keys retain their organization and permission limits. Native terminal sessions are not automatically registered. State is last known; read a session to refresh it. Pages are ordered by stable session ID, not activity. */
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. */
572
588
  get: operations["discoverAgentSessions"];
573
589
  put?: never;
574
590
  post?: never;
@@ -691,6 +707,23 @@ export interface paths {
691
707
  patch?: never;
692
708
  trace?: never;
693
709
  };
710
+ "/agent-sessions/{sessionId}/recover": {
711
+ parameters: {
712
+ query?: never;
713
+ header?: never;
714
+ path?: never;
715
+ cookie?: never;
716
+ };
717
+ get?: never;
718
+ 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. */
720
+ post: operations["recoverAgentSession"];
721
+ delete?: never;
722
+ options?: never;
723
+ head?: never;
724
+ patch?: never;
725
+ trace?: never;
726
+ };
694
727
  }
695
728
  export type webhooks = Record<string, never>;
696
729
  export interface components {
@@ -1023,13 +1056,34 @@ export interface components {
1023
1056
  expires_at: string | null;
1024
1057
  scopes: string[] | null;
1025
1058
  };
1059
+ AgentSessionCommunication: {
1060
+ /** @enum {string} */
1061
+ status: "ready" | "starting" | "restart_required" | "setup_required" | "unavailable" | "unsupported";
1062
+ capabilities: ("messages" | "output" | "approvals" | "interrupt" | "recover")[];
1063
+ message: string | null;
1064
+ requirements: {
1065
+ code: string;
1066
+ /** @enum {string} */
1067
+ action: "restart" | "setup";
1068
+ message: string;
1069
+ }[];
1070
+ };
1026
1071
  AgentSessionState: {
1027
1072
  id: string;
1028
1073
  sessionId: string;
1029
1074
  projectId: string;
1030
1075
  sandboxId: string | null;
1076
+ agent: string;
1077
+ agentLabel: string;
1078
+ communication: components["schemas"]["AgentSessionCommunication"];
1079
+ requirements: {
1080
+ code: string;
1081
+ /** @enum {string} */
1082
+ action: "restart" | "setup";
1083
+ message: string;
1084
+ }[];
1031
1085
  /** @enum {string} */
1032
- agent: "claude" | "codex";
1086
+ surface: "terminal" | "managed";
1033
1087
  /** @enum {string} */
1034
1088
  status: "active" | "closed";
1035
1089
  turnId: string | null;
@@ -1045,6 +1099,7 @@ export interface components {
1045
1099
  error: string | null;
1046
1100
  /** @enum {string|null} */
1047
1101
  bridgeState: "starting" | "ready" | "closed" | null;
1102
+ bridgeEventSeq: number | null;
1048
1103
  drifted: boolean;
1049
1104
  problems: {
1050
1105
  seq: number;
@@ -5031,24 +5086,289 @@ export interface operations {
5031
5086
  };
5032
5087
  };
5033
5088
  };
5034
- recoverAgentSession: {
5089
+ listAgentAccessTokens: {
5090
+ parameters: {
5091
+ query?: never;
5092
+ header?: never;
5093
+ path?: never;
5094
+ cookie?: never;
5095
+ };
5096
+ requestBody?: never;
5097
+ responses: {
5098
+ /** @description The signed-in user's tokens. No token hashes or secrets. */
5099
+ 200: {
5100
+ headers: {
5101
+ [name: string]: unknown;
5102
+ };
5103
+ content: {
5104
+ "application/json": {
5105
+ tokens: {
5106
+ /** Format: uuid */
5107
+ id: string;
5108
+ name: string;
5109
+ token_prefix: string;
5110
+ scopes: ("agent_session.read" | "agent_session.send" | "agent_session.approve" | "sandbox.create")[];
5111
+ created_at: string;
5112
+ expires_at: string;
5113
+ revoked_at: string | null;
5114
+ }[];
5115
+ };
5116
+ };
5117
+ };
5118
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5119
+ 400: {
5120
+ headers: {
5121
+ [name: string]: unknown;
5122
+ };
5123
+ content: {
5124
+ "application/json": {
5125
+ error: {
5126
+ message: string;
5127
+ code?: string;
5128
+ turnId?: string;
5129
+ communication?: components["schemas"]["AgentSessionCommunication"];
5130
+ };
5131
+ };
5132
+ };
5133
+ };
5134
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5135
+ 403: {
5136
+ headers: {
5137
+ [name: string]: unknown;
5138
+ };
5139
+ content: {
5140
+ "application/json": {
5141
+ error: {
5142
+ message: string;
5143
+ code?: string;
5144
+ turnId?: string;
5145
+ communication?: components["schemas"]["AgentSessionCommunication"];
5146
+ };
5147
+ };
5148
+ };
5149
+ };
5150
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5151
+ 404: {
5152
+ headers: {
5153
+ [name: string]: unknown;
5154
+ };
5155
+ content: {
5156
+ "application/json": {
5157
+ error: {
5158
+ message: string;
5159
+ code?: string;
5160
+ turnId?: string;
5161
+ communication?: components["schemas"]["AgentSessionCommunication"];
5162
+ };
5163
+ };
5164
+ };
5165
+ };
5166
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5167
+ 409: {
5168
+ headers: {
5169
+ [name: string]: unknown;
5170
+ };
5171
+ content: {
5172
+ "application/json": {
5173
+ error: {
5174
+ message: string;
5175
+ code?: string;
5176
+ turnId?: string;
5177
+ communication?: components["schemas"]["AgentSessionCommunication"];
5178
+ };
5179
+ };
5180
+ };
5181
+ };
5182
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5183
+ 500: {
5184
+ headers: {
5185
+ [name: string]: unknown;
5186
+ };
5187
+ content: {
5188
+ "application/json": {
5189
+ error: {
5190
+ message: string;
5191
+ code?: string;
5192
+ turnId?: string;
5193
+ communication?: components["schemas"]["AgentSessionCommunication"];
5194
+ };
5195
+ };
5196
+ };
5197
+ };
5198
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5199
+ 503: {
5200
+ headers: {
5201
+ [name: string]: unknown;
5202
+ };
5203
+ content: {
5204
+ "application/json": {
5205
+ error: {
5206
+ message: string;
5207
+ code?: string;
5208
+ turnId?: string;
5209
+ communication?: components["schemas"]["AgentSessionCommunication"];
5210
+ };
5211
+ };
5212
+ };
5213
+ };
5214
+ };
5215
+ };
5216
+ createAgentAccessToken: {
5217
+ parameters: {
5218
+ query?: never;
5219
+ header?: never;
5220
+ path?: never;
5221
+ cookie?: never;
5222
+ };
5223
+ requestBody: {
5224
+ content: {
5225
+ "application/json": {
5226
+ name: string;
5227
+ scopes: ("agent_session.read" | "agent_session.send" | "agent_session.approve" | "sandbox.create")[];
5228
+ expiresInDays?: number;
5229
+ };
5230
+ };
5231
+ };
5232
+ responses: {
5233
+ /** @description Personal token created. */
5234
+ 201: {
5235
+ headers: {
5236
+ [name: string]: unknown;
5237
+ };
5238
+ content: {
5239
+ "application/json": {
5240
+ agentToken: {
5241
+ /** Format: uuid */
5242
+ id: string;
5243
+ name: string;
5244
+ token_prefix: string;
5245
+ scopes: ("agent_session.read" | "agent_session.send" | "agent_session.approve" | "sandbox.create")[];
5246
+ created_at: string;
5247
+ expires_at: string;
5248
+ revoked_at: string | null;
5249
+ };
5250
+ token: string;
5251
+ };
5252
+ };
5253
+ };
5254
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5255
+ 400: {
5256
+ headers: {
5257
+ [name: string]: unknown;
5258
+ };
5259
+ content: {
5260
+ "application/json": {
5261
+ error: {
5262
+ message: string;
5263
+ code?: string;
5264
+ turnId?: string;
5265
+ communication?: components["schemas"]["AgentSessionCommunication"];
5266
+ };
5267
+ };
5268
+ };
5269
+ };
5270
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5271
+ 403: {
5272
+ headers: {
5273
+ [name: string]: unknown;
5274
+ };
5275
+ content: {
5276
+ "application/json": {
5277
+ error: {
5278
+ message: string;
5279
+ code?: string;
5280
+ turnId?: string;
5281
+ communication?: components["schemas"]["AgentSessionCommunication"];
5282
+ };
5283
+ };
5284
+ };
5285
+ };
5286
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5287
+ 404: {
5288
+ headers: {
5289
+ [name: string]: unknown;
5290
+ };
5291
+ content: {
5292
+ "application/json": {
5293
+ error: {
5294
+ message: string;
5295
+ code?: string;
5296
+ turnId?: string;
5297
+ communication?: components["schemas"]["AgentSessionCommunication"];
5298
+ };
5299
+ };
5300
+ };
5301
+ };
5302
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5303
+ 409: {
5304
+ headers: {
5305
+ [name: string]: unknown;
5306
+ };
5307
+ content: {
5308
+ "application/json": {
5309
+ error: {
5310
+ message: string;
5311
+ code?: string;
5312
+ turnId?: string;
5313
+ communication?: components["schemas"]["AgentSessionCommunication"];
5314
+ };
5315
+ };
5316
+ };
5317
+ };
5318
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5319
+ 500: {
5320
+ headers: {
5321
+ [name: string]: unknown;
5322
+ };
5323
+ content: {
5324
+ "application/json": {
5325
+ error: {
5326
+ message: string;
5327
+ code?: string;
5328
+ turnId?: string;
5329
+ communication?: components["schemas"]["AgentSessionCommunication"];
5330
+ };
5331
+ };
5332
+ };
5333
+ };
5334
+ /** @description The operation could not be completed; inspect error.message and error.code. */
5335
+ 503: {
5336
+ headers: {
5337
+ [name: string]: unknown;
5338
+ };
5339
+ content: {
5340
+ "application/json": {
5341
+ error: {
5342
+ message: string;
5343
+ code?: string;
5344
+ turnId?: string;
5345
+ communication?: components["schemas"]["AgentSessionCommunication"];
5346
+ };
5347
+ };
5348
+ };
5349
+ };
5350
+ };
5351
+ };
5352
+ revokeAgentAccessToken: {
5035
5353
  parameters: {
5036
5354
  query?: never;
5037
5355
  header?: never;
5038
5356
  path: {
5039
- sessionId: string;
5357
+ tokenId: string;
5040
5358
  };
5041
5359
  cookie?: never;
5042
5360
  };
5043
5361
  requestBody?: never;
5044
5362
  responses: {
5045
- /** @description Bridge ready with its saved conversation. */
5363
+ /** @description Revoked. User sign-in required. */
5046
5364
  200: {
5047
5365
  headers: {
5048
5366
  [name: string]: unknown;
5049
5367
  };
5050
5368
  content: {
5051
- "application/json": components["schemas"]["AgentSessionState"];
5369
+ "application/json": {
5370
+ revoked: boolean;
5371
+ };
5052
5372
  };
5053
5373
  };
5054
5374
  /** @description The operation could not be completed; inspect error.message and error.code. */
@@ -5061,6 +5381,8 @@ export interface operations {
5061
5381
  error: {
5062
5382
  message: string;
5063
5383
  code?: string;
5384
+ turnId?: string;
5385
+ communication?: components["schemas"]["AgentSessionCommunication"];
5064
5386
  };
5065
5387
  };
5066
5388
  };
@@ -5075,6 +5397,8 @@ export interface operations {
5075
5397
  error: {
5076
5398
  message: string;
5077
5399
  code?: string;
5400
+ turnId?: string;
5401
+ communication?: components["schemas"]["AgentSessionCommunication"];
5078
5402
  };
5079
5403
  };
5080
5404
  };
@@ -5089,6 +5413,8 @@ export interface operations {
5089
5413
  error: {
5090
5414
  message: string;
5091
5415
  code?: string;
5416
+ turnId?: string;
5417
+ communication?: components["schemas"]["AgentSessionCommunication"];
5092
5418
  };
5093
5419
  };
5094
5420
  };
@@ -5103,6 +5429,8 @@ export interface operations {
5103
5429
  error: {
5104
5430
  message: string;
5105
5431
  code?: string;
5432
+ turnId?: string;
5433
+ communication?: components["schemas"]["AgentSessionCommunication"];
5106
5434
  };
5107
5435
  };
5108
5436
  };
@@ -5117,6 +5445,8 @@ export interface operations {
5117
5445
  error: {
5118
5446
  message: string;
5119
5447
  code?: string;
5448
+ turnId?: string;
5449
+ communication?: components["schemas"]["AgentSessionCommunication"];
5120
5450
  };
5121
5451
  };
5122
5452
  };
@@ -5131,6 +5461,8 @@ export interface operations {
5131
5461
  error: {
5132
5462
  message: string;
5133
5463
  code?: string;
5464
+ turnId?: string;
5465
+ communication?: components["schemas"]["AgentSessionCommunication"];
5134
5466
  };
5135
5467
  };
5136
5468
  };
@@ -5164,11 +5496,13 @@ export interface operations {
5164
5496
  org_id: string;
5165
5497
  project_id: string;
5166
5498
  sandbox_id: string | null;
5167
- /** @enum {string} */
5168
- agent: "claude" | "codex";
5499
+ agent: string;
5500
+ agent_label: string;
5169
5501
  /** @enum {string} */
5170
5502
  status: "active" | "closed";
5171
5503
  last_activity_at: string;
5504
+ /** @enum {string} */
5505
+ surface: "terminal" | "managed";
5172
5506
  sandbox_status: string | null;
5173
5507
  turn_id: string | null;
5174
5508
  /** @enum {string|null} */
@@ -5191,6 +5525,8 @@ export interface operations {
5191
5525
  error: {
5192
5526
  message: string;
5193
5527
  code?: string;
5528
+ turnId?: string;
5529
+ communication?: components["schemas"]["AgentSessionCommunication"];
5194
5530
  };
5195
5531
  };
5196
5532
  };
@@ -5205,6 +5541,8 @@ export interface operations {
5205
5541
  error: {
5206
5542
  message: string;
5207
5543
  code?: string;
5544
+ turnId?: string;
5545
+ communication?: components["schemas"]["AgentSessionCommunication"];
5208
5546
  };
5209
5547
  };
5210
5548
  };
@@ -5219,6 +5557,8 @@ export interface operations {
5219
5557
  error: {
5220
5558
  message: string;
5221
5559
  code?: string;
5560
+ turnId?: string;
5561
+ communication?: components["schemas"]["AgentSessionCommunication"];
5222
5562
  };
5223
5563
  };
5224
5564
  };
@@ -5233,6 +5573,8 @@ export interface operations {
5233
5573
  error: {
5234
5574
  message: string;
5235
5575
  code?: string;
5576
+ turnId?: string;
5577
+ communication?: components["schemas"]["AgentSessionCommunication"];
5236
5578
  };
5237
5579
  };
5238
5580
  };
@@ -5247,6 +5589,8 @@ export interface operations {
5247
5589
  error: {
5248
5590
  message: string;
5249
5591
  code?: string;
5592
+ turnId?: string;
5593
+ communication?: components["schemas"]["AgentSessionCommunication"];
5250
5594
  };
5251
5595
  };
5252
5596
  };
@@ -5261,6 +5605,8 @@ export interface operations {
5261
5605
  error: {
5262
5606
  message: string;
5263
5607
  code?: string;
5608
+ turnId?: string;
5609
+ communication?: components["schemas"]["AgentSessionCommunication"];
5264
5610
  };
5265
5611
  };
5266
5612
  };
@@ -5297,6 +5643,8 @@ export interface operations {
5297
5643
  error: {
5298
5644
  message: string;
5299
5645
  code?: string;
5646
+ turnId?: string;
5647
+ communication?: components["schemas"]["AgentSessionCommunication"];
5300
5648
  };
5301
5649
  };
5302
5650
  };
@@ -5311,6 +5659,8 @@ export interface operations {
5311
5659
  error: {
5312
5660
  message: string;
5313
5661
  code?: string;
5662
+ turnId?: string;
5663
+ communication?: components["schemas"]["AgentSessionCommunication"];
5314
5664
  };
5315
5665
  };
5316
5666
  };
@@ -5325,6 +5675,8 @@ export interface operations {
5325
5675
  error: {
5326
5676
  message: string;
5327
5677
  code?: string;
5678
+ turnId?: string;
5679
+ communication?: components["schemas"]["AgentSessionCommunication"];
5328
5680
  };
5329
5681
  };
5330
5682
  };
@@ -5339,6 +5691,8 @@ export interface operations {
5339
5691
  error: {
5340
5692
  message: string;
5341
5693
  code?: string;
5694
+ turnId?: string;
5695
+ communication?: components["schemas"]["AgentSessionCommunication"];
5342
5696
  };
5343
5697
  };
5344
5698
  };
@@ -5353,6 +5707,8 @@ export interface operations {
5353
5707
  error: {
5354
5708
  message: string;
5355
5709
  code?: string;
5710
+ turnId?: string;
5711
+ communication?: components["schemas"]["AgentSessionCommunication"];
5356
5712
  };
5357
5713
  };
5358
5714
  };
@@ -5367,6 +5723,8 @@ export interface operations {
5367
5723
  error: {
5368
5724
  message: string;
5369
5725
  code?: string;
5726
+ turnId?: string;
5727
+ communication?: components["schemas"]["AgentSessionCommunication"];
5370
5728
  };
5371
5729
  };
5372
5730
  };
@@ -5398,8 +5756,8 @@ export interface operations {
5398
5756
  org_id: string;
5399
5757
  project_id: string;
5400
5758
  sandbox_id: string | null;
5401
- /** @enum {string} */
5402
- agent: "claude" | "codex";
5759
+ agent: string;
5760
+ agent_label: string;
5403
5761
  /** @enum {string} */
5404
5762
  status: "active" | "closed";
5405
5763
  vendor_session_id: string | null;
@@ -5420,6 +5778,8 @@ export interface operations {
5420
5778
  error: {
5421
5779
  message: string;
5422
5780
  code?: string;
5781
+ turnId?: string;
5782
+ communication?: components["schemas"]["AgentSessionCommunication"];
5423
5783
  };
5424
5784
  };
5425
5785
  };
@@ -5434,6 +5794,8 @@ export interface operations {
5434
5794
  error: {
5435
5795
  message: string;
5436
5796
  code?: string;
5797
+ turnId?: string;
5798
+ communication?: components["schemas"]["AgentSessionCommunication"];
5437
5799
  };
5438
5800
  };
5439
5801
  };
@@ -5448,6 +5810,8 @@ export interface operations {
5448
5810
  error: {
5449
5811
  message: string;
5450
5812
  code?: string;
5813
+ turnId?: string;
5814
+ communication?: components["schemas"]["AgentSessionCommunication"];
5451
5815
  };
5452
5816
  };
5453
5817
  };
@@ -5462,6 +5826,8 @@ export interface operations {
5462
5826
  error: {
5463
5827
  message: string;
5464
5828
  code?: string;
5829
+ turnId?: string;
5830
+ communication?: components["schemas"]["AgentSessionCommunication"];
5465
5831
  };
5466
5832
  };
5467
5833
  };
@@ -5476,6 +5842,8 @@ export interface operations {
5476
5842
  error: {
5477
5843
  message: string;
5478
5844
  code?: string;
5845
+ turnId?: string;
5846
+ communication?: components["schemas"]["AgentSessionCommunication"];
5479
5847
  };
5480
5848
  };
5481
5849
  };
@@ -5490,6 +5858,8 @@ export interface operations {
5490
5858
  error: {
5491
5859
  message: string;
5492
5860
  code?: string;
5861
+ turnId?: string;
5862
+ communication?: components["schemas"]["AgentSessionCommunication"];
5493
5863
  };
5494
5864
  };
5495
5865
  };
@@ -5526,6 +5896,8 @@ export interface operations {
5526
5896
  error: {
5527
5897
  message: string;
5528
5898
  code?: string;
5899
+ turnId?: string;
5900
+ communication?: components["schemas"]["AgentSessionCommunication"];
5529
5901
  };
5530
5902
  };
5531
5903
  };
@@ -5540,6 +5912,8 @@ export interface operations {
5540
5912
  error: {
5541
5913
  message: string;
5542
5914
  code?: string;
5915
+ turnId?: string;
5916
+ communication?: components["schemas"]["AgentSessionCommunication"];
5543
5917
  };
5544
5918
  };
5545
5919
  };
@@ -5554,6 +5928,8 @@ export interface operations {
5554
5928
  error: {
5555
5929
  message: string;
5556
5930
  code?: string;
5931
+ turnId?: string;
5932
+ communication?: components["schemas"]["AgentSessionCommunication"];
5557
5933
  };
5558
5934
  };
5559
5935
  };
@@ -5568,6 +5944,8 @@ export interface operations {
5568
5944
  error: {
5569
5945
  message: string;
5570
5946
  code?: string;
5947
+ turnId?: string;
5948
+ communication?: components["schemas"]["AgentSessionCommunication"];
5571
5949
  };
5572
5950
  };
5573
5951
  };
@@ -5582,6 +5960,8 @@ export interface operations {
5582
5960
  error: {
5583
5961
  message: string;
5584
5962
  code?: string;
5963
+ turnId?: string;
5964
+ communication?: components["schemas"]["AgentSessionCommunication"];
5585
5965
  };
5586
5966
  };
5587
5967
  };
@@ -5596,6 +5976,8 @@ export interface operations {
5596
5976
  error: {
5597
5977
  message: string;
5598
5978
  code?: string;
5979
+ turnId?: string;
5980
+ communication?: components["schemas"]["AgentSessionCommunication"];
5599
5981
  };
5600
5982
  };
5601
5983
  };
@@ -5645,6 +6027,8 @@ export interface operations {
5645
6027
  error: {
5646
6028
  message: string;
5647
6029
  code?: string;
6030
+ turnId?: string;
6031
+ communication?: components["schemas"]["AgentSessionCommunication"];
5648
6032
  };
5649
6033
  };
5650
6034
  };
@@ -5659,6 +6043,8 @@ export interface operations {
5659
6043
  error: {
5660
6044
  message: string;
5661
6045
  code?: string;
6046
+ turnId?: string;
6047
+ communication?: components["schemas"]["AgentSessionCommunication"];
5662
6048
  };
5663
6049
  };
5664
6050
  };
@@ -5673,6 +6059,8 @@ export interface operations {
5673
6059
  error: {
5674
6060
  message: string;
5675
6061
  code?: string;
6062
+ turnId?: string;
6063
+ communication?: components["schemas"]["AgentSessionCommunication"];
5676
6064
  };
5677
6065
  };
5678
6066
  };
@@ -5687,6 +6075,8 @@ export interface operations {
5687
6075
  error: {
5688
6076
  message: string;
5689
6077
  code?: string;
6078
+ turnId?: string;
6079
+ communication?: components["schemas"]["AgentSessionCommunication"];
5690
6080
  };
5691
6081
  };
5692
6082
  };
@@ -5701,6 +6091,8 @@ export interface operations {
5701
6091
  error: {
5702
6092
  message: string;
5703
6093
  code?: string;
6094
+ turnId?: string;
6095
+ communication?: components["schemas"]["AgentSessionCommunication"];
5704
6096
  };
5705
6097
  };
5706
6098
  };
@@ -5715,6 +6107,8 @@ export interface operations {
5715
6107
  error: {
5716
6108
  message: string;
5717
6109
  code?: string;
6110
+ turnId?: string;
6111
+ communication?: components["schemas"]["AgentSessionCommunication"];
5718
6112
  };
5719
6113
  };
5720
6114
  };
@@ -5734,6 +6128,8 @@ export interface operations {
5734
6128
  content: {
5735
6129
  "application/json": {
5736
6130
  text: string;
6131
+ /** @description Reuse the same key and text to retry without creating another turn. */
6132
+ requestKey?: string;
5737
6133
  };
5738
6134
  };
5739
6135
  };
@@ -5747,7 +6143,8 @@ export interface operations {
5747
6143
  "application/json": {
5748
6144
  turnId: string;
5749
6145
  /** @enum {string} */
5750
- state: "submitted";
6146
+ state: "submitted" | "working" | "input-required" | "completed" | "failed" | "canceled";
6147
+ replayed?: boolean;
5751
6148
  };
5752
6149
  };
5753
6150
  };
@@ -5761,6 +6158,8 @@ export interface operations {
5761
6158
  error: {
5762
6159
  message: string;
5763
6160
  code?: string;
6161
+ turnId?: string;
6162
+ communication?: components["schemas"]["AgentSessionCommunication"];
5764
6163
  };
5765
6164
  };
5766
6165
  };
@@ -5775,6 +6174,8 @@ export interface operations {
5775
6174
  error: {
5776
6175
  message: string;
5777
6176
  code?: string;
6177
+ turnId?: string;
6178
+ communication?: components["schemas"]["AgentSessionCommunication"];
5778
6179
  };
5779
6180
  };
5780
6181
  };
@@ -5789,6 +6190,8 @@ export interface operations {
5789
6190
  error: {
5790
6191
  message: string;
5791
6192
  code?: string;
6193
+ turnId?: string;
6194
+ communication?: components["schemas"]["AgentSessionCommunication"];
5792
6195
  };
5793
6196
  };
5794
6197
  };
@@ -5803,6 +6206,8 @@ export interface operations {
5803
6206
  error: {
5804
6207
  message: string;
5805
6208
  code?: string;
6209
+ turnId?: string;
6210
+ communication?: components["schemas"]["AgentSessionCommunication"];
5806
6211
  };
5807
6212
  };
5808
6213
  };
@@ -5817,6 +6222,8 @@ export interface operations {
5817
6222
  error: {
5818
6223
  message: string;
5819
6224
  code?: string;
6225
+ turnId?: string;
6226
+ communication?: components["schemas"]["AgentSessionCommunication"];
5820
6227
  };
5821
6228
  };
5822
6229
  };
@@ -5831,6 +6238,8 @@ export interface operations {
5831
6238
  error: {
5832
6239
  message: string;
5833
6240
  code?: string;
6241
+ turnId?: string;
6242
+ communication?: components["schemas"]["AgentSessionCommunication"];
5834
6243
  };
5835
6244
  };
5836
6245
  };
@@ -5877,6 +6286,8 @@ export interface operations {
5877
6286
  error: {
5878
6287
  message: string;
5879
6288
  code?: string;
6289
+ turnId?: string;
6290
+ communication?: components["schemas"]["AgentSessionCommunication"];
5880
6291
  };
5881
6292
  };
5882
6293
  };
@@ -5891,6 +6302,8 @@ export interface operations {
5891
6302
  error: {
5892
6303
  message: string;
5893
6304
  code?: string;
6305
+ turnId?: string;
6306
+ communication?: components["schemas"]["AgentSessionCommunication"];
5894
6307
  };
5895
6308
  };
5896
6309
  };
@@ -5905,6 +6318,8 @@ export interface operations {
5905
6318
  error: {
5906
6319
  message: string;
5907
6320
  code?: string;
6321
+ turnId?: string;
6322
+ communication?: components["schemas"]["AgentSessionCommunication"];
5908
6323
  };
5909
6324
  };
5910
6325
  };
@@ -5919,6 +6334,8 @@ export interface operations {
5919
6334
  error: {
5920
6335
  message: string;
5921
6336
  code?: string;
6337
+ turnId?: string;
6338
+ communication?: components["schemas"]["AgentSessionCommunication"];
5922
6339
  };
5923
6340
  };
5924
6341
  };
@@ -5933,6 +6350,8 @@ export interface operations {
5933
6350
  error: {
5934
6351
  message: string;
5935
6352
  code?: string;
6353
+ turnId?: string;
6354
+ communication?: components["schemas"]["AgentSessionCommunication"];
5936
6355
  };
5937
6356
  };
5938
6357
  };
@@ -5947,6 +6366,8 @@ export interface operations {
5947
6366
  error: {
5948
6367
  message: string;
5949
6368
  code?: string;
6369
+ turnId?: string;
6370
+ communication?: components["schemas"]["AgentSessionCommunication"];
5950
6371
  };
5951
6372
  };
5952
6373
  };
@@ -5985,6 +6406,126 @@ export interface operations {
5985
6406
  error: {
5986
6407
  message: string;
5987
6408
  code?: string;
6409
+ turnId?: string;
6410
+ communication?: components["schemas"]["AgentSessionCommunication"];
6411
+ };
6412
+ };
6413
+ };
6414
+ };
6415
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6416
+ 403: {
6417
+ headers: {
6418
+ [name: string]: unknown;
6419
+ };
6420
+ content: {
6421
+ "application/json": {
6422
+ error: {
6423
+ message: string;
6424
+ code?: string;
6425
+ turnId?: string;
6426
+ communication?: components["schemas"]["AgentSessionCommunication"];
6427
+ };
6428
+ };
6429
+ };
6430
+ };
6431
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6432
+ 404: {
6433
+ headers: {
6434
+ [name: string]: unknown;
6435
+ };
6436
+ content: {
6437
+ "application/json": {
6438
+ error: {
6439
+ message: string;
6440
+ code?: string;
6441
+ turnId?: string;
6442
+ communication?: components["schemas"]["AgentSessionCommunication"];
6443
+ };
6444
+ };
6445
+ };
6446
+ };
6447
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6448
+ 409: {
6449
+ headers: {
6450
+ [name: string]: unknown;
6451
+ };
6452
+ content: {
6453
+ "application/json": {
6454
+ error: {
6455
+ message: string;
6456
+ code?: string;
6457
+ turnId?: string;
6458
+ communication?: components["schemas"]["AgentSessionCommunication"];
6459
+ };
6460
+ };
6461
+ };
6462
+ };
6463
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6464
+ 500: {
6465
+ headers: {
6466
+ [name: string]: unknown;
6467
+ };
6468
+ content: {
6469
+ "application/json": {
6470
+ error: {
6471
+ message: string;
6472
+ code?: string;
6473
+ turnId?: string;
6474
+ communication?: components["schemas"]["AgentSessionCommunication"];
6475
+ };
6476
+ };
6477
+ };
6478
+ };
6479
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6480
+ 503: {
6481
+ headers: {
6482
+ [name: string]: unknown;
6483
+ };
6484
+ content: {
6485
+ "application/json": {
6486
+ error: {
6487
+ message: string;
6488
+ code?: string;
6489
+ turnId?: string;
6490
+ communication?: components["schemas"]["AgentSessionCommunication"];
6491
+ };
6492
+ };
6493
+ };
6494
+ };
6495
+ };
6496
+ };
6497
+ recoverAgentSession: {
6498
+ parameters: {
6499
+ query?: never;
6500
+ header?: never;
6501
+ path: {
6502
+ sessionId: string;
6503
+ };
6504
+ cookie?: never;
6505
+ };
6506
+ requestBody?: never;
6507
+ responses: {
6508
+ /** @description Saved conversation resumed. */
6509
+ 200: {
6510
+ headers: {
6511
+ [name: string]: unknown;
6512
+ };
6513
+ content: {
6514
+ "application/json": components["schemas"]["AgentSessionState"];
6515
+ };
6516
+ };
6517
+ /** @description The operation could not be completed; inspect error.message and error.code. */
6518
+ 400: {
6519
+ headers: {
6520
+ [name: string]: unknown;
6521
+ };
6522
+ content: {
6523
+ "application/json": {
6524
+ error: {
6525
+ message: string;
6526
+ code?: string;
6527
+ turnId?: string;
6528
+ communication?: components["schemas"]["AgentSessionCommunication"];
5988
6529
  };
5989
6530
  };
5990
6531
  };
@@ -5999,6 +6540,8 @@ export interface operations {
5999
6540
  error: {
6000
6541
  message: string;
6001
6542
  code?: string;
6543
+ turnId?: string;
6544
+ communication?: components["schemas"]["AgentSessionCommunication"];
6002
6545
  };
6003
6546
  };
6004
6547
  };
@@ -6013,6 +6556,8 @@ export interface operations {
6013
6556
  error: {
6014
6557
  message: string;
6015
6558
  code?: string;
6559
+ turnId?: string;
6560
+ communication?: components["schemas"]["AgentSessionCommunication"];
6016
6561
  };
6017
6562
  };
6018
6563
  };
@@ -6027,6 +6572,8 @@ export interface operations {
6027
6572
  error: {
6028
6573
  message: string;
6029
6574
  code?: string;
6575
+ turnId?: string;
6576
+ communication?: components["schemas"]["AgentSessionCommunication"];
6030
6577
  };
6031
6578
  };
6032
6579
  };
@@ -6041,6 +6588,8 @@ export interface operations {
6041
6588
  error: {
6042
6589
  message: string;
6043
6590
  code?: string;
6591
+ turnId?: string;
6592
+ communication?: components["schemas"]["AgentSessionCommunication"];
6044
6593
  };
6045
6594
  };
6046
6595
  };
@@ -6055,6 +6604,8 @@ export interface operations {
6055
6604
  error: {
6056
6605
  message: string;
6057
6606
  code?: string;
6607
+ turnId?: string;
6608
+ communication?: components["schemas"]["AgentSessionCommunication"];
6058
6609
  };
6059
6610
  };
6060
6611
  };