@wix/auto_sdk_forms_chat-settings 1.0.27 → 1.0.29

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.
Files changed (46) hide show
  1. package/build/cjs/index.d.ts +3 -3
  2. package/build/cjs/index.js +32 -42
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +4 -4
  5. package/build/cjs/index.typings.js +12 -25
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.js +12 -25
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/es/index.d.mts +3 -3
  10. package/build/es/index.mjs +32 -42
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +4 -4
  13. package/build/es/index.typings.mjs +12 -25
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.mjs +12 -25
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +3 -3
  18. package/build/internal/cjs/index.typings.d.ts +4 -4
  19. package/build/internal/es/index.d.mts +3 -3
  20. package/build/internal/es/index.typings.d.mts +4 -4
  21. package/package.json +5 -12
  22. package/build/cjs/schemas.d.ts +0 -159
  23. package/build/cjs/schemas.js +0 -320
  24. package/build/cjs/schemas.js.map +0 -1
  25. package/build/es/schemas.d.mts +0 -159
  26. package/build/es/schemas.mjs +0 -274
  27. package/build/es/schemas.mjs.map +0 -1
  28. package/build/internal/cjs/index.js +0 -651
  29. package/build/internal/cjs/index.js.map +0 -1
  30. package/build/internal/cjs/index.typings.js +0 -517
  31. package/build/internal/cjs/index.typings.js.map +0 -1
  32. package/build/internal/cjs/meta.js +0 -428
  33. package/build/internal/cjs/meta.js.map +0 -1
  34. package/build/internal/cjs/schemas.d.ts +0 -159
  35. package/build/internal/cjs/schemas.js +0 -320
  36. package/build/internal/cjs/schemas.js.map +0 -1
  37. package/build/internal/es/index.mjs +0 -616
  38. package/build/internal/es/index.mjs.map +0 -1
  39. package/build/internal/es/index.typings.mjs +0 -484
  40. package/build/internal/es/index.typings.mjs.map +0 -1
  41. package/build/internal/es/meta.mjs +0 -394
  42. package/build/internal/es/meta.mjs.map +0 -1
  43. package/build/internal/es/schemas.d.mts +0 -159
  44. package/build/internal/es/schemas.mjs +0 -274
  45. package/build/internal/es/schemas.mjs.map +0 -1
  46. package/schemas/package.json +0 -3
@@ -11,7 +11,7 @@ interface CreateChatSettingsSignature {
11
11
  * @param - Chat settings to be created.
12
12
  * @returns Created chat settings.
13
13
  */
14
- (chatSettings: NonNullablePaths<ChatSettings, `_id`, 2>): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>>;
14
+ (chatSettings: NonNullablePaths<ChatSettings, `_id`, 0>): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 0>>;
15
15
  }
16
16
  declare function updateChatSettings$1(httpClient: HttpClient): UpdateChatSettingsSignature;
