@8wave/ai-elements 0.115.0-beta.2 → 0.115.0-beta.23
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/_chunks/{PkToolShowSources-VFoI0YS8.js → PkToolShowSources-ClqmBUMB.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-VFoI0YS8.js.map → PkToolShowSources-ClqmBUMB.js.map} +1 -1
- package/dist/_chunks/{markdown-BL7WANiX.js → markdown-BAq2EAVh.js} +36 -11
- package/dist/_chunks/markdown-BAq2EAVh.js.map +1 -0
- package/dist/ai-elements.es.js +1677 -1568
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Document-nCWwJC2h.js → Document-CRiJBpnk.js} +37 -12
- package/dist-vue/_chunks/Document-CRiJBpnk.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CdtYJ1Lf.js → PkChatbot-_7hJo-g0.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-CdtYJ1Lf.js.map → PkChatbot-_7hJo-g0.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js.map +1 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-CwiVQDF2.js.map +1 -1
- package/dist-vue/_chunks/PkChatbotInput-DcLmOqA1.js.map +1 -1
- package/dist-vue/_chunks/PkChatbotMessageFeedback-BYmrVaCE.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-R1EsTJpM.js → PkChatbotMessages-ClPdP7sw.js} +109 -100
- package/dist-vue/_chunks/PkChatbotMessages-ClPdP7sw.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotSteps-CPPjwTJN.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CbqrHEC6.js → PkChatbotViewChat-BBYfIQBR.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotViewChat-CbqrHEC6.js.map → PkChatbotViewChat-BBYfIQBR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js → PkChatbotViewConversations-DvmRjVND.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js.map → PkChatbotViewConversations-DvmRjVND.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-Bk9-K6Hw.js → PkChatbotViewFiles-D7KcAEiB.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-Bk9-K6Hw.js.map → PkChatbotViewFiles-D7KcAEiB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js → PkChatbotViewProfile-C1eLHU7x.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js.map → PkChatbotViewProfile-C1eLHU7x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Dmtqu3th.js → PkToolShowDiagram-Co3GRItt.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-Dmtqu3th.js.map → PkToolShowDiagram-Co3GRItt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-TzkNgwnr.js → PkToolShowSources-CIccPA8Z.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-TzkNgwnr.js.map → PkToolShowSources-CIccPA8Z.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BlWs282E.js → createChatbotApiClient-BJz36z7v.js} +110 -110
- package/dist-vue/_chunks/createChatbotApiClient-BJz36z7v.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js → useChatbotStore-D3Q1ZgQg.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js.map → useChatbotStore-D3Q1ZgQg.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +110 -10
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +12 -9
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +4 -0
- package/dist-vue/packages/auth/src/active-membership.d.ts +36 -0
- package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +5 -1
- package/dist-vue/packages/auth/src/passkey-policy-client-plugin.d.ts +1 -1
- package/dist-vue/packages/auth/src/two-factor-policy-client-plugin.d.ts +3 -3
- package/dist-vue/packages/auth/src/two-factor-policy-plugin.d.ts +1 -1
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +5 -0
- package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +5 -8
- package/dist-vue/packages/models/src/schema/ConversationAnalysis.d.ts +6 -1
- package/dist-vue/packages/models/src/schema/Document.d.ts +477 -0
- package/dist-vue/packages/models/src/schema/Header.d.ts +39 -0
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +76 -8
- package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/SignInSecurity.d.ts +1 -1
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/markdown-BL7WANiX.js.map +0 -1
- package/dist-vue/_chunks/Document-nCWwJC2h.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-R1EsTJpM.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BlWs282E.js.map +0 -1
|
@@ -1288,6 +1288,473 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
1288
1288
|
agentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1289
1289
|
folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1290
1290
|
folderPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1291
|
+
deletedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1292
|
+
}, z.core.$strip>;
|
|
1293
|
+
/**
|
|
1294
|
+
* The document types the trash holds: the ones a person adds to a knowledge
|
|
1295
|
+
* base by hand. A revised answer lives and dies with its own page, so it is
|
|
1296
|
+
* never listed, restored or emptied from here.
|
|
1297
|
+
*/
|
|
1298
|
+
export declare const DOCUMENT_TRASH_TYPES: readonly [DocumentType.File, DocumentType.Url, DocumentType.PlainText];
|
|
1299
|
+
/**
|
|
1300
|
+
* Why a restore was refused (docs/specs/document-trash.md, Decision 3), sent
|
|
1301
|
+
* as `additionalData.reason` of a `conflict` problem. The third case of the
|
|
1302
|
+
* decision, a folder that no longer exists, is not a refusal: the document
|
|
1303
|
+
* goes back to the root and the answer says so.
|
|
1304
|
+
*/
|
|
1305
|
+
export declare enum DocumentRestoreRefusal {
|
|
1306
|
+
/** Every agent the document belonged to has been deleted. */
|
|
1307
|
+
AgentGone = "agent-gone",
|
|
1308
|
+
/**
|
|
1309
|
+
* A live document of the same source holds its remote identity; its id
|
|
1310
|
+
* travels as `additionalData.documentId`.
|
|
1311
|
+
*/
|
|
1312
|
+
IdentityTaken = "identity-taken"
|
|
1313
|
+
}
|
|
1314
|
+
export declare const DocumentRestoreResultSchema: z.ZodObject<{
|
|
1315
|
+
document: z.ZodObject<{
|
|
1316
|
+
id: z.ZodString;
|
|
1317
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
1318
|
+
name: z.ZodString;
|
|
1319
|
+
content: z.ZodString;
|
|
1320
|
+
language: z.ZodString;
|
|
1321
|
+
processedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1322
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1323
|
+
createdBy: z.ZodString;
|
|
1324
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1325
|
+
updatedBy: z.ZodString;
|
|
1326
|
+
deleted: z.ZodBoolean;
|
|
1327
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1328
|
+
deletedBy: z.ZodNullable<z.ZodString>;
|
|
1329
|
+
organizationId: z.ZodString;
|
|
1330
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
1331
|
+
refreshInterval: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof DocumentRefreshInterval>>>;
|
|
1332
|
+
nextRefreshAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
1333
|
+
sourceProvider: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof DocumentSourceProvider>>>;
|
|
1334
|
+
type: z.ZodEnum<typeof DocumentType>;
|
|
1335
|
+
indexStatus: z.ZodEnum<typeof IndexStatus>;
|
|
1336
|
+
metadata: z.ZodObject<{
|
|
1337
|
+
source: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1338
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
lastRefresh: z.ZodOptional<z.ZodObject<{
|
|
1340
|
+
at: z.ZodString;
|
|
1341
|
+
result: z.ZodEnum<typeof DocumentRefreshResult>;
|
|
1342
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
1343
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
consecutiveFailures: z.ZodOptional<z.ZodNumber>;
|
|
1345
|
+
previousWordCount: z.ZodOptional<z.ZodNumber>;
|
|
1346
|
+
newWordCount: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
+
}, z.core.$strip>>;
|
|
1348
|
+
provider: z.ZodLiteral<DocumentSourceProvider.Web>;
|
|
1349
|
+
url: z.ZodString;
|
|
1350
|
+
lastScrapedAt: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
extractionInputHash: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
finalUrl: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
sourceId: z.ZodOptional<z.ZodUUID>;
|
|
1354
|
+
lastSyncedAt: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
lastmod: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1357
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
lastRefresh: z.ZodOptional<z.ZodObject<{
|
|
1359
|
+
at: z.ZodString;
|
|
1360
|
+
result: z.ZodEnum<typeof DocumentRefreshResult>;
|
|
1361
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
1362
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
consecutiveFailures: z.ZodOptional<z.ZodNumber>;
|
|
1364
|
+
previousWordCount: z.ZodOptional<z.ZodNumber>;
|
|
1365
|
+
newWordCount: z.ZodOptional<z.ZodNumber>;
|
|
1366
|
+
}, z.core.$strip>>;
|
|
1367
|
+
sourceId: z.ZodUUID;
|
|
1368
|
+
remoteId: z.ZodString;
|
|
1369
|
+
webUrl: z.ZodString;
|
|
1370
|
+
path: z.ZodString;
|
|
1371
|
+
fingerprint: z.ZodString;
|
|
1372
|
+
lastSyncedAt: z.ZodString;
|
|
1373
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
candidate: z.ZodOptional<z.ZodObject<{
|
|
1375
|
+
media: z.ZodObject<{
|
|
1376
|
+
name: z.ZodString;
|
|
1377
|
+
src: z.ZodObject<{
|
|
1378
|
+
type: z.ZodString;
|
|
1379
|
+
name: z.ZodString;
|
|
1380
|
+
mimeType: z.ZodString;
|
|
1381
|
+
bytesCount: z.ZodNumber;
|
|
1382
|
+
extension: z.ZodString;
|
|
1383
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1384
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1385
|
+
storageHandle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1386
|
+
type: z.ZodLiteral<"azure-blob">;
|
|
1387
|
+
blobUri: z.ZodURL;
|
|
1388
|
+
containerName: z.ZodString;
|
|
1389
|
+
pathRelativeToContainer: z.ZodString;
|
|
1390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1391
|
+
type: z.ZodLiteral<"s3">;
|
|
1392
|
+
bucket: z.ZodString;
|
|
1393
|
+
key: z.ZodString;
|
|
1394
|
+
region: z.ZodString;
|
|
1395
|
+
}, z.core.$strip>], "type">;
|
|
1396
|
+
storagePolicy: z.ZodEnum<typeof StoragePolicy>;
|
|
1397
|
+
signData: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
storedFileName: z.ZodString;
|
|
1399
|
+
}, z.core.$strip>;
|
|
1400
|
+
srcSet: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1401
|
+
type: z.ZodString;
|
|
1402
|
+
name: z.ZodString;
|
|
1403
|
+
mimeType: z.ZodString;
|
|
1404
|
+
bytesCount: z.ZodNumber;
|
|
1405
|
+
extension: z.ZodString;
|
|
1406
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1407
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1408
|
+
storageHandle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1409
|
+
type: z.ZodLiteral<"azure-blob">;
|
|
1410
|
+
blobUri: z.ZodURL;
|
|
1411
|
+
containerName: z.ZodString;
|
|
1412
|
+
pathRelativeToContainer: z.ZodString;
|
|
1413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1414
|
+
type: z.ZodLiteral<"s3">;
|
|
1415
|
+
bucket: z.ZodString;
|
|
1416
|
+
key: z.ZodString;
|
|
1417
|
+
region: z.ZodString;
|
|
1418
|
+
}, z.core.$strip>], "type">;
|
|
1419
|
+
storagePolicy: z.ZodEnum<typeof StoragePolicy>;
|
|
1420
|
+
signData: z.ZodOptional<z.ZodString>;
|
|
1421
|
+
storedFileName: z.ZodString;
|
|
1422
|
+
}, z.core.$strip>>>;
|
|
1423
|
+
rawOptions: z.ZodOptional<z.ZodCustom<{
|
|
1424
|
+
type: import('./Media').MediaType.picture;
|
|
1425
|
+
width: number;
|
|
1426
|
+
height: number;
|
|
1427
|
+
blurhash?: string | undefined;
|
|
1428
|
+
} | {
|
|
1429
|
+
type: import('./Media').MediaType.video;
|
|
1430
|
+
width: number;
|
|
1431
|
+
height: number;
|
|
1432
|
+
duration: number;
|
|
1433
|
+
} | {
|
|
1434
|
+
type: import('./Media').MediaType.audio;
|
|
1435
|
+
duration: number;
|
|
1436
|
+
} | {
|
|
1437
|
+
type: import('./Media').MediaType.office;
|
|
1438
|
+
} | {
|
|
1439
|
+
type: import('./Media').MediaType.archive;
|
|
1440
|
+
} | {
|
|
1441
|
+
type: import('./Media').MediaType.binary;
|
|
1442
|
+
} | {
|
|
1443
|
+
type: import('./Media').MediaType.executable;
|
|
1444
|
+
}, {
|
|
1445
|
+
type: import('./Media').MediaType.picture;
|
|
1446
|
+
width: number;
|
|
1447
|
+
height: number;
|
|
1448
|
+
blurhash?: string | undefined;
|
|
1449
|
+
} | {
|
|
1450
|
+
type: import('./Media').MediaType.video;
|
|
1451
|
+
width: number;
|
|
1452
|
+
height: number;
|
|
1453
|
+
duration: number;
|
|
1454
|
+
} | {
|
|
1455
|
+
type: import('./Media').MediaType.audio;
|
|
1456
|
+
duration: number;
|
|
1457
|
+
} | {
|
|
1458
|
+
type: import('./Media').MediaType.office;
|
|
1459
|
+
} | {
|
|
1460
|
+
type: import('./Media').MediaType.archive;
|
|
1461
|
+
} | {
|
|
1462
|
+
type: import('./Media').MediaType.binary;
|
|
1463
|
+
} | {
|
|
1464
|
+
type: import('./Media').MediaType.executable;
|
|
1465
|
+
}>>;
|
|
1466
|
+
}, z.core.$strip>;
|
|
1467
|
+
fingerprint: z.ZodString;
|
|
1468
|
+
name: z.ZodString;
|
|
1469
|
+
webUrl: z.ZodString;
|
|
1470
|
+
path: z.ZodString;
|
|
1471
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
}, z.core.$strip>>;
|
|
1473
|
+
provider: z.ZodLiteral<DocumentSourceProvider.SharePoint>;
|
|
1474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1475
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
lastRefresh: z.ZodOptional<z.ZodObject<{
|
|
1477
|
+
at: z.ZodString;
|
|
1478
|
+
result: z.ZodEnum<typeof DocumentRefreshResult>;
|
|
1479
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
1480
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1481
|
+
consecutiveFailures: z.ZodOptional<z.ZodNumber>;
|
|
1482
|
+
previousWordCount: z.ZodOptional<z.ZodNumber>;
|
|
1483
|
+
newWordCount: z.ZodOptional<z.ZodNumber>;
|
|
1484
|
+
}, z.core.$strip>>;
|
|
1485
|
+
sourceId: z.ZodUUID;
|
|
1486
|
+
remoteId: z.ZodString;
|
|
1487
|
+
webUrl: z.ZodString;
|
|
1488
|
+
path: z.ZodString;
|
|
1489
|
+
fingerprint: z.ZodString;
|
|
1490
|
+
lastSyncedAt: z.ZodString;
|
|
1491
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
1492
|
+
candidate: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
media: z.ZodObject<{
|
|
1494
|
+
name: z.ZodString;
|
|
1495
|
+
src: z.ZodObject<{
|
|
1496
|
+
type: z.ZodString;
|
|
1497
|
+
name: z.ZodString;
|
|
1498
|
+
mimeType: z.ZodString;
|
|
1499
|
+
bytesCount: z.ZodNumber;
|
|
1500
|
+
extension: z.ZodString;
|
|
1501
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1502
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1503
|
+
storageHandle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1504
|
+
type: z.ZodLiteral<"azure-blob">;
|
|
1505
|
+
blobUri: z.ZodURL;
|
|
1506
|
+
containerName: z.ZodString;
|
|
1507
|
+
pathRelativeToContainer: z.ZodString;
|
|
1508
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1509
|
+
type: z.ZodLiteral<"s3">;
|
|
1510
|
+
bucket: z.ZodString;
|
|
1511
|
+
key: z.ZodString;
|
|
1512
|
+
region: z.ZodString;
|
|
1513
|
+
}, z.core.$strip>], "type">;
|
|
1514
|
+
storagePolicy: z.ZodEnum<typeof StoragePolicy>;
|
|
1515
|
+
signData: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
storedFileName: z.ZodString;
|
|
1517
|
+
}, z.core.$strip>;
|
|
1518
|
+
srcSet: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1519
|
+
type: z.ZodString;
|
|
1520
|
+
name: z.ZodString;
|
|
1521
|
+
mimeType: z.ZodString;
|
|
1522
|
+
bytesCount: z.ZodNumber;
|
|
1523
|
+
extension: z.ZodString;
|
|
1524
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1525
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1526
|
+
storageHandle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1527
|
+
type: z.ZodLiteral<"azure-blob">;
|
|
1528
|
+
blobUri: z.ZodURL;
|
|
1529
|
+
containerName: z.ZodString;
|
|
1530
|
+
pathRelativeToContainer: z.ZodString;
|
|
1531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1532
|
+
type: z.ZodLiteral<"s3">;
|
|
1533
|
+
bucket: z.ZodString;
|
|
1534
|
+
key: z.ZodString;
|
|
1535
|
+
region: z.ZodString;
|
|
1536
|
+
}, z.core.$strip>], "type">;
|
|
1537
|
+
storagePolicy: z.ZodEnum<typeof StoragePolicy>;
|
|
1538
|
+
signData: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
storedFileName: z.ZodString;
|
|
1540
|
+
}, z.core.$strip>>>;
|
|
1541
|
+
rawOptions: z.ZodOptional<z.ZodCustom<{
|
|
1542
|
+
type: import('./Media').MediaType.picture;
|
|
1543
|
+
width: number;
|
|
1544
|
+
height: number;
|
|
1545
|
+
blurhash?: string | undefined;
|
|
1546
|
+
} | {
|
|
1547
|
+
type: import('./Media').MediaType.video;
|
|
1548
|
+
width: number;
|
|
1549
|
+
height: number;
|
|
1550
|
+
duration: number;
|
|
1551
|
+
} | {
|
|
1552
|
+
type: import('./Media').MediaType.audio;
|
|
1553
|
+
duration: number;
|
|
1554
|
+
} | {
|
|
1555
|
+
type: import('./Media').MediaType.office;
|
|
1556
|
+
} | {
|
|
1557
|
+
type: import('./Media').MediaType.archive;
|
|
1558
|
+
} | {
|
|
1559
|
+
type: import('./Media').MediaType.binary;
|
|
1560
|
+
} | {
|
|
1561
|
+
type: import('./Media').MediaType.executable;
|
|
1562
|
+
}, {
|
|
1563
|
+
type: import('./Media').MediaType.picture;
|
|
1564
|
+
width: number;
|
|
1565
|
+
height: number;
|
|
1566
|
+
blurhash?: string | undefined;
|
|
1567
|
+
} | {
|
|
1568
|
+
type: import('./Media').MediaType.video;
|
|
1569
|
+
width: number;
|
|
1570
|
+
height: number;
|
|
1571
|
+
duration: number;
|
|
1572
|
+
} | {
|
|
1573
|
+
type: import('./Media').MediaType.audio;
|
|
1574
|
+
duration: number;
|
|
1575
|
+
} | {
|
|
1576
|
+
type: import('./Media').MediaType.office;
|
|
1577
|
+
} | {
|
|
1578
|
+
type: import('./Media').MediaType.archive;
|
|
1579
|
+
} | {
|
|
1580
|
+
type: import('./Media').MediaType.binary;
|
|
1581
|
+
} | {
|
|
1582
|
+
type: import('./Media').MediaType.executable;
|
|
1583
|
+
}>>;
|
|
1584
|
+
}, z.core.$strip>;
|
|
1585
|
+
fingerprint: z.ZodString;
|
|
1586
|
+
name: z.ZodString;
|
|
1587
|
+
webUrl: z.ZodString;
|
|
1588
|
+
path: z.ZodString;
|
|
1589
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
}, z.core.$strip>>;
|
|
1591
|
+
provider: z.ZodLiteral<DocumentSourceProvider.GoogleDrive>;
|
|
1592
|
+
}, z.core.$strip>], "provider">, unknown>>;
|
|
1593
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1594
|
+
name: z.ZodString;
|
|
1595
|
+
src: z.ZodObject<{
|
|
1596
|
+
type: z.ZodString;
|
|
1597
|
+
name: z.ZodString;
|
|
1598
|
+
mimeType: z.ZodString;
|
|
1599
|
+
bytesCount: z.ZodNumber;
|
|
1600
|
+
extension: z.ZodString;
|
|
1601
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1602
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1603
|
+
storageHandle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1604
|
+
type: z.ZodLiteral<"azure-blob">;
|
|
1605
|
+
blobUri: z.ZodURL;
|
|
1606
|
+
containerName: z.ZodString;
|
|
1607
|
+
pathRelativeToContainer: z.ZodString;
|
|
1608
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1609
|
+
type: z.ZodLiteral<"s3">;
|
|
1610
|
+
bucket: z.ZodString;
|
|
1611
|
+
key: z.ZodString;
|
|
1612
|
+
region: z.ZodString;
|
|
1613
|
+
}, z.core.$strip>], "type">;
|
|
1614
|
+
storagePolicy: z.ZodEnum<typeof StoragePolicy>;
|
|
1615
|
+
signData: z.ZodOptional<z.ZodString>;
|
|
1616
|
+
storedFileName: z.ZodString;
|
|
1617
|
+
}, z.core.$strip>;
|
|
1618
|
+
srcSet: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1619
|
+
type: z.ZodString;
|
|
1620
|
+
name: z.ZodString;
|
|
1621
|
+
mimeType: z.ZodString;
|
|
1622
|
+
bytesCount: z.ZodNumber;
|
|
1623
|
+
extension: z.ZodString;
|
|
1624
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1625
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1626
|
+
storageHandle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1627
|
+
type: z.ZodLiteral<"azure-blob">;
|
|
1628
|
+
blobUri: z.ZodURL;
|
|
1629
|
+
containerName: z.ZodString;
|
|
1630
|
+
pathRelativeToContainer: z.ZodString;
|
|
1631
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1632
|
+
type: z.ZodLiteral<"s3">;
|
|
1633
|
+
bucket: z.ZodString;
|
|
1634
|
+
key: z.ZodString;
|
|
1635
|
+
region: z.ZodString;
|
|
1636
|
+
}, z.core.$strip>], "type">;
|
|
1637
|
+
storagePolicy: z.ZodEnum<typeof StoragePolicy>;
|
|
1638
|
+
signData: z.ZodOptional<z.ZodString>;
|
|
1639
|
+
storedFileName: z.ZodString;
|
|
1640
|
+
}, z.core.$strip>>>;
|
|
1641
|
+
rawOptions: z.ZodOptional<z.ZodCustom<{
|
|
1642
|
+
type: import('./Media').MediaType.picture;
|
|
1643
|
+
width: number;
|
|
1644
|
+
height: number;
|
|
1645
|
+
blurhash?: string | undefined;
|
|
1646
|
+
} | {
|
|
1647
|
+
type: import('./Media').MediaType.video;
|
|
1648
|
+
width: number;
|
|
1649
|
+
height: number;
|
|
1650
|
+
duration: number;
|
|
1651
|
+
} | {
|
|
1652
|
+
type: import('./Media').MediaType.audio;
|
|
1653
|
+
duration: number;
|
|
1654
|
+
} | {
|
|
1655
|
+
type: import('./Media').MediaType.office;
|
|
1656
|
+
} | {
|
|
1657
|
+
type: import('./Media').MediaType.archive;
|
|
1658
|
+
} | {
|
|
1659
|
+
type: import('./Media').MediaType.binary;
|
|
1660
|
+
} | {
|
|
1661
|
+
type: import('./Media').MediaType.executable;
|
|
1662
|
+
}, {
|
|
1663
|
+
type: import('./Media').MediaType.picture;
|
|
1664
|
+
width: number;
|
|
1665
|
+
height: number;
|
|
1666
|
+
blurhash?: string | undefined;
|
|
1667
|
+
} | {
|
|
1668
|
+
type: import('./Media').MediaType.video;
|
|
1669
|
+
width: number;
|
|
1670
|
+
height: number;
|
|
1671
|
+
duration: number;
|
|
1672
|
+
} | {
|
|
1673
|
+
type: import('./Media').MediaType.audio;
|
|
1674
|
+
duration: number;
|
|
1675
|
+
} | {
|
|
1676
|
+
type: import('./Media').MediaType.office;
|
|
1677
|
+
} | {
|
|
1678
|
+
type: import('./Media').MediaType.archive;
|
|
1679
|
+
} | {
|
|
1680
|
+
type: import('./Media').MediaType.binary;
|
|
1681
|
+
} | {
|
|
1682
|
+
type: import('./Media').MediaType.executable;
|
|
1683
|
+
}>>;
|
|
1684
|
+
}, z.core.$strip>>;
|
|
1685
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1686
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1689
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1690
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1691
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
creationDate: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
modificationDate: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
pageCount: z.ZodOptional<z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodUnknown>]>, z.ZodNumber>>;
|
|
1696
|
+
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
1697
|
+
characterCount: z.ZodOptional<z.ZodNumber>;
|
|
1698
|
+
lineCount: z.ZodOptional<z.ZodNumber>;
|
|
1699
|
+
siteName: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
canonicalUrl: z.ZodOptional<z.ZodURL>;
|
|
1701
|
+
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
1702
|
+
favicon: z.ZodOptional<z.ZodURL>;
|
|
1703
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
1705
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1706
|
+
publishedTime: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
1708
|
+
wordCount: z.ZodOptional<z.ZodNumber>;
|
|
1709
|
+
paragraphCount: z.ZodOptional<z.ZodNumber>;
|
|
1710
|
+
readingTime: z.ZodOptional<z.ZodNumber>;
|
|
1711
|
+
ocrUsed: z.ZodOptional<z.ZodBoolean>;
|
|
1712
|
+
ocrProvider: z.ZodOptional<z.ZodString>;
|
|
1713
|
+
ocrModel: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
ocrPages: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
ocrCost: z.ZodOptional<z.ZodNumber>;
|
|
1716
|
+
ocrError: z.ZodOptional<z.ZodString>;
|
|
1717
|
+
chunksCount: z.ZodOptional<z.ZodNumber>;
|
|
1718
|
+
redundantChunksCount: z.ZodOptional<z.ZodNumber>;
|
|
1719
|
+
hasRedundantChunks: z.ZodOptional<z.ZodBoolean>;
|
|
1720
|
+
qdrantSynced: z.ZodOptional<z.ZodBoolean>;
|
|
1721
|
+
conversionOptions: z.ZodOptional<z.ZodObject<{
|
|
1722
|
+
extractionStrategy: z.ZodOptional<z.ZodEnum<typeof ExtractionStrategy>>;
|
|
1723
|
+
browserEngine: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof BrowserEngine>>>;
|
|
1724
|
+
headers: z.ZodOptional<z.ZodNullable<z.ZodCodec<z.ZodArray<z.ZodObject<{
|
|
1725
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1726
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1727
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
1728
|
+
key: z.ZodString;
|
|
1729
|
+
value: z.ZodString;
|
|
1730
|
+
}, z.core.$strip>>>>>;
|
|
1731
|
+
aiDescriptionModel: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
aiDescriptionPrompt: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
forceOcr: z.ZodDefault<z.ZodBoolean>;
|
|
1735
|
+
pages: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
}, z.core.$strip>>;
|
|
1737
|
+
}, z.core.$loose>;
|
|
1738
|
+
chunksCount: z.ZodOptional<z.ZodNumber>;
|
|
1739
|
+
redundantChunksCount: z.ZodOptional<z.ZodNumber>;
|
|
1740
|
+
hasRedundantChunks: z.ZodOptional<z.ZodBoolean>;
|
|
1741
|
+
qdrantSynced: z.ZodOptional<z.ZodBoolean>;
|
|
1742
|
+
agentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1743
|
+
folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1744
|
+
folderPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1745
|
+
deletedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1746
|
+
}, z.core.$strip>;
|
|
1747
|
+
returnedToRoot: z.ZodBoolean;
|
|
1748
|
+
}, z.core.$strip>;
|
|
1749
|
+
export declare const DocumentTrashSummarySchema: z.ZodObject<{
|
|
1750
|
+
count: z.ZodNumber;
|
|
1751
|
+
}, z.core.$strip>;
|
|
1752
|
+
export declare const DocumentEmptyTrashDtoSchema: z.ZodObject<{
|
|
1753
|
+
agentId: z.ZodUUID;
|
|
1754
|
+
}, z.core.$strip>;
|
|
1755
|
+
export declare const DocumentEmptyTrashResultSchema: z.ZodObject<{
|
|
1756
|
+
purged: z.ZodNumber;
|
|
1757
|
+
remaining: z.ZodNumber;
|
|
1291
1758
|
}, z.core.$strip>;
|
|
1292
1759
|
/**
|
|
1293
1760
|
* Query parameters for listing documents with pagination, sorting, and filters
|
|
@@ -1300,6 +1767,10 @@ export declare const DocumentQuerystringSchema: z.ZodObject<{
|
|
|
1300
1767
|
'filter[sourceProvider]': z.ZodOptional<z.ZodString>;
|
|
1301
1768
|
ids: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1302
1769
|
"filter[fullText]": z.ZodOptional<z.ZodString>;
|
|
1770
|
+
'filter[deleted]': z.ZodOptional<z.ZodEnum<{
|
|
1771
|
+
true: "true";
|
|
1772
|
+
false: "false";
|
|
1773
|
+
}>>;
|
|
1303
1774
|
"filter[type]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
|
|
1304
1775
|
"filter[agentId]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
|
|
1305
1776
|
"filter[language]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
|
|
@@ -1309,10 +1780,12 @@ export declare const DocumentQuerystringSchema: z.ZodObject<{
|
|
|
1309
1780
|
id: "id";
|
|
1310
1781
|
createdAt: "createdAt";
|
|
1311
1782
|
updatedAt: "updatedAt";
|
|
1783
|
+
deletedAt: "deletedAt";
|
|
1312
1784
|
"-name": "-name";
|
|
1313
1785
|
"-id": "-id";
|
|
1314
1786
|
"-createdAt": "-createdAt";
|
|
1315
1787
|
"-updatedAt": "-updatedAt";
|
|
1788
|
+
"-deletedAt": "-deletedAt";
|
|
1316
1789
|
}>>>;
|
|
1317
1790
|
'page[number]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
1318
1791
|
'page[size]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
@@ -1480,6 +1953,10 @@ export type DocumentUpdateDto = z.infer<typeof DocumentUpdateDtoSchema>;
|
|
|
1480
1953
|
export type DocumentRefreshIntervalDto = z.infer<typeof DocumentRefreshIntervalDtoSchema>;
|
|
1481
1954
|
export type DocumentBulkRefreshIntervalDto = z.infer<typeof DocumentBulkRefreshIntervalDtoSchema>;
|
|
1482
1955
|
export type DocumentBulkRefreshDto = z.infer<typeof DocumentBulkRefreshDtoSchema>;
|
|
1956
|
+
export type DocumentRestoreResult = z.infer<typeof DocumentRestoreResultSchema>;
|
|
1957
|
+
export type DocumentTrashSummary = z.infer<typeof DocumentTrashSummarySchema>;
|
|
1958
|
+
export type DocumentEmptyTrashDto = z.infer<typeof DocumentEmptyTrashDtoSchema>;
|
|
1959
|
+
export type DocumentEmptyTrashResult = z.infer<typeof DocumentEmptyTrashResultSchema>;
|
|
1483
1960
|
export declare const getStatusColor: (status: IndexStatus) => "success" | "danger" | "warning" | "info";
|
|
1484
1961
|
export declare const getStatusIcon: (status: IndexStatus) => "ri:check-line" | "ri:error-warning-line" | "ri:hourglass-line" | "ri:time-line";
|
|
1485
1962
|
export declare const getTypeIcon: (type: DocumentType) => "ri:file-line" | "ri:link" | "ri:feedback-line" | "ri:input-method-line";
|
|
@@ -12,3 +12,42 @@ export declare const HeadesSchema: z.ZodCodec<z.ZodArray<z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>>>;
|
|
13
13
|
export type Header = z.infer<typeof HeaderSchema>;
|
|
14
14
|
export type Headers = z.infer<typeof HeadesSchema>;
|
|
15
|
+
/** Upper bound of a secret value, so a form cannot store an arbitrarily large blob. */
|
|
16
|
+
export declare const MAX_SECRET_VALUE_LENGTH = 4096;
|
|
17
|
+
/**
|
|
18
|
+
* A header that carries a credential, as the API returns it: its name, and
|
|
19
|
+
* whether a value is stored. The headers of API tools and MCP servers carry
|
|
20
|
+
* the keys of the services they call (`Authorization`, `X-Api-Key`), so the
|
|
21
|
+
* value never leaves the backend, the contract of the headers of the
|
|
22
|
+
* organization's model provider.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SecretHeaderSchema: z.ZodObject<{
|
|
25
|
+
key: z.ZodString;
|
|
26
|
+
hasValue: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
/**
|
|
29
|
+
* Secret headers as a save sends them. On an update an empty value keeps the
|
|
30
|
+
* one stored under the same name, while the URL keeps its origin; a name left
|
|
31
|
+
* out is removed. A row without a name is an empty row of the form, and
|
|
32
|
+
* dropped. Two names that differ only in case are one HTTP header, so they
|
|
33
|
+
* are refused: a kept value would match the first and the request send the
|
|
34
|
+
* last.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SecretHeaderListSchema: z.ZodCodec<z.ZodArray<z.ZodObject<{
|
|
37
|
+
key: z.ZodOptional<z.ZodString>;
|
|
38
|
+
value: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
40
|
+
key: z.ZodString;
|
|
41
|
+
value: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
export type SecretHeader = z.infer<typeof SecretHeaderSchema>;
|
|
44
|
+
export type SecretHeaderDto = z.infer<typeof SecretHeaderListSchema>[number];
|
|
45
|
+
/**
|
|
46
|
+
* A secret header as stored (`agent_api_tools.headers`, `mcp_server.headers`),
|
|
47
|
+
* with `value` encrypted by `encryptSecret`; rows saved before 0.115.0 hold it
|
|
48
|
+
* in clear until their next save. Backend only: it never reaches a response.
|
|
49
|
+
*/
|
|
50
|
+
export type StoredSecretHeader = {
|
|
51
|
+
key: string;
|
|
52
|
+
value: string;
|
|
53
|
+
};
|
|
@@ -3,6 +3,20 @@ import * as z from 'zod';
|
|
|
3
3
|
export declare const PLATFORM_MCP_SERVER_NAME = "Agents Studio Platform MCP";
|
|
4
4
|
/** Name of the per-org Platform Agent created by seedPlatformMcp.ts */
|
|
5
5
|
export declare const PLATFORM_AGENT_NAME = "Assistente piattaforma";
|
|
6
|
+
/**
|
|
7
|
+
* How long the backend may spend discovering an integration's OAuth endpoints
|
|
8
|
+
* when a user starts a sign-in (Connect in the chat, the profile, the
|
|
9
|
+
* backoffice): long enough for a server scaled to zero to start, about 45 s
|
|
10
|
+
* on one of ours. The refresh inside a chat turn keeps a short budget of its
|
|
11
|
+
* own, bound to the refresh lock.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MCP_OAUTH_AUTHORIZE_DISCOVERY_BUDGET_MS = 120000;
|
|
14
|
+
/**
|
|
15
|
+
* How long a client waits for an authorize URL: the discovery above, then the
|
|
16
|
+
* client registration that may follow it. Below the 240 s the Container Apps
|
|
17
|
+
* ingress gives a request.
|
|
18
|
+
*/
|
|
19
|
+
export declare const MCP_OAUTH_AUTHORIZE_TIMEOUT_MS: number;
|
|
6
20
|
export declare enum McpServerStatus {
|
|
7
21
|
Active = "active",
|
|
8
22
|
Inactive = "inactive",
|
|
@@ -34,13 +48,10 @@ export declare const McpServerSchema: z.ZodObject<{
|
|
|
34
48
|
status: z.ZodString;
|
|
35
49
|
url: z.ZodString;
|
|
36
50
|
healthCheckPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
headers: z.
|
|
38
|
-
key: z.ZodOptional<z.ZodString>;
|
|
39
|
-
value: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
51
|
+
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
41
52
|
key: z.ZodString;
|
|
42
|
-
|
|
43
|
-
}, z.core.$strip
|
|
53
|
+
hasValue: z.ZodBoolean;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
44
55
|
disabledTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
45
56
|
stateless: z.ZodDefault<z.ZodBoolean>;
|
|
46
57
|
organizationId: z.ZodString;
|
|
@@ -70,7 +81,7 @@ export declare const McpServerCreateSchema: z.ZodObject<{
|
|
|
70
81
|
value: z.ZodOptional<z.ZodString>;
|
|
71
82
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
72
83
|
key: z.ZodString;
|
|
73
|
-
value: z.ZodString
|
|
84
|
+
value: z.ZodOptional<z.ZodString>;
|
|
74
85
|
}, z.core.$strip>>>>>;
|
|
75
86
|
disabledTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
76
87
|
stateless: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -99,7 +110,7 @@ export declare const McpServerUpdateSchema: z.ZodObject<{
|
|
|
99
110
|
value: z.ZodOptional<z.ZodString>;
|
|
100
111
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
101
112
|
key: z.ZodString;
|
|
102
|
-
value: z.ZodString
|
|
113
|
+
value: z.ZodOptional<z.ZodString>;
|
|
103
114
|
}, z.core.$strip>>>>>;
|
|
104
115
|
disabledTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
105
116
|
stateless: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -146,8 +157,65 @@ export declare const McpServerConnectionSchema: z.ZodObject<{
|
|
|
146
157
|
organizationName: z.ZodNullable<z.ZodString>;
|
|
147
158
|
connectedAt: z.ZodCoercedDate<unknown>;
|
|
148
159
|
}, z.core.$strip>;
|
|
160
|
+
/**
|
|
161
|
+
* An integration the current user could sign in to from the profile, before
|
|
162
|
+
* an agent asks: an OAuth server of an agent they can use in the active
|
|
163
|
+
* organization, which they are not signed in to yet (phase 2 of
|
|
164
|
+
* docs/specs/user-mcp-connections-ui.md).
|
|
165
|
+
*/
|
|
166
|
+
export declare const McpConnectableServerSchema: z.ZodObject<{
|
|
167
|
+
mcpServerId: z.ZodString;
|
|
168
|
+
serverName: z.ZodString;
|
|
169
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
/**
|
|
175
|
+
* Whether a stored sign-in still does anything, as the system user page shows
|
|
176
|
+
* it. `active`: usable now or renewable. `stale`: expired with nothing to
|
|
177
|
+
* renew it from, the next turn deletes it. `orphan`: the integration was
|
|
178
|
+
* deleted, switched off or detached from every agent, so nothing uses the
|
|
179
|
+
* sign-in, yet it is still a credential and still revocable.
|
|
180
|
+
*/
|
|
181
|
+
export declare enum McpUserConnectionStatus {
|
|
182
|
+
Active = "active",
|
|
183
|
+
Stale = "stale",
|
|
184
|
+
Orphan = "orphan"
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* One sign-in of a user, as a platform administrator sees it: every row the
|
|
188
|
+
* user owns, the orphaned ones included, since offboarding is about the
|
|
189
|
+
* credentials that are left and not only the ones in use. Never a token, a
|
|
190
|
+
* refresh token or a client secret: whether a refresh token exists is all it
|
|
191
|
+
* says about one.
|
|
192
|
+
*/
|
|
193
|
+
export declare const McpUserConnectionAdminSchema: z.ZodObject<{
|
|
194
|
+
mcpServerId: z.ZodString;
|
|
195
|
+
serverName: z.ZodString;
|
|
196
|
+
organizationId: z.ZodString;
|
|
197
|
+
organizationName: z.ZodString;
|
|
198
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
connectedAt: z.ZodCoercedDate<unknown>;
|
|
203
|
+
renewedAt: z.ZodCoercedDate<unknown>;
|
|
204
|
+
expiresAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
205
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
206
|
+
refreshable: z.ZodBoolean;
|
|
207
|
+
status: z.ZodEnum<typeof McpUserConnectionStatus>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
/** What ending a sign-in did beyond deleting our copy of the token. */
|
|
210
|
+
export declare const McpConnectionRevocationSchema: z.ZodObject<{
|
|
211
|
+
success: z.ZodBoolean;
|
|
212
|
+
revokedAtProvider: z.ZodBoolean;
|
|
213
|
+
}, z.core.$strip>;
|
|
149
214
|
export type McpServerInfo = z.infer<typeof McpServerInfoSchema>;
|
|
150
215
|
export type McpServerConnection = z.infer<typeof McpServerConnectionSchema>;
|
|
216
|
+
export type McpConnectableServer = z.infer<typeof McpConnectableServerSchema>;
|
|
217
|
+
export type McpUserConnectionAdmin = z.infer<typeof McpUserConnectionAdminSchema>;
|
|
218
|
+
export type McpConnectionRevocation = z.infer<typeof McpConnectionRevocationSchema>;
|
|
151
219
|
export type McpServer = z.infer<typeof McpServerSchema>;
|
|
152
220
|
export type McpServerCreate = z.infer<typeof McpServerCreateSchema>;
|
|
153
221
|
export type McpServerUpdate = z.infer<typeof McpServerUpdateSchema>;
|