{"version":3,"sources":["../../src/automations-triggercatalog-v1-trigger-trigger-catalog.universal.ts","../../src/automations-triggercatalog-v1-trigger-trigger-catalog.http.ts","../../src/automations-triggercatalog-v1-trigger-trigger-catalog.public.ts","../../src/automations-triggercatalog-v1-trigger-trigger-catalog.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n  HttpClient,\n  HttpResponse,\n  NonNullablePaths,\n  QuerySpec,\n  Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixAutomationsTriggercatalogV1Trigger from './automations-triggercatalog-v1-trigger-trigger-catalog.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface Trigger {\n  /**\n   * Trigger ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @format GUID\n   * @immutable\n   */\n  appId?: string;\n  /**\n   * Trigger key.\n   *\n   * Learn about [setting up a trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).\n   * @minLength 1\n   * @maxLength 100\n   * @immutable\n   */\n  triggerKey?: string;\n  /**\n   * Trigger [payload schema](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema).\n   * @immutable\n   */\n  payloadDataSchema?: Record<string, any> | null;\n  /**\n   * Trigger display name. Users see this name when they [choose a trigger for an automation](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-2-choose-a-trigger).\n   * @minLength 5\n   * @maxLength 80\n   * @readonly\n   */\n  displayName?: string;\n  /**\n   * [Filter fields](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#filter-fields) applied to the trigger payload schema.\n   * @maxSize 5\n   */\n  filters?: Filter[];\n  /** Additional [service plugin methods](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction#implement-the-service-plugin-methods) implemented for this trigger. */\n  implementedMethods?: ImplementedMethods;\n  /**\n   * Date and time the trigger was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the trigger was last updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Trigger base URI. Wix calls your trigger at this base address.\n   *\n   * Learn more about the [Wix Automations Trigger Provider service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction).\n   * @maxLength 256\n   */\n  baseUri?: string | null;\n}\n\nexport enum TimeUnit {\n  UNKNOWN_TIME_UNIT = 'UNKNOWN_TIME_UNIT',\n  /** Minutes. */\n  MINUTES = 'MINUTES',\n  /** Hours. */\n  HOURS = 'HOURS',\n  /** Days. */\n  DAYS = 'DAYS',\n  /** Weeks. */\n  WEEKS = 'WEEKS',\n  /** Months. */\n  MONTHS = 'MONTHS',\n}\n\n/** @enumType */\nexport type TimeUnitWithLiterals =\n  | TimeUnit\n  | 'UNKNOWN_TIME_UNIT'\n  | 'MINUTES'\n  | 'HOURS'\n  | 'DAYS'\n  | 'WEEKS'\n  | 'MONTHS';\n\n/** @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment */\nexport enum Segment {\n  UNKNOWN = 'UNKNOWN',\n  /**\n   * For events that are consumed in 42 and uw2 only.\n   * This also includes a case where an event is produced from 84/AE1 via toMainDC\n   */\n  USERS = 'USERS',\n  /**\n   * For events that are consumed in all DCs.\n   * This includes both cases where an event is published from 84/AE1 and cases where it's published from 42/uw2 and replicated via Raven to 84/AE1\n   */\n  PUBLIC = 'PUBLIC',\n  /**\n   * For DevEx services/migrations.\n   * Deployed on 42, uw2.\n   */\n  OTHERS = 'OTHERS',\n}\n\n/** @enumType */\nexport type SegmentWithLiterals =\n  | Segment\n  | 'UNKNOWN'\n  | 'USERS'\n  | 'PUBLIC'\n  | 'OTHERS';\n\nexport enum SourceType {\n  UNKNOWN_SOURCE_TYPE = 'UNKNOWN_SOURCE_TYPE',\n  DEV_CENTER = 'DEV_CENTER',\n  DOMAIN_EVENT = 'DOMAIN_EVENT',\n}\n\n/** @enumType */\nexport type SourceTypeWithLiterals =\n  | SourceType\n  | 'UNKNOWN_SOURCE_TYPE'\n  | 'DEV_CENTER'\n  | 'DOMAIN_EVENT';\n\nexport interface DomainEventOptions {\n  /**\n   * fqdn of the entity\n   * @minLength 1\n   * @maxLength 100\n   */\n  fqdn?: string;\n  /**\n   * the topic of the domain event\n   * @minLength 1\n   * @maxLength 100\n   */\n  topic?: string;\n  /**\n   * the slug of the domain event\n   * @minLength 1\n   * @maxLength 100\n   */\n  slug?: string;\n  /** segment of the domain event */\n  segment?: SegmentWithLiterals;\n}\n\nexport enum Maturity {\n  /** Unknown maturity. */\n  UNKNOWN_MATURITY = 'UNKNOWN_MATURITY',\n  /** The trigger component was created. The component is exposed only when the app is installed in test mode. */\n  CREATED = 'CREATED',\n  /** The trigger passed approval and the translation process has started. The trigger is exposed to EN Wix users. */\n  BETA = 'BETA',\n  /** The trigger passed translations and final approval and is exposed to all users. */\n  GA = 'GA',\n  /** The trigger is archived. */\n  ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type MaturityWithLiterals =\n  | Maturity\n  | 'UNKNOWN_MATURITY'\n  | 'CREATED'\n  | 'BETA'\n  | 'GA'\n  | 'ARCHIVED';\n\nexport interface Filter extends FilterFieldKeyOneOf {\n  /** The static field key. */\n  staticFieldKey?: string;\n  /** Dynamic field key data. */\n  dynamicFieldKey?: DynamicFieldKey;\n  /**\n   * Filter ID.\n   * @format GUID\n   */\n  _id?: string;\n  /** Field key type. */\n  fieldKeyType?: FieldKeyTypeWithLiterals;\n  /** Input field metadata. */\n  valueInput?: ValueInput;\n  /**\n   * Filters to display after first selection is made.\n   * @maxSize 5\n   */\n  followUpFilters?: Filter[];\n}\n\n/** @oneof */\nexport interface FilterFieldKeyOneOf {\n  /** The static field key. */\n  staticFieldKey?: string;\n  /** Dynamic field key data. */\n  dynamicFieldKey?: DynamicFieldKey;\n}\n\nexport interface EntitySelector {\n  /** Entity selector ID. */\n  _id?: string;\n  /**\n   * Mapping of the entity selector query fields to filter IDs.\n   *\n   * For example, let's say the Workflows `Card moved` trigger has 2 filters:\n   *\n   * - Select a workflow, with filter ID `466d2067-05bd-44f9-99c7-d029b93e4feb`.\n   * - Select a step, with filter ID `b45f8475-bd44-4971-8820-7031ee12a708`.\n   *\n   * The step entity selector requires the workflow ID as input in order to return the list of relevant steps.\n   * We can map the `workflowId` field to the workflow filter in `queryFieldToFilterIdMapping`.\n   *\n   * When the Wix user selects a workflow in the workflow filter in the automation builder,\n   * Wix passes the selected workflow's ID in the `workflowId` field to the step entity selector.\n   * The step filter then shows the relevant steps of the selected workflow for the user to select.\n   */\n  queryFieldToFilterIdMapping?: Record<string, string>;\n  /**\n   * Whether a Wix user can select multiple items.\n   *\n   * Default: `false`\n   */\n  multiSelect?: boolean;\n  /**\n   * Mapping of the entity selector query fields to predefined values.\n   * This is useful when using the same entity selector in different triggers.\n   *\n   * For example: Let's say the `RSVPed to event` trigger has one filter, `Select a specific event`.\n   * This filter has an ID `e91733fc-81b7-45ca-b50c-f0c292a23af5`.\n   *\n   * The events entity selector has a query field of `eventType`, that should be passed in order to return the list of relevant events.\n   * Otherwise, all events will be returned regardless of type. Map the `eventType` field to `RSVP`.\n   *\n   * When the Wix user selects an event in the event filter in the automation builder,\n   * the client shows only `RSVP` events in the selection options because the `eventType` field was set to `RSVP`.\n   */\n  queryFieldToValueMapping?: Record<string, string>;\n}\n\n/** The type of input the filter field expects. */\nexport enum ValueInputType {\n  /** Unknown filter field input. */\n  UNKNOWN_VALUE_INPUT = 'UNKNOWN_VALUE_INPUT',\n  /** Filter field input is a selection of one from multiple entities, such as a form. */\n  ENTITY_SELECTOR = 'ENTITY_SELECTOR',\n  /** Filter field value is input from a Wix user. */\n  USER_INPUT = 'USER_INPUT',\n  /** Filter field value is a static value defined in the payload schema. */\n  STATIC_ITEMS = 'STATIC_ITEMS',\n}\n\n/** @enumType */\nexport type ValueInputTypeWithLiterals =\n  | ValueInputType\n  | 'UNKNOWN_VALUE_INPUT'\n  | 'ENTITY_SELECTOR'\n  | 'USER_INPUT'\n  | 'STATIC_ITEMS';\n\nexport interface UserInput extends UserInputInputOptionsOneOf {\n  /** Options for user input of type `number`. */\n  numberInputOptions?: NumberInputOptions;\n  /** Options for user input of type `boolean`. */\n  booleanInputOptions?: BooleanInputOptions;\n  /** User input type. */\n  type?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface UserInputInputOptionsOneOf {\n  /** Options for user input of type `number`. */\n  numberInputOptions?: NumberInputOptions;\n  /** Options for user input of type `boolean`. */\n  booleanInputOptions?: BooleanInputOptions;\n}\n\nexport enum Type {\n  /** Unknown input type. */\n  UNKNOWN_USER_INPUT = 'UNKNOWN_USER_INPUT',\n  /** Number input type. */\n  NUMBER = 'NUMBER',\n  /** Boolean input type. */\n  BOOLEAN = 'BOOLEAN',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n  | Type\n  | 'UNKNOWN_USER_INPUT'\n  | 'NUMBER'\n  | 'BOOLEAN';\n\nexport interface NumberInputOptions {\n  /** Default number value. */\n  defaultValue?: number | null;\n  /** Minimum number value. */\n  minValue?: number | null;\n  /** Maximum number value. */\n  maxValue?: number | null;\n}\n\nexport interface BooleanInputOptions {\n  /** Default boolean value. */\n  defaultValue?: boolean | null;\n}\n\nexport interface StaticItems {\n  /**\n   * Whether the Wix user can select multiple items\n   *\n   * Default: `false`.\n   */\n  multiSelect?: boolean;\n  /**\n   * Static list of values for the Wix user to select.\n   *\n   * The value is saved on the automation-level trigger filter, and shown to Wix users at setup time if `displayName` is missing.\n   * `displayName` is optionally shown to users to help select a value.\n   */\n  staticValues?: StaticItemValue[];\n}\n\nexport interface StaticItemValue {\n  /**\n   * item identifier\n   * @format GUID\n   */\n  _id?: string;\n  /** static value */\n  value?: string;\n  /** optional displayName for the value */\n  displayName?: string | null;\n}\n\nexport enum FieldKeyType {\n  /** The field key type is unknown. */\n  UNKNOWN_FIELD_KEY_TYPE = 'UNKNOWN_FIELD_KEY_TYPE',\n  /** The field key is a static value. */\n  STATIC_FIELD_KEY = 'STATIC_FIELD_KEY',\n  /** The field key changes depending on the filter selection. */\n  DYNAMIC_FIELD_KEY = 'DYNAMIC_FIELD_KEY',\n}\n\n/** @enumType */\nexport type FieldKeyTypeWithLiterals =\n  | FieldKeyType\n  | 'UNKNOWN_FIELD_KEY_TYPE'\n  | 'STATIC_FIELD_KEY'\n  | 'DYNAMIC_FIELD_KEY';\n\nexport interface DynamicFieldKey {\n  /** Field key label. */\n  label?: string;\n  /** Field key description. */\n  description?: string | null;\n  /** Selects the entity to be used as a dynamic field key. */\n  entitySelector?: EntitySelector;\n}\n\nexport interface ValueInput extends ValueInputInputOptionsOneOf {\n  /** Entity selector details. */\n  entitySelector?: EntitySelector;\n  /** User input details. */\n  userInput?: UserInput;\n  /** Static value details. */\n  staticItems?: StaticItems;\n  /** Input value type. */\n  type?: ValueInputTypeWithLiterals;\n  /** Input field label. */\n  label?: string;\n  /** Input field description. May be used for a tooltip. */\n  description?: string | null;\n  /**\n   * Whether the Wix user is required to enter a value in the field.\n   *\n   * Default: `false`\n   */\n  required?: boolean;\n  /**\n   * Whether Wix should reevaluate the dynamic schema when the field value changes.\n   *\n   * Default: `false`\n   */\n  reevaluateDynamicSchema?: boolean;\n}\n\n/** @oneof */\nexport interface ValueInputInputOptionsOneOf {\n  /** Entity selector details. */\n  entitySelector?: EntitySelector;\n  /** User input details. */\n  userInput?: UserInput;\n  /** Static value details. */\n  staticItems?: StaticItems;\n}\n\nexport interface Metadata {\n  /** Whether the trigger is hidden from Wix users. */\n  hidden?: boolean;\n}\n\nexport interface ImplementedMethods {\n  /**\n   * Whether [Validate Configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) is implemented.\n   *\n   * Default: `false`.\n   */\n  validateConfiguration?: boolean;\n  /**\n   * Whether [Get Dynamic Schema](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/get-dynamic-schema) is implemented.\n   *\n   * Default: `false`.\n   */\n  getDynamicSchema?: boolean;\n  /**\n   * Whether [Refresh Payload](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/refresh-payload) is implemented.\n   *\n   * Default: `false`.\n   */\n  refreshPayload?: boolean | null;\n}\n\nexport interface DebounceConfiguration {\n  /**\n   * UI Label for the time field configuration.\n   * @minLength 1\n   * @maxLength 110\n   */\n  timeFieldLabel?: string;\n  /**\n   * UI Tooltip to explain the time field.\n   * @minLength 1\n   * @maxLength 250\n   */\n  timeFieldTooltip?: string | null;\n  /**\n   * The field key in the trigger payload of the entity/event to debounce on.\n   * For example, if the trigger is \"user logged in\", the resource is a contact and the resource key is \"contactId\".\n   * Another example: if the trigger is \"visitor logged in\", the resource is a visitor and the resource key is \"visitorId\".\n   * @minLength 1\n   * @maxLength 110\n   */\n  fieldKey?: string;\n  /**\n   * Which time units the Wix user is allowed to select and use.\n   * @minSize 2\n   */\n  availableTimeUnits?: TimeUnitWithLiterals[];\n  /** The default time value to use. */\n  defaultTimeValueInDefaultTimeUnit?: number;\n  /** The default time unit to use. */\n  defaultTimeUnit?: TimeUnitWithLiterals;\n}\n\nexport interface Source extends SourceOptionsOneOf {\n  /** source information for domain events */\n  domainEventOptions?: DomainEventOptions;\n  /** the source type */\n  type?: SourceTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface SourceOptionsOneOf {\n  /** source information for domain events */\n  domainEventOptions?: DomainEventOptions;\n}\n\nexport interface RetryExperimentCreation {\n  /** trigger spec info */\n  triggerSpecInfo?: TriggerSpecInfo;\n  /**\n   * app id\n   * @format GUID\n   */\n  appId?: string;\n  /** experiment action type */\n  experimentActionType?: ExperimentActionTypeWithLiterals;\n  /**\n   * component id\n   * @format GUID\n   */\n  componentId?: string;\n}\n\nexport interface TriggerSpecInfo {\n  /**\n   * Spec to conduct on for the automation\n   * @maxLength 128\n   */\n  spec?: string;\n  /**\n   * Value the spec should return in order to affect the user with the operation\n   * e.g. creation - show the users the automation, update - show the users the updated automation, deletion - not show the users the automation\n   * @maxLength 128\n   */\n  variantValue?: string | null;\n  /**\n   * Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)\n   * For example, if 50 is set, version 49 and below (including 49) will not expose the preinstalled automation to the user.\n   */\n  experimentVersion?: number;\n}\n\nexport enum ExperimentActionType {\n  UNKNOWN_ACTION = 'UNKNOWN_ACTION',\n  CREATE_COMPONENT = 'CREATE_COMPONENT',\n  UPDATE_COMPONENT = 'UPDATE_COMPONENT',\n  DELETE_COMPONENT = 'DELETE_COMPONENT',\n}\n\n/** @enumType */\nexport type ExperimentActionTypeWithLiterals =\n  | ExperimentActionType\n  | 'UNKNOWN_ACTION'\n  | 'CREATE_COMPONENT'\n  | 'UPDATE_COMPONENT'\n  | 'DELETE_COMPONENT';\n\nexport interface CreateTriggerRequest {\n  /** Trigger to add to the app. */\n  trigger?: Trigger;\n}\n\nexport interface CreateTriggerResponse {\n  /** Created trigger. */\n  trigger?: Trigger;\n}\n\nexport interface GetTriggerRequest {\n  /**\n   * Trigger ID\n   * @format GUID\n   */\n  triggerId?: string;\n}\n\nexport interface GetTriggerResponse {\n  /** Trigger Configuration */\n  trigger?: Trigger;\n}\n\nexport interface UpdateTriggerRequest {\n  /** Trigger to update. */\n  trigger?: Trigger;\n}\n\nexport interface UpdateTriggerResponse {\n  /** Updated trigger. */\n  updatedTrigger?: Trigger;\n}\n\nexport interface UpdateTriggerComponentRequest {\n  /** Trigger Configuration */\n  trigger?: Trigger;\n  /** Trigger spec info */\n  triggerSpecInfo?: TriggerSpecInfo;\n}\n\nexport interface UpdateTriggerComponentResponse {\n  /** Trigger Configuration */\n  updatedTrigger?: Trigger;\n}\n\nexport interface UpdateTriggerMaturityRequest {\n  /**\n   * The trigger id\n   * @format GUID\n   */\n  _id?: string;\n  /** maturity */\n  maturity?: MaturityWithLiterals;\n}\n\nexport interface UpdateTriggerMaturityResponse {\n  /** Trigger Configuration */\n  updatedTrigger?: Trigger;\n}\n\nexport interface DeleteTriggerRequest {\n  /**\n   * The trigger id\n   * @format GUID\n   */\n  _id?: string;\n}\n\nexport interface DeleteTriggerResponse {}\n\nexport interface DeleteTriggerByAppIdAndKeyRequest {\n  /**\n   * ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @format GUID\n   */\n  triggerAppId: string;\n  /**\n   * Trigger key.\n   *\n   * Learn more about how trigger providers [add triggers to their app](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @minLength 1\n   * @maxLength 100\n   */\n  triggerKey: string;\n}\n\nexport interface DeleteTriggerByAppIdAndKeyResponse {}\n\nexport interface MigrateComponentToTriggerRequest {\n  /**\n   * The trigger App Id\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * The component id\n   * @format GUID\n   */\n  componentId?: string;\n}\n\nexport interface MigrateComponentToTriggerResponse {}\n\nexport interface RemoveComponentDataRequest {\n  /**\n   * The trigger App Id\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * The component id\n   * @format GUID\n   */\n  componentId?: string;\n}\n\nexport interface RemoveComponentDataResponse {}\n\nexport interface GetTriggerByAppIdAndKeyRequest {\n  /** ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app). */\n  appId: string;\n  /**\n   * Trigger key.\n   *\n   * Learn more about [adding a trigger to your app](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   */\n  triggerKey: string;\n  /**\n   * When the trigger payload schema includes the [`identityType` annotation](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema#identitytype), whether to include the full schema of that identity type. For example, when `true` and the `identityType` is `contact`, the full [contact schema](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/contact-v4/contact-object) is returned.\n   *\n   * Default: `false`\n   */\n  enrichWithIdentitySchema?: boolean | null;\n}\n\nexport interface GetTriggerByAppIdAndKeyResponse {\n  /** The requested trigger. */\n  trigger?: Trigger;\n}\n\nexport interface GetRuntimeTriggerRequest {\n  /**\n   * The trigger App Id\n   * @format GUID\n   */\n  appId?: string;\n  /** Trigger Configuration key */\n  triggerKey?: string;\n}\n\nexport interface GetRuntimeTriggerResponse {\n  /** Trigger Configuration */\n  trigger?: Trigger;\n}\n\nexport interface GetLatestTriggerRequest {\n  /**\n   * The trigger App Id\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * Trigger Configuration key\n   * @minLength 1\n   * @maxLength 100\n   */\n  triggerKey?: string;\n}\n\nexport interface GetLatestTriggerResponse {\n  /** Trigger Configuration */\n  trigger?: Trigger;\n}\n\nexport interface QueryRuntimeTriggersRequest {\n  /** WQL expression - support filter, sort, paging, fields and field sets */\n  query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n  /** Paging options to limit and offset the number of items. */\n  paging?: Paging;\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.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   */\n  sort?: Sorting[];\n  /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fields?: string[];\n  /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n  /** Paging options to limit and offset the number of items. */\n  paging?: Paging;\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 Paging {\n  /** Number of items to load. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryRuntimeTriggersResponse {\n  /** Queried triggers configuration */\n  results?: Trigger[];\n  /** paging data of the response */\n  paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n  cursors?: Cursors;\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 QueryTriggersRequest {\n  /**\n   * Query options.\n   *\n   * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more information.\n   */\n  query: QueryV2;\n}\n\nexport interface QueryTriggersResponse {\n  /** Retrieved triggers. */\n  results?: Trigger[];\n  /** Paging metadata. */\n  paging?: PagingMetadataV2;\n}\n\nexport interface ResolveTriggersRequest {\n  /** Query options. */\n  query?: QueryV2;\n  /** If provided, all triggers associated with the app ID are retrieved, regardless of maturity. The app must be installed on the site. */\n  appId?: string | null;\n}\n\nexport interface ResolveTriggersResponse {\n  /** List of retrieved triggers. */\n  results?: Trigger[];\n  /** Paging metadata of the response. */\n  paging?: PagingMetadataV2;\n}\n\nexport interface GetTriggerDynamicSchemaRequest {\n  /**\n   * ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @format GUID\n   */\n  appId: string;\n  /**\n   * Trigger key.\n   *\n   * Learn more about [adding a trigger to your app](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @minLength 1\n   * @maxLength 100\n   */\n  triggerKey: string;\n  /**\n   * When the trigger includes [filter fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields), the trigger schema only includes the schemas of the specified filter fields.\n   *\n   * When empty, the full trigger's payload schema is returned.\n   * @maxSize 5\n   */\n  selectedFilterOptions?: SelectedFilterOptions[];\n}\n\nexport interface SelectedFilterOptions {\n  /**\n   * Key representing a field from the trigger's [payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema) that has been configured as an [item selection filter](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields#item-selection). For example `formId`.\n   * @minLength 1\n   * @maxLength 110\n   */\n  fieldKey?: string;\n  /**\n   * Values selected for the filter field.\n   * @maxSize 100\n   */\n  values?: string[];\n}\n\nexport interface GetDynamicSchemaResponse {\n  /** A [JSON schema](https://json-schema.org/) corresponding to the filter selection sent in the request. */\n  dynamicSchema?: Record<string, any> | null;\n}\n\nexport interface GetIdentitiesSchemaRequest {}\n\nexport interface GetIdentitiesSchemaResponse {\n  /**\n   * identities schema with a property per identity (currently only \"contact\"):\n   * the schema would look like this:\n   * {\n   * \"type\": \"object\",\n   * \"properties\": {\n   * \"contact\": {\n   * \"type\": \"object\",\n   * \"properties\": {\n   * ...contact identity fields\n   * }\n   * }\n   * }\n   * }\n   */\n  identitiesSchema?: Record<string, any> | null;\n}\n\nexport interface ListMarketplaceAndWhitelistTriggersRequest {\n  /** If true, include hidden triggers. If false or unset, only show non-hidden triggers. default is false. */\n  showHidden?: boolean | null;\n}\n\nexport interface ListMarketplaceAndWhitelistTriggersResponse {\n  results?: Trigger[];\n}\n\nexport interface ListWhitelistTriggerAppsRequest {}\n\nexport interface ListWhitelistTriggerAppsResponse {\n  results?: string[];\n}\n\nexport interface BulkCreateWhitelistTriggerAppsRequest {\n  apps?: string[];\n}\n\nexport interface BulkCreateWhitelistTriggerAppsResponse {}\n\nexport interface BulkDeleteWhitelistTriggerAppsRequest {\n  apps?: string[];\n}\n\nexport interface BulkDeleteWhitelistTriggerAppsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/**\n * Creates a trigger for the specified app. Once created, users can [create automations](https://support.wix.com/en/wix-automations-7067897) that run when this trigger occurs.\n *\n * Learn more about [triggers](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers).\n *\n * > **Note:** You can only create triggers for [apps you own or collaborate on](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/manage-collaborators).\n * @public\n * @documentationMaturity preview\n * @requiredField options.trigger.appId\n * @requiredField options.trigger.displayName\n * @requiredField options.trigger.payloadDataSchema\n * @requiredField options.trigger.triggerKey\n * @returns Created trigger.\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.CreateTrigger\n */\nexport async function createTrigger(\n  options?: NonNullablePaths<\n    CreateTriggerOptions,\n    | `trigger.appId`\n    | `trigger.displayName`\n    | `trigger.payloadDataSchema`\n    | `trigger.triggerKey`,\n    3\n  >\n): Promise<\n  NonNullablePaths<\n    Trigger,\n    | `appId`\n    | `triggerKey`\n    | `displayName`\n    | `filters`\n    | `filters.${number}.staticFieldKey`\n    | `filters.${number}.dynamicFieldKey.label`\n    | `filters.${number}.dynamicFieldKey.entitySelector._id`\n    | `filters.${number}.dynamicFieldKey.entitySelector.multiSelect`\n    | `filters.${number}._id`\n    | `filters.${number}.fieldKeyType`\n    | `filters.${number}.valueInput.userInput.type`\n    | `filters.${number}.valueInput.staticItems.multiSelect`\n    | `filters.${number}.valueInput.type`\n    | `filters.${number}.valueInput.label`\n    | `filters.${number}.valueInput.required`\n    | `filters.${number}.valueInput.reevaluateDynamicSchema`\n    | `implementedMethods.validateConfiguration`\n    | `implementedMethods.getDynamicSchema`,\n    6\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    trigger: options?.trigger,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.createTrigger(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.trigger!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { trigger: '$[0].trigger' },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateTriggerOptions {\n  /** Trigger to add to the app. */\n  trigger?: Trigger;\n}\n\n/**\n * Updates the specified trigger for the specified app.\n *\n * After the trigger is updated, it only contains the values specified in the request. Earlier values are replaced.\n * @param _id - Trigger ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField options.trigger.appId\n * @requiredField options.trigger.triggerKey\n * @returns Updated trigger.\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.UpdateTrigger\n */\nexport async function updateTrigger(\n  _id: string,\n  options?: NonNullablePaths<\n    UpdateTriggerOptions,\n    `trigger.appId` | `trigger.triggerKey`,\n    3\n  >\n): Promise<\n  NonNullablePaths<\n    Trigger,\n    | `appId`\n    | `triggerKey`\n    | `displayName`\n    | `filters`\n    | `filters.${number}.staticFieldKey`\n    | `filters.${number}.dynamicFieldKey.label`\n    | `filters.${number}.dynamicFieldKey.entitySelector._id`\n    | `filters.${number}.dynamicFieldKey.entitySelector.multiSelect`\n    | `filters.${number}._id`\n    | `filters.${number}.fieldKeyType`\n    | `filters.${number}.valueInput.userInput.type`\n    | `filters.${number}.valueInput.staticItems.multiSelect`\n    | `filters.${number}.valueInput.type`\n    | `filters.${number}.valueInput.label`\n    | `filters.${number}.valueInput.required`\n    | `filters.${number}.valueInput.reevaluateDynamicSchema`\n    | `implementedMethods.validateConfiguration`\n    | `implementedMethods.getDynamicSchema`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    trigger: { ...options?.trigger, id: _id },\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.updateTrigger(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      ?.updatedTrigger!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { trigger: '$[1].trigger' },\n        explicitPathsToArguments: { 'trigger.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateTriggerOptions {\n  trigger: {\n    /**\n     * Trigger ID.\n     * @format GUID\n     * @readonly\n     */\n    _id?: string | null;\n    /**\n     * ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n     * @format GUID\n     * @immutable\n     */\n    appId?: string;\n    /**\n     * Trigger key.\n     *\n     * Learn about [setting up a trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).\n     * @minLength 1\n     * @maxLength 100\n     * @immutable\n     */\n    triggerKey?: string;\n    /**\n     * Trigger [payload schema](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema).\n     * @immutable\n     */\n    payloadDataSchema?: Record<string, any> | null;\n    /**\n     * Trigger display name. Users see this name when they [choose a trigger for an automation](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-2-choose-a-trigger).\n     * @minLength 5\n     * @maxLength 80\n     * @readonly\n     */\n    displayName?: string;\n    /**\n     * [Filter fields](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#filter-fields) applied to the trigger payload schema.\n     * @maxSize 5\n     */\n    filters?: Filter[];\n    /** Additional [service plugin methods](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction#implement-the-service-plugin-methods) implemented for this trigger. */\n    implementedMethods?: ImplementedMethods;\n    /**\n     * Date and time the trigger was created.\n     * @readonly\n     */\n    _createdDate?: Date | null;\n    /**\n     * Date and time the trigger was last updated.\n     * @readonly\n     */\n    _updatedDate?: Date | null;\n    /**\n     * Trigger base URI. Wix calls your trigger at this base address.\n     *\n     * Learn more about the [Wix Automations Trigger Provider service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction).\n     * @maxLength 256\n     */\n    baseUri?: string | null;\n  };\n}\n\n/**\n * Deletes a trigger from the specified app.\n *\n * > **Note**: [Automations that have the deleted trigger](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-2-choose-a-trigger) no longer run.\n * @param triggerAppId - ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n * @public\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.triggerKey\n * @requiredField triggerAppId\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.DeleteTriggerByAppIdAndKey\n */\nexport async function deleteTriggerByAppIdAndKey(\n  triggerAppId: string,\n  options: NonNullablePaths<DeleteTriggerByAppIdAndKeyOptions, `triggerKey`, 2>\n): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    triggerAppId: triggerAppId,\n    triggerKey: options?.triggerKey,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.deleteTriggerByAppIdAndKey(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          triggerAppId: '$[0]',\n          triggerKey: '$[1].triggerKey',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['triggerAppId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface DeleteTriggerByAppIdAndKeyOptions {\n  /**\n   * Trigger key.\n   *\n   * Learn more about how trigger providers [add triggers to their app](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @minLength 1\n   * @maxLength 100\n   */\n  triggerKey: string;\n}\n\n/**\n * Retrieves the specified trigger.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.appId\n * @requiredField identifiers.triggerKey\n * @permissionId AUTOMATIONS.TRIGGER_READ\n * @applicableIdentity APP\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.GetTriggerByAppIdAndKey\n */\nexport async function getTriggerByAppIdAndKey(\n  identifiers: NonNullablePaths<\n    GetTriggerByAppIdAndKeyIdentifiers,\n    `appId` | `triggerKey`,\n    2\n  >,\n  options?: GetTriggerByAppIdAndKeyOptions\n): Promise<\n  NonNullablePaths<\n    GetTriggerByAppIdAndKeyResponse,\n    | `trigger.appId`\n    | `trigger.triggerKey`\n    | `trigger.displayName`\n    | `trigger.filters`\n    | `trigger.filters.${number}.staticFieldKey`\n    | `trigger.filters.${number}.dynamicFieldKey.label`\n    | `trigger.filters.${number}.dynamicFieldKey.entitySelector._id`\n    | `trigger.filters.${number}.dynamicFieldKey.entitySelector.multiSelect`\n    | `trigger.filters.${number}._id`\n    | `trigger.filters.${number}.fieldKeyType`\n    | `trigger.filters.${number}.valueInput.userInput.type`\n    | `trigger.filters.${number}.valueInput.staticItems.multiSelect`\n    | `trigger.filters.${number}.valueInput.type`\n    | `trigger.filters.${number}.valueInput.label`\n    | `trigger.filters.${number}.valueInput.required`\n    | `trigger.filters.${number}.valueInput.reevaluateDynamicSchema`\n    | `trigger.implementedMethods.validateConfiguration`\n    | `trigger.implementedMethods.getDynamicSchema`,\n    7\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    appId: identifiers?.appId,\n    triggerKey: identifiers?.triggerKey,\n    enrichWithIdentitySchema: options?.enrichWithIdentitySchema,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.getTriggerByAppIdAndKey(\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          appId: '$[0].appId',\n          triggerKey: '$[0].triggerKey',\n          enrichWithIdentitySchema: '$[1].enrichWithIdentitySchema',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['identifiers', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetTriggerByAppIdAndKeyIdentifiers {\n  /** ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app). */\n  appId: string;\n  /**\n   * Trigger key.\n   *\n   * Learn more about [adding a trigger to your app](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   */\n  triggerKey: string;\n}\n\nexport interface GetTriggerByAppIdAndKeyOptions {\n  /**\n   * When the trigger payload schema includes the [`identityType` annotation](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema#identitytype), whether to include the full schema of that identity type. For example, when `true` and the `identityType` is `contact`, the full [contact schema](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/contact-v4/contact-object) is returned.\n   *\n   * Default: `false`\n   */\n  enrichWithIdentitySchema?: boolean | null;\n}\n\n/**\n * Retrieves a list of triggers, given the provided paging, filtering, and sorting.\n *\n * To query all triggers by a particular app, specify its `appId` in the query's `filter` object.\n *\n *\n * Query Triggers runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * To learn about working with query methods, see:\n * - [API Query Language](https://dev.wix.com/docs/api-reference/articles/getting-started/api-query-language)\n * - [Sorting and Paging](https://dev.wix.com/api/api-reference/getting-started/pagination)\n * - [Field projection](https://dev.wix.com/api/api-reference/getting-started/field-projection)\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.TRIGGER_READ\n * @applicableIdentity APP\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.QueryTriggers\n */\nexport function queryTriggers(): ResultsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    Trigger,\n    'OFFSET',\n    QueryTriggersRequest,\n    QueryTriggersResponse\n  >({\n    func: async (payload: QueryTriggersRequest) => {\n      const reqOpts =\n        ambassadorWixAutomationsTriggercatalogV1Trigger.queryTriggers(payload);\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QueryTriggersRequest['query']) => {\n      const args = [query, {}] as [QueryTriggersRequest['query'], {}];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({ data }: HttpResponse<QueryTriggersResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [])\n      );\n\n      return {\n        items: transformedData?.results,\n        pagingMetadata: transformedData?.paging,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'OFFSET',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryOffsetResult {\n  currentPage: number | undefined;\n  totalPages: number | undefined;\n  totalCount: number | undefined;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface ResultsQueryResult extends QueryOffsetResult {\n  items: Trigger[];\n  query: ResultsQueryBuilder;\n  next: () => Promise<ResultsQueryResult>;\n  prev: () => Promise<ResultsQueryResult>;\n}\n\nexport interface ResultsQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ge: (\n    propertyName: '_id' | 'appId' | 'triggerKey' | 'displayName',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  gt: (\n    propertyName: '_id' | 'appId' | 'triggerKey' | 'displayName',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  le: (\n    propertyName: '_id' | 'appId' | 'triggerKey' | 'displayName',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  lt: (\n    propertyName: '_id' | 'appId' | 'triggerKey' | 'displayName',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `string`.\n   * @param string - String to compare against. Case-insensitive.\n   * @documentationMaturity preview\n   */\n  startsWith: (\n    propertyName: '_id' | 'appId' | 'triggerKey' | 'displayName',\n    value: string\n  ) => ResultsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasSome: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type',\n    value: any[]\n  ) => ResultsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type',\n    value: any\n  ) => ResultsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName:\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type',\n    value: boolean\n  ) => ResultsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  ascending: (\n    ...propertyNames: Array<\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type'\n    >\n  ) => ResultsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  descending: (\n    ...propertyNames: Array<\n      | '_id'\n      | 'appId'\n      | 'triggerKey'\n      | 'displayName'\n      | 'metadata.hidden'\n      | 'implementedMethods.validateConfiguration'\n      | 'implementedMethods.getDynamicSchema'\n      | 'implementedMethods.refreshPayload'\n      | 'source.type'\n    >\n  ) => ResultsQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => ResultsQueryBuilder;\n  /** @param skip - Number of items to skip in the query results before returning the results.\n   * @documentationMaturity preview\n   */\n  skip: (skip: number) => ResultsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<ResultsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.QueryTriggers\n * @requiredField query\n */\nexport async function typedQueryTriggers(\n  query: TriggerQuery\n): Promise<\n  NonNullablePaths<\n    QueryTriggersResponse,\n    | `results`\n    | `results.${number}.appId`\n    | `results.${number}.triggerKey`\n    | `results.${number}.displayName`\n    | `results.${number}.implementedMethods.validateConfiguration`\n    | `results.${number}.implementedMethods.getDynamicSchema`,\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({ query: query });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.queryTriggers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['query']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface TriggerQuerySpec extends QuerySpec {\n  paging: 'offset';\n  wql: [\n    {\n      fields: [\n        '_id',\n        'appId',\n        'displayName',\n        'implementedMethods.getDynamicSchema',\n        'implementedMethods.refreshPayload',\n        'implementedMethods.validateConfiguration',\n        'metadata.hidden',\n        'source.type',\n        'triggerKey'\n      ];\n      operators: '*';\n      sort: 'BOTH';\n    }\n  ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n  Trigger,\n  TriggerQuerySpec\n>;\nexport type TriggerQuery = {\n  /** \n  Paging options to limit and offset the number of items.  \n  */\n  paging?: {\n    /** \n  Number of items to load.  \n  */\n    limit?: NonNullable<CommonQueryWithEntityContext['paging']>['limit'] | null;\n    /** \n  Number of items to skip in the current sort order.  \n  */\n    offset?:\n      | NonNullable<CommonQueryWithEntityContext['paging']>['offset']\n      | null;\n  };\n\n  /** \n  Filter object.\n\n  Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).  \n  */\n  filter?: CommonQueryWithEntityContext['filter'] | null;\n  /** \n  Sort object.\n\n  Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).  \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @maxLength: 512 \n  */\n    fieldName?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n  }[];\n};\n\nexport const utils = {\n  query: {\n    ...createQueryUtils<Trigger, TriggerQuerySpec, TriggerQuery>(),\n  },\n};\n\n/**\n * Returns triggers that are installed on the site and have sufficient maturity.\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.TRIGGER_READ\n * @applicableIdentity APP\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.ResolveTriggers\n */\nexport async function resolveTriggers(\n  options?: ResolveTriggersOptions\n): Promise<\n  NonNullablePaths<\n    ResolveTriggersResponse,\n    | `results`\n    | `results.${number}.appId`\n    | `results.${number}.triggerKey`\n    | `results.${number}.displayName`\n    | `results.${number}.implementedMethods.validateConfiguration`\n    | `results.${number}.implementedMethods.getDynamicSchema`,\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    query: options?.query,\n    appId: options?.appId,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.resolveTriggers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0].query', appId: '$[0].appId' },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ResolveTriggersOptions {\n  /** Query options. */\n  query?: QueryV2;\n  /** If provided, all triggers associated with the app ID are retrieved, regardless of maturity. The app must be installed on the site. */\n  appId?: string | null;\n}\n\n/**\n * Retrieves a trigger's payload schema with the user's [filter field](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields) selections applied.\n *\n * Learn more about [the trigger payload schema](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema).\n * @param appId - ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options.triggerKey\n * @permissionId AUTOMATIONS.TRIGGER_READ\n * @applicableIdentity APP\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.GetTriggerDynamicSchema\n */\nexport async function getTriggerDynamicSchema(\n  appId: string,\n  options?: NonNullablePaths<GetTriggerDynamicSchemaOptions, `triggerKey`, 2>\n): Promise<GetDynamicSchemaResponse> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    appId: appId,\n    triggerKey: options?.triggerKey,\n    selectedFilterOptions: options?.selectedFilterOptions,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.getTriggerDynamicSchema(\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          appId: '$[0]',\n          triggerKey: '$[1].triggerKey',\n          selectedFilterOptions: '$[1].selectedFilterOptions',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['appId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetTriggerDynamicSchemaOptions {\n  /**\n   * Trigger key.\n   *\n   * Learn more about [adding a trigger to your app](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   * @minLength 1\n   * @maxLength 100\n   */\n  triggerKey: string;\n  /**\n   * When the trigger includes [filter fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields), the trigger schema only includes the schemas of the specified filter fields.\n   *\n   * When empty, the full trigger's payload schema is returned.\n   * @maxSize 5\n   */\n  selectedFilterOptions?: SelectedFilterOptions[];\n}\n\n/**\n * Returns trigger identities schema\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.TRIGGER_READ\n * @applicableIdentity APP\n * @fqn wix.automations.triggercatalog.v1.TriggerCatalogService.GetIdentitiesSchema\n */\nexport async function getIdentitiesSchema(): Promise<GetIdentitiesSchemaResponse> {\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    ambassadorWixAutomationsTriggercatalogV1Trigger.getIdentitiesSchema(\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","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 { 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 resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    'platform.rise.ai': [\n      {\n        srcPath: '/v1/triggers',\n        destPath: '/v1/triggers',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/v1/triggers',\n        destPath: '/v1/triggers',\n      },\n      {\n        srcPath: '/automations/triggercatalog/v1/trigger',\n        destPath: '/v1/trigger',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/trigger-catalog-service',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_trigger-catalog';\n\n/**\n * Creates a trigger for the specified app. Once created, users can [create automations](https://support.wix.com/en/wix-automations-7067897) that run when this trigger occurs.\n *\n * Learn more about [triggers](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers).\n *\n * > **Note:** You can only create triggers for [apps you own or collaborate on](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/manage-collaborators).\n */\nexport function createTrigger(payload: object): RequestOptionsFactory<any> {\n  function __createTrigger({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'trigger.createdDate' },\n          { path: 'trigger.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.CreateTrigger',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/triggers',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'trigger.createdDate' },\n              { path: 'trigger.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createTrigger;\n}\n\n/**\n * Updates the specified trigger for the specified app.\n *\n * After the trigger is updated, it only contains the values specified in the request. Earlier values are replaced.\n */\nexport function updateTrigger(payload: object): RequestOptionsFactory<any> {\n  function __updateTrigger({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'trigger.createdDate' },\n          { path: 'trigger.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.UpdateTrigger',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/trigger/{trigger.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'updatedTrigger.createdDate' },\n              { path: 'updatedTrigger.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateTrigger;\n}\n\n/**\n * Deletes a trigger from the specified app.\n *\n * > **Note**: [Automations that have the deleted trigger](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-2-choose-a-trigger) no longer run.\n */\nexport function deleteTriggerByAppIdAndKey(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteTriggerByAppIdAndKey({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'DELETE' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.DeleteTriggerByAppIdAndKey',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/trigger',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteTriggerByAppIdAndKey;\n}\n\n/** Retrieves the specified trigger. */\nexport function getTriggerByAppIdAndKey(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getTriggerByAppIdAndKey({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.GetTriggerByAppIdAndKey',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/triggers/apps/{appId}/keys/{triggerKey}',\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: 'trigger.createdDate' },\n              { path: 'trigger.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getTriggerByAppIdAndKey;\n}\n\n/**\n * Retrieves a list of triggers, given the provided paging, filtering, and sorting.\n *\n * To query all triggers by a particular app, specify its `appId` in the query's `filter` object.\n *\n *\n * Query Triggers runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * To learn about working with query methods, see:\n * - [API Query Language](https://dev.wix.com/docs/api-reference/articles/getting-started/api-query-language)\n * - [Sorting and Paging](https://dev.wix.com/api/api-reference/getting-started/pagination)\n * - [Field projection](https://dev.wix.com/api/api-reference/getting-started/field-projection)\n */\nexport function queryTriggers(payload: object): RequestOptionsFactory<any> {\n  function __queryTriggers({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.QueryTriggers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/triggers/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.createdDate' },\n              { path: 'results.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryTriggers;\n}\n\n/** Returns triggers that are installed on the site and have sufficient maturity. */\nexport function resolveTriggers(payload: object): RequestOptionsFactory<any> {\n  function __resolveTriggers({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.ResolveTriggers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/triggers/resolve',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.createdDate' },\n              { path: 'results.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __resolveTriggers;\n}\n\n/**\n * Retrieves a trigger's payload schema with the user's [filter field](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields) selections applied.\n *\n * Learn more about [the trigger payload schema](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema).\n */\nexport function getTriggerDynamicSchema(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getTriggerDynamicSchema({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.GetTriggerDynamicSchema',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/triggers/dynamic_schema',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __getTriggerDynamicSchema;\n}\n\n/** Returns trigger identities schema */\nexport function getIdentitiesSchema(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getIdentitiesSchema({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.triggercatalog.v1.trigger',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.automations.triggercatalog.v1.TriggerCatalogService.GetIdentitiesSchema',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixAutomationsTriggercatalogV1TriggerCatalogServiceUrl({\n        protoPath: '/v1/triggers/identities_schema',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __getIdentitiesSchema;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  CreateTriggerOptions,\n  DeleteTriggerByAppIdAndKeyOptions,\n  GetDynamicSchemaResponse,\n  GetIdentitiesSchemaResponse,\n  GetTriggerByAppIdAndKeyIdentifiers,\n  GetTriggerByAppIdAndKeyOptions,\n  GetTriggerByAppIdAndKeyResponse,\n  GetTriggerDynamicSchemaOptions,\n  QueryTriggersResponse,\n  ResolveTriggersOptions,\n  ResolveTriggersResponse,\n  ResultsQueryBuilder,\n  Trigger,\n  TriggerQuery,\n  UpdateTriggerOptions,\n  createTrigger as universalCreateTrigger,\n  deleteTriggerByAppIdAndKey as universalDeleteTriggerByAppIdAndKey,\n  getIdentitiesSchema as universalGetIdentitiesSchema,\n  getTriggerByAppIdAndKey as universalGetTriggerByAppIdAndKey,\n  getTriggerDynamicSchema as universalGetTriggerDynamicSchema,\n  queryTriggers as universalQueryTriggers,\n  resolveTriggers as universalResolveTriggers,\n  typedQueryTriggers as universalTypedQueryTriggers,\n  updateTrigger as universalUpdateTrigger,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/automations' };\n\nexport function createTrigger(httpClient: HttpClient): CreateTriggerSignature {\n  return (\n    options?: NonNullablePaths<\n      CreateTriggerOptions,\n      | `trigger.appId`\n      | `trigger.displayName`\n      | `trigger.payloadDataSchema`\n      | `trigger.triggerKey`,\n      3\n    >\n  ) =>\n    universalCreateTrigger(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateTriggerSignature {\n  /**\n   * Creates a trigger for the specified app. Once created, users can [create automations](https://support.wix.com/en/wix-automations-7067897) that run when this trigger occurs.\n   *\n   * Learn more about [triggers](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers).\n   *\n   * > **Note:** You can only create triggers for [apps you own or collaborate on](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/manage-collaborators).\n   * @returns Created trigger.\n   */\n  (\n    options?: NonNullablePaths<\n      CreateTriggerOptions,\n      | `trigger.appId`\n      | `trigger.displayName`\n      | `trigger.payloadDataSchema`\n      | `trigger.triggerKey`,\n      3\n    >\n  ): Promise<\n    NonNullablePaths<\n      Trigger,\n      | `appId`\n      | `triggerKey`\n      | `displayName`\n      | `filters`\n      | `filters.${number}.staticFieldKey`\n      | `filters.${number}.dynamicFieldKey.label`\n      | `filters.${number}.dynamicFieldKey.entitySelector._id`\n      | `filters.${number}.dynamicFieldKey.entitySelector.multiSelect`\n      | `filters.${number}._id`\n      | `filters.${number}.fieldKeyType`\n      | `filters.${number}.valueInput.userInput.type`\n      | `filters.${number}.valueInput.staticItems.multiSelect`\n      | `filters.${number}.valueInput.type`\n      | `filters.${number}.valueInput.label`\n      | `filters.${number}.valueInput.required`\n      | `filters.${number}.valueInput.reevaluateDynamicSchema`\n      | `implementedMethods.validateConfiguration`\n      | `implementedMethods.getDynamicSchema`,\n      6\n    >\n  >;\n}\n\nexport function updateTrigger(httpClient: HttpClient): UpdateTriggerSignature {\n  return (\n    _id: string,\n    options?: NonNullablePaths<\n      UpdateTriggerOptions,\n      `trigger.appId` | `trigger.triggerKey`,\n      3\n    >\n  ) =>\n    universalUpdateTrigger(\n      _id,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateTriggerSignature {\n  /**\n   * Updates the specified trigger for the specified app.\n   *\n   * After the trigger is updated, it only contains the values specified in the request. Earlier values are replaced.\n   * @param - Trigger ID.\n   * @returns Updated trigger.\n   */\n  (\n    _id: string,\n    options?: NonNullablePaths<\n      UpdateTriggerOptions,\n      `trigger.appId` | `trigger.triggerKey`,\n      3\n    >\n  ): Promise<\n    NonNullablePaths<\n      Trigger,\n      | `appId`\n      | `triggerKey`\n      | `displayName`\n      | `filters`\n      | `filters.${number}.staticFieldKey`\n      | `filters.${number}.dynamicFieldKey.label`\n      | `filters.${number}.dynamicFieldKey.entitySelector._id`\n      | `filters.${number}.dynamicFieldKey.entitySelector.multiSelect`\n      | `filters.${number}._id`\n      | `filters.${number}.fieldKeyType`\n      | `filters.${number}.valueInput.userInput.type`\n      | `filters.${number}.valueInput.staticItems.multiSelect`\n      | `filters.${number}.valueInput.type`\n      | `filters.${number}.valueInput.label`\n      | `filters.${number}.valueInput.required`\n      | `filters.${number}.valueInput.reevaluateDynamicSchema`\n      | `implementedMethods.validateConfiguration`\n      | `implementedMethods.getDynamicSchema`,\n      6\n    >\n  >;\n}\n\nexport function deleteTriggerByAppIdAndKey(\n  httpClient: HttpClient\n): DeleteTriggerByAppIdAndKeySignature {\n  return (\n    triggerAppId: string,\n    options: NonNullablePaths<\n      DeleteTriggerByAppIdAndKeyOptions,\n      `triggerKey`,\n      2\n    >\n  ) =>\n    universalDeleteTriggerByAppIdAndKey(\n      triggerAppId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteTriggerByAppIdAndKeySignature {\n  /**\n   * Deletes a trigger from the specified app.\n   *\n   * > **Note**: [Automations that have the deleted trigger](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-2-choose-a-trigger) no longer run.\n   * @param - ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   */\n  (\n    triggerAppId: string,\n    options: NonNullablePaths<\n      DeleteTriggerByAppIdAndKeyOptions,\n      `triggerKey`,\n      2\n    >\n  ): Promise<void>;\n}\n\nexport function getTriggerByAppIdAndKey(\n  httpClient: HttpClient\n): GetTriggerByAppIdAndKeySignature {\n  return (\n    identifiers: NonNullablePaths<\n      GetTriggerByAppIdAndKeyIdentifiers,\n      `appId` | `triggerKey`,\n      2\n    >,\n    options?: GetTriggerByAppIdAndKeyOptions\n  ) =>\n    universalGetTriggerByAppIdAndKey(\n      identifiers,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetTriggerByAppIdAndKeySignature {\n  /**\n   * Retrieves the specified trigger.\n   */\n  (\n    identifiers: NonNullablePaths<\n      GetTriggerByAppIdAndKeyIdentifiers,\n      `appId` | `triggerKey`,\n      2\n    >,\n    options?: GetTriggerByAppIdAndKeyOptions\n  ): Promise<\n    NonNullablePaths<\n      GetTriggerByAppIdAndKeyResponse,\n      | `trigger.appId`\n      | `trigger.triggerKey`\n      | `trigger.displayName`\n      | `trigger.filters`\n      | `trigger.filters.${number}.staticFieldKey`\n      | `trigger.filters.${number}.dynamicFieldKey.label`\n      | `trigger.filters.${number}.dynamicFieldKey.entitySelector._id`\n      | `trigger.filters.${number}.dynamicFieldKey.entitySelector.multiSelect`\n      | `trigger.filters.${number}._id`\n      | `trigger.filters.${number}.fieldKeyType`\n      | `trigger.filters.${number}.valueInput.userInput.type`\n      | `trigger.filters.${number}.valueInput.staticItems.multiSelect`\n      | `trigger.filters.${number}.valueInput.type`\n      | `trigger.filters.${number}.valueInput.label`\n      | `trigger.filters.${number}.valueInput.required`\n      | `trigger.filters.${number}.valueInput.reevaluateDynamicSchema`\n      | `trigger.implementedMethods.validateConfiguration`\n      | `trigger.implementedMethods.getDynamicSchema`,\n      7\n    >\n  >;\n}\n\nexport function queryTriggers(httpClient: HttpClient): QueryTriggersSignature {\n  return () =>\n    universalQueryTriggers(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryTriggersSignature {\n  /**\n   * Retrieves a list of triggers, given the provided paging, filtering, and sorting.\n   *\n   * To query all triggers by a particular app, specify its `appId` in the query's `filter` object.\n   *\n   *\n   * Query Triggers runs with these defaults, which you can override:\n   *\n   * - `createdDate` is sorted in `DESC` order.\n   * - `paging.limit` is `50`.\n   * - `paging.offset` is `0`.\n   *\n   * To learn about working with query methods, see:\n   * - [API Query Language](https://dev.wix.com/docs/api-reference/articles/getting-started/api-query-language)\n   * - [Sorting and Paging](https://dev.wix.com/api/api-reference/getting-started/pagination)\n   * - [Field projection](https://dev.wix.com/api/api-reference/getting-started/field-projection)\n   */\n  (): ResultsQueryBuilder;\n}\n\nexport function typedQueryTriggers(\n  httpClient: HttpClient\n): TypedQueryTriggersSignature {\n  return (query: TriggerQuery) =>\n    universalTypedQueryTriggers(\n      query,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface TypedQueryTriggersSignature {\n  /** */\n  (query: TriggerQuery): Promise<\n    NonNullablePaths<\n      QueryTriggersResponse,\n      | `results`\n      | `results.${number}.appId`\n      | `results.${number}.triggerKey`\n      | `results.${number}.displayName`\n      | `results.${number}.implementedMethods.validateConfiguration`\n      | `results.${number}.implementedMethods.getDynamicSchema`,\n      5\n    >\n  >;\n}\n\nexport function resolveTriggers(\n  httpClient: HttpClient\n): ResolveTriggersSignature {\n  return (options?: ResolveTriggersOptions) =>\n    universalResolveTriggers(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ResolveTriggersSignature {\n  /**\n   * Returns triggers that are installed on the site and have sufficient maturity.\n   */\n  (options?: ResolveTriggersOptions): Promise<\n    NonNullablePaths<\n      ResolveTriggersResponse,\n      | `results`\n      | `results.${number}.appId`\n      | `results.${number}.triggerKey`\n      | `results.${number}.displayName`\n      | `results.${number}.implementedMethods.validateConfiguration`\n      | `results.${number}.implementedMethods.getDynamicSchema`,\n      5\n    >\n  >;\n}\n\nexport function getTriggerDynamicSchema(\n  httpClient: HttpClient\n): GetTriggerDynamicSchemaSignature {\n  return (\n    appId: string,\n    options?: NonNullablePaths<GetTriggerDynamicSchemaOptions, `triggerKey`, 2>\n  ) =>\n    universalGetTriggerDynamicSchema(\n      appId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetTriggerDynamicSchemaSignature {\n  /**\n   * Retrieves a trigger's payload schema with the user's [filter field](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields) selections applied.\n   *\n   * Learn more about [the trigger payload schema](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/the-trigger-payload-schema).\n   * @param - ID of the [app that created the trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/add-a-trigger-to-your-app).\n   */\n  (\n    appId: string,\n    options?: NonNullablePaths<GetTriggerDynamicSchemaOptions, `triggerKey`, 2>\n  ): Promise<GetDynamicSchemaResponse>;\n}\n\nexport function getIdentitiesSchema(\n  httpClient: HttpClient\n): GetIdentitiesSchemaSignature {\n  return () =>\n    universalGetIdentitiesSchema(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetIdentitiesSchemaSignature {\n  /**\n   * Returns trigger identities schema\n   */\n  (): Promise<GetIdentitiesSchemaResponse>;\n}\n\nexport {\n  AccountInfo,\n  ActionEvent,\n  BooleanInputOptions,\n  BulkCreateWhitelistTriggerAppsRequest,\n  BulkCreateWhitelistTriggerAppsResponse,\n  BulkDeleteWhitelistTriggerAppsRequest,\n  BulkDeleteWhitelistTriggerAppsResponse,\n  CreateTriggerOptions,\n  CreateTriggerRequest,\n  CreateTriggerResponse,\n  CursorPaging,\n  Cursors,\n  DebounceConfiguration,\n  DeleteTriggerByAppIdAndKeyOptions,\n  DeleteTriggerByAppIdAndKeyRequest,\n  DeleteTriggerByAppIdAndKeyResponse,\n  DeleteTriggerRequest,\n  DeleteTriggerResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  DomainEventOptions,\n  DynamicFieldKey,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntitySelector,\n  EntityUpdatedEvent,\n  ExperimentActionType,\n  FieldKeyType,\n  Filter,\n  FilterFieldKeyOneOf,\n  GetDynamicSchemaResponse,\n  GetIdentitiesSchemaRequest,\n  GetIdentitiesSchemaResponse,\n  GetLatestTriggerRequest,\n  GetLatestTriggerResponse,\n  GetRuntimeTriggerRequest,\n  GetRuntimeTriggerResponse,\n  GetTriggerByAppIdAndKeyIdentifiers,\n  GetTriggerByAppIdAndKeyOptions,\n  GetTriggerByAppIdAndKeyRequest,\n  GetTriggerByAppIdAndKeyResponse,\n  GetTriggerDynamicSchemaOptions,\n  GetTriggerDynamicSchemaRequest,\n  GetTriggerRequest,\n  GetTriggerResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  ImplementedMethods,\n  ListMarketplaceAndWhitelistTriggersRequest,\n  ListMarketplaceAndWhitelistTriggersResponse,\n  ListWhitelistTriggerAppsRequest,\n  ListWhitelistTriggerAppsResponse,\n  Maturity,\n  MessageEnvelope,\n  Metadata,\n  MigrateComponentToTriggerRequest,\n  MigrateComponentToTriggerResponse,\n  NumberInputOptions,\n  Paging,\n  PagingMetadataV2,\n  QueryRuntimeTriggersRequest,\n  QueryRuntimeTriggersResponse,\n  QueryTriggersRequest,\n  QueryTriggersResponse,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  RemoveComponentDataRequest,\n  RemoveComponentDataResponse,\n  ResolveTriggersOptions,\n  ResolveTriggersRequest,\n  ResolveTriggersResponse,\n  RestoreInfo,\n  ResultsQueryBuilder,\n  ResultsQueryResult,\n  RetryExperimentCreation,\n  Segment,\n  SelectedFilterOptions,\n  SortOrder,\n  Sorting,\n  Source,\n  SourceOptionsOneOf,\n  SourceType,\n  StaticItemValue,\n  StaticItems,\n  TimeUnit,\n  Trigger,\n  TriggerQuerySpec,\n  TriggerSpecInfo,\n  Type,\n  UpdateTriggerComponentRequest,\n  UpdateTriggerComponentResponse,\n  UpdateTriggerMaturityRequest,\n  UpdateTriggerMaturityResponse,\n  UpdateTriggerOptions,\n  UpdateTriggerRequest,\n  UpdateTriggerResponse,\n  UserInput,\n  UserInputInputOptionsOneOf,\n  ValueInput,\n  ValueInputInputOptionsOneOf,\n  ValueInputType,\n  WebhookIdentityType,\n  utils,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\n","import {\n  createTrigger as publicCreateTrigger,\n  updateTrigger as publicUpdateTrigger,\n  deleteTriggerByAppIdAndKey as publicDeleteTriggerByAppIdAndKey,\n  getTriggerByAppIdAndKey as publicGetTriggerByAppIdAndKey,\n  queryTriggers as publicQueryTriggers,\n  typedQueryTriggers as publicTypedQueryTriggers,\n  resolveTriggers as publicResolveTriggers,\n  getTriggerDynamicSchema as publicGetTriggerDynamicSchema,\n  getIdentitiesSchema as publicGetIdentitiesSchema,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n  ResultsQueryBuilder,\n  TriggerQuery,\n  typedQueryTriggers as universalTypedQueryTriggers,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\n\nfunction customQueryTriggers(httpClient: HttpClient) {\n  const router = createQueryOverloadRouter({\n    builderQueryFunction: () => publicQueryTriggers(httpClient)(),\n    typedQueryFunction: (query: TriggerQuery) =>\n      publicTypedQueryTriggers(httpClient)(query),\n    hasOptionsParameter: false,\n  });\n\n  function overloadedQuery(): ResultsQueryBuilder;\n  function overloadedQuery(\n    query: TriggerQuery\n  ): ReturnType<typeof universalTypedQueryTriggers>;\n  function overloadedQuery(query?: TriggerQuery): any {\n    return router(...arguments);\n  }\n\n  return overloadedQuery;\n}\n\nexport const createTrigger: MaybeContext<\n  BuildRESTFunction<typeof publicCreateTrigger> & typeof publicCreateTrigger\n> = /*#__PURE__*/ createRESTModule(publicCreateTrigger);\nexport const updateTrigger: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateTrigger> & typeof publicUpdateTrigger\n> = /*#__PURE__*/ createRESTModule(publicUpdateTrigger);\nexport const deleteTriggerByAppIdAndKey: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteTriggerByAppIdAndKey> &\n    typeof publicDeleteTriggerByAppIdAndKey\n> = /*#__PURE__*/ createRESTModule(publicDeleteTriggerByAppIdAndKey);\nexport const getTriggerByAppIdAndKey: MaybeContext<\n  BuildRESTFunction<typeof publicGetTriggerByAppIdAndKey> &\n    typeof publicGetTriggerByAppIdAndKey\n> = /*#__PURE__*/ createRESTModule(publicGetTriggerByAppIdAndKey);\nexport const resolveTriggers: MaybeContext<\n  BuildRESTFunction<typeof publicResolveTriggers> & typeof publicResolveTriggers\n> = /*#__PURE__*/ createRESTModule(publicResolveTriggers);\nexport const getTriggerDynamicSchema: MaybeContext<\n  BuildRESTFunction<typeof publicGetTriggerDynamicSchema> &\n    typeof publicGetTriggerDynamicSchema\n> = /*#__PURE__*/ createRESTModule(publicGetTriggerDynamicSchema);\nexport const getIdentitiesSchema: MaybeContext<\n  BuildRESTFunction<typeof publicGetIdentitiesSchema> &\n    typeof publicGetIdentitiesSchema\n> = /*#__PURE__*/ createRESTModule(publicGetIdentitiesSchema);\nexport const queryTriggers: MaybeContext<\n  BuildRESTFunction<typeof customQueryTriggers> & typeof customQueryTriggers\n> = /*#__PURE__*/ createRESTModule(customQueryTriggers);\n\nexport {\n  TimeUnit,\n  Segment,\n  SourceType,\n  Maturity,\n  ValueInputType,\n  Type,\n  FieldKeyType,\n  ExperimentActionType,\n  SortOrder,\n  WebhookIdentityType,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\nexport {\n  Trigger,\n  DomainEventOptions,\n  Filter,\n  FilterFieldKeyOneOf,\n  EntitySelector,\n  UserInput,\n  UserInputInputOptionsOneOf,\n  NumberInputOptions,\n  BooleanInputOptions,\n  StaticItems,\n  StaticItemValue,\n  DynamicFieldKey,\n  ValueInput,\n  ValueInputInputOptionsOneOf,\n  Metadata,\n  ImplementedMethods,\n  DebounceConfiguration,\n  Source,\n  SourceOptionsOneOf,\n  RetryExperimentCreation,\n  TriggerSpecInfo,\n  CreateTriggerRequest,\n  CreateTriggerResponse,\n  GetTriggerRequest,\n  GetTriggerResponse,\n  UpdateTriggerRequest,\n  UpdateTriggerResponse,\n  UpdateTriggerComponentRequest,\n  UpdateTriggerComponentResponse,\n  UpdateTriggerMaturityRequest,\n  UpdateTriggerMaturityResponse,\n  DeleteTriggerRequest,\n  DeleteTriggerResponse,\n  DeleteTriggerByAppIdAndKeyRequest,\n  DeleteTriggerByAppIdAndKeyResponse,\n  MigrateComponentToTriggerRequest,\n  MigrateComponentToTriggerResponse,\n  RemoveComponentDataRequest,\n  RemoveComponentDataResponse,\n  GetTriggerByAppIdAndKeyRequest,\n  GetTriggerByAppIdAndKeyResponse,\n  GetRuntimeTriggerRequest,\n  GetRuntimeTriggerResponse,\n  GetLatestTriggerRequest,\n  GetLatestTriggerResponse,\n  QueryRuntimeTriggersRequest,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  Sorting,\n  Paging,\n  CursorPaging,\n  QueryRuntimeTriggersResponse,\n  PagingMetadataV2,\n  Cursors,\n  QueryTriggersRequest,\n  QueryTriggersResponse,\n  ResolveTriggersRequest,\n  ResolveTriggersResponse,\n  GetTriggerDynamicSchemaRequest,\n  SelectedFilterOptions,\n  GetDynamicSchemaResponse,\n  GetIdentitiesSchemaRequest,\n  GetIdentitiesSchemaResponse,\n  ListMarketplaceAndWhitelistTriggersRequest,\n  ListMarketplaceAndWhitelistTriggersResponse,\n  ListWhitelistTriggerAppsRequest,\n  ListWhitelistTriggerAppsResponse,\n  BulkCreateWhitelistTriggerAppsRequest,\n  BulkCreateWhitelistTriggerAppsResponse,\n  BulkDeleteWhitelistTriggerAppsRequest,\n  BulkDeleteWhitelistTriggerAppsResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  Empty,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  CreateTriggerOptions,\n  UpdateTriggerOptions,\n  DeleteTriggerByAppIdAndKeyOptions,\n  GetTriggerByAppIdAndKeyIdentifiers,\n  GetTriggerByAppIdAndKeyOptions,\n  ResultsQueryResult,\n  ResultsQueryBuilder,\n  TriggerQuerySpec,\n  ResolveTriggersOptions,\n  GetTriggerDynamicSchemaOptions,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\nexport { utils } from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\nexport {\n  TimeUnitWithLiterals,\n  SegmentWithLiterals,\n  SourceTypeWithLiterals,\n  MaturityWithLiterals,\n  ValueInputTypeWithLiterals,\n  TypeWithLiterals,\n  FieldKeyTypeWithLiterals,\n  ExperimentActionTypeWithLiterals,\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  CommonQueryWithEntityContext,\n  TriggerQuery,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;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,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT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;AAEO,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAC5D,IAAMC,2BAGK,iCAAiBA,wBAA6B;AACzD,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,2BAGK,iCAAiBA,wBAA6B;AACzD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMR,iBAEK,iCAAiB,mBAAmB;","names":["payload","transformPaths","TimeUnit","Segment","SourceType","Maturity","ValueInputType","Type","FieldKeyType","ExperimentActionType","SortOrder","WebhookIdentityType","createTrigger","updateTrigger","deleteTriggerByAppIdAndKey","getTriggerByAppIdAndKey","queryTriggers","resolveTriggers","getTriggerDynamicSchema","getIdentitiesSchema","createTrigger","updateTrigger","deleteTriggerByAppIdAndKey","getTriggerByAppIdAndKey","queryTriggers","typedQueryTriggers","resolveTriggers","getTriggerDynamicSchema","getIdentitiesSchema","queryTriggers","typedQueryTriggers","createTrigger","updateTrigger","deleteTriggerByAppIdAndKey","getTriggerByAppIdAndKey","resolveTriggers","getTriggerDynamicSchema","getIdentitiesSchema"]}