@8wave/ai-elements 0.115.0-beta.2 → 0.115.0-beta.30
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/{PkStreamingMarkdown-BKxA6Ntl.js → PkStreamingMarkdown-B7SRIqnV.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-BKxA6Ntl.js.map → PkStreamingMarkdown-B7SRIqnV.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CgQePKKb.js → PkToolRequestOAuthConnection-CbZn1f14.js} +31 -25
- package/dist/_chunks/PkToolRequestOAuthConnection-CbZn1f14.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-CHxeuKEU.js → PkToolShowArtifact-CRQySuGC.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CHxeuKEU.js.map → PkToolShowArtifact-CRQySuGC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D0jVbqWt.js → PkToolShowCalendarEvent-Cj7yRj-0.js} +2 -2
- package/dist/_chunks/{PkToolShowCalendarEvent-D0jVbqWt.js.map → PkToolShowCalendarEvent-Cj7yRj-0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DqVLVwqJ.js → PkToolShowContactForm-DGmzPa3d.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DqVLVwqJ.js.map → PkToolShowContactForm-DGmzPa3d.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-YJQPYfEe.js → PkToolShowForm-76LQdZHH.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-YJQPYfEe.js.map → PkToolShowForm-76LQdZHH.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-1mq-_cnp.js → PkToolShowImageGallery-BmpcrdIL.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-1mq-_cnp.js.map → PkToolShowImageGallery-BmpcrdIL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-VFoI0YS8.js → PkToolShowSources-13IBQve7.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-VFoI0YS8.js.map → PkToolShowSources-13IBQve7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-BgXlRdmH.js → PkToolShowWebPages-CCSRAlz5.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-BgXlRdmH.js.map → PkToolShowWebPages-CCSRAlz5.js.map} +1 -1
- package/dist/_chunks/{markdown-BL7WANiX.js → markdown-tS_2A0k9.js} +39 -11
- package/dist/_chunks/markdown-tS_2A0k9.js.map +1 -0
- package/dist/_chunks/{url-validation-uLMZ5-AU.js → url-validation-9DstIfq2.js} +9 -2
- package/dist/_chunks/{url-validation-uLMZ5-AU.js.map → url-validation-9DstIfq2.js.map} +1 -1
- package/dist/ai-elements.es.js +1697 -1578
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotSteps.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-BmfGStvM.js} +40 -12
- package/dist-vue/_chunks/Document-BmfGStvM.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CdtYJ1Lf.js → PkChatbot-DKqKEsUn.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-CdtYJ1Lf.js.map → PkChatbot-DKqKEsUn.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dicjr_Fv.js → PkChatbotEmptyState-BPPP0-0U.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dicjr_Fv.js.map → PkChatbotEmptyState-BPPP0-0U.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-CwiVQDF2.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-DcLmOqA1.js → PkChatbotInput-BHcxLnWU.js} +2 -2
- package/dist-vue/_chunks/PkChatbotInput-BHcxLnWU.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotMessageFeedback-BYmrVaCE.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-R1EsTJpM.js → PkChatbotMessages-CaHFzdIC.js} +122 -113
- package/dist-vue/_chunks/PkChatbotMessages-CaHFzdIC.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotSteps-CPPjwTJN.js → PkChatbotSteps-CXiFF3Z-.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotSteps-CPPjwTJN.js.map → PkChatbotSteps-CXiFF3Z-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CbqrHEC6.js → PkChatbotViewChat-D5HtjK3u.js} +9 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-CbqrHEC6.js.map → PkChatbotViewChat-D5HtjK3u.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js → PkChatbotViewConversations-C5O-IocA.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js.map → PkChatbotViewConversations-C5O-IocA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-Bk9-K6Hw.js → PkChatbotViewFiles-W8DDmtTi.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-Bk9-K6Hw.js.map → PkChatbotViewFiles-W8DDmtTi.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js → PkChatbotViewProfile--upofqcF.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js.map → PkChatbotViewProfile--upofqcF.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-DYy79C1P.js → PkStreamingMarkdown-it3X7T75.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-DYy79C1P.js.map → PkStreamingMarkdown-it3X7T75.js.map} +1 -1
- package/dist-vue/_chunks/PkToolRequestOAuthConnection-BiaSF6R_.js +124 -0
- package/dist-vue/_chunks/PkToolRequestOAuthConnection-BiaSF6R_.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-DUOnFdfa.js → PkToolShowArtifact-BFyFYjHI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DUOnFdfa.js.map → PkToolShowArtifact-BFyFYjHI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-BsBdsbV0.js → PkToolShowCalendarEvent-yttlTHiX.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-BsBdsbV0.js.map → PkToolShowCalendarEvent-yttlTHiX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-1TFKvG_s.js → PkToolShowContactForm-YpaC_31s.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-1TFKvG_s.js.map → PkToolShowContactForm-YpaC_31s.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Dmtqu3th.js → PkToolShowDiagram-Bdxjd0BJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-Dmtqu3th.js.map → PkToolShowDiagram-Bdxjd0BJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-BDsBoETQ.js → PkToolShowEmail-CNkFP7qC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-BDsBoETQ.js.map → PkToolShowEmail-CNkFP7qC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DwFKxMJd.js → PkToolShowForm-FKJNKXPq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-DwFKxMJd.js.map → PkToolShowForm-FKJNKXPq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DudQzBx4.js → PkToolShowImageGallery-DmhZLnBk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DudQzBx4.js.map → PkToolShowImageGallery-DmhZLnBk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMessage-Dau3agUy.js → PkToolShowMessage-C9xFAi1s.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-Dau3agUy.js.map → PkToolShowMessage-C9xFAi1s.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CsupMsuy.js → PkToolShowProductList-k1ckf1Ko.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CsupMsuy.js.map → PkToolShowProductList-k1ckf1Ko.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-TzkNgwnr.js → PkToolShowSources-DE0RO8z9.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowSources-TzkNgwnr.js.map → PkToolShowSources-DE0RO8z9.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-D4E3Xzg1.js → PkToolShowWebPages-v-6DGCNM.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowWebPages-D4E3Xzg1.js.map → PkToolShowWebPages-v-6DGCNM.js.map} +1 -1
- package/dist-vue/_chunks/{PkUrl-Cu3qKl4G.js → PkUrl-C5UXwNxy.js} +2 -2
- package/dist-vue/_chunks/{PkUrl-Cu3qKl4G.js.map → PkUrl-C5UXwNxy.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BlWs282E.js → createChatbotApiClient-L7wpQUUA.js} +110 -110
- package/dist-vue/_chunks/createChatbotApiClient-L7wpQUUA.js.map +1 -0
- package/dist-vue/_chunks/mcpOAuthReport-DG84H11Y.js +9 -0
- package/dist-vue/_chunks/mcpOAuthReport-DG84H11Y.js.map +1 -0
- package/dist-vue/_chunks/{url-validation-uLMZ5-AU.js → url-validation-9DstIfq2.js} +9 -2
- package/dist-vue/_chunks/{url-validation-uLMZ5-AU.js.map → url-validation-9DstIfq2.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js → useChatbotStore-Ctr5gDIr.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js.map → useChatbotStore-Ctr5gDIr.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +118 -10
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +2976 -2972
- 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/social-redirect-plugin.d.ts +13 -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/components/src/chat/PkToolRequestOAuthConnection.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/index.d.ts +1 -0
- package/dist-vue/packages/components/src/chat/mcpOAuthReport.d.ts +11 -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 +478 -0
- package/dist-vue/packages/models/src/schema/Header.d.ts +39 -0
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +76 -11
- package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +23 -6
- 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/PkToolRequestOAuthConnection-CgQePKKb.js.map +0 -1
- package/dist/_chunks/markdown-BL7WANiX.js.map +0 -1
- package/dist-vue/_chunks/Document-nCWwJC2h.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-DcLmOqA1.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-R1EsTJpM.js.map +0 -1
- package/dist-vue/_chunks/PkToolRequestOAuthConnection-a2LegFoE.js +0 -122
- package/dist-vue/_chunks/PkToolRequestOAuthConnection-a2LegFoE.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BlWs282E.js.map +0 -1
|
@@ -1288,6 +1288,474 @@ 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
|
+
retentionDays: z.ZodNumber;
|
|
1752
|
+
}, z.core.$strip>;
|
|
1753
|
+
export declare const DocumentEmptyTrashDtoSchema: z.ZodObject<{
|
|
1754
|
+
agentId: z.ZodUUID;
|
|
1755
|
+
}, z.core.$strip>;
|
|
1756
|
+
export declare const DocumentEmptyTrashResultSchema: z.ZodObject<{
|
|
1757
|
+
purged: z.ZodNumber;
|
|
1758
|
+
remaining: z.ZodNumber;
|
|
1291
1759
|
}, z.core.$strip>;
|
|
1292
1760
|
/**
|
|
1293
1761
|
* Query parameters for listing documents with pagination, sorting, and filters
|
|
@@ -1300,6 +1768,10 @@ export declare const DocumentQuerystringSchema: z.ZodObject<{
|
|
|
1300
1768
|
'filter[sourceProvider]': z.ZodOptional<z.ZodString>;
|
|
1301
1769
|
ids: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1302
1770
|
"filter[fullText]": z.ZodOptional<z.ZodString>;
|
|
1771
|
+
'filter[deleted]': z.ZodOptional<z.ZodEnum<{
|
|
1772
|
+
true: "true";
|
|
1773
|
+
false: "false";
|
|
1774
|
+
}>>;
|
|
1303
1775
|
"filter[type]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
|
|
1304
1776
|
"filter[agentId]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
|
|
1305
1777
|
"filter[language]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
|
|
@@ -1309,10 +1781,12 @@ export declare const DocumentQuerystringSchema: z.ZodObject<{
|
|
|
1309
1781
|
id: "id";
|
|
1310
1782
|
createdAt: "createdAt";
|
|
1311
1783
|
updatedAt: "updatedAt";
|
|
1784
|
+
deletedAt: "deletedAt";
|
|
1312
1785
|
"-name": "-name";
|
|
1313
1786
|
"-id": "-id";
|
|
1314
1787
|
"-createdAt": "-createdAt";
|
|
1315
1788
|
"-updatedAt": "-updatedAt";
|
|
1789
|
+
"-deletedAt": "-deletedAt";
|
|
1316
1790
|
}>>>;
|
|
1317
1791
|
'page[number]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
1318
1792
|
'page[size]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
@@ -1480,6 +1954,10 @@ export type DocumentUpdateDto = z.infer<typeof DocumentUpdateDtoSchema>;
|
|
|
1480
1954
|
export type DocumentRefreshIntervalDto = z.infer<typeof DocumentRefreshIntervalDtoSchema>;
|
|
1481
1955
|
export type DocumentBulkRefreshIntervalDto = z.infer<typeof DocumentBulkRefreshIntervalDtoSchema>;
|
|
1482
1956
|
export type DocumentBulkRefreshDto = z.infer<typeof DocumentBulkRefreshDtoSchema>;
|
|
1957
|
+
export type DocumentRestoreResult = z.infer<typeof DocumentRestoreResultSchema>;
|
|
1958
|
+
export type DocumentTrashSummary = z.infer<typeof DocumentTrashSummarySchema>;
|
|
1959
|
+
export type DocumentEmptyTrashDto = z.infer<typeof DocumentEmptyTrashDtoSchema>;
|
|
1960
|
+
export type DocumentEmptyTrashResult = z.infer<typeof DocumentEmptyTrashResultSchema>;
|
|
1483
1961
|
export declare const getStatusColor: (status: IndexStatus) => "success" | "danger" | "warning" | "info";
|
|
1484
1962
|
export declare const getStatusIcon: (status: IndexStatus) => "ri:check-line" | "ri:error-warning-line" | "ri:hourglass-line" | "ri:time-line";
|
|
1485
1963
|
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
|
+
};
|