@8wave/ai-elements 0.87.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-elements.es.js +3093 -3080
- 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/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-tFvlH12N.js → PkChatbot-obI_7VAa.js} +5 -5
- package/dist-vue/_chunks/{PkChatbot-tFvlH12N.js.map → PkChatbot-obI_7VAa.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Cw9yOYh2.js → PkChatbotMessages-BTVFyrnS.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotMessages-Cw9yOYh2.js.map → PkChatbotMessages-BTVFyrnS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-jhCgPRLx.js → PkChatbotViewChat-DdY7Xuqa.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-jhCgPRLx.js.map → PkChatbotViewChat-DdY7Xuqa.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-sVmftv8d.js → PkChatbotViewConversations-C8hV9Mwm.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-sVmftv8d.js.map → PkChatbotViewConversations-C8hV9Mwm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-C1w-xiU1.js → PkChatbotViewProfile-Dk02VeJS.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-C1w-xiU1.js.map → PkChatbotViewProfile-Dk02VeJS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-1TIqmmMX.js → PkToolShowArtifact-LA-xP42x.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-1TIqmmMX.js.map → PkToolShowArtifact-LA-xP42x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-CYnRZvNt.js → PkToolShowCalendarEvent-B0fvvNqq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-CYnRZvNt.js.map → PkToolShowCalendarEvent-B0fvvNqq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowComparison-BrXMiW89.js → PkToolShowComparison-CkxbcdHx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowComparison-BrXMiW89.js.map → PkToolShowComparison-CkxbcdHx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BBHPHg7r.js → PkToolShowContactForm-Q-zWz2QT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BBHPHg7r.js.map → PkToolShowContactForm-Q-zWz2QT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-CS9P20kh.js → PkToolShowEmail-DcV3KIBI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-CS9P20kh.js.map → PkToolShowEmail-DcV3KIBI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-0KHoL0kI.js → PkToolShowForm-YwhD8noA.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowForm-0KHoL0kI.js.map → PkToolShowForm-YwhD8noA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DkscAMgB.js → PkToolShowImageGallery-C1r8jvlG.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DkscAMgB.js.map → PkToolShowImageGallery-C1r8jvlG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowLocation-q398vKFd.js → PkToolShowLocation-BvKZaaJS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowLocation-q398vKFd.js.map → PkToolShowLocation-BvKZaaJS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMessage-BajfguXg.js → PkToolShowMessage-J5IWwUjF.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-BajfguXg.js.map → PkToolShowMessage-J5IWwUjF.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-DOdJ5im8.js → PkToolShowProductList-D4Fap8dC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-DOdJ5im8.js.map → PkToolShowProductList-D4Fap8dC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowQrCode-tYNOd6lJ.js → PkToolShowQrCode-BUH5vIS8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowQrCode-tYNOd6lJ.js.map → PkToolShowQrCode-BUH5vIS8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BrA6dwWu.js → PkToolShowSources-ChkWKhFd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-BrA6dwWu.js.map → PkToolShowSources-ChkWKhFd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DOY7Ru9m.js → PkToolShowSuggestedReply-VVg-OVtH.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DOY7Ru9m.js.map → PkToolShowSuggestedReply-VVg-OVtH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-76owZhMK.js → PkToolShowWebPages-CbdH6FZQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-76owZhMK.js.map → PkToolShowWebPages-CbdH6FZQ.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-nfzYJAR8.js → createChatbotApiClient-DWRtOu7t.js} +386 -383
- package/dist-vue/_chunks/createChatbotApiClient-DWRtOu7t.js.map +1 -0
- package/dist-vue/_chunks/{dist-BSJCZVGe.js → dist-BN5P-Pmm.js} +2 -2
- package/dist-vue/_chunks/{dist-BSJCZVGe.js.map → dist-BN5P-Pmm.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CUn2C8Pr.js → dist-Bv_EQP56.js} +2 -2
- package/dist-vue/_chunks/{dist-CUn2C8Pr.js.map → dist-Bv_EQP56.js.map} +1 -1
- package/dist-vue/_chunks/{dist-13JQnKdr.js → dist-C2-7Fze7.js} +2 -2
- package/dist-vue/_chunks/{dist-13JQnKdr.js.map → dist-C2-7Fze7.js.map} +1 -1
- package/dist-vue/_chunks/{dist-F_SO4sD9.js → dist-CYAK1sKO.js} +2 -2
- package/dist-vue/_chunks/{dist-F_SO4sD9.js.map → dist-CYAK1sKO.js.map} +1 -1
- package/dist-vue/_chunks/{dist-1XsQJvY2.js → dist-Cact3-tk.js} +2 -2
- package/dist-vue/_chunks/{dist-1XsQJvY2.js.map → dist-Cact3-tk.js.map} +1 -1
- package/dist-vue/_chunks/{dist-HGbNOlPU.js → dist-D7NafeHu.js} +4 -4
- package/dist-vue/_chunks/{dist-HGbNOlPU.js.map → dist-D7NafeHu.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BibPhIx9.js → dist-DHQ8itnF.js} +2 -2
- package/dist-vue/_chunks/{dist-BibPhIx9.js.map → dist-DHQ8itnF.js.map} +1 -1
- package/dist-vue/_chunks/{dist-C36I45tf.js → dist-DTPBebYZ.js} +3 -3
- package/dist-vue/_chunks/{dist-C36I45tf.js.map → dist-DTPBebYZ.js.map} +1 -1
- package/dist-vue/_chunks/{dist-Bo0xZq3l.js → dist-DlXJzThT.js} +2 -2
- package/dist-vue/_chunks/{dist-Bo0xZq3l.js.map → dist-DlXJzThT.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DIxP72nB.js → dist-_Aw9VPtK.js} +3 -3
- package/dist-vue/_chunks/{dist-DIxP72nB.js.map → dist-_Aw9VPtK.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DO4-QCQt.js → useChatbotStore-VxGMdCch.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-DO4-QCQt.js.map → useChatbotStore-VxGMdCch.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +4 -4
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +51 -44
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/ability/src/index.d.ts +1 -2
- package/dist-vue/packages/ability/src/types.d.ts +10 -1
- package/dist-vue/packages/auth/src/index.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkChatSidebarConversationItem.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkChatbotAuth.d.ts +10 -10
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/Agent.d.ts +14 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/createChatbotApiClient-nfzYJAR8.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InferSubjects, ForcedSubject, Ability as PureAbility } from '@casl/ability';
|
|
2
|
-
import { Action, Capability, Subject } from './types';
|
|
3
|
-
import { Session } from '../../auth/src';
|
|
2
|
+
import { Action, Capability, Subject, Session } from './types';
|
|
4
3
|
import { MongoQueryTopLevelOperators } from '@ucast/mongo2js';
|
|
5
4
|
import { Statements, RoleInput, Role, ExactRoleStatements } from 'better-auth/plugins';
|
|
6
5
|
export declare const OrganizationRoles: {
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { MongoQuery } from '@ucast/mongo2js';
|
|
2
|
-
|
|
2
|
+
export type Session = {
|
|
3
|
+
session: {
|
|
4
|
+
activeOrganizationId?: string | null;
|
|
5
|
+
organizationRole?: string | null;
|
|
6
|
+
};
|
|
7
|
+
user: {
|
|
8
|
+
id?: string;
|
|
9
|
+
role?: string | null;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
3
12
|
export declare enum Audience {
|
|
4
13
|
Backoffice = "backoffice",
|
|
5
14
|
Frontoffice = "frontoffice",
|
|
@@ -1050,7 +1050,7 @@ export declare const config: {
|
|
|
1050
1050
|
$Infer: {
|
|
1051
1051
|
body: {
|
|
1052
1052
|
permissions: {
|
|
1053
|
-
readonly user?: ("update" | "delete" | "
|
|
1053
|
+
readonly user?: ("create" | "update" | "delete" | "impersonate" | "ban" | "get" | "list" | "set-role" | "impersonate-admins" | "set-password" | "set-email")[] | undefined;
|
|
1054
1054
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1055
1055
|
};
|
|
1056
1056
|
} & {
|
|
@@ -2732,7 +2732,7 @@ export declare const auth: Auth<{
|
|
|
2732
2732
|
$Infer: {
|
|
2733
2733
|
body: {
|
|
2734
2734
|
permissions: {
|
|
2735
|
-
readonly user?: ("update" | "delete" | "
|
|
2735
|
+
readonly user?: ("create" | "update" | "delete" | "impersonate" | "ban" | "get" | "list" | "set-role" | "impersonate-admins" | "set-password" | "set-email")[] | undefined;
|
|
2736
2736
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
2737
2737
|
};
|
|
2738
2738
|
} & {
|
|
@@ -10,17 +10,17 @@ type __VLS_ModelProps = {
|
|
|
10
10
|
};
|
|
11
11
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
12
|
declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
-
select: () => any;
|
|
14
13
|
delete: () => any;
|
|
15
14
|
"update:editingTitle": (value: string) => any;
|
|
15
|
+
select: () => any;
|
|
16
16
|
"edit-start": () => any;
|
|
17
17
|
"edit-confirm": () => any;
|
|
18
18
|
"edit-cancel": () => any;
|
|
19
19
|
"edit-keydown": (event: KeyboardEvent) => any;
|
|
20
20
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
-
onSelect?: (() => any) | undefined;
|
|
22
21
|
onDelete?: (() => any) | undefined;
|
|
23
22
|
"onUpdate:editingTitle"?: ((value: string) => any) | undefined;
|
|
23
|
+
onSelect?: (() => any) | undefined;
|
|
24
24
|
"onEdit-start"?: (() => any) | undefined;
|
|
25
25
|
"onEdit-confirm"?: (() => any) | undefined;
|
|
26
26
|
"onEdit-cancel"?: (() => any) | undefined;
|
|
@@ -24,16 +24,16 @@ declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, C
|
|
|
24
24
|
message: string;
|
|
25
25
|
} | undefined) => any;
|
|
26
26
|
} & {
|
|
27
|
-
"sign-in": (payload: {
|
|
28
|
-
email: string;
|
|
29
|
-
password: string;
|
|
30
|
-
rememberMe: boolean;
|
|
31
|
-
}) => any;
|
|
32
27
|
"update:errorMessage": (message?: string | undefined) => any;
|
|
33
28
|
"update:success": (value?: {
|
|
34
29
|
title: string;
|
|
35
30
|
message: string;
|
|
36
31
|
} | undefined) => any;
|
|
32
|
+
"sign-in": (payload: {
|
|
33
|
+
email: string;
|
|
34
|
+
password: string;
|
|
35
|
+
rememberMe: boolean;
|
|
36
|
+
}) => any;
|
|
37
37
|
"sign-up": (payload: {
|
|
38
38
|
email: string;
|
|
39
39
|
password: string;
|
|
@@ -44,16 +44,16 @@ declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, C
|
|
|
44
44
|
}) => any;
|
|
45
45
|
social: (provider: "google" | "microsoft") => any;
|
|
46
46
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
47
|
-
"onSign-in"?: ((payload: {
|
|
48
|
-
email: string;
|
|
49
|
-
password: string;
|
|
50
|
-
rememberMe: boolean;
|
|
51
|
-
}) => any) | undefined;
|
|
52
47
|
"onUpdate:errorMessage"?: ((message?: string | undefined) => any) | undefined;
|
|
53
48
|
"onUpdate:success"?: ((value?: {
|
|
54
49
|
title: string;
|
|
55
50
|
message: string;
|
|
56
51
|
} | undefined) => any) | undefined;
|
|
52
|
+
"onSign-in"?: ((payload: {
|
|
53
|
+
email: string;
|
|
54
|
+
password: string;
|
|
55
|
+
rememberMe: boolean;
|
|
56
|
+
}) => any) | undefined;
|
|
57
57
|
"onSign-up"?: ((payload: {
|
|
58
58
|
email: string;
|
|
59
59
|
password: string;
|
|
@@ -1416,7 +1416,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
1416
1416
|
navigate: (view: ChatbotView) => void;
|
|
1417
1417
|
renameChatTitle: (chatId: string, title: string) => Promise<void>;
|
|
1418
1418
|
deleteChat: (chatId: string) => Promise<void>;
|
|
1419
|
-
}, "name" | "input" | "model" | "gatewayOptions" | "fallbackModels" | "agentId" | "headers" | "conversations" | "externalContext" | "userId" | "agentModel" | "agentType" | "
|
|
1419
|
+
}, "name" | "input" | "model" | "gatewayOptions" | "fallbackModels" | "agentId" | "headers" | "conversations" | "externalContext" | "userId" | "agentModel" | "agentType" | "baseUrl" | "basePath" | "agentInterface" | "agentTools" | "revisedAnswers" | "actionsInput" | "agentFileUpload" | "systemTheme" | "hideWelcomeMessage" | "isLoadingConversations" | "pendingAttachments" | "isConversationBlocked" | "chatError" | "activeView" | "messageFeedbacks" | "feedbackDialogMessage" | "isFeedbackSubmitting" | "isFeedbackSubmitted" | "feedbackSubmitError" | "isLeadSubmitted" | "isLoadingSubmitLead" | "submitLeadError">, Pick<{
|
|
1420
1420
|
apiClient: globalThis.ComputedRef< ChatbotApiClient>;
|
|
1421
1421
|
baseUrl: globalThis.Ref<string, string>;
|
|
1422
1422
|
basePath: globalThis.Ref<string | undefined, string | undefined>;
|
|
@@ -2265,6 +2265,20 @@ export declare const AgentAccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2265
2265
|
}, z.core.$strip>;
|
|
2266
2266
|
}, z.core.$strip>], "requiresAuth">;
|
|
2267
2267
|
export type AgentAccess = z.infer<typeof AgentAccessSchema>;
|
|
2268
|
+
/**
|
|
2269
|
+
* Per-member allowlist of `organization`-visibility agents. An empty `agentIds`
|
|
2270
|
+
* means "no restriction" — the member can use every organization agent (the
|
|
2271
|
+
* default). A non-empty list limits the member to those agents. Owners/admins
|
|
2272
|
+
* always bypass it. `id` is the member's user id, so the resource can be
|
|
2273
|
+
* cached/updated as a keyed entity by the frontend store. Used as both the GET
|
|
2274
|
+
* response and the PUT body of the backoffice `/members/:userId/agent-access`
|
|
2275
|
+
* endpoint.
|
|
2276
|
+
*/
|
|
2277
|
+
export declare const MemberAgentAccessSchema: z.ZodObject<{
|
|
2278
|
+
id: z.ZodUUID;
|
|
2279
|
+
agentIds: z.ZodArray<z.ZodUUID>;
|
|
2280
|
+
}, z.core.$strip>;
|
|
2281
|
+
export type MemberAgentAccess = z.infer<typeof MemberAgentAccessSchema>;
|
|
2268
2282
|
export declare const AgentsQuerystringSchema: z.ZodObject<{
|
|
2269
2283
|
ids: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2270
2284
|
"filter[fullText]": z.ZodOptional<z.ZodString>;
|