@8wave/ai-elements 0.126.0-beta.20 → 0.126.0-beta.21
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/ai-elements.es.js +2313 -2150
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.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/{PkChatbot-CxphD_YU.js → PkChatbot-Ck4H-uln.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-CxphD_YU.js.map → PkChatbot-Ck4H-uln.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotViewChat-SQLnQry2.js +1336 -0
- package/dist-vue/_chunks/PkChatbotViewChat-SQLnQry2.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-BbCnRdv4.js → PkChatbotViewConversations-D0vDYTyo.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-BbCnRdv4.js.map → PkChatbotViewConversations-D0vDYTyo.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-gwoZqmza.js → PkChatbotViewFiles-Bj5Nkzst.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-gwoZqmza.js.map → PkChatbotViewFiles-Bj5Nkzst.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-B7DroVld.js → PkChatbotViewProfile-GW0WuMOy.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-B7DroVld.js.map → PkChatbotViewProfile-GW0WuMOy.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-N0kWPuFh.js → PkFilePreview-CyA7aA5I.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreview-N0kWPuFh.js.map → PkFilePreview-CyA7aA5I.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-DqBESOIS.js → PkFilePreviewDialog-1Pp-5cpt.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-DqBESOIS.js.map → PkFilePreviewDialog-1Pp-5cpt.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BACnmIzY.js → createChatbotApiClient-Pb7_cU2s.js} +105 -75
- package/dist-vue/_chunks/createChatbotApiClient-Pb7_cU2s.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-B-WenuyB.js → useChatbotStore-ChrZVIDt.js} +1172 -1141
- package/dist-vue/_chunks/useChatbotStore-ChrZVIDt.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +76 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4290 -3576
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +78 -2
- package/dist-vue/packages/components/src/PkSchemaField.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkChatProjectDialog.d.ts +50 -0
- package/dist-vue/packages/components/src/chat/PkChatProjectMoveDialog.d.ts +23 -0
- package/dist-vue/packages/components/src/chat/PkChatSidebar.d.ts +5 -2
- package/dist-vue/packages/components/src/chat/PkChatSidebarConversationItem.d.ts +12 -0
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +9 -3
- package/dist-vue/packages/components/src/chat/PkChatbotFeedbackForm.d.ts +2 -2
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +20 -1
- package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/chatbot/useChatProjectsStore.d.ts +4005 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -6
- package/dist-vue/packages/models/src/schema/ChatProject.d.ts +10 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotViewChat-2J6g9Etg.js +0 -1307
- package/dist-vue/_chunks/PkChatbotViewChat-2J6g9Etg.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BACnmIzY.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-B-WenuyB.js.map +0 -1
|
@@ -2254,6 +2254,14 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2254
2254
|
initialize: (id: string, chatId: string) => Promise<void>;
|
|
2255
2255
|
loadConversations: (id: string) => Promise<void>;
|
|
2256
2256
|
loadMoreConversations: () => Promise<void>;
|
|
2257
|
+
projectsEnabled: globalThis.Ref<boolean, boolean>;
|
|
2258
|
+
chatAuthorId: globalThis.ComputedRef<string | undefined>;
|
|
2259
|
+
chatProjectId: globalThis.ComputedRef<string | undefined>;
|
|
2260
|
+
isReadOnlyChat: globalThis.ComputedRef<boolean>;
|
|
2261
|
+
describeChat: (chatId: string, details: {
|
|
2262
|
+
authorId?: string;
|
|
2263
|
+
projectId?: string | null;
|
|
2264
|
+
}) => void;
|
|
2257
2265
|
searchConversations: (search: string) => Promise<ChatRecord[]>;
|
|
2258
2266
|
loadChatFiles: () => Promise<void>;
|
|
2259
2267
|
refreshMessages: () => Promise<"pending" | "caught-up" | "indeterminate">;
|
|
@@ -2264,7 +2272,9 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2264
2272
|
handleSubmit: () => Promise<void>;
|
|
2265
2273
|
sendMessage: (text: string) => void;
|
|
2266
2274
|
stopGeneration: () => Promise<void>;
|
|
2267
|
-
startNewChat: (
|
|
2275
|
+
startNewChat: (options?: {
|
|
2276
|
+
projectId?: string;
|
|
2277
|
+
}) => Promise<string>;
|
|
2268
2278
|
regenerate: (options?: Parameters<({ messageId, ...options }?: {
|
|
2269
2279
|
messageId?: string;
|
|
2270
2280
|
} & ChatRequestOptions) => Promise<void>>[0]) => Promise<void>;
|
|
@@ -2293,7 +2303,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2293
2303
|
focusInput: () => void;
|
|
2294
2304
|
renameChatTitle: (chatId: string, title: string) => Promise<void>;
|
|
2295
2305
|
deleteChat: (chatId: string) => Promise<void>;
|
|
2296
|
-
}, "name" | "input" | "model" | "externalContext" | "gatewayOptions" | "fallbackModels" | "userId" | "agentId" | "headers" | "conversations" | "agentModel" | "agentType" | "baseUrl" | "pagePointer" | "basePath" | "agentInterface" | "agentTools" | "revisedAnswers" | "actionsInput" | "agentFileUpload" | "agentVoice" | "agentHostTools" | "hostToolRegistry" | "hostToolsPending" | "agentPageAccess" | "pageToolRegistry" | "pageFormsProvider" | "pageAction" | "hostStepTitles" | "hostStepChanges" | "pageControlActive" | "isWorking" | "hostConfirmation" | "pageAccessOff" | "agentConfirmations" | "agentSelectionActions" | "pagePointerStart" | "pagePointing" | "systemTheme" | "hideWelcomeMessage" | "isLoadingConversations" | "hasMoreConversations" | "isLoadingMoreConversations" | "chatFiles" | "isLoadingChatFiles" | "pendingAttachments" | "fileLimitError" | "isConversationBlocked" | "chatError" | "activeView" | "inputFocusRequest" | "messageFeedbacks" | "feedbackDialogMessage" | "isFeedbackSubmitting" | "isFeedbackSubmitted" | "feedbackSubmitError" | "isLeadSubmitted" | "isLoadingSubmitLead" | "submitLeadError">, Pick<{
|
|
2306
|
+
}, "name" | "input" | "model" | "externalContext" | "gatewayOptions" | "fallbackModels" | "userId" | "agentId" | "headers" | "conversations" | "agentModel" | "agentType" | "baseUrl" | "pagePointer" | "basePath" | "agentInterface" | "agentTools" | "revisedAnswers" | "actionsInput" | "agentFileUpload" | "agentVoice" | "agentHostTools" | "hostToolRegistry" | "hostToolsPending" | "agentPageAccess" | "pageToolRegistry" | "pageFormsProvider" | "pageAction" | "hostStepTitles" | "hostStepChanges" | "pageControlActive" | "isWorking" | "hostConfirmation" | "pageAccessOff" | "agentConfirmations" | "agentSelectionActions" | "pagePointerStart" | "pagePointing" | "systemTheme" | "hideWelcomeMessage" | "isLoadingConversations" | "hasMoreConversations" | "isLoadingMoreConversations" | "chatFiles" | "isLoadingChatFiles" | "pendingAttachments" | "fileLimitError" | "isConversationBlocked" | "chatError" | "activeView" | "inputFocusRequest" | "messageFeedbacks" | "feedbackDialogMessage" | "isFeedbackSubmitting" | "isFeedbackSubmitted" | "feedbackSubmitError" | "isLeadSubmitted" | "isLoadingSubmitLead" | "submitLeadError" | "projectsEnabled">, Pick<{
|
|
2297
2307
|
apiClient: globalThis.ComputedRef< ChatbotApiClient>;
|
|
2298
2308
|
baseUrl: globalThis.Ref<string, string>;
|
|
2299
2309
|
basePath: globalThis.Ref<string | undefined, string | undefined>;
|
|
@@ -4501,6 +4511,14 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4501
4511
|
initialize: (id: string, chatId: string) => Promise<void>;
|
|
4502
4512
|
loadConversations: (id: string) => Promise<void>;
|
|
4503
4513
|
loadMoreConversations: () => Promise<void>;
|
|
4514
|
+
projectsEnabled: globalThis.Ref<boolean, boolean>;
|
|
4515
|
+
chatAuthorId: globalThis.ComputedRef<string | undefined>;
|
|
4516
|
+
chatProjectId: globalThis.ComputedRef<string | undefined>;
|
|
4517
|
+
isReadOnlyChat: globalThis.ComputedRef<boolean>;
|
|
4518
|
+
describeChat: (chatId: string, details: {
|
|
4519
|
+
authorId?: string;
|
|
4520
|
+
projectId?: string | null;
|
|
4521
|
+
}) => void;
|
|
4504
4522
|
searchConversations: (search: string) => Promise<ChatRecord[]>;
|
|
4505
4523
|
loadChatFiles: () => Promise<void>;
|
|
4506
4524
|
refreshMessages: () => Promise<"pending" | "caught-up" | "indeterminate">;
|
|
@@ -4511,7 +4529,9 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4511
4529
|
handleSubmit: () => Promise<void>;
|
|
4512
4530
|
sendMessage: (text: string) => void;
|
|
4513
4531
|
stopGeneration: () => Promise<void>;
|
|
4514
|
-
startNewChat: (
|
|
4532
|
+
startNewChat: (options?: {
|
|
4533
|
+
projectId?: string;
|
|
4534
|
+
}) => Promise<string>;
|
|
4515
4535
|
regenerate: (options?: Parameters<({ messageId, ...options }?: {
|
|
4516
4536
|
messageId?: string;
|
|
4517
4537
|
} & ChatRequestOptions) => Promise<void>>[0]) => Promise<void>;
|
|
@@ -4540,7 +4560,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4540
4560
|
focusInput: () => void;
|
|
4541
4561
|
renameChatTitle: (chatId: string, title: string) => Promise<void>;
|
|
4542
4562
|
deleteChat: (chatId: string) => Promise<void>;
|
|
4543
|
-
}, "actions" | "messages" | "chat" | "apiClient" | "pageNoticeLevel" | "pageAccessAvailable" | "confirmationsAvailable" | "confirmationMode" | "pagePointerAvailable" | "isDark" | "isAttachmentLimitReached" | "localChatId" | "inputMessagePlaceholder" | "runningChatIds" | "backgroundAnswers" | "canQueue" | "queuedMessages">, Pick<{
|
|
4563
|
+
}, "actions" | "messages" | "chat" | "apiClient" | "pageNoticeLevel" | "pageAccessAvailable" | "confirmationsAvailable" | "confirmationMode" | "pagePointerAvailable" | "isDark" | "isAttachmentLimitReached" | "localChatId" | "inputMessagePlaceholder" | "runningChatIds" | "backgroundAnswers" | "canQueue" | "queuedMessages" | "chatAuthorId" | "chatProjectId" | "isReadOnlyChat">, Pick<{
|
|
4544
4564
|
apiClient: globalThis.ComputedRef< ChatbotApiClient>;
|
|
4545
4565
|
baseUrl: globalThis.Ref<string, string>;
|
|
4546
4566
|
basePath: globalThis.Ref<string | undefined, string | undefined>;
|
|
@@ -6748,6 +6768,14 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
6748
6768
|
initialize: (id: string, chatId: string) => Promise<void>;
|
|
6749
6769
|
loadConversations: (id: string) => Promise<void>;
|
|
6750
6770
|
loadMoreConversations: () => Promise<void>;
|
|
6771
|
+
projectsEnabled: globalThis.Ref<boolean, boolean>;
|
|
6772
|
+
chatAuthorId: globalThis.ComputedRef<string | undefined>;
|
|
6773
|
+
chatProjectId: globalThis.ComputedRef<string | undefined>;
|
|
6774
|
+
isReadOnlyChat: globalThis.ComputedRef<boolean>;
|
|
6775
|
+
describeChat: (chatId: string, details: {
|
|
6776
|
+
authorId?: string;
|
|
6777
|
+
projectId?: string | null;
|
|
6778
|
+
}) => void;
|
|
6751
6779
|
searchConversations: (search: string) => Promise<ChatRecord[]>;
|
|
6752
6780
|
loadChatFiles: () => Promise<void>;
|
|
6753
6781
|
refreshMessages: () => Promise<"pending" | "caught-up" | "indeterminate">;
|
|
@@ -6758,7 +6786,9 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
6758
6786
|
handleSubmit: () => Promise<void>;
|
|
6759
6787
|
sendMessage: (text: string) => void;
|
|
6760
6788
|
stopGeneration: () => Promise<void>;
|
|
6761
|
-
startNewChat: (
|
|
6789
|
+
startNewChat: (options?: {
|
|
6790
|
+
projectId?: string;
|
|
6791
|
+
}) => Promise<string>;
|
|
6762
6792
|
regenerate: (options?: Parameters<({ messageId, ...options }?: {
|
|
6763
6793
|
messageId?: string;
|
|
6764
6794
|
} & ChatRequestOptions) => Promise<void>>[0]) => Promise<void>;
|
|
@@ -6787,4 +6817,4 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
6787
6817
|
focusInput: () => void;
|
|
6788
6818
|
renameChatTitle: (chatId: string, title: string) => Promise<void>;
|
|
6789
6819
|
deleteChat: (chatId: string) => Promise<void>;
|
|
6790
|
-
}, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "voicePageTools" | "cancelVoicePageCalls" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "sendSelection" | "setConfirmationMode" | "openBackgroundAnswer" | "dismissBackgroundAnswer" | "removeQueuedMessage" | "editQueuedMessage" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadMoreConversations" | "searchConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "discardPendingAttachment" | "replacePendingAttachment" | "retryPendingAttachment" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "focusInput" | "renameChatTitle" | "deleteChat">>;
|
|
6820
|
+
}, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "voicePageTools" | "cancelVoicePageCalls" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "sendSelection" | "setConfirmationMode" | "openBackgroundAnswer" | "dismissBackgroundAnswer" | "removeQueuedMessage" | "editQueuedMessage" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadMoreConversations" | "describeChat" | "searchConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "discardPendingAttachment" | "replacePendingAttachment" | "retryPendingAttachment" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "focusInput" | "renameChatTitle" | "deleteChat">>;
|
|
@@ -40,6 +40,16 @@ export declare const ChatProjectMemberSchema: z.ZodObject<{
|
|
|
40
40
|
joinedAt: z.ZodCoercedDate<unknown>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export type ChatProjectMember = z.infer<typeof ChatProjectMemberSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* A user the owner can add: a member of the project's organization who uses
|
|
45
|
+
* its agent, not in the project yet.
|
|
46
|
+
*/
|
|
47
|
+
export declare const ChatProjectMemberCandidateSchema: z.ZodObject<{
|
|
48
|
+
userId: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
email: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type ChatProjectMemberCandidate = z.infer<typeof ChatProjectMemberCandidateSchema>;
|
|
43
53
|
export declare const ChatProjectCreateDtoSchema: z.ZodObject<{
|
|
44
54
|
name: z.ZodString;
|
|
45
55
|
instructions: z.ZodOptional<z.ZodString>;
|