{"version":3,"sources":["../../src/bookings-v2-bookings-settings-bookings-settings.public.ts","../../src/bookings-v2-bookings-settings-bookings-settings.universal.ts","../../src/bookings-v2-bookings-settings-bookings-settings.http.ts","../../src/bookings-v2-bookings-settings-bookings-settings.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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  BookingsSettings,\n  BookingsSettingsCreatedEnvelope,\n  BookingsSettingsDeletedEnvelope,\n  BookingsSettingsUpdatedEnvelope,\n  GetBookingsSettingsApplicationErrors,\n  getBookingsSettings as universalGetBookingsSettings,\n  updateBookingsSettings as universalUpdateBookingsSettings,\n} from './bookings-v2-bookings-settings-bookings-settings.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/bookings' };\n\nexport function getBookingsSettings(\n  httpClient: HttpClient\n): GetBookingsSettingsSignature {\n  return () =>\n    universalGetBookingsSettings(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetBookingsSettingsSignature {\n  /**\n   * Retrieves the site's bookings settings.\n   *\n   * If no settings have been customized for the site yet, the default settings are returned.\n   * @returns Retrieved bookings settings.\n   */\n  (): Promise<\n    NonNullablePaths<BookingsSettings, `displayTimeZone.basedOn`, 3> & {\n      __applicationErrorsType?: GetBookingsSettingsApplicationErrors;\n    }\n  >;\n}\n\nexport function updateBookingsSettings(\n  httpClient: HttpClient\n): UpdateBookingsSettingsSignature {\n  return (\n    bookingsSettings: NonNullablePaths<BookingsSettings, `revision`, 2>\n  ) =>\n    universalUpdateBookingsSettings(\n      bookingsSettings,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateBookingsSettingsSignature {\n  /**\n   * Updates the site's bookings settings.\n   *\n   * Each time the bookings settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the bookings settings. This ensures you're working with the latest bookings settings and prevents unintended overwrites.\n   *\n   * This is a partial update: only the fields listed in `fieldMask.paths` are changed. Fields not included in the field mask keep their current values.\n   *\n   * If no settings have been customized for the site yet, the default settings are created and then updated with the values you provide.\n   * @param - Bookings settings to update.\n   * @returns Updated bookings settings.\n   */\n  (\n    bookingsSettings: NonNullablePaths<BookingsSettings, `revision`, 2>\n  ): Promise<NonNullablePaths<BookingsSettings, `displayTimeZone.basedOn`, 3>>;\n}\n\nexport const onBookingsSettingsCreated = EventDefinition(\n  'wix.bookings.v2.bookings_settings_created',\n  true,\n  (event: BookingsSettingsCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'entity.siteProperties.address.coordinates.latitude' },\n            { path: 'entity.siteProperties.address.coordinates.longitude' },\n          ],\n        },\n      ])\n    )\n)<BookingsSettingsCreatedEnvelope>();\nexport const onBookingsSettingsDeleted = EventDefinition(\n  'wix.bookings.v2.bookings_settings_deleted',\n  true,\n  (event: BookingsSettingsDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'entity.siteProperties.address.coordinates.latitude' },\n            { path: 'entity.siteProperties.address.coordinates.longitude' },\n          ],\n        },\n      ])\n    )\n)<BookingsSettingsDeletedEnvelope>();\nexport const onBookingsSettingsUpdated = EventDefinition(\n  'wix.bookings.v2.bookings_settings_updated',\n  true,\n  (event: BookingsSettingsUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n            { path: 'modifiedFields.createdDate' },\n            { path: 'modifiedFields.updatedDate' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'entity.siteProperties.address.coordinates.latitude' },\n            { path: 'entity.siteProperties.address.coordinates.longitude' },\n            {\n              path: 'modifiedFields.siteProperties.address.coordinates.latitude',\n            },\n            {\n              path: 'modifiedFields.siteProperties.address.coordinates.longitude',\n            },\n          ],\n        },\n      ])\n    )\n)<BookingsSettingsUpdatedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  Address,\n  AddressHint,\n  Asset,\n  BaseEventMetadata,\n  BasedOn,\n  BookingCreationSettings,\n  BookingsSettings,\n  BookingsSettingsCreatedEnvelope,\n  BookingsSettingsDeletedEnvelope,\n  BookingsSettingsUpdatedEnvelope,\n  BusinessNotification,\n  CartCheckout,\n  DeleteContext,\n  DeleteStatus,\n  DisplayTimeZone,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EditorlessAssigned,\n  EditorlessUnassigned,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  ExtendedFields,\n  Feature,\n  Features,\n  GeoCoordinates,\n  GetBookingsSettingsRequest,\n  GetBookingsSettingsResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  Locale,\n  LocationSelection,\n  MessageEnvelope,\n  MetaSiteSpecialEvent,\n  MetaSiteSpecialEventPayloadOneOf,\n  MultiServiceAppointments,\n  Namespace,\n  NamespaceChanged,\n  Notifications,\n  OdeditorAssigned,\n  OdeditorUnassigned,\n  OwnerFlow,\n  PicassoAssigned,\n  PicassoUnassigned,\n  PlacementType,\n  Reason,\n  RequestedFields,\n  RequiredField,\n  RestoreInfo,\n  ServiceProvisioned,\n  ServiceRemoved,\n  SiteCreated,\n  SiteCreatedContext,\n  SiteDeleted,\n  SiteHardDeleted,\n  SiteMarkedAsTemplate,\n  SiteMarkedAsWixSite,\n  SiteProperties,\n  SitePublished,\n  SitePurgedExternally,\n  SiteRenamed,\n  SiteTransferred,\n  SiteUndeleted,\n  SiteUnpublished,\n  SiteUrlChanged,\n  StaffSelection,\n  StaffSelectionTiming,\n  State,\n  Strategy,\n  StudioAssigned,\n  StudioTwoAssigned,\n  StudioTwoUnassigned,\n  StudioUnassigned,\n  Timing,\n  UpdateBookingsSettingsRequest,\n  UpdateBookingsSettingsResponse,\n  UserDomainMediaDisabled,\n  UserDomainMediaEnabled,\n  WebhookIdentityType,\n  WixelAssigned,\n  WixelUnassigned,\n} from './bookings-v2-bookings-settings-bookings-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 ambassadorWixBookingsV2BookingsSettings from './bookings-v2-bookings-settings-bookings-settings.http.js';\n\n/**\n * Site-wide settings that configure how the Wix Bookings app behaves across all of a\n * site's services and booking flows.\n *\n * Each site has a single bookings settings object. It's created automatically with\n * default values, so a site always has bookings settings.\n */\nexport interface BookingsSettings {\n  /**\n   * Revision number, which increments by 1 each time the bookings settings are updated.\n   * To prevent conflicting changes,\n   * the current revision must be passed when updating the bookings settings.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the bookings settings were created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the bookings settings were updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /** Cart checkout settings, which control whether customers can add multiple services to a cart and check out together. */\n  cartCheckout?: CartCheckout;\n  /** Multi-service appointment settings, which control whether customers can book more than one service in a single appointment. */\n  multiServiceAppointments?: MultiServiceAppointments;\n  /** Display time zone settings, which control whether times are shown in the business's or the customer's time zone. */\n  displayTimeZone?: DisplayTimeZone;\n  /**\n   * Custom field data for the bookings settings object.\n   *\n   * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n   */\n  extendedFields?: ExtendedFields;\n  /**\n   * Notifications settings\n   * @internal\n   */\n  notifications?: Notifications;\n  /**\n   * Staff selection settings, which control when and how customers choose a staff member during the booking flow.\n   * @internal\n   */\n  staffSelection?: StaffSelection;\n  /**\n   * Location selection settings, which control when customers choose a service location during the booking flow.\n   * @internal\n   */\n  locationSelection?: LocationSelection;\n}\n\nexport interface CartCheckout {\n  /** Whether customers can add multiple services to a cart and check out together. */\n  enabled?: boolean | null;\n}\n\nexport interface MultiServiceAppointments {\n  /** Whether customers can book more than one service in a single appointment. */\n  enabled?: boolean | null;\n}\n\nexport interface DisplayTimeZone {\n  /** Whether customers can switch between the business and customer time zones when viewing times. */\n  customerCanChange?: boolean | null;\n  /** Time zone that times are displayed in by default. */\n  basedOn?: BasedOnWithLiterals;\n}\n\nexport enum BasedOn {\n  /** Times are displayed in the business's time zone. */\n  BUSINESS_TIME_ZONE = 'BUSINESS_TIME_ZONE',\n  /** Times are displayed in the customer's time zone. */\n  CUSTOMER_TIME_ZONE = 'CUSTOMER_TIME_ZONE',\n}\n\n/** @enumType */\nexport type BasedOnWithLiterals =\n  | BasedOn\n  | 'BUSINESS_TIME_ZONE'\n  | 'CUSTOMER_TIME_ZONE';\n\nexport interface SiteProperties {\n  /** Selected locale. */\n  locale?: Locale;\n  /**\n   * Selected language code (ISO 639-1).\n   * @format LANGUAGE\n   */\n  language?: string | null;\n  /**\n   * Selected currency code (ISO 4217) to bill customers of this site.\n   * @format CURRENCY\n   */\n  paymentCurrency?: string | null;\n  /**\n   * Time zone.\n   * @maxLength 255\n   */\n  timeZone?: string | null;\n  /**\n   * Publicly-available business email address.\n   * @format EMAIL\n   */\n  email?: string | null;\n  /**\n   * Publicly-available business phone number.\n   * @format PHONE\n   */\n  phone?: string | null;\n  /** Publicly-available business address. */\n  address?: Address;\n  /**\n   * Site display name.\n   * @maxLength 255\n   */\n  siteDisplayName?: string | null;\n  /**\n   * Business name.\n   * @maxLength 255\n   */\n  businessName?: string | null;\n}\n\nexport interface Locale {\n  /**\n   * Language code (ISO 639-1).\n   * @format LANGUAGE\n   */\n  languageCode?: string;\n  /**\n   * Country code (ISO 3166-1).\n   * @format COUNTRY\n   */\n  country?: string;\n}\n\nexport interface Address {\n  /**\n   * Street name.\n   * @maxLength 255\n   */\n  street?: string;\n  /**\n   * City.\n   * @maxLength 255\n   */\n  city?: string;\n  /**\n   * Country code (2 alphanumeric characters per ISO 3166-1).\n   * @maxLength 255\n   */\n  country?: string;\n  /**\n   * State (if applicable).\n   * @maxLength 255\n   */\n  state?: string;\n  /**\n   * Zip code.\n   * @maxLength 255\n   */\n  zip?: string;\n  /** Extra information to be displayed in the address. */\n  hint?: AddressHint;\n  /** Whether this address represents a physical location. */\n  physical?: boolean;\n  /**\n   * A Google-formatted version of this address (acceptable to most APIs).\n   * @maxLength 255\n   */\n  googleFormattedAddress?: string;\n  /**\n   * Street number.\n   * @maxLength 255\n   */\n  streetNumber?: string;\n  /**\n   * Apartment number (if applicable).\n   * @maxLength 255\n   */\n  apartmentNumber?: string;\n  /** Geocoordinates. */\n  coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition the user can state where he wants that additional description - before, after, or instead\n * the address string.\n */\nexport interface AddressHint {\n  /**\n   * Extra text displayed next to, or instead of, the actual address.\n   * @maxLength 255\n   */\n  text?: string;\n  /** Where the extra text should be displayed. */\n  placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n  BEFORE = 'BEFORE',\n  AFTER = 'AFTER',\n  REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n  | PlacementType\n  | 'BEFORE'\n  | 'AFTER'\n  | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n  /** Latitude. */\n  latitude?: number;\n  /** Longitude. */\n  longitude?: number;\n}\n\nexport interface Features {\n  /** `bookings_service_list` feature */\n  bookingsServiceList?: Feature;\n  /** `bookings_payments` feature */\n  bookingsPayments?: Feature;\n  /** `bookings_groups` feature */\n  bookingsGroups?: Feature;\n  /** `bookings_reminders` feature */\n  bookingsReminders?: Feature;\n  /** `bookings_courses` feature */\n  bookingsCourses?: Feature;\n  /** `bookings_appointments` feature */\n  bookingsAppointments?: Feature;\n  /** `bookings_sms_reminders` feature */\n  bookingsSmsReminders?: Feature;\n  /** `bookings_external_calendars` feature */\n  bookingsExternalCalendars?: Feature;\n  /** `bookings_staff_limit` feature */\n  bookingsStaffLimit?: Feature;\n  /** `anywhere_bookings_service_limit` feature */\n  anywhereBookingsServiceLimit?: Feature;\n  /** `anywhere_bookings_staff_limit` feature */\n  anywhereBookingsStaffLimit?: Feature;\n  /** `anywhere_remove_brand` feature */\n  anywhereRemoveBrand?: Feature;\n  /** `anywhere_customization_widget` feature */\n  anywhereCustomizationWidget?: Feature;\n  /** `bookings_video_conferencing` feature */\n  bookingsVideoConferencing?: Feature;\n  /** `accept_payments` feature */\n  acceptPayments?: Feature;\n}\n\nexport interface Feature {\n  /** true if feature is enabled */\n  enabled?: boolean;\n  /** limit for the feature quota. null if no limit exists for the feature */\n  quotaLimit?: string | null;\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 interface Notifications {\n  /** Whether to include payment links in automated booking notifications (confirmations, reminders, etc.). */\n  includePaymentLinks?: boolean | null;\n}\n\nexport interface StaffSelection {\n  /** When customers choose a staff member during the booking flow. */\n  timing?: StaffSelectionTimingWithLiterals;\n  /** How the staff member for a booking is selected. */\n  strategy?: StrategyWithLiterals;\n}\n\nexport enum StaffSelectionTiming {\n  /** Customers choose a staff member before selecting a time slot. */\n  BEFORE_SLOT_SELECTION = 'BEFORE_SLOT_SELECTION',\n  /** Customers choose a staff member after selecting a time slot. */\n  AFTER_SLOT_SELECTION = 'AFTER_SLOT_SELECTION',\n}\n\n/** @enumType */\nexport type StaffSelectionTimingWithLiterals =\n  | StaffSelectionTiming\n  | 'BEFORE_SLOT_SELECTION'\n  | 'AFTER_SLOT_SELECTION';\n\nexport enum Strategy {\n  /** Customers must choose a staff member. */\n  CUSTOMER_MUST_CHOOSE = 'CUSTOMER_MUST_CHOOSE',\n  /** Customers can choose a staff member but aren't required to. If they don't, an available staff member is assigned automatically. */\n  CUSTOMER_MAY_CHOOSE = 'CUSTOMER_MAY_CHOOSE',\n  /** Customers can't choose a staff member. An available staff member is assigned automatically. */\n  CUSTOMER_CANNOT_CHOOSE = 'CUSTOMER_CANNOT_CHOOSE',\n}\n\n/** @enumType */\nexport type StrategyWithLiterals =\n  | Strategy\n  | 'CUSTOMER_MUST_CHOOSE'\n  | 'CUSTOMER_MAY_CHOOSE'\n  | 'CUSTOMER_CANNOT_CHOOSE';\n\nexport interface LocationSelection {\n  /** When customers choose a service location during the booking flow. */\n  timing?: TimingWithLiterals;\n}\n\nexport enum Timing {\n  /** Customers choose a location before selecting a time slot. */\n  BEFORE_SLOT_SELECTION = 'BEFORE_SLOT_SELECTION',\n  /** Customers choose a location after selecting a time slot. */\n  AFTER_SLOT_SELECTION = 'AFTER_SLOT_SELECTION',\n}\n\n/** @enumType */\nexport type TimingWithLiterals =\n  | Timing\n  | 'BEFORE_SLOT_SELECTION'\n  | 'AFTER_SLOT_SELECTION';\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 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\n/** Owner booking experience settings. */\nexport interface OwnerFlow {\n  /** Booking creation settings. */\n  bookingCreation?: BookingCreationSettings;\n}\n\n/** Settings that control the behavior of the owner booking creation flow in the calendar. */\nexport interface BookingCreationSettings {\n  requiredFields?: RequiredFieldWithLiterals[];\n}\n\nexport enum RequiredField {\n  PHONE = 'PHONE',\n  EMAIL = 'EMAIL',\n}\n\n/** @enumType */\nexport type RequiredFieldWithLiterals = RequiredField | 'PHONE' | 'EMAIL';\n\nexport interface GetBookingsSettingsRequest {}\n\nexport enum RequestedFields {\n  SITE_PROPERTIES = 'SITE_PROPERTIES',\n  FEATURES = 'FEATURES',\n  OWNER_FLOW = 'OWNER_FLOW',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n  | RequestedFields\n  | 'SITE_PROPERTIES'\n  | 'FEATURES'\n  | 'OWNER_FLOW';\n\nexport interface GetBookingsSettingsResponse {\n  /** Retrieved bookings settings. */\n  bookingsSettings?: BookingsSettings;\n}\n\nexport interface UpdateBookingsSettingsRequest {\n  /** Bookings settings to update. */\n  bookingsSettings: BookingsSettings;\n}\n\nexport interface UpdateBookingsSettingsResponse {\n  /** Updated bookings settings. */\n  bookingsSettings?: BookingsSettings;\n}\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   * Symphony — a siteless site representing a project within Symphony (the evolution of Orion).\n   * Holds project data, conversations, assets, and manages collaborators / shared team members for the project.\n   */\n  SYMPHONY = 'SYMPHONY',\n  /** Nautilus platform app. */\n  NAUTILUS_APPS = 'NAUTILUS_APPS',\n  /**\n   * Vibu — a siteless site representing a project built with Vibu (the AI app builder).\n   * Holds the project's generated code, conversations, assets, and manages collaborators for the project.\n   */\n  VIBU = 'VIBU',\n  /**\n   * Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit\n   * (an Enterprise account may have several), holding that BrandKit's brand definition\n   * (theme, typography, assets) which is rolled out to the BrandKit's connected sites.\n   * MetaSites with this namespace will *not* be shown in a user's site list by default.\n   */\n  ENTERPRISE_BRAND_KIT = 'ENTERPRISE_BRAND_KIT',\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  | 'SYMPHONY'\n  | 'NAUTILUS_APPS'\n  | 'VIBU'\n  | 'ENTERPRISE_BRAND_KIT';\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\nexport interface Empty {}\n\nexport interface BusinessNotification {\n  reason?: ReasonWithLiterals;\n}\n\nexport enum Reason {\n  UNKNOWN = 'UNKNOWN',\n  CUSTOM_PROPERTIES_UPDATED = 'CUSTOM_PROPERTIES_UPDATED',\n  ONBOARDING_STATUS_UPDATED = 'ONBOARDING_STATUS_UPDATED',\n}\n\n/** @enumType */\nexport type ReasonWithLiterals =\n  | Reason\n  | 'UNKNOWN'\n  | 'CUSTOM_PROPERTIES_UPDATED'\n  | 'ONBOARDING_STATUS_UPDATED';\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 GetBookingsSettingsApplicationErrors = {\n  code?: 'BOOKINGS_SETTINGS_NOT_FOUND';\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 BookingsSettingsCreatedEnvelope {\n  entity: BookingsSettings;\n  metadata: EventMetadata;\n}\n\n/**\n * (explanation)\n *\n * Events are an integral part of your API and should be designed alongside all other methods that your domain exposes.\n * Remember - events are the only way a client can react to your domain's business flow without constantly polling your\n * API for changes.\n *\n * Therefore you MUST expose all lifecycle events even if you don't have a use case in your own business flows that\n * consumes them.\n *\n * In order to simplify clients ability to consume events in a coherent way, we have defined a common standard for\n * sending events from platformized services related to your domain (hence DomainEvents). This is both inside Wix and\n * externally (webhooks and velo).\n *\n * Refer to [AIP 7016 - Events and Hooks][1] to learn more about callback annotation.\n * Callback is an event, which is fired as a byproduct of calling this method.\n *\n * [1]: https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId BOOKINGS.SETTINGS_READ\n * @webhook\n * @eventType wix.bookings.v2.bookings_settings_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onBookingsSettingsCreated(\n  handler: (event: BookingsSettingsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface BookingsSettingsDeletedEnvelope {\n  entity: BookingsSettings;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId BOOKINGS.SETTINGS_READ\n * @webhook\n * @eventType wix.bookings.v2.bookings_settings_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onBookingsSettingsDeleted(\n  handler: (event: BookingsSettingsDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface BookingsSettingsUpdatedEnvelope {\n  entity: BookingsSettings;\n  metadata: EventMetadata;\n  /** @hidden */\n  modifiedFields: Record<string, any>;\n}\n\n/** @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId BOOKINGS.SETTINGS_READ\n * @webhook\n * @eventType wix.bookings.v2.bookings_settings_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onBookingsSettingsUpdated(\n  handler: (event: BookingsSettingsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves the site's bookings settings.\n *\n * If no settings have been customized for the site yet, the default settings are returned.\n * @public\n * @documentationMaturity preview\n * @permissionId BOOKINGS.SETTINGS_READ\n * @applicableIdentity APP\n * @returns Retrieved bookings settings.\n * @fqn wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings\n */\nexport async function getBookingsSettings(): Promise<\n  NonNullablePaths<BookingsSettings, `displayTimeZone.basedOn`, 3> & {\n    __applicationErrorsType?: GetBookingsSettingsApplicationErrors;\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    ambassadorWixBookingsV2BookingsSettings.getBookingsSettings(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      ?.bookingsSettings!;\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 the site's bookings settings.\n *\n * Each time the bookings settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the bookings settings. This ensures you're working with the latest bookings settings and prevents unintended overwrites.\n *\n * This is a partial update: only the fields listed in `fieldMask.paths` are changed. Fields not included in the field mask keep their current values.\n *\n * If no settings have been customized for the site yet, the default settings are created and then updated with the values you provide.\n * @param bookingsSettings - Bookings settings to update.\n * @public\n * @documentationMaturity preview\n * @requiredField bookingsSettings\n * @requiredField bookingsSettings.revision\n * @permissionId BOOKINGS.SETTINGS_UPDATE\n * @applicableIdentity APP\n * @returns Updated bookings settings.\n * @fqn wix.bookings.settings.v2.BookingsSettingsService.UpdateBookingsSettings\n */\nexport async function updateBookingsSettings(\n  bookingsSettings: NonNullablePaths<BookingsSettings, `revision`, 2>\n): Promise<NonNullablePaths<BookingsSettings, `displayTimeZone.basedOn`, 3>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    bookingsSettings: bookingsSettings,\n  });\n\n  const reqOpts =\n    ambassadorWixBookingsV2BookingsSettings.updateBookingsSettings(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      ?.bookingsSettings!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { bookingsSettings: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['bookingsSettings']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixBookingsSettingsV2BookingsSettingsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/bookings-settings',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_bookings-settings';\n\n/**\n * Retrieves the site's bookings settings.\n *\n * If no settings have been customized for the site yet, the default settings are returned.\n */\nexport function getBookingsSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getBookingsSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.bookings.v2.bookings_settings',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBookingsSettingsV2BookingsSettingsServiceUrl({\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: 'bookingsSettings.createdDate' },\n              { path: 'bookingsSettings.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'bookingsSettings.siteProperties.address.coordinates.latitude',\n              },\n              {\n                path: 'bookingsSettings.siteProperties.address.coordinates.longitude',\n              },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveWixBookingsSettingsV2BookingsSettingsServiceUrl({\n            protoPath: '/v2/settings',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __getBookingsSettings;\n}\n\n/**\n * Updates the site's bookings settings.\n *\n * Each time the bookings settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the bookings settings. This ensures you're working with the latest bookings settings and prevents unintended overwrites.\n *\n * This is a partial update: only the fields listed in `fieldMask.paths` are changed. Fields not included in the field mask keep their current values.\n *\n * If no settings have been customized for the site yet, the default settings are created and then updated with the values you provide.\n */\nexport function updateBookingsSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateBookingsSettings({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'bookingsSettings.createdDate' },\n          { path: 'bookingsSettings.updatedDate' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          {\n            path: 'bookingsSettings.siteProperties.address.coordinates.latitude',\n          },\n          {\n            path: 'bookingsSettings.siteProperties.address.coordinates.longitude',\n          },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.bookings.v2.bookings_settings',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.bookings.settings.v2.BookingsSettingsService.UpdateBookingsSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBookingsSettingsV2BookingsSettingsServiceUrl({\n        protoPath: '/v2/bookings-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: 'bookingsSettings.createdDate' },\n              { path: 'bookingsSettings.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'bookingsSettings.siteProperties.address.coordinates.latitude',\n              },\n              {\n                path: 'bookingsSettings.siteProperties.address.coordinates.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateBookingsSettings;\n}\n","import {\n  getBookingsSettings as publicGetBookingsSettings,\n  updateBookingsSettings as publicUpdateBookingsSettings,\n} from './bookings-v2-bookings-settings-bookings-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 { onBookingsSettingsCreated as publicOnBookingsSettingsCreated } from './bookings-v2-bookings-settings-bookings-settings.public.js';\nimport { onBookingsSettingsDeleted as publicOnBookingsSettingsDeleted } from './bookings-v2-bookings-settings-bookings-settings.public.js';\nimport { onBookingsSettingsUpdated as publicOnBookingsSettingsUpdated } from './bookings-v2-bookings-settings-bookings-settings.public.js';\n\nexport const getBookingsSettings: MaybeContext<\n  BuildRESTFunction<typeof publicGetBookingsSettings> &\n    typeof publicGetBookingsSettings\n> = /*#__PURE__*/ createRESTModule(publicGetBookingsSettings);\nexport const updateBookingsSettings: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateBookingsSettings> &\n    typeof publicUpdateBookingsSettings\n> = /*#__PURE__*/ createRESTModule(publicUpdateBookingsSettings);\n/**\n * (explanation)\n *\n * Events are an integral part of your API and should be designed alongside all other methods that your domain exposes.\n * Remember - events are the only way a client can react to your domain's business flow without constantly polling your\n * API for changes.\n *\n * Therefore you MUST expose all lifecycle events even if you don't have a use case in your own business flows that\n * consumes them.\n *\n * In order to simplify clients ability to consume events in a coherent way, we have defined a common standard for\n * sending events from platformized services related to your domain (hence DomainEvents). This is both inside Wix and\n * externally (webhooks and velo).\n *\n * Refer to [AIP 7016 - Events and Hooks][1] to learn more about callback annotation.\n * Callback is an event, which is fired as a byproduct of calling this method.\n *\n * [1]: https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events\n */\nexport const onBookingsSettingsCreated: BuildEventDefinition<\n  typeof publicOnBookingsSettingsCreated\n> &\n  typeof publicOnBookingsSettingsCreated = createEventModule(\n  publicOnBookingsSettingsCreated\n);\n/** */\nexport const onBookingsSettingsDeleted: BuildEventDefinition<\n  typeof publicOnBookingsSettingsDeleted\n> &\n  typeof publicOnBookingsSettingsDeleted = createEventModule(\n  publicOnBookingsSettingsDeleted\n);\n/** */\nexport const onBookingsSettingsUpdated: BuildEventDefinition<\n  typeof publicOnBookingsSettingsUpdated\n> &\n  typeof publicOnBookingsSettingsUpdated = createEventModule(\n  publicOnBookingsSettingsUpdated\n);\n\nexport {\n  BasedOn,\n  PlacementType,\n  StaffSelectionTiming,\n  Strategy,\n  Timing,\n  WebhookIdentityType,\n  RequiredField,\n  RequestedFields,\n  State,\n  SiteCreatedContext,\n  Namespace,\n  DeleteStatus,\n  Reason,\n} from './bookings-v2-bookings-settings-bookings-settings.universal.js';\nexport {\n  BookingsSettings,\n  CartCheckout,\n  MultiServiceAppointments,\n  DisplayTimeZone,\n  SiteProperties,\n  Locale,\n  Address,\n  AddressHint,\n  GeoCoordinates,\n  Features,\n  Feature,\n  ExtendedFields,\n  Notifications,\n  StaffSelection,\n  LocationSelection,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  OwnerFlow,\n  BookingCreationSettings,\n  GetBookingsSettingsRequest,\n  GetBookingsSettingsResponse,\n  UpdateBookingsSettingsRequest,\n  UpdateBookingsSettingsResponse,\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  Empty,\n  BusinessNotification,\n  AccountInfo,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  BookingsSettingsCreatedEnvelope,\n  BookingsSettingsDeletedEnvelope,\n  BookingsSettingsUpdatedEnvelope,\n} from './bookings-v2-bookings-settings-bookings-settings.universal.js';\nexport {\n  BasedOnWithLiterals,\n  PlacementTypeWithLiterals,\n  StaffSelectionTimingWithLiterals,\n  StrategyWithLiterals,\n  TimingWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  RequiredFieldWithLiterals,\n  RequestedFieldsWithLiterals,\n  StateWithLiterals,\n  SiteCreatedContextWithLiterals,\n  NamespaceWithLiterals,\n  DeleteStatusWithLiterals,\n  ReasonWithLiterals,\n  GetBookingsSettingsApplicationErrors,\n} from './bookings-v2-bookings-settings-bookings-settings.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,g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MACpB;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,6BAA6B;AAAA,UACrC,EAAE,MAAM,6BAA6B;AAAA,QACvC;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qDAAqD;AAAA,UAC7D,EAAE,MAAM,sDAAsD;AAAA,UAC9D;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA;AAAA,YACE,MAAM;AAAA,UACR;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAmC;;;AGlJnC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAU3B,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,0BAGK,iCAAiBA,uBAA4B;AAoBxD,IAAMC,6BAG8B;AAAA,EACzC;AACF;AAEO,IAAMC,6BAG8B;AAAA,EACzC;AACF;AAEO,IAAMC,6BAG8B;AAAA,EACzC;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTFloatToSDKFloat","transformRESTTimestampToSDKTimestamp","transformPaths","payload","BasedOn","PlacementType","StaffSelectionTiming","Strategy","Timing","WebhookIdentityType","RequiredField","RequestedFields","State","SiteCreatedContext","Namespace","DeleteStatus","Reason","getBookingsSettings","updateBookingsSettings","getBookingsSettings","updateBookingsSettings","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTFloatToSDKFloat","getBookingsSettings","updateBookingsSettings","onBookingsSettingsCreated","onBookingsSettingsDeleted","onBookingsSettingsUpdated"]}