@8wave/ai-elements 0.86.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/_chunks/{PkToolShowForm-Cn-H4cT2.js → PkToolShowForm-DxInI-SU.js} +2 -2
- package/dist/_chunks/PkToolShowForm-DxInI-SU.js.map +1 -0
- package/dist/ai-elements.es.js +3111 -3088
- 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-BIMT0wBz.js → PkChatbot-obI_7VAa.js} +5 -5
- package/dist-vue/_chunks/{PkChatbot-BIMT0wBz.js.map → PkChatbot-obI_7VAa.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Dc480HRd.js → PkChatbotMessages-BTVFyrnS.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotMessages-Dc480HRd.js.map → PkChatbotMessages-BTVFyrnS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-5XcFKLsL.js → PkChatbotViewChat-DdY7Xuqa.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewChat-5XcFKLsL.js.map → PkChatbotViewChat-DdY7Xuqa.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DtMC16ye.js → PkChatbotViewConversations-C8hV9Mwm.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-DtMC16ye.js.map → PkChatbotViewConversations-C8hV9Mwm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-rwxE8oAz.js → PkChatbotViewProfile-Dk02VeJS.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-rwxE8oAz.js.map → PkChatbotViewProfile-Dk02VeJS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-CO29-4g-.js → PkToolShowArtifact-LA-xP42x.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-CO29-4g-.js.map → PkToolShowArtifact-LA-xP42x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-D6pBcKlC.js → PkToolShowCalendarEvent-B0fvvNqq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-D6pBcKlC.js.map → PkToolShowCalendarEvent-B0fvvNqq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowComparison-9sZ-wZur.js → PkToolShowComparison-CkxbcdHx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowComparison-9sZ-wZur.js.map → PkToolShowComparison-CkxbcdHx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-Dpqd5tro.js → PkToolShowContactForm-Q-zWz2QT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-Dpqd5tro.js.map → PkToolShowContactForm-Q-zWz2QT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-BzMs4yST.js → PkToolShowEmail-DcV3KIBI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-BzMs4yST.js.map → PkToolShowEmail-DcV3KIBI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BwHOBNU6.js → PkToolShowForm-YwhD8noA.js} +3 -3
- package/dist-vue/_chunks/PkToolShowForm-YwhD8noA.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowImageGallery-AY3RDKm1.js → PkToolShowImageGallery-C1r8jvlG.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-AY3RDKm1.js.map → PkToolShowImageGallery-C1r8jvlG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowLocation-BNSkfQzK.js → PkToolShowLocation-BvKZaaJS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowLocation-BNSkfQzK.js.map → PkToolShowLocation-BvKZaaJS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMessage-BkeZrC7V.js → PkToolShowMessage-J5IWwUjF.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-BkeZrC7V.js.map → PkToolShowMessage-J5IWwUjF.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-DSKpE_xV.js → PkToolShowProductList-D4Fap8dC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-DSKpE_xV.js.map → PkToolShowProductList-D4Fap8dC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowQrCode-4VvbbzaY.js → PkToolShowQrCode-BUH5vIS8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowQrCode-4VvbbzaY.js.map → PkToolShowQrCode-BUH5vIS8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-OrX42JvT.js → PkToolShowSources-ChkWKhFd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-OrX42JvT.js.map → PkToolShowSources-ChkWKhFd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DwuQo5jJ.js → PkToolShowSuggestedReply-VVg-OVtH.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DwuQo5jJ.js.map → PkToolShowSuggestedReply-VVg-OVtH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DB2ZAV_5.js → PkToolShowWebPages-CbdH6FZQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DB2ZAV_5.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-cI6n0Ysp.js → dist-BN5P-Pmm.js} +2 -2
- package/dist-vue/_chunks/{dist-cI6n0Ysp.js.map → dist-BN5P-Pmm.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CsJGDQx2.js → dist-Bv_EQP56.js} +2 -2
- package/dist-vue/_chunks/{dist-CsJGDQx2.js.map → dist-Bv_EQP56.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DSYfmLHg.js → dist-C2-7Fze7.js} +2 -2
- package/dist-vue/_chunks/{dist-DSYfmLHg.js.map → dist-C2-7Fze7.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CR5js-m0.js → dist-CYAK1sKO.js} +2 -2
- package/dist-vue/_chunks/{dist-CR5js-m0.js.map → dist-CYAK1sKO.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CmgWe1rp.js → dist-Cact3-tk.js} +2 -2
- package/dist-vue/_chunks/{dist-CmgWe1rp.js.map → dist-Cact3-tk.js.map} +1 -1
- package/dist-vue/_chunks/{dist-mzC92jO7.js → dist-D7NafeHu.js} +4 -4
- package/dist-vue/_chunks/{dist-mzC92jO7.js.map → dist-D7NafeHu.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DFanv2QX.js → dist-DHQ8itnF.js} +2 -2
- package/dist-vue/_chunks/{dist-DFanv2QX.js.map → dist-DHQ8itnF.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BNvqaw4Y.js → dist-DTPBebYZ.js} +3 -3
- package/dist-vue/_chunks/{dist-BNvqaw4Y.js.map → dist-DTPBebYZ.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DW3ekwuQ.js → dist-DlXJzThT.js} +2 -2
- package/dist-vue/_chunks/{dist-DW3ekwuQ.js.map → dist-DlXJzThT.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CiIh8vh_.js → dist-_Aw9VPtK.js} +3 -3
- package/dist-vue/_chunks/{dist-CiIh8vh_.js.map → dist-_Aw9VPtK.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-Or_R6a3R.js → useChatbotStore-VxGMdCch.js} +1079 -1082
- package/dist-vue/_chunks/{useChatbotStore-Or_R6a3R.js.map → useChatbotStore-VxGMdCch.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +3 -0
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +4 -4
- package/dist-vue/apps/web-component/src/lib.d.ts +1 -0
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +4644 -8185
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +4 -0
- 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/composable/src/useJsonSchemaEditor.d.ts +3 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +14 -0
- package/dist-vue/style.css +1 -1
- package/package.json +4 -5
- package/dist/_chunks/PkToolShowForm-Cn-H4cT2.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowForm-BwHOBNU6.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-nfzYJAR8.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -14,6 +14,7 @@ var e = {
|
|
|
14
14
|
moveDown: "Move down",
|
|
15
15
|
reset: "Reset",
|
|
16
16
|
reorder: "Reorder",
|
|
17
|
+
addHint: "Press enter to add",
|
|
17
18
|
delete: "Delete",
|
|
18
19
|
zoomOut: "Zoom Out",
|
|
19
20
|
zoomIn: "Zoom In",
|
|
@@ -122,6 +123,7 @@ var e = {
|
|
|
122
123
|
details: "Details",
|
|
123
124
|
description: "Description",
|
|
124
125
|
const: "Constant",
|
|
126
|
+
enum: "Enum values (comma-separated)",
|
|
125
127
|
required: "Required",
|
|
126
128
|
mimeTypeImages: "Images",
|
|
127
129
|
mimeTypeDocuments: "Documents",
|
|
@@ -450,6 +452,7 @@ var e = {
|
|
|
450
452
|
moveDown: "Sposta giù",
|
|
451
453
|
reset: "Reset",
|
|
452
454
|
reorder: "Riordina",
|
|
455
|
+
addHint: "Premi invio per aggiungere",
|
|
453
456
|
delete: "Elimina",
|
|
454
457
|
zoomOut: "Riduci",
|
|
455
458
|
zoomIn: "Ingrandisci",
|
|
@@ -558,6 +561,7 @@ var e = {
|
|
|
558
561
|
details: "Dettagli",
|
|
559
562
|
description: "Descrizione",
|
|
560
563
|
const: "Costante",
|
|
564
|
+
enum: "Valori enum (separati da virgola)",
|
|
561
565
|
required: "Obbligatorio",
|
|
562
566
|
mimeTypeImages: "Immagini",
|
|
563
567
|
mimeTypeDocuments: "Documenti",
|
|
@@ -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>;
|
|
@@ -6,6 +6,7 @@ export interface SchemaField {
|
|
|
6
6
|
type: SchemaFieldType;
|
|
7
7
|
description: string;
|
|
8
8
|
constValue?: string;
|
|
9
|
+
enumValues?: string[];
|
|
9
10
|
required: boolean;
|
|
10
11
|
children: SchemaField[];
|
|
11
12
|
}
|
|
@@ -23,6 +24,7 @@ export declare function useJsonSchemaEditor(modelValue: Ref<JsonSchema | null |
|
|
|
23
24
|
type: SchemaFieldType;
|
|
24
25
|
description: string;
|
|
25
26
|
constValue?: string | undefined;
|
|
27
|
+
enumValues?: string[] | undefined;
|
|
26
28
|
required: boolean;
|
|
27
29
|
children: /*elided*/ any[];
|
|
28
30
|
}[], SchemaField[] | {
|
|
@@ -31,6 +33,7 @@ export declare function useJsonSchemaEditor(modelValue: Ref<JsonSchema | null |
|
|
|
31
33
|
type: SchemaFieldType;
|
|
32
34
|
description: string;
|
|
33
35
|
constValue?: string | undefined;
|
|
36
|
+
enumValues?: string[] | undefined;
|
|
34
37
|
required: boolean;
|
|
35
38
|
children: /*elided*/ any[];
|
|
36
39
|
}[]>;
|
|
@@ -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>;
|