@opengeni/contracts 0.7.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
@@ -5,6 +5,9 @@ declare const SessionStatus: z.ZodEnum<{
5
5
  running: "running";
6
6
  idle: "idle";
7
7
  requires_action: "requires_action";
8
+ recovering: "recovering";
9
+ waiting_capacity: "waiting_capacity";
10
+ paused: "paused";
8
11
  failed: "failed";
9
12
  cancelled: "cancelled";
10
13
  }>;
@@ -159,14 +162,22 @@ declare const Permission: z.ZodEnum<{
159
162
  "github:manage": "github:manage";
160
163
  "github:use": "github:use";
161
164
  "api_keys:manage": "api_keys:manage";
165
+ "connections:read": "connections:read";
166
+ "connections:write": "connections:write";
162
167
  "environments:manage": "environments:manage";
163
168
  "environments:use": "environments:use";
169
+ "variable-sets:manage": "variable-sets:manage";
170
+ "variable-sets:use": "variable-sets:use";
164
171
  "mcp_servers:attach": "mcp_servers:attach";
172
+ "toolspace:call": "toolspace:call";
165
173
  "goals:manage": "goals:manage";
166
174
  "enrollments:read": "enrollments:read";
167
175
  "enrollments:manage": "enrollments:manage";
176
+ "rigs:use": "rigs:use";
177
+ "rigs:manage": "rigs:manage";
168
178
  }>;
169
179
  type Permission = z.infer<typeof Permission>;
180
+ declare function prefixedMcpToolName(registryId: string, toolName: string): string;
170
181
  declare const ProductAccessMode: z.ZodEnum<{
171
182
  local: "local";
172
183
  configured: "configured";
@@ -213,10 +224,38 @@ declare const Workspace: z.ZodObject<{
213
224
  externalSource: z.ZodNullable<z.ZodString>;
214
225
  externalId: z.ZodNullable<z.ZodString>;
215
226
  agentInstructions: z.ZodNullable<z.ZodString>;
227
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
228
+ inferenceState: z.ZodEnum<{
229
+ paused: "paused";
230
+ active: "active";
231
+ }>;
232
+ inferenceGeneration: z.ZodNumber;
233
+ inferenceReason: z.ZodNullable<z.ZodString>;
234
+ inferenceChangedBy: z.ZodNullable<z.ZodString>;
235
+ inferenceChangedAt: z.ZodNullable<z.ZodString>;
236
+ defaultRigId: z.ZodNullable<z.ZodString>;
216
237
  createdAt: z.ZodString;
217
238
  updatedAt: z.ZodString;
218
239
  }, z.core.$strip>;
219
240
  type Workspace = z.infer<typeof Workspace>;
241
+ declare const WorkspaceSettingsSchema: z.ZodObject<{
242
+ memoryEnabled: z.ZodOptional<z.ZodBoolean>;
243
+ }, z.core.$loose>;
244
+ type WorkspaceSettings = z.infer<typeof WorkspaceSettingsSchema>;
245
+ declare function resolveWorkspaceMemoryEnabled(settings: unknown): boolean;
246
+ declare const UpdateWorkspaceSettingsRequest: z.ZodObject<{
247
+ memoryEnabled: z.ZodOptional<z.ZodBoolean>;
248
+ }, z.core.$loose>;
249
+ type UpdateWorkspaceSettingsRequest = z.infer<typeof UpdateWorkspaceSettingsRequest>;
250
+ declare const SetWorkspaceDefaultRigRequest: z.ZodObject<{
251
+ rigId: z.ZodNullable<z.ZodString>;
252
+ }, z.core.$strip>;
253
+ type SetWorkspaceDefaultRigRequest = z.infer<typeof SetWorkspaceDefaultRigRequest>;
254
+ declare const UpdateWorkspaceModelPolicyRequest: z.ZodObject<{
255
+ allowedProviders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
256
+ allowedModels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
257
+ }, z.core.$strip>;
258
+ type UpdateWorkspaceModelPolicyRequest = z.infer<typeof UpdateWorkspaceModelPolicyRequest>;
220
259
  declare const AccountGrant: z.ZodObject<{
221
260
  accountId: z.ZodString;
222
261
  subjectId: z.ZodString;
@@ -252,12 +291,19 @@ declare const AccountGrant: z.ZodObject<{
252
291
  "github:manage": "github:manage";
253
292
  "github:use": "github:use";
254
293
  "api_keys:manage": "api_keys:manage";
294
+ "connections:read": "connections:read";
295
+ "connections:write": "connections:write";
255
296
  "environments:manage": "environments:manage";
256
297
  "environments:use": "environments:use";
298
+ "variable-sets:manage": "variable-sets:manage";
299
+ "variable-sets:use": "variable-sets:use";
257
300
  "mcp_servers:attach": "mcp_servers:attach";
301
+ "toolspace:call": "toolspace:call";
258
302
  "goals:manage": "goals:manage";
259
303
  "enrollments:read": "enrollments:read";
260
304
  "enrollments:manage": "enrollments:manage";
305
+ "rigs:use": "rigs:use";
306
+ "rigs:manage": "rigs:manage";
261
307
  }>>;
262
308
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
263
309
  }, z.core.$strip>;
@@ -293,12 +339,19 @@ declare const AccessGrant: z.ZodObject<{
293
339
  "github:manage": "github:manage";
294
340
  "github:use": "github:use";
295
341
  "api_keys:manage": "api_keys:manage";
342
+ "connections:read": "connections:read";
343
+ "connections:write": "connections:write";
296
344
  "environments:manage": "environments:manage";
297
345
  "environments:use": "environments:use";
346
+ "variable-sets:manage": "variable-sets:manage";
347
+ "variable-sets:use": "variable-sets:use";
298
348
  "mcp_servers:attach": "mcp_servers:attach";
349
+ "toolspace:call": "toolspace:call";
299
350
  "goals:manage": "goals:manage";
300
351
  "enrollments:read": "enrollments:read";
301
352
  "enrollments:manage": "enrollments:manage";
353
+ "rigs:use": "rigs:use";
354
+ "rigs:manage": "rigs:manage";
302
355
  }>>;
303
356
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
304
357
  }, z.core.$strip>;
@@ -346,12 +399,19 @@ declare const AccessContext: z.ZodObject<{
346
399
  "github:manage": "github:manage";
347
400
  "github:use": "github:use";
348
401
  "api_keys:manage": "api_keys:manage";
402
+ "connections:read": "connections:read";
403
+ "connections:write": "connections:write";
349
404
  "environments:manage": "environments:manage";
350
405
  "environments:use": "environments:use";
406
+ "variable-sets:manage": "variable-sets:manage";
407
+ "variable-sets:use": "variable-sets:use";
351
408
  "mcp_servers:attach": "mcp_servers:attach";
409
+ "toolspace:call": "toolspace:call";
352
410
  "goals:manage": "goals:manage";
353
411
  "enrollments:read": "enrollments:read";
354
412
  "enrollments:manage": "enrollments:manage";
413
+ "rigs:use": "rigs:use";
414
+ "rigs:manage": "rigs:manage";
355
415
  }>>;
356
416
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
357
417
  }, z.core.$strip>>;
@@ -386,12 +446,19 @@ declare const AccessContext: z.ZodObject<{
386
446
  "github:manage": "github:manage";
387
447
  "github:use": "github:use";
388
448
  "api_keys:manage": "api_keys:manage";
449
+ "connections:read": "connections:read";
450
+ "connections:write": "connections:write";
389
451
  "environments:manage": "environments:manage";
390
452
  "environments:use": "environments:use";
453
+ "variable-sets:manage": "variable-sets:manage";
454
+ "variable-sets:use": "variable-sets:use";
391
455
  "mcp_servers:attach": "mcp_servers:attach";
456
+ "toolspace:call": "toolspace:call";
392
457
  "goals:manage": "goals:manage";
393
458
  "enrollments:read": "enrollments:read";
394
459
  "enrollments:manage": "enrollments:manage";
460
+ "rigs:use": "rigs:use";
461
+ "rigs:manage": "rigs:manage";
395
462
  }>>;
396
463
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
397
464
  }, z.core.$strip>>;
@@ -430,14 +497,22 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
430
497
  "github:manage": "github:manage";
431
498
  "github:use": "github:use";
432
499
  "api_keys:manage": "api_keys:manage";
500
+ "connections:read": "connections:read";
501
+ "connections:write": "connections:write";
433
502
  "environments:manage": "environments:manage";
434
503
  "environments:use": "environments:use";
504
+ "variable-sets:manage": "variable-sets:manage";
505
+ "variable-sets:use": "variable-sets:use";
435
506
  "mcp_servers:attach": "mcp_servers:attach";
507
+ "toolspace:call": "toolspace:call";
436
508
  "goals:manage": "goals:manage";
437
509
  "enrollments:read": "enrollments:read";
438
510
  "enrollments:manage": "enrollments:manage";
511
+ "rigs:use": "rigs:use";
512
+ "rigs:manage": "rigs:manage";
439
513
  }>>;
440
514
  sessionId: z.ZodOptional<z.ZodString>;
515
+ turnId: z.ZodOptional<z.ZodString>;
441
516
  exp: z.ZodNumber;
442
517
  }, z.core.$strip>;
443
518
  type DelegatedAccessTokenPayload = z.infer<typeof DelegatedAccessTokenPayload>;
@@ -561,12 +636,19 @@ declare const ApiKey: z.ZodObject<{
561
636
  "github:manage": "github:manage";
562
637
  "github:use": "github:use";
563
638
  "api_keys:manage": "api_keys:manage";
639
+ "connections:read": "connections:read";
640
+ "connections:write": "connections:write";
564
641
  "environments:manage": "environments:manage";
565
642
  "environments:use": "environments:use";
643
+ "variable-sets:manage": "variable-sets:manage";
644
+ "variable-sets:use": "variable-sets:use";
566
645
  "mcp_servers:attach": "mcp_servers:attach";
646
+ "toolspace:call": "toolspace:call";
567
647
  "goals:manage": "goals:manage";
568
648
  "enrollments:read": "enrollments:read";
569
649
  "enrollments:manage": "enrollments:manage";
650
+ "rigs:use": "rigs:use";
651
+ "rigs:manage": "rigs:manage";
570
652
  }>>;
571
653
  expiresAt: z.ZodNullable<z.ZodString>;
572
654
  revokedAt: z.ZodNullable<z.ZodString>;
@@ -604,12 +686,19 @@ declare const CreateApiKeyRequest: z.ZodObject<{
604
686
  "github:manage": "github:manage";
605
687
  "github:use": "github:use";
606
688
  "api_keys:manage": "api_keys:manage";
689
+ "connections:read": "connections:read";
690
+ "connections:write": "connections:write";
607
691
  "environments:manage": "environments:manage";
608
692
  "environments:use": "environments:use";
693
+ "variable-sets:manage": "variable-sets:manage";
694
+ "variable-sets:use": "variable-sets:use";
609
695
  "mcp_servers:attach": "mcp_servers:attach";
696
+ "toolspace:call": "toolspace:call";
610
697
  "goals:manage": "goals:manage";
611
698
  "enrollments:read": "enrollments:read";
612
699
  "enrollments:manage": "enrollments:manage";
700
+ "rigs:use": "rigs:use";
701
+ "rigs:manage": "rigs:manage";
613
702
  }>>;
614
703
  expiresAt: z.ZodOptional<z.ZodString>;
615
704
  }, z.core.$strip>;
@@ -647,12 +736,19 @@ declare const CreateApiKeyResponse: z.ZodObject<{
647
736
  "github:manage": "github:manage";
648
737
  "github:use": "github:use";
649
738
  "api_keys:manage": "api_keys:manage";
739
+ "connections:read": "connections:read";
740
+ "connections:write": "connections:write";
650
741
  "environments:manage": "environments:manage";
651
742
  "environments:use": "environments:use";
743
+ "variable-sets:manage": "variable-sets:manage";
744
+ "variable-sets:use": "variable-sets:use";
652
745
  "mcp_servers:attach": "mcp_servers:attach";
746
+ "toolspace:call": "toolspace:call";
653
747
  "goals:manage": "goals:manage";
654
748
  "enrollments:read": "enrollments:read";
655
749
  "enrollments:manage": "enrollments:manage";
750
+ "rigs:use": "rigs:use";
751
+ "rigs:manage": "rigs:manage";
656
752
  }>>;
657
753
  expiresAt: z.ZodNullable<z.ZodString>;
658
754
  revokedAt: z.ZodNullable<z.ZodString>;
@@ -693,12 +789,19 @@ declare const WorkspaceMember: z.ZodObject<{
693
789
  "github:manage": "github:manage";
694
790
  "github:use": "github:use";
695
791
  "api_keys:manage": "api_keys:manage";
792
+ "connections:read": "connections:read";
793
+ "connections:write": "connections:write";
696
794
  "environments:manage": "environments:manage";
697
795
  "environments:use": "environments:use";
796
+ "variable-sets:manage": "variable-sets:manage";
797
+ "variable-sets:use": "variable-sets:use";
698
798
  "mcp_servers:attach": "mcp_servers:attach";
799
+ "toolspace:call": "toolspace:call";
699
800
  "goals:manage": "goals:manage";
700
801
  "enrollments:read": "enrollments:read";
701
802
  "enrollments:manage": "enrollments:manage";
803
+ "rigs:use": "rigs:use";
804
+ "rigs:manage": "rigs:manage";
702
805
  }>>;
703
806
  createdAt: z.ZodString;
704
807
  }, z.core.$strip>;
@@ -734,12 +837,19 @@ declare const ListWorkspaceMembersResponse: z.ZodObject<{
734
837
  "github:manage": "github:manage";
735
838
  "github:use": "github:use";
736
839
  "api_keys:manage": "api_keys:manage";
840
+ "connections:read": "connections:read";
841
+ "connections:write": "connections:write";
737
842
  "environments:manage": "environments:manage";
738
843
  "environments:use": "environments:use";
844
+ "variable-sets:manage": "variable-sets:manage";
845
+ "variable-sets:use": "variable-sets:use";
739
846
  "mcp_servers:attach": "mcp_servers:attach";
847
+ "toolspace:call": "toolspace:call";
740
848
  "goals:manage": "goals:manage";
741
849
  "enrollments:read": "enrollments:read";
742
850
  "enrollments:manage": "enrollments:manage";
851
+ "rigs:use": "rigs:use";
852
+ "rigs:manage": "rigs:manage";
743
853
  }>>;
744
854
  createdAt: z.ZodString;
745
855
  }, z.core.$strip>>;
@@ -774,12 +884,19 @@ declare const AddWorkspaceMemberRequest: z.ZodObject<{
774
884
  "github:manage": "github:manage";
775
885
  "github:use": "github:use";
776
886
  "api_keys:manage": "api_keys:manage";
887
+ "connections:read": "connections:read";
888
+ "connections:write": "connections:write";
777
889
  "environments:manage": "environments:manage";
778
890
  "environments:use": "environments:use";
891
+ "variable-sets:manage": "variable-sets:manage";
892
+ "variable-sets:use": "variable-sets:use";
779
893
  "mcp_servers:attach": "mcp_servers:attach";
894
+ "toolspace:call": "toolspace:call";
780
895
  "goals:manage": "goals:manage";
781
896
  "enrollments:read": "enrollments:read";
782
897
  "enrollments:manage": "enrollments:manage";
898
+ "rigs:use": "rigs:use";
899
+ "rigs:manage": "rigs:manage";
783
900
  }>>;
784
901
  }, z.core.$strip>;
785
902
  type AddWorkspaceMemberRequest = z.infer<typeof AddWorkspaceMemberRequest>;
@@ -811,12 +928,19 @@ declare const UpdateWorkspaceMemberRequest: z.ZodObject<{
811
928
  "github:manage": "github:manage";
812
929
  "github:use": "github:use";
813
930
  "api_keys:manage": "api_keys:manage";
931
+ "connections:read": "connections:read";
932
+ "connections:write": "connections:write";
814
933
  "environments:manage": "environments:manage";
815
934
  "environments:use": "environments:use";
935
+ "variable-sets:manage": "variable-sets:manage";
936
+ "variable-sets:use": "variable-sets:use";
816
937
  "mcp_servers:attach": "mcp_servers:attach";
938
+ "toolspace:call": "toolspace:call";
817
939
  "goals:manage": "goals:manage";
818
940
  "enrollments:read": "enrollments:read";
819
941
  "enrollments:manage": "enrollments:manage";
942
+ "rigs:use": "rigs:use";
943
+ "rigs:manage": "rigs:manage";
820
944
  }>>;
821
945
  }, z.core.$strip>;
822
946
  type UpdateWorkspaceMemberRequest = z.infer<typeof UpdateWorkspaceMemberRequest>;
@@ -915,15 +1039,39 @@ type AdmitRunInput = {
915
1039
  type EntitlementsPort = {
916
1040
  admitRun(input: AdmitRunInput): Promise<EntitlementDecision>;
917
1041
  };
1042
+ declare const GitCredentialProvider: z.ZodEnum<{
1043
+ github: "github";
1044
+ gitlab: "gitlab";
1045
+ azure_devops: "azure_devops";
1046
+ }>;
1047
+ type GitCredentialProvider = z.infer<typeof GitCredentialProvider>;
1048
+ declare const GitCredentialRepositoryRef: z.ZodObject<{
1049
+ provider: z.ZodOptional<z.ZodEnum<{
1050
+ github: "github";
1051
+ gitlab: "gitlab";
1052
+ azure_devops: "azure_devops";
1053
+ }>>;
1054
+ uri: z.ZodString;
1055
+ ref: z.ZodString;
1056
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1057
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1058
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1059
+ connectionId: z.ZodOptional<z.ZodString>;
1060
+ }, z.core.$strip>;
1061
+ type GitCredentialRepositoryRef = z.infer<typeof GitCredentialRepositoryRef>;
918
1062
  type GitCredentialsRequest = {
919
1063
  accountId: string;
920
1064
  workspaceId: string;
1065
+ provider?: GitCredentialProvider;
1066
+ purpose?: "token" | "identity";
1067
+ repositoryRefs?: GitCredentialRepositoryRef[];
921
1068
  installationId: number;
922
1069
  repositoryIds: number[];
923
1070
  };
924
1071
  type GitCredentials = {
925
- token: string;
1072
+ token?: string;
926
1073
  workspaceId: string;
1074
+ expiresAt?: string | null;
927
1075
  identity?: {
928
1076
  name: string;
929
1077
  email: string;
@@ -932,7 +1080,7 @@ type GitCredentials = {
932
1080
  type SandboxSecretsRequest = {
933
1081
  accountId: string;
934
1082
  workspaceId: string;
935
- environmentId: string;
1083
+ variableSetId: string;
936
1084
  };
937
1085
  type SandboxSecrets = {
938
1086
  values: Record<string, string>;
@@ -942,8 +1090,8 @@ type SandboxSecrets = {
942
1090
  description?: string | null;
943
1091
  };
944
1092
  type ConnectionCredentialsPort = {
945
- gitCredentials?: (input: GitCredentialsRequest) => Promise<GitCredentials>;
946
- sandboxSecrets?: (input: SandboxSecretsRequest) => Promise<SandboxSecrets>;
1093
+ gitCredentials?(input: GitCredentialsRequest): Promise<GitCredentials>;
1094
+ sandboxSecrets?(input: SandboxSecretsRequest): Promise<SandboxSecrets>;
947
1095
  };
948
1096
  type GitHubInstallationSummary = {
949
1097
  installationId: number;
@@ -985,6 +1133,15 @@ declare const RepositoryResourceRef: z.ZodObject<{
985
1133
  ref: z.ZodString;
986
1134
  mountPath: z.ZodOptional<z.ZodString>;
987
1135
  subpath: z.ZodOptional<z.ZodString>;
1136
+ provider: z.ZodOptional<z.ZodEnum<{
1137
+ github: "github";
1138
+ gitlab: "gitlab";
1139
+ azure_devops: "azure_devops";
1140
+ }>>;
1141
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1142
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1143
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1144
+ connectionId: z.ZodOptional<z.ZodString>;
988
1145
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
989
1146
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
990
1147
  }, z.core.$strip>;
@@ -1001,6 +1158,15 @@ declare const ResourceRef: z.ZodDiscriminatedUnion<[z.ZodObject<{
1001
1158
  ref: z.ZodString;
1002
1159
  mountPath: z.ZodOptional<z.ZodString>;
1003
1160
  subpath: z.ZodOptional<z.ZodString>;
1161
+ provider: z.ZodOptional<z.ZodEnum<{
1162
+ github: "github";
1163
+ gitlab: "gitlab";
1164
+ azure_devops: "azure_devops";
1165
+ }>>;
1166
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1167
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1168
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1169
+ connectionId: z.ZodOptional<z.ZodString>;
1004
1170
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
1005
1171
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1006
1172
  }, z.core.$strip>, z.ZodObject<{
@@ -1021,6 +1187,7 @@ declare const FileUploadStatus: z.ZodEnum<{
1021
1187
  failed: "failed";
1022
1188
  expired: "expired";
1023
1189
  pending: "pending";
1190
+ cleanup_pending: "cleanup_pending";
1024
1191
  completed: "completed";
1025
1192
  }>;
1026
1193
  type FileUploadStatus = z.infer<typeof FileUploadStatus>;
@@ -1096,6 +1263,23 @@ declare const DocumentStatus: z.ZodEnum<{
1096
1263
  indexing: "indexing";
1097
1264
  }>;
1098
1265
  type DocumentStatus = z.infer<typeof DocumentStatus>;
1266
+ declare const KnowledgeSourceKind: z.ZodEnum<{
1267
+ email: "email";
1268
+ repository: "repository";
1269
+ manual_upload: "manual_upload";
1270
+ meeting_transcript: "meeting_transcript";
1271
+ chat: "chat";
1272
+ document: "document";
1273
+ web: "web";
1274
+ other: "other";
1275
+ }>;
1276
+ type KnowledgeSourceKind = z.infer<typeof KnowledgeSourceKind>;
1277
+ declare const DocumentSearchMode: z.ZodEnum<{
1278
+ hybrid: "hybrid";
1279
+ vector: "vector";
1280
+ keyword: "keyword";
1281
+ }>;
1282
+ type DocumentSearchMode = z.infer<typeof DocumentSearchMode>;
1099
1283
  declare const DocumentBase: z.ZodObject<{
1100
1284
  id: z.ZodString;
1101
1285
  workspaceId: z.ZodString;
@@ -1120,6 +1304,24 @@ declare const Document: z.ZodObject<{
1120
1304
  parser: z.ZodString;
1121
1305
  chunkCount: z.ZodNumber;
1122
1306
  error: z.ZodNullable<z.ZodString>;
1307
+ sourceKind: z.ZodEnum<{
1308
+ email: "email";
1309
+ repository: "repository";
1310
+ manual_upload: "manual_upload";
1311
+ meeting_transcript: "meeting_transcript";
1312
+ chat: "chat";
1313
+ document: "document";
1314
+ web: "web";
1315
+ other: "other";
1316
+ }>;
1317
+ sourceUri: z.ZodNullable<z.ZodString>;
1318
+ sourceExternalId: z.ZodNullable<z.ZodString>;
1319
+ sourceTitle: z.ZodNullable<z.ZodString>;
1320
+ sourceAuthor: z.ZodNullable<z.ZodString>;
1321
+ sourceCreatedAt: z.ZodNullable<z.ZodString>;
1322
+ sourceUpdatedAt: z.ZodNullable<z.ZodString>;
1323
+ sourceVersion: z.ZodNullable<z.ZodString>;
1324
+ aclTags: z.ZodArray<z.ZodString>;
1123
1325
  createdAt: z.ZodString;
1124
1326
  updatedAt: z.ZodString;
1125
1327
  }, z.core.$strip>;
@@ -1133,8 +1335,33 @@ declare const DocumentSearchResult: z.ZodObject<{
1133
1335
  title: z.ZodString;
1134
1336
  text: z.ZodString;
1135
1337
  score: z.ZodNumber;
1338
+ matchType: z.ZodEnum<{
1339
+ hybrid: "hybrid";
1340
+ vector: "vector";
1341
+ keyword: "keyword";
1342
+ }>;
1343
+ vectorScore: z.ZodNullable<z.ZodNumber>;
1344
+ keywordScore: z.ZodNullable<z.ZodNumber>;
1136
1345
  chunkIndex: z.ZodNumber;
1137
1346
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1347
+ sourceKind: z.ZodEnum<{
1348
+ email: "email";
1349
+ repository: "repository";
1350
+ manual_upload: "manual_upload";
1351
+ meeting_transcript: "meeting_transcript";
1352
+ chat: "chat";
1353
+ document: "document";
1354
+ web: "web";
1355
+ other: "other";
1356
+ }>;
1357
+ sourceUri: z.ZodNullable<z.ZodString>;
1358
+ sourceExternalId: z.ZodNullable<z.ZodString>;
1359
+ sourceTitle: z.ZodNullable<z.ZodString>;
1360
+ sourceAuthor: z.ZodNullable<z.ZodString>;
1361
+ sourceCreatedAt: z.ZodNullable<z.ZodString>;
1362
+ sourceUpdatedAt: z.ZodNullable<z.ZodString>;
1363
+ sourceVersion: z.ZodNullable<z.ZodString>;
1364
+ aclTags: z.ZodArray<z.ZodString>;
1138
1365
  }, z.core.$strip>;
1139
1366
  type DocumentSearchResult = z.infer<typeof DocumentSearchResult>;
1140
1367
  declare const CreateDocumentBaseRequest: z.ZodObject<{
@@ -1144,13 +1371,368 @@ declare const CreateDocumentBaseRequest: z.ZodObject<{
1144
1371
  type CreateDocumentBaseRequest = z.infer<typeof CreateDocumentBaseRequest>;
1145
1372
  declare const AddDocumentRequest: z.ZodObject<{
1146
1373
  fileId: z.ZodString;
1374
+ title: z.ZodOptional<z.ZodString>;
1375
+ sourceKind: z.ZodOptional<z.ZodEnum<{
1376
+ email: "email";
1377
+ repository: "repository";
1378
+ manual_upload: "manual_upload";
1379
+ meeting_transcript: "meeting_transcript";
1380
+ chat: "chat";
1381
+ document: "document";
1382
+ web: "web";
1383
+ other: "other";
1384
+ }>>;
1385
+ sourceUri: z.ZodOptional<z.ZodString>;
1386
+ sourceExternalId: z.ZodOptional<z.ZodString>;
1387
+ sourceTitle: z.ZodOptional<z.ZodString>;
1388
+ sourceAuthor: z.ZodOptional<z.ZodString>;
1389
+ sourceCreatedAt: z.ZodOptional<z.ZodString>;
1390
+ sourceUpdatedAt: z.ZodOptional<z.ZodString>;
1391
+ sourceVersion: z.ZodOptional<z.ZodString>;
1392
+ aclTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1147
1393
  }, z.core.$strip>;
1148
1394
  type AddDocumentRequest = z.infer<typeof AddDocumentRequest>;
1149
1395
  declare const DocumentSearchRequest: z.ZodObject<{
1150
1396
  query: z.ZodString;
1397
+ baseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1398
+ mode: z.ZodOptional<z.ZodEnum<{
1399
+ hybrid: "hybrid";
1400
+ vector: "vector";
1401
+ keyword: "keyword";
1402
+ }>>;
1403
+ sourceKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1404
+ email: "email";
1405
+ repository: "repository";
1406
+ manual_upload: "manual_upload";
1407
+ meeting_transcript: "meeting_transcript";
1408
+ chat: "chat";
1409
+ document: "document";
1410
+ web: "web";
1411
+ other: "other";
1412
+ }>>>;
1413
+ aclTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1151
1414
  limit: z.ZodDefault<z.ZodNumber>;
1152
1415
  }, z.core.$strip>;
1153
1416
  type DocumentSearchRequest = z.infer<typeof DocumentSearchRequest>;
1417
+ declare const KnowledgeMemoryStatus: z.ZodEnum<{
1418
+ active: "active";
1419
+ proposed: "proposed";
1420
+ approved: "approved";
1421
+ rejected: "rejected";
1422
+ superseded: "superseded";
1423
+ archived: "archived";
1424
+ }>;
1425
+ type KnowledgeMemoryStatus = z.infer<typeof KnowledgeMemoryStatus>;
1426
+ declare const KnowledgeMemoryKind: z.ZodEnum<{
1427
+ semantic: "semantic";
1428
+ episodic: "episodic";
1429
+ procedural: "procedural";
1430
+ decision: "decision";
1431
+ preference: "preference";
1432
+ }>;
1433
+ type KnowledgeMemoryKind = z.infer<typeof KnowledgeMemoryKind>;
1434
+ declare const KnowledgeSourceRef: z.ZodObject<{
1435
+ kind: z.ZodEnum<{
1436
+ document: "document";
1437
+ document_chunk: "document_chunk";
1438
+ session_event: "session_event";
1439
+ memory: "memory";
1440
+ external: "external";
1441
+ }>;
1442
+ id: z.ZodString;
1443
+ uri: z.ZodOptional<z.ZodString>;
1444
+ title: z.ZodOptional<z.ZodString>;
1445
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1446
+ }, z.core.$strip>;
1447
+ type KnowledgeSourceRef = z.infer<typeof KnowledgeSourceRef>;
1448
+ declare const KnowledgeMemory: z.ZodObject<{
1449
+ id: z.ZodString;
1450
+ workspaceId: z.ZodString;
1451
+ status: z.ZodEnum<{
1452
+ active: "active";
1453
+ proposed: "proposed";
1454
+ approved: "approved";
1455
+ rejected: "rejected";
1456
+ superseded: "superseded";
1457
+ archived: "archived";
1458
+ }>;
1459
+ kind: z.ZodEnum<{
1460
+ semantic: "semantic";
1461
+ episodic: "episodic";
1462
+ procedural: "procedural";
1463
+ decision: "decision";
1464
+ preference: "preference";
1465
+ }>;
1466
+ scope: z.ZodString;
1467
+ text: z.ZodString;
1468
+ sourceRefs: z.ZodArray<z.ZodObject<{
1469
+ kind: z.ZodEnum<{
1470
+ document: "document";
1471
+ document_chunk: "document_chunk";
1472
+ session_event: "session_event";
1473
+ memory: "memory";
1474
+ external: "external";
1475
+ }>;
1476
+ id: z.ZodString;
1477
+ uri: z.ZodOptional<z.ZodString>;
1478
+ title: z.ZodOptional<z.ZodString>;
1479
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1480
+ }, z.core.$strip>>;
1481
+ confidence: z.ZodNumber;
1482
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1483
+ createdBySessionId: z.ZodNullable<z.ZodString>;
1484
+ reviewedBy: z.ZodNullable<z.ZodString>;
1485
+ reviewedAt: z.ZodNullable<z.ZodString>;
1486
+ pinned: z.ZodBoolean;
1487
+ usageCount: z.ZodNumber;
1488
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1489
+ supersedesId: z.ZodNullable<z.ZodString>;
1490
+ supersededById: z.ZodNullable<z.ZodString>;
1491
+ validFrom: z.ZodString;
1492
+ validUntil: z.ZodNullable<z.ZodString>;
1493
+ createdAt: z.ZodString;
1494
+ updatedAt: z.ZodString;
1495
+ }, z.core.$strip>;
1496
+ type KnowledgeMemory = z.infer<typeof KnowledgeMemory>;
1497
+ declare const CreateKnowledgeMemoryRequest: z.ZodObject<{
1498
+ status: z.ZodDefault<z.ZodEnum<{
1499
+ active: "active";
1500
+ proposed: "proposed";
1501
+ approved: "approved";
1502
+ rejected: "rejected";
1503
+ superseded: "superseded";
1504
+ archived: "archived";
1505
+ }>>;
1506
+ kind: z.ZodDefault<z.ZodEnum<{
1507
+ semantic: "semantic";
1508
+ episodic: "episodic";
1509
+ procedural: "procedural";
1510
+ decision: "decision";
1511
+ preference: "preference";
1512
+ }>>;
1513
+ scope: z.ZodDefault<z.ZodString>;
1514
+ text: z.ZodString;
1515
+ sourceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1516
+ kind: z.ZodEnum<{
1517
+ document: "document";
1518
+ document_chunk: "document_chunk";
1519
+ session_event: "session_event";
1520
+ memory: "memory";
1521
+ external: "external";
1522
+ }>;
1523
+ id: z.ZodString;
1524
+ uri: z.ZodOptional<z.ZodString>;
1525
+ title: z.ZodOptional<z.ZodString>;
1526
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1527
+ }, z.core.$strip>>>;
1528
+ confidence: z.ZodDefault<z.ZodNumber>;
1529
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1530
+ createdBySessionId: z.ZodOptional<z.ZodString>;
1531
+ pinned: z.ZodOptional<z.ZodBoolean>;
1532
+ replacesId: z.ZodOptional<z.ZodString>;
1533
+ }, z.core.$strip>;
1534
+ type CreateKnowledgeMemoryRequest = z.infer<typeof CreateKnowledgeMemoryRequest>;
1535
+ declare const UpdateKnowledgeMemoryRequest: z.ZodObject<{
1536
+ status: z.ZodOptional<z.ZodEnum<{
1537
+ active: "active";
1538
+ proposed: "proposed";
1539
+ approved: "approved";
1540
+ rejected: "rejected";
1541
+ superseded: "superseded";
1542
+ archived: "archived";
1543
+ }>>;
1544
+ kind: z.ZodOptional<z.ZodEnum<{
1545
+ semantic: "semantic";
1546
+ episodic: "episodic";
1547
+ procedural: "procedural";
1548
+ decision: "decision";
1549
+ preference: "preference";
1550
+ }>>;
1551
+ scope: z.ZodOptional<z.ZodString>;
1552
+ text: z.ZodOptional<z.ZodString>;
1553
+ sourceRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1554
+ kind: z.ZodEnum<{
1555
+ document: "document";
1556
+ document_chunk: "document_chunk";
1557
+ session_event: "session_event";
1558
+ memory: "memory";
1559
+ external: "external";
1560
+ }>;
1561
+ id: z.ZodString;
1562
+ uri: z.ZodOptional<z.ZodString>;
1563
+ title: z.ZodOptional<z.ZodString>;
1564
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1565
+ }, z.core.$strip>>>;
1566
+ confidence: z.ZodOptional<z.ZodNumber>;
1567
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1568
+ reviewedBy: z.ZodOptional<z.ZodString>;
1569
+ pinned: z.ZodOptional<z.ZodBoolean>;
1570
+ }, z.core.$strip>;
1571
+ type UpdateKnowledgeMemoryRequest = z.infer<typeof UpdateKnowledgeMemoryRequest>;
1572
+ declare const KnowledgeMemorySearchRequest: z.ZodObject<{
1573
+ query: z.ZodOptional<z.ZodString>;
1574
+ status: z.ZodOptional<z.ZodEnum<{
1575
+ active: "active";
1576
+ proposed: "proposed";
1577
+ approved: "approved";
1578
+ rejected: "rejected";
1579
+ superseded: "superseded";
1580
+ archived: "archived";
1581
+ }>>;
1582
+ kind: z.ZodOptional<z.ZodEnum<{
1583
+ semantic: "semantic";
1584
+ episodic: "episodic";
1585
+ procedural: "procedural";
1586
+ decision: "decision";
1587
+ preference: "preference";
1588
+ }>>;
1589
+ scope: z.ZodOptional<z.ZodString>;
1590
+ limit: z.ZodDefault<z.ZodNumber>;
1591
+ }, z.core.$strip>;
1592
+ type KnowledgeMemorySearchRequest = z.infer<typeof KnowledgeMemorySearchRequest>;
1593
+ declare const WorkspaceMemorySearchMode: z.ZodEnum<{
1594
+ hybrid: "hybrid";
1595
+ vector: "vector";
1596
+ keyword: "keyword";
1597
+ }>;
1598
+ type WorkspaceMemorySearchMode = z.infer<typeof WorkspaceMemorySearchMode>;
1599
+ declare const WorkspaceMemorySearchRequest: z.ZodObject<{
1600
+ query: z.ZodString;
1601
+ kind: z.ZodOptional<z.ZodEnum<{
1602
+ semantic: "semantic";
1603
+ episodic: "episodic";
1604
+ procedural: "procedural";
1605
+ decision: "decision";
1606
+ preference: "preference";
1607
+ }>>;
1608
+ limit: z.ZodOptional<z.ZodNumber>;
1609
+ mode: z.ZodOptional<z.ZodEnum<{
1610
+ hybrid: "hybrid";
1611
+ vector: "vector";
1612
+ keyword: "keyword";
1613
+ }>>;
1614
+ }, z.core.$strip>;
1615
+ type WorkspaceMemorySearchRequest = z.infer<typeof WorkspaceMemorySearchRequest>;
1616
+ declare const WorkspaceMemorySearchResult: z.ZodObject<{
1617
+ memory: z.ZodObject<{
1618
+ id: z.ZodString;
1619
+ workspaceId: z.ZodString;
1620
+ status: z.ZodEnum<{
1621
+ active: "active";
1622
+ proposed: "proposed";
1623
+ approved: "approved";
1624
+ rejected: "rejected";
1625
+ superseded: "superseded";
1626
+ archived: "archived";
1627
+ }>;
1628
+ kind: z.ZodEnum<{
1629
+ semantic: "semantic";
1630
+ episodic: "episodic";
1631
+ procedural: "procedural";
1632
+ decision: "decision";
1633
+ preference: "preference";
1634
+ }>;
1635
+ scope: z.ZodString;
1636
+ text: z.ZodString;
1637
+ sourceRefs: z.ZodArray<z.ZodObject<{
1638
+ kind: z.ZodEnum<{
1639
+ document: "document";
1640
+ document_chunk: "document_chunk";
1641
+ session_event: "session_event";
1642
+ memory: "memory";
1643
+ external: "external";
1644
+ }>;
1645
+ id: z.ZodString;
1646
+ uri: z.ZodOptional<z.ZodString>;
1647
+ title: z.ZodOptional<z.ZodString>;
1648
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1649
+ }, z.core.$strip>>;
1650
+ confidence: z.ZodNumber;
1651
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1652
+ createdBySessionId: z.ZodNullable<z.ZodString>;
1653
+ reviewedBy: z.ZodNullable<z.ZodString>;
1654
+ reviewedAt: z.ZodNullable<z.ZodString>;
1655
+ pinned: z.ZodBoolean;
1656
+ usageCount: z.ZodNumber;
1657
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1658
+ supersedesId: z.ZodNullable<z.ZodString>;
1659
+ supersededById: z.ZodNullable<z.ZodString>;
1660
+ validFrom: z.ZodString;
1661
+ validUntil: z.ZodNullable<z.ZodString>;
1662
+ createdAt: z.ZodString;
1663
+ updatedAt: z.ZodString;
1664
+ }, z.core.$strip>;
1665
+ score: z.ZodNumber;
1666
+ matchType: z.ZodEnum<{
1667
+ hybrid: "hybrid";
1668
+ vector: "vector";
1669
+ keyword: "keyword";
1670
+ }>;
1671
+ vectorScore: z.ZodNullable<z.ZodNumber>;
1672
+ keywordScore: z.ZodNullable<z.ZodNumber>;
1673
+ }, z.core.$strip>;
1674
+ type WorkspaceMemorySearchResult = z.infer<typeof WorkspaceMemorySearchResult>;
1675
+ declare const WorkspaceMemorySearchResponse: z.ZodObject<{
1676
+ results: z.ZodArray<z.ZodObject<{
1677
+ memory: z.ZodObject<{
1678
+ id: z.ZodString;
1679
+ workspaceId: z.ZodString;
1680
+ status: z.ZodEnum<{
1681
+ active: "active";
1682
+ proposed: "proposed";
1683
+ approved: "approved";
1684
+ rejected: "rejected";
1685
+ superseded: "superseded";
1686
+ archived: "archived";
1687
+ }>;
1688
+ kind: z.ZodEnum<{
1689
+ semantic: "semantic";
1690
+ episodic: "episodic";
1691
+ procedural: "procedural";
1692
+ decision: "decision";
1693
+ preference: "preference";
1694
+ }>;
1695
+ scope: z.ZodString;
1696
+ text: z.ZodString;
1697
+ sourceRefs: z.ZodArray<z.ZodObject<{
1698
+ kind: z.ZodEnum<{
1699
+ document: "document";
1700
+ document_chunk: "document_chunk";
1701
+ session_event: "session_event";
1702
+ memory: "memory";
1703
+ external: "external";
1704
+ }>;
1705
+ id: z.ZodString;
1706
+ uri: z.ZodOptional<z.ZodString>;
1707
+ title: z.ZodOptional<z.ZodString>;
1708
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1709
+ }, z.core.$strip>>;
1710
+ confidence: z.ZodNumber;
1711
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1712
+ createdBySessionId: z.ZodNullable<z.ZodString>;
1713
+ reviewedBy: z.ZodNullable<z.ZodString>;
1714
+ reviewedAt: z.ZodNullable<z.ZodString>;
1715
+ pinned: z.ZodBoolean;
1716
+ usageCount: z.ZodNumber;
1717
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1718
+ supersedesId: z.ZodNullable<z.ZodString>;
1719
+ supersededById: z.ZodNullable<z.ZodString>;
1720
+ validFrom: z.ZodString;
1721
+ validUntil: z.ZodNullable<z.ZodString>;
1722
+ createdAt: z.ZodString;
1723
+ updatedAt: z.ZodString;
1724
+ }, z.core.$strip>;
1725
+ score: z.ZodNumber;
1726
+ matchType: z.ZodEnum<{
1727
+ hybrid: "hybrid";
1728
+ vector: "vector";
1729
+ keyword: "keyword";
1730
+ }>;
1731
+ vectorScore: z.ZodNullable<z.ZodNumber>;
1732
+ keywordScore: z.ZodNullable<z.ZodNumber>;
1733
+ }, z.core.$strip>>;
1734
+ }, z.core.$strip>;
1735
+ type WorkspaceMemorySearchResponse = z.infer<typeof WorkspaceMemorySearchResponse>;
1154
1736
  declare const ToolRef: z.ZodObject<{
1155
1737
  kind: z.ZodLiteral<"mcp">;
1156
1738
  id: z.ZodString;
@@ -1164,6 +1746,7 @@ declare const SessionMcpServerInput: z.ZodObject<{
1164
1746
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1165
1747
  timeoutMs: z.ZodOptional<z.ZodNumber>;
1166
1748
  cacheToolsList: z.ZodOptional<z.ZodBoolean>;
1749
+ requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
1167
1750
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1168
1751
  }, z.core.$strip>;
1169
1752
  type SessionMcpServerInput = z.infer<typeof SessionMcpServerInput>;
@@ -1194,9 +1777,12 @@ declare const SessionTurnStatus: z.ZodEnum<{
1194
1777
  queued: "queued";
1195
1778
  running: "running";
1196
1779
  requires_action: "requires_action";
1780
+ recovering: "recovering";
1781
+ waiting_capacity: "waiting_capacity";
1197
1782
  failed: "failed";
1198
1783
  cancelled: "cancelled";
1199
1784
  completed: "completed";
1785
+ superseded: "superseded";
1200
1786
  }>;
1201
1787
  type SessionTurnStatus = z.infer<typeof SessionTurnStatus>;
1202
1788
  declare const SessionTurnSource: z.ZodEnum<{
@@ -1204,12 +1790,24 @@ declare const SessionTurnSource: z.ZodEnum<{
1204
1790
  scheduled_task: "scheduled_task";
1205
1791
  api: "api";
1206
1792
  goal: "goal";
1793
+ system: "system";
1794
+ compaction: "compaction";
1207
1795
  }>;
1208
1796
  type SessionTurnSource = z.infer<typeof SessionTurnSource>;
1209
- declare const SessionGoalStatus: z.ZodEnum<{
1210
- completed: "completed";
1797
+ declare const SessionControlState: z.ZodEnum<{
1798
+ paused: "paused";
1799
+ active: "active";
1800
+ }>;
1801
+ type SessionControlState = z.infer<typeof SessionControlState>;
1802
+ declare const WorkspaceInferenceState: z.ZodEnum<{
1803
+ paused: "paused";
1211
1804
  active: "active";
1805
+ }>;
1806
+ type WorkspaceInferenceState = z.infer<typeof WorkspaceInferenceState>;
1807
+ declare const SessionGoalStatus: z.ZodEnum<{
1212
1808
  paused: "paused";
1809
+ active: "active";
1810
+ completed: "completed";
1213
1811
  }>;
1214
1812
  type SessionGoalStatus = z.infer<typeof SessionGoalStatus>;
1215
1813
  declare const SessionGoalCreatedBy: z.ZodEnum<{
@@ -1221,7 +1819,7 @@ type SessionGoalCreatedBy = z.infer<typeof SessionGoalCreatedBy>;
1221
1819
  declare const SessionGoalPausedReason: z.ZodEnum<{
1222
1820
  api: "api";
1223
1821
  agent: "agent";
1224
- user_interrupt: "user_interrupt";
1822
+ user_pause: "user_pause";
1225
1823
  no_progress: "no_progress";
1226
1824
  max_auto_continuations: "max_auto_continuations";
1227
1825
  limits: "limits";
@@ -1233,9 +1831,9 @@ declare const SessionGoal: z.ZodObject<{
1233
1831
  workspaceId: z.ZodString;
1234
1832
  sessionId: z.ZodString;
1235
1833
  status: z.ZodEnum<{
1236
- completed: "completed";
1237
- active: "active";
1238
1834
  paused: "paused";
1835
+ active: "active";
1836
+ completed: "completed";
1239
1837
  }>;
1240
1838
  text: z.ZodString;
1241
1839
  successCriteria: z.ZodNullable<z.ZodString>;
@@ -1264,8 +1862,8 @@ declare const GoalSpec: z.ZodObject<{
1264
1862
  type GoalSpec = z.infer<typeof GoalSpec>;
1265
1863
  declare const UpdateSessionGoalRequest: z.ZodObject<{
1266
1864
  status: z.ZodEnum<{
1267
- active: "active";
1268
1865
  paused: "paused";
1866
+ active: "active";
1269
1867
  }>;
1270
1868
  rationale: z.ZodOptional<z.ZodString>;
1271
1869
  }, z.core.$strip>;
@@ -1274,6 +1872,17 @@ declare const UpdateSessionRequest: z.ZodObject<{
1274
1872
  title: z.ZodString;
1275
1873
  }, z.core.$strip>;
1276
1874
  type UpdateSessionRequest = z.infer<typeof UpdateSessionRequest>;
1875
+ /**
1876
+ * A member's personal pin preference for a session. `expectedVersion` is
1877
+ * optional: ordinary pin/unpin actions are idempotent last-write-wins, while a
1878
+ * client that has a known version can fail closed rather than overwrite a newer
1879
+ * action from another browser.
1880
+ */
1881
+ declare const UpdateSessionPinRequest: z.ZodObject<{
1882
+ pinned: z.ZodBoolean;
1883
+ expectedVersion: z.ZodOptional<z.ZodNumber>;
1884
+ }, z.core.$strip>;
1885
+ type UpdateSessionPinRequest = z.infer<typeof UpdateSessionPinRequest>;
1277
1886
  /**
1278
1887
  * Clear a session's conversation context. `confirm` must be the literal `true`
1279
1888
  * so an accidental/empty POST cannot wipe context — the destructive intent is
@@ -1310,7 +1919,8 @@ type CompactSessionContextRequest = z.infer<typeof CompactSessionContextRequest>
1310
1919
  /** Outcome of a manual /compact trigger. */
1311
1920
  declare const CompactSessionContextResult: z.ZodObject<{
1312
1921
  status: z.ZodEnum<{
1313
- queued: "queued";
1922
+ pending: "pending";
1923
+ completed: "completed";
1314
1924
  noop: "noop";
1315
1925
  }>;
1316
1926
  message: z.ZodString;
@@ -1326,15 +1936,20 @@ declare const SessionTurn: z.ZodObject<{
1326
1936
  queued: "queued";
1327
1937
  running: "running";
1328
1938
  requires_action: "requires_action";
1939
+ recovering: "recovering";
1940
+ waiting_capacity: "waiting_capacity";
1329
1941
  failed: "failed";
1330
1942
  cancelled: "cancelled";
1331
1943
  completed: "completed";
1944
+ superseded: "superseded";
1332
1945
  }>;
1333
1946
  source: z.ZodEnum<{
1334
1947
  user: "user";
1335
1948
  scheduled_task: "scheduled_task";
1336
1949
  api: "api";
1337
1950
  goal: "goal";
1951
+ system: "system";
1952
+ compaction: "compaction";
1338
1953
  }>;
1339
1954
  position: z.ZodNumber;
1340
1955
  prompt: z.ZodString;
@@ -1344,6 +1959,15 @@ declare const SessionTurn: z.ZodObject<{
1344
1959
  ref: z.ZodString;
1345
1960
  mountPath: z.ZodOptional<z.ZodString>;
1346
1961
  subpath: z.ZodOptional<z.ZodString>;
1962
+ provider: z.ZodOptional<z.ZodEnum<{
1963
+ github: "github";
1964
+ gitlab: "gitlab";
1965
+ azure_devops: "azure_devops";
1966
+ }>>;
1967
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1968
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1969
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1970
+ connectionId: z.ZodOptional<z.ZodString>;
1347
1971
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
1348
1972
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1349
1973
  }, z.core.$strip>, z.ZodObject<{
@@ -1384,107 +2008,515 @@ declare const SessionTurn: z.ZodObject<{
1384
2008
  windows: "windows";
1385
2009
  }>>;
1386
2010
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2011
+ version: z.ZodNumber;
2012
+ executionGeneration: z.ZodNumber;
2013
+ activeAttemptId: z.ZodNullable<z.ZodString>;
2014
+ lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2015
+ cancelledBy: z.ZodNullable<z.ZodString>;
2016
+ cancelReason: z.ZodNullable<z.ZodString>;
1387
2017
  startedAt: z.ZodNullable<z.ZodString>;
1388
2018
  finishedAt: z.ZodNullable<z.ZodString>;
1389
2019
  createdAt: z.ZodString;
1390
2020
  updatedAt: z.ZodString;
1391
2021
  }, z.core.$strip>;
1392
2022
  type SessionTurn = z.infer<typeof SessionTurn>;
1393
- declare const UpdateSessionTurnRequest: z.ZodObject<{
1394
- prompt: z.ZodOptional<z.ZodString>;
1395
- resources: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1396
- kind: z.ZodLiteral<"repository">;
1397
- uri: z.ZodString;
1398
- ref: z.ZodString;
1399
- mountPath: z.ZodOptional<z.ZodString>;
1400
- subpath: z.ZodOptional<z.ZodString>;
1401
- githubInstallationId: z.ZodOptional<z.ZodNumber>;
1402
- githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1403
- }, z.core.$strip>, z.ZodObject<{
1404
- kind: z.ZodLiteral<"file">;
1405
- fileId: z.ZodString;
1406
- mountPath: z.ZodOptional<z.ZodString>;
1407
- }, z.core.$strip>], "kind">>>;
1408
- tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1409
- kind: z.ZodLiteral<"mcp">;
1410
- id: z.ZodString;
1411
- optional: z.ZodOptional<z.ZodBoolean>;
1412
- }, z.core.$strip>>>;
1413
- model: z.ZodOptional<z.ZodString>;
1414
- reasoningEffort: z.ZodOptional<z.ZodEnum<{
1415
- none: "none";
1416
- minimal: "minimal";
1417
- low: "low";
1418
- medium: "medium";
1419
- high: "high";
1420
- xhigh: "xhigh";
1421
- }>>;
1422
- sandboxBackend: z.ZodOptional<z.ZodEnum<{
1423
- docker: "docker";
1424
- modal: "modal";
1425
- local: "local";
1426
- none: "none";
1427
- daytona: "daytona";
1428
- runloop: "runloop";
1429
- e2b: "e2b";
1430
- blaxel: "blaxel";
1431
- cloudflare: "cloudflare";
1432
- vercel: "vercel";
1433
- selfhosted: "selfhosted";
1434
- }>>;
1435
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1436
- }, z.core.$strip>;
1437
- type UpdateSessionTurnRequest = z.infer<typeof UpdateSessionTurnRequest>;
1438
- declare const ReorderSessionTurnsRequest: z.ZodObject<{
1439
- turnIds: z.ZodArray<z.ZodString>;
1440
- }, z.core.$strip>;
1441
- type ReorderSessionTurnsRequest = z.infer<typeof ReorderSessionTurnsRequest>;
1442
- declare const WorkspaceEnvironmentVariableName: z.ZodString;
1443
- type WorkspaceEnvironmentVariableName = z.infer<typeof WorkspaceEnvironmentVariableName>;
1444
- declare const WorkspaceEnvironmentVariableMetadata: z.ZodObject<{
1445
- name: z.ZodString;
2023
+ declare const SessionQueueSnapshot: z.ZodObject<{
1446
2024
  version: z.ZodNumber;
1447
- createdAt: z.ZodString;
1448
- updatedAt: z.ZodString;
1449
- }, z.core.$strip>;
1450
- type WorkspaceEnvironmentVariableMetadata = z.infer<typeof WorkspaceEnvironmentVariableMetadata>;
1451
- declare const WorkspaceEnvironment: z.ZodObject<{
1452
- id: z.ZodString;
1453
- accountId: z.ZodString;
1454
- workspaceId: z.ZodString;
1455
- name: z.ZodString;
1456
- description: z.ZodNullable<z.ZodString>;
1457
- variables: z.ZodArray<z.ZodObject<{
1458
- name: z.ZodString;
2025
+ controlState: z.ZodEnum<{
2026
+ paused: "paused";
2027
+ active: "active";
2028
+ }>;
2029
+ controlGeneration: z.ZodNumber;
2030
+ workspaceInferenceState: z.ZodEnum<{
2031
+ paused: "paused";
2032
+ active: "active";
2033
+ }>;
2034
+ workspaceInferenceGeneration: z.ZodNumber;
2035
+ workspaceRunExceptionGeneration: z.ZodNullable<z.ZodNumber>;
2036
+ items: z.ZodArray<z.ZodObject<{
2037
+ id: z.ZodString;
2038
+ workspaceId: z.ZodString;
2039
+ sessionId: z.ZodString;
2040
+ triggerEventId: z.ZodString;
2041
+ temporalWorkflowId: z.ZodString;
2042
+ status: z.ZodEnum<{
2043
+ queued: "queued";
2044
+ running: "running";
2045
+ requires_action: "requires_action";
2046
+ recovering: "recovering";
2047
+ waiting_capacity: "waiting_capacity";
2048
+ failed: "failed";
2049
+ cancelled: "cancelled";
2050
+ completed: "completed";
2051
+ superseded: "superseded";
2052
+ }>;
2053
+ source: z.ZodEnum<{
2054
+ user: "user";
2055
+ scheduled_task: "scheduled_task";
2056
+ api: "api";
2057
+ goal: "goal";
2058
+ system: "system";
2059
+ compaction: "compaction";
2060
+ }>;
2061
+ position: z.ZodNumber;
2062
+ prompt: z.ZodString;
2063
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2064
+ kind: z.ZodLiteral<"repository">;
2065
+ uri: z.ZodString;
2066
+ ref: z.ZodString;
2067
+ mountPath: z.ZodOptional<z.ZodString>;
2068
+ subpath: z.ZodOptional<z.ZodString>;
2069
+ provider: z.ZodOptional<z.ZodEnum<{
2070
+ github: "github";
2071
+ gitlab: "gitlab";
2072
+ azure_devops: "azure_devops";
2073
+ }>>;
2074
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2075
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2076
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2077
+ connectionId: z.ZodOptional<z.ZodString>;
2078
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
2079
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
2080
+ }, z.core.$strip>, z.ZodObject<{
2081
+ kind: z.ZodLiteral<"file">;
2082
+ fileId: z.ZodString;
2083
+ mountPath: z.ZodOptional<z.ZodString>;
2084
+ }, z.core.$strip>], "kind">>;
2085
+ tools: z.ZodArray<z.ZodObject<{
2086
+ kind: z.ZodLiteral<"mcp">;
2087
+ id: z.ZodString;
2088
+ optional: z.ZodOptional<z.ZodBoolean>;
2089
+ }, z.core.$strip>>;
2090
+ model: z.ZodString;
2091
+ reasoningEffort: z.ZodEnum<{
2092
+ none: "none";
2093
+ minimal: "minimal";
2094
+ low: "low";
2095
+ medium: "medium";
2096
+ high: "high";
2097
+ xhigh: "xhigh";
2098
+ }>;
2099
+ sandboxBackend: z.ZodEnum<{
2100
+ docker: "docker";
2101
+ modal: "modal";
2102
+ local: "local";
2103
+ none: "none";
2104
+ daytona: "daytona";
2105
+ runloop: "runloop";
2106
+ e2b: "e2b";
2107
+ blaxel: "blaxel";
2108
+ cloudflare: "cloudflare";
2109
+ vercel: "vercel";
2110
+ selfhosted: "selfhosted";
2111
+ }>;
2112
+ sandboxOs: z.ZodNullable<z.ZodEnum<{
2113
+ linux: "linux";
2114
+ macos: "macos";
2115
+ windows: "windows";
2116
+ }>>;
2117
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1459
2118
  version: z.ZodNumber;
2119
+ executionGeneration: z.ZodNumber;
2120
+ activeAttemptId: z.ZodNullable<z.ZodString>;
2121
+ lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2122
+ cancelledBy: z.ZodNullable<z.ZodString>;
2123
+ cancelReason: z.ZodNullable<z.ZodString>;
2124
+ startedAt: z.ZodNullable<z.ZodString>;
2125
+ finishedAt: z.ZodNullable<z.ZodString>;
1460
2126
  createdAt: z.ZodString;
1461
2127
  updatedAt: z.ZodString;
1462
2128
  }, z.core.$strip>>;
1463
- createdAt: z.ZodString;
1464
- updatedAt: z.ZodString;
1465
2129
  }, z.core.$strip>;
1466
- type WorkspaceEnvironment = z.infer<typeof WorkspaceEnvironment>;
1467
- declare const CreateWorkspaceEnvironmentRequest: z.ZodObject<{
1468
- name: z.ZodString;
1469
- description: z.ZodOptional<z.ZodString>;
1470
- variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
2130
+ type SessionQueueSnapshot = z.infer<typeof SessionQueueSnapshot>;
2131
+ declare const CancelSessionQueueItemRequest: z.ZodObject<{
2132
+ expectedQueueVersion: z.ZodNumber;
2133
+ expectedItemVersion: z.ZodNumber;
2134
+ reason: z.ZodOptional<z.ZodString>;
2135
+ }, z.core.$strip>;
2136
+ type CancelSessionQueueItemRequest = z.infer<typeof CancelSessionQueueItemRequest>;
2137
+ declare const SessionControlRequest: z.ZodObject<{
2138
+ mode: z.ZodEnum<{
2139
+ pause: "pause";
2140
+ resume: "resume";
2141
+ }>;
2142
+ reason: z.ZodOptional<z.ZodString>;
2143
+ clientEventId: z.ZodOptional<z.ZodString>;
2144
+ expectedControlState: z.ZodOptional<z.ZodEnum<{
2145
+ paused: "paused";
2146
+ active: "active";
2147
+ }>>;
2148
+ expectedControlGeneration: z.ZodOptional<z.ZodNumber>;
2149
+ expectedWorkspaceInferenceGeneration: z.ZodOptional<z.ZodNumber>;
2150
+ }, z.core.$strip>;
2151
+ type SessionControlRequest = z.infer<typeof SessionControlRequest>;
2152
+ declare const WorkspaceInferenceControlRequest: z.ZodObject<{
2153
+ state: z.ZodEnum<{
2154
+ paused: "paused";
2155
+ active: "active";
2156
+ }>;
2157
+ reason: z.ZodString;
2158
+ clientEventId: z.ZodString;
2159
+ expectedState: z.ZodEnum<{
2160
+ paused: "paused";
2161
+ active: "active";
2162
+ }>;
2163
+ expectedGeneration: z.ZodNumber;
2164
+ exceptSessionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2165
+ }, z.core.$strip>;
2166
+ type WorkspaceInferenceControlRequest = z.infer<typeof WorkspaceInferenceControlRequest>;
2167
+ declare const WorkspaceInferenceControlResponse: z.ZodObject<{
2168
+ operationId: z.ZodString;
2169
+ state: z.ZodEnum<{
2170
+ paused: "paused";
2171
+ active: "active";
2172
+ }>;
2173
+ generation: z.ZodNumber;
2174
+ affectedSessionIds: z.ZodArray<z.ZodString>;
2175
+ controlSessionIds: z.ZodArray<z.ZodString>;
2176
+ exceptionSessionIds: z.ZodArray<z.ZodString>;
2177
+ }, z.core.$strip>;
2178
+ type WorkspaceInferenceControlResponse = z.infer<typeof WorkspaceInferenceControlResponse>;
2179
+ declare const SystemUpdateClassification: z.ZodEnum<{
2180
+ success: "success";
2181
+ failure: "failure";
2182
+ action_required: "action_required";
2183
+ info: "info";
2184
+ }>;
2185
+ type SystemUpdateClassification = z.infer<typeof SystemUpdateClassification>;
2186
+ declare const SessionSystemUpdateKind: z.ZodEnum<{
2187
+ child_session_update: "child_session_update";
2188
+ scheduled_wake: "scheduled_wake";
2189
+ lifecycle_event: "lifecycle_event";
2190
+ runtime_notice: "runtime_notice";
2191
+ }>;
2192
+ type SessionSystemUpdateKind = z.infer<typeof SessionSystemUpdateKind>;
2193
+ declare const SessionSystemUpdateState: z.ZodEnum<{
2194
+ failed: "failed";
2195
+ cancelled: "cancelled";
2196
+ pending: "pending";
2197
+ deferred: "deferred";
2198
+ delivered: "delivered";
2199
+ }>;
2200
+ type SessionSystemUpdateState = z.infer<typeof SessionSystemUpdateState>;
2201
+ declare const SessionSystemUpdate: z.ZodObject<{
2202
+ id: z.ZodString;
2203
+ sessionId: z.ZodString;
2204
+ kind: z.ZodEnum<{
2205
+ child_session_update: "child_session_update";
2206
+ scheduled_wake: "scheduled_wake";
2207
+ lifecycle_event: "lifecycle_event";
2208
+ runtime_notice: "runtime_notice";
2209
+ }>;
2210
+ classification: z.ZodEnum<{
2211
+ success: "success";
2212
+ failure: "failure";
2213
+ action_required: "action_required";
2214
+ info: "info";
2215
+ }>;
2216
+ sourceId: z.ZodString;
2217
+ dedupeKey: z.ZodString;
2218
+ summary: z.ZodString;
2219
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2220
+ lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2221
+ state: z.ZodEnum<{
2222
+ failed: "failed";
2223
+ cancelled: "cancelled";
2224
+ pending: "pending";
2225
+ deferred: "deferred";
2226
+ delivered: "delivered";
2227
+ }>;
2228
+ deliveredTurnId: z.ZodNullable<z.ZodString>;
2229
+ deliveredAt: z.ZodNullable<z.ZodString>;
2230
+ createdAt: z.ZodString;
2231
+ }, z.core.$strip>;
2232
+ type SessionSystemUpdate = z.infer<typeof SessionSystemUpdate>;
2233
+ declare const VariableSetVariableName: z.ZodString;
2234
+ type VariableSetVariableName = z.infer<typeof VariableSetVariableName>;
2235
+ declare const VariableSetVariableMetadata: z.ZodObject<{
2236
+ name: z.ZodString;
2237
+ version: z.ZodNumber;
2238
+ createdAt: z.ZodString;
2239
+ updatedAt: z.ZodString;
2240
+ }, z.core.$strip>;
2241
+ type VariableSetVariableMetadata = z.infer<typeof VariableSetVariableMetadata>;
2242
+ /** @deprecated use VariableSetVariableMetadata */
2243
+ declare const WorkspaceEnvironmentVariableMetadata: z.ZodObject<{
2244
+ name: z.ZodString;
2245
+ version: z.ZodNumber;
2246
+ createdAt: z.ZodString;
2247
+ updatedAt: z.ZodString;
2248
+ }, z.core.$strip>;
2249
+ /** @deprecated use VariableSetVariableMetadata */
2250
+ type WorkspaceEnvironmentVariableMetadata = VariableSetVariableMetadata;
2251
+ declare const VariableSet: z.ZodObject<{
2252
+ id: z.ZodString;
2253
+ accountId: z.ZodString;
2254
+ workspaceId: z.ZodString;
2255
+ name: z.ZodString;
2256
+ description: z.ZodNullable<z.ZodString>;
2257
+ variables: z.ZodArray<z.ZodObject<{
2258
+ name: z.ZodString;
2259
+ version: z.ZodNumber;
2260
+ createdAt: z.ZodString;
2261
+ updatedAt: z.ZodString;
2262
+ }, z.core.$strip>>;
2263
+ createdAt: z.ZodString;
2264
+ updatedAt: z.ZodString;
2265
+ }, z.core.$strip>;
2266
+ type VariableSet = z.infer<typeof VariableSet>;
2267
+ /** @deprecated use VariableSet */
2268
+ declare const WorkspaceEnvironment: z.ZodObject<{
2269
+ id: z.ZodString;
2270
+ accountId: z.ZodString;
2271
+ workspaceId: z.ZodString;
2272
+ name: z.ZodString;
2273
+ description: z.ZodNullable<z.ZodString>;
2274
+ variables: z.ZodArray<z.ZodObject<{
2275
+ name: z.ZodString;
2276
+ version: z.ZodNumber;
2277
+ createdAt: z.ZodString;
2278
+ updatedAt: z.ZodString;
2279
+ }, z.core.$strip>>;
2280
+ createdAt: z.ZodString;
2281
+ updatedAt: z.ZodString;
2282
+ }, z.core.$strip>;
2283
+ /** @deprecated use VariableSet */
2284
+ type WorkspaceEnvironment = VariableSet;
2285
+ declare const CreateVariableSetRequest: z.ZodObject<{
2286
+ name: z.ZodString;
2287
+ description: z.ZodOptional<z.ZodString>;
2288
+ variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
2289
+ name: z.ZodString;
2290
+ value: z.ZodString;
2291
+ }, z.core.$strip>>>;
2292
+ }, z.core.$strip>;
2293
+ type CreateVariableSetRequest = z.infer<typeof CreateVariableSetRequest>;
2294
+ /** @deprecated use CreateVariableSetRequest */
2295
+ declare const CreateWorkspaceEnvironmentRequest: z.ZodObject<{
2296
+ name: z.ZodString;
2297
+ description: z.ZodOptional<z.ZodString>;
2298
+ variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
1471
2299
  name: z.ZodString;
1472
2300
  value: z.ZodString;
1473
2301
  }, z.core.$strip>>>;
1474
2302
  }, z.core.$strip>;
1475
- type CreateWorkspaceEnvironmentRequest = z.infer<typeof CreateWorkspaceEnvironmentRequest>;
2303
+ /** @deprecated use CreateVariableSetRequest */
2304
+ type CreateWorkspaceEnvironmentRequest = CreateVariableSetRequest;
2305
+ declare const UpdateVariableSetRequest: z.ZodObject<{
2306
+ name: z.ZodOptional<z.ZodString>;
2307
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2308
+ }, z.core.$strip>;
2309
+ type UpdateVariableSetRequest = z.infer<typeof UpdateVariableSetRequest>;
2310
+ /** @deprecated use UpdateVariableSetRequest */
1476
2311
  declare const UpdateWorkspaceEnvironmentRequest: z.ZodObject<{
1477
2312
  name: z.ZodOptional<z.ZodString>;
1478
2313
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
2314
  }, z.core.$strip>;
1480
- type UpdateWorkspaceEnvironmentRequest = z.infer<typeof UpdateWorkspaceEnvironmentRequest>;
2315
+ /** @deprecated use UpdateVariableSetRequest */
2316
+ type UpdateWorkspaceEnvironmentRequest = UpdateVariableSetRequest;
2317
+ declare const SetVariableSetVariableRequest: z.ZodObject<{
2318
+ value: z.ZodString;
2319
+ }, z.core.$strip>;
2320
+ type SetVariableSetVariableRequest = z.infer<typeof SetVariableSetVariableRequest>;
2321
+ /** @deprecated use SetVariableSetVariableRequest */
1481
2322
  declare const SetWorkspaceEnvironmentVariableRequest: z.ZodObject<{
1482
2323
  value: z.ZodString;
1483
2324
  }, z.core.$strip>;
1484
- type SetWorkspaceEnvironmentVariableRequest = z.infer<typeof SetWorkspaceEnvironmentVariableRequest>;
2325
+ /** @deprecated use SetVariableSetVariableRequest */
2326
+ type SetWorkspaceEnvironmentVariableRequest = SetVariableSetVariableRequest;
2327
+ declare const RigCheck: z.ZodObject<{
2328
+ name: z.ZodString;
2329
+ command: z.ZodString;
2330
+ }, z.core.$strip>;
2331
+ type RigCheck = z.infer<typeof RigCheck>;
2332
+ declare const RigVersion: z.ZodObject<{
2333
+ id: z.ZodString;
2334
+ rigId: z.ZodString;
2335
+ version: z.ZodNumber;
2336
+ image: z.ZodNullable<z.ZodString>;
2337
+ setupScript: z.ZodNullable<z.ZodString>;
2338
+ checks: z.ZodArray<z.ZodObject<{
2339
+ name: z.ZodString;
2340
+ command: z.ZodString;
2341
+ }, z.core.$strip>>;
2342
+ credentialHooks: z.ZodArray<z.ZodString>;
2343
+ defaultVariableSetIds: z.ZodArray<z.ZodString>;
2344
+ changelog: z.ZodNullable<z.ZodString>;
2345
+ createdBy: z.ZodNullable<z.ZodString>;
2346
+ active: z.ZodBoolean;
2347
+ createdAt: z.ZodString;
2348
+ }, z.core.$strip>;
2349
+ type RigVersion = z.infer<typeof RigVersion>;
2350
+ declare const RigVerificationHealth: z.ZodObject<{
2351
+ checkHealth: z.ZodEnum<{
2352
+ unknown: "unknown";
2353
+ passing: "passing";
2354
+ failing: "failing";
2355
+ }>;
2356
+ lastVerifiedAt: z.ZodNullable<z.ZodString>;
2357
+ }, z.core.$strip>;
2358
+ type RigVerificationHealth = z.infer<typeof RigVerificationHealth>;
2359
+ declare const Rig: z.ZodObject<{
2360
+ id: z.ZodString;
2361
+ accountId: z.ZodString;
2362
+ workspaceId: z.ZodString;
2363
+ name: z.ZodString;
2364
+ description: z.ZodNullable<z.ZodString>;
2365
+ createdBy: z.ZodNullable<z.ZodString>;
2366
+ activeVersion: z.ZodNullable<z.ZodObject<{
2367
+ id: z.ZodString;
2368
+ rigId: z.ZodString;
2369
+ version: z.ZodNumber;
2370
+ image: z.ZodNullable<z.ZodString>;
2371
+ setupScript: z.ZodNullable<z.ZodString>;
2372
+ checks: z.ZodArray<z.ZodObject<{
2373
+ name: z.ZodString;
2374
+ command: z.ZodString;
2375
+ }, z.core.$strip>>;
2376
+ credentialHooks: z.ZodArray<z.ZodString>;
2377
+ defaultVariableSetIds: z.ZodArray<z.ZodString>;
2378
+ changelog: z.ZodNullable<z.ZodString>;
2379
+ createdBy: z.ZodNullable<z.ZodString>;
2380
+ active: z.ZodBoolean;
2381
+ createdAt: z.ZodString;
2382
+ }, z.core.$strip>>;
2383
+ activeVersionHealth: z.ZodNullable<z.ZodObject<{
2384
+ checkHealth: z.ZodEnum<{
2385
+ unknown: "unknown";
2386
+ passing: "passing";
2387
+ failing: "failing";
2388
+ }>;
2389
+ lastVerifiedAt: z.ZodNullable<z.ZodString>;
2390
+ }, z.core.$strip>>;
2391
+ versionCount: z.ZodNumber;
2392
+ createdAt: z.ZodString;
2393
+ updatedAt: z.ZodString;
2394
+ }, z.core.$strip>;
2395
+ type Rig = z.infer<typeof Rig>;
2396
+ declare const RigChangeKind: z.ZodEnum<{
2397
+ setup_append: "setup_append";
2398
+ definition_edit: "definition_edit";
2399
+ }>;
2400
+ type RigChangeKind = z.infer<typeof RigChangeKind>;
2401
+ declare const RigChangeStatus: z.ZodEnum<{
2402
+ failed: "failed";
2403
+ proposed: "proposed";
2404
+ rejected: "rejected";
2405
+ verifying: "verifying";
2406
+ merged: "merged";
2407
+ }>;
2408
+ type RigChangeStatus = z.infer<typeof RigChangeStatus>;
2409
+ declare const RigCheckResult: z.ZodObject<{
2410
+ name: z.ZodString;
2411
+ command: z.ZodString;
2412
+ exitCode: z.ZodNullable<z.ZodNumber>;
2413
+ output: z.ZodOptional<z.ZodString>;
2414
+ }, z.core.$strip>;
2415
+ type RigCheckResult = z.infer<typeof RigCheckResult>;
2416
+ declare const RigChangeVerification: z.ZodObject<{
2417
+ startedAt: z.ZodOptional<z.ZodString>;
2418
+ finishedAt: z.ZodOptional<z.ZodString>;
2419
+ log: z.ZodOptional<z.ZodString>;
2420
+ checkResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2421
+ name: z.ZodString;
2422
+ command: z.ZodString;
2423
+ exitCode: z.ZodNullable<z.ZodNumber>;
2424
+ output: z.ZodOptional<z.ZodString>;
2425
+ }, z.core.$strip>>>;
2426
+ }, z.core.$loose>;
2427
+ type RigChangeVerification = z.infer<typeof RigChangeVerification>;
2428
+ declare const RigChange: z.ZodObject<{
2429
+ id: z.ZodString;
2430
+ rigId: z.ZodString;
2431
+ baseVersionId: z.ZodNullable<z.ZodString>;
2432
+ kind: z.ZodEnum<{
2433
+ setup_append: "setup_append";
2434
+ definition_edit: "definition_edit";
2435
+ }>;
2436
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2437
+ status: z.ZodEnum<{
2438
+ failed: "failed";
2439
+ proposed: "proposed";
2440
+ rejected: "rejected";
2441
+ verifying: "verifying";
2442
+ merged: "merged";
2443
+ }>;
2444
+ proposedBy: z.ZodNullable<z.ZodString>;
2445
+ verification: z.ZodNullable<z.ZodObject<{
2446
+ startedAt: z.ZodOptional<z.ZodString>;
2447
+ finishedAt: z.ZodOptional<z.ZodString>;
2448
+ log: z.ZodOptional<z.ZodString>;
2449
+ checkResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2450
+ name: z.ZodString;
2451
+ command: z.ZodString;
2452
+ exitCode: z.ZodNullable<z.ZodNumber>;
2453
+ output: z.ZodOptional<z.ZodString>;
2454
+ }, z.core.$strip>>>;
2455
+ }, z.core.$loose>>;
2456
+ resultVersionId: z.ZodNullable<z.ZodString>;
2457
+ createdAt: z.ZodString;
2458
+ updatedAt: z.ZodString;
2459
+ }, z.core.$strip>;
2460
+ type RigChange = z.infer<typeof RigChange>;
2461
+ declare const CreateRigRequest: z.ZodObject<{
2462
+ name: z.ZodString;
2463
+ description: z.ZodOptional<z.ZodString>;
2464
+ image: z.ZodOptional<z.ZodString>;
2465
+ setupScript: z.ZodOptional<z.ZodString>;
2466
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2467
+ name: z.ZodString;
2468
+ command: z.ZodString;
2469
+ }, z.core.$strip>>>;
2470
+ credentialHooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
2471
+ defaultVariableSetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2472
+ }, z.core.$strip>;
2473
+ type CreateRigRequest = z.infer<typeof CreateRigRequest>;
2474
+ declare const UpdateRigRequest: z.ZodObject<{
2475
+ name: z.ZodOptional<z.ZodString>;
2476
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2477
+ }, z.core.$strip>;
2478
+ type UpdateRigRequest = z.infer<typeof UpdateRigRequest>;
2479
+ declare const RigSetupAppendPayload: z.ZodObject<{
2480
+ command: z.ZodString;
2481
+ note: z.ZodOptional<z.ZodString>;
2482
+ }, z.core.$strip>;
2483
+ type RigSetupAppendPayload = z.infer<typeof RigSetupAppendPayload>;
2484
+ declare const RigDefinitionEditPayload: z.ZodObject<{
2485
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2486
+ setupScript: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2487
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2488
+ name: z.ZodString;
2489
+ command: z.ZodString;
2490
+ }, z.core.$strip>>>;
2491
+ credentialHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
2492
+ defaultVariableSetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2493
+ changelog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2494
+ }, z.core.$strip>;
2495
+ type RigDefinitionEditPayload = z.infer<typeof RigDefinitionEditPayload>;
2496
+ declare const ProposeRigChangeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
2497
+ kind: z.ZodLiteral<"setup_append">;
2498
+ payload: z.ZodObject<{
2499
+ command: z.ZodString;
2500
+ note: z.ZodOptional<z.ZodString>;
2501
+ }, z.core.$strip>;
2502
+ }, z.core.$strip>, z.ZodObject<{
2503
+ kind: z.ZodLiteral<"definition_edit">;
2504
+ payload: z.ZodObject<{
2505
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2506
+ setupScript: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2507
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2508
+ name: z.ZodString;
2509
+ command: z.ZodString;
2510
+ }, z.core.$strip>>>;
2511
+ credentialHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
2512
+ defaultVariableSetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2513
+ changelog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2514
+ }, z.core.$strip>;
2515
+ }, z.core.$strip>], "kind">;
2516
+ type ProposeRigChangeRequest = z.infer<typeof ProposeRigChangeRequest>;
1485
2517
  declare const ScheduledTaskStatus: z.ZodEnum<{
1486
- active: "active";
1487
2518
  paused: "paused";
2519
+ active: "active";
1488
2520
  }>;
1489
2521
  type ScheduledTaskStatus = z.infer<typeof ScheduledTaskStatus>;
1490
2522
  declare const ScheduledTaskRunStatus: z.ZodEnum<{
@@ -1542,6 +2574,15 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
1542
2574
  ref: z.ZodString;
1543
2575
  mountPath: z.ZodOptional<z.ZodString>;
1544
2576
  subpath: z.ZodOptional<z.ZodString>;
2577
+ provider: z.ZodOptional<z.ZodEnum<{
2578
+ github: "github";
2579
+ gitlab: "gitlab";
2580
+ azure_devops: "azure_devops";
2581
+ }>>;
2582
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2583
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2584
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2585
+ connectionId: z.ZodOptional<z.ZodString>;
1545
2586
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
1546
2587
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1547
2588
  }, z.core.$strip>, z.ZodObject<{
@@ -1590,8 +2631,8 @@ declare const ScheduledTask: z.ZodObject<{
1590
2631
  workspaceId: z.ZodString;
1591
2632
  name: z.ZodString;
1592
2633
  status: z.ZodEnum<{
1593
- active: "active";
1594
2634
  paused: "paused";
2635
+ active: "active";
1595
2636
  }>;
1596
2637
  schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
1597
2638
  type: z.ZodLiteral<"once">;
@@ -1635,6 +2676,15 @@ declare const ScheduledTask: z.ZodObject<{
1635
2676
  ref: z.ZodString;
1636
2677
  mountPath: z.ZodOptional<z.ZodString>;
1637
2678
  subpath: z.ZodOptional<z.ZodString>;
2679
+ provider: z.ZodOptional<z.ZodEnum<{
2680
+ github: "github";
2681
+ gitlab: "gitlab";
2682
+ azure_devops: "azure_devops";
2683
+ }>>;
2684
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2685
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2686
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2687
+ connectionId: z.ZodOptional<z.ZodString>;
1638
2688
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
1639
2689
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1640
2690
  }, z.core.$strip>, z.ZodObject<{
@@ -1677,7 +2727,9 @@ declare const ScheduledTask: z.ZodObject<{
1677
2727
  }, z.core.$strip>>;
1678
2728
  }, z.core.$strip>;
1679
2729
  reusableSessionId: z.ZodNullable<z.ZodString>;
1680
- environmentId: z.ZodNullable<z.ZodString>;
2730
+ variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2731
+ environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2732
+ rigId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1681
2733
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1682
2734
  createdAt: z.ZodString;
1683
2735
  updatedAt: z.ZodString;
@@ -1706,7 +2758,7 @@ declare const ScheduledTaskRun: z.ZodObject<{
1706
2758
  updatedAt: z.ZodString;
1707
2759
  }, z.core.$strip>;
1708
2760
  type ScheduledTaskRun = z.infer<typeof ScheduledTaskRun>;
1709
- declare const CreateScheduledTaskRequest: z.ZodObject<{
2761
+ declare const CreateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
1710
2762
  name: z.ZodString;
1711
2763
  schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
1712
2764
  type: z.ZodLiteral<"once">;
@@ -1749,6 +2801,15 @@ declare const CreateScheduledTaskRequest: z.ZodObject<{
1749
2801
  ref: z.ZodString;
1750
2802
  mountPath: z.ZodOptional<z.ZodString>;
1751
2803
  subpath: z.ZodOptional<z.ZodString>;
2804
+ provider: z.ZodOptional<z.ZodEnum<{
2805
+ github: "github";
2806
+ gitlab: "gitlab";
2807
+ azure_devops: "azure_devops";
2808
+ }>>;
2809
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2810
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2811
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2812
+ connectionId: z.ZodOptional<z.ZodString>;
1752
2813
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
1753
2814
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1754
2815
  }, z.core.$strip>, z.ZodObject<{
@@ -1791,14 +2852,16 @@ declare const CreateScheduledTaskRequest: z.ZodObject<{
1791
2852
  }, z.core.$strip>>;
1792
2853
  }, z.core.$strip>;
1793
2854
  status: z.ZodDefault<z.ZodEnum<{
1794
- active: "active";
1795
2855
  paused: "paused";
2856
+ active: "active";
1796
2857
  }>>;
2858
+ variableSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1797
2859
  environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2860
+ rigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1798
2861
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1799
- }, z.core.$strip>;
2862
+ }, z.core.$strip>>;
1800
2863
  type CreateScheduledTaskRequest = z.infer<typeof CreateScheduledTaskRequest>;
1801
- declare const UpdateScheduledTaskRequest: z.ZodObject<{
2864
+ declare const UpdateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
1802
2865
  name: z.ZodOptional<z.ZodString>;
1803
2866
  schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1804
2867
  type: z.ZodLiteral<"once">;
@@ -1841,6 +2904,15 @@ declare const UpdateScheduledTaskRequest: z.ZodObject<{
1841
2904
  ref: z.ZodString;
1842
2905
  mountPath: z.ZodOptional<z.ZodString>;
1843
2906
  subpath: z.ZodOptional<z.ZodString>;
2907
+ provider: z.ZodOptional<z.ZodEnum<{
2908
+ github: "github";
2909
+ gitlab: "gitlab";
2910
+ azure_devops: "azure_devops";
2911
+ }>>;
2912
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2913
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2914
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2915
+ connectionId: z.ZodOptional<z.ZodString>;
1844
2916
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
1845
2917
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
1846
2918
  }, z.core.$strip>, z.ZodObject<{
@@ -1883,12 +2955,14 @@ declare const UpdateScheduledTaskRequest: z.ZodObject<{
1883
2955
  }, z.core.$strip>>;
1884
2956
  }, z.core.$strip>>;
1885
2957
  status: z.ZodOptional<z.ZodEnum<{
1886
- active: "active";
1887
2958
  paused: "paused";
2959
+ active: "active";
1888
2960
  }>>;
2961
+ variableSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1889
2962
  environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2963
+ rigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1890
2964
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1891
- }, z.core.$strip>;
2965
+ }, z.core.$strip>>;
1892
2966
  type UpdateScheduledTaskRequest = z.infer<typeof UpdateScheduledTaskRequest>;
1893
2967
  /**
1894
2968
  * Manual-trigger body. `triggerId` is a client-supplied idempotency token: a
@@ -1984,7 +3058,7 @@ declare const CapabilityPackSkill: z.ZodObject<{
1984
3058
  }, z.core.$strip>>;
1985
3059
  }, z.core.$strip>;
1986
3060
  type CapabilityPackSkill = z.infer<typeof CapabilityPackSkill>;
1987
- declare const CapabilityPack: z.ZodObject<{
3061
+ declare const CapabilityPack: z.ZodPreprocess<z.ZodObject<{
1988
3062
  id: z.ZodString;
1989
3063
  name: z.ZodString;
1990
3064
  description: z.ZodString;
@@ -2066,15 +3140,15 @@ declare const CapabilityPack: z.ZodObject<{
2066
3140
  }>>;
2067
3141
  prompt: z.ZodOptional<z.ZodString>;
2068
3142
  }, z.core.$strip>>>;
2069
- environment: z.ZodOptional<z.ZodObject<{
3143
+ variableSet: z.ZodOptional<z.ZodObject<{
2070
3144
  description: z.ZodString;
2071
3145
  requiredVariables: z.ZodDefault<z.ZodArray<z.ZodString>>;
2072
3146
  required: z.ZodDefault<z.ZodBoolean>;
2073
3147
  }, z.core.$strip>>;
2074
3148
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2075
- }, z.core.$strip>;
3149
+ }, z.core.$strip>>;
2076
3150
  type CapabilityPack = z.infer<typeof CapabilityPack>;
2077
- declare const RegisterCapabilityPackRequest: z.ZodObject<{
3151
+ declare const RegisterCapabilityPackRequest: z.ZodPreprocess<z.ZodObject<{
2078
3152
  id: z.ZodString;
2079
3153
  name: z.ZodString;
2080
3154
  description: z.ZodString;
@@ -2156,18 +3230,18 @@ declare const RegisterCapabilityPackRequest: z.ZodObject<{
2156
3230
  }>>;
2157
3231
  prompt: z.ZodOptional<z.ZodString>;
2158
3232
  }, z.core.$strip>>>;
2159
- environment: z.ZodOptional<z.ZodObject<{
3233
+ variableSet: z.ZodOptional<z.ZodObject<{
2160
3234
  description: z.ZodString;
2161
3235
  requiredVariables: z.ZodDefault<z.ZodArray<z.ZodString>>;
2162
3236
  required: z.ZodDefault<z.ZodBoolean>;
2163
3237
  }, z.core.$strip>>;
2164
3238
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2165
- }, z.core.$strip>;
3239
+ }, z.core.$strip>>;
2166
3240
  type RegisterCapabilityPackRequest = z.infer<typeof RegisterCapabilityPackRequest>;
2167
3241
  declare const WorkspaceRegisteredPack: z.ZodObject<{
2168
3242
  accountId: z.ZodString;
2169
3243
  workspaceId: z.ZodString;
2170
- pack: z.ZodObject<{
3244
+ pack: z.ZodPreprocess<z.ZodObject<{
2171
3245
  id: z.ZodString;
2172
3246
  name: z.ZodString;
2173
3247
  description: z.ZodString;
@@ -2249,13 +3323,13 @@ declare const WorkspaceRegisteredPack: z.ZodObject<{
2249
3323
  }>>;
2250
3324
  prompt: z.ZodOptional<z.ZodString>;
2251
3325
  }, z.core.$strip>>>;
2252
- environment: z.ZodOptional<z.ZodObject<{
3326
+ variableSet: z.ZodOptional<z.ZodObject<{
2253
3327
  description: z.ZodString;
2254
3328
  requiredVariables: z.ZodDefault<z.ZodArray<z.ZodString>>;
2255
3329
  required: z.ZodDefault<z.ZodBoolean>;
2256
3330
  }, z.core.$strip>>;
2257
3331
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2258
- }, z.core.$strip>;
3332
+ }, z.core.$strip>>;
2259
3333
  createdAt: z.ZodString;
2260
3334
  updatedAt: z.ZodString;
2261
3335
  }, z.core.$strip>;
@@ -2279,10 +3353,11 @@ declare const PackInstallation: z.ZodObject<{
2279
3353
  updatedAt: z.ZodString;
2280
3354
  }, z.core.$strip>;
2281
3355
  type PackInstallation = z.infer<typeof PackInstallation>;
2282
- declare const EnablePackRequest: z.ZodObject<{
3356
+ declare const EnablePackRequest: z.ZodPreprocess<z.ZodObject<{
3357
+ variableSetId: z.ZodOptional<z.ZodString>;
2283
3358
  environmentId: z.ZodOptional<z.ZodString>;
2284
3359
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2285
- }, z.core.$strip>;
3360
+ }, z.core.$strip>>;
2286
3361
  type EnablePackRequest = z.infer<typeof EnablePackRequest>;
2287
3362
  declare const SocialProvider: z.ZodEnum<{
2288
3363
  custom: "custom";
@@ -2388,72 +3463,288 @@ declare const CreateSocialPostRequest: z.ZodObject<{
2388
3463
  raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2389
3464
  }, z.core.$strip>;
2390
3465
  type CreateSocialPostRequest = z.infer<typeof CreateSocialPostRequest>;
2391
- declare const MarketingDailyAnalysisTaskRequest: z.ZodObject<{
2392
- name: z.ZodOptional<z.ZodString>;
2393
- connectionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2394
- documentBaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2395
- timeZone: z.ZodDefault<z.ZodString>;
2396
- hour: z.ZodDefault<z.ZodNumber>;
2397
- minute: z.ZodDefault<z.ZodNumber>;
2398
- promptInstructions: z.ZodOptional<z.ZodString>;
2399
- status: z.ZodDefault<z.ZodEnum<{
2400
- active: "active";
2401
- paused: "paused";
2402
- }>>;
2403
- runMode: z.ZodDefault<z.ZodEnum<{
2404
- new_session_per_run: "new_session_per_run";
2405
- reusable_session: "reusable_session";
2406
- }>>;
2407
- overlapPolicy: z.ZodDefault<z.ZodEnum<{
2408
- allow_concurrent: "allow_concurrent";
2409
- skip: "skip";
2410
- buffer_one: "buffer_one";
2411
- }>>;
2412
- }, z.core.$strip>;
2413
- type MarketingDailyAnalysisTaskRequest = z.infer<typeof MarketingDailyAnalysisTaskRequest>;
2414
- declare const CapabilityKind: z.ZodEnum<{
2415
- mcp: "mcp";
2416
- api: "api";
2417
- pack: "pack";
2418
- skill: "skill";
2419
- plugin: "plugin";
2420
- }>;
2421
- type CapabilityKind = z.infer<typeof CapabilityKind>;
2422
- declare const CapabilitySource: z.ZodEnum<{
2423
- configured: "configured";
2424
- manual: "manual";
2425
- built_in: "built_in";
2426
- public_registry: "public_registry";
3466
+ declare const ConnectionKind: z.ZodEnum<{
3467
+ api_key: "api_key";
3468
+ oauth2: "oauth2";
3469
+ app_install: "app_install";
3470
+ delegated: "delegated";
2427
3471
  }>;
2428
- type CapabilitySource = z.infer<typeof CapabilitySource>;
2429
- declare const CapabilityInstallationStatus: z.ZodEnum<{
2430
- disabled: "disabled";
3472
+ type ConnectionKind = z.infer<typeof ConnectionKind>;
3473
+ declare const ConnectionStatus: z.ZodEnum<{
3474
+ error: "error";
2431
3475
  active: "active";
3476
+ needs_reauth: "needs_reauth";
3477
+ revoked: "revoked";
2432
3478
  }>;
2433
- type CapabilityInstallationStatus = z.infer<typeof CapabilityInstallationStatus>;
2434
- declare const CapabilityRuntime: z.ZodObject<{
2435
- available: z.ZodDefault<z.ZodBoolean>;
2436
- mcpServerId: z.ZodOptional<z.ZodString>;
2437
- transport: z.ZodOptional<z.ZodString>;
2438
- notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2439
- }, z.core.$strip>;
2440
- type CapabilityRuntime = z.infer<typeof CapabilityRuntime>;
2441
- declare const CapabilityCatalogItem: z.ZodObject<{
3479
+ type ConnectionStatus = z.infer<typeof ConnectionStatus>;
3480
+ declare const McpServerConnectionRef: z.ZodObject<{
3481
+ connectionId: z.ZodOptional<z.ZodString>;
3482
+ providerDomain: z.ZodString;
3483
+ kind: z.ZodOptional<z.ZodEnum<{
3484
+ api_key: "api_key";
3485
+ oauth2: "oauth2";
3486
+ app_install: "app_install";
3487
+ delegated: "delegated";
3488
+ }>>;
3489
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3490
+ resource: z.ZodOptional<z.ZodString>;
3491
+ subjectScope: z.ZodOptional<z.ZodEnum<{
3492
+ workspace: "workspace";
3493
+ subject: "subject";
3494
+ }>>;
3495
+ }, z.core.$strict>;
3496
+ type McpServerConnectionRef = z.infer<typeof McpServerConnectionRef>;
3497
+ declare const ConnectionMetadata: z.ZodObject<{
2442
3498
  id: z.ZodString;
2443
- accountId: z.ZodOptional<z.ZodString>;
2444
- workspaceId: z.ZodOptional<z.ZodString>;
3499
+ accountId: z.ZodString;
3500
+ workspaceId: z.ZodString;
3501
+ subjectId: z.ZodNullable<z.ZodString>;
3502
+ providerDomain: z.ZodString;
2445
3503
  kind: z.ZodEnum<{
2446
- mcp: "mcp";
2447
- api: "api";
2448
- pack: "pack";
2449
- skill: "skill";
2450
- plugin: "plugin";
3504
+ api_key: "api_key";
3505
+ oauth2: "oauth2";
3506
+ app_install: "app_install";
3507
+ delegated: "delegated";
2451
3508
  }>;
2452
- source: z.ZodEnum<{
2453
- configured: "configured";
2454
- manual: "manual";
2455
- built_in: "built_in";
2456
- public_registry: "public_registry";
3509
+ status: z.ZodEnum<{
3510
+ error: "error";
3511
+ active: "active";
3512
+ needs_reauth: "needs_reauth";
3513
+ revoked: "revoked";
3514
+ }>;
3515
+ grantedScopes: z.ZodArray<z.ZodString>;
3516
+ expiresAt: z.ZodNullable<z.ZodString>;
3517
+ lastRefreshAt: z.ZodNullable<z.ZodString>;
3518
+ lastUsedAt: z.ZodNullable<z.ZodString>;
3519
+ lastError: z.ZodNullable<z.ZodString>;
3520
+ version: z.ZodNumber;
3521
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3522
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
3523
+ updatedBySubjectId: z.ZodNullable<z.ZodString>;
3524
+ createdAt: z.ZodString;
3525
+ updatedAt: z.ZodString;
3526
+ }, z.core.$strip>;
3527
+ type ConnectionMetadata = z.infer<typeof ConnectionMetadata>;
3528
+ declare const ConnectionCredentialBundle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3529
+ type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
3530
+ declare const CreateConnectionRequest: z.ZodObject<{
3531
+ providerDomain: z.ZodString;
3532
+ kind: z.ZodEnum<{
3533
+ api_key: "api_key";
3534
+ oauth2: "oauth2";
3535
+ app_install: "app_install";
3536
+ delegated: "delegated";
3537
+ }>;
3538
+ subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3539
+ credential: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3540
+ grantedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3541
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3542
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3543
+ }, z.core.$strip>;
3544
+ type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
3545
+ declare const UpdateConnectionRequest: z.ZodObject<{
3546
+ providerDomain: z.ZodOptional<z.ZodString>;
3547
+ subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3548
+ kind: z.ZodOptional<z.ZodEnum<{
3549
+ api_key: "api_key";
3550
+ oauth2: "oauth2";
3551
+ app_install: "app_install";
3552
+ delegated: "delegated";
3553
+ }>>;
3554
+ status: z.ZodOptional<z.ZodEnum<{
3555
+ error: "error";
3556
+ active: "active";
3557
+ needs_reauth: "needs_reauth";
3558
+ revoked: "revoked";
3559
+ }>>;
3560
+ credential: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3561
+ grantedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3562
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3563
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3564
+ }, z.core.$strip>;
3565
+ type UpdateConnectionRequest = z.infer<typeof UpdateConnectionRequest>;
3566
+ declare const ConnectionResponse: z.ZodObject<{
3567
+ connection: z.ZodObject<{
3568
+ id: z.ZodString;
3569
+ accountId: z.ZodString;
3570
+ workspaceId: z.ZodString;
3571
+ subjectId: z.ZodNullable<z.ZodString>;
3572
+ providerDomain: z.ZodString;
3573
+ kind: z.ZodEnum<{
3574
+ api_key: "api_key";
3575
+ oauth2: "oauth2";
3576
+ app_install: "app_install";
3577
+ delegated: "delegated";
3578
+ }>;
3579
+ status: z.ZodEnum<{
3580
+ error: "error";
3581
+ active: "active";
3582
+ needs_reauth: "needs_reauth";
3583
+ revoked: "revoked";
3584
+ }>;
3585
+ grantedScopes: z.ZodArray<z.ZodString>;
3586
+ expiresAt: z.ZodNullable<z.ZodString>;
3587
+ lastRefreshAt: z.ZodNullable<z.ZodString>;
3588
+ lastUsedAt: z.ZodNullable<z.ZodString>;
3589
+ lastError: z.ZodNullable<z.ZodString>;
3590
+ version: z.ZodNumber;
3591
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3592
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
3593
+ updatedBySubjectId: z.ZodNullable<z.ZodString>;
3594
+ createdAt: z.ZodString;
3595
+ updatedAt: z.ZodString;
3596
+ }, z.core.$strip>;
3597
+ }, z.core.$strip>;
3598
+ type ConnectionResponse = z.infer<typeof ConnectionResponse>;
3599
+ declare const ListConnectionsResponse: z.ZodObject<{
3600
+ connections: z.ZodArray<z.ZodObject<{
3601
+ id: z.ZodString;
3602
+ accountId: z.ZodString;
3603
+ workspaceId: z.ZodString;
3604
+ subjectId: z.ZodNullable<z.ZodString>;
3605
+ providerDomain: z.ZodString;
3606
+ kind: z.ZodEnum<{
3607
+ api_key: "api_key";
3608
+ oauth2: "oauth2";
3609
+ app_install: "app_install";
3610
+ delegated: "delegated";
3611
+ }>;
3612
+ status: z.ZodEnum<{
3613
+ error: "error";
3614
+ active: "active";
3615
+ needs_reauth: "needs_reauth";
3616
+ revoked: "revoked";
3617
+ }>;
3618
+ grantedScopes: z.ZodArray<z.ZodString>;
3619
+ expiresAt: z.ZodNullable<z.ZodString>;
3620
+ lastRefreshAt: z.ZodNullable<z.ZodString>;
3621
+ lastUsedAt: z.ZodNullable<z.ZodString>;
3622
+ lastError: z.ZodNullable<z.ZodString>;
3623
+ version: z.ZodNumber;
3624
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3625
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
3626
+ updatedBySubjectId: z.ZodNullable<z.ZodString>;
3627
+ createdAt: z.ZodString;
3628
+ updatedAt: z.ZodString;
3629
+ }, z.core.$strip>>;
3630
+ }, z.core.$strip>;
3631
+ type ListConnectionsResponse = z.infer<typeof ListConnectionsResponse>;
3632
+ declare const OAuthStartRequest: z.ZodObject<{
3633
+ providerDomain: z.ZodOptional<z.ZodString>;
3634
+ mcpUrl: z.ZodOptional<z.ZodString>;
3635
+ resource: z.ZodOptional<z.ZodString>;
3636
+ requestedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3637
+ returnPath: z.ZodOptional<z.ZodString>;
3638
+ connectionId: z.ZodOptional<z.ZodString>;
3639
+ oauthClient: z.ZodOptional<z.ZodObject<{
3640
+ clientId: z.ZodString;
3641
+ clientSecret: z.ZodOptional<z.ZodString>;
3642
+ tokenEndpointAuthMethod: z.ZodOptional<z.ZodEnum<{
3643
+ none: "none";
3644
+ client_secret_post: "client_secret_post";
3645
+ client_secret_basic: "client_secret_basic";
3646
+ }>>;
3647
+ }, z.core.$strip>>;
3648
+ }, z.core.$strip>;
3649
+ type OAuthStartRequest = z.infer<typeof OAuthStartRequest>;
3650
+ declare const OAuthStartResponse: z.ZodObject<{
3651
+ state: z.ZodString;
3652
+ authorizationUrl: z.ZodNullable<z.ZodString>;
3653
+ expiresAt: z.ZodString;
3654
+ }, z.core.$strip>;
3655
+ type OAuthStartResponse = z.infer<typeof OAuthStartResponse>;
3656
+ declare const IntegrationClientMetadata: z.ZodObject<{
3657
+ client_id: z.ZodString;
3658
+ client_name: z.ZodLiteral<"OpenGeni">;
3659
+ redirect_uris: z.ZodArray<z.ZodString>;
3660
+ token_endpoint_auth_method: z.ZodLiteral<"none">;
3661
+ grant_types: z.ZodArray<z.ZodEnum<{
3662
+ authorization_code: "authorization_code";
3663
+ refresh_token: "refresh_token";
3664
+ }>>;
3665
+ response_types: z.ZodArray<z.ZodLiteral<"code">>;
3666
+ }, z.core.$strip>;
3667
+ type IntegrationClientMetadata = z.infer<typeof IntegrationClientMetadata>;
3668
+ declare const MarketingDailyAnalysisTaskRequest: z.ZodObject<{
3669
+ name: z.ZodOptional<z.ZodString>;
3670
+ connectionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3671
+ documentBaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3672
+ timeZone: z.ZodDefault<z.ZodString>;
3673
+ hour: z.ZodDefault<z.ZodNumber>;
3674
+ minute: z.ZodDefault<z.ZodNumber>;
3675
+ promptInstructions: z.ZodOptional<z.ZodString>;
3676
+ status: z.ZodDefault<z.ZodEnum<{
3677
+ paused: "paused";
3678
+ active: "active";
3679
+ }>>;
3680
+ runMode: z.ZodDefault<z.ZodEnum<{
3681
+ new_session_per_run: "new_session_per_run";
3682
+ reusable_session: "reusable_session";
3683
+ }>>;
3684
+ overlapPolicy: z.ZodDefault<z.ZodEnum<{
3685
+ allow_concurrent: "allow_concurrent";
3686
+ skip: "skip";
3687
+ buffer_one: "buffer_one";
3688
+ }>>;
3689
+ }, z.core.$strip>;
3690
+ type MarketingDailyAnalysisTaskRequest = z.infer<typeof MarketingDailyAnalysisTaskRequest>;
3691
+ declare const CapabilityKind: z.ZodEnum<{
3692
+ mcp: "mcp";
3693
+ api: "api";
3694
+ pack: "pack";
3695
+ skill: "skill";
3696
+ plugin: "plugin";
3697
+ }>;
3698
+ type CapabilityKind = z.infer<typeof CapabilityKind>;
3699
+ declare const CapabilitySource: z.ZodEnum<{
3700
+ configured: "configured";
3701
+ manual: "manual";
3702
+ built_in: "built_in";
3703
+ public_registry: "public_registry";
3704
+ registry: "registry";
3705
+ }>;
3706
+ type CapabilitySource = z.infer<typeof CapabilitySource>;
3707
+ declare const CapabilityInstallationStatus: z.ZodEnum<{
3708
+ disabled: "disabled";
3709
+ active: "active";
3710
+ }>;
3711
+ type CapabilityInstallationStatus = z.infer<typeof CapabilityInstallationStatus>;
3712
+ declare const CapabilityCatalogAuthKind: z.ZodEnum<{
3713
+ none: "none";
3714
+ unknown: "unknown";
3715
+ api_key: "api_key";
3716
+ oauth2: "oauth2";
3717
+ }>;
3718
+ type CapabilityCatalogAuthKind = z.infer<typeof CapabilityCatalogAuthKind>;
3719
+ declare const CapabilityCatalogTier: z.ZodEnum<{
3720
+ verified: "verified";
3721
+ community: "community";
3722
+ }>;
3723
+ type CapabilityCatalogTier = z.infer<typeof CapabilityCatalogTier>;
3724
+ declare const CapabilityRuntime: z.ZodObject<{
3725
+ available: z.ZodDefault<z.ZodBoolean>;
3726
+ mcpServerId: z.ZodOptional<z.ZodString>;
3727
+ transport: z.ZodOptional<z.ZodString>;
3728
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3729
+ }, z.core.$strip>;
3730
+ type CapabilityRuntime = z.infer<typeof CapabilityRuntime>;
3731
+ declare const CapabilityCatalogItem: z.ZodObject<{
3732
+ id: z.ZodString;
3733
+ accountId: z.ZodOptional<z.ZodString>;
3734
+ workspaceId: z.ZodOptional<z.ZodString>;
3735
+ kind: z.ZodEnum<{
3736
+ mcp: "mcp";
3737
+ api: "api";
3738
+ pack: "pack";
3739
+ skill: "skill";
3740
+ plugin: "plugin";
3741
+ }>;
3742
+ source: z.ZodEnum<{
3743
+ configured: "configured";
3744
+ manual: "manual";
3745
+ built_in: "built_in";
3746
+ public_registry: "public_registry";
3747
+ registry: "registry";
2457
3748
  }>;
2458
3749
  name: z.ZodString;
2459
3750
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2463,6 +3754,26 @@ declare const CapabilityCatalogItem: z.ZodObject<{
2463
3754
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2464
3755
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2465
3756
  authModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3757
+ providerDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3758
+ surfaceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3759
+ transport: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3760
+ mcpUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3761
+ authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3762
+ none: "none";
3763
+ unknown: "unknown";
3764
+ api_key: "api_key";
3765
+ oauth2: "oauth2";
3766
+ }>>>;
3767
+ credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3768
+ tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3769
+ verified: "verified";
3770
+ community: "community";
3771
+ }>>>;
3772
+ provenance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3773
+ logoAssetPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3774
+ importBatchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3775
+ stale: z.ZodDefault<z.ZodBoolean>;
3776
+ staleAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2466
3777
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2467
3778
  kind: z.ZodLiteral<"mcp">;
2468
3779
  id: z.ZodString;
@@ -2476,6 +3787,11 @@ declare const CapabilityCatalogItem: z.ZodObject<{
2476
3787
  }, z.core.$strip>>;
2477
3788
  enabled: z.ZodDefault<z.ZodBoolean>;
2478
3789
  enabledReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3790
+ connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3791
+ connectionId: z.ZodString;
3792
+ providerDomain: z.ZodString;
3793
+ kind: z.ZodString;
3794
+ }, z.core.$strip>>>;
2479
3795
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2480
3796
  createdAt: z.ZodOptional<z.ZodString>;
2481
3797
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -2516,6 +3832,7 @@ declare const CreateCapabilityCatalogItemRequest: z.ZodObject<{
2516
3832
  manual: "manual";
2517
3833
  built_in: "built_in";
2518
3834
  public_registry: "public_registry";
3835
+ registry: "registry";
2519
3836
  }>>;
2520
3837
  name: z.ZodString;
2521
3838
  description: z.ZodOptional<z.ZodString>;
@@ -2528,12 +3845,29 @@ declare const CreateCapabilityCatalogItemRequest: z.ZodObject<{
2528
3845
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2529
3846
  }, z.core.$strip>;
2530
3847
  type CreateCapabilityCatalogItemRequest = z.infer<typeof CreateCapabilityCatalogItemRequest>;
2531
- declare const EnableCapabilityRequest: z.ZodObject<{
3848
+ declare const EnableCapabilityRequest: z.ZodPreprocess<z.ZodObject<{
2532
3849
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2533
3850
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3851
+ connectionRef: z.ZodOptional<z.ZodObject<{
3852
+ connectionId: z.ZodOptional<z.ZodString>;
3853
+ providerDomain: z.ZodString;
3854
+ kind: z.ZodOptional<z.ZodEnum<{
3855
+ api_key: "api_key";
3856
+ oauth2: "oauth2";
3857
+ app_install: "app_install";
3858
+ delegated: "delegated";
3859
+ }>>;
3860
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3861
+ resource: z.ZodOptional<z.ZodString>;
3862
+ subjectScope: z.ZodOptional<z.ZodEnum<{
3863
+ workspace: "workspace";
3864
+ subject: "subject";
3865
+ }>>;
3866
+ }, z.core.$strict>>;
2534
3867
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
3868
+ variableSetId: z.ZodOptional<z.ZodString>;
2535
3869
  environmentId: z.ZodOptional<z.ZodString>;
2536
- }, z.core.$strip>;
3870
+ }, z.core.$strip>>;
2537
3871
  type EnableCapabilityRequest = z.infer<typeof EnableCapabilityRequest>;
2538
3872
  declare const CapabilityCatalogResponse: z.ZodObject<{
2539
3873
  items: z.ZodArray<z.ZodObject<{
@@ -2552,6 +3886,7 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2552
3886
  manual: "manual";
2553
3887
  built_in: "built_in";
2554
3888
  public_registry: "public_registry";
3889
+ registry: "registry";
2555
3890
  }>;
2556
3891
  name: z.ZodString;
2557
3892
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2561,6 +3896,26 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2561
3896
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2562
3897
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2563
3898
  authModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3899
+ providerDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3900
+ surfaceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3901
+ transport: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3902
+ mcpUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3903
+ authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3904
+ none: "none";
3905
+ unknown: "unknown";
3906
+ api_key: "api_key";
3907
+ oauth2: "oauth2";
3908
+ }>>>;
3909
+ credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3910
+ tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3911
+ verified: "verified";
3912
+ community: "community";
3913
+ }>>>;
3914
+ provenance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3915
+ logoAssetPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3916
+ importBatchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3917
+ stale: z.ZodDefault<z.ZodBoolean>;
3918
+ staleAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2564
3919
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2565
3920
  kind: z.ZodLiteral<"mcp">;
2566
3921
  id: z.ZodString;
@@ -2574,6 +3929,11 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2574
3929
  }, z.core.$strip>>;
2575
3930
  enabled: z.ZodDefault<z.ZodBoolean>;
2576
3931
  enabledReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3932
+ connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3933
+ connectionId: z.ZodString;
3934
+ providerDomain: z.ZodString;
3935
+ kind: z.ZodString;
3936
+ }, z.core.$strip>>>;
2577
3937
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2578
3938
  createdAt: z.ZodOptional<z.ZodString>;
2579
3939
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -2618,6 +3978,7 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2618
3978
  manual: "manual";
2619
3979
  built_in: "built_in";
2620
3980
  public_registry: "public_registry";
3981
+ registry: "registry";
2621
3982
  }>;
2622
3983
  name: z.ZodString;
2623
3984
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2627,6 +3988,26 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2627
3988
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2628
3989
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2629
3990
  authModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3991
+ providerDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3992
+ surfaceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3993
+ transport: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3994
+ mcpUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3995
+ authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3996
+ none: "none";
3997
+ unknown: "unknown";
3998
+ api_key: "api_key";
3999
+ oauth2: "oauth2";
4000
+ }>>>;
4001
+ credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4002
+ tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
4003
+ verified: "verified";
4004
+ community: "community";
4005
+ }>>>;
4006
+ provenance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4007
+ logoAssetPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4008
+ importBatchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4009
+ stale: z.ZodDefault<z.ZodBoolean>;
4010
+ staleAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2630
4011
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2631
4012
  kind: z.ZodLiteral<"mcp">;
2632
4013
  id: z.ZodString;
@@ -2640,6 +4021,11 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2640
4021
  }, z.core.$strip>>;
2641
4022
  enabled: z.ZodDefault<z.ZodBoolean>;
2642
4023
  enabledReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4024
+ connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4025
+ connectionId: z.ZodString;
4026
+ providerDomain: z.ZodString;
4027
+ kind: z.ZodString;
4028
+ }, z.core.$strip>>>;
2643
4029
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2644
4030
  createdAt: z.ZodOptional<z.ZodString>;
2645
4031
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -2657,6 +4043,9 @@ declare const Session: z.ZodObject<{
2657
4043
  running: "running";
2658
4044
  idle: "idle";
2659
4045
  requires_action: "requires_action";
4046
+ recovering: "recovering";
4047
+ waiting_capacity: "waiting_capacity";
4048
+ paused: "paused";
2660
4049
  failed: "failed";
2661
4050
  cancelled: "cancelled";
2662
4051
  }>;
@@ -2673,6 +4062,15 @@ declare const Session: z.ZodObject<{
2673
4062
  ref: z.ZodString;
2674
4063
  mountPath: z.ZodOptional<z.ZodString>;
2675
4064
  subpath: z.ZodOptional<z.ZodString>;
4065
+ provider: z.ZodOptional<z.ZodEnum<{
4066
+ github: "github";
4067
+ gitlab: "gitlab";
4068
+ azure_devops: "azure_devops";
4069
+ }>>;
4070
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4071
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4072
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4073
+ connectionId: z.ZodOptional<z.ZodString>;
2676
4074
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
2677
4075
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
2678
4076
  }, z.core.$strip>, z.ZodObject<{
@@ -2708,7 +4106,10 @@ declare const Session: z.ZodObject<{
2708
4106
  sandboxGroupId: z.ZodString;
2709
4107
  activeSandboxId: z.ZodNullable<z.ZodString>;
2710
4108
  activeEpoch: z.ZodNumber;
2711
- environmentId: z.ZodNullable<z.ZodString>;
4109
+ variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4110
+ environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4111
+ rigId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4112
+ rigVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2712
4113
  firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
2713
4114
  "account:read": "account:read";
2714
4115
  "account:admin": "account:admin";
@@ -2735,12 +4136,19 @@ declare const Session: z.ZodObject<{
2735
4136
  "github:manage": "github:manage";
2736
4137
  "github:use": "github:use";
2737
4138
  "api_keys:manage": "api_keys:manage";
4139
+ "connections:read": "connections:read";
4140
+ "connections:write": "connections:write";
2738
4141
  "environments:manage": "environments:manage";
2739
4142
  "environments:use": "environments:use";
4143
+ "variable-sets:manage": "variable-sets:manage";
4144
+ "variable-sets:use": "variable-sets:use";
2740
4145
  "mcp_servers:attach": "mcp_servers:attach";
4146
+ "toolspace:call": "toolspace:call";
2741
4147
  "goals:manage": "goals:manage";
2742
4148
  "enrollments:read": "enrollments:read";
2743
4149
  "enrollments:manage": "enrollments:manage";
4150
+ "rigs:use": "rigs:use";
4151
+ "rigs:manage": "rigs:manage";
2744
4152
  }>>>;
2745
4153
  mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2746
4154
  id: z.ZodString;
@@ -2754,106 +4162,681 @@ declare const Session: z.ZodObject<{
2754
4162
  temporalWorkflowId: z.ZodNullable<z.ZodString>;
2755
4163
  activeTurnId: z.ZodNullable<z.ZodString>;
2756
4164
  lastInputTokens: z.ZodNullable<z.ZodNumber>;
4165
+ queueVersion: z.ZodNumber;
4166
+ queueHeadPosition: z.ZodNumber;
4167
+ queueTailPosition: z.ZodNumber;
4168
+ controlState: z.ZodEnum<{
4169
+ paused: "paused";
4170
+ active: "active";
4171
+ }>;
4172
+ controlGeneration: z.ZodNumber;
4173
+ controlReason: z.ZodNullable<z.ZodString>;
4174
+ controlChangedBy: z.ZodNullable<z.ZodString>;
4175
+ controlChangedAt: z.ZodNullable<z.ZodString>;
4176
+ workspaceRunExceptionGeneration: z.ZodNullable<z.ZodNumber>;
2757
4177
  lastSequence: z.ZodNumber;
2758
4178
  codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
2759
4179
  codexLastCredentialId: z.ZodNullable<z.ZodString>;
4180
+ pinned: z.ZodDefault<z.ZodBoolean>;
4181
+ pinnedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4182
+ pinVersion: z.ZodDefault<z.ZodNumber>;
4183
+ treeStats: z.ZodOptional<z.ZodObject<{
4184
+ directChildren: z.ZodNumber;
4185
+ totalDescendants: z.ZodNumber;
4186
+ runningDescendants: z.ZodNumber;
4187
+ queuedDescendants: z.ZodNumber;
4188
+ attentionDescendants: z.ZodNumber;
4189
+ pausedDescendants: z.ZodNumber;
4190
+ failedDescendants: z.ZodNumber;
4191
+ }, z.core.$strip>>;
2760
4192
  createdAt: z.ZodString;
2761
4193
  updatedAt: z.ZodString;
2762
4194
  }, z.core.$strip>;
2763
4195
  type Session = z.infer<typeof Session>;
2764
- declare const SessionEventType: z.ZodEnum<{
2765
- "session.created": "session.created";
2766
- "session.status.changed": "session.status.changed";
2767
- "session.requiresAction": "session.requiresAction";
2768
- "session.context.compacted": "session.context.compacted";
2769
- "session.context.cleared": "session.context.cleared";
2770
- "user.message": "user.message";
2771
- "user.interrupt": "user.interrupt";
2772
- "user.approvalDecision": "user.approvalDecision";
2773
- "turn.queued": "turn.queued";
2774
- "turn.updated": "turn.updated";
2775
- "turn.started": "turn.started";
2776
- "turn.completed": "turn.completed";
2777
- "turn.failed": "turn.failed";
2778
- "turn.cancelled": "turn.cancelled";
2779
- "turn.preempted": "turn.preempted";
2780
- "agent.message.delta": "agent.message.delta";
2781
- "agent.message.completed": "agent.message.completed";
2782
- "agent.reasoning.delta": "agent.reasoning.delta";
2783
- "agent.toolCall.created": "agent.toolCall.created";
2784
- "agent.toolCall.output": "agent.toolCall.output";
2785
- "agent.updated": "agent.updated";
2786
- "sandbox.operation.started": "sandbox.operation.started";
2787
- "sandbox.operation.completed": "sandbox.operation.completed";
2788
- "sandbox.operation.failed": "sandbox.operation.failed";
2789
- "sandbox.command.output.delta": "sandbox.command.output.delta";
2790
- "artifact.created": "artifact.created";
2791
- "goal.set": "goal.set";
2792
- "goal.updated": "goal.updated";
2793
- "goal.completed": "goal.completed";
2794
- "goal.paused": "goal.paused";
2795
- "goal.resumed": "goal.resumed";
2796
- "goal.continuation": "goal.continuation";
2797
- "stream.url.rotated": "stream.url.rotated";
2798
- "stream.opened": "stream.opened";
2799
- "stream.closed": "stream.closed";
2800
- "stream.revoked": "stream.revoked";
2801
- "recording.started": "recording.started";
2802
- "recording.available": "recording.available";
2803
- "recording.failed": "recording.failed";
2804
- "fs.changed": "fs.changed";
2805
- "git.changed": "git.changed";
2806
- "terminal.pty.started": "terminal.pty.started";
2807
- "terminal.pty.output.delta": "terminal.pty.output.delta";
2808
- "terminal.pty.exited": "terminal.pty.exited";
2809
- "session.title_set": "session.title_set";
2810
- "codex.account.switched": "codex.account.switched";
2811
- }>;
2812
- type SessionEventType = z.infer<typeof SessionEventType>;
2813
- declare const StreamUrlRotatedPayload: z.ZodObject<{
2814
- url: z.ZodString;
2815
- token: z.ZodNullable<z.ZodString>;
2816
- expiresAt: z.ZodNullable<z.ZodString>;
2817
- leaseEpoch: z.ZodNumber;
2818
- transport: z.ZodLiteral<"vnc-ws">;
2819
- viewerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2820
- }, z.core.$strip>;
2821
- type StreamUrlRotatedPayload = z.infer<typeof StreamUrlRotatedPayload>;
2822
- declare const StreamOpenedPayload: z.ZodObject<{
2823
- viewerId: z.ZodString;
2824
- shared: z.ZodDefault<z.ZodBoolean>;
2825
- viewerCount: z.ZodNumber;
2826
- }, z.core.$strip>;
2827
- type StreamOpenedPayload = z.infer<typeof StreamOpenedPayload>;
2828
- declare const StreamClosedPayload: z.ZodObject<{
2829
- viewerId: z.ZodString;
2830
- reason: z.ZodEnum<{
2831
- "client-disconnect": "client-disconnect";
2832
- reaped: "reaped";
2833
- revoked: "revoked";
2834
- "box-rollover": "box-rollover";
2835
- }>;
2836
- viewerCount: z.ZodNumber;
2837
- }, z.core.$strip>;
2838
- type StreamClosedPayload = z.infer<typeof StreamClosedPayload>;
2839
- declare const StreamRevokedPayload: z.ZodObject<{
2840
- viewerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2841
- reason: z.ZodEnum<{
2842
- admin: "admin";
2843
- "grant-revoked": "grant-revoked";
2844
- "session-failed": "session-failed";
2845
- }>;
2846
- }, z.core.$strip>;
2847
- type StreamRevokedPayload = z.infer<typeof StreamRevokedPayload>;
2848
- declare const RecordingMode: z.ZodEnum<{
2849
- manual: "manual";
2850
- "on-turn": "on-turn";
2851
- "on-verify": "on-verify";
2852
- }>;
2853
- type RecordingMode = z.infer<typeof RecordingMode>;
2854
- declare const RecordingCodec: z.ZodEnum<{
2855
- "h264-mp4": "h264-mp4";
2856
- "vp9-webm": "vp9-webm";
4196
+ type SessionSummary = Session;
4197
+ /**
4198
+ * The canonical session-list page. Pinned rows are returned separately and are
4199
+ * excluded from `sessions`, so a cursor can page ordinary recency rows without
4200
+ * duplicating a pin. Pins are filtered by the same parent/search predicates as
4201
+ * ordinary rows and ordered by pinnedAt DESC, id DESC.
4202
+ */
4203
+ declare const SessionListResponse: z.ZodObject<{
4204
+ pinned: z.ZodArray<z.ZodObject<{
4205
+ id: z.ZodString;
4206
+ workspaceId: z.ZodString;
4207
+ accountId: z.ZodString;
4208
+ status: z.ZodEnum<{
4209
+ queued: "queued";
4210
+ running: "running";
4211
+ idle: "idle";
4212
+ requires_action: "requires_action";
4213
+ recovering: "recovering";
4214
+ waiting_capacity: "waiting_capacity";
4215
+ paused: "paused";
4216
+ failed: "failed";
4217
+ cancelled: "cancelled";
4218
+ }>;
4219
+ initialMessage: z.ZodString;
4220
+ title: z.ZodNullable<z.ZodString>;
4221
+ titleSource: z.ZodNullable<z.ZodEnum<{
4222
+ user: "user";
4223
+ agent: "agent";
4224
+ }>>;
4225
+ instructions: z.ZodNullable<z.ZodString>;
4226
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4227
+ kind: z.ZodLiteral<"repository">;
4228
+ uri: z.ZodString;
4229
+ ref: z.ZodString;
4230
+ mountPath: z.ZodOptional<z.ZodString>;
4231
+ subpath: z.ZodOptional<z.ZodString>;
4232
+ provider: z.ZodOptional<z.ZodEnum<{
4233
+ github: "github";
4234
+ gitlab: "gitlab";
4235
+ azure_devops: "azure_devops";
4236
+ }>>;
4237
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4238
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4239
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4240
+ connectionId: z.ZodOptional<z.ZodString>;
4241
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
4242
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
4243
+ }, z.core.$strip>, z.ZodObject<{
4244
+ kind: z.ZodLiteral<"file">;
4245
+ fileId: z.ZodString;
4246
+ mountPath: z.ZodOptional<z.ZodString>;
4247
+ }, z.core.$strip>], "kind">>;
4248
+ tools: z.ZodArray<z.ZodObject<{
4249
+ kind: z.ZodLiteral<"mcp">;
4250
+ id: z.ZodString;
4251
+ optional: z.ZodOptional<z.ZodBoolean>;
4252
+ }, z.core.$strip>>;
4253
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4254
+ model: z.ZodString;
4255
+ sandboxBackend: z.ZodEnum<{
4256
+ docker: "docker";
4257
+ modal: "modal";
4258
+ local: "local";
4259
+ none: "none";
4260
+ daytona: "daytona";
4261
+ runloop: "runloop";
4262
+ e2b: "e2b";
4263
+ blaxel: "blaxel";
4264
+ cloudflare: "cloudflare";
4265
+ vercel: "vercel";
4266
+ selfhosted: "selfhosted";
4267
+ }>;
4268
+ sandboxOs: z.ZodEnum<{
4269
+ linux: "linux";
4270
+ macos: "macos";
4271
+ windows: "windows";
4272
+ }>;
4273
+ sandboxGroupId: z.ZodString;
4274
+ activeSandboxId: z.ZodNullable<z.ZodString>;
4275
+ activeEpoch: z.ZodNumber;
4276
+ variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4277
+ environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4278
+ rigId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4279
+ rigVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4280
+ firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
4281
+ "account:read": "account:read";
4282
+ "account:admin": "account:admin";
4283
+ "members:manage": "members:manage";
4284
+ "workspace:create": "workspace:create";
4285
+ "billing:read": "billing:read";
4286
+ "billing:manage": "billing:manage";
4287
+ "workspace:read": "workspace:read";
4288
+ "workspace:admin": "workspace:admin";
4289
+ "sessions:create": "sessions:create";
4290
+ "sessions:read": "sessions:read";
4291
+ "sessions:control": "sessions:control";
4292
+ "stream:view": "stream:view";
4293
+ "stream:control": "stream:control";
4294
+ "stream:acknowledge": "stream:acknowledge";
4295
+ "files:upload": "files:upload";
4296
+ "files:read": "files:read";
4297
+ "files:write": "files:write";
4298
+ "terminal:attach": "terminal:attach";
4299
+ "documents:manage": "documents:manage";
4300
+ "documents:search": "documents:search";
4301
+ "scheduled_tasks:manage": "scheduled_tasks:manage";
4302
+ "scheduled_tasks:run": "scheduled_tasks:run";
4303
+ "github:manage": "github:manage";
4304
+ "github:use": "github:use";
4305
+ "api_keys:manage": "api_keys:manage";
4306
+ "connections:read": "connections:read";
4307
+ "connections:write": "connections:write";
4308
+ "environments:manage": "environments:manage";
4309
+ "environments:use": "environments:use";
4310
+ "variable-sets:manage": "variable-sets:manage";
4311
+ "variable-sets:use": "variable-sets:use";
4312
+ "mcp_servers:attach": "mcp_servers:attach";
4313
+ "toolspace:call": "toolspace:call";
4314
+ "goals:manage": "goals:manage";
4315
+ "enrollments:read": "enrollments:read";
4316
+ "enrollments:manage": "enrollments:manage";
4317
+ "rigs:use": "rigs:use";
4318
+ "rigs:manage": "rigs:manage";
4319
+ }>>>;
4320
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4321
+ id: z.ZodString;
4322
+ name: z.ZodNullable<z.ZodString>;
4323
+ url: z.ZodString;
4324
+ headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4325
+ credentialVersion: z.ZodNumber;
4326
+ }, z.core.$strict>>>;
4327
+ parentSessionId: z.ZodNullable<z.ZodString>;
4328
+ createIdempotencyKey: z.ZodNullable<z.ZodString>;
4329
+ temporalWorkflowId: z.ZodNullable<z.ZodString>;
4330
+ activeTurnId: z.ZodNullable<z.ZodString>;
4331
+ lastInputTokens: z.ZodNullable<z.ZodNumber>;
4332
+ queueVersion: z.ZodNumber;
4333
+ queueHeadPosition: z.ZodNumber;
4334
+ queueTailPosition: z.ZodNumber;
4335
+ controlState: z.ZodEnum<{
4336
+ paused: "paused";
4337
+ active: "active";
4338
+ }>;
4339
+ controlGeneration: z.ZodNumber;
4340
+ controlReason: z.ZodNullable<z.ZodString>;
4341
+ controlChangedBy: z.ZodNullable<z.ZodString>;
4342
+ controlChangedAt: z.ZodNullable<z.ZodString>;
4343
+ workspaceRunExceptionGeneration: z.ZodNullable<z.ZodNumber>;
4344
+ lastSequence: z.ZodNumber;
4345
+ codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
4346
+ codexLastCredentialId: z.ZodNullable<z.ZodString>;
4347
+ pinned: z.ZodDefault<z.ZodBoolean>;
4348
+ pinnedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4349
+ pinVersion: z.ZodDefault<z.ZodNumber>;
4350
+ treeStats: z.ZodOptional<z.ZodObject<{
4351
+ directChildren: z.ZodNumber;
4352
+ totalDescendants: z.ZodNumber;
4353
+ runningDescendants: z.ZodNumber;
4354
+ queuedDescendants: z.ZodNumber;
4355
+ attentionDescendants: z.ZodNumber;
4356
+ pausedDescendants: z.ZodNumber;
4357
+ failedDescendants: z.ZodNumber;
4358
+ }, z.core.$strip>>;
4359
+ createdAt: z.ZodString;
4360
+ updatedAt: z.ZodString;
4361
+ }, z.core.$strip>>;
4362
+ sessions: z.ZodArray<z.ZodObject<{
4363
+ id: z.ZodString;
4364
+ workspaceId: z.ZodString;
4365
+ accountId: z.ZodString;
4366
+ status: z.ZodEnum<{
4367
+ queued: "queued";
4368
+ running: "running";
4369
+ idle: "idle";
4370
+ requires_action: "requires_action";
4371
+ recovering: "recovering";
4372
+ waiting_capacity: "waiting_capacity";
4373
+ paused: "paused";
4374
+ failed: "failed";
4375
+ cancelled: "cancelled";
4376
+ }>;
4377
+ initialMessage: z.ZodString;
4378
+ title: z.ZodNullable<z.ZodString>;
4379
+ titleSource: z.ZodNullable<z.ZodEnum<{
4380
+ user: "user";
4381
+ agent: "agent";
4382
+ }>>;
4383
+ instructions: z.ZodNullable<z.ZodString>;
4384
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4385
+ kind: z.ZodLiteral<"repository">;
4386
+ uri: z.ZodString;
4387
+ ref: z.ZodString;
4388
+ mountPath: z.ZodOptional<z.ZodString>;
4389
+ subpath: z.ZodOptional<z.ZodString>;
4390
+ provider: z.ZodOptional<z.ZodEnum<{
4391
+ github: "github";
4392
+ gitlab: "gitlab";
4393
+ azure_devops: "azure_devops";
4394
+ }>>;
4395
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4396
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4397
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4398
+ connectionId: z.ZodOptional<z.ZodString>;
4399
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
4400
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
4401
+ }, z.core.$strip>, z.ZodObject<{
4402
+ kind: z.ZodLiteral<"file">;
4403
+ fileId: z.ZodString;
4404
+ mountPath: z.ZodOptional<z.ZodString>;
4405
+ }, z.core.$strip>], "kind">>;
4406
+ tools: z.ZodArray<z.ZodObject<{
4407
+ kind: z.ZodLiteral<"mcp">;
4408
+ id: z.ZodString;
4409
+ optional: z.ZodOptional<z.ZodBoolean>;
4410
+ }, z.core.$strip>>;
4411
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4412
+ model: z.ZodString;
4413
+ sandboxBackend: z.ZodEnum<{
4414
+ docker: "docker";
4415
+ modal: "modal";
4416
+ local: "local";
4417
+ none: "none";
4418
+ daytona: "daytona";
4419
+ runloop: "runloop";
4420
+ e2b: "e2b";
4421
+ blaxel: "blaxel";
4422
+ cloudflare: "cloudflare";
4423
+ vercel: "vercel";
4424
+ selfhosted: "selfhosted";
4425
+ }>;
4426
+ sandboxOs: z.ZodEnum<{
4427
+ linux: "linux";
4428
+ macos: "macos";
4429
+ windows: "windows";
4430
+ }>;
4431
+ sandboxGroupId: z.ZodString;
4432
+ activeSandboxId: z.ZodNullable<z.ZodString>;
4433
+ activeEpoch: z.ZodNumber;
4434
+ variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4435
+ environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4436
+ rigId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4437
+ rigVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4438
+ firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
4439
+ "account:read": "account:read";
4440
+ "account:admin": "account:admin";
4441
+ "members:manage": "members:manage";
4442
+ "workspace:create": "workspace:create";
4443
+ "billing:read": "billing:read";
4444
+ "billing:manage": "billing:manage";
4445
+ "workspace:read": "workspace:read";
4446
+ "workspace:admin": "workspace:admin";
4447
+ "sessions:create": "sessions:create";
4448
+ "sessions:read": "sessions:read";
4449
+ "sessions:control": "sessions:control";
4450
+ "stream:view": "stream:view";
4451
+ "stream:control": "stream:control";
4452
+ "stream:acknowledge": "stream:acknowledge";
4453
+ "files:upload": "files:upload";
4454
+ "files:read": "files:read";
4455
+ "files:write": "files:write";
4456
+ "terminal:attach": "terminal:attach";
4457
+ "documents:manage": "documents:manage";
4458
+ "documents:search": "documents:search";
4459
+ "scheduled_tasks:manage": "scheduled_tasks:manage";
4460
+ "scheduled_tasks:run": "scheduled_tasks:run";
4461
+ "github:manage": "github:manage";
4462
+ "github:use": "github:use";
4463
+ "api_keys:manage": "api_keys:manage";
4464
+ "connections:read": "connections:read";
4465
+ "connections:write": "connections:write";
4466
+ "environments:manage": "environments:manage";
4467
+ "environments:use": "environments:use";
4468
+ "variable-sets:manage": "variable-sets:manage";
4469
+ "variable-sets:use": "variable-sets:use";
4470
+ "mcp_servers:attach": "mcp_servers:attach";
4471
+ "toolspace:call": "toolspace:call";
4472
+ "goals:manage": "goals:manage";
4473
+ "enrollments:read": "enrollments:read";
4474
+ "enrollments:manage": "enrollments:manage";
4475
+ "rigs:use": "rigs:use";
4476
+ "rigs:manage": "rigs:manage";
4477
+ }>>>;
4478
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4479
+ id: z.ZodString;
4480
+ name: z.ZodNullable<z.ZodString>;
4481
+ url: z.ZodString;
4482
+ headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4483
+ credentialVersion: z.ZodNumber;
4484
+ }, z.core.$strict>>>;
4485
+ parentSessionId: z.ZodNullable<z.ZodString>;
4486
+ createIdempotencyKey: z.ZodNullable<z.ZodString>;
4487
+ temporalWorkflowId: z.ZodNullable<z.ZodString>;
4488
+ activeTurnId: z.ZodNullable<z.ZodString>;
4489
+ lastInputTokens: z.ZodNullable<z.ZodNumber>;
4490
+ queueVersion: z.ZodNumber;
4491
+ queueHeadPosition: z.ZodNumber;
4492
+ queueTailPosition: z.ZodNumber;
4493
+ controlState: z.ZodEnum<{
4494
+ paused: "paused";
4495
+ active: "active";
4496
+ }>;
4497
+ controlGeneration: z.ZodNumber;
4498
+ controlReason: z.ZodNullable<z.ZodString>;
4499
+ controlChangedBy: z.ZodNullable<z.ZodString>;
4500
+ controlChangedAt: z.ZodNullable<z.ZodString>;
4501
+ workspaceRunExceptionGeneration: z.ZodNullable<z.ZodNumber>;
4502
+ lastSequence: z.ZodNumber;
4503
+ codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
4504
+ codexLastCredentialId: z.ZodNullable<z.ZodString>;
4505
+ pinned: z.ZodDefault<z.ZodBoolean>;
4506
+ pinnedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4507
+ pinVersion: z.ZodDefault<z.ZodNumber>;
4508
+ treeStats: z.ZodOptional<z.ZodObject<{
4509
+ directChildren: z.ZodNumber;
4510
+ totalDescendants: z.ZodNumber;
4511
+ runningDescendants: z.ZodNumber;
4512
+ queuedDescendants: z.ZodNumber;
4513
+ attentionDescendants: z.ZodNumber;
4514
+ pausedDescendants: z.ZodNumber;
4515
+ failedDescendants: z.ZodNumber;
4516
+ }, z.core.$strip>>;
4517
+ createdAt: z.ZodString;
4518
+ updatedAt: z.ZodString;
4519
+ }, z.core.$strip>>;
4520
+ nextCursor: z.ZodNullable<z.ZodString>;
4521
+ }, z.core.$strip>;
4522
+ type SessionListResponse = z.infer<typeof SessionListResponse>;
4523
+ type LineageNode = {
4524
+ session: SessionSummary;
4525
+ children: LineageNode[];
4526
+ };
4527
+ declare const LineageNode: z.ZodType<LineageNode>;
4528
+ declare const SessionLineageResponse: z.ZodObject<{
4529
+ ancestors: z.ZodArray<z.ZodObject<{
4530
+ id: z.ZodString;
4531
+ workspaceId: z.ZodString;
4532
+ accountId: z.ZodString;
4533
+ status: z.ZodEnum<{
4534
+ queued: "queued";
4535
+ running: "running";
4536
+ idle: "idle";
4537
+ requires_action: "requires_action";
4538
+ recovering: "recovering";
4539
+ waiting_capacity: "waiting_capacity";
4540
+ paused: "paused";
4541
+ failed: "failed";
4542
+ cancelled: "cancelled";
4543
+ }>;
4544
+ initialMessage: z.ZodString;
4545
+ title: z.ZodNullable<z.ZodString>;
4546
+ titleSource: z.ZodNullable<z.ZodEnum<{
4547
+ user: "user";
4548
+ agent: "agent";
4549
+ }>>;
4550
+ instructions: z.ZodNullable<z.ZodString>;
4551
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4552
+ kind: z.ZodLiteral<"repository">;
4553
+ uri: z.ZodString;
4554
+ ref: z.ZodString;
4555
+ mountPath: z.ZodOptional<z.ZodString>;
4556
+ subpath: z.ZodOptional<z.ZodString>;
4557
+ provider: z.ZodOptional<z.ZodEnum<{
4558
+ github: "github";
4559
+ gitlab: "gitlab";
4560
+ azure_devops: "azure_devops";
4561
+ }>>;
4562
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4563
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4564
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4565
+ connectionId: z.ZodOptional<z.ZodString>;
4566
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
4567
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
4568
+ }, z.core.$strip>, z.ZodObject<{
4569
+ kind: z.ZodLiteral<"file">;
4570
+ fileId: z.ZodString;
4571
+ mountPath: z.ZodOptional<z.ZodString>;
4572
+ }, z.core.$strip>], "kind">>;
4573
+ tools: z.ZodArray<z.ZodObject<{
4574
+ kind: z.ZodLiteral<"mcp">;
4575
+ id: z.ZodString;
4576
+ optional: z.ZodOptional<z.ZodBoolean>;
4577
+ }, z.core.$strip>>;
4578
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4579
+ model: z.ZodString;
4580
+ sandboxBackend: z.ZodEnum<{
4581
+ docker: "docker";
4582
+ modal: "modal";
4583
+ local: "local";
4584
+ none: "none";
4585
+ daytona: "daytona";
4586
+ runloop: "runloop";
4587
+ e2b: "e2b";
4588
+ blaxel: "blaxel";
4589
+ cloudflare: "cloudflare";
4590
+ vercel: "vercel";
4591
+ selfhosted: "selfhosted";
4592
+ }>;
4593
+ sandboxOs: z.ZodEnum<{
4594
+ linux: "linux";
4595
+ macos: "macos";
4596
+ windows: "windows";
4597
+ }>;
4598
+ sandboxGroupId: z.ZodString;
4599
+ activeSandboxId: z.ZodNullable<z.ZodString>;
4600
+ activeEpoch: z.ZodNumber;
4601
+ variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4602
+ environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4603
+ rigId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4604
+ rigVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4605
+ firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
4606
+ "account:read": "account:read";
4607
+ "account:admin": "account:admin";
4608
+ "members:manage": "members:manage";
4609
+ "workspace:create": "workspace:create";
4610
+ "billing:read": "billing:read";
4611
+ "billing:manage": "billing:manage";
4612
+ "workspace:read": "workspace:read";
4613
+ "workspace:admin": "workspace:admin";
4614
+ "sessions:create": "sessions:create";
4615
+ "sessions:read": "sessions:read";
4616
+ "sessions:control": "sessions:control";
4617
+ "stream:view": "stream:view";
4618
+ "stream:control": "stream:control";
4619
+ "stream:acknowledge": "stream:acknowledge";
4620
+ "files:upload": "files:upload";
4621
+ "files:read": "files:read";
4622
+ "files:write": "files:write";
4623
+ "terminal:attach": "terminal:attach";
4624
+ "documents:manage": "documents:manage";
4625
+ "documents:search": "documents:search";
4626
+ "scheduled_tasks:manage": "scheduled_tasks:manage";
4627
+ "scheduled_tasks:run": "scheduled_tasks:run";
4628
+ "github:manage": "github:manage";
4629
+ "github:use": "github:use";
4630
+ "api_keys:manage": "api_keys:manage";
4631
+ "connections:read": "connections:read";
4632
+ "connections:write": "connections:write";
4633
+ "environments:manage": "environments:manage";
4634
+ "environments:use": "environments:use";
4635
+ "variable-sets:manage": "variable-sets:manage";
4636
+ "variable-sets:use": "variable-sets:use";
4637
+ "mcp_servers:attach": "mcp_servers:attach";
4638
+ "toolspace:call": "toolspace:call";
4639
+ "goals:manage": "goals:manage";
4640
+ "enrollments:read": "enrollments:read";
4641
+ "enrollments:manage": "enrollments:manage";
4642
+ "rigs:use": "rigs:use";
4643
+ "rigs:manage": "rigs:manage";
4644
+ }>>>;
4645
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4646
+ id: z.ZodString;
4647
+ name: z.ZodNullable<z.ZodString>;
4648
+ url: z.ZodString;
4649
+ headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4650
+ credentialVersion: z.ZodNumber;
4651
+ }, z.core.$strict>>>;
4652
+ parentSessionId: z.ZodNullable<z.ZodString>;
4653
+ createIdempotencyKey: z.ZodNullable<z.ZodString>;
4654
+ temporalWorkflowId: z.ZodNullable<z.ZodString>;
4655
+ activeTurnId: z.ZodNullable<z.ZodString>;
4656
+ lastInputTokens: z.ZodNullable<z.ZodNumber>;
4657
+ queueVersion: z.ZodNumber;
4658
+ queueHeadPosition: z.ZodNumber;
4659
+ queueTailPosition: z.ZodNumber;
4660
+ controlState: z.ZodEnum<{
4661
+ paused: "paused";
4662
+ active: "active";
4663
+ }>;
4664
+ controlGeneration: z.ZodNumber;
4665
+ controlReason: z.ZodNullable<z.ZodString>;
4666
+ controlChangedBy: z.ZodNullable<z.ZodString>;
4667
+ controlChangedAt: z.ZodNullable<z.ZodString>;
4668
+ workspaceRunExceptionGeneration: z.ZodNullable<z.ZodNumber>;
4669
+ lastSequence: z.ZodNumber;
4670
+ codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
4671
+ codexLastCredentialId: z.ZodNullable<z.ZodString>;
4672
+ pinned: z.ZodDefault<z.ZodBoolean>;
4673
+ pinnedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4674
+ pinVersion: z.ZodDefault<z.ZodNumber>;
4675
+ treeStats: z.ZodOptional<z.ZodObject<{
4676
+ directChildren: z.ZodNumber;
4677
+ totalDescendants: z.ZodNumber;
4678
+ runningDescendants: z.ZodNumber;
4679
+ queuedDescendants: z.ZodNumber;
4680
+ attentionDescendants: z.ZodNumber;
4681
+ pausedDescendants: z.ZodNumber;
4682
+ failedDescendants: z.ZodNumber;
4683
+ }, z.core.$strip>>;
4684
+ createdAt: z.ZodString;
4685
+ updatedAt: z.ZodString;
4686
+ }, z.core.$strip>>;
4687
+ children: z.ZodArray<z.ZodType<LineageNode, unknown, z.core.$ZodTypeInternals<LineageNode, unknown>>>;
4688
+ truncated: z.ZodDefault<z.ZodBoolean>;
4689
+ }, z.core.$strip>;
4690
+ type SessionLineageResponse = z.infer<typeof SessionLineageResponse>;
4691
+ declare const SessionEventType: z.ZodEnum<{
4692
+ "session.created": "session.created";
4693
+ "session.status.changed": "session.status.changed";
4694
+ "session.requiresAction": "session.requiresAction";
4695
+ "session.context.compaction.requested": "session.context.compaction.requested";
4696
+ "session.context.compacted": "session.context.compacted";
4697
+ "session.context.compaction.skipped": "session.context.compaction.skipped";
4698
+ "session.context.cleared": "session.context.cleared";
4699
+ "user.message": "user.message";
4700
+ "user.pause": "user.pause";
4701
+ "user.approvalDecision": "user.approvalDecision";
4702
+ "turn.queued": "turn.queued";
4703
+ "turn.started": "turn.started";
4704
+ "turn.completed": "turn.completed";
4705
+ "turn.failed": "turn.failed";
4706
+ "turn.cancelled": "turn.cancelled";
4707
+ "turn.superseded": "turn.superseded";
4708
+ "turn.recovery.requested": "turn.recovery.requested";
4709
+ "turn.capacity_waiting": "turn.capacity_waiting";
4710
+ "agent.message.delta": "agent.message.delta";
4711
+ "agent.message.completed": "agent.message.completed";
4712
+ "agent.reasoning.delta": "agent.reasoning.delta";
4713
+ "agent.toolCall.created": "agent.toolCall.created";
4714
+ "agent.toolCall.output": "agent.toolCall.output";
4715
+ "agent.model.usage": "agent.model.usage";
4716
+ "tool.auth_needed": "tool.auth_needed";
4717
+ "agent.updated": "agent.updated";
4718
+ "rig.setup.started": "rig.setup.started";
4719
+ "rig.setup.completed": "rig.setup.completed";
4720
+ "rig.setup.skipped": "rig.setup.skipped";
4721
+ "rig.setup.failed": "rig.setup.failed";
4722
+ "sandbox.operation.started": "sandbox.operation.started";
4723
+ "sandbox.operation.completed": "sandbox.operation.completed";
4724
+ "sandbox.operation.failed": "sandbox.operation.failed";
4725
+ "sandbox.command.output.delta": "sandbox.command.output.delta";
4726
+ "artifact.created": "artifact.created";
4727
+ "goal.set": "goal.set";
4728
+ "goal.updated": "goal.updated";
4729
+ "goal.completed": "goal.completed";
4730
+ "goal.paused": "goal.paused";
4731
+ "goal.resumed": "goal.resumed";
4732
+ "goal.cleared": "goal.cleared";
4733
+ "goal.continuation": "goal.continuation";
4734
+ "system.update.pending": "system.update.pending";
4735
+ "system.update.delivered": "system.update.delivered";
4736
+ "session.control.paused": "session.control.paused";
4737
+ "session.control.resumed": "session.control.resumed";
4738
+ "session.control.steer_requested": "session.control.steer_requested";
4739
+ "workspace.inference.paused": "workspace.inference.paused";
4740
+ "workspace.inference.resumed": "workspace.inference.resumed";
4741
+ "session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
4742
+ "session.queue.history": "session.queue.history";
4743
+ "turn.event.rejected_late": "turn.event.rejected_late";
4744
+ "memory.saved": "memory.saved";
4745
+ "memory.corrected": "memory.corrected";
4746
+ "stream.url.rotated": "stream.url.rotated";
4747
+ "stream.opened": "stream.opened";
4748
+ "stream.closed": "stream.closed";
4749
+ "stream.revoked": "stream.revoked";
4750
+ "recording.started": "recording.started";
4751
+ "recording.available": "recording.available";
4752
+ "recording.failed": "recording.failed";
4753
+ "fs.changed": "fs.changed";
4754
+ "git.changed": "git.changed";
4755
+ "terminal.pty.started": "terminal.pty.started";
4756
+ "terminal.pty.output.delta": "terminal.pty.output.delta";
4757
+ "terminal.pty.exited": "terminal.pty.exited";
4758
+ "session.title_set": "session.title_set";
4759
+ "codex.account.switched": "codex.account.switched";
4760
+ "codex.credential.selected": "codex.credential.selected";
4761
+ "codex.capacity.waiting": "codex.capacity.waiting";
4762
+ "codex.capacity.resumed": "codex.capacity.resumed";
4763
+ "codex.capacity.superseded": "codex.capacity.superseded";
4764
+ "sandbox.box.created": "sandbox.box.created";
4765
+ "sandbox.box.lost": "sandbox.box.lost";
4766
+ "sandbox.box.terminated": "sandbox.box.terminated";
4767
+ "sandbox.box.snapshot": "sandbox.box.snapshot";
4768
+ "sandbox.env.drift": "sandbox.env.drift";
4769
+ "session.route.reconciled": "session.route.reconciled";
4770
+ "workspace.revision.captured": "workspace.revision.captured";
4771
+ "workspace.revision.degraded": "workspace.revision.degraded";
4772
+ "machine.op.failed": "machine.op.failed";
4773
+ "machine.op.recovered": "machine.op.recovered";
4774
+ "machine.link.lost": "machine.link.lost";
4775
+ "machine.link.restored": "machine.link.restored";
4776
+ "machine.runner.restarted": "machine.runner.restarted";
4777
+ }>;
4778
+ type SessionEventType = z.infer<typeof SessionEventType>;
4779
+ declare const ToolAuthNeededPayload: z.ZodObject<{
4780
+ serverId: z.ZodString;
4781
+ toolName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4782
+ providerDomain: z.ZodString;
4783
+ connectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4784
+ reason: z.ZodEnum<{
4785
+ expired: "expired";
4786
+ missing_connection: "missing_connection";
4787
+ insufficient_scope: "insufficient_scope";
4788
+ refresh_failed: "refresh_failed";
4789
+ }>;
4790
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4791
+ resource: z.ZodOptional<z.ZodString>;
4792
+ authorizationUrl: z.ZodOptional<z.ZodString>;
4793
+ subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4794
+ }, z.core.$strip>;
4795
+ type ToolAuthNeededPayload = z.infer<typeof ToolAuthNeededPayload>;
4796
+ declare const StreamUrlRotatedPayload: z.ZodObject<{
4797
+ url: z.ZodString;
4798
+ token: z.ZodNullable<z.ZodString>;
4799
+ expiresAt: z.ZodNullable<z.ZodString>;
4800
+ leaseEpoch: z.ZodNumber;
4801
+ transport: z.ZodLiteral<"vnc-ws">;
4802
+ viewerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4803
+ }, z.core.$strip>;
4804
+ type StreamUrlRotatedPayload = z.infer<typeof StreamUrlRotatedPayload>;
4805
+ declare const StreamOpenedPayload: z.ZodObject<{
4806
+ viewerId: z.ZodString;
4807
+ shared: z.ZodDefault<z.ZodBoolean>;
4808
+ viewerCount: z.ZodNumber;
4809
+ }, z.core.$strip>;
4810
+ type StreamOpenedPayload = z.infer<typeof StreamOpenedPayload>;
4811
+ declare const StreamClosedPayload: z.ZodObject<{
4812
+ viewerId: z.ZodString;
4813
+ reason: z.ZodEnum<{
4814
+ revoked: "revoked";
4815
+ "client-disconnect": "client-disconnect";
4816
+ reaped: "reaped";
4817
+ "box-rollover": "box-rollover";
4818
+ }>;
4819
+ viewerCount: z.ZodNumber;
4820
+ }, z.core.$strip>;
4821
+ type StreamClosedPayload = z.infer<typeof StreamClosedPayload>;
4822
+ declare const StreamRevokedPayload: z.ZodObject<{
4823
+ viewerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4824
+ reason: z.ZodEnum<{
4825
+ admin: "admin";
4826
+ "grant-revoked": "grant-revoked";
4827
+ "session-failed": "session-failed";
4828
+ }>;
4829
+ }, z.core.$strip>;
4830
+ type StreamRevokedPayload = z.infer<typeof StreamRevokedPayload>;
4831
+ declare const RecordingMode: z.ZodEnum<{
4832
+ manual: "manual";
4833
+ "on-turn": "on-turn";
4834
+ "on-verify": "on-verify";
4835
+ }>;
4836
+ type RecordingMode = z.infer<typeof RecordingMode>;
4837
+ declare const RecordingCodec: z.ZodEnum<{
4838
+ "h264-mp4": "h264-mp4";
4839
+ "vp9-webm": "vp9-webm";
2857
4840
  }>;
2858
4841
  type RecordingCodec = z.infer<typeof RecordingCodec>;
2859
4842
  declare const RecordingContentType: z.ZodEnum<{
@@ -3007,9 +4990,9 @@ declare const TerminalPtyExitedPayload: z.ZodObject<{
3007
4990
  type TerminalPtyExitedPayload = z.infer<typeof TerminalPtyExitedPayload>;
3008
4991
  declare const FsNodeType: z.ZodEnum<{
3009
4992
  file: "file";
4993
+ other: "other";
3010
4994
  dir: "dir";
3011
4995
  symlink: "symlink";
3012
- other: "other";
3013
4996
  }>;
3014
4997
  type FsNodeType = z.infer<typeof FsNodeType>;
3015
4998
  interface FsTreeNode {
@@ -3321,7 +5304,460 @@ declare const GitDiffResponse: z.ZodObject<{
3321
5304
  }, z.core.$strip>>;
3322
5305
  revision: z.ZodNumber;
3323
5306
  }, z.core.$strip>;
3324
- type GitDiffResponse = z.infer<typeof GitDiffResponse>;
5307
+ type GitDiffResponse = z.infer<typeof GitDiffResponse>;
5308
+ declare const WorkspaceCaptureFile: z.ZodObject<{
5309
+ path: z.ZodString;
5310
+ status: z.ZodEnum<{
5311
+ deleted: "deleted";
5312
+ modified: "modified";
5313
+ renamed: "renamed";
5314
+ added: "added";
5315
+ copied: "copied";
5316
+ untracked: "untracked";
5317
+ ignored: "ignored";
5318
+ conflicted: "conflicted";
5319
+ typechange: "typechange";
5320
+ }>;
5321
+ hash: z.ZodNullable<z.ZodString>;
5322
+ baseHash: z.ZodNullable<z.ZodString>;
5323
+ contentRef: z.ZodNullable<z.ZodString>;
5324
+ sizeBytes: z.ZodNumber;
5325
+ isBinary: z.ZodDefault<z.ZodBoolean>;
5326
+ tooLarge: z.ZodDefault<z.ZodBoolean>;
5327
+ deleted: z.ZodDefault<z.ZodBoolean>;
5328
+ }, z.core.$strip>;
5329
+ type WorkspaceCaptureFile = z.infer<typeof WorkspaceCaptureFile>;
5330
+ declare const WorkspaceCaptureRepo: z.ZodObject<{
5331
+ root: z.ZodString;
5332
+ head: z.ZodNullable<z.ZodString>;
5333
+ detached: z.ZodDefault<z.ZodBoolean>;
5334
+ upstream: z.ZodNullable<z.ZodString>;
5335
+ ahead: z.ZodDefault<z.ZodNumber>;
5336
+ behind: z.ZodDefault<z.ZodNumber>;
5337
+ status: z.ZodArray<z.ZodObject<{
5338
+ path: z.ZodString;
5339
+ oldPath: z.ZodNullable<z.ZodString>;
5340
+ index: z.ZodNullable<z.ZodEnum<{
5341
+ deleted: "deleted";
5342
+ modified: "modified";
5343
+ renamed: "renamed";
5344
+ added: "added";
5345
+ copied: "copied";
5346
+ untracked: "untracked";
5347
+ ignored: "ignored";
5348
+ conflicted: "conflicted";
5349
+ typechange: "typechange";
5350
+ }>>;
5351
+ worktree: z.ZodNullable<z.ZodEnum<{
5352
+ deleted: "deleted";
5353
+ modified: "modified";
5354
+ renamed: "renamed";
5355
+ added: "added";
5356
+ copied: "copied";
5357
+ untracked: "untracked";
5358
+ ignored: "ignored";
5359
+ conflicted: "conflicted";
5360
+ typechange: "typechange";
5361
+ }>>;
5362
+ isConflicted: z.ZodDefault<z.ZodBoolean>;
5363
+ }, z.core.$strip>>;
5364
+ diff: z.ZodArray<z.ZodObject<{
5365
+ path: z.ZodString;
5366
+ oldPath: z.ZodNullable<z.ZodString>;
5367
+ status: z.ZodEnum<{
5368
+ deleted: "deleted";
5369
+ modified: "modified";
5370
+ renamed: "renamed";
5371
+ added: "added";
5372
+ copied: "copied";
5373
+ untracked: "untracked";
5374
+ ignored: "ignored";
5375
+ conflicted: "conflicted";
5376
+ typechange: "typechange";
5377
+ }>;
5378
+ isBinary: z.ZodDefault<z.ZodBoolean>;
5379
+ isImage: z.ZodDefault<z.ZodBoolean>;
5380
+ additions: z.ZodNumber;
5381
+ deletions: z.ZodNumber;
5382
+ hunks: z.ZodArray<z.ZodObject<{
5383
+ oldStart: z.ZodNumber;
5384
+ oldLines: z.ZodNumber;
5385
+ newStart: z.ZodNumber;
5386
+ newLines: z.ZodNumber;
5387
+ header: z.ZodString;
5388
+ lines: z.ZodArray<z.ZodObject<{
5389
+ type: z.ZodEnum<{
5390
+ context: "context";
5391
+ add: "add";
5392
+ del: "del";
5393
+ meta: "meta";
5394
+ }>;
5395
+ oldNo: z.ZodNullable<z.ZodNumber>;
5396
+ newNo: z.ZodNullable<z.ZodNumber>;
5397
+ text: z.ZodString;
5398
+ }, z.core.$strip>>;
5399
+ }, z.core.$strip>>;
5400
+ truncated: z.ZodDefault<z.ZodBoolean>;
5401
+ }, z.core.$strip>>;
5402
+ }, z.core.$strip>;
5403
+ type WorkspaceCaptureRepo = z.infer<typeof WorkspaceCaptureRepo>;
5404
+ declare const WorkspaceCaptureDegradedReason: z.ZodEnum<{
5405
+ repository_discovery_command_failed: "repository_discovery_command_failed";
5406
+ repository_discovery_timed_out: "repository_discovery_timed_out";
5407
+ repository_discovery_result_limit_exceeded: "repository_discovery_result_limit_exceeded";
5408
+ }>;
5409
+ type WorkspaceCaptureDegradedReason = z.infer<typeof WorkspaceCaptureDegradedReason>;
5410
+ declare const WorkspaceCaptureStats: z.ZodObject<{
5411
+ repoCount: z.ZodNumber;
5412
+ fileCount: z.ZodNumber;
5413
+ additions: z.ZodNumber;
5414
+ deletions: z.ZodNumber;
5415
+ totalBytes: z.ZodNumber;
5416
+ tooLargeCount: z.ZodNumber;
5417
+ binaryCount: z.ZodNumber;
5418
+ treeEntryCount: z.ZodNumber;
5419
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5420
+ durationMs: z.ZodNumber;
5421
+ fingerprint: z.ZodOptional<z.ZodString>;
5422
+ }, z.core.$strip>;
5423
+ type WorkspaceCaptureStats = z.infer<typeof WorkspaceCaptureStats>;
5424
+ declare const WorkspaceCaptureManifest: z.ZodObject<{
5425
+ version: z.ZodLiteral<1>;
5426
+ revision: z.ZodNumber;
5427
+ capturedAt: z.ZodString;
5428
+ turnId: z.ZodNullable<z.ZodString>;
5429
+ leaseEpoch: z.ZodNumber;
5430
+ treeIndex: z.ZodType<FsTreeNode, unknown, z.core.$ZodTypeInternals<FsTreeNode, unknown>>;
5431
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5432
+ repos: z.ZodArray<z.ZodObject<{
5433
+ root: z.ZodString;
5434
+ head: z.ZodNullable<z.ZodString>;
5435
+ detached: z.ZodDefault<z.ZodBoolean>;
5436
+ upstream: z.ZodNullable<z.ZodString>;
5437
+ ahead: z.ZodDefault<z.ZodNumber>;
5438
+ behind: z.ZodDefault<z.ZodNumber>;
5439
+ status: z.ZodArray<z.ZodObject<{
5440
+ path: z.ZodString;
5441
+ oldPath: z.ZodNullable<z.ZodString>;
5442
+ index: z.ZodNullable<z.ZodEnum<{
5443
+ deleted: "deleted";
5444
+ modified: "modified";
5445
+ renamed: "renamed";
5446
+ added: "added";
5447
+ copied: "copied";
5448
+ untracked: "untracked";
5449
+ ignored: "ignored";
5450
+ conflicted: "conflicted";
5451
+ typechange: "typechange";
5452
+ }>>;
5453
+ worktree: z.ZodNullable<z.ZodEnum<{
5454
+ deleted: "deleted";
5455
+ modified: "modified";
5456
+ renamed: "renamed";
5457
+ added: "added";
5458
+ copied: "copied";
5459
+ untracked: "untracked";
5460
+ ignored: "ignored";
5461
+ conflicted: "conflicted";
5462
+ typechange: "typechange";
5463
+ }>>;
5464
+ isConflicted: z.ZodDefault<z.ZodBoolean>;
5465
+ }, z.core.$strip>>;
5466
+ diff: z.ZodArray<z.ZodObject<{
5467
+ path: z.ZodString;
5468
+ oldPath: z.ZodNullable<z.ZodString>;
5469
+ status: z.ZodEnum<{
5470
+ deleted: "deleted";
5471
+ modified: "modified";
5472
+ renamed: "renamed";
5473
+ added: "added";
5474
+ copied: "copied";
5475
+ untracked: "untracked";
5476
+ ignored: "ignored";
5477
+ conflicted: "conflicted";
5478
+ typechange: "typechange";
5479
+ }>;
5480
+ isBinary: z.ZodDefault<z.ZodBoolean>;
5481
+ isImage: z.ZodDefault<z.ZodBoolean>;
5482
+ additions: z.ZodNumber;
5483
+ deletions: z.ZodNumber;
5484
+ hunks: z.ZodArray<z.ZodObject<{
5485
+ oldStart: z.ZodNumber;
5486
+ oldLines: z.ZodNumber;
5487
+ newStart: z.ZodNumber;
5488
+ newLines: z.ZodNumber;
5489
+ header: z.ZodString;
5490
+ lines: z.ZodArray<z.ZodObject<{
5491
+ type: z.ZodEnum<{
5492
+ context: "context";
5493
+ add: "add";
5494
+ del: "del";
5495
+ meta: "meta";
5496
+ }>;
5497
+ oldNo: z.ZodNullable<z.ZodNumber>;
5498
+ newNo: z.ZodNullable<z.ZodNumber>;
5499
+ text: z.ZodString;
5500
+ }, z.core.$strip>>;
5501
+ }, z.core.$strip>>;
5502
+ truncated: z.ZodDefault<z.ZodBoolean>;
5503
+ }, z.core.$strip>>;
5504
+ }, z.core.$strip>>;
5505
+ files: z.ZodArray<z.ZodObject<{
5506
+ path: z.ZodString;
5507
+ status: z.ZodEnum<{
5508
+ deleted: "deleted";
5509
+ modified: "modified";
5510
+ renamed: "renamed";
5511
+ added: "added";
5512
+ copied: "copied";
5513
+ untracked: "untracked";
5514
+ ignored: "ignored";
5515
+ conflicted: "conflicted";
5516
+ typechange: "typechange";
5517
+ }>;
5518
+ hash: z.ZodNullable<z.ZodString>;
5519
+ baseHash: z.ZodNullable<z.ZodString>;
5520
+ contentRef: z.ZodNullable<z.ZodString>;
5521
+ sizeBytes: z.ZodNumber;
5522
+ isBinary: z.ZodDefault<z.ZodBoolean>;
5523
+ tooLarge: z.ZodDefault<z.ZodBoolean>;
5524
+ deleted: z.ZodDefault<z.ZodBoolean>;
5525
+ }, z.core.$strip>>;
5526
+ stats: z.ZodObject<{
5527
+ repoCount: z.ZodNumber;
5528
+ fileCount: z.ZodNumber;
5529
+ additions: z.ZodNumber;
5530
+ deletions: z.ZodNumber;
5531
+ totalBytes: z.ZodNumber;
5532
+ tooLargeCount: z.ZodNumber;
5533
+ binaryCount: z.ZodNumber;
5534
+ treeEntryCount: z.ZodNumber;
5535
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5536
+ durationMs: z.ZodNumber;
5537
+ fingerprint: z.ZodOptional<z.ZodString>;
5538
+ }, z.core.$strip>;
5539
+ }, z.core.$strip>;
5540
+ type WorkspaceCaptureManifest = z.infer<typeof WorkspaceCaptureManifest>;
5541
+ declare const WorkspaceRevisionCapturedPayload: z.ZodObject<{
5542
+ revision: z.ZodNumber;
5543
+ turnId: z.ZodNullable<z.ZodString>;
5544
+ capturedAt: z.ZodString;
5545
+ leaseEpoch: z.ZodNumber;
5546
+ stats: z.ZodObject<{
5547
+ repoCount: z.ZodNumber;
5548
+ fileCount: z.ZodNumber;
5549
+ additions: z.ZodNumber;
5550
+ deletions: z.ZodNumber;
5551
+ totalBytes: z.ZodNumber;
5552
+ tooLargeCount: z.ZodNumber;
5553
+ binaryCount: z.ZodNumber;
5554
+ treeEntryCount: z.ZodNumber;
5555
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5556
+ durationMs: z.ZodNumber;
5557
+ fingerprint: z.ZodOptional<z.ZodString>;
5558
+ }, z.core.$strip>;
5559
+ }, z.core.$strip>;
5560
+ type WorkspaceRevisionCapturedPayload = z.infer<typeof WorkspaceRevisionCapturedPayload>;
5561
+ declare const WorkspaceRevisionDegradedPayload: z.ZodObject<{
5562
+ revision: z.ZodNumber;
5563
+ turnId: z.ZodNullable<z.ZodString>;
5564
+ capturedAt: z.ZodString;
5565
+ leaseEpoch: z.ZodNumber;
5566
+ reason: z.ZodEnum<{
5567
+ repository_discovery_command_failed: "repository_discovery_command_failed";
5568
+ repository_discovery_timed_out: "repository_discovery_timed_out";
5569
+ repository_discovery_result_limit_exceeded: "repository_discovery_result_limit_exceeded";
5570
+ }>;
5571
+ }, z.core.$strip>;
5572
+ type WorkspaceRevisionDegradedPayload = z.infer<typeof WorkspaceRevisionDegradedPayload>;
5573
+ declare const WorkspaceCaptureSignedUrl: z.ZodObject<{
5574
+ url: z.ZodString;
5575
+ expiresAt: z.ZodString;
5576
+ }, z.core.$strip>;
5577
+ type WorkspaceCaptureSignedUrl = z.infer<typeof WorkspaceCaptureSignedUrl>;
5578
+ declare const GetWorkspaceCaptureResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
5579
+ available: z.ZodLiteral<false>;
5580
+ degradedReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5581
+ repository_discovery_command_failed: "repository_discovery_command_failed";
5582
+ repository_discovery_timed_out: "repository_discovery_timed_out";
5583
+ repository_discovery_result_limit_exceeded: "repository_discovery_result_limit_exceeded";
5584
+ }>>>;
5585
+ revision: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5586
+ capturedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5587
+ turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5588
+ leaseEpoch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5589
+ }, z.core.$strip>, z.ZodObject<{
5590
+ available: z.ZodLiteral<true>;
5591
+ revision: z.ZodNumber;
5592
+ capturedAt: z.ZodString;
5593
+ turnId: z.ZodNullable<z.ZodString>;
5594
+ leaseEpoch: z.ZodNumber;
5595
+ sizeBytes: z.ZodNumber;
5596
+ stats: z.ZodObject<{
5597
+ repoCount: z.ZodNumber;
5598
+ fileCount: z.ZodNumber;
5599
+ additions: z.ZodNumber;
5600
+ deletions: z.ZodNumber;
5601
+ totalBytes: z.ZodNumber;
5602
+ tooLargeCount: z.ZodNumber;
5603
+ binaryCount: z.ZodNumber;
5604
+ treeEntryCount: z.ZodNumber;
5605
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5606
+ durationMs: z.ZodNumber;
5607
+ fingerprint: z.ZodOptional<z.ZodString>;
5608
+ }, z.core.$strip>;
5609
+ manifest: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5610
+ version: z.ZodLiteral<1>;
5611
+ revision: z.ZodNumber;
5612
+ capturedAt: z.ZodString;
5613
+ turnId: z.ZodNullable<z.ZodString>;
5614
+ leaseEpoch: z.ZodNumber;
5615
+ treeIndex: z.ZodType<FsTreeNode, unknown, z.core.$ZodTypeInternals<FsTreeNode, unknown>>;
5616
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5617
+ repos: z.ZodArray<z.ZodObject<{
5618
+ root: z.ZodString;
5619
+ head: z.ZodNullable<z.ZodString>;
5620
+ detached: z.ZodDefault<z.ZodBoolean>;
5621
+ upstream: z.ZodNullable<z.ZodString>;
5622
+ ahead: z.ZodDefault<z.ZodNumber>;
5623
+ behind: z.ZodDefault<z.ZodNumber>;
5624
+ status: z.ZodArray<z.ZodObject<{
5625
+ path: z.ZodString;
5626
+ oldPath: z.ZodNullable<z.ZodString>;
5627
+ index: z.ZodNullable<z.ZodEnum<{
5628
+ deleted: "deleted";
5629
+ modified: "modified";
5630
+ renamed: "renamed";
5631
+ added: "added";
5632
+ copied: "copied";
5633
+ untracked: "untracked";
5634
+ ignored: "ignored";
5635
+ conflicted: "conflicted";
5636
+ typechange: "typechange";
5637
+ }>>;
5638
+ worktree: z.ZodNullable<z.ZodEnum<{
5639
+ deleted: "deleted";
5640
+ modified: "modified";
5641
+ renamed: "renamed";
5642
+ added: "added";
5643
+ copied: "copied";
5644
+ untracked: "untracked";
5645
+ ignored: "ignored";
5646
+ conflicted: "conflicted";
5647
+ typechange: "typechange";
5648
+ }>>;
5649
+ isConflicted: z.ZodDefault<z.ZodBoolean>;
5650
+ }, z.core.$strip>>;
5651
+ diff: z.ZodArray<z.ZodObject<{
5652
+ path: z.ZodString;
5653
+ oldPath: z.ZodNullable<z.ZodString>;
5654
+ status: z.ZodEnum<{
5655
+ deleted: "deleted";
5656
+ modified: "modified";
5657
+ renamed: "renamed";
5658
+ added: "added";
5659
+ copied: "copied";
5660
+ untracked: "untracked";
5661
+ ignored: "ignored";
5662
+ conflicted: "conflicted";
5663
+ typechange: "typechange";
5664
+ }>;
5665
+ isBinary: z.ZodDefault<z.ZodBoolean>;
5666
+ isImage: z.ZodDefault<z.ZodBoolean>;
5667
+ additions: z.ZodNumber;
5668
+ deletions: z.ZodNumber;
5669
+ hunks: z.ZodArray<z.ZodObject<{
5670
+ oldStart: z.ZodNumber;
5671
+ oldLines: z.ZodNumber;
5672
+ newStart: z.ZodNumber;
5673
+ newLines: z.ZodNumber;
5674
+ header: z.ZodString;
5675
+ lines: z.ZodArray<z.ZodObject<{
5676
+ type: z.ZodEnum<{
5677
+ context: "context";
5678
+ add: "add";
5679
+ del: "del";
5680
+ meta: "meta";
5681
+ }>;
5682
+ oldNo: z.ZodNullable<z.ZodNumber>;
5683
+ newNo: z.ZodNullable<z.ZodNumber>;
5684
+ text: z.ZodString;
5685
+ }, z.core.$strip>>;
5686
+ }, z.core.$strip>>;
5687
+ truncated: z.ZodDefault<z.ZodBoolean>;
5688
+ }, z.core.$strip>>;
5689
+ }, z.core.$strip>>;
5690
+ files: z.ZodArray<z.ZodObject<{
5691
+ path: z.ZodString;
5692
+ status: z.ZodEnum<{
5693
+ deleted: "deleted";
5694
+ modified: "modified";
5695
+ renamed: "renamed";
5696
+ added: "added";
5697
+ copied: "copied";
5698
+ untracked: "untracked";
5699
+ ignored: "ignored";
5700
+ conflicted: "conflicted";
5701
+ typechange: "typechange";
5702
+ }>;
5703
+ hash: z.ZodNullable<z.ZodString>;
5704
+ baseHash: z.ZodNullable<z.ZodString>;
5705
+ contentRef: z.ZodNullable<z.ZodString>;
5706
+ sizeBytes: z.ZodNumber;
5707
+ isBinary: z.ZodDefault<z.ZodBoolean>;
5708
+ tooLarge: z.ZodDefault<z.ZodBoolean>;
5709
+ deleted: z.ZodDefault<z.ZodBoolean>;
5710
+ }, z.core.$strip>>;
5711
+ stats: z.ZodObject<{
5712
+ repoCount: z.ZodNumber;
5713
+ fileCount: z.ZodNumber;
5714
+ additions: z.ZodNumber;
5715
+ deletions: z.ZodNumber;
5716
+ totalBytes: z.ZodNumber;
5717
+ tooLargeCount: z.ZodNumber;
5718
+ binaryCount: z.ZodNumber;
5719
+ treeEntryCount: z.ZodNumber;
5720
+ treeTruncated: z.ZodDefault<z.ZodBoolean>;
5721
+ durationMs: z.ZodNumber;
5722
+ fingerprint: z.ZodOptional<z.ZodString>;
5723
+ }, z.core.$strip>;
5724
+ }, z.core.$strip>>>;
5725
+ manifestUrl: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5726
+ url: z.ZodString;
5727
+ expiresAt: z.ZodString;
5728
+ }, z.core.$strip>>>;
5729
+ }, z.core.$strip>], "available">;
5730
+ type GetWorkspaceCaptureResponse = z.infer<typeof GetWorkspaceCaptureResponse>;
5731
+ declare const GetWorkspaceCaptureFileResponse: z.ZodObject<{
5732
+ path: z.ZodString;
5733
+ revision: z.ZodNumber;
5734
+ status: z.ZodEnum<{
5735
+ deleted: "deleted";
5736
+ modified: "modified";
5737
+ renamed: "renamed";
5738
+ added: "added";
5739
+ copied: "copied";
5740
+ untracked: "untracked";
5741
+ ignored: "ignored";
5742
+ conflicted: "conflicted";
5743
+ typechange: "typechange";
5744
+ }>;
5745
+ hash: z.ZodNullable<z.ZodString>;
5746
+ baseHash: z.ZodNullable<z.ZodString>;
5747
+ sizeBytes: z.ZodNumber;
5748
+ isBinary: z.ZodBoolean;
5749
+ tooLarge: z.ZodBoolean;
5750
+ encoding: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
5751
+ utf8: "utf8";
5752
+ base64: "base64";
5753
+ }>>>;
5754
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5755
+ contentUrl: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5756
+ url: z.ZodString;
5757
+ expiresAt: z.ZodString;
5758
+ }, z.core.$strip>>>;
5759
+ }, z.core.$strip>;
5760
+ type GetWorkspaceCaptureFileResponse = z.infer<typeof GetWorkspaceCaptureFileResponse>;
3325
5761
  declare const GitLogRequest: z.ZodObject<{
3326
5762
  path: z.ZodDefault<z.ZodString>;
3327
5763
  ref: z.ZodDefault<z.ZodString>;
@@ -3511,68 +5947,454 @@ declare const SessionStructuredCapabilities: z.ZodObject<{
3511
5947
  available: z.ZodBoolean;
3512
5948
  repos: z.ZodArray<z.ZodString>;
3513
5949
  }, z.core.$strip>;
3514
- }, z.core.$strip>;
3515
- type SessionStructuredCapabilities = z.infer<typeof SessionStructuredCapabilities>;
3516
- declare const SessionEvent: z.ZodObject<{
3517
- id: z.ZodString;
3518
- workspaceId: z.ZodString;
3519
- sessionId: z.ZodString;
3520
- sequence: z.ZodNumber;
3521
- type: z.ZodEnum<{
3522
- "session.created": "session.created";
3523
- "session.status.changed": "session.status.changed";
3524
- "session.requiresAction": "session.requiresAction";
3525
- "session.context.compacted": "session.context.compacted";
3526
- "session.context.cleared": "session.context.cleared";
3527
- "user.message": "user.message";
3528
- "user.interrupt": "user.interrupt";
3529
- "user.approvalDecision": "user.approvalDecision";
3530
- "turn.queued": "turn.queued";
3531
- "turn.updated": "turn.updated";
3532
- "turn.started": "turn.started";
3533
- "turn.completed": "turn.completed";
3534
- "turn.failed": "turn.failed";
3535
- "turn.cancelled": "turn.cancelled";
3536
- "turn.preempted": "turn.preempted";
3537
- "agent.message.delta": "agent.message.delta";
3538
- "agent.message.completed": "agent.message.completed";
3539
- "agent.reasoning.delta": "agent.reasoning.delta";
3540
- "agent.toolCall.created": "agent.toolCall.created";
3541
- "agent.toolCall.output": "agent.toolCall.output";
3542
- "agent.updated": "agent.updated";
3543
- "sandbox.operation.started": "sandbox.operation.started";
3544
- "sandbox.operation.completed": "sandbox.operation.completed";
3545
- "sandbox.operation.failed": "sandbox.operation.failed";
3546
- "sandbox.command.output.delta": "sandbox.command.output.delta";
3547
- "artifact.created": "artifact.created";
3548
- "goal.set": "goal.set";
3549
- "goal.updated": "goal.updated";
3550
- "goal.completed": "goal.completed";
3551
- "goal.paused": "goal.paused";
3552
- "goal.resumed": "goal.resumed";
3553
- "goal.continuation": "goal.continuation";
3554
- "stream.url.rotated": "stream.url.rotated";
3555
- "stream.opened": "stream.opened";
3556
- "stream.closed": "stream.closed";
3557
- "stream.revoked": "stream.revoked";
3558
- "recording.started": "recording.started";
3559
- "recording.available": "recording.available";
3560
- "recording.failed": "recording.failed";
3561
- "fs.changed": "fs.changed";
3562
- "git.changed": "git.changed";
3563
- "terminal.pty.started": "terminal.pty.started";
3564
- "terminal.pty.output.delta": "terminal.pty.output.delta";
3565
- "terminal.pty.exited": "terminal.pty.exited";
3566
- "session.title_set": "session.title_set";
3567
- "codex.account.switched": "codex.account.switched";
5950
+ }, z.core.$strip>;
5951
+ type SessionStructuredCapabilities = z.infer<typeof SessionStructuredCapabilities>;
5952
+ declare const SessionEvent: z.ZodObject<{
5953
+ id: z.ZodString;
5954
+ workspaceId: z.ZodString;
5955
+ sessionId: z.ZodString;
5956
+ sequence: z.ZodNumber;
5957
+ type: z.ZodEnum<{
5958
+ "session.created": "session.created";
5959
+ "session.status.changed": "session.status.changed";
5960
+ "session.requiresAction": "session.requiresAction";
5961
+ "session.context.compaction.requested": "session.context.compaction.requested";
5962
+ "session.context.compacted": "session.context.compacted";
5963
+ "session.context.compaction.skipped": "session.context.compaction.skipped";
5964
+ "session.context.cleared": "session.context.cleared";
5965
+ "user.message": "user.message";
5966
+ "user.pause": "user.pause";
5967
+ "user.approvalDecision": "user.approvalDecision";
5968
+ "turn.queued": "turn.queued";
5969
+ "turn.started": "turn.started";
5970
+ "turn.completed": "turn.completed";
5971
+ "turn.failed": "turn.failed";
5972
+ "turn.cancelled": "turn.cancelled";
5973
+ "turn.superseded": "turn.superseded";
5974
+ "turn.recovery.requested": "turn.recovery.requested";
5975
+ "turn.capacity_waiting": "turn.capacity_waiting";
5976
+ "agent.message.delta": "agent.message.delta";
5977
+ "agent.message.completed": "agent.message.completed";
5978
+ "agent.reasoning.delta": "agent.reasoning.delta";
5979
+ "agent.toolCall.created": "agent.toolCall.created";
5980
+ "agent.toolCall.output": "agent.toolCall.output";
5981
+ "agent.model.usage": "agent.model.usage";
5982
+ "tool.auth_needed": "tool.auth_needed";
5983
+ "agent.updated": "agent.updated";
5984
+ "rig.setup.started": "rig.setup.started";
5985
+ "rig.setup.completed": "rig.setup.completed";
5986
+ "rig.setup.skipped": "rig.setup.skipped";
5987
+ "rig.setup.failed": "rig.setup.failed";
5988
+ "sandbox.operation.started": "sandbox.operation.started";
5989
+ "sandbox.operation.completed": "sandbox.operation.completed";
5990
+ "sandbox.operation.failed": "sandbox.operation.failed";
5991
+ "sandbox.command.output.delta": "sandbox.command.output.delta";
5992
+ "artifact.created": "artifact.created";
5993
+ "goal.set": "goal.set";
5994
+ "goal.updated": "goal.updated";
5995
+ "goal.completed": "goal.completed";
5996
+ "goal.paused": "goal.paused";
5997
+ "goal.resumed": "goal.resumed";
5998
+ "goal.cleared": "goal.cleared";
5999
+ "goal.continuation": "goal.continuation";
6000
+ "system.update.pending": "system.update.pending";
6001
+ "system.update.delivered": "system.update.delivered";
6002
+ "session.control.paused": "session.control.paused";
6003
+ "session.control.resumed": "session.control.resumed";
6004
+ "session.control.steer_requested": "session.control.steer_requested";
6005
+ "workspace.inference.paused": "workspace.inference.paused";
6006
+ "workspace.inference.resumed": "workspace.inference.resumed";
6007
+ "session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
6008
+ "session.queue.history": "session.queue.history";
6009
+ "turn.event.rejected_late": "turn.event.rejected_late";
6010
+ "memory.saved": "memory.saved";
6011
+ "memory.corrected": "memory.corrected";
6012
+ "stream.url.rotated": "stream.url.rotated";
6013
+ "stream.opened": "stream.opened";
6014
+ "stream.closed": "stream.closed";
6015
+ "stream.revoked": "stream.revoked";
6016
+ "recording.started": "recording.started";
6017
+ "recording.available": "recording.available";
6018
+ "recording.failed": "recording.failed";
6019
+ "fs.changed": "fs.changed";
6020
+ "git.changed": "git.changed";
6021
+ "terminal.pty.started": "terminal.pty.started";
6022
+ "terminal.pty.output.delta": "terminal.pty.output.delta";
6023
+ "terminal.pty.exited": "terminal.pty.exited";
6024
+ "session.title_set": "session.title_set";
6025
+ "codex.account.switched": "codex.account.switched";
6026
+ "codex.credential.selected": "codex.credential.selected";
6027
+ "codex.capacity.waiting": "codex.capacity.waiting";
6028
+ "codex.capacity.resumed": "codex.capacity.resumed";
6029
+ "codex.capacity.superseded": "codex.capacity.superseded";
6030
+ "sandbox.box.created": "sandbox.box.created";
6031
+ "sandbox.box.lost": "sandbox.box.lost";
6032
+ "sandbox.box.terminated": "sandbox.box.terminated";
6033
+ "sandbox.box.snapshot": "sandbox.box.snapshot";
6034
+ "sandbox.env.drift": "sandbox.env.drift";
6035
+ "session.route.reconciled": "session.route.reconciled";
6036
+ "workspace.revision.captured": "workspace.revision.captured";
6037
+ "workspace.revision.degraded": "workspace.revision.degraded";
6038
+ "machine.op.failed": "machine.op.failed";
6039
+ "machine.op.recovered": "machine.op.recovered";
6040
+ "machine.link.lost": "machine.link.lost";
6041
+ "machine.link.restored": "machine.link.restored";
6042
+ "machine.runner.restarted": "machine.runner.restarted";
6043
+ }>;
6044
+ payload: z.ZodDefault<z.ZodUnknown>;
6045
+ occurredAt: z.ZodString;
6046
+ clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6047
+ turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6048
+ turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6049
+ turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6050
+ turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6051
+ current: "current";
6052
+ late_rejected: "late_rejected";
6053
+ duplicate: "duplicate";
6054
+ }>>>;
6055
+ duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6056
+ duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6057
+ }, z.core.$strip>;
6058
+ type SessionEvent = z.infer<typeof SessionEvent>;
6059
+ declare const SessionQueueMutationResponse: z.ZodObject<{
6060
+ snapshot: z.ZodObject<{
6061
+ version: z.ZodNumber;
6062
+ controlState: z.ZodEnum<{
6063
+ paused: "paused";
6064
+ active: "active";
6065
+ }>;
6066
+ controlGeneration: z.ZodNumber;
6067
+ workspaceInferenceState: z.ZodEnum<{
6068
+ paused: "paused";
6069
+ active: "active";
6070
+ }>;
6071
+ workspaceInferenceGeneration: z.ZodNumber;
6072
+ workspaceRunExceptionGeneration: z.ZodNullable<z.ZodNumber>;
6073
+ items: z.ZodArray<z.ZodObject<{
6074
+ id: z.ZodString;
6075
+ workspaceId: z.ZodString;
6076
+ sessionId: z.ZodString;
6077
+ triggerEventId: z.ZodString;
6078
+ temporalWorkflowId: z.ZodString;
6079
+ status: z.ZodEnum<{
6080
+ queued: "queued";
6081
+ running: "running";
6082
+ requires_action: "requires_action";
6083
+ recovering: "recovering";
6084
+ waiting_capacity: "waiting_capacity";
6085
+ failed: "failed";
6086
+ cancelled: "cancelled";
6087
+ completed: "completed";
6088
+ superseded: "superseded";
6089
+ }>;
6090
+ source: z.ZodEnum<{
6091
+ user: "user";
6092
+ scheduled_task: "scheduled_task";
6093
+ api: "api";
6094
+ goal: "goal";
6095
+ system: "system";
6096
+ compaction: "compaction";
6097
+ }>;
6098
+ position: z.ZodNumber;
6099
+ prompt: z.ZodString;
6100
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6101
+ kind: z.ZodLiteral<"repository">;
6102
+ uri: z.ZodString;
6103
+ ref: z.ZodString;
6104
+ mountPath: z.ZodOptional<z.ZodString>;
6105
+ subpath: z.ZodOptional<z.ZodString>;
6106
+ provider: z.ZodOptional<z.ZodEnum<{
6107
+ github: "github";
6108
+ gitlab: "gitlab";
6109
+ azure_devops: "azure_devops";
6110
+ }>>;
6111
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6112
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6113
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6114
+ connectionId: z.ZodOptional<z.ZodString>;
6115
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
6116
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
6117
+ }, z.core.$strip>, z.ZodObject<{
6118
+ kind: z.ZodLiteral<"file">;
6119
+ fileId: z.ZodString;
6120
+ mountPath: z.ZodOptional<z.ZodString>;
6121
+ }, z.core.$strip>], "kind">>;
6122
+ tools: z.ZodArray<z.ZodObject<{
6123
+ kind: z.ZodLiteral<"mcp">;
6124
+ id: z.ZodString;
6125
+ optional: z.ZodOptional<z.ZodBoolean>;
6126
+ }, z.core.$strip>>;
6127
+ model: z.ZodString;
6128
+ reasoningEffort: z.ZodEnum<{
6129
+ none: "none";
6130
+ minimal: "minimal";
6131
+ low: "low";
6132
+ medium: "medium";
6133
+ high: "high";
6134
+ xhigh: "xhigh";
6135
+ }>;
6136
+ sandboxBackend: z.ZodEnum<{
6137
+ docker: "docker";
6138
+ modal: "modal";
6139
+ local: "local";
6140
+ none: "none";
6141
+ daytona: "daytona";
6142
+ runloop: "runloop";
6143
+ e2b: "e2b";
6144
+ blaxel: "blaxel";
6145
+ cloudflare: "cloudflare";
6146
+ vercel: "vercel";
6147
+ selfhosted: "selfhosted";
6148
+ }>;
6149
+ sandboxOs: z.ZodNullable<z.ZodEnum<{
6150
+ linux: "linux";
6151
+ macos: "macos";
6152
+ windows: "windows";
6153
+ }>>;
6154
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6155
+ version: z.ZodNumber;
6156
+ executionGeneration: z.ZodNumber;
6157
+ activeAttemptId: z.ZodNullable<z.ZodString>;
6158
+ lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6159
+ cancelledBy: z.ZodNullable<z.ZodString>;
6160
+ cancelReason: z.ZodNullable<z.ZodString>;
6161
+ startedAt: z.ZodNullable<z.ZodString>;
6162
+ finishedAt: z.ZodNullable<z.ZodString>;
6163
+ createdAt: z.ZodString;
6164
+ updatedAt: z.ZodString;
6165
+ }, z.core.$strip>>;
6166
+ }, z.core.$strip>;
6167
+ events: z.ZodArray<z.ZodObject<{
6168
+ id: z.ZodString;
6169
+ workspaceId: z.ZodString;
6170
+ sessionId: z.ZodString;
6171
+ sequence: z.ZodNumber;
6172
+ type: z.ZodEnum<{
6173
+ "session.created": "session.created";
6174
+ "session.status.changed": "session.status.changed";
6175
+ "session.requiresAction": "session.requiresAction";
6176
+ "session.context.compaction.requested": "session.context.compaction.requested";
6177
+ "session.context.compacted": "session.context.compacted";
6178
+ "session.context.compaction.skipped": "session.context.compaction.skipped";
6179
+ "session.context.cleared": "session.context.cleared";
6180
+ "user.message": "user.message";
6181
+ "user.pause": "user.pause";
6182
+ "user.approvalDecision": "user.approvalDecision";
6183
+ "turn.queued": "turn.queued";
6184
+ "turn.started": "turn.started";
6185
+ "turn.completed": "turn.completed";
6186
+ "turn.failed": "turn.failed";
6187
+ "turn.cancelled": "turn.cancelled";
6188
+ "turn.superseded": "turn.superseded";
6189
+ "turn.recovery.requested": "turn.recovery.requested";
6190
+ "turn.capacity_waiting": "turn.capacity_waiting";
6191
+ "agent.message.delta": "agent.message.delta";
6192
+ "agent.message.completed": "agent.message.completed";
6193
+ "agent.reasoning.delta": "agent.reasoning.delta";
6194
+ "agent.toolCall.created": "agent.toolCall.created";
6195
+ "agent.toolCall.output": "agent.toolCall.output";
6196
+ "agent.model.usage": "agent.model.usage";
6197
+ "tool.auth_needed": "tool.auth_needed";
6198
+ "agent.updated": "agent.updated";
6199
+ "rig.setup.started": "rig.setup.started";
6200
+ "rig.setup.completed": "rig.setup.completed";
6201
+ "rig.setup.skipped": "rig.setup.skipped";
6202
+ "rig.setup.failed": "rig.setup.failed";
6203
+ "sandbox.operation.started": "sandbox.operation.started";
6204
+ "sandbox.operation.completed": "sandbox.operation.completed";
6205
+ "sandbox.operation.failed": "sandbox.operation.failed";
6206
+ "sandbox.command.output.delta": "sandbox.command.output.delta";
6207
+ "artifact.created": "artifact.created";
6208
+ "goal.set": "goal.set";
6209
+ "goal.updated": "goal.updated";
6210
+ "goal.completed": "goal.completed";
6211
+ "goal.paused": "goal.paused";
6212
+ "goal.resumed": "goal.resumed";
6213
+ "goal.cleared": "goal.cleared";
6214
+ "goal.continuation": "goal.continuation";
6215
+ "system.update.pending": "system.update.pending";
6216
+ "system.update.delivered": "system.update.delivered";
6217
+ "session.control.paused": "session.control.paused";
6218
+ "session.control.resumed": "session.control.resumed";
6219
+ "session.control.steer_requested": "session.control.steer_requested";
6220
+ "workspace.inference.paused": "workspace.inference.paused";
6221
+ "workspace.inference.resumed": "workspace.inference.resumed";
6222
+ "session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
6223
+ "session.queue.history": "session.queue.history";
6224
+ "turn.event.rejected_late": "turn.event.rejected_late";
6225
+ "memory.saved": "memory.saved";
6226
+ "memory.corrected": "memory.corrected";
6227
+ "stream.url.rotated": "stream.url.rotated";
6228
+ "stream.opened": "stream.opened";
6229
+ "stream.closed": "stream.closed";
6230
+ "stream.revoked": "stream.revoked";
6231
+ "recording.started": "recording.started";
6232
+ "recording.available": "recording.available";
6233
+ "recording.failed": "recording.failed";
6234
+ "fs.changed": "fs.changed";
6235
+ "git.changed": "git.changed";
6236
+ "terminal.pty.started": "terminal.pty.started";
6237
+ "terminal.pty.output.delta": "terminal.pty.output.delta";
6238
+ "terminal.pty.exited": "terminal.pty.exited";
6239
+ "session.title_set": "session.title_set";
6240
+ "codex.account.switched": "codex.account.switched";
6241
+ "codex.credential.selected": "codex.credential.selected";
6242
+ "codex.capacity.waiting": "codex.capacity.waiting";
6243
+ "codex.capacity.resumed": "codex.capacity.resumed";
6244
+ "codex.capacity.superseded": "codex.capacity.superseded";
6245
+ "sandbox.box.created": "sandbox.box.created";
6246
+ "sandbox.box.lost": "sandbox.box.lost";
6247
+ "sandbox.box.terminated": "sandbox.box.terminated";
6248
+ "sandbox.box.snapshot": "sandbox.box.snapshot";
6249
+ "sandbox.env.drift": "sandbox.env.drift";
6250
+ "session.route.reconciled": "session.route.reconciled";
6251
+ "workspace.revision.captured": "workspace.revision.captured";
6252
+ "workspace.revision.degraded": "workspace.revision.degraded";
6253
+ "machine.op.failed": "machine.op.failed";
6254
+ "machine.op.recovered": "machine.op.recovered";
6255
+ "machine.link.lost": "machine.link.lost";
6256
+ "machine.link.restored": "machine.link.restored";
6257
+ "machine.runner.restarted": "machine.runner.restarted";
6258
+ }>;
6259
+ payload: z.ZodDefault<z.ZodUnknown>;
6260
+ occurredAt: z.ZodString;
6261
+ clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6262
+ turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6263
+ turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6264
+ turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6265
+ turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6266
+ current: "current";
6267
+ late_rejected: "late_rejected";
6268
+ duplicate: "duplicate";
6269
+ }>>>;
6270
+ duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6271
+ duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6272
+ }, z.core.$strip>>;
6273
+ shouldWake: z.ZodBoolean;
6274
+ }, z.core.$strip>;
6275
+ type SessionQueueMutationResponse = z.infer<typeof SessionQueueMutationResponse>;
6276
+ declare const SessionControlResponse: z.ZodObject<{
6277
+ operationId: z.ZodString;
6278
+ event: z.ZodObject<{
6279
+ id: z.ZodString;
6280
+ workspaceId: z.ZodString;
6281
+ sessionId: z.ZodString;
6282
+ sequence: z.ZodNumber;
6283
+ type: z.ZodEnum<{
6284
+ "session.created": "session.created";
6285
+ "session.status.changed": "session.status.changed";
6286
+ "session.requiresAction": "session.requiresAction";
6287
+ "session.context.compaction.requested": "session.context.compaction.requested";
6288
+ "session.context.compacted": "session.context.compacted";
6289
+ "session.context.compaction.skipped": "session.context.compaction.skipped";
6290
+ "session.context.cleared": "session.context.cleared";
6291
+ "user.message": "user.message";
6292
+ "user.pause": "user.pause";
6293
+ "user.approvalDecision": "user.approvalDecision";
6294
+ "turn.queued": "turn.queued";
6295
+ "turn.started": "turn.started";
6296
+ "turn.completed": "turn.completed";
6297
+ "turn.failed": "turn.failed";
6298
+ "turn.cancelled": "turn.cancelled";
6299
+ "turn.superseded": "turn.superseded";
6300
+ "turn.recovery.requested": "turn.recovery.requested";
6301
+ "turn.capacity_waiting": "turn.capacity_waiting";
6302
+ "agent.message.delta": "agent.message.delta";
6303
+ "agent.message.completed": "agent.message.completed";
6304
+ "agent.reasoning.delta": "agent.reasoning.delta";
6305
+ "agent.toolCall.created": "agent.toolCall.created";
6306
+ "agent.toolCall.output": "agent.toolCall.output";
6307
+ "agent.model.usage": "agent.model.usage";
6308
+ "tool.auth_needed": "tool.auth_needed";
6309
+ "agent.updated": "agent.updated";
6310
+ "rig.setup.started": "rig.setup.started";
6311
+ "rig.setup.completed": "rig.setup.completed";
6312
+ "rig.setup.skipped": "rig.setup.skipped";
6313
+ "rig.setup.failed": "rig.setup.failed";
6314
+ "sandbox.operation.started": "sandbox.operation.started";
6315
+ "sandbox.operation.completed": "sandbox.operation.completed";
6316
+ "sandbox.operation.failed": "sandbox.operation.failed";
6317
+ "sandbox.command.output.delta": "sandbox.command.output.delta";
6318
+ "artifact.created": "artifact.created";
6319
+ "goal.set": "goal.set";
6320
+ "goal.updated": "goal.updated";
6321
+ "goal.completed": "goal.completed";
6322
+ "goal.paused": "goal.paused";
6323
+ "goal.resumed": "goal.resumed";
6324
+ "goal.cleared": "goal.cleared";
6325
+ "goal.continuation": "goal.continuation";
6326
+ "system.update.pending": "system.update.pending";
6327
+ "system.update.delivered": "system.update.delivered";
6328
+ "session.control.paused": "session.control.paused";
6329
+ "session.control.resumed": "session.control.resumed";
6330
+ "session.control.steer_requested": "session.control.steer_requested";
6331
+ "workspace.inference.paused": "workspace.inference.paused";
6332
+ "workspace.inference.resumed": "workspace.inference.resumed";
6333
+ "session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
6334
+ "session.queue.history": "session.queue.history";
6335
+ "turn.event.rejected_late": "turn.event.rejected_late";
6336
+ "memory.saved": "memory.saved";
6337
+ "memory.corrected": "memory.corrected";
6338
+ "stream.url.rotated": "stream.url.rotated";
6339
+ "stream.opened": "stream.opened";
6340
+ "stream.closed": "stream.closed";
6341
+ "stream.revoked": "stream.revoked";
6342
+ "recording.started": "recording.started";
6343
+ "recording.available": "recording.available";
6344
+ "recording.failed": "recording.failed";
6345
+ "fs.changed": "fs.changed";
6346
+ "git.changed": "git.changed";
6347
+ "terminal.pty.started": "terminal.pty.started";
6348
+ "terminal.pty.output.delta": "terminal.pty.output.delta";
6349
+ "terminal.pty.exited": "terminal.pty.exited";
6350
+ "session.title_set": "session.title_set";
6351
+ "codex.account.switched": "codex.account.switched";
6352
+ "codex.credential.selected": "codex.credential.selected";
6353
+ "codex.capacity.waiting": "codex.capacity.waiting";
6354
+ "codex.capacity.resumed": "codex.capacity.resumed";
6355
+ "codex.capacity.superseded": "codex.capacity.superseded";
6356
+ "sandbox.box.created": "sandbox.box.created";
6357
+ "sandbox.box.lost": "sandbox.box.lost";
6358
+ "sandbox.box.terminated": "sandbox.box.terminated";
6359
+ "sandbox.box.snapshot": "sandbox.box.snapshot";
6360
+ "sandbox.env.drift": "sandbox.env.drift";
6361
+ "session.route.reconciled": "session.route.reconciled";
6362
+ "workspace.revision.captured": "workspace.revision.captured";
6363
+ "workspace.revision.degraded": "workspace.revision.degraded";
6364
+ "machine.op.failed": "machine.op.failed";
6365
+ "machine.op.recovered": "machine.op.recovered";
6366
+ "machine.link.lost": "machine.link.lost";
6367
+ "machine.link.restored": "machine.link.restored";
6368
+ "machine.runner.restarted": "machine.runner.restarted";
6369
+ }>;
6370
+ payload: z.ZodDefault<z.ZodUnknown>;
6371
+ occurredAt: z.ZodString;
6372
+ clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6373
+ turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6374
+ turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6375
+ turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6376
+ turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6377
+ current: "current";
6378
+ late_rejected: "late_rejected";
6379
+ duplicate: "duplicate";
6380
+ }>>>;
6381
+ duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6382
+ duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6383
+ }, z.core.$strip>;
6384
+ controlState: z.ZodEnum<{
6385
+ paused: "paused";
6386
+ active: "active";
3568
6387
  }>;
