@wix/auto_sdk_forms_chat-settings 1.0.20 → 1.0.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.
@@ -0,0 +1,306 @@
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 = 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
+ }).describe("Chat settings to be created.")
79
+ });
80
+ var CreateChatSettingsResponse = z.object({
81
+ _id: z.string().describe(
82
+ "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
83
+ ).regex(
84
+ /^[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}$/,
85
+ "Must be a valid GUID"
86
+ ).optional(),
87
+ greetingMessage: z.string().describe(
88
+ "Custom greeting message displayed when a visitor opens the AI chat."
89
+ ).max(50).optional().nullable(),
90
+ chatEnabled: z.boolean().describe("Whether AI chat is enabled for this form.\n\nDefault: `true`").optional().nullable(),
91
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
92
+ "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."
93
+ ).optional().nullable(),
94
+ _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
95
+ _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
96
+ summaryMessage: z.string().describe(
97
+ "Message that summarizes the contents of the form. Appears after the greeting message."
98
+ ).max(255).optional().nullable(),
99
+ extendedFields: z.object({
100
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
101
+ "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)."
102
+ ).optional()
103
+ }).describe("Extended fields.").optional(),
104
+ manualSummary: z.boolean().describe(
105
+ "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`"
106
+ ).optional().nullable()
107
+ });
108
+ var UpdateChatSettingsRequest = z.object({
109
+ _id: z.string().describe(
110
+ "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
111
+ ).regex(
112
+ /^[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}$/,
113
+ "Must be a valid GUID"
114
+ ),
115
+ chatSettings: z.object({
116
+ _id: z.string().describe(
117
+ "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
118
+ ).regex(
119
+ /^[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}$/,
120
+ "Must be a valid GUID"
121
+ ).optional(),
122
+ greetingMessage: z.string().describe(
123
+ "Custom greeting message displayed when a visitor opens the AI chat."
124
+ ).max(50).optional().nullable(),
125
+ chatEnabled: z.boolean().describe(
126
+ "Whether AI chat is enabled for this form.\n\nDefault: `true`"
127
+ ).optional().nullable(),
128
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
129
+ "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."
130
+ ).optional().nullable(),
131
+ _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
132
+ _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
133
+ summaryMessage: z.string().describe(
134
+ "Message that summarizes the contents of the form. Appears after the greeting message."
135
+ ).max(255).optional().nullable(),
136
+ extendedFields: z.object({
137
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
138
+ "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)."
139
+ ).optional()
140
+ }).describe("Extended fields.").optional(),
141
+ manualSummary: z.boolean().describe(
142
+ "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`"
143
+ ).optional().nullable()
144
+ }).describe("Chat settings to be updated.")
145
+ });
146
+ var UpdateChatSettingsResponse = z.object({
147
+ _id: z.string().describe(
148
+ "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
149
+ ).regex(
150
+ /^[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}$/,
151
+ "Must be a valid GUID"
152
+ ).optional(),
153
+ greetingMessage: z.string().describe(
154
+ "Custom greeting message displayed when a visitor opens the AI chat."
155
+ ).max(50).optional().nullable(),
156
+ chatEnabled: z.boolean().describe("Whether AI chat is enabled for this form.\n\nDefault: `true`").optional().nullable(),
157
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
158
+ "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."
159
+ ).optional().nullable(),
160
+ _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
161
+ _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
162
+ summaryMessage: z.string().describe(
163
+ "Message that summarizes the contents of the form. Appears after the greeting message."
164
+ ).max(255).optional().nullable(),
165
+ extendedFields: z.object({
166
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
167
+ "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)."
168
+ ).optional()
169
+ }).describe("Extended fields.").optional(),
170
+ manualSummary: z.boolean().describe(
171
+ "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`"
172
+ ).optional().nullable()
173
+ });
174
+ var DeleteChatSettingsRequest = z.object({
175
+ chatSettingsId: z.string().describe("Chat settings ID.").regex(
176
+ /^[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}$/,
177
+ "Must be a valid GUID"
178
+ )
179
+ });
180
+ var DeleteChatSettingsResponse = z.object({});
181
+ var GetChatSettingsRequest = z.object({
182
+ chatSettingsId: z.string().describe("Chat settings ID.").regex(
183
+ /^[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}$/,
184
+ "Must be a valid GUID"
185
+ )
186
+ });
187
+ var GetChatSettingsResponse = z.object({
188
+ _id: z.string().describe(
189
+ "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
190
+ ).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
+ ).optional(),
194
+ greetingMessage: z.string().describe(
195
+ "Custom greeting message displayed when a visitor opens the AI chat."
196
+ ).max(50).optional().nullable(),
197
+ chatEnabled: z.boolean().describe("Whether AI chat is enabled for this form.\n\nDefault: `true`").optional().nullable(),
198
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
199
+ "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."
200
+ ).optional().nullable(),
201
+ _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
202
+ _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
203
+ summaryMessage: z.string().describe(
204
+ "Message that summarizes the contents of the form. Appears after the greeting message."
205
+ ).max(255).optional().nullable(),
206
+ extendedFields: z.object({
207
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
208
+ "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)."
209
+ ).optional()
210
+ }).describe("Extended fields.").optional(),
211
+ manualSummary: z.boolean().describe(
212
+ "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`"
213
+ ).optional().nullable()
214
+ });
215
+ var QueryChatSettingsRequest = z.object({
216
+ query: z.intersection(
217
+ z.object({
218
+ filter: z.record(z.string(), z.any()).describe(
219
+ "Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
220
+ ).optional().nullable(),
221
+ sort: z.array(
222
+ z.object({
223
+ fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
224
+ order: z.enum(["ASC", "DESC"]).optional()
225
+ })
226
+ ).max(5).optional()
227
+ }),
228
+ z.xor([
229
+ z.object({ cursorPaging: z.never().optional() }),
230
+ z.object({
231
+ cursorPaging: z.object({
232
+ limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
233
+ cursor: z.string().describe(
234
+ "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."
235
+ ).max(16e3).optional().nullable()
236
+ }).describe(
237
+ "Cursor paging options.\n\nLearn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging)."
238
+ )
239
+ })
240
+ ])
241
+ ).describe("WQL expression.")
242
+ });
243
+ var QueryChatSettingsResponse = z.object({
244
+ chatSettings: z.array(
245
+ z.object({
246
+ _id: z.string().describe(
247
+ "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
248
+ ).regex(
249
+ /^[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}$/,
250
+ "Must be a valid GUID"
251
+ ).optional(),
252
+ greetingMessage: z.string().describe(
253
+ "Custom greeting message displayed when a visitor opens the AI chat."
254
+ ).max(50).optional().nullable(),
255
+ chatEnabled: z.boolean().describe(
256
+ "Whether AI chat is enabled for this form.\n\nDefault: `true`"
257
+ ).optional().nullable(),
258
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
259
+ "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."
260
+ ).optional().nullable(),
261
+ _createdDate: z.date().describe("Date and time the chat settings were created.").optional().nullable(),
262
+ _updatedDate: z.date().describe("Date and time the chat settings were last updated.").optional().nullable(),
263
+ summaryMessage: z.string().describe(
264
+ "Message that summarizes the contents of the form. Appears after the greeting message."
265
+ ).max(255).optional().nullable(),
266
+ extendedFields: z.object({
267
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
268
+ "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)."
269
+ ).optional()
270
+ }).describe("Extended fields.").optional(),
271
+ manualSummary: z.boolean().describe(
272
+ "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`"
273
+ ).optional().nullable()
274
+ })
275
+ ).optional(),
276
+ pagingMetadata: z.object({
277
+ count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
278
+ cursors: z.object({
279
+ next: z.string().describe(
280
+ "Cursor string pointing to the next page in the list of results."
281
+ ).max(16e3).optional().nullable(),
282
+ prev: z.string().describe(
283
+ "Cursor pointing to the previous page in the list of results."
284
+ ).max(16e3).optional().nullable()
285
+ }).describe(
286
+ "Cursor strings that point to the next page, previous page, or both."
287
+ ).optional(),
288
+ hasNext: z.boolean().describe(
289
+ "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."
290
+ ).optional().nullable()
291
+ }).describe("Metadata about the pagination of the results.").optional()
292
+ });
293
+ // Annotate the CommonJS export names for ESM import in node:
294
+ 0 && (module.exports = {
295
+ CreateChatSettingsRequest,
296
+ CreateChatSettingsResponse,
297
+ DeleteChatSettingsRequest,
298
+ DeleteChatSettingsResponse,
299
+ GetChatSettingsRequest,
300
+ GetChatSettingsResponse,
301
+ QueryChatSettingsRequest,
302
+ QueryChatSettingsResponse,
303
+ UpdateChatSettingsRequest,
304
+ UpdateChatSettingsResponse
305
+ });
306
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../schemas.ts","../../../src/forms-ai-v1-chat-settings-chat-settings.schemas.ts"],"sourcesContent":["export * from './src/forms-ai-v1-chat-settings-chat-settings.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateChatSettingsRequest = z.object({\n chatSettings: z\n .object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n greetingMessage: z\n .string()\n .describe(\n 'Custom greeting message displayed when a visitor opens the AI chat.'\n )\n .max(50)\n .optional()\n .nullable(),\n chatEnabled: z\n .boolean()\n .describe(\n 'Whether AI chat is enabled for this form.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the chat settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the chat settings were last updated.')\n .optional()\n .nullable(),\n summaryMessage: z\n .string()\n .describe(\n 'Message that summarizes the contents of the form. Appears after the greeting message.'\n )\n .max(255)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n '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).'\n )\n .optional(),\n })\n .describe('Extended fields.')\n .optional(),\n manualSummary: z\n .boolean()\n .describe(\n \"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`\"\n )\n .optional()\n .nullable(),\n })\n .describe('Chat settings to be created.'),\n});\nexport const CreateChatSettingsResponse = z.object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n greetingMessage: z\n .string()\n .describe(\n 'Custom greeting message displayed when a visitor opens the AI chat.'\n )\n .max(50)\n .optional()\n .nullable(),\n chatEnabled: z\n .boolean()\n .describe('Whether AI chat is enabled for this form.\\n\\nDefault: `true`')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the chat settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the chat settings were last updated.')\n .optional()\n .nullable(),\n summaryMessage: z\n .string()\n .describe(\n 'Message that summarizes the contents of the form. Appears after the greeting message.'\n )\n .max(255)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n '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).'\n )\n .optional(),\n })\n .describe('Extended fields.')\n .optional(),\n manualSummary: z\n .boolean()\n .describe(\n \"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`\"\n )\n .optional()\n .nullable(),\n});\nexport const UpdateChatSettingsRequest = z.object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n chatSettings: z\n .object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n greetingMessage: z\n .string()\n .describe(\n 'Custom greeting message displayed when a visitor opens the AI chat.'\n )\n .max(50)\n .optional()\n .nullable(),\n chatEnabled: z\n .boolean()\n .describe(\n 'Whether AI chat is enabled for this form.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the chat settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the chat settings were last updated.')\n .optional()\n .nullable(),\n summaryMessage: z\n .string()\n .describe(\n 'Message that summarizes the contents of the form. Appears after the greeting message.'\n )\n .max(255)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n '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).'\n )\n .optional(),\n })\n .describe('Extended fields.')\n .optional(),\n manualSummary: z\n .boolean()\n .describe(\n \"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`\"\n )\n .optional()\n .nullable(),\n })\n .describe('Chat settings to be updated.'),\n});\nexport const UpdateChatSettingsResponse = z.object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n greetingMessage: z\n .string()\n .describe(\n 'Custom greeting message displayed when a visitor opens the AI chat.'\n )\n .max(50)\n .optional()\n .nullable(),\n chatEnabled: z\n .boolean()\n .describe('Whether AI chat is enabled for this form.\\n\\nDefault: `true`')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the chat settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the chat settings were last updated.')\n .optional()\n .nullable(),\n summaryMessage: z\n .string()\n .describe(\n 'Message that summarizes the contents of the form. Appears after the greeting message.'\n )\n .max(255)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n '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).'\n )\n .optional(),\n })\n .describe('Extended fields.')\n .optional(),\n manualSummary: z\n .boolean()\n .describe(\n \"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`\"\n )\n .optional()\n .nullable(),\n});\nexport const DeleteChatSettingsRequest = z.object({\n chatSettingsId: z\n .string()\n .describe('Chat settings ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteChatSettingsResponse = z.object({});\nexport const GetChatSettingsRequest = z.object({\n chatSettingsId: z\n .string()\n .describe('Chat settings ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetChatSettingsResponse = z.object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n greetingMessage: z\n .string()\n .describe(\n 'Custom greeting message displayed when a visitor opens the AI chat.'\n )\n .max(50)\n .optional()\n .nullable(),\n chatEnabled: z\n .boolean()\n .describe('Whether AI chat is enabled for this form.\\n\\nDefault: `true`')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the chat settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the chat settings were last updated.')\n .optional()\n .nullable(),\n summaryMessage: z\n .string()\n .describe(\n 'Message that summarizes the contents of the form. Appears after the greeting message.'\n )\n .max(255)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n '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).'\n )\n .optional(),\n })\n .describe('Extended fields.')\n .optional(),\n manualSummary: z\n .boolean()\n .describe(\n \"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`\"\n )\n .optional()\n .nullable(),\n});\nexport const QueryChatSettingsRequest = z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object.\\n\\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).'\n )\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"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.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor paging options.\\n\\nLearn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).'\n ),\n }),\n ])\n )\n .describe('WQL expression.'),\n});\nexport const QueryChatSettingsResponse = z.object({\n chatSettings: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.'\n )\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n greetingMessage: z\n .string()\n .describe(\n 'Custom greeting message displayed when a visitor opens the AI chat.'\n )\n .max(50)\n .optional()\n .nullable(),\n chatEnabled: z\n .boolean()\n .describe(\n 'Whether AI chat is enabled for this form.\\n\\nDefault: `true`'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the chat settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the chat settings were last updated.')\n .optional()\n .nullable(),\n summaryMessage: z\n .string()\n .describe(\n 'Message that summarizes the contents of the form. Appears after the greeting message.'\n )\n .max(255)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n '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).'\n )\n .optional(),\n })\n .describe('Extended fields.')\n .optional(),\n manualSummary: z\n .boolean()\n .describe(\n \"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`\"\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n '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.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata about the pagination of the results.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,4BAA8B,SAAO;AAAA,EAChD,cACG,SAAO;AAAA,IACN,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF;AAAA,IACF,iBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,aACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,+CAA+C,EACxD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,oDAAoD,EAC7D,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,SAAO;AAAA,MACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8BAA8B;AAC5C,CAAC;AACM,IAAM,6BAA+B,SAAO;AAAA,EACjD,KACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;A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EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,cACG,OAAK,EACL,SAAS,+CAA+C,EACxD,SAAS,EACT,SAAS;AAAA,MACZ,cACG,OAAK,EACL,SAAS,oDAAoD,EAC7D,SAAS,EACT,SAAS;AAAA,MACZ,gBACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACZ,gBACG,SAAO;AAAA,QACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AAAA,MACZ,eACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,2CAA2C,EACpD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,+CAA+C,EACxD,SAAS;AACd,CAAC;","names":[]}
@@ -0,0 +1,123 @@
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
+ }, z.core.$strip>;
17
+ }, z.core.$strip>;
18
+ declare const CreateChatSettingsResponse: z.ZodObject<{
19
+ _id: z.ZodOptional<z.ZodString>;
20
+ greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
+ chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
22
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
24
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
25
+ summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
+ extendedFields: z.ZodOptional<z.ZodObject<{
27
+ namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
28
+ }, z.core.$strip>>;
29
+ manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
30
+ }, z.core.$strip>;
31
+ declare const UpdateChatSettingsRequest: z.ZodObject<{
32
+ _id: z.ZodString;
33
+ chatSettings: z.ZodObject<{
34
+ _id: z.ZodOptional<z.ZodString>;
35
+ greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
37
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
39
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
40
+ summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
+ extendedFields: z.ZodOptional<z.ZodObject<{
42
+ namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
43
+ }, z.core.$strip>>;
44
+ manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
45
+ }, z.core.$strip>;
46
+ }, z.core.$strip>;
47
+ declare const UpdateChatSettingsResponse: z.ZodObject<{
48
+ _id: z.ZodOptional<z.ZodString>;
49
+ greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
+ chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
51
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
53
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
54
+ summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55
+ extendedFields: z.ZodOptional<z.ZodObject<{
56
+ namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
57
+ }, z.core.$strip>>;
58
+ manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
59
+ }, z.core.$strip>;
60
+ declare const DeleteChatSettingsRequest: z.ZodObject<{
61
+ chatSettingsId: z.ZodString;
62
+ }, z.core.$strip>;
63
+ declare const DeleteChatSettingsResponse: z.ZodObject<{}, z.core.$strip>;
64
+ declare const GetChatSettingsRequest: z.ZodObject<{
65
+ chatSettingsId: z.ZodString;
66
+ }, z.core.$strip>;
67
+ declare const GetChatSettingsResponse: z.ZodObject<{
68
+ _id: z.ZodOptional<z.ZodString>;
69
+ greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
+ chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
71
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
73
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
74
+ summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
+ extendedFields: z.ZodOptional<z.ZodObject<{
76
+ namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
77
+ }, z.core.$strip>>;
78
+ manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
79
+ }, z.core.$strip>;
80
+ declare const QueryChatSettingsRequest: z.ZodObject<{
81
+ query: z.ZodIntersection<z.ZodObject<{
82
+ filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
83
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ fieldName: z.ZodOptional<z.ZodString>;
85
+ order: z.ZodOptional<z.ZodEnum<{
86
+ ASC: "ASC";
87
+ DESC: "DESC";
88
+ }>>;
89
+ }, z.core.$strip>>>;
90
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
91
+ cursorPaging: z.ZodOptional<z.ZodNever>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ cursorPaging: z.ZodObject<{
94
+ limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
95
+ cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
96
+ }, z.core.$strip>;
97
+ }, z.core.$strip>]>>;
98
+ }, z.core.$strip>;
99
+ declare const QueryChatSettingsResponse: z.ZodObject<{
100
+ chatSettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
+ _id: z.ZodOptional<z.ZodString>;
102
+ greetingMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
+ chatEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
104
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
105
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
106
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
107
+ summaryMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
108
+ extendedFields: z.ZodOptional<z.ZodObject<{
109
+ namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
110
+ }, z.core.$strip>>;
111
+ manualSummary: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
112
+ }, z.core.$strip>>>;
113
+ pagingMetadata: z.ZodOptional<z.ZodObject<{
114
+ count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
115
+ cursors: z.ZodOptional<z.ZodObject<{
116
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
+ prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
118
+ }, z.core.$strip>>;
119
+ hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>;
122
+
123
+ export { CreateChatSettingsRequest, CreateChatSettingsResponse, DeleteChatSettingsRequest, DeleteChatSettingsResponse, GetChatSettingsRequest, GetChatSettingsResponse, QueryChatSettingsRequest, QueryChatSettingsResponse, UpdateChatSettingsRequest, UpdateChatSettingsResponse };