@pstdio/pocketcoder-sdk 0.9.0 → 0.10.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/index.d.ts CHANGED
@@ -21,8 +21,8 @@ declare const InputObjectReferenceSchema: z.ZodObject<{
21
21
  sizeBytes: z.ZodNumber;
22
22
  digest: z.ZodString;
23
23
  visibility: z.ZodEnum<{
24
- expired: "expired";
25
24
  ready: "ready";
25
+ expired: "expired";
26
26
  unavailable: "unavailable";
27
27
  }>;
28
28
  }, z.core.$strict>;
@@ -41,8 +41,8 @@ declare const AcceptedInputManifestSchema: z.ZodObject<{
41
41
  sizeBytes: z.ZodNumber;
42
42
  digest: z.ZodString;
43
43
  visibility: z.ZodEnum<{
44
- expired: "expired";
45
44
  ready: "ready";
45
+ expired: "expired";
46
46
  unavailable: "unavailable";
47
47
  }>;
48
48
  }, z.core.$strict>>;
@@ -93,8 +93,8 @@ declare const KeyIssueRequestSchema: z.ZodObject<{
93
93
  }, z.core.$strict>;
94
94
  type KeyIssueRequest = z.infer<typeof KeyIssueRequestSchema>;
95
95
  declare const KeyRotateRequestSchema: z.ZodObject<{
96
- request_id: z.ZodString;
97
96
  expires_at: z.ZodOptional<z.ZodISODateTime>;
97
+ request_id: z.ZodString;
98
98
  }, z.core.$strict>;
99
99
  type KeyRotateRequest = z.infer<typeof KeyRotateRequestSchema>;
