@opengeni/contracts 0.6.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
@@ -133,20 +133,6 @@ declare const ErrorEnvelope: z.ZodObject<{
133
133
  }, z.core.$strip>;
134
134
  }, z.core.$strip>;
135
135
  type ErrorEnvelope = z.infer<typeof ErrorEnvelope>;
136
- declare const PageInfo: z.ZodObject<{
137
- limit: z.ZodNumber;
138
- nextCursor: z.ZodNullable<z.ZodString>;
139
- hasMore: z.ZodBoolean;
140
- }, z.core.$strip>;
141
- type PageInfo = z.infer<typeof PageInfo>;
142
- declare function paginated<T extends z.ZodTypeAny>(item: T): z.ZodObject<{
143
- data: z.ZodArray<T>;
144
- page: z.ZodObject<{
145
- limit: z.ZodNumber;
146
- nextCursor: z.ZodNullable<z.ZodString>;
147
- hasMore: z.ZodBoolean;
148
- }, z.core.$strip>;
149
- }, z.core.$strip>;
150
136
  declare const Permission: z.ZodEnum<{
151
137
  "account:read": "account:read";
152
138
  "account:admin": "account:admin";
@@ -173,14 +159,18 @@ declare const Permission: z.ZodEnum<{
173
159
  "github:manage": "github:manage";
174
160
  "github:use": "github:use";
175
161
  "api_keys:manage": "api_keys:manage";
162
+ "connections:read": "connections:read";
163
+ "connections:write": "connections:write";
176
164
  "environments:manage": "environments:manage";
177
165
  "environments:use": "environments:use";
178
166
  "mcp_servers:attach": "mcp_servers:attach";
167
+ "toolspace:call": "toolspace:call";
179
168
  "goals:manage": "goals:manage";
180
169
  "enrollments:read": "enrollments:read";
181
170
  "enrollments:manage": "enrollments:manage";
182
171
  }>;
183
172
  type Permission = z.infer<typeof Permission>;
173
+ declare function prefixedMcpToolName(registryId: string, toolName: string): string;
184
174
  declare const ProductAccessMode: z.ZodEnum<{
185
175
  local: "local";
186
176
  configured: "configured";
@@ -266,9 +256,12 @@ declare const AccountGrant: z.ZodObject<{
266
256
  "github:manage": "github:manage";
267
257
  "github:use": "github:use";
268
258
  "api_keys:manage": "api_keys:manage";
259
+ "connections:read": "connections:read";
260
+ "connections:write": "connections:write";
269
261
  "environments:manage": "environments:manage";
270
262
  "environments:use": "environments:use";
271
263
  "mcp_servers:attach": "mcp_servers:attach";
264
+ "toolspace:call": "toolspace:call";
272
265
  "goals:manage": "goals:manage";
273
266
  "enrollments:read": "enrollments:read";
274
267
  "enrollments:manage": "enrollments:manage";
@@ -307,9 +300,12 @@ declare const AccessGrant: z.ZodObject<{
307
300
  "github:manage": "github:manage";
308
301
  "github:use": "github:use";
309
302
  "api_keys:manage": "api_keys:manage";
303
+ "connections:read": "connections:read";
304
+ "connections:write": "connections:write";
310
305
  "environments:manage": "environments:manage";
311
306
  "environments:use": "environments:use";
312
307
  "mcp_servers:attach": "mcp_servers:attach";
308
+ "toolspace:call": "toolspace:call";
313
309
  "goals:manage": "goals:manage";
314
310
  "enrollments:read": "enrollments:read";
315
311
  "enrollments:manage": "enrollments:manage";
@@ -360,9 +356,12 @@ declare const AccessContext: z.ZodObject<{
360
356
  "github:manage": "github:manage";
361
357
  "github:use": "github:use";
362
358
  "api_keys:manage": "api_keys:manage";
359
+ "connections:read": "connections:read";
360
+ "connections:write": "connections:write";
363
361
  "environments:manage": "environments:manage";
364
362
  "environments:use": "environments:use";
365
363
  "mcp_servers:attach": "mcp_servers:attach";
364
+ "toolspace:call": "toolspace:call";
366
365
  "goals:manage": "goals:manage";
367
366
  "enrollments:read": "enrollments:read";
368
367
  "enrollments:manage": "enrollments:manage";
@@ -400,9 +399,12 @@ declare const AccessContext: z.ZodObject<{
400
399
  "github:manage": "github:manage";
401
400
  "github:use": "github:use";
402
401
  "api_keys:manage": "api_keys:manage";
402
+ "connections:read": "connections:read";
403
+ "connections:write": "connections:write";
403
404
  "environments:manage": "environments:manage";
404
405
  "environments:use": "environments:use";
405
406
  "mcp_servers:attach": "mcp_servers:attach";
407
+ "toolspace:call": "toolspace:call";
406
408
  "goals:manage": "goals:manage";
407
409
  "enrollments:read": "enrollments:read";
408
410
  "enrollments:manage": "enrollments:manage";
@@ -444,9 +446,12 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
444
446
  "github:manage": "github:manage";
445
447
  "github:use": "github:use";
446
448
  "api_keys:manage": "api_keys:manage";
449
+ "connections:read": "connections:read";
450
+ "connections:write": "connections:write";
447
451
  "environments:manage": "environments:manage";
448
452
  "environments:use": "environments:use";
449
453
  "mcp_servers:attach": "mcp_servers:attach";
454
+ "toolspace:call": "toolspace:call";
450
455
  "goals:manage": "goals:manage";
451
456
  "enrollments:read": "enrollments:read";
452
457
  "enrollments:manage": "enrollments:manage";
@@ -575,9 +580,12 @@ declare const ApiKey: z.ZodObject<{
575
580
  "github:manage": "github:manage";
576
581
  "github:use": "github:use";
577
582
  "api_keys:manage": "api_keys:manage";
583
+ "connections:read": "connections:read";
584
+ "connections:write": "connections:write";
578
585
  "environments:manage": "environments:manage";
579
586
  "environments:use": "environments:use";
580
587
  "mcp_servers:attach": "mcp_servers:attach";
588
+ "toolspace:call": "toolspace:call";
581
589
  "goals:manage": "goals:manage";
582
590
  "enrollments:read": "enrollments:read";
583
591
  "enrollments:manage": "enrollments:manage";
@@ -618,9 +626,12 @@ declare const CreateApiKeyRequest: z.ZodObject<{
618
626
  "github:manage": "github:manage";
619
627
  "github:use": "github:use";
620
628
  "api_keys:manage": "api_keys:manage";
629
+ "connections:read": "connections:read";
630
+ "connections:write": "connections:write";
621
631
  "environments:manage": "environments:manage";
622
632
  "environments:use": "environments:use";
623
633
  "mcp_servers:attach": "mcp_servers:attach";
634
+ "toolspace:call": "toolspace:call";
624
635
  "goals:manage": "goals:manage";
625
636
  "enrollments:read": "enrollments:read";
626
637
  "enrollments:manage": "enrollments:manage";
@@ -661,9 +672,12 @@ declare const CreateApiKeyResponse: z.ZodObject<{
661
672
  "github:manage": "github:manage";
662
673
  "github:use": "github:use";
663
674
  "api_keys:manage": "api_keys:manage";
675
+ "connections:read": "connections:read";
676
+ "connections:write": "connections:write";
664
677
  "environments:manage": "environments:manage";
665
678
  "environments:use": "environments:use";
666
679
  "mcp_servers:attach": "mcp_servers:attach";
680
+ "toolspace:call": "toolspace:call";
667
681
  "goals:manage": "goals:manage";
668
682
  "enrollments:read": "enrollments:read";
669
683
  "enrollments:manage": "enrollments:manage";
@@ -707,9 +721,12 @@ declare const WorkspaceMember: z.ZodObject<{
707
721
  "github:manage": "github:manage";
708
722
  "github:use": "github:use";
709
723
  "api_keys:manage": "api_keys:manage";
724
+ "connections:read": "connections:read";
725
+ "connections:write": "connections:write";
710
726
  "environments:manage": "environments:manage";
711
727
  "environments:use": "environments:use";
712
728
  "mcp_servers:attach": "mcp_servers:attach";
729
+ "toolspace:call": "toolspace:call";
713
730
  "goals:manage": "goals:manage";
714
731
  "enrollments:read": "enrollments:read";
715
732
  "enrollments:manage": "enrollments:manage";
@@ -748,9 +765,12 @@ declare const ListWorkspaceMembersResponse: z.ZodObject<{
748
765
  "github:manage": "github:manage";
749
766
  "github:use": "github:use";
750
767
  "api_keys:manage": "api_keys:manage";
768
+ "connections:read": "connections:read";
769
+ "connections:write": "connections:write";
751
770
  "environments:manage": "environments:manage";
752
771
  "environments:use": "environments:use";
753
772
  "mcp_servers:attach": "mcp_servers:attach";
773
+ "toolspace:call": "toolspace:call";
754
774
  "goals:manage": "goals:manage";
755
775
  "enrollments:read": "enrollments:read";
756
776
  "enrollments:manage": "enrollments:manage";
@@ -788,9 +808,12 @@ declare const AddWorkspaceMemberRequest: z.ZodObject<{
788
808
  "github:manage": "github:manage";
789
809
  "github:use": "github:use";
790
810
  "api_keys:manage": "api_keys:manage";
811
+ "connections:read": "connections:read";
812
+ "connections:write": "connections:write";
791
813
  "environments:manage": "environments:manage";
792
814
  "environments:use": "environments:use";
793
815
  "mcp_servers:attach": "mcp_servers:attach";
816
+ "toolspace:call": "toolspace:call";
794
817
  "goals:manage": "goals:manage";
795
818
  "enrollments:read": "enrollments:read";
796
819
  "enrollments:manage": "enrollments:manage";
@@ -825,9 +848,12 @@ declare const UpdateWorkspaceMemberRequest: z.ZodObject<{
825
848
  "github:manage": "github:manage";
826
849
  "github:use": "github:use";
827
850
  "api_keys:manage": "api_keys:manage";
851
+ "connections:read": "connections:read";
852
+ "connections:write": "connections:write";
828
853
  "environments:manage": "environments:manage";
829
854
  "environments:use": "environments:use";
830
855
  "mcp_servers:attach": "mcp_servers:attach";
856
+ "toolspace:call": "toolspace:call";
831
857
  "goals:manage": "goals:manage";
832
858
  "enrollments:read": "enrollments:read";
833
859
  "enrollments:manage": "enrollments:manage";
@@ -1110,6 +1136,23 @@ declare const DocumentStatus: z.ZodEnum<{
1110
1136
  indexing: "indexing";
1111
1137
  }>;
1112
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>;
1113
1156
  declare const DocumentBase: z.ZodObject<{
1114
1157
  id: z.ZodString;
1115
1158
  workspaceId: z.ZodString;
@@ -1134,6 +1177,24 @@ declare const Document: z.ZodObject<{
1134
1177
  parser: z.ZodString;
1135
1178
  chunkCount: z.ZodNumber;
1136
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>;
1137
1198
  createdAt: z.ZodString;
1138
1199
  updatedAt: z.ZodString;
1139
1200
  }, z.core.$strip>;
@@ -1147,8 +1208,33 @@ declare const DocumentSearchResult: z.ZodObject<{
1147
1208
  title: z.ZodString;
1148
1209
  text: z.ZodString;
1149
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>;
1150
1218
  chunkIndex: z.ZodNumber;
1151
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>;
1152
1238
  }, z.core.$strip>;
1153
1239
  type DocumentSearchResult = z.infer<typeof DocumentSearchResult>;
1154
1240
  declare const CreateDocumentBaseRequest: z.ZodObject<{
@@ -1158,13 +1244,200 @@ declare const CreateDocumentBaseRequest: z.ZodObject<{
1158
1244
  type CreateDocumentBaseRequest = z.infer<typeof CreateDocumentBaseRequest>;
1159
1245
  declare const AddDocumentRequest: z.ZodObject<{
1160
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>>;
1161
1266
  }, z.core.$strip>;
1162
1267
  type AddDocumentRequest = z.infer<typeof AddDocumentRequest>;
1163
1268
  declare const DocumentSearchRequest: z.ZodObject<{
1164
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>>;
1165
1287
  limit: z.ZodDefault<z.ZodNumber>;
1166
1288
  }, z.core.$strip>;
1167
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>;
1168
1441
  declare const ToolRef: z.ZodObject<{
1169
1442
  kind: z.ZodLiteral<"mcp">;
1170
1443
  id: z.ZodString;
@@ -1178,6 +1451,7 @@ declare const SessionMcpServerInput: z.ZodObject<{
1178
1451
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1179
1452
  timeoutMs: z.ZodOptional<z.ZodNumber>;
1180
1453
  cacheToolsList: z.ZodOptional<z.ZodBoolean>;
1454
+ requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
1181
1455
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1182
1456
  }, z.core.$strip>;
1183
1457
  type SessionMcpServerInput = z.infer<typeof SessionMcpServerInput>;
@@ -2402,6 +2676,199 @@ declare const CreateSocialPostRequest: z.ZodObject<{
2402
2676
  raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2403
2677
  }, z.core.$strip>;
2404
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>;
2405
2872
  declare const MarketingDailyAnalysisTaskRequest: z.ZodObject<{
2406
2873
  name: z.ZodOptional<z.ZodString>;
2407
2874
  connectionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2438,6 +2905,7 @@ declare const CapabilitySource: z.ZodEnum<{
2438
2905
  manual: "manual";
2439
2906
  built_in: "built_in";
2440
2907
  public_registry: "public_registry";
2908
+ registry: "registry";
2441
2909
  }>;
2442
2910
  type CapabilitySource = z.infer<typeof CapabilitySource>;
2443
2911
  declare const CapabilityInstallationStatus: z.ZodEnum<{
@@ -2445,6 +2913,18 @@ declare const CapabilityInstallationStatus: z.ZodEnum<{
2445
2913
  active: "active";
2446
2914
  }>;
2447
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>;
2448
2928
  declare const CapabilityRuntime: z.ZodObject<{
2449
2929
  available: z.ZodDefault<z.ZodBoolean>;
2450
2930
  mcpServerId: z.ZodOptional<z.ZodString>;
@@ -2468,6 +2948,7 @@ declare const CapabilityCatalogItem: z.ZodObject<{
2468
2948
  manual: "manual";
2469
2949
  built_in: "built_in";
2470
2950
  public_registry: "public_registry";
2951
+ registry: "registry";
2471
2952
  }>;
2472
2953
  name: z.ZodString;
2473
2954
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2477,6 +2958,26 @@ declare const CapabilityCatalogItem: z.ZodObject<{
2477
2958
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2478
2959
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2479
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>>;
2480
2981
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2481
2982
  kind: z.ZodLiteral<"mcp">;
2482
2983
  id: z.ZodString;
@@ -2530,6 +3031,7 @@ declare const CreateCapabilityCatalogItemRequest: z.ZodObject<{
2530
3031
  manual: "manual";
2531
3032
  built_in: "built_in";
2532
3033
  public_registry: "public_registry";
3034
+ registry: "registry";
2533
3035
  }>>;
2534
3036
  name: z.ZodString;
2535
3037
  description: z.ZodOptional<z.ZodString>;
@@ -2545,6 +3047,22 @@ type CreateCapabilityCatalogItemRequest = z.infer<typeof CreateCapabilityCatalog
2545
3047
  declare const EnableCapabilityRequest: z.ZodObject<{
2546
3048
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2547
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>>;
2548
3066
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2549
3067
  environmentId: z.ZodOptional<z.ZodString>;
2550
3068
  }, z.core.$strip>;
@@ -2566,6 +3084,7 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2566
3084
  manual: "manual";
2567
3085
  built_in: "built_in";
2568
3086
  public_registry: "public_registry";
3087
+ registry: "registry";
2569
3088
  }>;
2570
3089
  name: z.ZodString;
2571
3090
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2575,6 +3094,26 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
2575
3094
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2576
3095
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2577
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>>;
2578
3117
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2579
3118
  kind: z.ZodLiteral<"mcp">;
2580
3119
  id: z.ZodString;
@@ -2632,6 +3171,7 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2632
3171
  manual: "manual";
2633
3172
  built_in: "built_in";
2634
3173
  public_registry: "public_registry";
3174
+ registry: "registry";
2635
3175
  }>;
2636
3176
  name: z.ZodString;
2637
3177
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2641,6 +3181,26 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
2641
3181
  endpointUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2642
3182
  installUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2643
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>>;
2644
3204
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
2645
3205
  kind: z.ZodLiteral<"mcp">;
2646
3206
  id: z.ZodString;
@@ -2749,9 +3309,12 @@ declare const Session: z.ZodObject<{
2749
3309
  "github:manage": "github:manage";
2750
3310
  "github:use": "github:use";
2751
3311
  "api_keys:manage": "api_keys:manage";
3312
+ "connections:read": "connections:read";
3313
+ "connections:write": "connections:write";
2752
3314
  "environments:manage": "environments:manage";
2753
3315
  "environments:use": "environments:use";
2754
3316
  "mcp_servers:attach": "mcp_servers:attach";
3317
+ "toolspace:call": "toolspace:call";
2755
3318
  "goals:manage": "goals:manage";
2756
3319
  "enrollments:read": "enrollments:read";
2757
3320
  "enrollments:manage": "enrollments:manage";
@@ -2796,6 +3359,7 @@ declare const SessionEventType: z.ZodEnum<{
2796
3359
  "agent.reasoning.delta": "agent.reasoning.delta";
2797
3360
  "agent.toolCall.created": "agent.toolCall.created";
2798
3361
  "agent.toolCall.output": "agent.toolCall.output";
3362
+ "tool.auth_needed": "tool.auth_needed";
2799
3363
  "agent.updated": "agent.updated";
2800
3364
  "sandbox.operation.started": "sandbox.operation.started";
2801
3365
  "sandbox.operation.completed": "sandbox.operation.completed";
@@ -2824,6 +3388,23 @@ declare const SessionEventType: z.ZodEnum<{
2824
3388
  "codex.account.switched": "codex.account.switched";
2825
3389
  }>;
2826
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>;
2827
3408
  declare const StreamUrlRotatedPayload: z.ZodObject<{
2828
3409
  url: z.ZodString;
2829
3410
  token: z.ZodNullable<z.ZodString>;
@@ -2842,9 +3423,9 @@ type StreamOpenedPayload = z.infer<typeof StreamOpenedPayload>;
2842
3423
  declare const StreamClosedPayload: z.ZodObject<{
2843
3424
  viewerId: z.ZodString;
2844
3425
  reason: z.ZodEnum<{
3426
+ revoked: "revoked";
2845
3427
  "client-disconnect": "client-disconnect";
2846
3428
  reaped: "reaped";
2847
- revoked: "revoked";
2848
3429
  "box-rollover": "box-rollover";
2849
3430
  }>;
2850
3431
  viewerCount: z.ZodNumber;
@@ -3021,9 +3602,9 @@ declare const TerminalPtyExitedPayload: z.ZodObject<{
3021
3602
  type TerminalPtyExitedPayload = z.infer<typeof TerminalPtyExitedPayload>;
3022
3603
  declare const FsNodeType: z.ZodEnum<{
3023
3604
  file: "file";
3605
+ other: "other";
3024
3606
  dir: "dir";
3025
3607
  symlink: "symlink";
3026
- other: "other";
3027
3608
  }>;
3028
3609
  type FsNodeType = z.infer<typeof FsNodeType>;
3029
3610
  interface FsTreeNode {
@@ -3553,6 +4134,7 @@ declare const SessionEvent: z.ZodObject<{
3553
4134
  "agent.reasoning.delta": "agent.reasoning.delta";
3554
4135
  "agent.toolCall.created": "agent.toolCall.created";
3555
4136
  "agent.toolCall.output": "agent.toolCall.output";
4137
+ "tool.auth_needed": "tool.auth_needed";
3556
4138
  "agent.updated": "agent.updated";
3557
4139
  "sandbox.operation.started": "sandbox.operation.started";
3558
4140
  "sandbox.operation.completed": "sandbox.operation.completed";
@@ -3666,9 +4248,12 @@ declare const CreateSessionRequest: z.ZodObject<{
3666
4248
  "github:manage": "github:manage";
3667
4249
  "github:use": "github:use";
3668
4250
  "api_keys:manage": "api_keys:manage";
4251
+ "connections:read": "connections:read";
4252
+ "connections:write": "connections:write";
3669
4253
  "environments:manage": "environments:manage";
3670
4254
  "environments:use": "environments:use";
3671
4255
  "mcp_servers:attach": "mcp_servers:attach";
4256
+ "toolspace:call": "toolspace:call";
3672
4257
  "goals:manage": "goals:manage";
3673
4258
  "enrollments:read": "enrollments:read";
3674
4259
  "enrollments:manage": "enrollments:manage";
@@ -3680,6 +4265,7 @@ declare const CreateSessionRequest: z.ZodObject<{
3680
4265
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3681
4266
  timeoutMs: z.ZodOptional<z.ZodNumber>;
3682
4267
  cacheToolsList: z.ZodOptional<z.ZodBoolean>;
4268
+ requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
3683
4269
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3684
4270
  }, z.core.$strip>>>;
3685
4271
  sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"shared">, z.ZodLiteral<"new">, z.ZodObject<{
@@ -3772,6 +4358,7 @@ declare const SessionBusMessage: z.ZodObject<{
3772
4358
  "agent.reasoning.delta": "agent.reasoning.delta";
3773
4359
  "agent.toolCall.created": "agent.toolCall.created";
3774
4360
  "agent.toolCall.output": "agent.toolCall.output";
4361
+ "tool.auth_needed": "tool.auth_needed";
3775
4362
  "agent.updated": "agent.updated";
3776
4363
  "sandbox.operation.started": "sandbox.operation.started";
3777
4364
  "sandbox.operation.completed": "sandbox.operation.completed";
@@ -4167,6 +4754,7 @@ declare const EnrollmentSummary: z.ZodObject<{
4167
4754
  pubkey: z.ZodString;
4168
4755
  exposure: z.ZodLiteral<"whole-machine">;
4169
4756
  hasDisplay: z.ZodBoolean;
4757
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
4758
  allowScreenControl: z.ZodBoolean;
4171
4759
  status: z.ZodEnum<{
4172
4760
  active: "active";
@@ -4189,6 +4777,7 @@ declare const ListEnrollmentsResponse: z.ZodObject<{
4189
4777
  pubkey: z.ZodString;
4190
4778
  exposure: z.ZodLiteral<"whole-machine">;
4191
4779
  hasDisplay: z.ZodBoolean;
4780
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4192
4781
  allowScreenControl: z.ZodBoolean;
4193
4782
  status: z.ZodEnum<{
4194
4783
  active: "active";
@@ -4364,6 +4953,7 @@ declare const MachineView: z.ZodObject<{
4364
4953
  os: z.ZodString;
4365
4954
  arch: z.ZodString;
4366
4955
  hasDisplay: z.ZodBoolean;
4956
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4367
4957
  allowScreenControl: z.ZodBoolean;
4368
4958
  sharedSessionCount: z.ZodNumber;
4369
4959
  lastSeenAt: z.ZodNullable<z.ZodString>;
@@ -4412,6 +5002,7 @@ declare const MachinesResponse: z.ZodObject<{
4412
5002
  os: z.ZodString;
4413
5003
  arch: z.ZodString;
4414
5004
  hasDisplay: z.ZodBoolean;
5005
+ desktopUnavailableReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4415
5006
  allowScreenControl: z.ZodBoolean;
4416
5007
  sharedSessionCount: z.ZodNumber;
4417
5008
  lastSeenAt: z.ZodNullable<z.ZodString>;
@@ -4489,14 +5080,15 @@ declare const ClientModel: z.ZodObject<{
4489
5080
  provider: z.ZodString;
4490
5081
  providerLabel: z.ZodString;
4491
5082
  api: z.ZodEnum<{
4492
- responses: "responses";
4493
5083
  chat: "chat";
5084
+ responses: "responses";
4494
5085
  }>;
4495
5086
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
4496
5087
  }, z.core.$strip>;
4497
5088
  type ClientModel = z.infer<typeof ClientModel>;
4498
5089
  declare const ClientConfig: z.ZodObject<{
4499
5090
  deploymentRevision: z.ZodString;
5091
+ serverVersion: z.ZodOptional<z.ZodString>;
4500
5092
  defaultModel: z.ZodString;
4501
5093
  allowedModels: z.ZodArray<z.ZodString>;
4502
5094
  models: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -4505,8 +5097,8 @@ declare const ClientConfig: z.ZodObject<{
4505
5097
  provider: z.ZodString;
4506
5098
  providerLabel: z.ZodString;
4507
5099
  api: z.ZodEnum<{
4508
- responses: "responses";
4509
5100
  chat: "chat";
5101
+ responses: "responses";
4510
5102
  }>;
4511
5103
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
4512
5104
  }, z.core.$strip>>>;
@@ -4565,4 +5157,4 @@ type HealthResponse = {
4565
5157
  ok: boolean;
4566
5158
  };
4567
5159
 
4568
- 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, PageInfo, 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, paginated, 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 };