3569
- payload: z.ZodDefault<z.ZodUnknown>;
3570
- occurredAt: z.ZodString;
3571
- clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3572
- turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3573
- }, z.core.$strip>;
3574
- type SessionEvent = z.infer<typeof SessionEvent>;
3575
- declare const CreateSessionRequest: z.ZodObject<{
6388
+ controlGeneration: z.ZodNumber;
6389
+ expectedActiveTurnId: z.ZodNullable<z.ZodString>;
6390
+ expectedExecutionGeneration: z.ZodNullable<z.ZodNumber>;
6391
+ expectedAttemptId: z.ZodNullable<z.ZodString>;
6392
+ deliveryEventId: z.ZodNullable<z.ZodString>;
6393
+ shouldSignalControl: z.ZodBoolean;
6394
+ shouldWake: z.ZodBoolean;
6395
+ }, z.core.$strip>;
6396
+ type SessionControlResponse = z.infer<typeof SessionControlResponse>;
6397
+ declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
3576
6398
  initialMessage: z.ZodString;
3577
6399
  instructions: z.ZodOptional<z.ZodString>;
3578
6400
  resources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3581,6 +6403,15 @@ declare const CreateSessionRequest: z.ZodObject<{
3581
6403
  ref: z.ZodString;
3582
6404
  mountPath: z.ZodOptional<z.ZodString>;
3583
6405
  subpath: z.ZodOptional<z.ZodString>;
6406
+ provider: z.ZodOptional<z.ZodEnum<{
6407
+ github: "github";
6408
+ gitlab: "gitlab";
6409
+ azure_devops: "azure_devops";
6410
+ }>>;
6411
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6412
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6413
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6414
+ connectionId: z.ZodOptional<z.ZodString>;
3584
6415
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
3585
6416
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
3586
6417
  }, z.core.$strip>, z.ZodObject<{
@@ -3618,7 +6449,9 @@ declare const CreateSessionRequest: z.ZodObject<{
3618
6449
  }>>;
3619
6450
  targetSandboxId: z.ZodOptional<z.ZodString>;
3620
6451
  workingDir: z.ZodOptional<z.ZodString>;
6452
+ variableSetId: z.ZodOptional<z.ZodString>;
3621
6453
  environmentId: z.ZodOptional<z.ZodString>;
6454
+ rigId: z.ZodOptional<z.ZodString>;
3622
6455
  goal: z.ZodOptional<z.ZodObject<{
3623
6456
  text: z.ZodString;
3624
6457
  successCriteria: z.ZodOptional<z.ZodString>;
@@ -3652,12 +6485,19 @@ declare const CreateSessionRequest: z.ZodObject<{
3652
6485
  "github:manage": "github:manage";
3653
6486
  "github:use": "github:use";
3654
6487
  "api_keys:manage": "api_keys:manage";
6488
+ "connections:read": "connections:read";
6489
+ "connections:write": "connections:write";
3655
6490
  "environments:manage": "environments:manage";
3656
6491
  "environments:use": "environments:use";
6492
+ "variable-sets:manage": "variable-sets:manage";
6493
+ "variable-sets:use": "variable-sets:use";
3657
6494
  "mcp_servers:attach": "mcp_servers:attach";
6495
+ "toolspace:call": "toolspace:call";
3658
6496
  "goals:manage": "goals:manage";
3659
6497
  "enrollments:read": "enrollments:read";
3660
6498
  "enrollments:manage": "enrollments:manage";
6499
+ "rigs:use": "rigs:use";
6500
+ "rigs:manage": "rigs:manage";
3661
6501
  }>>>;
3662
6502
  mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3663
6503
  id: z.ZodString;
@@ -3666,12 +6506,13 @@ declare const CreateSessionRequest: z.ZodObject<{
3666
6506
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3667
6507
  timeoutMs: z.ZodOptional<z.ZodNumber>;
3668
6508
  cacheToolsList: z.ZodOptional<z.ZodBoolean>;
6509
+ requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
3669
6510
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3670
6511
  }, z.core.$strip>>>;
3671
6512
  sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"shared">, z.ZodLiteral<"new">, z.ZodObject<{
3672
6513
  groupId: z.ZodString;
3673
6514
  }, z.core.$strip>]>>;
3674
- }, z.core.$strip>;
6515
+ }, z.core.$strip>>;
3675
6516
  type CreateSessionRequest = z.infer<typeof CreateSessionRequest>;
