@8wave/ai-elements 0.126.0-beta.3 → 0.126.0-beta.5
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/{Agent-DMvYDpLa.js → Agent-CekUHTMX.js} +375 -359
- package/dist/_chunks/Agent-CekUHTMX.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-DXcXrGlu.js → PkFilePreview-lW67C8H1.js} +3 -3
- package/dist/_chunks/{PkFilePreview-DXcXrGlu.js.map → PkFilePreview-lW67C8H1.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-KXGgpxmi.js → PkFilePreviewDialog-D3CfqzoG.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-KXGgpxmi.js.map → PkFilePreviewDialog-D3CfqzoG.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-DpN9fQVH.js → PkImageEditorDialog-DeDcbpTx.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-DpN9fQVH.js.map → PkImageEditorDialog-DeDcbpTx.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-mc8_fmAf.js → PkSelectionActions-DjQxIfV3.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-mc8_fmAf.js.map → PkSelectionActions-DjQxIfV3.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-C-UwSQ9_.js → PkStreamingMarkdown-CA6Yy0Ul.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-C-UwSQ9_.js.map → PkStreamingMarkdown-CA6Yy0Ul.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-B_apV6dN.js → PkToolChatFile-DmNIFwm4.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-B_apV6dN.js.map → PkToolChatFile-DmNIFwm4.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-5ttHwPcp.js → PkToolRequestGeolocation-D196AF0R.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-5ttHwPcp.js.map → PkToolRequestGeolocation-D196AF0R.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DAGUKLTk.js → PkToolRequestOAuthConnection-JhdCcPGn.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DAGUKLTk.js.map → PkToolRequestOAuthConnection-JhdCcPGn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Br1dw9_a.js → PkToolShowArtifact-DkJaxkWI.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-Br1dw9_a.js.map → PkToolShowArtifact-DkJaxkWI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-D3G_9NhR.js → PkToolShowContactForm-dLdK3POY.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-D3G_9NhR.js.map → PkToolShowContactForm-dLdK3POY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-T9zmaVnV.js → PkToolShowForm-Ce0IzrxF.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-T9zmaVnV.js.map → PkToolShowForm-Ce0IzrxF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-Cma0W3Lc.js → PkToolShowImageGallery-g_2RBM8g.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-Cma0W3Lc.js.map → PkToolShowImageGallery-g_2RBM8g.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D9sJv2kh.js → PkToolShowProductList-B-fw08V_.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-D9sJv2kh.js.map → PkToolShowProductList-B-fw08V_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BtGR_hGC.js → PkToolShowSources-IgpsG650.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-BtGR_hGC.js.map → PkToolShowSources-IgpsG650.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-gpuWzpoh.js → PkToolShowSuggestedReply-DKKMLvpr.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-gpuWzpoh.js.map → PkToolShowSuggestedReply-DKKMLvpr.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CF5fbuem.js → PkToolShowVideo-Dadpkgeb.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CF5fbuem.js.map → PkToolShowVideo-Dadpkgeb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-C7NRjgaF.js → PkToolShowWebPages-B7dYxtRc.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-C7NRjgaF.js.map → PkToolShowWebPages-B7dYxtRc.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-Dv_WHhDs.js → chatImagePolicy-xnyXgC-e.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-Dv_WHhDs.js.map → chatImagePolicy-xnyXgC-e.js.map} +1 -1
- package/dist/_chunks/{markdown-BYpvcbWH.js → markdown-DrtQCs3N.js} +94 -109
- package/dist/_chunks/markdown-DrtQCs3N.js.map +1 -0
- package/dist/_chunks/{utils-C2aFWWye.js → utils-DFHOr4A0.js} +2 -2
- package/dist/_chunks/{utils-C2aFWWye.js.map → utils-DFHOr4A0.js.map} +1 -1
- package/dist/ai-elements.es.js +58 -58
- 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/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.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/{Agent-B9iJ1WvR.js → Agent-D5aZyBZ0.js} +360 -346
- package/dist-vue/_chunks/Agent-D5aZyBZ0.js.map +1 -0
- package/dist-vue/_chunks/{Document-DnsOE7s6.js → Document-Ds51J0AA.js} +123 -136
- package/dist-vue/_chunks/Document-Ds51J0AA.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CuZpfjTV.js → PkChatbot-DcH0Q-v8.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CuZpfjTV.js.map → PkChatbot-DcH0Q-v8.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DfyYZXHQ.js → PkChatbotEmptyState-CbpQFb1b.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DfyYZXHQ.js.map → PkChatbotEmptyState-CbpQFb1b.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CBalSveL.js → PkChatbotInput-Bn-B0DNK.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotInput-CBalSveL.js.map → PkChatbotInput-Bn-B0DNK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-C2AUTqk4.js → PkChatbotMessages-BVZ43ZOC.js} +18 -18
- package/dist-vue/_chunks/{PkChatbotMessages-C2AUTqk4.js.map → PkChatbotMessages-BVZ43ZOC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bb3Y6kuL.js → PkChatbotStepPayload-C0J8ajea.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bb3Y6kuL.js.map → PkChatbotStepPayload-C0J8ajea.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CwOxzYOe.js → PkChatbotStepToolDetail-GcOljcQh.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CwOxzYOe.js.map → PkChatbotStepToolDetail-GcOljcQh.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-FduD9X9i.js → PkChatbotSteps-BhoWAoId.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-FduD9X9i.js.map → PkChatbotSteps-BhoWAoId.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CqsZUVwH.js → PkChatbotViewChat-BxjBteX-.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-CqsZUVwH.js.map → PkChatbotViewChat-BxjBteX-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BmogvLfQ.js → PkChatbotViewConversations-DBIFAunZ.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BmogvLfQ.js.map → PkChatbotViewConversations-DBIFAunZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-D8zQlZnl.js → PkChatbotViewFiles-ElbOlcb4.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-D8zQlZnl.js.map → PkChatbotViewFiles-ElbOlcb4.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-jIyADxiV.js → PkChatbotViewProfile-zjpDEqiI.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-jIyADxiV.js.map → PkChatbotViewProfile-zjpDEqiI.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-kyTrO7DS.js → PkFilePreview-BnvJc9wF.js} +3 -3
- package/dist-vue/_chunks/{PkFilePreview-kyTrO7DS.js.map → PkFilePreview-BnvJc9wF.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-CuMIXEQK.js → PkFilePreviewDialog-DJPd6F6h.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-CuMIXEQK.js.map → PkFilePreviewDialog-DJPd6F6h.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-CjMwpb-a.js → PkImageEditorDialog-SGh0yd88.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-CjMwpb-a.js.map → PkImageEditorDialog-SGh0yd88.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-7Kl_VBH-.js → PkStreamingMarkdown-Cdk4iAL3.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-7Kl_VBH-.js.map → PkStreamingMarkdown-Cdk4iAL3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DcNRCVXy.js → PkToolChatFile-DypSO5o3.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-DcNRCVXy.js.map → PkToolChatFile-DypSO5o3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Bhh7UomV.js → PkToolRequestGeolocation-C5zOostC.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Bhh7UomV.js.map → PkToolRequestGeolocation-C5zOostC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-8GJlt5G1.js → PkToolRequestOAuthConnection-DBXEQcsm.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-8GJlt5G1.js.map → PkToolRequestOAuthConnection-DBXEQcsm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-C7CxCqVO.js → PkToolShowArtifact-CQBi5Mg1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-C7CxCqVO.js.map → PkToolShowArtifact-CQBi5Mg1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-DULlrMjq.js → PkToolShowChart-RwwJPpQP.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-DULlrMjq.js.map → PkToolShowChart-RwwJPpQP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-472d-SAE.js → PkToolShowContactForm-DIlOfZMP.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-472d-SAE.js.map → PkToolShowContactForm-DIlOfZMP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-RrqVpOaX.js → PkToolShowDiagram-CqYnz_Yb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-RrqVpOaX.js.map → PkToolShowDiagram-CqYnz_Yb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CgyszDEI.js → PkToolShowForm-CCPTQ61I.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-CgyszDEI.js.map → PkToolShowForm-CCPTQ61I.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-LBx9JE6p.js → PkToolShowImageGallery-DJRImJce.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-LBx9JE6p.js.map → PkToolShowImageGallery-DJRImJce.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-THiH4EzZ.js → PkToolShowProductList-B0_9HndQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-THiH4EzZ.js.map → PkToolShowProductList-B0_9HndQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CEqGXOOt.js → PkToolShowSources-BVWaatPE.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-CEqGXOOt.js.map → PkToolShowSources-BVWaatPE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DxlGhMvE.js → PkToolShowSuggestedReply-D2F-ub_s.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DxlGhMvE.js.map → PkToolShowSuggestedReply-D2F-ub_s.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-8Gi3vOer.js → PkToolShowVideo-B4UQ0Tor.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-8Gi3vOer.js.map → PkToolShowVideo-B4UQ0Tor.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-xjUPdfOU.js → PkToolShowWebPages-CPIcsqFG.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-xjUPdfOU.js.map → PkToolShowWebPages-CPIcsqFG.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DmPcjwB3.js → createChatbotApiClient-DiazhjCh.js} +18 -18
- package/dist-vue/_chunks/{createChatbotApiClient-DmPcjwB3.js.map → createChatbotApiClient-DiazhjCh.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-Ci7k5fU2.js → useChatbotStore-Wu5B9krh.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-Ci7k5fU2.js.map → useChatbotStore-Wu5B9krh.js.map} +1 -1
- package/dist-vue/_chunks/{utils-VVbH-Liq.js → utils-MJ9tUQYf.js} +2 -2
- package/dist-vue/_chunks/{utils-VVbH-Liq.js.map → utils-MJ9tUQYf.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +10 -10
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3256 -3221
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +8 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -3
- package/dist-vue/packages/components/src/chat/PkLanguageModelCombobox.d.ts +7 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +12 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +3 -0
- package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/constants.d.ts +7 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-DMvYDpLa.js.map +0 -1
- package/dist/_chunks/markdown-BYpvcbWH.js.map +0 -1
- package/dist-vue/_chunks/Agent-B9iJ1WvR.js.map +0 -1
- package/dist-vue/_chunks/Document-DnsOE7s6.js.map +0 -1
|
@@ -1,34 +1,21 @@
|
|
|
1
|
-
import { C as e, E as t, S as n, T as r, _ as i, b as a, m as o, o as s, r as c, s as l, u
|
|
2
|
-
import { l as
|
|
3
|
-
import { _t as
|
|
4
|
-
// ../../packages/models/src/schema/constants.ts
|
|
5
|
-
var _ = /* @__PURE__ */ "openai/gpt-5-nano,openai/gpt-5-mini,openai/gpt-5.1-thinking,openai/gpt-5.2,openai/gpt-5.4-nano,openai/gpt-5.4-mini,openai/gpt-5.4,openai/gpt-5.4-pro,openai/gpt-5.5,openai/gpt-5.5-pro,openai/gpt-5.6-luna,openai/gpt-5.6-terra,openai/gpt-5.6-sol,openai/gpt-5.6-luna-fast,openai/gpt-5.6-terra-fast,openai/gpt-5.6-sol-fast,openai/gpt-6-astra,openai/gpt-6-astra-fast,openai/gpt-6-sol,openai/gpt-6-sol-fast,openai/gpt-6-luna,openai/gpt-6-luna-fast,openai/gpt-6.1-sol,openai/gpt-6.1-sol-fast,openai/gpt-6.1-terra,openai/gpt-6.1-terra-fast,google/gemini-2.5-flash-lite,google/gemini-2.5-flash,google/gemini-2.5-pro,google/gemini-3-flash,google/gemini-3.1-pro-preview,google/gemini-3.1-flash-lite,google/gemini-3.5-flash,google/gemini-3.5-flash-lite,google/gemini-3.6-flash,google/gemini-3.7-flash,google/gemini-3.8-flash,google/gemini-4-argon,anthropic/claude-haiku-4.5,anthropic/claude-haiku-5.5,anthropic/claude-sonnet-4.6,anthropic/claude-sonnet-5,anthropic/claude-sonnet-5.5,anthropic/claude-opus-4.6,anthropic/claude-opus-4.7,anthropic/claude-opus-4.8,anthropic/claude-opus-5,anthropic/claude-opus-5-fast,anthropic/claude-opus-5.5,anthropic/claude-opus-5.5-fast,anthropic/claude-fable-5,anthropic/claude-fable-5.1,deepseek/deepseek-v3.2,deepseek/deepseek-v4-flash-0731,deepseek/deepseek-v4.1-flash,deepseek/deepseek-v4-pro-0813,alibaba/qwen3.6-plus,alibaba/qwen3.7-max,alibaba/qwen3.7-plus,alibaba/qwen3.7-flash,alibaba/qwen3.8-flash,alibaba/qwen3.8-max,alibaba/qwen3.8-27b,alibaba/qwen3.8-max-0902,alibaba/qwen3.8-omni-flash,alibaba/qwen3.8-max-prime,spacexai/grok-4.3,spacexai/grok-4.6,spacexai/grok-4.7,zai/glm-5.2,zai/glm-5.2-fast,zai/glm-5.3,zai/glm-5.3-flash,zai/glm-5.3-fast,meta/muse-spark-1.1,meta/muse-spark-1.2,meta/muse-spark-1.3,meta/muse-wonder-1.0,moonshotai/kimi-k3,moonshotai/kimi-k3-fast,mistral/ministral-14b,mistral/mistral-small,mistral/mistral-medium-3.5,mistral/mistral-large-3,mistral/mistral-large-4".split(","), v = 1e6, y = (/* @__PURE__ */ function(e) {
|
|
6
|
-
return e.textEmbedding3Small = "openai/text-embedding-3-small", e.textEmbedding3Large = "openai/text-embedding-3-large", e.geminiEmbedding2 = "google/gemini-embedding-2", e;
|
|
7
|
-
}({})).geminiEmbedding2, b = "typesafe-ai/jev", x = /* @__PURE__ */ function(e) {
|
|
8
|
-
return e.it = "it", e.en = "en", e.es = "es", e.fr = "fr", e.de = "de", e;
|
|
9
|
-
}({});
|
|
10
|
-
x.it, x.en, x.es, x.fr, x.de;
|
|
11
|
-
var S = /* @__PURE__ */ function(e) {
|
|
12
|
-
return e.READABILITY = "readability", e.AI = "ai", e;
|
|
13
|
-
}({}), C = /* @__PURE__ */ function(e) {
|
|
14
|
-
return e.FETCH = "fetch", e.PUPPETEER = "puppeteer", e.REMOTE = "remote", e;
|
|
15
|
-
}({}), w = "byok/", T = (e) => !!e?.startsWith(w);
|
|
16
|
-
new Set(_);
|
|
1
|
+
import { C as e, E as t, S as n, T as r, _ as i, b as a, m as o, o as s, r as c, s as l, u, v as d, w as f, x as p } from "./schemas-BO5QlXAp.js";
|
|
2
|
+
import { l as m, n as h } from "./Media-DylqhvaF.js";
|
|
3
|
+
import { Ct as g, Dt as _, Tt as v, _t as y, bt as b } from "./Agent-D5aZyBZ0.js";
|
|
17
4
|
// ../../packages/models/src/schema/Header.ts
|
|
18
|
-
var
|
|
5
|
+
var x = d({
|
|
19
6
|
key: n().optional(),
|
|
20
7
|
value: n().optional()
|
|
21
|
-
}),
|
|
8
|
+
}), S = v(s(x), s(d({
|
|
22
9
|
key: n(),
|
|
23
10
|
value: n()
|
|
24
11
|
})), (e) => e?.filter((e) => e.key?.trim() && e.value?.trim()));
|
|
25
|
-
|
|
12
|
+
d({
|
|
26
13
|
key: n(),
|
|
27
14
|
hasValue: l()
|
|
28
|
-
}),
|
|
15
|
+
}), v(s(d({
|
|
29
16
|
key: n().optional(),
|
|
30
17
|
value: n().max(4096).optional()
|
|
31
|
-
})), s(
|
|
18
|
+
})), s(d({
|
|
32
19
|
key: n(),
|
|
33
20
|
value: n().optional()
|
|
34
21
|
})).refine((e) => new Set(e.map(({ key: e }) => e.toLowerCase())).size === e.length, { params: { i18n: "validation.duplicateHeader" } }), (e) => e.filter((e) => e.key?.trim()).map(({ key: e, value: t }) => ({
|
|
@@ -36,12 +23,12 @@ u({
|
|
|
36
23
|
value: t
|
|
37
24
|
})));
|
|
38
25
|
// ../../packages/models/src/schema/Tabular.ts
|
|
39
|
-
var
|
|
26
|
+
var C = d({
|
|
40
27
|
name: n(),
|
|
41
28
|
type: n(),
|
|
42
29
|
column: n().optional(),
|
|
43
30
|
formulas: i().optional(),
|
|
44
|
-
mostly:
|
|
31
|
+
mostly: d({
|
|
45
32
|
kind: c([
|
|
46
33
|
"date",
|
|
47
34
|
"number",
|
|
@@ -49,14 +36,14 @@ var O = u({
|
|
|
49
36
|
]),
|
|
50
37
|
share: n()
|
|
51
38
|
}).optional()
|
|
52
|
-
}),
|
|
39
|
+
}), w = d({
|
|
53
40
|
sheet: n(),
|
|
54
41
|
table: n(),
|
|
55
42
|
headerRow: i().optional(),
|
|
56
43
|
rowCount: i(),
|
|
57
|
-
columns: s(
|
|
58
|
-
sample: s(
|
|
59
|
-
}),
|
|
44
|
+
columns: s(C),
|
|
45
|
+
sample: s(p(n(), f()))
|
|
46
|
+
}), T = d({
|
|
60
47
|
sheet: n(),
|
|
61
48
|
reason: c([
|
|
62
49
|
"chart",
|
|
@@ -64,60 +51,60 @@ var O = u({
|
|
|
64
51
|
"too-wide",
|
|
65
52
|
"unreadable"
|
|
66
53
|
])
|
|
67
|
-
}),
|
|
54
|
+
}), E = d({
|
|
68
55
|
converterVersion: i(),
|
|
69
|
-
tables: s(
|
|
70
|
-
skipped: s(
|
|
56
|
+
tables: s(w),
|
|
57
|
+
skipped: s(T),
|
|
71
58
|
staleFormulas: l()
|
|
72
59
|
});
|
|
73
|
-
|
|
60
|
+
d({
|
|
74
61
|
status: c([
|
|
75
62
|
"pending",
|
|
76
63
|
"ready",
|
|
77
64
|
"failed"
|
|
78
65
|
]),
|
|
79
66
|
requestedAt: n(),
|
|
80
|
-
conversion:
|
|
67
|
+
conversion: E.optional(),
|
|
81
68
|
failure: n().optional(),
|
|
82
69
|
failedConverterVersion: i().optional()
|
|
83
70
|
});
|
|
84
|
-
var
|
|
71
|
+
var D = E.extend({ sourceHash: n() }), O = /* @__PURE__ */ function(e) {
|
|
85
72
|
return e.Pending = "pending", e.Processing = "processing", e.Success = "success", e.Failed = "failed", e;
|
|
86
|
-
}({}),
|
|
73
|
+
}({}), k = /* @__PURE__ */ function(e) {
|
|
87
74
|
return e.Indexed = "indexed", e.Pending = "pending", e.Failed = "failed", e.Unavailable = "unavailable", e.Empty = "empty", e;
|
|
88
|
-
}({}),
|
|
75
|
+
}({}), A = /* @__PURE__ */ function(e) {
|
|
89
76
|
return e.Pending = "pending", e.Processing = "processing", e.Failed = "failed", e.Preparing = "preparing", e.Indexed = "indexed", e.NotIndexed = "not-indexed", e.Unavailable = "unavailable", e.Empty = "empty", e;
|
|
90
|
-
}({}),
|
|
91
|
-
extractionStrategy: c(
|
|
92
|
-
browserEngine: c(
|
|
93
|
-
headers:
|
|
77
|
+
}({}), j = d({
|
|
78
|
+
extractionStrategy: c(b).optional(),
|
|
79
|
+
browserEngine: c(y).optional().default(y.FETCH),
|
|
80
|
+
headers: S.nullish(),
|
|
94
81
|
aiDescriptionModel: n().optional(),
|
|
95
82
|
aiDescriptionPrompt: n().max(5e3).optional(),
|
|
96
83
|
language: n().optional(),
|
|
97
84
|
forceOcr: l().default(!1),
|
|
98
85
|
pages: n().max(100).regex(/^\d+(\s*-\s*\d+)?(\s*,\s*\d+(\s*-\s*\d+)?)*$/).optional(),
|
|
99
86
|
asTables: l().optional()
|
|
100
|
-
}),
|
|
87
|
+
}), M = /* @__PURE__ */ function(e) {
|
|
101
88
|
return e.Web = "web", e.SharePoint = "sharepoint", e.GoogleDrive = "google-drive", e;
|
|
102
|
-
}({}),
|
|
89
|
+
}({}), N = /* @__PURE__ */ function(e) {
|
|
103
90
|
return e.Updated = "updated", e.Unchanged = "unchanged", e.Failed = "failed", e.Shrunk = "shrunk", e.Gone = "gone", e;
|
|
104
|
-
}({}),
|
|
91
|
+
}({}), P = /* @__PURE__ */ function(e) {
|
|
105
92
|
return e.Daily = "daily", e.Weekly = "weekly", e.Monthly = "monthly", e;
|
|
106
93
|
}({});
|
|
107
|
-
|
|
108
|
-
var
|
|
94
|
+
P.Daily, P.Weekly, P.Monthly;
|
|
95
|
+
var F = d({
|
|
109
96
|
at: n(),
|
|
110
|
-
result: c(
|
|
97
|
+
result: c(N),
|
|
111
98
|
httpStatus: i().optional(),
|
|
112
99
|
error: n().optional(),
|
|
113
100
|
consecutiveFailures: i().optional(),
|
|
114
101
|
previousWordCount: i().optional(),
|
|
115
102
|
newWordCount: i().optional()
|
|
116
|
-
}),
|
|
103
|
+
}), I = {
|
|
117
104
|
contentHash: n().optional(),
|
|
118
|
-
lastRefresh:
|
|
119
|
-
},
|
|
120
|
-
provider: o(
|
|
105
|
+
lastRefresh: F.optional()
|
|
106
|
+
}, L = d({
|
|
107
|
+
provider: o(M.Web),
|
|
121
108
|
url: n(),
|
|
122
109
|
lastScrapedAt: n().optional(),
|
|
123
110
|
extractionInputHash: n().optional(),
|
|
@@ -125,8 +112,8 @@ var B = u({
|
|
|
125
112
|
sourceId: t().optional(),
|
|
126
113
|
lastSyncedAt: n().optional(),
|
|
127
114
|
lastmod: n().optional(),
|
|
128
|
-
...
|
|
129
|
-
}),
|
|
115
|
+
...I
|
|
116
|
+
}), R = {
|
|
130
117
|
sourceId: t(),
|
|
131
118
|
remoteId: n(),
|
|
132
119
|
webUrl: n(),
|
|
@@ -134,29 +121,29 @@ var B = u({
|
|
|
134
121
|
fingerprint: n(),
|
|
135
122
|
lastSyncedAt: n(),
|
|
136
123
|
lastModified: n().optional(),
|
|
137
|
-
candidate:
|
|
138
|
-
media:
|
|
124
|
+
candidate: d({
|
|
125
|
+
media: h,
|
|
139
126
|
fingerprint: n(),
|
|
140
127
|
name: n(),
|
|
141
128
|
webUrl: n(),
|
|
142
129
|
path: n(),
|
|
143
130
|
lastModified: n().optional()
|
|
144
131
|
}).optional(),
|
|
145
|
-
...
|
|
146
|
-
},
|
|
147
|
-
provider: o(
|
|
148
|
-
...
|
|
149
|
-
}),
|
|
150
|
-
provider: o(
|
|
151
|
-
...
|
|
152
|
-
}),
|
|
153
|
-
provider:
|
|
132
|
+
...I
|
|
133
|
+
}, z = d({
|
|
134
|
+
provider: o(M.SharePoint),
|
|
135
|
+
...R
|
|
136
|
+
}), B = d({
|
|
137
|
+
provider: o(M.GoogleDrive),
|
|
138
|
+
...R
|
|
139
|
+
}), V = a((e) => e && typeof e == "object" && !Array.isArray(e) && !("provider" in e) ? {
|
|
140
|
+
provider: M.Web,
|
|
154
141
|
...e
|
|
155
|
-
} : e,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
])),
|
|
142
|
+
} : e, u("provider", [
|
|
143
|
+
L,
|
|
144
|
+
z,
|
|
145
|
+
B
|
|
146
|
+
])), H = [
|
|
160
147
|
"gateway-disabled",
|
|
161
148
|
"endpoint-off",
|
|
162
149
|
"model-unavailable",
|
|
@@ -164,7 +151,7 @@ var B = u({
|
|
|
164
151
|
"format-unsupported",
|
|
165
152
|
"credit-exhausted",
|
|
166
153
|
"transcription-off"
|
|
167
|
-
],
|
|
154
|
+
], U = [
|
|
168
155
|
"file-unreadable",
|
|
169
156
|
"file-protected",
|
|
170
157
|
"file-type-unsupported",
|
|
@@ -177,17 +164,17 @@ var B = u({
|
|
|
177
164
|
"audio-too-large",
|
|
178
165
|
"page-too-large"
|
|
179
166
|
];
|
|
180
|
-
[...
|
|
181
|
-
var
|
|
167
|
+
[...H, ...U];
|
|
168
|
+
var W = d({
|
|
182
169
|
reason: n().optional(),
|
|
183
170
|
status: i().optional(),
|
|
184
171
|
url: n().optional(),
|
|
185
172
|
limitBytes: i().optional(),
|
|
186
173
|
message: n().optional(),
|
|
187
174
|
at: n().optional()
|
|
188
|
-
}).loose(),
|
|
189
|
-
source:
|
|
190
|
-
media:
|
|
175
|
+
}).loose(), G = d({
|
|
176
|
+
source: V.optional(),
|
|
177
|
+
media: h.optional(),
|
|
191
178
|
title: n().optional(),
|
|
192
179
|
author: n().optional(),
|
|
193
180
|
description: n().optional(),
|
|
@@ -198,7 +185,7 @@ var Y = u({
|
|
|
198
185
|
producer: n().optional(),
|
|
199
186
|
creationDate: n().optional(),
|
|
200
187
|
modificationDate: n().optional(),
|
|
201
|
-
pageCount:
|
|
188
|
+
pageCount: v(e([i(), s(f())]), i(), (e) => Array.isArray(e) ? e.length : e).optional(),
|
|
202
189
|
encrypted: l().optional(),
|
|
203
190
|
characterCount: i().optional(),
|
|
204
191
|
lineCount: i().optional(),
|
|
@@ -220,128 +207,128 @@ var Y = u({
|
|
|
220
207
|
ocrPages: n().optional(),
|
|
221
208
|
ocrCost: i().optional(),
|
|
222
209
|
ocrError: n().optional(),
|
|
223
|
-
ocrFigures:
|
|
210
|
+
ocrFigures: d({
|
|
224
211
|
found: i(),
|
|
225
212
|
extracted: i(),
|
|
226
|
-
skipped:
|
|
213
|
+
skipped: p(n(), i())
|
|
227
214
|
}).optional(),
|
|
228
215
|
extractedMedia: s(n()).optional(),
|
|
229
216
|
chunksCount: i().optional(),
|
|
230
217
|
redundantChunksCount: i().optional(),
|
|
231
218
|
hasRedundantChunks: l().optional(),
|
|
232
|
-
searchIndexError:
|
|
233
|
-
conversionOptions:
|
|
234
|
-
tabular:
|
|
235
|
-
lastIndexError:
|
|
236
|
-
}).loose(),
|
|
219
|
+
searchIndexError: d({ at: n() }).optional(),
|
|
220
|
+
conversionOptions: j.optional(),
|
|
221
|
+
tabular: D.optional(),
|
|
222
|
+
lastIndexError: W.optional().catch(void 0)
|
|
223
|
+
}).loose(), K = /* @__PURE__ */ function(e) {
|
|
237
224
|
return e.File = "file", e.Url = "url", e.RevisedAnswer = "revised-answer", e.PlainText = "plain-text", e;
|
|
238
|
-
}({}),
|
|
225
|
+
}({}), q = d({
|
|
239
226
|
id: n(),
|
|
240
227
|
externalId: n().nullable(),
|
|
241
228
|
name: n(),
|
|
242
229
|
content: n(),
|
|
243
230
|
type: n(),
|
|
244
231
|
language: n(),
|
|
245
|
-
metadata:
|
|
232
|
+
metadata: p(n(), f()),
|
|
246
233
|
indexStatus: n(),
|
|
247
|
-
processedAt:
|
|
248
|
-
createdAt:
|
|
234
|
+
processedAt: m().nullable(),
|
|
235
|
+
createdAt: m(),
|
|
249
236
|
createdBy: n(),
|
|
250
|
-
updatedAt:
|
|
237
|
+
updatedAt: m(),
|
|
251
238
|
updatedBy: n(),
|
|
252
239
|
deleted: l(),
|
|
253
|
-
deletedAt:
|
|
240
|
+
deletedAt: m().nullable(),
|
|
254
241
|
deletedBy: n().nullable(),
|
|
255
242
|
organizationId: n(),
|
|
256
243
|
priority: i().int().min(1).max(5).default(3),
|
|
257
|
-
refreshInterval: c(
|
|
258
|
-
nextRefreshAt:
|
|
259
|
-
sourceProvider: c(
|
|
244
|
+
refreshInterval: c(P).nullable().optional(),
|
|
245
|
+
nextRefreshAt: m().nullable().optional(),
|
|
246
|
+
sourceProvider: c(M).nullable().optional()
|
|
260
247
|
}).extend({
|
|
261
|
-
type: c(
|
|
262
|
-
indexStatus: c(
|
|
263
|
-
metadata:
|
|
248
|
+
type: c(K),
|
|
249
|
+
indexStatus: c(O),
|
|
250
|
+
metadata: G,
|
|
264
251
|
chunksCount: i().optional(),
|
|
265
252
|
redundantChunksCount: i().optional(),
|
|
266
253
|
hasRedundantChunks: l().optional(),
|
|
267
|
-
searchStatus: c(
|
|
254
|
+
searchStatus: c(k).optional(),
|
|
268
255
|
agentIds: s(n()).optional(),
|
|
269
256
|
folderId: n().nullable().optional(),
|
|
270
257
|
folderPath: n().nullable().optional(),
|
|
271
258
|
deletedByName: n().nullable().optional()
|
|
272
259
|
});
|
|
273
|
-
|
|
274
|
-
document:
|
|
260
|
+
K.File, K.Url, K.PlainText, d({
|
|
261
|
+
document: q,
|
|
275
262
|
returnedToRoot: l()
|
|
276
|
-
}),
|
|
263
|
+
}), d({
|
|
277
264
|
count: i().int(),
|
|
278
265
|
retentionDays: i().int().min(0)
|
|
279
|
-
}),
|
|
266
|
+
}), d({ agentId: t() }), d({
|
|
280
267
|
purged: i().int(),
|
|
281
268
|
remaining: i().int()
|
|
282
|
-
}),
|
|
283
|
-
...
|
|
284
|
-
...
|
|
269
|
+
}), d({
|
|
270
|
+
..._.pagination(),
|
|
271
|
+
..._.sort([
|
|
285
272
|
"id",
|
|
286
273
|
"updatedAt",
|
|
287
274
|
"createdAt",
|
|
288
275
|
"name",
|
|
289
276
|
"deletedAt"
|
|
290
277
|
]),
|
|
291
|
-
...
|
|
278
|
+
..._.filters([
|
|
292
279
|
"type",
|
|
293
280
|
"language",
|
|
294
281
|
"agentId",
|
|
295
282
|
"indexStatus"
|
|
296
283
|
]),
|
|
297
284
|
"filter[deleted]": c(["true", "false"]).optional(),
|
|
298
|
-
...
|
|
299
|
-
...
|
|
285
|
+
..._.fullText(),
|
|
286
|
+
..._.ids(),
|
|
300
287
|
"filter[similarity]": n().optional(),
|
|
301
288
|
"filter[folderId]": n().optional(),
|
|
302
289
|
"filter[hasRedundantChunks]": n().optional(),
|
|
303
290
|
"filter[refreshInterval]": n().optional(),
|
|
304
291
|
"filter[sourceProvider]": n().optional(),
|
|
305
|
-
"filter[status]": c(
|
|
306
|
-
}),
|
|
307
|
-
type: c(
|
|
292
|
+
"filter[status]": c(A).optional()
|
|
293
|
+
}), d({
|
|
294
|
+
type: c(K).default(K.File),
|
|
308
295
|
name: n().min(1).max(255).optional(),
|
|
309
|
-
language: c(
|
|
296
|
+
language: c(g).optional(),
|
|
310
297
|
organizationId: n(),
|
|
311
298
|
agentIds: s(n()).min(1, "At least one agent is required"),
|
|
312
299
|
folderId: t().nullable().optional(),
|
|
313
|
-
media:
|
|
300
|
+
media: h.optional(),
|
|
314
301
|
url: r().optional(),
|
|
315
302
|
content: n().optional(),
|
|
316
|
-
metadata:
|
|
317
|
-
extractionStrategy: c(
|
|
318
|
-
browserEngine: c(
|
|
319
|
-
headers:
|
|
303
|
+
metadata: p(n(), f()).optional(),
|
|
304
|
+
extractionStrategy: c(b).optional(),
|
|
305
|
+
browserEngine: c(y).optional(),
|
|
306
|
+
headers: S.nullish().default([]),
|
|
320
307
|
aiDescriptionModel: n().optional(),
|
|
321
308
|
aiDescriptionPrompt: n().max(5e3).optional(),
|
|
322
309
|
forceOcr: l().default(!1),
|
|
323
310
|
pages: n().max(100).regex(/^\d+(\s*-\s*\d+)?(\s*,\s*\d+(\s*-\s*\d+)?)*$/).optional(),
|
|
324
311
|
priority: i().int().min(1).max(5).default(3).optional(),
|
|
325
|
-
refreshInterval: c(
|
|
312
|
+
refreshInterval: c(P).nullable().optional(),
|
|
326
313
|
syncSourceId: t().optional()
|
|
327
314
|
}).superRefine((e, t) => {
|
|
328
|
-
e.syncSourceId && e.type !==
|
|
315
|
+
e.syncSourceId && e.type !== K.Url && t.addIssue({
|
|
329
316
|
code: "custom",
|
|
330
317
|
params: { i18n: "errors.syncSourceUrlOnly" },
|
|
331
318
|
path: ["syncSourceId"]
|
|
332
|
-
}), e.type ===
|
|
319
|
+
}), e.type === K.File && !e.media ? t.addIssue({
|
|
333
320
|
code: "custom",
|
|
334
321
|
params: { i18n: "errors.required" },
|
|
335
322
|
path: ["media"]
|
|
336
|
-
}) : (e.type ===
|
|
323
|
+
}) : (e.type === K.Url && !e.url && t.addIssue({
|
|
337
324
|
code: "custom",
|
|
338
325
|
params: { i18n: "errors.required" },
|
|
339
326
|
path: ["url"]
|
|
340
|
-
}), e.refreshInterval && e.type !==
|
|
327
|
+
}), e.refreshInterval && e.type !== K.Url && t.addIssue({
|
|
341
328
|
code: "custom",
|
|
342
329
|
params: { i18n: "errors.refreshIntervalUrlOnly" },
|
|
343
330
|
path: ["refreshInterval"]
|
|
344
|
-
}), e.type ===
|
|
331
|
+
}), e.type === K.PlainText && !(e.name || e.language) && (e.name || t.addIssue({
|
|
345
332
|
code: "custom",
|
|
346
333
|
params: { i18n: "errors.required" },
|
|
347
334
|
path: ["name"]
|
|
@@ -350,28 +337,28 @@ Z.File, Z.Url, Z.PlainText, u({
|
|
|
350
337
|
params: { i18n: "errors.required" },
|
|
351
338
|
path: ["language"]
|
|
352
339
|
})));
|
|
353
|
-
}),
|
|
340
|
+
}), d({
|
|
354
341
|
id: n(),
|
|
355
342
|
organizationId: n(),
|
|
356
343
|
content: n().optional(),
|
|
357
344
|
name: n().min(1).max(255).optional(),
|
|
358
|
-
language: c(
|
|
345
|
+
language: c(g).optional(),
|
|
359
346
|
priority: i().int().min(1).max(5).optional(),
|
|
360
347
|
agentIds: s(n()).min(1).optional(),
|
|
361
|
-
metadata:
|
|
362
|
-
refreshInterval: c(
|
|
363
|
-
}),
|
|
348
|
+
metadata: p(n(), f()).optional(),
|
|
349
|
+
refreshInterval: c(P).nullable().optional()
|
|
350
|
+
}), d({ refreshInterval: c(P).nullable() }), d({
|
|
364
351
|
ids: s(t()).min(1).max(100),
|
|
365
|
-
refreshInterval: c(
|
|
366
|
-
}),
|
|
367
|
-
var
|
|
352
|
+
refreshInterval: c(P).nullable()
|
|
353
|
+
}), d({ ids: s(t()).min(1).max(100) });
|
|
354
|
+
var J = (e) => {
|
|
368
355
|
switch (e) {
|
|
369
|
-
case
|
|
370
|
-
case
|
|
371
|
-
case
|
|
356
|
+
case K.File: return "ri:file-line";
|
|
357
|
+
case K.Url: return "ri:link";
|
|
358
|
+
case K.RevisedAnswer: return "ri:feedback-line";
|
|
372
359
|
default: return "ri:input-method-line";
|
|
373
360
|
}
|
|
374
|
-
},
|
|
361
|
+
}, Y = (e) => {
|
|
375
362
|
switch ((e.startsWith(".") ? e.slice(1) : e).toLowerCase()) {
|
|
376
363
|
case "pdf": return "ri:file-pdf-2-line";
|
|
377
364
|
case "doc":
|
|
@@ -398,9 +385,9 @@ var te = (e) => {
|
|
|
398
385
|
case "7z": return "ri:file-zip-line";
|
|
399
386
|
default: return "ri:file-line";
|
|
400
387
|
}
|
|
401
|
-
},
|
|
388
|
+
}, X = (e) => (e ?? "").startsWith("image/"), Z = (e) => X(e) || e === "application/pdf", Q = (e) => {
|
|
402
389
|
let t = e ?? "";
|
|
403
|
-
return
|
|
390
|
+
return X(t) ? {
|
|
404
391
|
icon: "ri:image-line",
|
|
405
392
|
accent: "#ec4899",
|
|
406
393
|
label: "Image"
|
|
@@ -441,7 +428,7 @@ var te = (e) => {
|
|
|
441
428
|
accent: "#64748b",
|
|
442
429
|
label: "File"
|
|
443
430
|
};
|
|
444
|
-
},
|
|
445
|
-
export {
|
|
431
|
+
}, $ = (e) => Q(e).icon;
|
|
432
|
+
export { X as a, J as i, $ as n, Z as o, Y as r, K as t };
|
|
446
433
|
|
|
447
|
-
//# sourceMappingURL=Document-
|
|
434
|
+
//# sourceMappingURL=Document-Ds51J0AA.js.map
|