@wix/auto_sdk_forms_chat-settings 1.0.26 → 1.0.27

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/forms-ai-v1-chat-settings-chat-settings.universal.ts","../../../src/forms-ai-v1-chat-settings-chat-settings.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixFormsAiV1ChatSettings from './forms-ai-v1-chat-settings-chat-settings.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface ChatSettings {\n /**\n * The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Custom greeting message displayed when a visitor opens the AI chat.\n * @maxLength 50\n */\n greetingMessage?: string | null;\n /**\n * Whether AI chat is enabled for this form.\n *\n * Default: `true`\n */\n chatEnabled?: boolean | null;\n /**\n * Revision number, which increments by 1 each time the chat settings are updated.\n * To prevent conflicting changes, the current revision must be passed when updating the chat settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the chat settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the chat settings were last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Message that summarizes the contents of the form. Appears after the greeting message.\n * @maxLength 255\n */\n summaryMessage?: string | null;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /**\n * Whether the summary message is manually set or AI-generated.\n * When `false` the summary message is automatically generated by AI when the chat settings are saved.\n * When `true`, the summary message can be manually set and won't be overwritten by AI.\n *\n * Default: `false`\n */\n manualSummary?: boolean | null;\n /**\n * Personality of the AI when interacting with visitors.\n * Defines the communication style of the AI chat responses.\n */\n personality?: PersonalityWithLiterals;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport enum Personality {\n PROFESSIONAL = 'PROFESSIONAL',\n FRIENDLY = 'FRIENDLY',\n PLAYFUL = 'PLAYFUL',\n DIRECT = 'DIRECT',\n}\n\n/** @enumType */\nexport type PersonalityWithLiterals =\n | Personality\n | 'PROFESSIONAL'\n | 'FRIENDLY'\n | 'PLAYFUL'\n | 'DIRECT';\n\nexport interface CreateChatSettingsRequest {\n /** Chat settings to be created. */\n chatSettings: ChatSettings;\n}\n\nexport interface CreateChatSettingsResponse {\n /** Created chat settings. */\n chatSettings?: ChatSettings;\n}\n\nexport interface UpdateChatSettingsRequest {\n /** Chat settings to be updated. */\n chatSettings: ChatSettings;\n /**\n * Set of fields to update.\n * Fields that aren't included in `fieldMask.paths` are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateChatSettingsResponse {\n /** Updated chat settings. */\n chatSettings?: ChatSettings;\n}\n\nexport interface DeleteChatSettingsRequest {\n /**\n * Chat settings ID.\n * @format GUID\n */\n chatSettingsId: string;\n}\n\nexport interface DeleteChatSettingsResponse {}\n\nexport interface GetChatSettingsRequest {\n /**\n * Chat settings ID.\n * @format GUID\n */\n chatSettingsId: string;\n}\n\nexport interface GetChatSettingsResponse {\n /** Retrieved chat settings. */\n chatSettings?: ChatSettings;\n}\n\nexport interface QueryChatSettingsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryChatSettingsResponse {\n /** List of chat settings matching the query. */\n chatSettings?: ChatSettings[];\n /** Metadata about the pagination of the results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\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 hasNext?: boolean | null;\n /**\n * Total number of items matching the filter.\n * Available only on the first page of *Search* results, not included in *Query* or *List* results.\n * If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.\n * @internal\n */\n total?: number | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface ChatSettingsCreatedEnvelope {\n entity: ChatSettings;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage forms\n * @permissionScopeId SCOPE.FORMS.EDIT-FORM\n * @permissionScope Manage Online Programs\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Manage Intake Form\n * @permissionScopeId SCOPE.INTAKE-FORM.MANAGE\n * @permissionScope Manage Intake Form (PII)\n * @permissionScopeId SCOPE.INTAKE-FORM.MANAGE_LIMITED\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @webhook\n * @eventType wix.forms.ai.v1.chat_settings_created\n * @slug created\n */\nexport declare function onChatSettingsCreated(\n handler: (event: ChatSettingsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ChatSettingsDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage forms\n * @permissionScopeId SCOPE.FORMS.EDIT-FORM\n * @permissionScope Manage Online Programs\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Manage Intake Form\n * @permissionScopeId SCOPE.INTAKE-FORM.MANAGE\n * @permissionScope Manage Intake Form (PII)\n * @permissionScopeId SCOPE.INTAKE-FORM.MANAGE_LIMITED\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @webhook\n * @eventType wix.forms.ai.v1.chat_settings_deleted\n * @slug deleted\n */\nexport declare function onChatSettingsDeleted(\n handler: (event: ChatSettingsDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ChatSettingsUpdatedEnvelope {\n entity: ChatSettings;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/** @permissionScope Manage forms\n * @permissionScopeId SCOPE.FORMS.EDIT-FORM\n * @permissionScope Manage Online Programs\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Manage Intake Form\n * @permissionScopeId SCOPE.INTAKE-FORM.MANAGE\n * @permissionScope Manage Intake Form (PII)\n * @permissionScopeId SCOPE.INTAKE-FORM.MANAGE_LIMITED\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @webhook\n * @eventType wix.forms.ai.v1.chat_settings_updated\n * @slug updated\n */\nexport declare function onChatSettingsUpdated(\n handler: (event: ChatSettingsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a chat settings entity.\n *\n * The settings specified in a chat settings entity apply to the form with the same ID as the chat settings entity. Each form can have exactly one set of chat settings.\n * @param chatSettings - Chat settings to be created.\n * @public\n * @requiredField chatSettings\n * @requiredField chatSettings._id\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @applicableIdentity APP\n * @returns Created chat settings.\n * @fqn wix.forms.ai.v1.ChatSettingsService.CreateChatSettings\n */\nexport async function createChatSettings(\n chatSettings: NonNullablePaths<ChatSettings, `_id`, 2>\n): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettings: chatSettings,\n });\n\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.createChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.chatSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { chatSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['chatSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a chat settings entity.\n *\n * Changes take effect immediately for new interactive form sessions.\n * @param _id - The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.\n * @public\n * @requiredField _id\n * @requiredField chatSettings\n * @permissionId WIX_FORMS.FORM_SCHEMA_UPDATE\n * @applicableIdentity APP\n * @returns Updated chat settings.\n * @fqn wix.forms.ai.v1.ChatSettingsService.UpdateChatSettings\n */\nexport async function updateChatSettings(\n _id: string,\n chatSettings: UpdateChatSettings\n): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettings: { ...chatSettings, id: _id },\n });\n\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.updateChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.chatSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { chatSettings: '$[1]' },\n explicitPathsToArguments: { 'chatSettings.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'chatSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateChatSettings {\n /**\n * The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Custom greeting message displayed when a visitor opens the AI chat.\n * @maxLength 50\n */\n greetingMessage?: string | null;\n /**\n * Whether AI chat is enabled for this form.\n *\n * Default: `true`\n */\n chatEnabled?: boolean | null;\n /**\n * Revision number, which increments by 1 each time the chat settings are updated.\n * To prevent conflicting changes, the current revision must be passed when updating the chat settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the chat settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the chat settings were last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Message that summarizes the contents of the form. Appears after the greeting message.\n * @maxLength 255\n */\n summaryMessage?: string | null;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /**\n * Whether the summary message is manually set or AI-generated.\n * When `false` the summary message is automatically generated by AI when the chat settings are saved.\n * When `true`, the summary message can be manually set and won't be overwritten by AI.\n *\n * Default: `false`\n */\n manualSummary?: boolean | null;\n /**\n * Personality of the AI when interacting with visitors.\n * Defines the communication style of the AI chat responses.\n */\n personality?: PersonalityWithLiterals;\n}\n\n/**\n * Deletes a chat settings entity.\n * @param chatSettingsId - Chat settings ID.\n * @public\n * @requiredField chatSettingsId\n * @permissionId WIX_FORMS.FORM_SCHEMA_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.ai.v1.ChatSettingsService.DeleteChatSettings\n */\nexport async function deleteChatSettings(\n chatSettingsId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettingsId: chatSettingsId,\n });\n\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.deleteChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { chatSettingsId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['chatSettingsId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a chat settings entity.\n * @param chatSettingsId - Chat settings ID.\n * @public\n * @requiredField chatSettingsId\n * @permissionId WIX_FORMS.FORM_SCHEMA_READ\n * @applicableIdentity APP\n * @returns Retrieved chat settings.\n * @fqn wix.forms.ai.v1.ChatSettingsService.GetChatSettings\n */\nexport async function getChatSettings(\n chatSettingsId: string\n): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettingsId: chatSettingsId,\n });\n\n const reqOpts = ambassadorWixFormsAiV1ChatSettings.getChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.chatSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { chatSettingsId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['chatSettingsId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of chat settings entities given the provided paging, filtering, and sorting.\n *\n * ### Defaults\n * Query Chat Settings has the following default settings, which you can override:\n * + Sorted by `id` in ascending order.\n * + `cursorPaging.limit` set to `100`.\n * @public\n * @permissionId WIX_FORMS.FORM_SCHEMA_READ\n * @applicableIdentity APP\n * @fqn wix.forms.ai.v1.ChatSettingsService.QueryChatSettings\n */\nexport function queryChatSettings(): ChatSettingsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ChatSettings,\n 'CURSOR',\n QueryChatSettingsRequest,\n QueryChatSettingsResponse\n >({\n func: async (payload: QueryChatSettingsRequest) => {\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.queryChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryChatSettingsRequest['query']) => {\n const args = [query, {}] as [QueryChatSettingsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryChatSettingsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.chatSettings,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ChatSettingsQueryResult extends QueryCursorResult {\n items: ChatSettings[];\n query: ChatSettingsQueryBuilder;\n next: () => Promise<ChatSettingsQueryResult>;\n prev: () => Promise<ChatSettingsQueryResult>;\n}\n\nexport interface ChatSettingsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ne: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ge: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n gt: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n le: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n lt: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n */\n startsWith: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: string\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any[]\n ) => ChatSettingsQueryBuilder;\n in: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n exists: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: boolean\n ) => ChatSettingsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'greetingMessage' | 'summaryMessage'>\n ) => ChatSettingsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'greetingMessage' | 'summaryMessage'>\n ) => ChatSettingsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => ChatSettingsQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => ChatSettingsQueryBuilder;\n find: () => Promise<ChatSettingsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.forms.ai.v1.ChatSettingsService.QueryChatSettings\n * @requiredField query\n */\nexport async function typedQueryChatSettings(\n query: ChatSettingsQuery\n): Promise<\n NonNullablePaths<\n QueryChatSettingsResponse,\n | `chatSettings`\n | `chatSettings.${number}._id`\n | `chatSettings.${number}.personality`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts = ambassadorWixFormsAiV1ChatSettings.queryChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChatSettingsQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['greetingMessage', 'summaryMessage'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n ChatSettings,\n ChatSettingsQuerySpec\n>;\nexport type ChatSettingsQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n /** \n When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n\n If multiple filters are provided, they are combined with AND operator.\n\n Example:\n Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] } \n @internal: undefined,\n @maxSize: 10 \n */\n selectItemsBy?:\n | NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['selectItemsBy']\n | null;\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<\n ChatSettings,\n ChatSettingsQuerySpec,\n ChatSettingsQuery\n >(),\n },\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFormsAiV1ChatSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n '*.wixforms.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/forms/ai/v1/chat-settings',\n destPath: '/v1/chat-settings',\n },\n {\n srcPath: '/forms/ai/v1/interactive-form-sessions',\n destPath: '/v1/interactive-form-sessions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'apps.wixel.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n '*.wixel.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forms_chat-settings';\n\n/**\n * Creates a chat settings entity.\n *\n * The settings specified in a chat settings entity apply to the form with the same ID as the chat settings entity. Each form can have exactly one set of chat settings.\n */\nexport function createChatSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __createChatSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'POST' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.CreateChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createChatSettings;\n}\n\n/**\n * Updates a chat settings entity.\n *\n * Changes take effect immediately for new interactive form sessions.\n */\nexport function updateChatSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateChatSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'PATCH' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.UpdateChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/{chatSettings.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateChatSettings;\n}\n\n/** Deletes a chat settings entity. */\nexport function deleteChatSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteChatSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'DELETE' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.DeleteChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/{chatSettingsId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteChatSettings;\n}\n\n/** Retrieves a chat settings entity. */\nexport function getChatSettings(payload: object): RequestOptionsFactory<any> {\n function __getChatSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'GET' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.GetChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/{chatSettingsId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getChatSettings;\n}\n\n/**\n * Retrieves a list of chat settings entities given the provided paging, filtering, and sorting.\n *\n * ### Defaults\n * Query Chat Settings has the following default settings, which you can override:\n * + Sorted by `id` in ascending order.\n * + `cursorPaging.limit` set to `100`.\n */\nexport function queryChatSettings(payload: object): RequestOptionsFactory<any> {\n function __queryChatSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'GET' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.QueryChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryChatSettings;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,0CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;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AAuFO,IAAM,QAAQ;AAAA,EACnB,OAAO;AAAA,IACL,GAAG,iBAID;AAAA,EACJ;AACF;","names":["payload","transformPaths","Personality","SortOrder","WebhookIdentityType","createChatSettings","updateChatSettings","deleteChatSettings","getChatSettings","queryChatSettings"]}
1
+ {"version":3,"sources":["../../../src/forms-ai-v1-chat-settings-chat-settings.universal.ts","../../../src/forms-ai-v1-chat-settings-chat-settings.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixFormsAiV1ChatSettings from './forms-ai-v1-chat-settings-chat-settings.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface ChatSettings {\n /**\n * The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Custom greeting message displayed when a visitor opens the AI chat.\n * @maxLength 50\n */\n greetingMessage?: string | null;\n /**\n * Whether AI chat is enabled for this form.\n *\n * Default: `true`\n */\n chatEnabled?: boolean | null;\n /**\n * Revision number, which increments by 1 each time the chat settings are updated.\n * To prevent conflicting changes, the current revision must be passed when updating the chat settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the chat settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the chat settings were last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Message that summarizes the contents of the form. Appears after the greeting message.\n * @maxLength 255\n */\n summaryMessage?: string | null;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /**\n * Whether the summary message is manually set or AI-generated.\n * When `false` the summary message is automatically generated by AI when the chat settings are saved.\n * When `true`, the summary message can be manually set and won't be overwritten by AI.\n *\n * Default: `false`\n */\n manualSummary?: boolean | null;\n /**\n * Personality of the AI when interacting with visitors.\n * Defines the communication style of the AI chat responses.\n */\n personality?: PersonalityWithLiterals;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport enum Personality {\n PROFESSIONAL = 'PROFESSIONAL',\n FRIENDLY = 'FRIENDLY',\n PLAYFUL = 'PLAYFUL',\n DIRECT = 'DIRECT',\n}\n\n/** @enumType */\nexport type PersonalityWithLiterals =\n | Personality\n | 'PROFESSIONAL'\n | 'FRIENDLY'\n | 'PLAYFUL'\n | 'DIRECT';\n\nexport interface CreateChatSettingsRequest {\n /** Chat settings to be created. */\n chatSettings: ChatSettings;\n}\n\nexport interface CreateChatSettingsResponse {\n /** Created chat settings. */\n chatSettings?: ChatSettings;\n}\n\nexport interface UpdateChatSettingsRequest {\n /** Chat settings to be updated. */\n chatSettings: ChatSettings;\n /**\n * Set of fields to update.\n * Fields that aren't included in `fieldMask.paths` are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateChatSettingsResponse {\n /** Updated chat settings. */\n chatSettings?: ChatSettings;\n}\n\nexport interface DeleteChatSettingsRequest {\n /**\n * Chat settings ID.\n * @format GUID\n */\n chatSettingsId: string;\n}\n\nexport interface DeleteChatSettingsResponse {}\n\nexport interface GetChatSettingsRequest {\n /**\n * Chat settings ID.\n * @format GUID\n */\n chatSettingsId: string;\n}\n\nexport interface GetChatSettingsResponse {\n /** Retrieved chat settings. */\n chatSettings?: ChatSettings;\n}\n\nexport interface QueryChatSettingsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryChatSettingsResponse {\n /** List of chat settings matching the query. */\n chatSettings?: ChatSettings[];\n /** Metadata about the pagination of the results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\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 hasNext?: boolean | null;\n /**\n * Total number of items matching the filter.\n * Available only on the first page of *Search* results, not included in *Query* or *List* results.\n * If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.\n * @internal\n */\n total?: number | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface ChatSettingsCreatedEnvelope {\n entity: ChatSettings;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage forms\n * @permissionScopeId SCOPE.FORMS.EDIT-FORM\n * @permissionScope Manage Online Programs\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @webhook\n * @eventType wix.forms.ai.v1.chat_settings_created\n * @slug created\n */\nexport declare function onChatSettingsCreated(\n handler: (event: ChatSettingsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ChatSettingsDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage forms\n * @permissionScopeId SCOPE.FORMS.EDIT-FORM\n * @permissionScope Manage Online Programs\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @webhook\n * @eventType wix.forms.ai.v1.chat_settings_deleted\n * @slug deleted\n */\nexport declare function onChatSettingsDeleted(\n handler: (event: ChatSettingsDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ChatSettingsUpdatedEnvelope {\n entity: ChatSettings;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/** @permissionScope Manage forms\n * @permissionScopeId SCOPE.FORMS.EDIT-FORM\n * @permissionScope Manage Online Programs\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @webhook\n * @eventType wix.forms.ai.v1.chat_settings_updated\n * @slug updated\n */\nexport declare function onChatSettingsUpdated(\n handler: (event: ChatSettingsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a chat settings entity.\n *\n * The settings specified in a chat settings entity apply to the form with the same ID as the chat settings entity. Each form can have exactly one set of chat settings.\n * @param chatSettings - Chat settings to be created.\n * @public\n * @requiredField chatSettings\n * @requiredField chatSettings._id\n * @permissionId WIX_FORMS.FORM_SCHEMA_CREATE\n * @applicableIdentity APP\n * @returns Created chat settings.\n * @fqn wix.forms.ai.v1.ChatSettingsService.CreateChatSettings\n */\nexport async function createChatSettings(\n chatSettings: NonNullablePaths<ChatSettings, `_id`, 2>\n): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettings: chatSettings,\n });\n\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.createChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.chatSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { chatSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['chatSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a chat settings entity.\n *\n * Changes take effect immediately for new interactive form sessions.\n * @param _id - The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.\n * @public\n * @requiredField _id\n * @requiredField chatSettings\n * @permissionId WIX_FORMS.FORM_SCHEMA_UPDATE\n * @applicableIdentity APP\n * @returns Updated chat settings.\n * @fqn wix.forms.ai.v1.ChatSettingsService.UpdateChatSettings\n */\nexport async function updateChatSettings(\n _id: string,\n chatSettings: UpdateChatSettings\n): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettings: { ...chatSettings, id: _id },\n });\n\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.updateChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.chatSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { chatSettings: '$[1]' },\n explicitPathsToArguments: { 'chatSettings.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'chatSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateChatSettings {\n /**\n * The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Custom greeting message displayed when a visitor opens the AI chat.\n * @maxLength 50\n */\n greetingMessage?: string | null;\n /**\n * Whether AI chat is enabled for this form.\n *\n * Default: `true`\n */\n chatEnabled?: boolean | null;\n /**\n * Revision number, which increments by 1 each time the chat settings are updated.\n * To prevent conflicting changes, the current revision must be passed when updating the chat settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the chat settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the chat settings were last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Message that summarizes the contents of the form. Appears after the greeting message.\n * @maxLength 255\n */\n summaryMessage?: string | null;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /**\n * Whether the summary message is manually set or AI-generated.\n * When `false` the summary message is automatically generated by AI when the chat settings are saved.\n * When `true`, the summary message can be manually set and won't be overwritten by AI.\n *\n * Default: `false`\n */\n manualSummary?: boolean | null;\n /**\n * Personality of the AI when interacting with visitors.\n * Defines the communication style of the AI chat responses.\n */\n personality?: PersonalityWithLiterals;\n}\n\n/**\n * Deletes a chat settings entity.\n * @param chatSettingsId - Chat settings ID.\n * @public\n * @requiredField chatSettingsId\n * @permissionId WIX_FORMS.FORM_SCHEMA_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.ai.v1.ChatSettingsService.DeleteChatSettings\n */\nexport async function deleteChatSettings(\n chatSettingsId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettingsId: chatSettingsId,\n });\n\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.deleteChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { chatSettingsId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['chatSettingsId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a chat settings entity.\n * @param chatSettingsId - Chat settings ID.\n * @public\n * @requiredField chatSettingsId\n * @permissionId WIX_FORMS.FORM_SCHEMA_READ\n * @applicableIdentity APP\n * @returns Retrieved chat settings.\n * @fqn wix.forms.ai.v1.ChatSettingsService.GetChatSettings\n */\nexport async function getChatSettings(\n chatSettingsId: string\n): Promise<NonNullablePaths<ChatSettings, `_id` | `personality`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n chatSettingsId: chatSettingsId,\n });\n\n const reqOpts = ambassadorWixFormsAiV1ChatSettings.getChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.chatSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { chatSettingsId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['chatSettingsId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of chat settings entities given the provided paging, filtering, and sorting.\n *\n * ### Defaults\n * Query Chat Settings has the following default settings, which you can override:\n * + Sorted by `id` in ascending order.\n * + `cursorPaging.limit` set to `100`.\n * @public\n * @permissionId WIX_FORMS.FORM_SCHEMA_READ\n * @applicableIdentity APP\n * @fqn wix.forms.ai.v1.ChatSettingsService.QueryChatSettings\n */\nexport function queryChatSettings(): ChatSettingsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ChatSettings,\n 'CURSOR',\n QueryChatSettingsRequest,\n QueryChatSettingsResponse\n >({\n func: async (payload: QueryChatSettingsRequest) => {\n const reqOpts =\n ambassadorWixFormsAiV1ChatSettings.queryChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryChatSettingsRequest['query']) => {\n const args = [query, {}] as [QueryChatSettingsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryChatSettingsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.chatSettings,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ChatSettingsQueryResult extends QueryCursorResult {\n items: ChatSettings[];\n query: ChatSettingsQueryBuilder;\n next: () => Promise<ChatSettingsQueryResult>;\n prev: () => Promise<ChatSettingsQueryResult>;\n}\n\nexport interface ChatSettingsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ne: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ge: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n gt: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n le: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n lt: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n */\n startsWith: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: string\n ) => ChatSettingsQueryBuilder;\n in: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: any\n ) => ChatSettingsQueryBuilder;\n exists: (\n propertyName: 'greetingMessage' | 'summaryMessage',\n value: boolean\n ) => ChatSettingsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'greetingMessage' | 'summaryMessage'>\n ) => ChatSettingsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'greetingMessage' | 'summaryMessage'>\n ) => ChatSettingsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => ChatSettingsQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => ChatSettingsQueryBuilder;\n find: () => Promise<ChatSettingsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.forms.ai.v1.ChatSettingsService.QueryChatSettings\n * @requiredField query\n */\nexport async function typedQueryChatSettings(\n query: ChatSettingsQuery\n): Promise<\n NonNullablePaths<\n QueryChatSettingsResponse,\n | `chatSettings`\n | `chatSettings.${number}._id`\n | `chatSettings.${number}.personality`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts = ambassadorWixFormsAiV1ChatSettings.queryChatSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChatSettingsQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['greetingMessage', 'summaryMessage'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n ChatSettings,\n ChatSettingsQuerySpec\n>;\nexport type ChatSettingsQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n /** \n When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n\n If multiple filters are provided, they are combined with AND operator.\n\n Example:\n Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] } \n @internal: undefined,\n @maxSize: 10 \n */\n selectItemsBy?:\n | NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['selectItemsBy']\n | null;\n }[];\n};\n\nexport const utils = {\n query: /*#__PURE__*/ createQueryUtils<\n ChatSettings,\n ChatSettingsQuerySpec,\n ChatSettingsQuery\n >(),\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFormsAiV1ChatSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n '*.wixforms.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/forms/ai/v1/chat-settings',\n destPath: '/v1/chat-settings',\n },\n {\n srcPath: '/forms/ai/v1/interactive-form-sessions',\n destPath: '/v1/interactive-form-sessions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'apps.wixel.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n '*.wixel.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forms_chat-settings';\n\n/**\n * Creates a chat settings entity.\n *\n * The settings specified in a chat settings entity apply to the form with the same ID as the chat settings entity. Each form can have exactly one set of chat settings.\n */\nexport function createChatSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __createChatSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'POST' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.CreateChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createChatSettings;\n}\n\n/**\n * Updates a chat settings entity.\n *\n * Changes take effect immediately for new interactive form sessions.\n */\nexport function updateChatSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateChatSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'PATCH' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.UpdateChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/{chatSettings.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateChatSettings;\n}\n\n/** Deletes a chat settings entity. */\nexport function deleteChatSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteChatSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'DELETE' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.DeleteChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/{chatSettingsId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteChatSettings;\n}\n\n/** Retrieves a chat settings entity. */\nexport function getChatSettings(payload: object): RequestOptionsFactory<any> {\n function __getChatSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'GET' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.GetChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/{chatSettingsId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getChatSettings;\n}\n\n/**\n * Retrieves a list of chat settings entities given the provided paging, filtering, and sorting.\n *\n * ### Defaults\n * Query Chat Settings has the following default settings, which you can override:\n * + Sorted by `id` in ascending order.\n * + `cursorPaging.limit` set to `100`.\n */\nexport function queryChatSettings(payload: object): RequestOptionsFactory<any> {\n function __queryChatSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.chat_settings',\n method: 'GET' as any,\n methodFqn: 'wix.forms.ai.v1.ChatSettingsService.QueryChatSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'chatSettings.createdDate' },\n { path: 'chatSettings.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixFormsAiV1ChatSettingsServiceUrl({\n protoPath: '/v1/chat-settings/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryChatSettings;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,0CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB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,kBAAkB,KAAK;AAAA,QAC9C,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,OAAO,OAAO;AAAA,QAC1C,yBAAyB;AAAA,MAC3B,CAAC;AAED,YAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,IACd,qBAAqB,CAAC;AAAA,EACxB,CAAC;AACH;AA+FA,eAAsB,uBACpB,OASA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC,EAAE,MAAa,CAAC;AAEtE,QAAM,UAA6C,kBAAkB,OAAO;AAE5E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,OAAO,OAAO;AAAA,QAC1C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO;AAAA,IACV;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAuFO,IAAM,QAAQ;AAAA,EACnB,OAAqB,iCAInB;AACJ;","names":["payload","transformPaths","Personality","SortOrder","WebhookIdentityType","createChatSettings","updateChatSettings","deleteChatSettings","getChatSettings","queryChatSettings"]}
@@ -1,6 +1,6 @@
1
1
  // src/forms-ai-v1-chat-settings-chat-settings.schemas.ts
2
2
  import * as z from "zod";
3
- var CreateChatSettingsRequest = z.object({
3
+ var CreateChatSettingsRequest = /* @__PURE__ */ z.object({
4
4
  chatSettings: z.object({
5
5
  _id: z.string().describe(
6
6
  "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
@@ -33,7 +33,7 @@ var CreateChatSettingsRequest = z.object({
33
33
  personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).optional()
34
34
  }).describe("Chat settings to be created.")
35
35
  });
36
- var CreateChatSettingsResponse = z.object({
36
+ var CreateChatSettingsResponse = /* @__PURE__ */ z.object({
37
37
  _id: z.string().describe(
38
38
  "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
39
39
  ).regex(
@@ -64,7 +64,7 @@ var CreateChatSettingsResponse = z.object({
64
64
  "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
65
65
  ).optional()
66
66
  });
67
- var UpdateChatSettingsRequest = z.object({
67
+ var UpdateChatSettingsRequest = /* @__PURE__ */ z.object({
68
68
  _id: z.string().describe(
69
69
  "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
70
70
  ).regex(
@@ -103,7 +103,7 @@ var UpdateChatSettingsRequest = z.object({
103
103
  personality: z.enum(["PROFESSIONAL", "FRIENDLY", "PLAYFUL", "DIRECT"]).optional()
104
104
  }).describe("Chat settings to be updated.")
105
105
  });
106
- var UpdateChatSettingsResponse = z.object({
106
+ var UpdateChatSettingsResponse = /* @__PURE__ */ z.object({
107
107
  _id: z.string().describe(
108
108
  "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
109
109
  ).regex(
@@ -134,20 +134,20 @@ var UpdateChatSettingsResponse = z.object({
134
134
  "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
135
135
  ).optional()
136
136
  });
137
- var DeleteChatSettingsRequest = z.object({
137
+ var DeleteChatSettingsRequest = /* @__PURE__ */ z.object({
138
138
  chatSettingsId: z.string().describe("Chat settings ID.").regex(
139
139
  /^[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}$/,
140
140
  "Must be a valid GUID"
141
141
  )
142
142
  });
143
- var DeleteChatSettingsResponse = z.object({});
144
- var GetChatSettingsRequest = z.object({
143
+ var DeleteChatSettingsResponse = /* @__PURE__ */ z.object({});
144
+ var GetChatSettingsRequest = /* @__PURE__ */ z.object({
145
145
  chatSettingsId: z.string().describe("Chat settings ID.").regex(
146
146
  /^[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}$/,
147
147
  "Must be a valid GUID"
148
148
  )
149
149
  });
150
- var GetChatSettingsResponse = z.object({
150
+ var GetChatSettingsResponse = /* @__PURE__ */ z.object({
151
151
  _id: z.string().describe(
152
152
  "The ID of the chat settings. The chat settings specified in this object apply to the form with a matching ID."
153
153
  ).regex(
@@ -178,7 +178,7 @@ var GetChatSettingsResponse = z.object({
178
178
  "Personality of the AI when interacting with visitors.\nDefines the communication style of the AI chat responses."
179
179
  ).optional()
180
180
  });
181
- var QueryChatSettingsRequest = z.object({
181
+ var QueryChatSettingsRequest = /* @__PURE__ */ z.object({
182
182
  query: z.intersection(
183
183
  z.object({
184
184
  filter: z.record(z.string(), z.any()).describe(
@@ -206,7 +206,7 @@ var QueryChatSettingsRequest = z.object({
206
206
  ])
207
207
  ).describe("WQL expression.")
208
208
  });
209
- var QueryChatSettingsResponse = z.object({
209
+ var QueryChatSettingsResponse = /* @__PURE__ */ z.object({
210
210
  chatSettings: z.array(
211
211
  z.object({
212
212
  _id: z.string().describe(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/forms-ai-v1-chat-settings-chat-settings.schemas.ts"],"sourcesContent":["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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .optional(),\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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .optional(),\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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\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,YAAY,OAAO;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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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,MACZ,aACG,OAAK,CAAC,gBAAgB,YAAY,WAAW,QAAQ,CAAC,EACtD;AAAA,QACC;AAAA,MACF,EACC,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":[]}
1
+ {"version":3,"sources":["../../../src/forms-ai-v1-chat-settings-chat-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateChatSettingsRequest = /*#__PURE__*/ 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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .optional(),\n })\n .describe('Chat settings to be created.'),\n});\nexport const CreateChatSettingsResponse = /*#__PURE__*/ 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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\n});\nexport const UpdateChatSettingsRequest = /*#__PURE__*/ 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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .optional(),\n })\n .describe('Chat settings to be updated.'),\n});\nexport const UpdateChatSettingsResponse = /*#__PURE__*/ 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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\n});\nexport const DeleteChatSettingsRequest = /*#__PURE__*/ 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 = /*#__PURE__*/ z.object({});\nexport const GetChatSettingsRequest = /*#__PURE__*/ 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 = /*#__PURE__*/ 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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\n});\nexport const QueryChatSettingsRequest = /*#__PURE__*/ 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 = /*#__PURE__*/ 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 personality: z\n .enum(['PROFESSIONAL', 'FRIENDLY', 'PLAYFUL', 'DIRECT'])\n .describe(\n 'Personality of the AI when interacting with visitors.\\nDefines the communication style of the AI chat responses.'\n )\n .optional(),\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,YAAY,OAAO;AAEZ,IAAM,4BAA0C,gBAAE,SAAO;AAAA,EAC9D,cACG,SAAO;AAAA,IACN,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF;AAAA,IACF,iBACG,S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SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,+CAA+C,EACxD,SAAS;AACd,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_forms_chat-settings",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -57,5 +57,5 @@
57
57
  "fqdn": "wix.forms.ai.v1.chat_settings"
58
58
  }
59
59
  },
60
- "falconPackageHash": "3b901a9239a19c3c7ac876d8ea37066ca427c4b7e74a507cfa371131"
60
+ "falconPackageHash": "b53d3d70480419f5ecaa5c81dc7c9625048114ffcf2ab7639b37fbf9"
61
61
  }