100
100
  declare const KeyResourceSchema: z.ZodObject<{
@@ -345,11 +345,11 @@ declare const ConversationMessageInputSchema: z.ZodObject<{
345
345
  call_id: z.ZodString;
346
346
  name: z.ZodString;
347
347
  status: z.ZodEnum<{
348
+ failed: "failed";
348
349
  pending: "pending";
349
350
  running: "running";
350
- completed: "completed";
351
- failed: "failed";
352
351
  canceled: "canceled";
352
+ completed: "completed";
353
353
  }>;
354
354
  input: z.ZodJSONSchema;
355
355
  output: z.ZodOptional<z.ZodJSONSchema>;
@@ -393,9 +393,9 @@ declare const ConversationMessageInputSchema: z.ZodObject<{
393
393
  type: z.ZodLiteral<"activity_started">;
394
394
  activity_id: z.ZodUUID;
395
395
  kind: z.ZodEnum<{
396
+ workspace: "workspace";
396
397
  tool: "tool";
397
398
  attachment: "attachment";
398
- workspace: "workspace";
399
399
  retrieval: "retrieval";
400
400
  }>;
401
401
  label: z.ZodString;
@@ -407,17 +407,17 @@ declare const ConversationMessageInputSchema: z.ZodObject<{
407
407
  activity_id: z.ZodUUID;
408
408
  ended_at: z.ZodNullable<z.ZodISODateTime>;
409
409
  outcome: z.ZodEnum<{
410
- completed: "completed";
411
410
  failed: "failed";
412
411
  canceled: "canceled";
412
+ completed: "completed";
413
413
  interrupted: "interrupted";
414
414
  }>;
415
415
  }, z.core.$strip>, z.ZodObject<{
416
416
  type: z.ZodLiteral<"turn_terminal">;
417
417
  outcome: z.ZodEnum<{
418
- completed: "completed";
419
418
  failed: "failed";
420
419
  canceled: "canceled";
420
+ completed: "completed";
421
421
  interrupted: "interrupted";
422
422
  lost: "lost";
423
423
  }>;
@@ -443,11 +443,11 @@ declare const ConversationMessageResourceSchema: z.ZodObject<{
443
443
  call_id: z.ZodString;
444
444
  name: z.ZodString;
445
445
  status: z.ZodEnum<{
446
+ failed: "failed";
446
447
  pending: "pending";
447
448
  running: "running";
448
- completed: "completed";
449
- failed: "failed";
450
449
  canceled: "canceled";
450
+ completed: "completed";
451
451
  }>;
452
452
  input: z.ZodJSONSchema;
453
453
  output: z.ZodOptional<z.ZodJSONSchema>;
@@ -492,9 +492,9 @@ declare const ConversationMessageResourceSchema: z.ZodObject<{
492
492
  type: z.ZodLiteral<"activity_started">;
493
493
  activity_id: z.ZodUUID;
494
494
  kind: z.ZodEnum<{
495
+ workspace: "workspace";
495
496
  tool: "tool";
496
497
  attachment: "attachment";
497
- workspace: "workspace";
498
498
  retrieval: "retrieval";
499
499
  }>;
500
500
  label: z.ZodString;
@@ -506,17 +506,17 @@ declare const ConversationMessageResourceSchema: z.ZodObject<{
506
506
  activity_id: z.ZodUUID;
507
507
  ended_at: z.ZodNullable<z.ZodISODateTime>;
508
508
  outcome: z.ZodEnum<{
509
- completed: "completed";
510
509
  failed: "failed";
511
510
  canceled: "canceled";
511
+ completed: "completed";
512
512
  interrupted: "interrupted";
513
513
  }>;
514
514
  }, z.core.$strip>, z.ZodObject<{
515
515
  type: z.ZodLiteral<"turn_terminal">;
516
516
  outcome: z.ZodEnum<{
517
- completed: "completed";
518
517
  failed: "failed";
519
518
  canceled: "canceled";
519
+ completed: "completed";
520
520
  interrupted: "interrupted";
521
521
  lost: "lost";
522
522
  }>;
@@ -533,8 +533,8 @@ declare const ConversationSummarySchema: z.ZodObject<{
533
533
  legacy: z.ZodBoolean;
534
534
  status: z.ZodEnum<{
535
535
  deleted: "deleted";
536
- retained: "retained";
537
536
  expired: "expired";
537
+ retained: "retained";
538
538
  }>;
539
539
  message_count: z.ZodNumber;
540
540
  turn_count: z.ZodNumber;
@@ -580,9 +580,9 @@ declare const ConversationMessageIdentitySchema: z.ZodObject<{
580
580
  type: z.ZodLiteral<"activity_started">;
581
581
  activity_id: z.ZodUUID;
582
582
  kind: z.ZodEnum<{
583
+ workspace: "workspace";
583
584
  tool: "tool";
584
585
  attachment: "attachment";
585
- workspace: "workspace";
586
586
  retrieval: "retrieval";
587
587
  }>;
588
588
  label: z.ZodString;
@@ -594,17 +594,17 @@ declare const ConversationMessageIdentitySchema: z.ZodObject<{
594
594
  activity_id: z.ZodUUID;
595
595
  ended_at: z.ZodNullable<z.ZodISODateTime>;
596
596
  outcome: z.ZodEnum<{
597
- completed: "completed";
598
597
  failed: "failed";
599
598
  canceled: "canceled";
599
+ completed: "completed";
600
600
  interrupted: "interrupted";
601
601
  }>;
602
602
  }, z.core.$strip>, z.ZodObject<{
603
603
  type: z.ZodLiteral<"turn_terminal">;
604
604
  outcome: z.ZodEnum<{
605
- completed: "completed";
606
605
  failed: "failed";
607
606
  canceled: "canceled";
607
+ completed: "completed";
608
608
  interrupted: "interrupted";
609
609
  lost: "lost";
610
610
  }>;
@@ -622,11 +622,11 @@ declare const ConversationPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
622
622
  call_id: z.ZodString;
623
623
  name: z.ZodString;
624
624
  status: z.ZodEnum<{
625
+ failed: "failed";
625
626
  pending: "pending";
626
627
  running: "running";
627
- completed: "completed";
628
- failed: "failed";
629
628
  canceled: "canceled";
629
+ completed: "completed";
630
630
  }>;
631
631
  input: z.ZodJSONSchema;
632
632
  output: z.ZodOptional<z.ZodJSONSchema>;
@@ -696,10 +696,10 @@ type ScreenshotResource = z.infer<typeof ScreenshotResourceSchema>;
696
696
  //#endregion
697
697
  //#region ../contracts/src/network/network.d.ts
698
698
  declare const NetworkEventSchema: z.ZodObject<{
699
- method: z.ZodDefault<z.ZodNullable<z.ZodString>>;
700
699
  path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
701
- occurred_at: z.ZodISODateTime;
700
+ method: z.ZodDefault<z.ZodNullable<z.ZodString>>;
702
701
  reason: z.ZodString;
702
+ occurred_at: z.ZodISODateTime;
703
703
  port: z.ZodNumber;
704
704
  decision: z.ZodEnum<{
705
705
  allow: "allow";
@@ -782,11 +782,11 @@ declare const CheckpointResourceSchema: z.ZodObject<{
782
782
  id: z.ZodUUID;
783
783
  workspace_id: z.ZodUUID;
784
784
  state: z.ZodEnum<{
785
- deleted: "deleted";
786
- failed: "failed";
787
- ready: "ready";
788
785
  creating: "creating";
786
+ ready: "ready";
787
+ failed: "failed";
789
788
  deleting: "deleting";
789
+ deleted: "deleted";
790
790
  }>;
791
791
  reason_code: z.ZodNullable<z.ZodString>;
792
792
  template: z.ZodObject<{
@@ -820,9 +820,9 @@ declare const OperationResourceSchema: z.ZodObject<{
820
820
  purge: "purge";
821
821
  }>;
822
822
  state: z.ZodEnum<{
823
+ failed: "failed";
823
824
  pending: "pending";
824
825
  running: "running";
825
- failed: "failed";
826
826
  succeeded: "succeeded";
827
827
  }>;
828
828
  workspace_id: z.ZodNullable<z.ZodUUID>;
@@ -894,16 +894,16 @@ declare const WorkspaceResourceSchema: z.ZodObject<{
894
894
  digest: z.ZodString;
895
895
  }, z.core.$strip>;
896
896
  state: z.ZodEnum<{
897
- failed: "failed";
898
- canceled: "canceled";
899
- expired: "expired";
900
897
  ready: "ready";
901
- provisioning: "provisioning";
898
+ failed: "failed";
902
899
  succeeded: "succeeded";
903
900
  queued: "queued";
901
+ provisioning: "provisioning";
904
902
  connected: "connected";
905
903
  preserving: "preserving";
906
904
  terminating: "terminating";
905
+ canceled: "canceled";
906
+ expired: "expired";
907
907
  preserved: "preserved";
908
908
  }>;
909
909
  reason_code: z.ZodNullable<z.ZodEnum<{
@@ -957,8 +957,8 @@ declare const WorkspaceResourceSchema: z.ZodObject<{
957
957
  }>>;
958
958
  network: z.ZodObject<{
959
959
  state: z.ZodEnum<{
960
- ready: "ready";
961
960
  disabled: "disabled";
961
+ ready: "ready";
962
962
  starting: "starting";
963
963
  degraded: "degraded";
964
964
  }>;
@@ -1184,11 +1184,11 @@ declare const WorkloadTemplateBaseSchema: z.ZodObject<{
1184
1184
  healthPath: z.ZodDefault<z.ZodString>;
1185
1185
  routes: z.ZodArray<z.ZodObject<{
1186
1186
  method: z.ZodEnum<{
1187
+ POST: "POST";
1188
+ PATCH: "PATCH";
1187
1189
  PUT: "PUT";
1188
1190
  DELETE: "DELETE";
1189
- POST: "POST";
1190
1191
  GET: "GET";
1191
- PATCH: "PATCH";
1192
1192
  }>;
1193
1193
  path: z.ZodString;
1194
1194
  query: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1389,11 +1389,11 @@ declare const WorkloadTemplateSnapshotSchema: z.ZodObject<{
1389
1389
  healthPath: z.ZodDefault<z.ZodString>;
1390
1390
  routes: z.ZodArray<z.ZodObject<{
1391
1391
  method: z.ZodEnum<{
1392
+ POST: "POST";
1393
+ PATCH: "PATCH";
1392
1394
  PUT: "PUT";
1393
1395
  DELETE: "DELETE";
1394
- POST: "POST";
1395
1396
  GET: "GET";
1396
- PATCH: "PATCH";
1397
1397
  }>;
1398
1398
  path: z.ZodString;
1399
1399
  query: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1668,8 +1668,8 @@ declare const ServiceReceiptSchema: z.ZodObject<{
1668
1668
  attemptId: z.ZodNullable<z.ZodUUID>;
1669
1669
  state: z.ZodEnum<{
1670
1670
  running: "running";
1671
- lost: "lost";
1672
1671
  starting: "starting";
1672
+ lost: "lost";
1673
1673
  exited: "exited";
1674
1674
  stopped: "stopped";
1675
1675
  }>;
@@ -1781,8 +1781,8 @@ declare const RuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1781
1781
  profileRevision: z.ZodNumber;
1782
1782
  revision: z.ZodNumber;
1783
1783
  state: z.ZodEnum<{
1784
- failed: "failed";
1785
1784
  ready: "ready";
1785
+ failed: "failed";
1786
1786
  provisioning: "provisioning";
1787
1787
  suspended: "suspended";
1788
1788
  closed: "closed";
@@ -1893,9 +1893,9 @@ declare const RuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1893
1893
  finalResponse: z.ZodNullable<z.ZodString>;
1894
1894
  state: z.ZodLiteral<"terminal">;
1895
1895
  outcome: z.ZodEnum<{
1896
- completed: "completed";
1897
1896
  failed: "failed";
1898
1897
  canceled: "canceled";
1898
+ completed: "completed";
1899
1899
  interrupted: "interrupted";
1900
1900
  lost: "lost";
1901
1901
  }>;
@@ -2075,8 +2075,8 @@ declare const InputObjectSchema: z.ZodObject<{
2075
2075
  sizeBytes: z.ZodNumber;
2076
2076
  }, z.core.$strict>;
2077
2077
  state: z.ZodEnum<{
2078
- expired: "expired";
2079
2078
  ready: "ready";
2079
+ expired: "expired";
2080
2080
  uploading: "uploading";
2081
2081
  rejected: "rejected";
2082
2082
  }>;
@@ -2147,9 +2147,9 @@ declare const ManagedHistoryPageSchema: z.ZodObject<{
2147
2147
  }, z.core.$strip>>;
2148
2148
  status: z.ZodEnum<{
2149
2149
  message: "message";
2150
- completed: "completed";
2151
2150
  failed: "failed";
2152
2151
  canceled: "canceled";
2152
+ completed: "completed";
2153
2153
  interrupted: "interrupted";
2154
2154
  lost: "lost";
2155
2155
  legacy: "legacy";
@@ -2172,11 +2172,11 @@ declare const ManagedHistoryPageSchema: z.ZodObject<{
2172
2172
  call_id: z.ZodString;
2173
2173
  name: z.ZodString;
2174
2174
  status: z.ZodEnum<{
2175
+ failed: "failed";
2175
2176
  pending: "pending";
2176
2177
  running: "running";
2177
- completed: "completed";
2178
- failed: "failed";
2179
2178
  canceled: "canceled";
2179
+ completed: "completed";
2180
2180
  }>;
2181
2181
  input: z.ZodJSONSchema;
2182
2182
  output: z.ZodOptional<z.ZodJSONSchema>;
@@ -2221,9 +2221,9 @@ declare const ManagedHistoryPageSchema: z.ZodObject<{
2221
2221
  type: z.ZodLiteral<"activity_started">;
2222
2222
  activity_id: z.ZodUUID;
2223
2223
  kind: z.ZodEnum<{
2224
+ workspace: "workspace";
2224
2225
  tool: "tool";
2225
2226
  attachment: "attachment";
2226
- workspace: "workspace";
2227
2227
  retrieval: "retrieval";
2228
2228
  }>;
2229
2229
  label: z.ZodString;
@@ -2235,17 +2235,17 @@ declare const ManagedHistoryPageSchema: z.ZodObject<{
2235
2235
  activity_id: z.ZodUUID;
2236
2236
  ended_at: z.ZodNullable<z.ZodISODateTime>;
2237
2237
  outcome: z.ZodEnum<{
2238
- completed: "completed";
2239
2238
  failed: "failed";
2240
2239
  canceled: "canceled";
2240
+ completed: "completed";
2241
2241
  interrupted: "interrupted";
2242
2242
  }>;
2243
2243
  }, z.core.$strip>, z.ZodObject<{
2244
2244
  type: z.ZodLiteral<"turn_terminal">;
2245
2245
  outcome: z.ZodEnum<{
2246
- completed: "completed";
2247
2246
  failed: "failed";
2248
2247
  canceled: "canceled";
2248
+ completed: "completed";
2249
2249
  interrupted: "interrupted";
2250
2250
  lost: "lost";
2251
2251
  }>;
@@ -2303,6 +2303,10 @@ declare const ExecutionProfileSchema: z.ZodObject<{
2303
2303
  budgetScopeIds: z.ZodArray<z.ZodUUID>;
2304
2304
  templateDigest: z.ZodString;
2305
2305
  credentialBindingId: z.ZodNullable<z.ZodUUID>;
2306
+ credentialPlacement: z.ZodOptional<z.ZodEnum<{
2307
+ exclusive: "exclusive";
2308
+ shared: "shared";
2309
+ }>>;
2306
2310
  }, z.core.$strict>;
2307
2311
  type ExecutionProfile = z.infer<typeof ExecutionProfileSchema>;
2308
2312
  declare const SessionCreateSchema: z.ZodObject<{
@@ -2317,8 +2321,8 @@ declare const SessionSchema: z.ZodObject<{
2317
2321
  profileRevision: z.ZodNumber;
2318
2322
  revision: z.ZodNumber;
2319
2323
  state: z.ZodEnum<{
2320
- failed: "failed";
2321
2324
  ready: "ready";
2325
+ failed: "failed";
2322
2326
  provisioning: "provisioning";
2323
2327
  suspended: "suspended";
2324
2328
  closed: "closed";
@@ -2443,9 +2447,9 @@ declare const RequestSchema: z.ZodUnion<readonly [z.ZodObject<{
2443
2447
  finalResponse: z.ZodNullable<z.ZodString>;
2444
2448
  state: z.ZodLiteral<"terminal">;
2445
2449
  outcome: z.ZodEnum<{
2446
- completed: "completed";
2447
2450
  failed: "failed";
2448
2451
  canceled: "canceled";
2452
+ completed: "completed";
2449
2453
  interrupted: "interrupted";
2450
2454
  lost: "lost";
2451
2455
  }>;
@@ -2589,6 +2593,10 @@ declare const managedSchemas: {
2589
2593
  budgetScopeIds: z.ZodArray<z.ZodUUID>;
2590
2594
  templateDigest: z.ZodString;
2591
2595
  credentialBindingId: z.ZodNullable<z.ZodUUID>;
2596
+ credentialPlacement: z.ZodOptional<z.ZodEnum<{
2597
+ exclusive: "exclusive";
2598
+ shared: "shared";
2599
+ }>>;
2592
2600
  }, z.core.$strict>;
2593
2601
  BudgetScopeGrant: z.ZodObject<{
2594
2602
  principalId: z.ZodUUID;
@@ -2613,8 +2621,8 @@ declare const managedSchemas: {
2613
2621
  profileRevision: z.ZodNumber;
2614
2622
  revision: z.ZodNumber;
2615
2623
  state: z.ZodEnum<{
2616
- failed: "failed";
2617
2624
  ready: "ready";
2625
+ failed: "failed";
2618
2626
  provisioning: "provisioning";
2619
2627
  suspended: "suspended";
2620
2628
  closed: "closed";
@@ -2649,8 +2657,8 @@ declare const managedSchemas: {
2649
2657
  sizeBytes: z.ZodNumber;
2650
2658
  }, z.core.$strict>;
2651
2659
  state: z.ZodEnum<{
2652
- expired: "expired";
2653
2660
  ready: "ready";
2661
+ expired: "expired";
2654
2662
  uploading: "uploading";
2655
2663
  rejected: "rejected";
2656
2664
  }>;
@@ -2859,9 +2867,9 @@ declare const managedSchemas: {
2859
2867
  finalResponse: z.ZodNullable<z.ZodString>;
2860
2868
  state: z.ZodLiteral<"terminal">;
2861
2869
  outcome: z.ZodEnum<{
2862
- completed: "completed";
2863
2870
  failed: "failed";
2864
2871
  canceled: "canceled";
2872
+ completed: "completed";
2865
2873
  interrupted: "interrupted";
2866
2874
  lost: "lost";
2867
2875
  }>;
@@ -3007,8 +3015,8 @@ declare const managedSchemas: {
3007
3015
  profileRevision: z.ZodNumber;
3008
3016
  revision: z.ZodNumber;
3009
3017
  state: z.ZodEnum<{
3010
- failed: "failed";
3011
3018
  ready: "ready";
3019
+ failed: "failed";
3012
3020
  provisioning: "provisioning";
3013
3021
  suspended: "suspended";
3014
3022
  closed: "closed";
@@ -3119,9 +3127,9 @@ declare const managedSchemas: {
3119
3127
  finalResponse: z.ZodNullable<z.ZodString>;
3120
3128
  state: z.ZodLiteral<"terminal">;
3121
3129
  outcome: z.ZodEnum<{
3122
- completed: "completed";
3123
3130
  failed: "failed";
3124
3131
  canceled: "canceled";
3132
+ completed: "completed";
3125
3133
  interrupted: "interrupted";
3126
3134
  lost: "lost";
3127
3135
  }>;
@@ -3435,9 +3443,9 @@ declare const managedSchemas: {
3435
3443
  }, z.core.$strip>>;
3436
3444
  status: z.ZodEnum<{
3437
3445
  message: "message";
3438
- completed: "completed";
3439
3446
  failed: "failed";
3440
3447
  canceled: "canceled";
3448
+ completed: "completed";
3441
3449
  interrupted: "interrupted";
3442
3450
  lost: "lost";
3443
3451
  legacy: "legacy";
@@ -3460,11 +3468,11 @@ declare const managedSchemas: {
3460
3468
  call_id: z.ZodString;
3461
3469
  name: z.ZodString;
3462
3470
  status: z.ZodEnum<{
3471
+ failed: "failed";
3463
3472
  pending: "pending";
3464
3473
  running: "running";
3465
- completed: "completed";
3466
- failed: "failed";
3467
3474
  canceled: "canceled";
3475
+ completed: "completed";
3468
3476
  }>;
3469
3477
  input: z.ZodJSONSchema;
3470
3478
  output: z.ZodOptional<z.ZodJSONSchema>;
@@ -3509,9 +3517,9 @@ declare const managedSchemas: {
3509
3517
  type: z.ZodLiteral<"activity_started">;
3510
3518
  activity_id: z.ZodUUID;
3511
3519
  kind: z.ZodEnum<{
3520
+ workspace: "workspace";
3512
3521
  tool: "tool";
3513
3522
  attachment: "attachment";
3514
- workspace: "workspace";
3515
3523
  retrieval: "retrieval";
3516
3524
  }>;
3517
3525
  label: z.ZodString;
@@ -3523,17 +3531,17 @@ declare const managedSchemas: {
3523
3531
  activity_id: z.ZodUUID;
3524
3532
  ended_at: z.ZodNullable<z.ZodISODateTime>;
3525
3533
  outcome: z.ZodEnum<{
3526
- completed: "completed";
3527
3534
  failed: "failed";
3528
3535
  canceled: "canceled";
3536
+ completed: "completed";
3529
3537
  interrupted: "interrupted";
3530
3538
  }>;
3531
3539
  }, z.core.$strip>, z.ZodObject<{
3532
3540
  type: z.ZodLiteral<"turn_terminal">;
3533
3541
  outcome: z.ZodEnum<{
3534
- completed: "completed";
3535
3542
  failed: "failed";
3536
3543
  canceled: "canceled";
3544
+ completed: "completed";
3537
3545
  interrupted: "interrupted";
3538
3546
  lost: "lost";
3539
3547
  }>;
@@ -3581,11 +3589,11 @@ declare const managedSchemas: {
3581
3589
  call_id: z.ZodString;
3582
3590
  name: z.ZodString;
3583
3591
  status: z.ZodEnum<{
3592
+ failed: "failed";
3584
3593
  pending: "pending";
3585
3594
  running: "running";
3586
- completed: "completed";
3587
- failed: "failed";
3588
3595
  canceled: "canceled";
3596
+ completed: "completed";
3589
3597
  }>;
3590
3598
  input: z.ZodJSONSchema;
3591
3599
  output: z.ZodOptional<z.ZodJSONSchema>;
@@ -3628,9 +3636,9 @@ declare const managedSchemas: {
3628
3636
  type: z.ZodLiteral<"activity_started">;
3629
3637
  activity_id: z.ZodUUID;
3630
3638
  kind: z.ZodEnum<{
3639
+ workspace: "workspace";
3631
3640
  tool: "tool";
3632
3641
  attachment: "attachment";
3633
- workspace: "workspace";
3634
3642
  retrieval: "retrieval";
3635
3643
  }>;
3636
3644
  label: z.ZodString;
@@ -3642,17 +3650,17 @@ declare const managedSchemas: {
3642
3650
  activity_id: z.ZodUUID;
3643
3651
  ended_at: z.ZodNullable<z.ZodISODateTime>;
3644
3652
  outcome: z.ZodEnum<{
3645
- completed: "completed";
3646
3653
  failed: "failed";
3647
3654
  canceled: "canceled";
3655
+ completed: "completed";
3648
3656
  interrupted: "interrupted";
3649
3657
  }>;
3650
3658
  }, z.core.$strip>, z.ZodObject<{
3651
3659
  type: z.ZodLiteral<"turn_terminal">;
3652
3660
  outcome: z.ZodEnum<{
3653
- completed: "completed";
3654
3661
  failed: "failed";
3655
3662
  canceled: "canceled";
3663
+ completed: "completed";
3656
3664
  interrupted: "interrupted";
3657
3665
  lost: "lost";
3658
3666
  }>;
@@ -3666,9 +3674,9 @@ declare const managedSchemas: {
3666
3674
  turn_id: z.ZodNullable<z.ZodUUID>;
3667
3675
  status: z.ZodEnum<{
3668
3676
  message: "message";
3669
- completed: "completed";
3670
3677
  failed: "failed";
3671
3678
  canceled: "canceled";
3679
+ completed: "completed";
3672
3680
  interrupted: "interrupted";
3673
3681
  lost: "lost";
3674
3682
  legacy: "legacy";
@@ -3710,8 +3718,8 @@ declare const managedSchemas: {
3710
3718
  attemptId: z.ZodNullable<z.ZodUUID>;
3711
3719
  state: z.ZodEnum<{
3712
3720
  running: "running";
3713
- lost: "lost";
3714
3721
  starting: "starting";
3722
+ lost: "lost";
3715
3723
  exited: "exited";
3716
3724
  stopped: "stopped";
3717
3725
  }>;
@@ -3903,11 +3911,11 @@ declare const TemplateManifestBaseSchema: z.ZodObject<{
3903
3911
  healthPath: z.ZodDefault<z.ZodString>;
3904
3912
  routes: z.ZodArray<z.ZodObject<{
3905
3913
  method: z.ZodEnum<{
3914
+ POST: "POST";
3915
+ PATCH: "PATCH";
3906
3916
  PUT: "PUT";
3907
3917
  DELETE: "DELETE";
3908
- POST: "POST";
3909
3918
  GET: "GET";
3910
- PATCH: "PATCH";
3911
3919
  }>;
3912
3920
  path: z.ZodString;
3913
3921
  query: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3976,7 +3984,7 @@ declare function sessionTemplate(input: {
3976
3984
  required: boolean;
3977
3985
  healthPath: string;
3978
3986
  routes: {
3979
- method: "PUT" | "DELETE" | "POST" | "GET" | "PATCH";
3987
+ method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
3980
3988
  path: string;
3981
3989
  query: string[];
3982
3990
  responseMode: "buffered" | "stream";
@@ -4337,8 +4345,8 @@ declare const WorkspaceRequestSchema: z.ZodObject<{
4337
4345
  sizeBytes: z.ZodNumber;
4338
4346
  digest: z.ZodString;
4339
4347
  visibility: z.ZodEnum<{
4340
- expired: "expired";
4341
4348
  ready: "ready";
4349
+ expired: "expired";
4342
4350
  unavailable: "unavailable";
4343
4351
  }>;
4344
4352
  }, z.core.$strict>>;
@@ -4385,8 +4393,8 @@ declare const WorkloadAcceptanceSchema: z.ZodObject<{
4385
4393
  sizeBytes: z.ZodNumber;
4386
4394
  digest: z.ZodString;
4387
4395
  visibility: z.ZodEnum<{
4388
- expired: "expired";
4389
4396
  ready: "ready";
4397
+ expired: "expired";
4390
4398
  unavailable: "unavailable";
4391
4399
  }>;
4392
4400
  }, z.core.$strict>>;
@@ -4444,8 +4452,8 @@ declare const ExecutionRecordSchema: z.ZodObject<{
4444
4452
  sizeBytes: z.ZodNumber;
4445
4453
  digest: z.ZodString;
4446
4454
  visibility: z.ZodEnum<{
4447
- expired: "expired";
4448
4455
  ready: "ready";
4456
+ expired: "expired";
4449
4457
  unavailable: "unavailable";
4450
4458
  }>;
4451
4459
  }, z.core.$strict>>;
@@ -4655,6 +4663,7 @@ declare class ManagedAuthorityApi {
4655
4663
  budgetScopeIds: string[];
4656
4664
  templateDigest: string;
4657
4665
  credentialBindingId: string | null;
4666
+ credentialPlacement?: "exclusive" | "shared" | undefined;
4658
4667
  }>;
4659
4668
  putCredentialBinding(binding: CredentialBinding, options?: RequestOptions): Promise<void>;
4660
4669
  }
@@ -4678,7 +4687,7 @@ declare class CheckpointsApi {
4678
4687
  }, options?: RequestOptions): Promise<Page<{
4679
4688
  id: string;
4680
4689
  workspace_id: string;
4681
- state: "deleted" | "failed" | "ready" | "creating" | "deleting";
4690
+ state: "creating" | "ready" | "failed" | "deleting" | "deleted";
4682
4691
  reason_code: string | null;
4683
4692
  template: {
4684
4693
  name: string;
@@ -4699,7 +4708,7 @@ declare class CheckpointsApi {
4699
4708
  get(id: string, options?: RequestOptions): Promise<{
4700
4709
  id: string;
4701
4710
  workspace_id: string;
4702
- state: "deleted" | "failed" | "ready" | "creating" | "deleting";
4711
+ state: "creating" | "ready" | "failed" | "deleting" | "deleted";
4703
4712
  reason_code: string | null;
4704
4713
  template: {
4705
4714
  name: string;
@@ -4720,7 +4729,7 @@ declare class CheckpointsApi {
4720
4729
  verify(id: string, key: string, options?: RequestOptions): Promise<{
4721
4730
  id: string;
4722
4731
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
4723
- state: "pending" | "running" | "failed" | "succeeded";
4732
+ state: "failed" | "pending" | "running" | "succeeded";
4724
4733
  workspace_id: string | null;
4725
4734
  checkpoint_id: string | null;
4726
4735
  result_workspace_id: string | null;
@@ -4732,7 +4741,7 @@ declare class CheckpointsApi {
4732
4741
  delete(id: string, key: string, options?: RequestOptions): Promise<{
4733
4742
  id: string;
4734
4743
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
4735
- state: "pending" | "running" | "failed" | "succeeded";
4744
+ state: "failed" | "pending" | "running" | "succeeded";
4736
4745
  workspace_id: string | null;
4737
4746
  checkpoint_id: string | null;
4738
4747
  result_workspace_id: string | null;
@@ -4750,14 +4759,14 @@ declare class CheckpointsApi {
4750
4759
  version: string;
4751
4760
  digest: string;
4752
4761
  };
4753
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
4762
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
4754
4763
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
4755
4764
  agent_state: "unknown" | "running" | "stable";
4756
4765
  change_cursor: number;
4757
4766
  provider_kind: string | null;
4758
4767
  provisioning_mode: "cold" | "warm" | null;
4759
4768
  network: {
4760
- state: "ready" | "disabled" | "starting" | "degraded";
4769
+ state: "disabled" | "ready" | "starting" | "degraded";
4761
4770
  };
4762
4771
  health: Record<string, string>;
4763
4772
  created_at: string;
@@ -4799,7 +4808,7 @@ declare class CheckpointsApi {
4799
4808
  operation: {
4800
4809
  id: string;
4801
4810
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
4802
- state: "pending" | "running" | "failed" | "succeeded";
4811
+ state: "failed" | "pending" | "running" | "succeeded";
4803
4812
  workspace_id: string | null;
4804
4813
  checkpoint_id: string | null;
4805
4814
  result_workspace_id: string | null;
@@ -4817,7 +4826,7 @@ declare class OperationsApi {
4817
4826
  get(id: string, options?: RequestOptions): Promise<{
4818
4827
  id: string;
4819
4828
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
4820
- state: "pending" | "running" | "failed" | "succeeded";
4829
+ state: "failed" | "pending" | "running" | "succeeded";
4821
4830
  workspace_id: string | null;
4822
4831
  checkpoint_id: string | null;
4823
4832
  result_workspace_id: string | null;
@@ -4871,7 +4880,7 @@ declare class ConversationsApi {
4871
4880
  } | {
4872
4881
  type: "activity_started";
4873
4882
  activity_id: string;
4874
- kind: "tool" | "attachment" | "workspace" | "retrieval";
4883
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
4875
4884
  label: string;
4876
4885
  started_at: string | null;
4877
4886
  action?: string | undefined;
@@ -4880,10 +4889,10 @@ declare class ConversationsApi {
4880
4889
  type: "activity_finished";
4881
4890
  activity_id: string;
4882
4891
  ended_at: string | null;
4883
- outcome: "completed" | "failed" | "canceled" | "interrupted";
4892
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
4884
4893
  } | {
4885
4894
  type: "turn_terminal";
4886
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
4895
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
4887
4896
  reason?: string | undefined;
4888
4897
  } | undefined;
4889
4898
  } | null;
@@ -4894,7 +4903,7 @@ declare class ConversationsApi {
4894
4903
  type: "tool";
4895
4904
  call_id: string;
4896
4905
  name: string;
4897
- status: "pending" | "running" | "completed" | "failed" | "canceled";
4906
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
4898
4907
  input: z.core.util.JSONType;
4899
4908
  output?: z.core.util.JSONType | undefined;
4900
4909
  output_text?: string | undefined;
@@ -4930,7 +4939,7 @@ declare class ConversationsApi {
4930
4939
  conversation_id: string | null;
4931
4940
  workspace_id: string;
4932
4941
  legacy: boolean;
4933
- status: "deleted" | "retained" | "expired";
4942
+ status: "deleted" | "expired" | "retained";
4934
4943
  message_count: number;
4935
4944
  turn_count: number;
4936
4945
  last_activity_at: string;
@@ -4941,7 +4950,7 @@ declare class ConversationsApi {
4941
4950
  conversation_id: string | null;
4942
4951
  workspace_id: string;
4943
4952
  legacy: boolean;
4944
- status: "deleted" | "retained" | "expired";
4953
+ status: "deleted" | "expired" | "retained";
4945
4954
  message_count: number;
4946
4955
  turn_count: number;
4947
4956
  last_activity_at: string;
@@ -4979,7 +4988,7 @@ declare class ConversationsApi {
4979
4988
  } | {
4980
4989
  type: "activity_started";
4981
4990
  activity_id: string;
4982
- kind: "tool" | "attachment" | "workspace" | "retrieval";
4991
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
4983
4992
  label: string;
4984
4993
  started_at: string | null;
4985
4994
  action?: string | undefined;
@@ -4988,10 +4997,10 @@ declare class ConversationsApi {
4988
4997
  type: "activity_finished";
4989
4998
  activity_id: string;
4990
4999
  ended_at: string | null;
4991
- outcome: "completed" | "failed" | "canceled" | "interrupted";
5000
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
4992
5001
  } | {
4993
5002
  type: "turn_terminal";
4994
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
5003
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
4995
5004
  reason?: string | undefined;
4996
5005
  } | undefined;
4997
5006
  } | null;
@@ -5002,7 +5011,7 @@ declare class ConversationsApi {
5002
5011
  type: "tool";
5003
5012
  call_id: string;
5004
5013
  name: string;
5005
- status: "pending" | "running" | "completed" | "failed" | "canceled";
5014
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
5006
5015
  input: z.core.util.JSONType;
5007
5016
  output?: z.core.util.JSONType | undefined;
5008
5017
  output_text?: string | undefined;
@@ -5056,7 +5065,7 @@ declare class ConversationsApi {
5056
5065
  } | {
5057
5066
  type: "activity_started";
5058
5067
  activity_id: string;
5059
- kind: "tool" | "attachment" | "workspace" | "retrieval";
5068
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
5060
5069
  label: string;
5061
5070
  started_at: string | null;
5062
5071
  action?: string | undefined;
@@ -5065,10 +5074,10 @@ declare class ConversationsApi {
5065
5074
  type: "activity_finished";
5066
5075
  activity_id: string;
5067
5076
  ended_at: string | null;
5068
- outcome: "completed" | "failed" | "canceled" | "interrupted";
5077
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
5069
5078
  } | {
5070
5079
  type: "turn_terminal";
5071
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
5080
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
5072
5081
  reason?: string | undefined;
5073
5082
  } | undefined;
5074
5083
  } | null;
@@ -5079,7 +5088,7 @@ declare class ConversationsApi {
5079
5088
  type: "tool";
5080
5089
  call_id: string;
5081
5090
  name: string;
5082
- status: "pending" | "running" | "completed" | "failed" | "canceled";
5091
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
5083
5092
  input: z.core.util.JSONType;
5084
5093
  output?: z.core.util.JSONType | undefined;
5085
5094
  output_text?: string | undefined;
@@ -5101,7 +5110,7 @@ declare class ConversationsApi {
5101
5110
  type: "committed";
5102
5111
  conversation_id: string | null;
5103
5112
  turn_id: string | null;
5104
- status: "message" | "completed" | "failed" | "canceled" | "interrupted" | "lost" | "legacy";
5113
+ status: "message" | "failed" | "canceled" | "completed" | "interrupted" | "lost" | "legacy";
5105
5114
  last_seq: number;
5106
5115
  }, void, any>;
5107
5116
  open(id: string, options?: RequestOptions & {
@@ -5137,7 +5146,7 @@ declare class ConversationsApi {
5137
5146
  } | {
5138
5147
  type: "activity_started";
5139
5148
  activity_id: string;
5140
- kind: "tool" | "attachment" | "workspace" | "retrieval";
5149
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
5141
5150
  label: string;
5142
5151
  started_at: string | null;
5143
5152
  action?: string | undefined;
@@ -5146,10 +5155,10 @@ declare class ConversationsApi {
5146
5155
  type: "activity_finished";
5147
5156
  activity_id: string;
5148
5157
  ended_at: string | null;
5149
- outcome: "completed" | "failed" | "canceled" | "interrupted";
5158
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
5150
5159
  } | {
5151
5160
  type: "turn_terminal";
5152
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
5161
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
5153
5162
  reason?: string | undefined;
5154
5163
  } | undefined;
5155
5164
  } | null;
@@ -5160,7 +5169,7 @@ declare class ConversationsApi {
5160
5169
  type: "tool";
5161
5170
  call_id: string;
5162
5171
  name: string;
5163
- status: "pending" | "running" | "completed" | "failed" | "canceled";
5172
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
5164
5173
  input: z.core.util.JSONType;
5165
5174
  output?: z.core.util.JSONType | undefined;
5166
5175
  output_text?: string | undefined;
@@ -5182,7 +5191,7 @@ declare class ConversationsApi {
5182
5191
  type: "committed";
5183
5192
  conversation_id: string | null;
5184
5193
  turn_id: string | null;
5185
- status: "message" | "completed" | "failed" | "canceled" | "interrupted" | "lost" | "legacy";
5194
+ status: "message" | "failed" | "canceled" | "completed" | "interrupted" | "lost" | "legacy";
5186
5195
  last_seq: number;
5187
5196
  })[];
5188
5197
  }>;
@@ -5217,7 +5226,7 @@ declare class WorkspaceRequestsApi {
5217
5226
  mediaType: string;
5218
5227
  sizeBytes: number;
5219
5228
  digest: string;
5220
- visibility: "expired" | "ready" | "unavailable";
5229
+ visibility: "ready" | "expired" | "unavailable";
5221
5230
  storageOwnerId?: string | undefined;
5222
5231
  }[];
5223
5232
  };
@@ -5296,7 +5305,7 @@ declare class WorkspaceRequestsApi {
5296
5305
  mediaType: string;
5297
5306
  sizeBytes: number;
5298
5307
  digest: string;
5299
- visibility: "expired" | "ready" | "unavailable";
5308
+ visibility: "ready" | "expired" | "unavailable";
5300
5309
  storageOwnerId?: string | undefined;
5301
5310
  }[];
5302
5311
  };
@@ -5380,7 +5389,7 @@ declare class WorkspaceRequestsApi {
5380
5389
  mediaType: string;
5381
5390
  sizeBytes: number;
5382
5391
  digest: string;
5383
- visibility: "expired" | "ready" | "unavailable";
5392
+ visibility: "ready" | "expired" | "unavailable";
5384
5393
  storageOwnerId?: string | undefined;
5385
5394
  }[];
5386
5395
  };
@@ -5461,7 +5470,7 @@ declare class WorkspaceRequestsApi {
5461
5470
  mediaType: string;
5462
5471
  sizeBytes: number;
5463
5472
  digest: string;
5464
- visibility: "expired" | "ready" | "unavailable";
5473
+ visibility: "ready" | "expired" | "unavailable";
5465
5474
  storageOwnerId?: string | undefined;
5466
5475
  }[];
5467
5476
  };
@@ -5667,7 +5676,7 @@ declare class RecoveryApi {
5667
5676
  purge(principalId: string, workspaceId: string, executionKey: string, options?: RequestOptions): Promise<{
5668
5677
  id: string;
5669
5678
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
5670
- state: "pending" | "running" | "failed" | "succeeded";
5679
+ state: "failed" | "pending" | "running" | "succeeded";
5671
5680
  workspace_id: string | null;
5672
5681
  checkpoint_id: string | null;
5673
5682
  result_workspace_id: string | null;
@@ -5679,7 +5688,7 @@ declare class RecoveryApi {
5679
5688
  operation(principalId: string, operationId: string, options?: RequestOptions): Promise<{
5680
5689
  id: string;
5681
5690
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
5682
- state: "pending" | "running" | "failed" | "succeeded";
5691
+ state: "failed" | "pending" | "running" | "succeeded";
5683
5692
  workspace_id: string | null;
5684
5693
  checkpoint_id: string | null;
5685
5694
  result_workspace_id: string | null;
@@ -5785,7 +5794,7 @@ declare class SessionFilesApi {
5785
5794
  mediaType: string;
5786
5795
  sizeBytes: number;
5787
5796
  };
5788
- state: "expired" | "ready" | "uploading" | "rejected";
5797
+ state: "ready" | "expired" | "uploading" | "rejected";
5789
5798
  expiresAt: string;
5790
5799
  }>;
5791
5800
  upload(sessionId: string, inputId: string, bytes: Uint8Array, options?: RequestOptions): Promise<{
@@ -5798,7 +5807,7 @@ declare class SessionFilesApi {
5798
5807
  mediaType: string;
5799
5808
  sizeBytes: number;
5800
5809
  };
5801
- state: "expired" | "ready" | "uploading" | "rejected";
5810
+ state: "ready" | "expired" | "uploading" | "rejected";
5802
5811
  expiresAt: string;
5803
5812
  }>;
5804
5813
  put(sessionId: string, file: {
@@ -5816,7 +5825,7 @@ declare class SessionFilesApi {
5816
5825
  mediaType: string;
5817
5826
  sizeBytes: number;
5818
5827
  };
5819
- state: "expired" | "ready" | "uploading" | "rejected";
5828
+ state: "ready" | "expired" | "uploading" | "rejected";
5820
5829
  expiresAt: string;
5821
5830
  }>;
5822
5831
  get(sessionId: string, inputId: string, options?: RequestOptions): Promise<{
@@ -5829,7 +5838,7 @@ declare class SessionFilesApi {
5829
5838
  mediaType: string;
5830
5839
  sizeBytes: number;
5831
5840
  };
5832
- state: "expired" | "ready" | "uploading" | "rejected";
5841
+ state: "ready" | "expired" | "uploading" | "rejected";
5833
5842
  expiresAt: string;
5834
5843
  }>;
5835
5844
  exports(sessionId: string, requestId: string, options?: RequestOptions): Promise<{
@@ -5917,7 +5926,7 @@ declare class SessionRequestsApi {
5917
5926
  };
5918
5927
  finalResponse: string | null;
5919
5928
  state: "terminal";
5920
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
5929
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
5921
5930
  } | {
5922
5931
  sessionId: string;
5923
5932
  requestId: string;
@@ -6044,7 +6053,7 @@ declare class SessionRequestsApi {
6044
6053
  };
6045
6054
  finalResponse: string | null;
6046
6055
  state: "terminal";
6047
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
6056
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
6048
6057
  } | {
6049
6058
  sessionId: string;
6050
6059
  requestId: string;
@@ -6205,7 +6214,7 @@ declare class SessionsApi {
6205
6214
  profileId: string;
6206
6215
  profileRevision: number;
6207
6216
  revision: number;
6208
- state: "failed" | "ready" | "provisioning" | "suspended" | "closed";
6217
+ state: "ready" | "failed" | "provisioning" | "suspended" | "closed";
6209
6218
  reasonCode: string | null;
6210
6219
  createdAt: string;
6211
6220
  updatedAt: string;
@@ -6215,7 +6224,7 @@ declare class SessionsApi {
6215
6224
  profileId: string;
6216
6225
  profileRevision: number;
6217
6226
  revision: number;
6218
- state: "failed" | "ready" | "provisioning" | "suspended" | "closed";
6227
+ state: "ready" | "failed" | "provisioning" | "suspended" | "closed";
6219
6228
  reasonCode: string | null;
6220
6229
  createdAt: string;
6221
6230
  updatedAt: string;
@@ -6225,7 +6234,7 @@ declare class SessionsApi {
6225
6234
  profileId: string;
6226
6235
  profileRevision: number;
6227
6236
  revision: number;
6228
- state: "failed" | "ready" | "provisioning" | "suspended" | "closed";
6237
+ state: "ready" | "failed" | "provisioning" | "suspended" | "closed";
6229
6238
  reasonCode: string | null;
6230
6239
  createdAt: string;
6231
6240
  updatedAt: string;
@@ -6264,7 +6273,7 @@ declare class SessionsApi {
6264
6273
  turn_id: string;
6265
6274
  request_fingerprint: string;
6266
6275
  } | null;
6267
- status: "message" | "completed" | "failed" | "canceled" | "interrupted" | "lost" | "legacy";
6276
+ status: "message" | "failed" | "canceled" | "completed" | "interrupted" | "lost" | "legacy";
6268
6277
  reason: string | null;
6269
6278
  messages: {
6270
6279
  message_id: string;
@@ -6293,7 +6302,7 @@ declare class SessionsApi {
6293
6302
  } | {
6294
6303
  type: "activity_started";
6295
6304
  activity_id: string;
6296
- kind: "tool" | "attachment" | "workspace" | "retrieval";
6305
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
6297
6306
  label: string;
6298
6307
  started_at: string | null;
6299
6308
  action?: string | undefined;
@@ -6302,10 +6311,10 @@ declare class SessionsApi {
6302
6311
  type: "activity_finished";
6303
6312
  activity_id: string;
6304
6313
  ended_at: string | null;
6305
- outcome: "completed" | "failed" | "canceled" | "interrupted";
6314
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
6306
6315
  } | {
6307
6316
  type: "turn_terminal";
6308
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
6317
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
6309
6318
  reason?: string | undefined;
6310
6319
  } | undefined;
6311
6320
  } | null;
@@ -6316,7 +6325,7 @@ declare class SessionsApi {
6316
6325
  type: "tool";
6317
6326
  call_id: string;
6318
6327
  name: string;
6319
- status: "pending" | "running" | "completed" | "failed" | "canceled";
6328
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
6320
6329
  input: z.core.util.JSONType;
6321
6330
  output?: z.core.util.JSONType | undefined;
6322
6331
  output_text?: string | undefined;
@@ -6363,7 +6372,7 @@ declare class SessionsApi {
6363
6372
  turn_id: string;
6364
6373
  request_fingerprint: string;
6365
6374
  } | null;
6366
- status: "message" | "completed" | "failed" | "canceled" | "interrupted" | "lost" | "legacy";
6375
+ status: "message" | "failed" | "canceled" | "completed" | "interrupted" | "lost" | "legacy";
6367
6376
  reason: string | null;
6368
6377
  messages: {
6369
6378
  message_id: string;
@@ -6392,7 +6401,7 @@ declare class SessionsApi {
6392
6401
  } | {
6393
6402
  type: "activity_started";
6394
6403
  activity_id: string;
6395
- kind: "tool" | "attachment" | "workspace" | "retrieval";
6404
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
6396
6405
  label: string;
6397
6406
  started_at: string | null;
6398
6407
  action?: string | undefined;
@@ -6401,10 +6410,10 @@ declare class SessionsApi {
6401
6410
  type: "activity_finished";
6402
6411
  activity_id: string;
6403
6412
  ended_at: string | null;
6404
- outcome: "completed" | "failed" | "canceled" | "interrupted";
6413
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
6405
6414
  } | {
6406
6415
  type: "turn_terminal";
6407
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
6416
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
6408
6417
  reason?: string | undefined;
6409
6418
  } | undefined;
6410
6419
  } | null;
@@ -6415,7 +6424,7 @@ declare class SessionsApi {
6415
6424
  type: "tool";
6416
6425
  call_id: string;
6417
6426
  name: string;
6418
- status: "pending" | "running" | "completed" | "failed" | "canceled";
6427
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
6419
6428
  input: z.core.util.JSONType;
6420
6429
  output?: z.core.util.JSONType | undefined;
6421
6430
  output_text?: string | undefined;
@@ -6464,7 +6473,7 @@ declare class SessionsApi {
6464
6473
  profileId: string;
6465
6474
  profileRevision: number;
6466
6475
  revision: number;
6467
- state: "failed" | "ready" | "provisioning" | "suspended" | "closed";
6476
+ state: "ready" | "failed" | "provisioning" | "suspended" | "closed";
6468
6477
  reasonCode: string | null;
6469
6478
  createdAt: string;
6470
6479
  updatedAt: string;
@@ -6541,7 +6550,7 @@ declare class SessionsApi {
6541
6550
  };
6542
6551
  finalResponse: string | null;
6543
6552
  state: "terminal";
6544
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
6553
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
6545
6554
  } | {
6546
6555
  sessionId: string;
6547
6556
  requestId: string;
@@ -6661,7 +6670,7 @@ declare class SessionsApi {
6661
6670
  } | {
6662
6671
  type: "activity_started";
6663
6672
  activity_id: string;
6664
- kind: "tool" | "attachment" | "workspace" | "retrieval";
6673
+ kind: "workspace" | "tool" | "attachment" | "retrieval";
6665
6674
  label: string;
6666
6675
  started_at: string | null;
6667
6676
  action?: string | undefined;
@@ -6670,10 +6679,10 @@ declare class SessionsApi {
6670
6679
  type: "activity_finished";
6671
6680
  activity_id: string;
6672
6681
  ended_at: string | null;
6673
- outcome: "completed" | "failed" | "canceled" | "interrupted";
6682
+ outcome: "failed" | "canceled" | "completed" | "interrupted";
6674
6683
  } | {
6675
6684
  type: "turn_terminal";
6676
- outcome: "completed" | "failed" | "canceled" | "interrupted" | "lost";
6685
+ outcome: "failed" | "canceled" | "completed" | "interrupted" | "lost";
6677
6686
  reason?: string | undefined;
6678
6687
  } | undefined;
6679
6688
  } | null;
@@ -6684,7 +6693,7 @@ declare class SessionsApi {
6684
6693
  type: "tool";
6685
6694
  call_id: string;
6686
6695
  name: string;
6687
- status: "pending" | "running" | "completed" | "failed" | "canceled";
6696
+ status: "failed" | "pending" | "running" | "canceled" | "completed";
6688
6697
  input: z.core.util.JSONType;
6689
6698
  output?: z.core.util.JSONType | undefined;
6690
6699
  output_text?: string | undefined;
@@ -6706,7 +6715,7 @@ declare class SessionsApi {
6706
6715
  type: "committed";
6707
6716
  conversation_id: string | null;
6708
6717
  turn_id: string | null;
6709
- status: "message" | "completed" | "failed" | "canceled" | "interrupted" | "lost" | "legacy";
6718
+ status: "message" | "failed" | "canceled" | "completed" | "interrupted" | "lost" | "legacy";
6710
6719
  last_seq: number;
6711
6720
  })[];
6712
6721
  }>;
@@ -6819,14 +6828,14 @@ declare class WorkspacesApi {
6819
6828
  version: string;
6820
6829
  digest: string;
6821
6830
  };
6822
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
6831
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
6823
6832
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
6824
6833
  agent_state: "unknown" | "running" | "stable";
6825
6834
  change_cursor: number;
6826
6835
  provider_kind: string | null;
6827
6836
  provisioning_mode: "cold" | "warm" | null;
6828
6837
  network: {
6829
- state: "ready" | "disabled" | "starting" | "degraded";
6838
+ state: "disabled" | "ready" | "starting" | "degraded";
6830
6839
  };
6831
6840
  health: Record<string, string>;
6832
6841
  created_at: string;
@@ -6873,14 +6882,14 @@ declare class WorkspacesApi {
6873
6882
  version: string;
6874
6883
  digest: string;
6875
6884
  };
6876
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
6885
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
6877
6886
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
6878
6887
  agent_state: "unknown" | "running" | "stable";
6879
6888
  change_cursor: number;
6880
6889
  provider_kind: string | null;
6881
6890
  provisioning_mode: "cold" | "warm" | null;
6882
6891
  network: {
6883
- state: "ready" | "disabled" | "starting" | "degraded";
6892
+ state: "disabled" | "ready" | "starting" | "degraded";
6884
6893
  };
6885
6894
  health: Record<string, string>;
6886
6895
  created_at: string;
@@ -6927,14 +6936,14 @@ declare class WorkspacesApi {
6927
6936
  version: string;
6928
6937
  digest: string;
6929
6938
  };
6930
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
6939
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
6931
6940
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
6932
6941
  agent_state: "unknown" | "running" | "stable";
6933
6942
  change_cursor: number;
6934
6943
  provider_kind: string | null;
6935
6944
  provisioning_mode: "cold" | "warm" | null;
6936
6945
  network: {
6937
- state: "ready" | "disabled" | "starting" | "degraded";
6946
+ state: "disabled" | "ready" | "starting" | "degraded";
6938
6947
  };
6939
6948
  health: Record<string, string>;
6940
6949
  created_at: string;
@@ -6981,14 +6990,14 @@ declare class WorkspacesApi {
6981
6990
  version: string;
6982
6991
  digest: string;
6983
6992
  };
6984
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
6993
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
6985
6994
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
6986
6995
  agent_state: "unknown" | "running" | "stable";
6987
6996
  change_cursor: number;
6988
6997
  provider_kind: string | null;
6989
6998
  provisioning_mode: "cold" | "warm" | null;
6990
6999
  network: {
6991
- state: "ready" | "disabled" | "starting" | "degraded";
7000
+ state: "disabled" | "ready" | "starting" | "degraded";
6992
7001
  };
6993
7002
  health: Record<string, string>;
6994
7003
  created_at: string;
@@ -7035,14 +7044,14 @@ declare class WorkspacesApi {
7035
7044
  version: string;
7036
7045
  digest: string;
7037
7046
  };
7038
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
7047
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
7039
7048
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
7040
7049
  agent_state: "unknown" | "running" | "stable";
7041
7050
  change_cursor: number;
7042
7051
  provider_kind: string | null;
7043
7052
  provisioning_mode: "cold" | "warm" | null;
7044
7053
  network: {
7045
- state: "ready" | "disabled" | "starting" | "degraded";
7054
+ state: "disabled" | "ready" | "starting" | "degraded";
7046
7055
  };
7047
7056
  health: Record<string, string>;
7048
7057
  created_at: string;
@@ -7092,14 +7101,14 @@ declare class WorkspacesApi {
7092
7101
  version: string;
7093
7102
  digest: string;
7094
7103
  };
7095
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
7104
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
7096
7105
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
7097
7106
  agent_state: "unknown" | "running" | "stable";
7098
7107
  change_cursor: number;
7099
7108
  provider_kind: string | null;
7100
7109
  provisioning_mode: "cold" | "warm" | null;
7101
7110
  network: {
7102
- state: "ready" | "disabled" | "starting" | "degraded";
7111
+ state: "disabled" | "ready" | "starting" | "degraded";
7103
7112
  };
7104
7113
  health: Record<string, string>;
7105
7114
  created_at: string;
@@ -7149,14 +7158,14 @@ declare class WorkspacesApi {
7149
7158
  version: string;
7150
7159
  digest: string;
7151
7160
  };
7152
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
7161
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
7153
7162
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
7154
7163
  agent_state: "unknown" | "running" | "stable";
7155
7164
  change_cursor: number;
7156
7165
  provider_kind: string | null;
7157
7166
  provisioning_mode: "cold" | "warm" | null;
7158
7167
  network: {
7159
- state: "ready" | "disabled" | "starting" | "degraded";
7168
+ state: "disabled" | "ready" | "starting" | "degraded";
7160
7169
  };
7161
7170
  health: Record<string, string>;
7162
7171
  created_at: string;
@@ -7204,14 +7213,14 @@ declare class WorkspacesApi {
7204
7213
  version: string;
7205
7214
  digest: string;
7206
7215
  };
7207
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
7216
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
7208
7217
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
7209
7218
  agent_state: "unknown" | "running" | "stable";
7210
7219
  change_cursor: number;
7211
7220
  provider_kind: string | null;
7212
7221
  provisioning_mode: "cold" | "warm" | null;
7213
7222
  network: {
7214
- state: "ready" | "disabled" | "starting" | "degraded";
7223
+ state: "disabled" | "ready" | "starting" | "degraded";
7215
7224
  };
7216
7225
  health: Record<string, string>;
7217
7226
  created_at: string;
@@ -7253,7 +7262,7 @@ declare class WorkspacesApi {
7253
7262
  checkpoint: {
7254
7263
  id: string;
7255
7264
  workspace_id: string;
7256
- state: "deleted" | "failed" | "ready" | "creating" | "deleting";
7265
+ state: "creating" | "ready" | "failed" | "deleting" | "deleted";
7257
7266
  reason_code: string | null;
7258
7267
  template: {
7259
7268
  name: string;
@@ -7274,7 +7283,7 @@ declare class WorkspacesApi {
7274
7283
  operation: {
7275
7284
  id: string;
7276
7285
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
7277
- state: "pending" | "running" | "failed" | "succeeded";
7286
+ state: "failed" | "pending" | "running" | "succeeded";
7278
7287
  workspace_id: string | null;
7279
7288
  checkpoint_id: string | null;
7280
7289
  result_workspace_id: string | null;
@@ -7287,7 +7296,7 @@ declare class WorkspacesApi {
7287
7296
  purge(id: string, key: string, options?: RequestOptions): Promise<{
7288
7297
  id: string;
7289
7298
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
7290
- state: "pending" | "running" | "failed" | "succeeded";
7299
+ state: "failed" | "pending" | "running" | "succeeded";
7291
7300
  workspace_id: string | null;
7292
7301
  checkpoint_id: string | null;
7293
7302
  result_workspace_id: string | null;
@@ -7305,14 +7314,14 @@ declare class WorkspacesApi {
7305
7314
  version: string;
7306
7315
  digest: string;
7307
7316
  };
7308
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
7317
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
7309
7318
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
7310
7319
  agent_state: "unknown" | "running" | "stable";
7311
7320
  change_cursor: number;
7312
7321
  provider_kind: string | null;
7313
7322
  provisioning_mode: "cold" | "warm" | null;
7314
7323
  network: {
7315
- state: "ready" | "disabled" | "starting" | "degraded";
7324
+ state: "disabled" | "ready" | "starting" | "degraded";
7316
7325
  };
7317
7326
  health: Record<string, string>;
7318
7327
  created_at: string;
@@ -7354,7 +7363,7 @@ declare class WorkspacesApi {
7354
7363
  operation: {
7355
7364
  id: string;
7356
7365
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
7357
- state: "pending" | "running" | "failed" | "succeeded";
7366
+ state: "failed" | "pending" | "running" | "succeeded";
7358
7367
  workspace_id: string | null;
7359
7368
  checkpoint_id: string | null;
7360
7369
  result_workspace_id: string | null;
@@ -7373,14 +7382,14 @@ declare class WorkspacesApi {
7373
7382
  version: string;
7374
7383
  digest: string;
7375
7384
  };
7376
- state: "failed" | "canceled" | "expired" | "ready" | "provisioning" | "succeeded" | "queued" | "connected" | "preserving" | "terminating" | "preserved";
7385
+ state: "ready" | "failed" | "succeeded" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
7377
7386
  reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "launch_refused" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
7378
7387
  agent_state: "unknown" | "running" | "stable";
7379
7388
  change_cursor: number;
7380
7389
  provider_kind: string | null;
7381
7390
  provisioning_mode: "cold" | "warm" | null;
7382
7391
  network: {
7383
- state: "ready" | "disabled" | "starting" | "degraded";
7392
+ state: "disabled" | "ready" | "starting" | "degraded";
7384
7393
  };
7385
7394
  health: Record<string, string>;
7386
7395
  created_at: string;
@@ -7422,7 +7431,7 @@ declare class WorkspacesApi {
7422
7431
  operation: {
7423
7432
  id: string;
7424
7433
  kind: "preserve" | "restore" | "verify" | "delete" | "purge";
7425
- state: "pending" | "running" | "failed" | "succeeded";
7434
+ state: "failed" | "pending" | "running" | "succeeded";
7426
7435
  workspace_id: string | null;
7427
7436
  checkpoint_id: string | null;
7428
7437
  result_workspace_id: string | null;