17
17
  interface UpdateChatSettingsSignature {
@@ -22,7 +22,7 @@ interface UpdateChatSettingsSignature {
22
22
  * @param - The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.
23
23
  * @returns Updated chat settings.
24
24
  */
25
- (_id: string, chatSettings: UpdateChatSettings): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>>;
25
+ (_id: string, chatSettings: UpdateChatSettings): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 0>>;
26
26
  }
27
27
  declare function deleteChatSettings$1(httpClient: HttpClient): DeleteChatSettingsSignature;
28
28
  interface DeleteChatSettingsSignature {
@@ -39,7 +39,7 @@ interface GetChatSettingsSignature {
39
39
  * @param - Chat settings ID.
40
40
  * @returns Retrieved chat settings.
41
41
  */
42
- (chatSettingsId: string): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>>;
42
+ (chatSettingsId: string): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 0>>;
43
43
  }
44
44
  declare const onChatSettingsCreated$1: EventDefinition<ChatSettingsCreatedEnvelope, "wix.forms.ai.v1.chat_settings_created">;
45
45
  declare const onChatSettingsDeleted$1: EventDefinition<ChatSettingsDeletedEnvelope, "wix.forms.ai.v1.chat_settings_deleted">;
@@ -499,7 +499,7 @@ declare function onChatSettingsUpdated(handler: (event: ChatSettingsUpdatedEnvel
499
499
  * @returns Created chat settings.
500
500
  * @fqn wix.forms.ai.v1.ChatSettingsService.CreateChatSettings
501
501
  */
502
- declare function createChatSettings(chatSettings: NonNullablePaths<ChatSettings, `_id`, 2>): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>>;
502
+ declare function createChatSettings(chatSettings: NonNullablePaths<ChatSettings, `_id`, 0>): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 0>>;
503
503
  /**
504
504
  * Updates a chat settings entity.
505
505
  *
@@ -513,7 +513,7 @@ declare function createChatSettings(chatSettings: NonNullablePaths<ChatSettings,
513
513
  * @returns Updated chat settings.
514
514
  * @fqn wix.forms.ai.v1.ChatSettingsService.UpdateChatSettings
515
515
  */
516
- declare function updateChatSettings(_id: string, chatSettings: UpdateChatSettings): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>>;
516
+ declare function updateChatSettings(_id: string, chatSettings: UpdateChatSettings): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 0>>;
517
517
  interface UpdateChatSettings {
518
518
  /**
519
519
  * The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.
@@ -589,7 +589,7 @@ declare function deleteChatSettings(chatSettingsId: string): Promise<void>;
589
589
  * @returns Retrieved chat settings.
590
590
  * @fqn wix.forms.ai.v1.ChatSettingsService.GetChatSettings
591
591
  */
592
- declare function getChatSettings(chatSettingsId: string): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>>;
592
+ declare function getChatSettings(chatSettingsId: string): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 0>>;
593
593
  /**
594
594
  * Retrieves a list of chat settings entities given the provided paging, filtering, and sorting.
595
595
  *
@@ -662,7 +662,7 @@ interface ChatSettingsQueryBuilder {
662
662
  * @fqn wix.forms.ai.v1.ChatSettingsService.QueryChatSettings
663
663
  * @requiredField query
664
664
  */
665
- declare function typedQueryChatSettings(query: ChatSettingsQuery): Promise<NonNullablePaths<QueryChatSettingsResponse, `chatSettings` | `chatSettings.${number}._id` | `chatSettings.${number}.personality`, 4>>;
665
+ declare function typedQueryChatSettings(query: ChatSettingsQuery): Promise<NonNullablePaths<QueryChatSettingsResponse, `chatSettings` | `chatSettings.${number}._id` | `chatSettings.${number}.personality`, 2>>;
666
666
  interface ChatSettingsQuerySpec extends QuerySpec {
667
667
  paging: 'cursor';
668
668
  wql: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_forms_chat-settings",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
- "@wix/sdk-runtime": "^1.0.19",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
32
+ "@wix/sdk-runtime": "^1.0.24",
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.forms.ai.v1.chat_settings"
58
51
  }
59
52
  },
60
- "falconPackageHash": "b53d3d70480419f5ecaa5c81dc7c9625048114ffcf2ab7639b37fbf9"
53
+ "falconPackageHash": "c0b80c7c2aea329769bed2168b16ae395f4a05535b435d672dbf6d3f"
61
54
  }
@@ -1,159 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const CreateChatSettingsRequest: z.ZodObject<{
4
- chatSettings: z.ZodObject<{
5
- _id: z.ZodString;
6
- greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
- chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
8
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
10
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
- summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12
- extendedFields: z.ZodOptional<z.ZodObject<{
13
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
14
- }, z.core.$strip>>;
15
- manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
16
- personality: z.ZodOptional<z.ZodEnum<{
17
- PROFESSIONAL: "PROFESSIONAL";
18
- FRIENDLY: "FRIENDLY";
19
- PLAYFUL: "PLAYFUL";
20
- DIRECT: "DIRECT";
21
- }>>;
22
- }, z.core.$strip>;
23
- }, z.core.$strip>;
24
- declare const CreateChatSettingsResponse: z.ZodObject<{
25
- _id: z.ZodOptional<z.ZodString>;
26
- greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
- chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
28
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
30
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
31
- summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
- extendedFields: z.ZodOptional<z.ZodObject<{
33
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
34
- }, z.core.$strip>>;
35
- manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
36
- personality: z.ZodOptional<z.ZodEnum<{
37
- PROFESSIONAL: "PROFESSIONAL";
38
- FRIENDLY: "FRIENDLY";
39
- PLAYFUL: "PLAYFUL";
40
- DIRECT: "DIRECT";
41
- }>>;
42
- }, z.core.$strip>;
43
- declare const UpdateChatSettingsRequest: z.ZodObject<{
44
- _id: z.ZodString;
45
- chatSettings: z.ZodObject<{
46
- _id: z.ZodOptional<z.ZodString>;
47
- greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48
- chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
49
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
51
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
52
- summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
- extendedFields: z.ZodOptional<z.ZodObject<{
54
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
55
- }, z.core.$strip>>;
56
- manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
57
- personality: z.ZodOptional<z.ZodEnum<{
58
- PROFESSIONAL: "PROFESSIONAL";
59
- FRIENDLY: "FRIENDLY";
60
- PLAYFUL: "PLAYFUL";
61
- DIRECT: "DIRECT";
62
- }>>;
63
- }, z.core.$strip>;
64
- }, z.core.$strip>;
65
- declare const UpdateChatSettingsResponse: z.ZodObject<{
66
- _id: z.ZodOptional<z.ZodString>;
67
- greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
- chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
69
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
71
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
72
- summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
- extendedFields: z.ZodOptional<z.ZodObject<{
74
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
75
- }, z.core.$strip>>;
76
- manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
77
- personality: z.ZodOptional<z.ZodEnum<{
78
- PROFESSIONAL: "PROFESSIONAL";
79
- FRIENDLY: "FRIENDLY";
80
- PLAYFUL: "PLAYFUL";
81
- DIRECT: "DIRECT";
82
- }>>;
83
- }, z.core.$strip>;
84
- declare const DeleteChatSettingsRequest: z.ZodObject<{
85
- chatSettingsId: z.ZodString;
86
- }, z.core.$strip>;
87
- declare const DeleteChatSettingsResponse: z.ZodObject<{}, z.core.$strip>;
88
- declare const GetChatSettingsRequest: z.ZodObject<{
89
- chatSettingsId: z.ZodString;
90
- }, z.core.$strip>;
91
- declare const GetChatSettingsResponse: z.ZodObject<{
92
- _id: z.ZodOptional<z.ZodString>;
93
- greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
94
- chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
95
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
96
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
97
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
98
- summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
99
- extendedFields: z.ZodOptional<z.ZodObject<{
100
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
101
- }, z.core.$strip>>;
102
- manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
103
- personality: z.ZodOptional<z.ZodEnum<{
104
- PROFESSIONAL: "PROFESSIONAL";
105
- FRIENDLY: "FRIENDLY";
106
- PLAYFUL: "PLAYFUL";
107
- DIRECT: "DIRECT";
108
- }>>;
109
- }, z.core.$strip>;
110
- declare const QueryChatSettingsRequest: z.ZodObject<{
111
- query: z.ZodIntersection<z.ZodObject<{
112
- filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
113
- sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
- fieldName: z.ZodOptional<z.ZodString>;
115
- order: z.ZodOptional<z.ZodEnum<{
116
- ASC: "ASC";
117
- DESC: "DESC";
118
- }>>;
119
- }, z.core.$strip>>>;
120
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
121
- cursorPaging: z.ZodOptional<z.ZodNever>;
122
- }, z.core.$strip>, z.ZodObject<{
123
- cursorPaging: z.ZodObject<{
124
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
125
- cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
126
- }, z.core.$strip>;
127
- }, z.core.$strip>]>>;
128
- }, z.core.$strip>;
129
- declare const QueryChatSettingsResponse: z.ZodObject<{
130
- chatSettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
131
- _id: z.ZodOptional<z.ZodString>;
132
- greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
- chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
134
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
135
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
136
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
137
- summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
138
- extendedFields: z.ZodOptional<z.ZodObject<{
139
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
140
- }, z.core.$strip>>;
141
- manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
142
- personality: z.ZodOptional<z.ZodEnum<{
143
- PROFESSIONAL: "PROFESSIONAL";
144
- FRIENDLY: "FRIENDLY";
145
- PLAYFUL: "PLAYFUL";
146
- DIRECT: "DIRECT";
147
- }>>;
148
- }, z.core.$strip>>>;
149
- pagingMetadata: z.ZodOptional<z.ZodObject<{
150
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
151
- cursors: z.ZodOptional<z.ZodObject<{
152
- next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
- prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
154
- }, z.core.$strip>>;
155
- hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
156
- }, z.core.$strip>>;
157
- }, z.core.$strip>;
158
-
159
- export { CreateChatSettingsRequest, CreateChatSettingsResponse, DeleteChatSettingsRequest, DeleteChatSettingsResponse, GetChatSettingsRequest, GetChatSettingsResponse, QueryChatSettingsRequest, QueryChatSettingsResponse, UpdateChatSettingsRequest, UpdateChatSettingsResponse };
@@ -1,320 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // schemas.ts
31
- var schemas_exports = {};
32
- __export(schemas_exports, {
33
- CreateChatSettingsRequest: () => CreateChatSettingsRequest,
34
- CreateChatSettingsResponse: () => CreateChatSettingsResponse,
35
- DeleteChatSettingsRequest: () => DeleteChatSettingsRequest,
36
- DeleteChatSettingsResponse: () => DeleteChatSettingsResponse,
37
- GetChatSettingsRequest: () => GetChatSettingsRequest,
38
- GetChatSettingsResponse: () => GetChatSettingsResponse,
39
- QueryChatSettingsRequest: () => QueryChatSettingsRequest,
40
- QueryChatSettingsResponse: () => QueryChatSettingsResponse,
41
- UpdateChatSettingsRequest: () => UpdateChatSettingsRequest,
42
- UpdateChatSettingsResponse: () => UpdateChatSettingsResponse
43
- });
44
- module.exports = __toCommonJS(schemas_exports);
45
-
46
- // src/forms-ai-v1-chat-settings-chat-settings.schemas.ts
47
- var z = __toESM(require("zod"));
48
- var CreateChatSettingsRequest = /* @__PURE__ */ z.object({
49
- chatSettings: z.object({
50
- _id: z.string().describe(
51
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
52
- ).regex(
53
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
54
- "Must be a valid GUID"
55
- ),
56
- greetingMessage: z.string().describe(
57
- "Custom greeting message displayed when a visitor opens the AI chat."
58
- ).max(50).optional().nullable(),
59
- chatEnabled: z.boolean().describe(
60
- "Whether AI chat is enabled for this form.\n\nDefault: `true`"
61
- ).optional().nullable(),
62
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
63
- "Revision number, which increments by 1 each time the chat settings are updated.\nTo prevent conflicting changes, the current revision must be passed when updating the chat settings."
64
- ).optional().nullable(),
65
- _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
66
- _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
67
- summaryMessage: z.string().describe(
68
- "Message that summarizes the contents of the form. Appears after the greeting message."
69
- ).max(255).optional().nullable(),
70
- extendedFields: z.object({
71
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
72
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
73
- ).optional()
74
- }).describe("Extended fields.").optional(),
75
- manualSummary: z.boolean().describe(
76
- "Whether the summary message is manually set or AI-generated.\nWhen `false` the summary message is automatically generated by AI when the chat settings are saved.\nWhen `true`, the summary message can be manually set and won't be overwritten by AI.\n\nDefault: `false`"
77
- ).optional().nullable(),
78
- personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).optional()
79
- }).describe("Chat settings to be created.")
80
- });
81
- var CreateChatSettingsResponse = /* @__PURE__ */ z.object({
82
- _id: z.string().describe(
83
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
84
- ).regex(
85
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
86
- "Must be a valid GUID"
87
- ).optional(),
88
- greetingMessage: z.string().describe(
89
- "Custom greeting message displayed when a visitor opens the AI chat."
90
- ).max(50).optional().nullable(),
91
- chatEnabled: z.boolean().describe("Whether AI chat is enabled for this form.\n\nDefault: `true`").optional().nullable(),
92
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
93
- "Revision number, which increments by 1 each time the chat settings are updated.\nTo prevent conflicting changes, the current revision must be passed when updating the chat settings."
94
- ).optional().nullable(),
95
- _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
96
- _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
97
- summaryMessage: z.string().describe(
98
- "Message that summarizes the contents of the form. Appears after the greeting message."
99
- ).max(255).optional().nullable(),
100
- extendedFields: z.object({
101
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
102
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
103
- ).optional()
104
- }).describe("Extended fields.").optional(),
105
- manualSummary: z.boolean().describe(
106
- "Whether the summary message is manually set or AI-generated.\nWhen `false` the summary message is automatically generated by AI when the chat settings are saved.\nWhen `true`, the summary message can be manually set and won't be overwritten by AI.\n\nDefault: `false`"
107
- ).optional().nullable(),
108
- personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).describe(
109
- "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
110
- ).optional()
111
- });
112
- var UpdateChatSettingsRequest = /* @__PURE__ */ z.object({
113
- _id: z.string().describe(
114
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
115
- ).regex(
116
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
117
- "Must be a valid GUID"
118
- ),
119
- chatSettings: z.object({
120
- _id: z.string().describe(
121
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
122
- ).regex(
123
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
124
- "Must be a valid GUID"
125
- ).optional(),
126
- greetingMessage: z.string().describe(
127
- "Custom greeting message displayed when a visitor opens the AI chat."
128
- ).max(50).optional().nullable(),
129
- chatEnabled: z.boolean().describe(
130
- "Whether AI chat is enabled for this form.\n\nDefault: `true`"
131
- ).optional().nullable(),
132
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
133
- "Revision number, which increments by 1 each time the chat settings are updated.\nTo prevent conflicting changes, the current revision must be passed when updating the chat settings."
134
- ).optional().nullable(),
135
- _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
136
- _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
137
- summaryMessage: z.string().describe(
138
- "Message that summarizes the contents of the form. Appears after the greeting message."
139
- ).max(255).optional().nullable(),
140
- extendedFields: z.object({
141
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
142
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
143
- ).optional()
144
- }).describe("Extended fields.").optional(),
145
- manualSummary: z.boolean().describe(
146
- "Whether the summary message is manually set or AI-generated.\nWhen `false` the summary message is automatically generated by AI when the chat settings are saved.\nWhen `true`, the summary message can be manually set and won't be overwritten by AI.\n\nDefault: `false`"
147
- ).optional().nullable(),
148
- personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).optional()
149
- }).describe("Chat settings to be updated.")
150
- });
151
- var UpdateChatSettingsResponse = /* @__PURE__ */ z.object({
152
- _id: z.string().describe(
153
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
154
- ).regex(
155
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
156
- "Must be a valid GUID"
157
- ).optional(),
158
- greetingMessage: z.string().describe(
159
- "Custom greeting message displayed when a visitor opens the AI chat."
160
- ).max(50).optional().nullable(),
161
- chatEnabled: z.boolean().describe("Whether AI chat is enabled for this form.\n\nDefault: `true`").optional().nullable(),
162
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
163
- "Revision number, which increments by 1 each time the chat settings are updated.\nTo prevent conflicting changes, the current revision must be passed when updating the chat settings."
164
- ).optional().nullable(),
165
- _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
166
- _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
167
- summaryMessage: z.string().describe(
168
- "Message that summarizes the contents of the form. Appears after the greeting message."
169
- ).max(255).optional().nullable(),
170
- extendedFields: z.object({
171
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
172
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
173
- ).optional()
174
- }).describe("Extended fields.").optional(),
175
- manualSummary: z.boolean().describe(
176
- "Whether the summary message is manually set or AI-generated.\nWhen `false` the summary message is automatically generated by AI when the chat settings are saved.\nWhen `true`, the summary message can be manually set and won't be overwritten by AI.\n\nDefault: `false`"
177
- ).optional().nullable(),
178
- personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).describe(
179
- "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
180
- ).optional()
181
- });
182
- var DeleteChatSettingsRequest = /* @__PURE__ */ z.object({
183
- chatSettingsId: z.string().describe("Chat settings ID.").regex(
184
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
185
- "Must be a valid GUID"
186
- )
187
- });
188
- var DeleteChatSettingsResponse = /* @__PURE__ */ z.object({});
189
- var GetChatSettingsRequest = /* @__PURE__ */ z.object({
190
- chatSettingsId: z.string().describe("Chat settings ID.").regex(
191
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
192
- "Must be a valid GUID"
193
- )
194
- });
195
- var GetChatSettingsResponse = /* @__PURE__ */ z.object({
196
- _id: z.string().describe(
197
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
198
- ).regex(
199
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
200
- "Must be a valid GUID"
201
- ).optional(),
202
- greetingMessage: z.string().describe(
203
- "Custom greeting message displayed when a visitor opens the AI chat."
204
- ).max(50).optional().nullable(),
205
- chatEnabled: z.boolean().describe("Whether AI chat is enabled for this form.\n\nDefault: `true`").optional().nullable(),
206
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
207
- "Revision number, which increments by 1 each time the chat settings are updated.\nTo prevent conflicting changes, the current revision must be passed when updating the chat settings."
208
- ).optional().nullable(),
209
- _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
210
- _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
211
- summaryMessage: z.string().describe(
212
- "Message that summarizes the contents of the form. Appears after the greeting message."
213
- ).max(255).optional().nullable(),
214
- extendedFields: z.object({
215
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
216
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
217
- ).optional()
218
- }).describe("Extended fields.").optional(),
219
- manualSummary: z.boolean().describe(
220
- "Whether the summary message is manually set or AI-generated.\nWhen `false` the summary message is automatically generated by AI when the chat settings are saved.\nWhen `true`, the summary message can be manually set and won't be overwritten by AI.\n\nDefault: `false`"
221
- ).optional().nullable(),
222
- personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).describe(
223
- "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
224
- ).optional()
225
- });
226
- var QueryChatSettingsRequest = /* @__PURE__ */ z.object({
227
- query: z.intersection(
228
- z.object({
229
- filter: z.record(z.string(), z.any()).describe(
230
- "Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
231
- ).optional().nullable(),
232
- sort: z.array(
233
- z.object({
234
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
235
- order: z.enum(["ASC", "DESC"]).optional()
236
- })
237
- ).max(5).optional()
238
- }),
239
- z.xor([
240
- z.object({ cursorPaging: z.never().optional() }),
241
- z.object({
242
- cursorPaging: z.object({
243
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
244
- cursor: z.string().describe(
245
- "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
246
- ).max(16e3).optional().nullable()
247
- }).describe(
248
- "Cursor paging options.\n\nLearn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging)."
249
- )
250
- })
251
- ])
252
- ).describe("WQL expression.")
253
- });
254
- var QueryChatSettingsResponse = /* @__PURE__ */ z.object({
255
- chatSettings: z.array(
256
- z.object({
257
- _id: z.string().describe(
258
- "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
259
- ).regex(
260
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
261
- "Must be a valid GUID"
262
- ).optional(),
263
- greetingMessage: z.string().describe(
264
- "Custom greeting message displayed when a visitor opens the AI chat."
265
- ).max(50).optional().nullable(),
266
- chatEnabled: z.boolean().describe(
267
- "Whether AI chat is enabled for this form.\n\nDefault: `true`"
268
- ).optional().nullable(),
269
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
270
- "Revision number, which increments by 1 each time the chat settings are updated.\nTo prevent conflicting changes, the current revision must be passed when updating the chat settings."
271
- ).optional().nullable(),
272
- _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
273
- _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
274
- summaryMessage: z.string().describe(
275
- "Message that summarizes the contents of the form. Appears after the greeting message."
276
- ).max(255).optional().nullable(),
277
- extendedFields: z.object({
278
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
279
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
280
- ).optional()
281
- }).describe("Extended fields.").optional(),
282
- manualSummary: z.boolean().describe(
283
- "Whether the summary message is manually set or AI-generated.\nWhen `false` the summary message is automatically generated by AI when the chat settings are saved.\nWhen `true`, the summary message can be manually set and won't be overwritten by AI.\n\nDefault: `false`"
284
- ).optional().nullable(),
285
- personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).describe(
286
- "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
287
- ).optional()
288
- })
289
- ).optional(),
290
- pagingMetadata: z.object({
291
- count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
292
- cursors: z.object({
293
- next: z.string().describe(
294
- "Cursor string pointing to the next page in the list of results."
295
- ).max(16e3).optional().nullable(),
296
- prev: z.string().describe(
297
- "Cursor pointing to the previous page in the list of results."
298
- ).max(16e3).optional().nullable()
299
- }).describe(
300
- "Cursor strings that point to the next page, previous page, or both."
301
- ).optional(),
302
- hasNext: z.boolean().describe(
303
- "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
304
- ).optional().nullable()
305
- }).describe("Metadata about the pagination of the results.").optional()
306
- });
307
- // Annotate the CommonJS export names for ESM import in node:
308
- 0 && (module.exports = {
309
- CreateChatSettingsRequest,
310
- CreateChatSettingsResponse,
311
- DeleteChatSettingsRequest,
312
- DeleteChatSettingsResponse,
313
- GetChatSettingsRequest,
314
- GetChatSettingsResponse,
315
- QueryChatSettingsRequest,
316
- QueryChatSettingsResponse,
317
- UpdateChatSettingsRequest,
318
- UpdateChatSettingsResponse
319
- });
320
- //# sourceMappingURL=schemas.js.map