@opengeni/contracts 0.7.0 → 0.9.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
@@ -159,14 +159,18 @@ declare const Permission: z.ZodEnum<{
159
159
  "github:manage": "github:manage";
160
160
  "github:use": "github:use";
161
161
  "api_keys:manage": "api_keys:manage";
162
+ "connections:read": "connections:read";
163
+ "connections:write": "connections:write";
162
164
  "environments:manage": "environments:manage";
163
165
  "environments:use": "environments:use";
164
166
  "mcp_servers:attach": "mcp_servers:attach";
167
+ "toolspace:call": "toolspace:call";
165
168
  "goals:manage": "goals:manage";
166
169
  "enrollments:read": "enrollments:read";
167
170
  "enrollments:manage": "enrollments:manage";
168
171
  }>;
169
172
  type Permission = z.infer<typeof Permission>;
173
+ declare function prefixedMcpToolName(registryId: string, toolName: string): string;
170
174
  declare const ProductAccessMode: z.ZodEnum<{
171
175
  local: "local";
172
176
  configured: "configured";
@@ -252,9 +256,12 @@ declare const AccountGrant: z.ZodObject<{
252
256
  "github:manage": "github:manage";
253
257
  "github:use": "github:use";
254
258
  "api_keys:manage": "api_keys:manage";
259
+ "connections:read": "connections:read";
260
+ "connections:write": "connections:write";
255
261
  "environments:manage": "environments:manage";
256
262
  "environments:use": "environments:use";
257
263
  "mcp_servers:attach": "mcp_servers:attach";
264
+ "toolspace:call": "toolspace:call";
258
265
  "goals:manage": "goals:manage";
259
266
  "enrollments:read": "enrollments:read";
260
267
  "enrollments:manage": "enrollments:manage";
@@ -293,9 +300,12 @@ declare const AccessGrant: z.ZodObject<{
293
300
  "github:manage": "github:manage";
294
301
  "github:use": "github:use";
295
302
  "api_keys:manage": "api_keys:manage";
303
+ "connections:read": "connections:read";
304
+ "connections:write": "connections:write";
296
305
  "environments:manage": "environments:manage";
297
306
  "environments:use": "environments:use";
298
307
  "mcp_servers:attach": "mcp_servers:attach";
308
+ "toolspace:call": "toolspace:call";
299
309
  "goals:manage": "goals:manage";
300
310
  "enrollments:read": "enrollments:read";
301
311
  "enrollments:manage": "enrollments:manage";
@@ -346,9 +356,12 @@ declare const AccessContext: z.ZodObject<{
346
356
  "github:manage": "github:manage";
347
357
  "github:use": "github:use";
348
358
  "api_keys:manage": "api_keys:manage";
359
+ "connections:read": "connections:read";
360
+ "connections:write": "connections:write";
349
361
  "environments:manage": "environments:manage";
350
362
  "environments:use": "environments:use";
351
363
  "mcp_servers:attach": "mcp_servers:attach";
364
+ "toolspace:call": "toolspace:call";
352
365
  "goals:manage": "goals:manage";
353
366
  "enrollments:read": "enrollments:read";
354
367
  "enrollments:manage": "enrollments:manage";
@@ -386,9 +399,12 @@ declare const AccessContext: z.ZodObject<{
386
399
  "github:manage": "github:manage";
387
400
  "github:use": "github:use";
388
401
  "api_keys:manage": "api_keys:manage";
402
+ "connections:read": "connections:read";
403
+ "connections:write": "connections:write";
389
404
  "environments:manage": "environments:manage";
390
405
  "environments:use": "environments:use";
391
406
  "mcp_servers:attach": "mcp_servers:attach";
407
+ "toolspace:call": "toolspace:call";
392
408
  "goals:manage": "goals:manage";
393
409
  "enrollments:read": "enrollments:read";
394
410
  "enrollments:manage": "enrollments:manage";
@@ -430,9 +446,12 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
430
446
  "github:manage": "github:manage";
431
447
  "github:use": "github:use";
432
448
  "api_keys:manage": "api_keys:manage";
449
+ "connections:read": "connections:read";
450
+ "connections:write": "connections:write";
433
451
  "environments:manage": "environments:manage";
434
452
  "environments:use": "environments:use";
435
453
  "mcp_servers:attach": "mcp_servers:attach";
454
+ "toolspace:call": "toolspace:call";
436
455
  "goals:manage": "goals:manage";
437
456
  "enrollments:read": "enrollments:read";
438
457
  "enrollments:manage": "enrollments:manage";
@@ -561,9 +580,12 @@ declare const ApiKey: z.ZodObject<{
561
580
  "github:manage": "github:manage";
562
581
  "github:use": "github:use";
563
582
  "api_keys:manage": "api_keys:manage";
583
+ "connections:read": "connections:read";
584
+ "connections:write": "connections:write";
564
585
  "environments:manage": "environments:manage";
565
586
  "environments:use": "environments:use";
566
587
  "mcp_servers:attach": "mcp_servers:attach";
588
+ "toolspace:call": "toolspace:call";
567
589
  "goals:manage": "goals:manage";
568
590
  "enrollments:read": "enrollments:read";
569
591
  "enrollments:manage": "enrollments:manage";
@@ -604,9 +626,12 @@ declare const CreateApiKeyRequest: z.ZodObject<{
604
626
  "github:manage": "github:manage";
605
627
  "github:use": "github:use";
606
628
  "api_keys:manage": "api_keys:manage";
629
+ "connections:read": "connections:read";
630
+ "connections:write": "connections:write";
607
631
  "environments:manage": "environments:manage";
608
632
  "environments:use": "environments:use";
609
633
  "mcp_servers:attach": "mcp_servers:attach";
634
+ "toolspace:call": "toolspace:call";
610
635
  "goals:manage": "goals:manage";
611
636
  "enrollments:read": "enrollments:read";
612
637
  "enrollments:manage": "enrollments:manage";
@@ -647,9 +672,12 @@ declare const CreateApiKeyResponse: z.ZodObject<{
647
672
  "github:manage": "github:manage";
648
673
  "github:use": "github:use";
649
674
  "api_keys:manage": "api_keys:manage";
675
+ "connections:read": "connections:read";
676
+ "connections:write": "connections:write";
650
677
  "environments:manage": "environments:manage";
651
678
  "environments:use": "environments:use";
652
679
  "mcp_servers:attach": "mcp_servers:attach";
680
+ "toolspace:call": "toolspace:call";
653
681
  "goals:manage": "goals:manage";
654
682
  "enrollments:read": "enrollments:read";
655
683
  "enrollments:manage": "enrollments:manage";
@@ -693,9 +721,12 @@ declare const WorkspaceMember: z.ZodObject<{
693
721
  "github:manage": "github:manage";
694
722
  "github:use": "github:use";
695
723
  "api_keys:manage": "api_keys:manage";
724
+ "connections:read": "connections:read";
725
+ "connections:write": "connections:write";
696
726
  "environments:manage": "environments:manage";
697
727
  "environments:use": "environments:use";
698
728
  "mcp_servers:attach": "mcp_servers:attach";
729
+ "toolspace:call": "toolspace:call";
699
730
  "goals:manage": "goals:manage";
700
731
  "enrollments:read": "enrollments:read";
701
732
  "enrollments:manage": "enrollments:manage";
@@ -734,9 +765,12 @@ declare const ListWorkspaceMembersResponse: z.ZodObject<{
734
765
  "github:manage": "github:manage";
735
766
  "github:use": "github:use";
736
767
  "api_keys:manage": "api_keys:manage";
768
+ "connections:read": "connections:read";
769
+ "connections:write": "connections:write";
737
770
  "environments:manage": "environments:manage";
738
771
  "environments:use": "environments:use";
739
772
  "mcp_servers:attach": "mcp_servers:attach";
773
+ "toolspace:call": "toolspace:call";
740
774
  "goals:manage": "goals:manage";
741
775
  "enrollments:read": "enrollments:read";
742
776
  "enrollments:manage": "enrollments:manage";
@@ -774,9 +808,12 @@ declare const AddWorkspaceMemberRequest: z.ZodObject<{
774
808
  "github:manage": "github:manage";
775
809
  "github:use": "github:use";
776
810
  "api_keys:manage": "api_keys:manage";
811
+ "connections:read": "connections:read";
812
+ "connections:write": "connections:write";
777
813
  "environments:manage": "environments:manage";
778
814
  "environments:use": "environments:use";
779
815
  "mcp_servers:attach": "mcp_servers:attach";
816
+ "toolspace:call": "toolspace:call";
780
817
  "goals:manage": "goals:manage";
781
818
  "enrollments:read": "enrollments:read";
782
819
  "enrollments:manage": "enrollments:manage";
@@ -811,9 +848,12 @@ declare const UpdateWorkspaceMemberRequest: z.ZodObject<{
811
848
  "github:manage": "github:manage";
812
849
  "github:use": "github:use";
813
850
  "api_keys:manage": "api_keys:manage";
851
+ "connections:read": "connections:read";
852
+ "connections:write": "connections:write";
814
853
  "environments:manage": "environments:manage";
815
854
  "environments:use": "environments:use";
816
855
  "mcp_servers:attach": "mcp_servers:attach";
856
+ "toolspace:call": "toolspace:call";
817
857
  "goals:manage": "goals:manage";
818
858
  "enrollments:read": "enrollments:read";
819
859
  "enrollments:manage": "enrollments:manage";
@@ -1096,6 +1136,23 @@ declare const DocumentStatus: z.ZodEnum<{
1096
1136
  indexing: "indexing";
1097
1137
  }>;
1098
1138
  type DocumentStatus = z.infer<typeof DocumentStatus>;
1139
+ declare const KnowledgeSourceKind: z.ZodEnum<{
1140
+ email: "email";
1141
+ repository: "repository";
1142
+ manual_upload: "manual_upload";
1143
+ meeting_transcript: "meeting_transcript";
1144
+ chat: "chat";
1145
+ document: "document";
1146
+ web: "web";
1147
+ other: "other";
1148
+ }>;
1149
+ type KnowledgeSourceKind = z.infer<typeof KnowledgeSourceKind>;
1150
+ declare const DocumentSearchMode: z.ZodEnum<{
1151
+ hybrid: "hybrid";
1152
+ vector: "vector";
1153
+ keyword: "keyword";
1154
+ }>;
1155
+ type DocumentSearchMode = z.infer<typeof DocumentSearchMode>;
1099
1156
  declare const DocumentBase: z.ZodObject<{
1100
1157
  id: z.ZodString;
1101
1158
  workspaceId: z.ZodString;
@@ -1120,6 +1177,24 @@ declare const Document: z.ZodObject<{
1120
1177
  parser: z.ZodString;
1121
1178
  chunkCount: z.ZodNumber;
1122
1179
  error: z.ZodNullable<z.ZodString>;
1180
+ sourceKind: z.ZodEnum<{
1181
+ email: "email";
1182
+ repository: "repository";
1183
+ manual_upload: "manual_upload";
1184
+ meeting_transcript: "meeting_transcript";
1185
+ chat: "chat";
1186
+ document: "document";
1187
+ web: "web";
1188
+ other: "other";
1189
+ }>;
1190
+ sourceUri: z.ZodNullable<z.ZodString>;
1191
+ sourceExternalId: z.ZodNullable<z.ZodString>;
1192
+ sourceTitle: z.ZodNullable<z.ZodString>;
1193
+ sourceAuthor: z.ZodNullable<z.ZodString>;
1194
+ sourceCreatedAt: z.ZodNullable<z.ZodString>;
1195
+ sourceUpdatedAt: z.ZodNullable<z.ZodString>;
1196
+ sourceVersion: z.ZodNullable<z.ZodString>;
1197
+ aclTags: z.ZodArray<z.ZodString>;
1123
1198
  createdAt: z.ZodString;
1124
1199
  updatedAt: z.ZodString;
1125
1200
  }, z.core.$strip>;
@@ -1133,8 +1208,33 @@ declare const DocumentSearchResult: z.ZodObject<{
1133
1208
  title: z.ZodString;
1134
1209
  text: z.ZodString;
1135
1210
  score: z.ZodNumber;
1211
+ matchType: z.ZodEnum<{
1212
+ hybrid: "hybrid";
1213
+ vector: "vector";
1214
+ keyword: "keyword";
1215
+ }>;
1216
+ vectorScore: z.ZodNullable<z.ZodNumber>;
1217
+ keywordScore: z.ZodNullable<z.ZodNumber>;
1136
1218
  chunkIndex: z.ZodNumber;
1137
1219
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1220
+ sourceKind: z.ZodEnum<{
1221
+ email: "email";
1222
+ repository: "repository";
1223
+ manual_upload: "manual_upload";
1224
+ meeting_transcript: "meeting_transcript";
1225
+ chat: "chat";
1226
+ document: "document";
1227
+ web: "web";
1228
+ other: "other";
1229
+ }>;
1230
+ sourceUri: z.ZodNullable<z.ZodString>;
1231
+ sourceExternalId: z.ZodNullable<z.ZodString>;
1232
+ sourceTitle: z.ZodNullable<z.ZodString>;
1233
+ sourceAuthor: z.ZodNullable<z.ZodString>;
1234
+ sourceCreatedAt: z.ZodNullable<z.ZodString>;
1235
+ sourceUpdatedAt: z.ZodNullable<z.ZodString>;
1236
+ sourceVersion: z.ZodNullable<z.ZodString>;
1237
+ aclTags: z.ZodArray<z.ZodString>;
1138
1238
  }, z.core.$strip>;
1139
1239
  type DocumentSearchResult = z.infer<typeof DocumentSearchResult>;
1140
1240
  declare const CreateDocumentBaseRequest: z.ZodObject<{
@@ -1144,13 +1244,200 @@ declare const CreateDocumentBaseRequest: z.ZodObject<{
1144
1244
  type CreateDocumentBaseRequest = z.infer<typeof CreateDocumentBaseRequest>;
1145
1245
  declare const AddDocumentRequest: z.ZodObject<{
1146
1246
  fileId: z.ZodString;
1247
+ title: z.ZodOptional<z.ZodString>;
1248
+ sourceKind: z.ZodOptional<z.ZodEnum<{
1249
+ email: "email";
1250
+ repository: "repository";
1251
+ manual_upload: "manual_upload";
1252
+ meeting_transcript: "meeting_transcript";
1253
+ chat: "chat";
1254
+ document: "document";
1255
+ web: "web";
1256
+ other: "other";
1257
+ }>>;
1258
+ sourceUri: z.ZodOptional<z.ZodString>;
1259
+ sourceExternalId: z.ZodOptional<z.ZodString>;
1260
+ sourceTitle: z.ZodOptional<z.ZodString>;
1261
+ sourceAuthor: z.ZodOptional<z.ZodString>;
1262
+ sourceCreatedAt: z.ZodOptional<z.ZodString>;
1263
+ sourceUpdatedAt: z.ZodOptional<z.ZodString>;
1264
+ sourceVersion: z.ZodOptional<z.ZodString>;
1265
+ aclTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1147
1266
  }, z.core.$strip>;
1148
1267
  type AddDocumentRequest = z.infer<typeof AddDocumentRequest>;
1149
1268
  declare const DocumentSearchRequest: z.ZodObject<{
1150
1269
  query: z.ZodString;
1270
+ baseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1271
+ mode: z.ZodOptional<z.ZodEnum<{
1272
+ hybrid: "hybrid";
1273
+ vector: "vector";
1274
+ keyword: "keyword";
1275
+ }>>;
1276
+ sourceKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1277
+ email: "email";
1278
+ repository: "repository";
1279
+ manual_upload: "manual_upload";
1280
+ meeting_transcript: "meeting_transcript";
1281
+ chat: "chat";
1282
+ document: "document";
1283
+ web: "web";
1284
+ other: "other";
1285
+ }>>>;
1286
+ aclTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1151
1287
  limit: z.ZodDefault<z.ZodNumber>;
1152
1288
  }, z.core.$strip>;
1153
1289
  type DocumentSearchRequest = z.infer<typeof DocumentSearchRequest>;
1290
+ declare const KnowledgeMemoryStatus: z.ZodEnum<{
1291
+ proposed: "proposed";
1292
+ approved: "approved";
1293
+ rejected: "rejected";
1294
+ }>;
1295
+ type KnowledgeMemoryStatus = z.infer<typeof KnowledgeMemoryStatus>;
1296
+ declare const KnowledgeMemoryKind: z.ZodEnum<{
1297
+ semantic: "semantic";
1298
+ episodic: "episodic";
1299
+ procedural: "procedural";
1300
+ decision: "decision";
1301
+ preference: "preference";
1302
+ }>;
1303
+ type KnowledgeMemoryKind = z.infer<typeof KnowledgeMemoryKind>;
1304
+ declare const KnowledgeSourceRef: z.ZodObject<{
1305
+ kind: z.ZodEnum<{
1306
+ document: "document";
1307
+ document_chunk: "document_chunk";
1308
+ session_event: "session_event";
1309
+ memory: "memory";
1310
+ external: "external";
1311
+ }>;
1312
+ id: z.ZodString;
1313
+ uri: z.ZodOptional<z.ZodString>;
1314
+ title: z.ZodOptional<z.ZodString>;
1315
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1316
+ }, z.core.$strip>;
1317
+ type KnowledgeSourceRef = z.infer<typeof KnowledgeSourceRef>;
1318
+ declare const KnowledgeMemory: z.ZodObject<{
1319
+ id: z.ZodString;
1320
+ workspaceId: z.ZodString;
1321
+ status: z.ZodEnum<{
1322
+ proposed: "proposed";
1323
+ approved: "approved";
1324
+ rejected: "rejected";
1325
+ }>;
1326
+ kind: z.ZodEnum<{
1327
+ semantic: "semantic";
1328
+ episodic: "episodic";
1329
+ procedural: "procedural";
1330
+ decision: "decision";
1331
+ preference: "preference";
1332
+ }>;
1333
+ scope: z.ZodString;
1334
+ text: z.ZodString;
1335
+ sourceRefs: z.ZodArray<z.ZodObject<{
1336
+ kind: z.ZodEnum<{
1337
+ document: "document";
1338
+ document_chunk: "document_chunk";
1339
+ session_event: "session_event";
1340
+ memory: "memory";
1341
+ external: "external";
1342
+ }>;
1343
+ id: z.ZodString;
1344
+ uri: z.ZodOptional<z.ZodString>;
1345
+ title: z.ZodOptional<z.ZodString>;
1346
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1347
+ }, z.core.$strip>>;
1348
+ confidence: z.ZodNumber;
1349
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1350
+ createdBySessionId: z.ZodNullable<z.ZodString>;
1351
+ reviewedBy: z.ZodNullable<z.ZodString>;
1352
+ reviewedAt: z.ZodNullable<z.ZodString>;
1353
+ createdAt: z.ZodString;
1354
+ updatedAt: z.ZodString;
1355
+ }, z.core.$strip>;
1356
+ type KnowledgeMemory = z.infer<typeof KnowledgeMemory>;
1357
+ declare const CreateKnowledgeMemoryRequest: z.ZodObject<{
1358
+ status: z.ZodDefault<z.ZodEnum<{
1359
+ proposed: "proposed";
1360
+ approved: "approved";
1361
+ rejected: "rejected";
1362
+ }>>;
1363
+ kind: z.ZodDefault<z.ZodEnum<{
1364
+ semantic: "semantic";
1365
+ episodic: "episodic";
1366
+ procedural: "procedural";
1367
+ decision: "decision";
1368
+ preference: "preference";
1369
+ }>>;
1370
+ scope: z.ZodDefault<z.ZodString>;
1371
+ text: z.ZodString;
1372
+ sourceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1373
+ kind: z.ZodEnum<{
1374
+ document: "document";
1375
+ document_chunk: "document_chunk";
1376
+ session_event: "session_event";
1377
+ memory: "memory";
1378
+ external: "external";
1379
+ }>;
1380
+ id: z.ZodString;
1381
+ uri: z.ZodOptional<z.ZodString>;
1382
+ title: z.ZodOptional<z.ZodString>;
1383
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1384
+ }, z.core.$strip>>>;
1385
+ confidence: z.ZodDefault<z.ZodNumber>;
1386
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1387
+ createdBySessionId: z.ZodOptional<z.ZodString>;
1388
+ }, z.core.$strip>;
1389
+ type CreateKnowledgeMemoryRequest = z.infer<typeof CreateKnowledgeMemoryRequest>;
1390
+ declare const UpdateKnowledgeMemoryRequest: z.ZodObject<{
1391
+ status: z.ZodOptional<z.ZodEnum<{
1392
+ proposed: "proposed";
1393
+ approved: "approved";
1394
+ rejected: "rejected";
1395
+ }>>;
1396
+ kind: z.ZodOptional<z.ZodEnum<{
1397
+ semantic: "semantic";
1398
+ episodic: "episodic";
1399
+ procedural: "procedural";
1400
+ decision: "decision";
1401
+ preference: "preference";
1402
+ }>>;
1403
+ scope: z.ZodOptional<z.ZodString>;
1404
+ text: z.ZodOptional<z.ZodString>;
1405
+ sourceRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1406
+ kind: z.ZodEnum<{
1407
+ document: "document";
1408
+ document_chunk: "document_chunk";
1409
+ session_event: "session_event";
1410
+ memory: "memory";
1411
+ external: "external";
1412
+ }>;
1413
+ id: z.ZodString;
1414
+ uri: z.ZodOptional<z.ZodString>;
1415
+ title: z.ZodOptional<z.ZodString>;
1416
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1417
+ }, z.core.$strip>>>;
1418
+ confidence: z.ZodOptional<z.ZodNumber>;
1419
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1420
+ reviewedBy: z.ZodOptional<z.ZodString>;
1421
+ }, z.core.$strip>;
1422
+ type UpdateKnowledgeMemoryRequest = z.infer<typeof UpdateKnowledgeMemoryRequest>;
1423
+ declare const KnowledgeMemorySearchRequest: z.ZodObject<{
1424
+ query: z.ZodOptional<z.ZodString>;
1425
+ status: z.ZodOptional<z.ZodEnum<{
1426
+ proposed: "proposed";
1427
+ approved: "approved";
1428
+ rejected: "rejected";
1429
+ }>>;
1430
+ kind: z.ZodOptional<z.ZodEnum<{
1431
+ semantic: "semantic";
1432
+ episodic: "episodic";
1433
+ procedural: "procedural";
1434
+ decision: "decision";
1435
+ preference: "preference";
1436
+ }>>;
1437
+ scope: z.ZodOptional<z.ZodString>;
1438
+ limit: z.ZodDefault<z.ZodNumber>;
1439
+ }, z.core.$strip>;
1440
+ type KnowledgeMemorySearchRequest = z.infer<typeof KnowledgeMemorySearchRequest>;
1154
1441
  declare const ToolRef: z.ZodObject<{
1155
1442
  kind: z.ZodLiteral<"mcp">;
1156
1443
  id: z.ZodString;
@@ -1164,6 +1451,7 @@ declare const SessionMcpServerInput: z.ZodObject<{
1164
1451
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1165
1452
  timeoutMs: z.ZodOptional<z.ZodNumber>;
1166
1453
  cacheToolsList: z.ZodOptional<z.ZodBoolean>;
1454
+ requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
1167
1455
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1168
1456
  }, z.core.$strip>;
1169
1457
  type SessionMcpServerInput = z.infer<typeof SessionMcpServerInput>;
@@ -2388,6 +2676,199 @@ declare const CreateSocialPostRequest: z.ZodObject<{
2388
2676
  raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2389
2677
  }, z.core.$strip>;
2390
2678
  type CreateSocialPostRequest = z.infer<typeof CreateSocialPostRequest>;
2679
+ declare const ConnectionKind: z.ZodEnum<{
2680
+ api_key: "api_key";
2681
+ oauth2: "oauth2";
2682
+ app_install: "app_install";
2683
+ delegated: "delegated";
2684
+ }>;
2685
+ type ConnectionKind = z.infer<typeof ConnectionKind>;
2686
+ declare const ConnectionStatus: z.ZodEnum<{
2687
+ error: "error";
2688
+ active: "active";
2689
+ needs_reauth: "needs_reauth";
2690
+ revoked: "revoked";
2691
+ }>;
2692
+ type ConnectionStatus = z.infer<typeof ConnectionStatus>;
2693
+ declare const McpServerConnectionRef: z.ZodObject<{
2694
+ connectionId: z.ZodOptional<z.ZodString>;
2695
+ providerDomain: z.ZodString;
2696
+ kind: z.ZodOptional<z.ZodEnum<{
2697
+ api_key: "api_key";
2698
+ oauth2: "oauth2";
2699
+ app_install: "app_install";
2700
+ delegated: "delegated";
2701
+ }>>;
2702
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2703
+ resource: z.ZodOptional<z.ZodString>;
2704
+ subjectScope: z.ZodOptional<z.ZodEnum<{
2705
+ workspace: "workspace";
2706
+ subject: "subject";
2707
+ }>>;
2708
+ }, z.core.$strict>;
2709
+ type McpServerConnectionRef = z.infer<typeof McpServerConnectionRef>;
2710
+ declare const ConnectionMetadata: z.ZodObject<{
2711
+ id: z.ZodString;
2712
+ accountId: z.ZodString;
2713
+ workspaceId: z.ZodString;
2714
+ subjectId: z.ZodNullable<z.ZodString>;
2715
+ providerDomain: z.ZodString;
2716
+ kind: z.ZodEnum<{
2717
+ api_key: "api_key";
2718
+ oauth2: "oauth2";
2719
+ app_install: "app_install";
2720
+ delegated: "delegated";
2721
+ }>;
2722
+ status: z.ZodEnum<{
2723
+ error: "error";
2724
+ active: "active";
2725
+ needs_reauth: "needs_reauth";
2726
+ revoked: "revoked";
2727
+ }>;
2728
+ grantedScopes: z.ZodArray<z.ZodString>;
2729
+ expiresAt: z.ZodNullable<z.ZodString>;
2730
+ lastRefreshAt: z.ZodNullable<z.ZodString>;
2731
+ lastUsedAt: z.ZodNullable<z.ZodString>;
2732
+ lastError: z.ZodNullable<z.ZodString>;
2733
+ version: z.ZodNumber;
2734
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2735
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
2736
+ updatedBySubjectId: z.ZodNullable<z.ZodString>;
2737
+ createdAt: z.ZodString;
2738
+ updatedAt: z.ZodString;
2739
+ }, z.core.$strip>;
2740
+ type ConnectionMetadata = z.infer<typeof ConnectionMetadata>;
2741
+ declare const ConnectionCredentialBundle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2742
+ type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
2743
+ declare const CreateConnectionRequest: z.ZodObject<{
2744
+ providerDomain: z.ZodString;
2745
+ kind: z.ZodEnum<{
2746
+ api_key: "api_key";
2747
+ oauth2: "oauth2";
2748
+ app_install: "app_install";
2749
+ delegated: "delegated";
2750
+ }>;
2751
+ subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2752
+ credential: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2753
+ grantedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2754
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2755
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2756
+ }, z.core.$strip>;
2757
+ type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
2758
+ declare const UpdateConnectionRequest: z.ZodObject<{
2759
+ providerDomain: z.ZodOptional<z.ZodString>;
2760
+ subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2761
+ kind: z.ZodOptional<z.ZodEnum<{
2762
+ api_key: "api_key";
2763
+ oauth2: "oauth2";
2764
+ app_install: "app_install";
2765
+ delegated: "delegated";
2766
+ }>>;
2767
+ status: z.ZodOptional<z.ZodEnum<{
2768
+ error: "error";
2769
+ active: "active";
2770
+ needs_reauth: "needs_reauth";
2771
+ revoked: "revoked";
2772
+ }>>;
2773
+ credential: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2774
+ grantedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2775
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2776
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2777
+ }, z.core.$strip>;
2778
+ type UpdateConnectionRequest = z.infer<typeof UpdateConnectionRequest>;
2779
+ declare const ConnectionResponse: z.ZodObject<{
2780
+ connection: z.ZodObject<{
2781
+ id: z.ZodString;
2782
+ accountId: z.ZodString;
2783
+ workspaceId: z.ZodString;
2784
+ subjectId: z.ZodNullable<z.ZodString>;
2785
+ providerDomain: z.ZodString;
2786
+ kind: z.ZodEnum<{
2787
+ api_key: "api_key";
2788
+ oauth2: "oauth2";
2789
+ app_install: "app_install";
2790
+ delegated: "delegated";
2791
+ }>;
2792
+ status: z.ZodEnum<{
2793
+ error: "error";
2794
+ active: "active";
2795
+ needs_reauth: "needs_reauth";
2796
+ revoked: "revoked";
2797
+ }>;
2798
+ grantedScopes: z.ZodArray<z.ZodString>;
2799
+ expiresAt: z.ZodNullable<z.ZodString>;
2800
+ lastRefreshAt: z.ZodNullable<z.ZodString>;
2801
+ lastUsedAt: z.ZodNullable<z.ZodString>;
2802
+ lastError: z.ZodNullable<z.ZodString>;
2803
+ version: z.ZodNumber;
2804
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2805
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
2806
+ updatedBySubjectId: z.ZodNullable<z.ZodString>;
2807
+ createdAt: z.ZodString;
2808
+ updatedAt: z.ZodString;
2809
+ }, z.core.$strip>;
2810
+ }, z.core.$strip>;
2811
+ type ConnectionResponse = z.infer<typeof ConnectionResponse>;
2812
+ declare const ListConnectionsResponse: z.ZodObject<{
2813
+ connections: z.ZodArray<z.ZodObject<{
2814
+ id: z.ZodString;
2815
+ accountId: z.ZodString;
2816
+ workspaceId: z.ZodString;
2817
+ subjectId: z.ZodNullable<z.ZodString>;
2818
+ providerDomain: z.ZodString;
2819
+ kind: z.ZodEnum<{
2820
+ api_key: "api_key";
2821
+ oauth2: "oauth2";
2822
+ app_install: "app_install";
2823
+ delegated: "delegated";
2824
+ }>;
2825
+ status: z.ZodEnum<{
2826
+ error: "error";
2827
+ active: "active";
2828
+ needs_reauth: "needs_reauth";
2829
+ revoked: "revoked";
2830
+ }>;
2831
+ grantedScopes: z.ZodArray<z.ZodString>;
2832
+ expiresAt: z.ZodNullable<z.ZodString>;
2833
+ lastRefreshAt: z.ZodNullable<z.ZodString>;
2834
+ lastUsedAt: z.ZodNullable<z.ZodString>;
2835
+ lastError: z.ZodNullable<z.ZodString>;
2836
+ version: z.ZodNumber;
2837
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2838
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
2839
+ updatedBySubjectId: z.ZodNullable<z.ZodString>;
2840
+ createdAt: z.ZodString;
2841
+ updatedAt: z.ZodString;
2842
+ }, z.core.$strip>>;
2843
+ }, z.core.$strip>;
2844
+ type ListConnectionsResponse = z.infer<typeof ListConnectionsResponse>;
2845
+ declare const OAuthStartRequest: z.ZodObject<{
2846
+ providerDomain: z.ZodOptional<z.ZodString>;
2847
+ mcpUrl: z.ZodOptional<z.ZodString>;
2848
+ resource: z.ZodOptional<z.ZodString>;
2849
+ requestedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2850
+ returnPath: z.ZodOptional<z.ZodString>;
2851
+ connectionId: z.ZodOptional<z.ZodString>;
2852
+ }, z.core.$strip>;
2853
+ type OAuthStartRequest = z.infer<typeof OAuthStartRequest>;
2854
+ declare const OAuthStartResponse: z.ZodObject<{
2855
+ state: z.ZodString;
2856
+ authorizationUrl: z.ZodNullable<z.ZodString>;
2857
+ expiresAt: z.ZodString;
2858
+ }, z.core.$strip>;
2859
+ type OAuthStartResponse = z.infer<typeof OAuthStartResponse>;
2860
+ declare const IntegrationClientMetadata: z.ZodObject<{
2861
+ client_id: z.ZodString;
2862
+ client_name: z.ZodLiteral<"OpenGeni">;
2863
+ redirect_uris: z.ZodArray<z.ZodString>;
2864
+ token_endpoint_auth_method: z.ZodLiteral<"none">;
2865
+ grant_types: z.ZodArray<z.ZodEnum<{
2866
+ authorization_code: "authorization_code";
2867
+ refresh_token: "refresh_token";
2868
+ }>>;
2869
+ response_types: z.ZodArray<z.ZodLiteral<"code">>;
2870
+ }, z.core.$strip>;
2871
+ type IntegrationClientMetadata = z.infer<typeof IntegrationClientMetadata>;
2391
2872
  declare const MarketingDailyAnalysisTaskRequest: z.ZodObject<{
2392
2873
  name: z.ZodOptional<z.ZodString>;
2393
2874
  connectionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2424,6 +2905,7 @@ declare const CapabilitySource: z.ZodEnum<{
2424
2905
  manual: "manual";
2425
2906
  built_in: "built_in";
2426
2907
  public_registry: "public_registry";
2908
+ registry: "registry";
2427
2909
  }>;
2428
2910
  type CapabilitySource = z.infer<typeof CapabilitySource>;
2429
2911
  declare const CapabilityInstallationStatus: z.ZodEnum<{
@@ -2431,6 +2913,18 @@ declare const CapabilityInstallationStatus: z.ZodEnum<{
2431
2913
  active: "active";
2432
2914
  }>;
2433
2915
  type CapabilityInstallationStatus = z.infer<typeof CapabilityInstallationStatus>;
2916
+ declare const CapabilityCatalogAuthKind: z.ZodEnum<{
2917
+ none: "none";
2918
+ unknown: "unknown";
2919
+ api_key: "api_key";
2920
+ oauth2: "oauth2";
2921
+ }>;
2922
+ type CapabilityCatalogAuthKind = z.infer<typeof CapabilityCatalogAuthKind>;
2923
+ declare const CapabilityCatalogTier: z.ZodEnum<{
2924
+ verified: "verified";
2925
+ community: "community";
2926
+ }>;
2927
+ type CapabilityCatalogTier = z.infer<typeof CapabilityCatalogTier>;
2434
2928
  declare const CapabilityRuntime: z.ZodObject<{
2435
2929
  available: z.ZodDefault<z.ZodBoolean>;
2436
2930
  mcpServerId: z.ZodOptional<z.ZodString>;
@@ -2454,6 +2948,7 @@ declare const CapabilityCatalogItem: z.ZodObject<{
2454
2948
  manual: "manual";
2455
2949
  built_in: "built_in";
2456
2950
  public_registry: "public_registry";
2951
+ registry: "registry";
2457
2952
  }>;
2458
2953
  name: z.ZodString;
2459
2954
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2463,6 +2958,26 @@ declare const CapabilityCatalogItem: z.ZodObject<{
2463
2958
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2464
2959
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2465
2960
  authModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2961
+ providerDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2962
+ surfaceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2963
+ transport: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2964
+ mcpUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2965
+ authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2966
+ none: "none";
2967
+ unknown: "unknown";
2968
+ api_key: "api_key";
2969
+ oauth2: "oauth2";
2970
+ }>>>;
2971
+ credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2972
+ tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2973
+ verified: "verified";
2974
+ community: "community";
2975
+ }>>>;
2976
+ provenance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2977
+ logoAssetPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2978
+ importBatchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2979
+ stale: z.ZodDefault<z.ZodBoolean>;
2980
+ staleAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2466
2981
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2467
2982
  kind: z.ZodLiteral<"mcp">;
2468
2983
  id: z.ZodString;
@@ -2516,6 +3031,7 @@ declare const CreateCapabilityCatalogItemRequest: z.ZodObject<{
2516
3031
  manual: "manual";
2517
3032
  built_in: "built_in";
2518
3033
  public_registry: "public_registry";
3034
+ registry: "registry";
2519
3035
  }>>;
2520
3036
  name: z.ZodString;
2521
3037
  description: z.ZodOptional<z.ZodString>;
@@ -2531,6 +3047,22 @@ type CreateCapabilityCatalogItemRequest = z.infer<typeof CreateCapabilityCatalog
2531
3047
  declare const EnableCapabilityRequest: z.ZodObject<{
2532
3048
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2533
3049
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3050
+ connectionRef: z.ZodOptional<z.ZodObject<{
3051
+ connectionId: z.ZodOptional<z.ZodString>;
3052
+ providerDomain: z.ZodString;
3053
+ kind: z.ZodOptional<z.ZodEnum<{
3054
+ api_key: "api_key";
3055
+ oauth2: "oauth2";
3056
+ app_install: "app_install";
3057
+ delegated: "delegated";
3058
+ }>>;
3059
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3060
+ resource: z.ZodOptional<z.ZodString>;
3061
+ subjectScope: z.ZodOptional<z.ZodEnum<{
3062
+ workspace: "workspace";
3063
+ subject: "subject";
3064
+ }>>;
3065
+ }, z.core.$strict>>;
2534
3066
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2535
3067
  environmentId: z.ZodOptional<z.ZodString>;
2536
3068
  }, z.core.$strip>;
@@ -2552,6 +3084,7 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2552
3084
  manual: "manual";
2553
3085
  built_in: "built_in";
2554
3086
  public_registry: "public_registry";
3087
+ registry: "registry";
2555
3088
  }>;
2556
3089
  name: z.ZodString;
2557
3090
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2561,6 +3094,26 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2561
3094
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2562
3095
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2563
3096
  authModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3097
+ providerDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3098
+ surfaceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3099
+ transport: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3100
+ mcpUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3101
+ authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3102
+ none: "none";
3103
+ unknown: "unknown";
3104
+ api_key: "api_key";
3105
+ oauth2: "oauth2";
3106
+ }>>>;
3107
+ credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3108
+ tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3109
+ verified: "verified";
3110
+ community: "community";
3111
+ }>>>;
3112
+ provenance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3113
+ logoAssetPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3114
+ importBatchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3115
+ stale: z.ZodDefault<z.ZodBoolean>;
3116
+ staleAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2564
3117
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2565
3118
  kind: z.ZodLiteral<"mcp">;
2566
3119
  id: z.ZodString;
@@ -2618,6 +3171,7 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2618
3171
  manual: "manual";
2619
3172
  built_in: "built_in";
2620
3173
  public_registry: "public_registry";
3174
+ registry: "registry";
2621
3175
  }>;
2622
3176
  name: z.ZodString;
2623
3177
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2627,6 +3181,26 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2627
3181
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2628
3182
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2629
3183
  authModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3184
+ providerDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3185
+ surfaceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3186
+ transport: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3187
+ mcpUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3188
+ authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3189
+ none: "none";
3190
+ unknown: "unknown";
3191
+ api_key: "api_key";
3192
+ oauth2: "oauth2";
3193
+ }>>>;
3194
+ credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3195
+ tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3196
+ verified: "verified";
3197
+ community: "community";
3198
+ }>>>;
3199
+ provenance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3200
+ logoAssetPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3201
+ importBatchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3202
+ stale: z.ZodDefault<z.ZodBoolean>;
3203
+ staleAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2630
3204
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2631
3205
  kind: z.ZodLiteral<"mcp">;
2632
3206
  id: z.ZodString;
@@ -2735,9 +3309,12 @@ declare const Session: z.ZodObject<{
2735
3309
  "github:manage": "github:manage";
2736
3310
  "github:use": "github:use";
2737
3311
  "api_keys:manage": "api_keys:manage";
3312
+ "connections:read": "connections:read";
3313
+ "connections:write": "connections:write";
2738
3314
  "environments:manage": "environments:manage";
2739
3315
  "environments:use": "environments:use";
2740
3316
  "mcp_servers:attach": "mcp_servers:attach";
3317
+ "toolspace:call": "toolspace:call";
2741
3318
  "goals:manage": "goals:manage";
2742
3319
  "enrollments:read": "enrollments:read";
2743
3320
  "enrollments:manage": "enrollments:manage";
@@ -2782,6 +3359,7 @@ declare const SessionEventType: z.ZodEnum<{
2782
3359
  "agent.reasoning.delta": "agent.reasoning.delta";
2783
3360
  "agent.toolCall.created": "agent.toolCall.created";
2784
3361
  "agent.toolCall.output": "agent.toolCall.output";
3362
+ "tool.auth_needed": "tool.auth_needed";
2785
3363
  "agent.updated": "agent.updated";
2786
3364
  "sandbox.operation.started": "sandbox.operation.started";
2787
3365
  "sandbox.operation.completed": "sandbox.operation.completed";
@@ -2810,6 +3388,23 @@ declare const SessionEventType: z.ZodEnum<{
2810
3388
  "codex.account.switched": "codex.account.switched";
2811
3389
  }>;
2812
3390
  type SessionEventType = z.infer<typeof SessionEventType>;
3391
+ declare const ToolAuthNeededPayload: z.ZodObject<{
3392
+ serverId: z.ZodString;
3393
+ toolName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3394
+ providerDomain: z.ZodString;
3395
+ connectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3396
+ reason: z.ZodEnum<{
3397
+ expired: "expired";
3398
+ missing_connection: "missing_connection";
3399
+ insufficient_scope: "insufficient_scope";
3400
+ refresh_failed: "refresh_failed";
3401
+ }>;
3402
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3403
+ resource: z.ZodOptional<z.ZodString>;
3404
+ authorizationUrl: z.ZodOptional<z.ZodString>;
3405
+ subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3406
+ }, z.core.$strip>;
3407
+ type ToolAuthNeededPayload = z.infer<typeof ToolAuthNeededPayload>;
2813
3408
  declare const StreamUrlRotatedPayload: z.ZodObject<{
2814
3409
  url: z.ZodString;
2815
3410
  token: z.ZodNullable<z.ZodString>;
@@ -2828,9 +3423,9 @@ type StreamOpenedPayload = z.infer<typeof StreamOpenedPayload>;
2828
3423
  declare const StreamClosedPayload: z.ZodObject<{
2829
3424
  viewerId: z.ZodString;
2830
3425
  reason: z.ZodEnum<{
3426
+ revoked: "revoked";
2831
3427
  "client-disconnect": "client-disconnect";
2832
3428
  reaped: "reaped";
2833
- revoked: "revoked";
2834
3429
  "box-rollover": "box-rollover";
2835
3430
  }>;
2836
3431
  viewerCount: z.ZodNumber;
@@ -3007,9 +3602,9 @@ declare const TerminalPtyExitedPayload: z.ZodObject<{
3007
3602
  type TerminalPtyExitedPayload = z.infer<typeof TerminalPtyExitedPayload>;
3008
3603
  declare const FsNodeType: z.ZodEnum<{
3009
3604
  file: "file";
3605
+ other: "other";
3010
3606
  dir: "dir";
3011
3607
  symlink: "symlink";
3012
- other: "other";
3013
3608
  }>;
3014
3609
  type FsNodeType = z.infer<typeof FsNodeType>;
3015
3610
  interface FsTreeNode {
@@ -3539,6 +4134,7 @@ declare const SessionEvent: z.ZodObject<{
3539
4134
  "agent.reasoning.delta": "agent.reasoning.delta";
3540
4135
  "agent.toolCall.created": "agent.toolCall.created";
3541
4136
  "agent.toolCall.output": "agent.toolCall.output";
4137
+ "tool.auth_needed": "tool.auth_needed";
3542
4138
  "agent.updated": "agent.updated";
3543
4139
  "sandbox.operation.started": "sandbox.operation.started";
3544
4140
  "sandbox.operation.completed": "sandbox.operation.completed";
@@ -3652,9 +4248,12 @@ declare const CreateSessionRequest: z.ZodObject<{
3652
4248
  "github:manage": "github:manage";
3653
4249
  "github:use": "github:use";
3654
4250
  "api_keys:manage": "api_keys:manage";
4251
+ "connections:read": "connections:read";
4252
+ "connections:write": "connections:write";
3655
4253
  "environments:manage": "environments:manage";
3656
4254
  "environments:use": "environments:use";
3657
4255
  "mcp_servers:attach": "mcp_servers:attach";
4256
+ "toolspace:call": "toolspace:call";
3658
4257
  "goals:manage": "goals:manage";
3659
4258
  "enrollments:read": "enrollments:read";
3660
4259
  "enrollments:manage": "enrollments:manage";
@@ -3666,6 +4265,7 @@ declare const CreateSessionRequest: z.ZodObject<{
3666
4265
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3667
4266
  timeoutMs: z.ZodOptional<z.ZodNumber>;
3668
4267
  cacheToolsList: z.ZodOptional<z.ZodBoolean>;
4268
+ requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
3669
4269
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3670
4270
  }, z.core.$strip>>>;
3671
4271
  sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"shared">, z.ZodLiteral<"new">, z.ZodObject<{
@@ -3758,6 +4358,7 @@ declare const SessionBusMessage: z.ZodObject<{
3758
4358
  "agent.reasoning.delta": "agent.reasoning.delta";
3759
4359
  "agent.toolCall.created": "agent.toolCall.created";
3760
4360
  "agent.toolCall.output": "agent.toolCall.output";
4361
+ "tool.auth_needed": "tool.auth_needed";
3761
4362
  "agent.updated": "agent.updated";
3762
4363
  "sandbox.operation.started": "sandbox.operation.started";
3763
4364
  "sandbox.operation.completed": "sandbox.operation.completed";
@@ -4153,6 +4754,7 @@ declare const EnrollmentSummary: z.ZodObject<{
4153
4754
  pubkey: z.ZodString;
4154
4755
  exposure: z.ZodLiteral<"whole-machine">;
4155
4756
  hasDisplay: z.ZodBoolean;
4757
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4156
4758
  allowScreenControl: z.ZodBoolean;
4157
4759
  status: z.ZodEnum<{
4158
4760
  active: "active";
@@ -4175,6 +4777,7 @@ declare const ListEnrollmentsResponse: z.ZodObject<{
4175
4777
  pubkey: z.ZodString;
4176
4778
  exposure: z.ZodLiteral<"whole-machine">;
4177
4779
  hasDisplay: z.ZodBoolean;
4780
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4178
4781
  allowScreenControl: z.ZodBoolean;
4179
4782
  status: z.ZodEnum<{
4180
4783
  active: "active";
@@ -4350,6 +4953,7 @@ declare const MachineView: z.ZodObject<{
4350
4953
  os: z.ZodString;
4351
4954
  arch: z.ZodString;
4352
4955
  hasDisplay: z.ZodBoolean;
4956
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4353
4957
  allowScreenControl: z.ZodBoolean;
4354
4958
  sharedSessionCount: z.ZodNumber;
4355
4959
  lastSeenAt: z.ZodNullable<z.ZodString>;
@@ -4398,6 +5002,7 @@ declare const MachinesResponse: z.ZodObject<{
4398
5002
  os: z.ZodString;
4399
5003
  arch: z.ZodString;
4400
5004
  hasDisplay: z.ZodBoolean;
5005
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4401
5006
  allowScreenControl: z.ZodBoolean;
4402
5007
  sharedSessionCount: z.ZodNumber;
4403
5008
  lastSeenAt: z.ZodNullable<z.ZodString>;
@@ -4475,8 +5080,8 @@ declare const ClientModel: z.ZodObject<{
4475
5080
  provider: z.ZodString;
4476
5081
  providerLabel: z.ZodString;
4477
5082
  api: z.ZodEnum<{
4478
- responses: "responses";
4479
5083
  chat: "chat";
5084
+ responses: "responses";
4480
5085
  }>;
4481
5086
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
4482
5087
  }, z.core.$strip>;
@@ -4492,8 +5097,8 @@ declare const ClientConfig: z.ZodObject<{
4492
5097
  provider: z.ZodString;
4493
5098
  providerLabel: z.ZodString;
4494
5099
  api: z.ZodEnum<{
4495
- responses: "responses";
4496
5100
  chat: "chat";
5101
+ responses: "responses";
4497
5102
  }>;
4498
5103
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
4499
5104
  }, z.core.$strip>>>;
@@ -4552,4 +5157,4 @@ type HealthResponse = {
4552
5157
  ok: boolean;
4553
5158
  };
4554
5159
 
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 };
5160
+ 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, 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, 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, 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, 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, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, OAuthStartRequest, OAuthStartResponse, 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, ToolAuthNeededPayload, ToolRef, TriggerScheduledTaskRequest, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionRequest, UpdateSessionTurnRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceRequest, UsageEvent, UsageEventType, UsageLimitsMode, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, Workspace, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceEnvironmentVariableName, WorkspaceMember, WorkspaceRegisteredPack, isClearedRunStateBlob, mergeResourceRefs, mergeToolRefs, prefixedMcpToolName, reasoningEffortForMetadata, resourceIdentityKey, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken };