@wix/auto_sdk_forms_chat-settings 1.0.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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +72 -0
  2. package/build/cjs/index.js +562 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +608 -0
  5. package/build/cjs/index.typings.js +447 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +357 -0
  8. package/build/cjs/meta.js +389 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +72 -0
  11. package/build/es/index.mjs +529 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +608 -0
  14. package/build/es/index.typings.mjs +417 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +357 -0
  17. package/build/es/meta.mjs +356 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +72 -0
  21. package/build/internal/cjs/index.js +562 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +608 -0
  24. package/build/internal/cjs/index.typings.js +447 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +357 -0
  27. package/build/internal/cjs/meta.js +389 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +72 -0
  30. package/build/internal/es/index.mjs +529 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +608 -0
  33. package/build/internal/es/index.typings.mjs +417 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +357 -0
  36. package/build/internal/es/meta.mjs +356 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,357 @@
1
+ import { CreateChatSettingsRequest as CreateChatSettingsRequest$1, CreateChatSettingsResponse as CreateChatSettingsResponse$1, UpdateChatSettingsRequest as UpdateChatSettingsRequest$1, UpdateChatSettingsResponse as UpdateChatSettingsResponse$1, DeleteChatSettingsRequest as DeleteChatSettingsRequest$1, DeleteChatSettingsResponse as DeleteChatSettingsResponse$1, GetChatSettingsRequest as GetChatSettingsRequest$1, GetChatSettingsResponse as GetChatSettingsResponse$1, QueryChatSettingsRequest as QueryChatSettingsRequest$1, QueryChatSettingsResponse as QueryChatSettingsResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ interface ChatSettings {
5
+ /**
6
+ * The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Custom greeting message displayed when a visitor opens the AI chat.
13
+ * @maxLength 50
14
+ */
15
+ greetingMessage?: string | null;
16
+ /**
17
+ * Whether AI chat is enabled for this form.
18
+ *
19
+ * Default: `true`
20
+ */
21
+ chatEnabled?: boolean | null;
22
+ /**
23
+ * Revision number, which increments by 1 each time the chat settings are updated.
24
+ * To prevent conflicting changes, the current revision must be passed when updating the chat settings.
25
+ * @readonly
26
+ */
27
+ revision?: string | null;
28
+ /**
29
+ * Date and time the chat settings were created.
30
+ * @readonly
31
+ */
32
+ createdDate?: Date | null;
33
+ /**
34
+ * Date and time the chat settings were last updated.
35
+ * @readonly
36
+ */
37
+ updatedDate?: Date | null;
38
+ /**
39
+ * Message that summarizes the contents of the form. Appears after the greeting message.
40
+ * @maxLength 255
41
+ */
42
+ summaryMessage?: string | null;
43
+ /** Extended fields. */
44
+ extendedFields?: ExtendedFields;
45
+ /**
46
+ * Whether the summary message is manually set or AI-generated.
47
+ * When `false` the summary message is automatically generated by AI when the chat settings are saved.
48
+ * When `true`, the summary message can be manually set and won't be overwritten by AI.
49
+ *
50
+ * Default: `false`
51
+ */
52
+ manualSummary?: boolean | null;
53
+ }
54
+ interface ExtendedFields {
55
+ /**
56
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
57
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
58
+ *
59
+ * You can only access fields for which you have the appropriate permissions.
60
+ *
61
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
62
+ */
63
+ namespaces?: Record<string, Record<string, any>>;
64
+ }
65
+ interface CreateChatSettingsRequest {
66
+ /** Chat settings to be created. */
67
+ chatSettings: ChatSettings;
68
+ }
69
+ interface CreateChatSettingsResponse {
70
+ /** Created chat settings. */
71
+ chatSettings?: ChatSettings;
72
+ }
73
+ interface UpdateChatSettingsRequest {
74
+ /** Chat settings to be updated. */
75
+ chatSettings: ChatSettings;
76
+ }
77
+ interface UpdateChatSettingsResponse {
78
+ /** Updated chat settings. */
79
+ chatSettings?: ChatSettings;
80
+ }
81
+ interface DeleteChatSettingsRequest {
82
+ /**
83
+ * Chat settings ID.
84
+ * @format GUID
85
+ */
86
+ chatSettingsId: string;
87
+ }
88
+ interface DeleteChatSettingsResponse {
89
+ }
90
+ interface GetChatSettingsRequest {
91
+ /**
92
+ * Chat settings ID.
93
+ * @format GUID
94
+ */
95
+ chatSettingsId: string;
96
+ }
97
+ interface GetChatSettingsResponse {
98
+ /** Retrieved chat settings. */
99
+ chatSettings?: ChatSettings;
100
+ }
101
+ interface QueryChatSettingsRequest {
102
+ /** WQL expression. */
103
+ query?: CursorQuery;
104
+ }
105
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
106
+ /**
107
+ * Cursor paging options.
108
+ *
109
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
110
+ */
111
+ cursorPaging?: CursorPaging;
112
+ /**
113
+ * Filter object.
114
+ *
115
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
116
+ */
117
+ filter?: Record<string, any> | null;
118
+ /**
119
+ * Sort object.
120
+ *
121
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
122
+ * @maxSize 5
123
+ */
124
+ sort?: Sorting[];
125
+ }
126
+ /** @oneof */
127
+ interface CursorQueryPagingMethodOneOf {
128
+ /**
129
+ * Cursor paging options.
130
+ *
131
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
132
+ */
133
+ cursorPaging?: CursorPaging;
134
+ }
135
+ interface Sorting {
136
+ /**
137
+ * Name of the field to sort by.
138
+ * @maxLength 512
139
+ */
140
+ fieldName?: string;
141
+ /** Sort order. */
142
+ order?: SortOrderWithLiterals;
143
+ }
144
+ declare enum SortOrder {
145
+ ASC = "ASC",
146
+ DESC = "DESC"
147
+ }
148
+ /** @enumType */
149
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
150
+ interface CursorPaging {
151
+ /**
152
+ * Maximum number of items to return in the results.
153
+ * @max 100
154
+ */
155
+ limit?: number | null;
156
+ /**
157
+ * Pointer to the next or previous page in the list of results.
158
+ *
159
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
160
+ * Not relevant for the first request.
161
+ * @maxLength 16000
162
+ */
163
+ cursor?: string | null;
164
+ }
165
+ interface QueryChatSettingsResponse {
166
+ /** List of chat settings matching the query. */
167
+ chatSettings?: ChatSettings[];
168
+ /** Metadata about the pagination of the results. */
169
+ pagingMetadata?: CursorPagingMetadata;
170
+ }
171
+ interface CursorPagingMetadata {
172
+ /** Number of items returned in current page. */
173
+ count?: number | null;
174
+ /** Cursor strings that point to the next page, previous page, or both. */
175
+ cursors?: Cursors;
176
+ /**
177
+ * Whether there are more pages to retrieve following the current page.
178
+ *
179
+ * + `true`: Another page of results can be retrieved.
180
+ * + `false`: This is the last page.
181
+ */
182
+ hasNext?: boolean | null;
183
+ }
184
+ interface Cursors {
185
+ /**
186
+ * Cursor string pointing to the next page in the list of results.
187
+ * @maxLength 16000
188
+ */
189
+ next?: string | null;
190
+ /**
191
+ * Cursor pointing to the previous page in the list of results.
192
+ * @maxLength 16000
193
+ */
194
+ prev?: string | null;
195
+ }
196
+ interface DomainEvent extends DomainEventBodyOneOf {
197
+ createdEvent?: EntityCreatedEvent;
198
+ updatedEvent?: EntityUpdatedEvent;
199
+ deletedEvent?: EntityDeletedEvent;
200
+ actionEvent?: ActionEvent;
201
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
202
+ id?: string;
203
+ /**
204
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
205
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
206
+ */
207
+ entityFqdn?: string;
208
+ /**
209
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
210
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
211
+ */
212
+ slug?: string;
213
+ /** ID of the entity associated with the event. */
214
+ entityId?: string;
215
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
216
+ eventTime?: Date | null;
217
+ /**
218
+ * Whether the event was triggered as a result of a privacy regulation application
219
+ * (for example, GDPR).
220
+ */
221
+ triggeredByAnonymizeRequest?: boolean | null;
222
+ /** If present, indicates the action that triggered the event. */
223
+ originatedFrom?: string | null;
224
+ /**
225
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
226
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
227
+ */
228
+ entityEventSequence?: string | null;
229
+ }
230
+ /** @oneof */
231
+ interface DomainEventBodyOneOf {
232
+ createdEvent?: EntityCreatedEvent;
233
+ updatedEvent?: EntityUpdatedEvent;
234
+ deletedEvent?: EntityDeletedEvent;
235
+ actionEvent?: ActionEvent;
236
+ }
237
+ interface EntityCreatedEvent {
238
+ entityAsJson?: string;
239
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
240
+ restoreInfo?: RestoreInfo;
241
+ }
242
+ interface RestoreInfo {
243
+ deletedDate?: Date | null;
244
+ }
245
+ interface EntityUpdatedEvent {
246
+ /**
247
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
248
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
249
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
250
+ */
251
+ currentEntityAsJson?: string;
252
+ }
253
+ interface EntityDeletedEvent {
254
+ /** Entity that was deleted. */
255
+ deletedEntityAsJson?: string | null;
256
+ }
257
+ interface ActionEvent {
258
+ bodyAsJson?: string;
259
+ }
260
+ interface Empty {
261
+ }
262
+ interface MessageEnvelope {
263
+ /**
264
+ * App instance ID.
265
+ * @format GUID
266
+ */
267
+ instanceId?: string | null;
268
+ /**
269
+ * Event type.
270
+ * @maxLength 150
271
+ */
272
+ eventType?: string;
273
+ /** The identification type and identity data. */
274
+ identity?: IdentificationData;
275
+ /** Stringify payload. */
276
+ data?: string;
277
+ }
278
+ interface IdentificationData extends IdentificationDataIdOneOf {
279
+ /**
280
+ * ID of a site visitor that has not logged in to the site.
281
+ * @format GUID
282
+ */
283
+ anonymousVisitorId?: string;
284
+ /**
285
+ * ID of a site visitor that has logged in to the site.
286
+ * @format GUID
287
+ */
288
+ memberId?: string;
289
+ /**
290
+ * ID of a Wix user (site owner, contributor, etc.).
291
+ * @format GUID
292
+ */
293
+ wixUserId?: string;
294
+ /**
295
+ * ID of an app.
296
+ * @format GUID
297
+ */
298
+ appId?: string;
299
+ /** @readonly */
300
+ identityType?: WebhookIdentityTypeWithLiterals;
301
+ }
302
+ /** @oneof */
303
+ interface IdentificationDataIdOneOf {
304
+ /**
305
+ * ID of a site visitor that has not logged in to the site.
306
+ * @format GUID
307
+ */
308
+ anonymousVisitorId?: string;
309
+ /**
310
+ * ID of a site visitor that has logged in to the site.
311
+ * @format GUID
312
+ */
313
+ memberId?: string;
314
+ /**
315
+ * ID of a Wix user (site owner, contributor, etc.).
316
+ * @format GUID
317
+ */
318
+ wixUserId?: string;
319
+ /**
320
+ * ID of an app.
321
+ * @format GUID
322
+ */
323
+ appId?: string;
324
+ }
325
+ declare enum WebhookIdentityType {
326
+ UNKNOWN = "UNKNOWN",
327
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
328
+ MEMBER = "MEMBER",
329
+ WIX_USER = "WIX_USER",
330
+ APP = "APP"
331
+ }
332
+ /** @enumType */
333
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
334
+
335
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
336
+ getUrl: (context: any) => string;
337
+ httpMethod: K;
338
+ path: string;
339
+ pathParams: M;
340
+ __requestType: T;
341
+ __originalRequestType: S;
342
+ __responseType: Q;
343
+ __originalResponseType: R;
344
+ };
345
+ declare function createChatSettings(): __PublicMethodMetaInfo<'POST', {}, CreateChatSettingsRequest$1, CreateChatSettingsRequest, CreateChatSettingsResponse$1, CreateChatSettingsResponse>;
346
+ declare function updateChatSettings(): __PublicMethodMetaInfo<'PATCH', {
347
+ chatSettingsId: string;
348
+ }, UpdateChatSettingsRequest$1, UpdateChatSettingsRequest, UpdateChatSettingsResponse$1, UpdateChatSettingsResponse>;
349
+ declare function deleteChatSettings(): __PublicMethodMetaInfo<'DELETE', {
350
+ chatSettingsId: string;
351
+ }, DeleteChatSettingsRequest$1, DeleteChatSettingsRequest, DeleteChatSettingsResponse$1, DeleteChatSettingsResponse>;
352
+ declare function getChatSettings(): __PublicMethodMetaInfo<'GET', {
353
+ chatSettingsId: string;
354
+ }, GetChatSettingsRequest$1, GetChatSettingsRequest, GetChatSettingsResponse$1, GetChatSettingsResponse>;
355
+ declare function queryChatSettings(): __PublicMethodMetaInfo<'GET', {}, QueryChatSettingsRequest$1, QueryChatSettingsRequest, QueryChatSettingsResponse$1, QueryChatSettingsResponse>;
356
+
357
+ export { type ActionEvent as ActionEventOriginal, type ChatSettings as ChatSettingsOriginal, type CreateChatSettingsRequest as CreateChatSettingsRequestOriginal, type CreateChatSettingsResponse as CreateChatSettingsResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteChatSettingsRequest as DeleteChatSettingsRequestOriginal, type DeleteChatSettingsResponse as DeleteChatSettingsResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetChatSettingsRequest as GetChatSettingsRequestOriginal, type GetChatSettingsResponse as GetChatSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryChatSettingsRequest as QueryChatSettingsRequestOriginal, type QueryChatSettingsResponse as QueryChatSettingsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type UpdateChatSettingsRequest as UpdateChatSettingsRequestOriginal, type UpdateChatSettingsResponse as UpdateChatSettingsResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createChatSettings, deleteChatSettings, getChatSettings, queryChatSettings, updateChatSettings };