3676
6517
  declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3677
6518
  type: z.ZodLiteral<"user.message">;
@@ -3684,6 +6525,15 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3684
6525
  ref: z.ZodString;
3685
6526
  mountPath: z.ZodOptional<z.ZodString>;
3686
6527
  subpath: z.ZodOptional<z.ZodString>;
6528
+ provider: z.ZodOptional<z.ZodEnum<{
6529
+ github: "github";
6530
+ gitlab: "gitlab";
6531
+ azure_devops: "azure_devops";
6532
+ }>>;
6533
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6534
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6535
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6536
+ connectionId: z.ZodOptional<z.ZodString>;
3687
6537
  githubInstallationId: z.ZodOptional<z.ZodNumber>;
3688
6538
  githubRepositoryId: z.ZodOptional<z.ZodNumber>;
3689
6539
  }, z.core.$strip>, z.ZodObject<{
@@ -3710,12 +6560,6 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3710
6560
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
3711
6561
  }, z.core.$strip>>>;
3712
6562
  }, z.core.$strip>;
3713
- }, z.core.$strip>, z.ZodObject<{
3714
- type: z.ZodLiteral<"user.interrupt">;
3715
- clientEventId: z.ZodOptional<z.ZodString>;
3716
- payload: z.ZodDefault<z.ZodObject<{
3717
- reason: z.ZodOptional<z.ZodString>;
3718
- }, z.core.$strip>>;
3719
6563
  }, z.core.$strip>, z.ZodObject<{
3720
6564
  type: z.ZodLiteral<"user.approvalDecision">;
3721
6565
  clientEventId: z.ZodOptional<z.ZodString>;
@@ -3729,6 +6573,255 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3729
6573
  }, z.core.$strip>;
