{"version":3,"sources":["../../../src/multilingual-settings-v2-locale-settings-locale-settings.public.ts","../../../src/multilingual-settings-v2-locale-settings-locale-settings.universal.ts","../../../src/multilingual-settings-v2-locale-settings-locale-settings.http.ts","../../../src/multilingual-settings-v2-locale-settings-locale-settings.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  GetLocaleSettingsResponse,\n  LocaleSettings,\n  LocaleSettingsCreatedEnvelope,\n  LocaleSettingsDeletedEnvelope,\n  LocaleSettingsMultilingualModeUpdatedEnvelope,\n  LocaleSettingsUpdatedEnvelope,\n  SetMultilingualModeApplicationErrors,\n  SetMultilingualModeResponse,\n  UpdateLocaleSettingsResponse,\n  getLocaleSettings as universalGetLocaleSettings,\n  setMultilingualMode as universalSetMultilingualMode,\n  updateLocaleSettings as universalUpdateLocaleSettings,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/multilingual' };\n\nexport function getLocaleSettings(\n  httpClient: HttpClient\n): GetLocaleSettingsSignature {\n  return () =>\n    universalGetLocaleSettings(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetLocaleSettingsSignature {\n  /**\n   * Retrieves a site's locale settings.\n   * @returns Response message containing the requested multilingual settings\n   */\n  (): Promise<\n    NonNullablePaths<\n      GetLocaleSettingsResponse,\n      | `localeSettings.urlStructure`\n      | `localeSettings.primaryLocale.visibility`\n      | `localeSettings.primaryLocale.effectiveUrlStructure`\n      | `localeSettings.primaryLocale.urlStructureOverride.urlStructure`,\n      5\n    >\n  >;\n}\n\nexport function updateLocaleSettings(\n  httpClient: HttpClient\n): UpdateLocaleSettingsSignature {\n  return (localeSettings: NonNullablePaths<LocaleSettings, `revision`, 2>) =>\n    universalUpdateLocaleSettings(\n      localeSettings,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateLocaleSettingsSignature {\n  /**\n   * Updates a site's locale settings.\n   *\n   * > **Note:**\n   * > You can't call this method to update a site's multilingual mode. To enable or disable multilingual mode, call Set Multilingual Mode.\n   * @param - Locale settings to update.\n   * @returns Response message containing the updated multilingual settings\n   */\n  (localeSettings: NonNullablePaths<LocaleSettings, `revision`, 2>): Promise<\n    NonNullablePaths<\n      UpdateLocaleSettingsResponse,\n      | `localeSettings.urlStructure`\n      | `localeSettings.primaryLocale.visibility`\n      | `localeSettings.primaryLocale.effectiveUrlStructure`\n      | `localeSettings.primaryLocale.urlStructureOverride.urlStructure`,\n      5\n    >\n  >;\n}\n\nexport function setMultilingualMode(\n  httpClient: HttpClient\n): SetMultilingualModeSignature {\n  return (multilingualModeEnabled: boolean) =>\n    universalSetMultilingualMode(\n      multilingualModeEnabled,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetMultilingualModeSignature {\n  /**\n   * Sets a site's multilingual mode.\n   *\n   * Multilingual mode allows a site to support multiple locales. This means that when multilingual mode is enabled, you can create and manage secondary locales.\n   *\n   * To disable multilingual mode, all secondary locales must first be removed. This action removes all translated content from your site. Disabling multilingual mode will also reset the locale settings to their default values.\n   *\n   * <blockquote class=\"important\">\n   * <strong>Important:</strong>\n   *\n   * You can only call this method on sites where a Wix user has installed the [Wix Multilingual app](https://www.wix.com/app-market/wix-multilingual?searchLocation=home).\n   *\n   * </blockquote>\n   * @param - Whether to enable multilingual mode for the site.\n   *\n   * Default: `false`\n   * @returns Response message containing the updated settings after changing the multilingual mode\n   */\n  (multilingualModeEnabled: boolean): Promise<\n    NonNullablePaths<\n      SetMultilingualModeResponse,\n      | `localeSettings.urlStructure`\n      | `localeSettings.primaryLocale.visibility`\n      | `localeSettings.primaryLocale.effectiveUrlStructure`\n      | `localeSettings.primaryLocale.urlStructureOverride.urlStructure`,\n      5\n    > & {\n      __applicationErrorsType?: SetMultilingualModeApplicationErrors;\n    }\n  >;\n}\n\nexport const onLocaleSettingsCreated = EventDefinition(\n  'wix.multilingual.settings.v2.locale_settings_created',\n  true,\n  (event: LocaleSettingsCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'entity.primaryLocale.createdDate' },\n            { path: 'entity.primaryLocale.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<LocaleSettingsCreatedEnvelope>();\nexport const onLocaleSettingsDeleted = EventDefinition(\n  'wix.multilingual.settings.v2.locale_settings_deleted',\n  true,\n  (event: LocaleSettingsDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'undefined.createdDate' },\n            { path: 'undefined.updatedDate' },\n            { path: 'undefined.primaryLocale.createdDate' },\n            { path: 'undefined.primaryLocale.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<LocaleSettingsDeletedEnvelope>();\nexport const onLocaleSettingsMultilingualModeUpdated = EventDefinition(\n  'wix.multilingual.settings.v2.locale_settings_multilingual_mode_updated',\n  true,\n  (event: LocaleSettingsMultilingualModeUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'data.primaryLocale.createdDate' },\n            { path: 'data.primaryLocale.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<LocaleSettingsMultilingualModeUpdatedEnvelope>();\nexport const onLocaleSettingsUpdated = EventDefinition(\n  'wix.multilingual.settings.v2.locale_settings_updated',\n  true,\n  (event: LocaleSettingsUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'entity.primaryLocale.createdDate' },\n            { path: 'entity.primaryLocale.updatedDate' },\n            { path: 'metadata.eventTime' },\n            { path: 'modifiedFields.createdDate' },\n            { path: 'modifiedFields.updatedDate' },\n            { path: 'modifiedFields.primaryLocale.createdDate' },\n            { path: 'modifiedFields.primaryLocale.updatedDate' },\n          ],\n        },\n      ])\n    )\n)<LocaleSettingsUpdatedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  Asset,\n  BaseEventMetadata,\n  CursorPaging,\n  CursorPagingMetadata,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Cursors,\n  DeleteContext,\n  DeleteStatus,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EditorlessAssigned,\n  EditorlessUnassigned,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  GetLocaleSettingsRequest,\n  GetLocaleSettingsResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  Locale,\n  LocaleSettings,\n  LocaleSettingsCreatedEnvelope,\n  LocaleSettingsDeletedEnvelope,\n  LocaleSettingsMultilingualModeUpdatedEnvelope,\n  LocaleSettingsUpdatedEnvelope,\n  LocaleVisibility,\n  MessageEnvelope,\n  MetaSiteSpecialEvent,\n  MetaSiteSpecialEventPayloadOneOf,\n  MultilingualModeUpdated,\n  Namespace,\n  NamespaceChanged,\n  OdeditorAssigned,\n  OdeditorUnassigned,\n  PicassoAssigned,\n  PicassoUnassigned,\n  QueryLocaleSettingsRequest,\n  QueryLocaleSettingsResponse,\n  RestoreInfo,\n  ServiceProvisioned,\n  ServiceRemoved,\n  SetMultilingualModeRequest,\n  SetMultilingualModeResponse,\n  SiteCreated,\n  SiteCreatedContext,\n  SiteDeleted,\n  SiteHardDeleted,\n  SiteMarkedAsTemplate,\n  SiteMarkedAsWixSite,\n  SitePublished,\n  SitePurgedExternally,\n  SiteRenamed,\n  SiteTransferred,\n  SiteUndeleted,\n  SiteUnpublished,\n  SiteUrlChanged,\n  SortOrder,\n  Sorting,\n  State,\n  StudioAssigned,\n  StudioTwoAssigned,\n  StudioTwoUnassigned,\n  StudioUnassigned,\n  UpdateLocaleSettingsRequest,\n  UpdateLocaleSettingsResponse,\n  UrlStructure,\n  UrlStructureOverride,\n  UserDomainMediaDisabled,\n  UserDomainMediaEnabled,\n  WebhookIdentityType,\n  WixelAssigned,\n  WixelUnassigned,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixMultilingualSettingsV2LocaleSettings from './multilingual-settings-v2-locale-settings-locale-settings.http.js';\n// @ts-ignore\n\nexport interface LocaleSettings {\n  /**\n   * Revision number, which increments by 1 each time the locale settings are updated. To prevent conflicting changes, the existing revision must be passed when updating the locale settings.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the locale settings were created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the locale settings were last updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Whether multilingual mode is enabled for the site. When enabled, you can create secondary locales.\n   *\n   * Default: `false`\n   * @readonly\n   */\n  multilingualModeEnabled?: boolean | null;\n  /**\n   * Whether the live site automatically opens in a secondary locale if the\n   * site visitor's browser is set to that locale.\n   *\n   * Default: `false`\n   *\n   * <blockquote class=\"caution\">\n   *\n   * __Caution:__\n   * Auto-switch can harm SEO by causing duplicate content issues and restricting search engine indexing of different language versions, which limits visibility in search results.\n   *\n   * </blockquote>\n   */\n  autoSwitch?: boolean | null;\n  /**\n   * Defines the default method for how secondary languages appear in the live site's URL.\n   * The URL structure can be overridden per locale, using the Locale API.\n   *\n   * Default: `\"SUBDIRECTORY\"`\n   */\n  urlStructure?: UrlStructureWithLiterals;\n  /**\n   * The site's primary locale.\n   * @readonly\n   */\n  primaryLocale?: Locale;\n}\n\n/** Enum representing the method for resolving locales in URLs. */\nexport enum UrlStructure {\n  /** URL structure as a subdirectory. For example, `\"www.mysite.com/fr\"`. */\n  SUBDIRECTORY = 'SUBDIRECTORY',\n  /** URL structure as a subdomain. For example, `\"fr.mysite.com\"`. */\n  SUBDOMAIN = 'SUBDOMAIN',\n  /** URL structure as a query parameter. For example, `\"www.mysite.com?lang=fr\"`. */\n  QUERY_PARAM = 'QUERY_PARAM',\n}\n\n/** @enumType */\nexport type UrlStructureWithLiterals =\n  | UrlStructure\n  | 'SUBDIRECTORY'\n  | 'SUBDOMAIN'\n  | 'QUERY_PARAM';\n\nexport interface Locale {\n  /**\n   * Locale ID.\n   *\n   * The locale ID is made up of the language and region codes supported by Wix. For example, `\"en-US\"` for U.S. English.\n   * @maxLength 20\n   * @format LANGUAGE_TAG\n   * @readonly\n   * @immutable\n   */\n  _id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the locale is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale object.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the locale was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the locale was last updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Language code. For example, `\"en\"` for English.\n   * @immutable\n   * @format LANGUAGE\n   */\n  languageCode?: string | null;\n  /**\n   * Region code. For example, `\"UK\"` for United Kingdom.\n   * @immutable\n   * @format COUNTRY\n   */\n  regionCode?: string | null;\n  /** Locale visibility status. */\n  visibility?: LocaleVisibilityWithLiterals;\n  /**\n   * Whether the locale is the site's primary locale.\n   * @readonly\n   */\n  primaryLocale?: boolean | null;\n  /**\n   * Whether the locale is the site's visitor primary locale.\n   * @readonly\n   */\n  visitorPrimaryLocale?: boolean | null;\n  /**\n   * Flag icon as a 3-letter language code based on Wix's supported locales. For example, `\"USA\"` for the United States flag icon.\n   * @maxLength 3\n   */\n  flag?: string | null;\n  /**\n   * Regional format for determining how to display data types such as dates, times, numbers, and currencies. For example, `\"en-US\"` to format dates like this: `MM-DD-YYYY`.\n   * @format LANGUAGE_TAG\n   */\n  regionalFormat?: string | null;\n  /**\n   * Default URL structure for the locale's live site URL,\n   * based on the locale's settings, unless overridden.\n   * @readonly\n   */\n  effectiveUrlStructure?: UrlStructureWithLiterals;\n  /** Optional override for the locale's default URL structure. */\n  urlStructureOverride?: UrlStructureOverride;\n  /**\n   * Language code based on Wix's supported locales, used to specify the target language when\n   * translatable content is sent for machine translation. For example, `\"ES\"` for Spanish\n   * or `\"ZH_TW\"` for Traditional Chinese.\n   *\n   * Default: The locale's `languageCode` value.\n   * @format LANGUAGE_TAG\n   */\n  machineTranslationCode?: string | null;\n  /**\n   * The locale's `displayName`, unless overridden.\n   * @readonly\n   * @maxLength 30\n   */\n  effectiveDisplayName?: string | null;\n  /**\n   * Default display name for the locale, inferred from the locale ID and region code.\n   * @readonly\n   * @maxLength 30\n   */\n  displayName?: string | null;\n  /**\n   * Optional override for the locale's display name.\n   * @maxLength 30\n   */\n  overrideDisplayName?: string | null;\n}\n\n/** Enum representing the visibility status of a locale. */\nexport enum LocaleVisibility {\n  /** Locale is hidden from site visitors. A site's locale should be hidden when a translation is not ready to be exposed to visitors. */\n  HIDDEN = 'HIDDEN',\n  /** Locale is visible to site visitors. A site can only have up to 100 visible locales. */\n  VISIBLE = 'VISIBLE',\n}\n\n/** @enumType */\nexport type LocaleVisibilityWithLiterals =\n  | LocaleVisibility\n  | 'HIDDEN'\n  | 'VISIBLE';\n\n/** Message for overriding the default resolution method. */\nexport interface UrlStructureOverride {\n  /** URL structure to use instead of the default. */\n  urlStructure?: UrlStructureWithLiterals;\n}\n\n/** Payload for the event triggered when the multilingual_mode value changes */\nexport interface MultilingualModeUpdated {\n  /** The primary locale when `multilingualModeEnabled` is updated. */\n  primaryLocale?: Locale;\n  /** Indicates whether the multilingual mode is enabled on the site. */\n  multilingualModeEnabled?: boolean;\n}\n\n/** Request message for retrieving multilingual settings */\nexport interface GetLocaleSettingsRequest {}\n\n/** Response message containing the requested multilingual settings */\nexport interface GetLocaleSettingsResponse {\n  /** Retrieved locale settings. */\n  localeSettings?: LocaleSettings;\n}\n\n/** Request message for updating multilingual settings */\nexport interface UpdateLocaleSettingsRequest {\n  /** Locale settings to update. */\n  localeSettings: LocaleSettings;\n}\n\n/** Response message containing the updated multilingual settings */\nexport interface UpdateLocaleSettingsResponse {\n  /** Updated locale settings. */\n  localeSettings?: LocaleSettings;\n}\n\n/** Request message for setting the multilingual mode */\nexport interface SetMultilingualModeRequest {\n  /**\n   * Whether to enable multilingual mode for the site.\n   *\n   * Default: `false`\n   */\n  multilingualModeEnabled: boolean;\n}\n\n/** Response message containing the updated settings after changing the multilingual mode */\nexport interface SetMultilingualModeResponse {\n  /** Updated locale settings. */\n  localeSettings?: LocaleSettings;\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 MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n  /** Emitted on a meta site creation. */\n  siteCreated?: SiteCreated;\n  /** Emitted on a meta site transfer completion. */\n  siteTransferred?: SiteTransferred;\n  /** Emitted on a meta site deletion. */\n  siteDeleted?: SiteDeleted;\n  /** Emitted on a meta site restoration. */\n  siteUndeleted?: SiteUndeleted;\n  /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n  sitePublished?: SitePublished;\n  /** Emitted on a meta site unpublish. */\n  siteUnpublished?: SiteUnpublished;\n  /** Emitted when meta site is marked as template. */\n  siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n  /** Emitted when meta site is marked as a WixSite. */\n  siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n  /** Emitted when an application is provisioned (installed). */\n  serviceProvisioned?: ServiceProvisioned;\n  /** Emitted when an application is removed (uninstalled). */\n  serviceRemoved?: ServiceRemoved;\n  /** Emitted when meta site name (URL slug) is changed. */\n  siteRenamedPayload?: SiteRenamed;\n  /** Emitted when meta site was permanently deleted. */\n  hardDeleted?: SiteHardDeleted;\n  /** Emitted on a namespace change. */\n  namespaceChanged?: NamespaceChanged;\n  /** Emitted when Studio is attached. */\n  studioAssigned?: StudioAssigned;\n  /** Emitted when Studio is detached. */\n  studioUnassigned?: StudioUnassigned;\n  /**\n   * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n   * the actual URL.\n   *\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n   */\n  urlChanged?: SiteUrlChanged;\n  /** Site is marked as PurgedExternally */\n  sitePurgedExternally?: SitePurgedExternally;\n  /** Emitted when Odeditor is attached. */\n  odeditorAssigned?: OdeditorAssigned;\n  /** Emitted when Odeditor is detached. */\n  odeditorUnassigned?: OdeditorUnassigned;\n  /** Emitted when Picasso is attached. */\n  picassoAssigned?: PicassoAssigned;\n  /** Emitted when Picasso is detached. */\n  picassoUnassigned?: PicassoUnassigned;\n  /** Emitted when Wixel is attached. */\n  wixelAssigned?: WixelAssigned;\n  /** Emitted when Wixel is detached. */\n  wixelUnassigned?: WixelUnassigned;\n  /** Emitted when StudioTwo is attached. */\n  studioTwoAssigned?: StudioTwoAssigned;\n  /** Emitted when StudioTwo is detached. */\n  studioTwoUnassigned?: StudioTwoUnassigned;\n  /** Emitted when media from user domain is enabled. */\n  userDomainMediaEnabled?: UserDomainMediaEnabled;\n  /** Emitted when media from user domain is disabled. */\n  userDomainMediaDisabled?: UserDomainMediaDisabled;\n  /** Emitted when Editorless is attached. */\n  editorlessAssigned?: EditorlessAssigned;\n  /** Emitted when Editorless is detached. */\n  editorlessUnassigned?: EditorlessUnassigned;\n  /**\n   * A meta site id.\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /** A meta site version. Monotonically increasing. */\n  version?: string;\n  /** A timestamp of the event. */\n  timestamp?: string;\n  /**\n   * TODO(meta-site): Change validation once validations are disabled for consumers\n   * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n   * @maxSize 4000\n   */\n  assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n  /** Emitted on a meta site creation. */\n  siteCreated?: SiteCreated;\n  /** Emitted on a meta site transfer completion. */\n  siteTransferred?: SiteTransferred;\n  /** Emitted on a meta site deletion. */\n  siteDeleted?: SiteDeleted;\n  /** Emitted on a meta site restoration. */\n  siteUndeleted?: SiteUndeleted;\n  /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n  sitePublished?: SitePublished;\n  /** Emitted on a meta site unpublish. */\n  siteUnpublished?: SiteUnpublished;\n  /** Emitted when meta site is marked as template. */\n  siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n  /** Emitted when meta site is marked as a WixSite. */\n  siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n  /** Emitted when an application is provisioned (installed). */\n  serviceProvisioned?: ServiceProvisioned;\n  /** Emitted when an application is removed (uninstalled). */\n  serviceRemoved?: ServiceRemoved;\n  /** Emitted when meta site name (URL slug) is changed. */\n  siteRenamedPayload?: SiteRenamed;\n  /** Emitted when meta site was permanently deleted. */\n  hardDeleted?: SiteHardDeleted;\n  /** Emitted on a namespace change. */\n  namespaceChanged?: NamespaceChanged;\n  /** Emitted when Studio is attached. */\n  studioAssigned?: StudioAssigned;\n  /** Emitted when Studio is detached. */\n  studioUnassigned?: StudioUnassigned;\n  /**\n   * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n   * the actual URL.\n   *\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n   */\n  urlChanged?: SiteUrlChanged;\n  /** Site is marked as PurgedExternally */\n  sitePurgedExternally?: SitePurgedExternally;\n  /** Emitted when Odeditor is attached. */\n  odeditorAssigned?: OdeditorAssigned;\n  /** Emitted when Odeditor is detached. */\n  odeditorUnassigned?: OdeditorUnassigned;\n  /** Emitted when Picasso is attached. */\n  picassoAssigned?: PicassoAssigned;\n  /** Emitted when Picasso is detached. */\n  picassoUnassigned?: PicassoUnassigned;\n  /** Emitted when Wixel is attached. */\n  wixelAssigned?: WixelAssigned;\n  /** Emitted when Wixel is detached. */\n  wixelUnassigned?: WixelUnassigned;\n  /** Emitted when StudioTwo is attached. */\n  studioTwoAssigned?: StudioTwoAssigned;\n  /** Emitted when StudioTwo is detached. */\n  studioTwoUnassigned?: StudioTwoUnassigned;\n  /** Emitted when media from user domain is enabled. */\n  userDomainMediaEnabled?: UserDomainMediaEnabled;\n  /** Emitted when media from user domain is disabled. */\n  userDomainMediaDisabled?: UserDomainMediaDisabled;\n  /** Emitted when Editorless is attached. */\n  editorlessAssigned?: EditorlessAssigned;\n  /** Emitted when Editorless is detached. */\n  editorlessUnassigned?: EditorlessUnassigned;\n}\n\nexport interface Asset {\n  /**\n   * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n   * @maxLength 36\n   */\n  appDefId?: string;\n  /**\n   * An instance id. For legacy reasons may be UUID or a string.\n   * @maxLength 200\n   */\n  instanceId?: string;\n  /** An application state. */\n  state?: StateWithLiterals;\n}\n\nexport enum State {\n  UNKNOWN = 'UNKNOWN',\n  ENABLED = 'ENABLED',\n  DISABLED = 'DISABLED',\n  PENDING = 'PENDING',\n  DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n  | State\n  | 'UNKNOWN'\n  | 'ENABLED'\n  | 'DISABLED'\n  | 'PENDING'\n  | 'DEMO';\n\nexport interface SiteCreated {\n  /**\n   * A template identifier (empty if not created from a template).\n   * @maxLength 36\n   */\n  originTemplateId?: string;\n  /**\n   * An account id of the owner.\n   * @format GUID\n   */\n  ownerId?: string;\n  /** A context in which meta site was created. */\n  context?: SiteCreatedContextWithLiterals;\n  /**\n   * A meta site id from which this site was created.\n   *\n   * In case of a creation from a template it's a template id.\n   * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n   * @format GUID\n   */\n  originMetaSiteId?: string | null;\n  /**\n   * A meta site name (URL slug).\n   * @maxLength 20\n   */\n  siteName?: string;\n  /** A namespace. */\n  namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n  /** A valid option, we don't expose all reasons why site might be created. */\n  OTHER = 'OTHER',\n  /** A meta site was created from template. */\n  FROM_TEMPLATE = 'FROM_TEMPLATE',\n  /** A meta site was created by copying of the transfferred meta site. */\n  DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n  /** A copy of existing meta site. */\n  DUPLICATE = 'DUPLICATE',\n  /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n  OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n  /** deprecated A meta site was created for Flash editor. */\n  FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n  | SiteCreatedContext\n  | 'OTHER'\n  | 'FROM_TEMPLATE'\n  | 'DUPLICATE_BY_SITE_TRANSFER'\n  | 'DUPLICATE'\n  | 'OLD_SITE_TRANSFER'\n  | 'FLASH';\n\nexport enum Namespace {\n  UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n  /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n  WIX = 'WIX',\n  /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  SHOUT_OUT = 'SHOUT_OUT',\n  /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  ALBUMS = 'ALBUMS',\n  /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n  /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  HOTELS = 'HOTELS',\n  /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  CLUBS = 'CLUBS',\n  /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n  /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  DEV_SITE = 'DEV_SITE',\n  /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  LOGOS = 'LOGOS',\n  /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  VIDEO_MAKER = 'VIDEO_MAKER',\n  /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n  /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n  /**\n   * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n   *\n   * Meta site with this namespace will *not* be shown in a user's site list by default.\n   */\n  HTML_DRAFT = 'HTML_DRAFT',\n  /**\n   * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n   * Will be accessible from Site List and will not have a website app.\n   * Once the user attaches a site, the site will become a regular wixsite.\n   */\n  SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n  /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n  CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n  /** It is to be used in the Business First efforts. */\n  DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n  /** Bookings business flow with no site. */\n  ANYWHERE = 'ANYWHERE',\n  /** Namespace for Headless Backoffice with no editor */\n  HEADLESS = 'HEADLESS',\n  /**\n   * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n   * The site will be used for account level CSM feature for enterprise\n   */\n  ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n  /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n  RISE = 'RISE',\n  /**\n   * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n   * There's a blank site behind the scene but it's blank).\n   * The Mobile company will be the owner of this namespace.\n   */\n  BRANDED_FIRST = 'BRANDED_FIRST',\n  /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n  NOWNIA = 'NOWNIA',\n  /**\n   * UGC Templates are templates that are created by users for personal use and to sale to other users.\n   * The Partners company owns this namespace.\n   */\n  UGC_TEMPLATE = 'UGC_TEMPLATE',\n  /** Codux Headless Sites */\n  CODUX = 'CODUX',\n  /** Bobb - AI Design Creator. */\n  MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n  /**\n   * Shared Blog Site is a unique single site across Enterprise account,\n   * This site will hold all Blog posts related to the Marketing product.\n   */\n  SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n  /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  STANDALONE_FORMS = 'STANDALONE_FORMS',\n  /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n  /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n  MIMIR = 'MIMIR',\n  /** Wix Twins platform. */\n  TWINS = 'TWINS',\n  /** Wix Nano. */\n  NANO = 'NANO',\n  /** Base44 headless sites. */\n  BASE44 = 'BASE44',\n  /** Wix Channels Sites */\n  CHANNELS = 'CHANNELS',\n  /** Nautilus platform. */\n  NAUTILUS = 'NAUTILUS',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n  | Namespace\n  | 'UNKNOWN_NAMESPACE'\n  | 'WIX'\n  | 'SHOUT_OUT'\n  | 'ALBUMS'\n  | 'WIX_STORES_TEST_DRIVE'\n  | 'HOTELS'\n  | 'CLUBS'\n  | 'ONBOARDING_DRAFT'\n  | 'DEV_SITE'\n  | 'LOGOS'\n  | 'VIDEO_MAKER'\n  | 'PARTNER_DASHBOARD'\n  | 'DEV_CENTER_COMPANY'\n  | 'HTML_DRAFT'\n  | 'SITELESS_BUSINESS'\n  | 'CREATOR_ECONOMY'\n  | 'DASHBOARD_FIRST'\n  | 'ANYWHERE'\n  | 'HEADLESS'\n  | 'ACCOUNT_MASTER_CMS'\n  | 'RISE'\n  | 'BRANDED_FIRST'\n  | 'NOWNIA'\n  | 'UGC_TEMPLATE'\n  | 'CODUX'\n  | 'MEDIA_DESIGN_CREATOR'\n  | 'SHARED_BLOG_ENTERPRISE'\n  | 'STANDALONE_FORMS'\n  | 'STANDALONE_EVENTS'\n  | 'MIMIR'\n  | 'TWINS'\n  | 'NANO'\n  | 'BASE44'\n  | 'CHANNELS'\n  | 'NAUTILUS';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n  /**\n   * A previous owner id (user that transfers meta site).\n   * @format GUID\n   */\n  oldOwnerId?: string;\n  /**\n   * A new owner id (user that accepts meta site).\n   * @format GUID\n   */\n  newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n  /** A deletion context. */\n  deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n  /** When the meta site was deleted. */\n  dateDeleted?: Date | null;\n  /** A status. */\n  deleteStatus?: DeleteStatusWithLiterals;\n  /**\n   * A reason (flow).\n   * @maxLength 255\n   */\n  deleteOrigin?: string;\n  /**\n   * A service that deleted it.\n   * @maxLength 255\n   */\n  initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n  UNKNOWN = 'UNKNOWN',\n  TRASH = 'TRASH',\n  DELETED = 'DELETED',\n  PENDING_PURGE = 'PENDING_PURGE',\n  PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n  | DeleteStatus\n  | 'UNKNOWN'\n  | 'TRASH'\n  | 'DELETED'\n  | 'PENDING_PURGE'\n  | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n  /**\n   * A list of URLs previously associated with the meta site.\n   * @maxLength 4000\n   * @maxSize 10000\n   */\n  urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n  /**\n   * Either UUID or EmbeddedServiceType.\n   * @maxLength 36\n   */\n  appDefId?: string;\n  /**\n   * Not only UUID. Something here could be something weird.\n   * @maxLength 36\n   */\n  instanceId?: string;\n  /**\n   * An instance id from which this instance is originated.\n   * @maxLength 36\n   */\n  originInstanceId?: string;\n  /**\n   * A version.\n   * @maxLength 500\n   */\n  version?: string | null;\n  /**\n   * The origin meta site id\n   * @format GUID\n   */\n  originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n  /**\n   * Either UUID or EmbeddedServiceType.\n   * @maxLength 36\n   */\n  appDefId?: string;\n  /**\n   * Not only UUID. Something here could be something weird.\n   * @maxLength 36\n   */\n  instanceId?: string;\n  /**\n   * A version.\n   * @maxLength 500\n   */\n  version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n  /**\n   * A new meta site name (URL slug).\n   * @maxLength 20\n   */\n  newSiteName?: string;\n  /**\n   * A previous meta site name (URL slug).\n   * @maxLength 255\n   */\n  oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n  /** A deletion context. */\n  deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n  /** A previous namespace. */\n  oldNamespace?: NamespaceWithLiterals;\n  /** A new namespace. */\n  newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n  /**\n   * @maxLength 2048\n   * @maxSize 100\n   * @deprecated\n   * @targetRemovalDate 2025-04-15\n   */\n  appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\n/** Media from user domain is enabled. */\nexport interface UserDomainMediaEnabled {}\n\n/** Media from user domain is disabled. */\nexport interface UserDomainMediaDisabled {}\n\n/** Assigned Editorless */\nexport interface EditorlessAssigned {}\n\n/** Unassigned Editorless */\nexport interface EditorlessUnassigned {}\n\n/** Request message for querying locale settings */\nexport interface QueryLocaleSettingsRequest {\n  /** WQL expression. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\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\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\n/** Response message containing the queried locale settings */\nexport interface QueryLocaleSettingsResponse {\n  /** List of locale settings. Empty if no settings exist. */\n  localeSettings?: LocaleSettings[];\n  /** Paging metadata */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\n/** This is the preferred message for cursor-paging enabled services */\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\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\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 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\n/** @docsIgnore */\nexport type SetMultilingualModeApplicationErrors = {\n  code?: 'SITE_CONTAIN_SECONDARY_LOCALES';\n  description?: string;\n  data?: Record<string, any>;\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 LocaleSettingsCreatedEnvelope {\n  entity: LocaleSettings;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when the site is created.\n * @permissionScope Wix Multilingual\n * @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS\n * @permissionId WIX_MULTILINGUAL.SETTINGS_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.multilingual.settings.v2.locale_settings_created\n * @slug created\n */\nexport declare function onLocaleSettingsCreated(\n  handler: (event: LocaleSettingsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface LocaleSettingsDeletedEnvelope {\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when the site is deleted.\n * @permissionScope Wix Multilingual\n * @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS\n * @permissionId WIX_MULTILINGUAL.SETTINGS_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.multilingual.settings.v2.locale_settings_deleted\n * @slug deleted\n */\nexport declare function onLocaleSettingsDeleted(\n  handler: (event: LocaleSettingsDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface LocaleSettingsMultilingualModeUpdatedEnvelope {\n  data: MultilingualModeUpdated;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when the site's multilingual mode is updated.\n * @permissionScope Wix Multilingual\n * @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS\n * @permissionId WIX_MULTILINGUAL.SETTINGS_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.multilingual.settings.v2.locale_settings_multilingual_mode_updated\n * @slug multilingual_mode_updated\n */\nexport declare function onLocaleSettingsMultilingualModeUpdated(\n  handler: (\n    event: LocaleSettingsMultilingualModeUpdatedEnvelope\n  ) => void | Promise<void>\n): void;\n\nexport interface LocaleSettingsUpdatedEnvelope {\n  entity: LocaleSettings;\n  metadata: EventMetadata;\n  /** @hidden */\n  modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when locale settings are updated.\n * @permissionScope Wix Multilingual\n * @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS\n * @permissionId WIX_MULTILINGUAL.SETTINGS_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.multilingual.settings.v2.locale_settings_updated\n * @slug updated\n */\nexport declare function onLocaleSettingsUpdated(\n  handler: (event: LocaleSettingsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a site's locale settings.\n * @public\n * @permissionId WIX_MULTILINGUAL.SETTINGS_READ\n * @applicableIdentity APP\n * @returns Response message containing the requested multilingual settings\n * @fqn wix.multilingual.settings.v2.SettingsService.GetLocaleSettings\n */\nexport async function getLocaleSettings(): Promise<\n  NonNullablePaths<\n    GetLocaleSettingsResponse,\n    | `localeSettings.urlStructure`\n    | `localeSettings.primaryLocale.visibility`\n    | `localeSettings.primaryLocale.effectiveUrlStructure`\n    | `localeSettings.primaryLocale.urlStructureOverride.urlStructure`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts =\n    ambassadorWixMultilingualSettingsV2LocaleSettings.getLocaleSettings(\n      payload\n    );\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: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Updates a site's locale settings.\n *\n * > **Note:**\n * > You can't call this method to update a site's multilingual mode. To enable or disable multilingual mode, call Set Multilingual Mode.\n * @param localeSettings - Locale settings to update.\n * @public\n * @requiredField localeSettings\n * @requiredField localeSettings.revision\n * @permissionId WIX_MULTILINGUAL.SETTINGS_UPDATE\n * @applicableIdentity APP\n * @returns Response message containing the updated multilingual settings\n * @fqn wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings\n */\nexport async function updateLocaleSettings(\n  localeSettings: NonNullablePaths<LocaleSettings, `revision`, 2>\n): Promise<\n  NonNullablePaths<\n    UpdateLocaleSettingsResponse,\n    | `localeSettings.urlStructure`\n    | `localeSettings.primaryLocale.visibility`\n    | `localeSettings.primaryLocale.effectiveUrlStructure`\n    | `localeSettings.primaryLocale.urlStructureOverride.urlStructure`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    localeSettings: localeSettings,\n  });\n\n  const reqOpts =\n    ambassadorWixMultilingualSettingsV2LocaleSettings.updateLocaleSettings(\n      payload\n    );\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: { localeSettings: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['localeSettings']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Sets a site's multilingual mode.\n *\n * Multilingual mode allows a site to support multiple locales. This means that when multilingual mode is enabled, you can create and manage secondary locales.\n *\n * To disable multilingual mode, all secondary locales must first be removed. This action removes all translated content from your site. Disabling multilingual mode will also reset the locale settings to their default values.\n *\n * <blockquote class=\"important\">\n * <strong>Important:</strong>\n *\n * You can only call this method on sites where a Wix user has installed the [Wix Multilingual app](https://www.wix.com/app-market/wix-multilingual?searchLocation=home).\n *\n * </blockquote>\n * @param multilingualModeEnabled - Whether to enable multilingual mode for the site.\n *\n * Default: `false`\n * @public\n * @requiredField multilingualModeEnabled\n * @permissionId WIX_MULTILINGUAL.SETTINGS_SET_MODE\n * @applicableIdentity APP\n * @returns Response message containing the updated settings after changing the multilingual mode\n * @fqn wix.multilingual.settings.v2.SettingsService.SetMultilingualMode\n */\nexport async function setMultilingualMode(\n  multilingualModeEnabled: boolean\n): Promise<\n  NonNullablePaths<\n    SetMultilingualModeResponse,\n    | `localeSettings.urlStructure`\n    | `localeSettings.primaryLocale.visibility`\n    | `localeSettings.primaryLocale.effectiveUrlStructure`\n    | `localeSettings.primaryLocale.urlStructureOverride.urlStructure`,\n    5\n  > & {\n    __applicationErrorsType?: SetMultilingualModeApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    multilingualModeEnabled: multilingualModeEnabled,\n  });\n\n  const reqOpts =\n    ambassadorWixMultilingualSettingsV2LocaleSettings.setMultilingualMode(\n      payload\n    );\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: { multilingualModeEnabled: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['multilingualModeEnabled']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\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 resolveWixMultilingualSettingsV2SettingsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/settings',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/settings',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/settings',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/settings',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/settings',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/settings',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/locale-settings',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_multilingual_locale-settings';\n\n/** Retrieves a site's locale settings. */\nexport function getLocaleSettings(payload: object): RequestOptionsFactory<any> {\n  function __getLocaleSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.multilingual.settings.v2.locale_settings',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.multilingual.settings.v2.SettingsService.GetLocaleSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixMultilingualSettingsV2SettingsServiceUrl({\n        protoPath: '/v2/settings',\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: 'localeSettings.createdDate' },\n              { path: 'localeSettings.updatedDate' },\n              { path: 'localeSettings.primaryLocale.createdDate' },\n              { path: 'localeSettings.primaryLocale.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getLocaleSettings;\n}\n\n/**\n * Updates a site's locale settings.\n *\n * > **Note:**\n * > You can't call this method to update a site's multilingual mode. To enable or disable multilingual mode, call Set Multilingual Mode.\n */\nexport function updateLocaleSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateLocaleSettings({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'localeSettings.createdDate' },\n          { path: 'localeSettings.updatedDate' },\n          { path: 'localeSettings.primaryLocale.createdDate' },\n          { path: 'localeSettings.primaryLocale.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.multilingual.settings.v2.locale_settings',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixMultilingualSettingsV2SettingsServiceUrl({\n        protoPath: '/v2/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: 'localeSettings.createdDate' },\n              { path: 'localeSettings.updatedDate' },\n              { path: 'localeSettings.primaryLocale.createdDate' },\n              { path: 'localeSettings.primaryLocale.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateLocaleSettings;\n}\n\n/**\n * Sets a site's multilingual mode.\n *\n * Multilingual mode allows a site to support multiple locales. This means that when multilingual mode is enabled, you can create and manage secondary locales.\n *\n * To disable multilingual mode, all secondary locales must first be removed. This action removes all translated content from your site. Disabling multilingual mode will also reset the locale settings to their default values.\n *\n * <blockquote class=\"important\">\n * <strong>Important:</strong>\n *\n * You can only call this method on sites where a Wix user has installed the [Wix Multilingual app](https://www.wix.com/app-market/wix-multilingual?searchLocation=home).\n *\n * </blockquote>\n */\nexport function setMultilingualMode(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __setMultilingualMode({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.multilingual.settings.v2.locale_settings',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.multilingual.settings.v2.SettingsService.SetMultilingualMode',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixMultilingualSettingsV2SettingsServiceUrl({\n        protoPath: '/v2/settings/mode',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'localeSettings.createdDate' },\n              { path: 'localeSettings.updatedDate' },\n              { path: 'localeSettings.primaryLocale.createdDate' },\n              { path: 'localeSettings.primaryLocale.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setMultilingualMode;\n}\n","import {\n  getLocaleSettings as publicGetLocaleSettings,\n  updateLocaleSettings as publicUpdateLocaleSettings,\n  setMultilingualMode as publicSetMultilingualMode,\n} from './multilingual-settings-v2-locale-settings-locale-settings.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n  BuildRESTFunction,\n  MaybeContext,\n  BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onLocaleSettingsCreated as publicOnLocaleSettingsCreated } from './multilingual-settings-v2-locale-settings-locale-settings.public.js';\nimport { onLocaleSettingsDeleted as publicOnLocaleSettingsDeleted } from './multilingual-settings-v2-locale-settings-locale-settings.public.js';\nimport { onLocaleSettingsMultilingualModeUpdated as publicOnLocaleSettingsMultilingualModeUpdated } from './multilingual-settings-v2-locale-settings-locale-settings.public.js';\nimport { onLocaleSettingsUpdated as publicOnLocaleSettingsUpdated } from './multilingual-settings-v2-locale-settings-locale-settings.public.js';\n\nexport const getLocaleSettings: MaybeContext<\n  BuildRESTFunction<typeof publicGetLocaleSettings> &\n    typeof publicGetLocaleSettings\n> = /*#__PURE__*/ createRESTModule(publicGetLocaleSettings);\nexport const updateLocaleSettings: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateLocaleSettings> &\n    typeof publicUpdateLocaleSettings\n> = /*#__PURE__*/ createRESTModule(publicUpdateLocaleSettings);\nexport const setMultilingualMode: MaybeContext<\n  BuildRESTFunction<typeof publicSetMultilingualMode> &\n    typeof publicSetMultilingualMode\n> = /*#__PURE__*/ createRESTModule(publicSetMultilingualMode);\n/**\n * Triggered when the site is created.\n */\nexport const onLocaleSettingsCreated: BuildEventDefinition<\n  typeof publicOnLocaleSettingsCreated\n> &\n  typeof publicOnLocaleSettingsCreated = createEventModule(\n  publicOnLocaleSettingsCreated\n);\n/**\n * Triggered when the site is deleted.\n */\nexport const onLocaleSettingsDeleted: BuildEventDefinition<\n  typeof publicOnLocaleSettingsDeleted\n> &\n  typeof publicOnLocaleSettingsDeleted = createEventModule(\n  publicOnLocaleSettingsDeleted\n);\n/**\n * Triggered when the site's multilingual mode is updated.\n */\nexport const onLocaleSettingsMultilingualModeUpdated: BuildEventDefinition<\n  typeof publicOnLocaleSettingsMultilingualModeUpdated\n> &\n  typeof publicOnLocaleSettingsMultilingualModeUpdated = createEventModule(\n  publicOnLocaleSettingsMultilingualModeUpdated\n);\n/**\n * Triggered when locale settings are updated.\n */\nexport const onLocaleSettingsUpdated: BuildEventDefinition<\n  typeof publicOnLocaleSettingsUpdated\n> &\n  typeof publicOnLocaleSettingsUpdated = createEventModule(\n  publicOnLocaleSettingsUpdated\n);\n\nexport {\n  UrlStructure,\n  LocaleVisibility,\n  State,\n  SiteCreatedContext,\n  Namespace,\n  DeleteStatus,\n  SortOrder,\n  WebhookIdentityType,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\nexport {\n  LocaleSettings,\n  Locale,\n  UrlStructureOverride,\n  MultilingualModeUpdated,\n  GetLocaleSettingsRequest,\n  GetLocaleSettingsResponse,\n  UpdateLocaleSettingsRequest,\n  UpdateLocaleSettingsResponse,\n  SetMultilingualModeRequest,\n  SetMultilingualModeResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  Empty,\n  MetaSiteSpecialEvent,\n  MetaSiteSpecialEventPayloadOneOf,\n  Asset,\n  SiteCreated,\n  SiteTransferred,\n  SiteDeleted,\n  DeleteContext,\n  SiteUndeleted,\n  SitePublished,\n  SiteUnpublished,\n  SiteMarkedAsTemplate,\n  SiteMarkedAsWixSite,\n  ServiceProvisioned,\n  ServiceRemoved,\n  SiteRenamed,\n  SiteHardDeleted,\n  NamespaceChanged,\n  StudioAssigned,\n  StudioUnassigned,\n  SiteUrlChanged,\n  SitePurgedExternally,\n  OdeditorAssigned,\n  OdeditorUnassigned,\n  PicassoAssigned,\n  PicassoUnassigned,\n  WixelAssigned,\n  WixelUnassigned,\n  StudioTwoAssigned,\n  StudioTwoUnassigned,\n  UserDomainMediaEnabled,\n  UserDomainMediaDisabled,\n  EditorlessAssigned,\n  EditorlessUnassigned,\n  QueryLocaleSettingsRequest,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Sorting,\n  CursorPaging,\n  QueryLocaleSettingsResponse,\n  CursorPagingMetadata,\n  Cursors,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  LocaleSettingsCreatedEnvelope,\n  LocaleSettingsDeletedEnvelope,\n  LocaleSettingsMultilingualModeUpdatedEnvelope,\n  LocaleSettingsUpdatedEnvelope,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\nexport {\n  UrlStructureWithLiterals,\n  LocaleVisibilityWithLiterals,\n  StateWithLiterals,\n  SiteCreatedContextWithLiterals,\n  NamespaceWithLiterals,\n  DeleteStatusWithLiterals,\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  SetMultilingualModeApplicationErrors,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACH9D,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;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,wBAAwB;AAAA,MACtB;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,GAAG;AAAA,MACD;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,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,kBAAkB,SAA6C;AAC7E,WAAS,oBAAoB,EAAE,KAAK,GAAQ;AAC1C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;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AAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,mCAAmC;AAAA,UAC3C,EAAE,MAAM,mCAAmC;AAAA,UAC3C,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,6BAA6B;AAAA,UACrC,EAAE,MAAM,6BAA6B;AAAA,UACrC,EAAE,MAAM,2CAA2C;AAAA,UACnD,EAAE,MAAM,2CAA2C;AAAA,QACrD;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAiC;;;AGpMjC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAW3B,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AAIrD,IAAMC,2BAG4B;AAAA,EACvC;AACF;AAIO,IAAMC,2BAG4B;AAAA,EACvC;AACF;AAIO,IAAMC,2CAG4C;AAAA,EACvD;AACF;AAIO,IAAMC,2BAG4B;AAAA,EACvC;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTTimestampToSDKTimestamp","transformPaths","payload","UrlStructure","LocaleVisibility","State","SiteCreatedContext","Namespace","DeleteStatus","SortOrder","WebhookIdentityType","getLocaleSettings","updateLocaleSettings","setMultilingualMode","getLocaleSettings","updateLocaleSettings","setMultilingualMode","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","getLocaleSettings","updateLocaleSettings","setMultilingualMode","onLocaleSettingsCreated","onLocaleSettingsDeleted","onLocaleSettingsMultilingualModeUpdated","onLocaleSettingsUpdated"]}