3730
6574
  }, z.core.$strip>], "type">;
3731
6575
  type ClientSessionEvent = z.infer<typeof ClientSessionEvent>;
6576
+ declare const SteerSessionMessageRequest: z.ZodObject<{
6577
+ text: z.ZodString;
6578
+ resources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6579
+ kind: z.ZodLiteral<"repository">;
6580
+ uri: z.ZodString;
6581
+ ref: z.ZodString;
6582
+ mountPath: z.ZodOptional<z.ZodString>;
6583
+ subpath: z.ZodOptional<z.ZodString>;
6584
+ provider: z.ZodOptional<z.ZodEnum<{
6585
+ github: "github";
6586
+ gitlab: "gitlab";
6587
+ azure_devops: "azure_devops";
6588
+ }>>;
6589
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6590
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6591
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6592
+ connectionId: z.ZodOptional<z.ZodString>;
6593
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
6594
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
6595
+ }, z.core.$strip>, z.ZodObject<{
6596
+ kind: z.ZodLiteral<"file">;
6597
+ fileId: z.ZodString;
6598
+ mountPath: z.ZodOptional<z.ZodString>;
6599
+ }, z.core.$strip>], "kind">>>;
6600
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
6601
+ kind: z.ZodLiteral<"mcp">;
6602
+ id: z.ZodString;
6603
+ optional: z.ZodOptional<z.ZodBoolean>;
6604
+ }, z.core.$strip>>>;
6605
+ model: z.ZodOptional<z.ZodString>;
6606
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
6607
+ none: "none";
6608
+ minimal: "minimal";
6609
+ low: "low";
6610
+ medium: "medium";
6611
+ high: "high";
6612
+ xhigh: "xhigh";
6613
+ }>>;
6614
+ clientEventId: z.ZodOptional<z.ZodString>;
6615
+ expectedControlGeneration: z.ZodOptional<z.ZodNumber>;
6616
+ expectedWorkspaceInferenceGeneration: z.ZodOptional<z.ZodNumber>;
6617
+ mcpCredentialUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
6618
+ id: z.ZodString;
6619
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
6620
+ }, z.core.$strip>>>;
6621
+ }, z.core.$strip>;
6622
+ type SteerSessionMessageRequest = z.infer<typeof SteerSessionMessageRequest>;
6623
+ declare const SteerSessionMessageResponse: z.ZodObject<{
6624
+ accepted: z.ZodObject<{
6625
+ id: z.ZodString;
6626
+ workspaceId: z.ZodString;
6627
+ sessionId: z.ZodString;
6628
+ sequence: z.ZodNumber;
6629
+ type: z.ZodEnum<{
6630
+ "session.created": "session.created";
6631
+ "session.status.changed": "session.status.changed";
6632
+ "session.requiresAction": "session.requiresAction";
6633
+ "session.context.compaction.requested": "session.context.compaction.requested";
6634
+ "session.context.compacted": "session.context.compacted";
6635
+ "session.context.compaction.skipped": "session.context.compaction.skipped";
6636
+ "session.context.cleared": "session.context.cleared";
6637
+ "user.message": "user.message";
6638
+ "user.pause": "user.pause";
6639
+ "user.approvalDecision": "user.approvalDecision";
6640
+ "turn.queued": "turn.queued";
6641
+ "turn.started": "turn.started";
6642
+ "turn.completed": "turn.completed";
6643
+ "turn.failed": "turn.failed";
6644
+ "turn.cancelled": "turn.cancelled";
6645
+ "turn.superseded": "turn.superseded";
6646
+ "turn.recovery.requested": "turn.recovery.requested";
6647
+ "turn.capacity_waiting": "turn.capacity_waiting";
6648
+ "agent.message.delta": "agent.message.delta";
6649
+ "agent.message.completed": "agent.message.completed";
6650
+ "agent.reasoning.delta": "agent.reasoning.delta";
6651
+ "agent.toolCall.created": "agent.toolCall.created";
6652
+ "agent.toolCall.output": "agent.toolCall.output";
6653
+ "agent.model.usage": "agent.model.usage";
6654
+ "tool.auth_needed": "tool.auth_needed";
6655
+ "agent.updated": "agent.updated";
6656
+ "rig.setup.started": "rig.setup.started";
6657
+ "rig.setup.completed": "rig.setup.completed";
6658
+ "rig.setup.skipped": "rig.setup.skipped";
6659
+ "rig.setup.failed": "rig.setup.failed";
6660
+ "sandbox.operation.started": "sandbox.operation.started";
6661
+ "sandbox.operation.completed": "sandbox.operation.completed";
6662
+ "sandbox.operation.failed": "sandbox.operation.failed";
6663
+ "sandbox.command.output.delta": "sandbox.command.output.delta";
6664
+ "artifact.created": "artifact.created";
6665
+ "goal.set": "goal.set";
6666
+ "goal.updated": "goal.updated";
6667
+ "goal.completed": "goal.completed";
6668
+ "goal.paused": "goal.paused";
6669
+ "goal.resumed": "goal.resumed";
6670
+ "goal.cleared": "goal.cleared";
6671
+ "goal.continuation": "goal.continuation";
6672
+ "system.update.pending": "system.update.pending";
6673
+ "system.update.delivered": "system.update.delivered";
6674
+ "session.control.paused": "session.control.paused";
6675
+ "session.control.resumed": "session.control.resumed";
6676
+ "session.control.steer_requested": "session.control.steer_requested";
6677
+ "workspace.inference.paused": "workspace.inference.paused";
6678
+ "workspace.inference.resumed": "workspace.inference.resumed";
6679
+ "session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
6680
+ "session.queue.history": "session.queue.history";
6681
+ "turn.event.rejected_late": "turn.event.rejected_late";
6682
+ "memory.saved": "memory.saved";
6683
+ "memory.corrected": "memory.corrected";
6684
+ "stream.url.rotated": "stream.url.rotated";
6685
+ "stream.opened": "stream.opened";
6686
+ "stream.closed": "stream.closed";
6687
+ "stream.revoked": "stream.revoked";
6688
+ "recording.started": "recording.started";
6689
+ "recording.available": "recording.available";
6690
+ "recording.failed": "recording.failed";
6691
+ "fs.changed": "fs.changed";
6692
+ "git.changed": "git.changed";
6693
+ "terminal.pty.started": "terminal.pty.started";
6694
+ "terminal.pty.output.delta": "terminal.pty.output.delta";
6695
+ "terminal.pty.exited": "terminal.pty.exited";
6696
+ "session.title_set": "session.title_set";
6697
+ "codex.account.switched": "codex.account.switched";
6698
+ "codex.credential.selected": "codex.credential.selected";
6699
+ "codex.capacity.waiting": "codex.capacity.waiting";
6700
+ "codex.capacity.resumed": "codex.capacity.resumed";
6701
+ "codex.capacity.superseded": "codex.capacity.superseded";
6702
+ "sandbox.box.created": "sandbox.box.created";
6703
+ "sandbox.box.lost": "sandbox.box.lost";
6704
+ "sandbox.box.terminated": "sandbox.box.terminated";
6705
+ "sandbox.box.snapshot": "sandbox.box.snapshot";
6706
+ "sandbox.env.drift": "sandbox.env.drift";
6707
+ "session.route.reconciled": "session.route.reconciled";
6708
+ "workspace.revision.captured": "workspace.revision.captured";
6709
+ "workspace.revision.degraded": "workspace.revision.degraded";
6710
+ "machine.op.failed": "machine.op.failed";
6711
+ "machine.op.recovered": "machine.op.recovered";
6712
+ "machine.link.lost": "machine.link.lost";
6713
+ "machine.link.restored": "machine.link.restored";
6714
+ "machine.runner.restarted": "machine.runner.restarted";
6715
+ }>;
6716
+ payload: z.ZodDefault<z.ZodUnknown>;
6717
+ occurredAt: z.ZodString;
6718
+ clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6719
+ turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6720
+ turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6721
+ turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6722
+ turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6723
+ current: "current";
6724
+ late_rejected: "late_rejected";
6725
+ duplicate: "duplicate";
6726
+ }>>>;
6727
+ duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6728
+ duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6729
+ }, z.core.$strip>;
6730
+ turn: z.ZodObject<{
6731
+ id: z.ZodString;
6732
+ workspaceId: z.ZodString;
6733
+ sessionId: z.ZodString;
6734
+ triggerEventId: z.ZodString;
6735
+ temporalWorkflowId: z.ZodString;
6736
+ status: z.ZodEnum<{
6737
+ queued: "queued";
6738
+ running: "running";
6739
+ requires_action: "requires_action";
6740
+ recovering: "recovering";
6741
+ waiting_capacity: "waiting_capacity";
6742
+ failed: "failed";
6743
+ cancelled: "cancelled";
6744
+ completed: "completed";
6745
+ superseded: "superseded";
6746
+ }>;
6747
+ source: z.ZodEnum<{
6748
+ user: "user";
6749
+ scheduled_task: "scheduled_task";
6750
+ api: "api";
6751
+ goal: "goal";
6752
+ system: "system";
6753
+ compaction: "compaction";
6754
+ }>;
6755
+ position: z.ZodNumber;
6756
+ prompt: z.ZodString;
6757
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6758
+ kind: z.ZodLiteral<"repository">;
6759
+ uri: z.ZodString;
6760
+ ref: z.ZodString;
6761
+ mountPath: z.ZodOptional<z.ZodString>;
6762
+ subpath: z.ZodOptional<z.ZodString>;
6763
+ provider: z.ZodOptional<z.ZodEnum<{
6764
+ github: "github";
6765
+ gitlab: "gitlab";
6766
+ azure_devops: "azure_devops";
6767
+ }>>;
6768
+ repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6769
+ installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6770
+ projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
6771
+ connectionId: z.ZodOptional<z.ZodString>;
6772
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
6773
+ githubRepositoryId: z.ZodOptional<z.ZodNumber>;
6774
+ }, z.core.$strip>, z.ZodObject<{
6775
+ kind: z.ZodLiteral<"file">;
6776
+ fileId: z.ZodString;
6777
+ mountPath: z.ZodOptional<z.ZodString>;
6778
+ }, z.core.$strip>], "kind">>;
6779
+ tools: z.ZodArray<z.ZodObject<{
6780
+ kind: z.ZodLiteral<"mcp">;
6781
+ id: z.ZodString;
6782
+ optional: z.ZodOptional<z.ZodBoolean>;
6783
+ }, z.core.$strip>>;
6784
+ model: z.ZodString;
6785
+ reasoningEffort: z.ZodEnum<{
6786
+ none: "none";
6787
+ minimal: "minimal";
6788
+ low: "low";
6789
+ medium: "medium";
6790
+ high: "high";
6791
+ xhigh: "xhigh";
6792
+ }>;
6793
+ sandboxBackend: z.ZodEnum<{
6794
+ docker: "docker";
6795
+ modal: "modal";
6796
+ local: "local";
6797
+ none: "none";
6798
+ daytona: "daytona";
6799
+ runloop: "runloop";
6800
+ e2b: "e2b";
6801
+ blaxel: "blaxel";
6802
+ cloudflare: "cloudflare";
6803
+ vercel: "vercel";
6804
+ selfhosted: "selfhosted";
6805
+ }>;
6806
+ sandboxOs: z.ZodNullable<z.ZodEnum<{
6807
+ linux: "linux";
6808
+ macos: "macos";
6809
+ windows: "windows";
6810
+ }>>;
6811
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6812
+ version: z.ZodNumber;
6813
+ executionGeneration: z.ZodNumber;
6814
+ activeAttemptId: z.ZodNullable<z.ZodString>;
6815
+ lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6816
+ cancelledBy: z.ZodNullable<z.ZodString>;
6817
+ cancelReason: z.ZodNullable<z.ZodString>;
6818
+ startedAt: z.ZodNullable<z.ZodString>;
6819
+ finishedAt: z.ZodNullable<z.ZodString>;
6820
+ createdAt: z.ZodString;
6821
+ updatedAt: z.ZodString;
6822
+ }, z.core.$strip>;
6823
+ }, z.core.$strip>;
6824
+ type SteerSessionMessageResponse = z.infer<typeof SteerSessionMessageResponse>;
3732
6825
  declare const SessionBusMessage: z.ZodObject<{
3733
6826
  workspaceId: z.ZodString;
3734
6827
  sessionId: z.ZodString;
@@ -3741,24 +6834,33 @@ declare const SessionBusMessage: z.ZodObject<{
3741
6834
  "session.created": "session.created";
3742
6835
  "session.status.changed": "session.status.changed";
3743
6836
  "session.requiresAction": "session.requiresAction";
6837
+ "session.context.compaction.requested": "session.context.compaction.requested";
3744
6838
  "session.context.compacted": "session.context.compacted";
6839
+ "session.context.compaction.skipped": "session.context.compaction.skipped";
3745
6840
  "session.context.cleared": "session.context.cleared";
3746
6841
  "user.message": "user.message";
3747
- "user.interrupt": "user.interrupt";
6842
+ "user.pause": "user.pause";
3748
6843
  "user.approvalDecision": "user.approvalDecision";
3749
6844
  "turn.queued": "turn.queued";
3750
- "turn.updated": "turn.updated";
3751
6845
  "turn.started": "turn.started";
3752
6846
  "turn.completed": "turn.completed";
3753
6847
  "turn.failed": "turn.failed";
3754
6848
  "turn.cancelled": "turn.cancelled";
3755
- "turn.preempted": "turn.preempted";
6849
+ "turn.superseded": "turn.superseded";
6850
+ "turn.recovery.requested": "turn.recovery.requested";
6851
+ "turn.capacity_waiting": "turn.capacity_waiting";
3756
6852
  "agent.message.delta": "agent.message.delta";
3757
6853
  "agent.message.completed": "agent.message.completed";
3758
6854
  "agent.reasoning.delta": "agent.reasoning.delta";
3759
6855
  "agent.toolCall.created": "agent.toolCall.created";
3760
6856
  "agent.toolCall.output": "agent.toolCall.output";
6857
+ "agent.model.usage": "agent.model.usage";
6858
+ "tool.auth_needed": "tool.auth_needed";
3761
6859
  "agent.updated": "agent.updated";
6860
+ "rig.setup.started": "rig.setup.started";
6861
+ "rig.setup.completed": "rig.setup.completed";
6862
+ "rig.setup.skipped": "rig.setup.skipped";
6863
+ "rig.setup.failed": "rig.setup.failed";
3762
6864
  "sandbox.operation.started": "sandbox.operation.started";
3763
6865
  "sandbox.operation.completed": "sandbox.operation.completed";
3764
6866
  "sandbox.operation.failed": "sandbox.operation.failed";
@@ -3769,7 +6871,20 @@ declare const SessionBusMessage: z.ZodObject<{
3769
6871
  "goal.completed": "goal.completed";
3770
6872
  "goal.paused": "goal.paused";
3771
6873
  "goal.resumed": "goal.resumed";
6874
+ "goal.cleared": "goal.cleared";
3772
6875
  "goal.continuation": "goal.continuation";
6876
+ "system.update.pending": "system.update.pending";
6877
+ "system.update.delivered": "system.update.delivered";
6878
+ "session.control.paused": "session.control.paused";
6879
+ "session.control.resumed": "session.control.resumed";
6880
+ "session.control.steer_requested": "session.control.steer_requested";
6881
+ "workspace.inference.paused": "workspace.inference.paused";
6882
+ "workspace.inference.resumed": "workspace.inference.resumed";
6883
+ "session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
6884
+ "session.queue.history": "session.queue.history";
6885
+ "turn.event.rejected_late": "turn.event.rejected_late";
6886
+ "memory.saved": "memory.saved";
6887
+ "memory.corrected": "memory.corrected";
3773
6888
  "stream.url.rotated": "stream.url.rotated";
3774
6889
  "stream.opened": "stream.opened";
3775
6890
  "stream.closed": "stream.closed";
@@ -3784,11 +6899,37 @@ declare const SessionBusMessage: z.ZodObject<{
3784
6899
  "terminal.pty.exited": "terminal.pty.exited";
3785
6900
  "session.title_set": "session.title_set";
3786
6901
  "codex.account.switched": "codex.account.switched";
6902
+ "codex.credential.selected": "codex.credential.selected";
6903
+ "codex.capacity.waiting": "codex.capacity.waiting";
6904
+ "codex.capacity.resumed": "codex.capacity.resumed";
6905
+ "codex.capacity.superseded": "codex.capacity.superseded";
6906
+ "sandbox.box.created": "sandbox.box.created";
6907
+ "sandbox.box.lost": "sandbox.box.lost";
6908
+ "sandbox.box.terminated": "sandbox.box.terminated";
6909
+ "sandbox.box.snapshot": "sandbox.box.snapshot";
6910
+ "sandbox.env.drift": "sandbox.env.drift";
6911
+ "session.route.reconciled": "session.route.reconciled";
6912
+ "workspace.revision.captured": "workspace.revision.captured";
6913
+ "workspace.revision.degraded": "workspace.revision.degraded";
6914
+ "machine.op.failed": "machine.op.failed";
6915
+ "machine.op.recovered": "machine.op.recovered";
6916
+ "machine.link.lost": "machine.link.lost";
6917
+ "machine.link.restored": "machine.link.restored";
6918
+ "machine.runner.restarted": "machine.runner.restarted";
3787
6919
  }>;
3788
6920
  payload: z.ZodDefault<z.ZodUnknown>;
3789
6921
  occurredAt: z.ZodString;
3790
6922
  clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3791
6923
  turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6924
+ turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6925
+ turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6926
+ turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6927
+ current: "current";
6928
+ late_rejected: "late_rejected";
6929
+ duplicate: "duplicate";
6930
+ }>>>;
6931
+ duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6932
+ duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3792
6933
  }, z.core.$strip>>;
3793
6934
  }, z.core.$strip>;
3794
6935
  type SessionBusMessage = z.infer<typeof SessionBusMessage>;
@@ -4153,6 +7294,7 @@ declare const EnrollmentSummary: z.ZodObject<{
4153
7294
  pubkey: z.ZodString;
4154
7295
  exposure: z.ZodLiteral<"whole-machine">;
4155
7296
  hasDisplay: z.ZodBoolean;
7297
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4156
7298
  allowScreenControl: z.ZodBoolean;
4157
7299
  status: z.ZodEnum<{
4158
7300
  active: "active";
@@ -4175,6 +7317,7 @@ declare const ListEnrollmentsResponse: z.ZodObject<{
4175
7317
  pubkey: z.ZodString;
4176
7318
  exposure: z.ZodLiteral<"whole-machine">;
4177
7319
  hasDisplay: z.ZodBoolean;
7320
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4178
7321
  allowScreenControl: z.ZodBoolean;
4179
7322
  status: z.ZodEnum<{
4180
7323
  active: "active";
@@ -4350,6 +7493,7 @@ declare const MachineView: z.ZodObject<{
4350
7493
  os: z.ZodString;
4351
7494
  arch: z.ZodString;
4352
7495
  hasDisplay: z.ZodBoolean;
7496
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4353
7497
  allowScreenControl: z.ZodBoolean;
4354
7498
  sharedSessionCount: z.ZodNumber;
4355
7499
  lastSeenAt: z.ZodNullable<z.ZodString>;
@@ -4398,6 +7542,7 @@ declare const MachinesResponse: z.ZodObject<{
4398
7542
  os: z.ZodString;
4399
7543
  arch: z.ZodString;
4400
7544
  hasDisplay: z.ZodBoolean;
7545
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4401
7546
  allowScreenControl: z.ZodBoolean;
4402
7547
  sharedSessionCount: z.ZodNumber;
4403
7548
  lastSeenAt: z.ZodNullable<z.ZodString>;
@@ -4439,6 +7584,13 @@ declare const SwapActiveSandboxResponse: z.ZodObject<{
4439
7584
  activeSandboxId: z.ZodNullable<z.ZodString>;
4440
7585
  activeEpoch: z.ZodNumber;
4441
7586
  reason: z.ZodOptional<z.ZodString>;
7587
+ code: z.ZodOptional<z.ZodEnum<{
7588
+ stale_pointer: "stale_pointer";
7589
+ offline_enrollment: "offline_enrollment";
7590
+ unsupported_backend_context: "unsupported_backend_context";
7591
+ transient_establishment: "transient_establishment";
7592
+ concurrent_swap: "concurrent_swap";
7593
+ }>>;
4442
7594
  }, z.core.$strip>;
4443
7595
  type SwapActiveSandboxResponse = z.infer<typeof SwapActiveSandboxResponse>;
4444
7596
  /**
@@ -4475,8 +7627,8 @@ declare const ClientModel: z.ZodObject<{
4475
7627
  provider: z.ZodString;
4476
7628
  providerLabel: z.ZodString;
4477
7629
  api: z.ZodEnum<{
4478
- responses: "responses";
4479
7630
  chat: "chat";
7631
+ responses: "responses";
4480
7632
  }>;
4481
7633
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
4482
7634
  }, z.core.$strip>;
@@ -4492,8 +7644,8 @@ declare const ClientConfig: z.ZodObject<{
4492
7644
  provider: z.ZodString;
4493
7645
  providerLabel: z.ZodString;
4494
7646
  api: z.ZodEnum<{
4495
- responses: "responses";
4496
7647
  chat: "chat";
7648
+ responses: "responses";
4497
7649
  }>;
4498
7650
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
4499
7651
  }, z.core.$strip>>>;
@@ -4548,8 +7700,33 @@ declare const ClientConfig: z.ZodObject<{
4548
7700
  type ClientConfig = z.infer<typeof ClientConfig>;
4549
7701
  type HealthResponse = {
4550
7702
  service: string;
4551
- environment: string;
7703
+ variableSet: string;
4552
7704
  ok: boolean;
4553
7705
  };
7706
+ /**
7707
+ * Per-workspace model/provider availability policy (see @opengeni/db
7708
+ * workspace_model_policies). NULL fields = unrestricted; a non-null
7709
+ * allowedProviders is a strict allowlist over RESOLVED provider identities
7710
+ * (the built-in OpenAI/Azure client's id — "openai"/"azure" — including the
7711
+ * legacy null-resolution fallback; "codex-subscription" for the ChatGPT/Codex
7712
+ * overlay; registry providers by their declared ids); a non-null allowedModels
7713
+ * is an additional exact-model-id allowlist. Pure and shared so the API edge
7714
+ * (422) and the worker's authoritative post-resolution gate (fail-loud
7715
+ * turn.failed, never a silent remap) can never disagree on semantics.
7716
+ */
7717
+ type WorkspaceModelPolicyContract = {
7718
+ allowedProviders: string[] | null;
7719
+ allowedModels: string[] | null;
7720
+ };
7721
+ type WorkspaceModelPolicyVerdict = {
7722
+ allowed: true;
7723
+ } | {
7724
+ allowed: false;
7725
+ reason: "provider" | "model";
7726
+ };
7727
+ declare function evaluateWorkspaceModelPolicy(policy: WorkspaceModelPolicyContract | null | undefined, candidate: {
7728
+ providerId: string;
7729
+ modelId: string;
7730
+ }): WorkspaceModelPolicyVerdict;
4554
7731
 
4555
- export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, BillingBalance, BillingMode, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CapabilityCatalogItem, CapabilityCatalogResponse, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, type ConnectionCredentialsPort, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateScheduledTaskRequest, CreateSessionRequest, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GitChangedPayload, GitCommit, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHubAppApiPort, GitHubAppManifestCreate, type GitHubInstallationSummary, GitHubRepository, GitLogRequest, GitLogResponse, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, LimitAction, LimitDecision, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, ReorderSessionTurnsRequest, RepositoryResourceRef, ResourceRef, ResourceRefConflictError, RevokeEnrollmentResponse, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, Session, SessionBusMessage, SessionCapabilities, SessionEvent, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionMcpCredentialUpdateInput, SessionMcpServerInput, SessionMcpServerMetadata, SessionStatus, SessionStructuredCapabilities, SessionTurn, SessionTurnSource, SessionTurnStatus, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SwapActiveSandboxRequest, SwapActiveSandboxResponse, TERMINAL_STREAM_PORT, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolRef, TriggerScheduledTaskRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionRequest, UpdateSessionTurnRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceRequest, UsageEvent, UsageEventType, UsageLimitsMode, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, Workspace, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceEnvironmentVariableName, WorkspaceMember, WorkspaceRegisteredPack, isClearedRunStateBlob, mergeResourceRefs, mergeToolRefs, reasoningEffortForMetadata, resourceIdentityKey, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken };
7732
+ export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, BillingBalance, BillingMode, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CancelSessionQueueItemRequest, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHubAppApiPort, GitHubAppManifestCreate, type GitHubInstallationSummary, GitHubRepository, GitLogRequest, GitLogResponse, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, OAuthStartRequest, OAuthStartResponse, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, ResourceRef, ResourceRefConflictError, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, Session, SessionBusMessage, SessionCapabilities, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEvent, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionLineageResponse, SessionListResponse, SessionMcpCredentialUpdateInput, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdateState, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TriggerScheduledTaskRequest, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionPinRequest, UpdateSessionRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, evaluateWorkspaceModelPolicy, isClearedRunStateBlob, mergeResourceRefs, mergeToolRefs, prefixedMcpToolName, reasoningEffortForMetadata, resolveWorkspaceMemoryEnabled, resourceIdentityKey, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken };