{"version":3,"sources":["../../../src/automations-triggercatalog-v1-trigger-trigger-catalog.http.ts","../../../src/automations-triggercatalog-v1-trigger-trigger-catalog.types.ts","../../../src/automations-triggercatalog-v1-trigger-trigger-catalog.meta.ts"],"sourcesContent":["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","export 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  entityAsJson?: string;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\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  currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: 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","import * as ambassadorWixAutomationsTriggercatalogV1Trigger from './automations-triggercatalog-v1-trigger-trigger-catalog.http.js';\nimport * as ambassadorWixAutomationsTriggercatalogV1TriggerTypes from './automations-triggercatalog-v1-trigger-trigger-catalog.types.js';\nimport * as ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes from './automations-triggercatalog-v1-trigger-trigger-catalog.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function createTrigger(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.CreateTriggerRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.CreateTriggerRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.CreateTriggerResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.CreateTriggerResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.createTrigger(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/triggers',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function updateTrigger(): __PublicMethodMetaInfo<\n  'PATCH',\n  { triggerId: string },\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.UpdateTriggerRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.UpdateTriggerRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.UpdateTriggerResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.UpdateTriggerResponse\n> {\n  const payload = { trigger: { id: ':triggerId' } } as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.updateTrigger(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v1/trigger/{trigger.id}',\n    pathParams: { triggerId: 'triggerId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function deleteTriggerByAppIdAndKey(): __PublicMethodMetaInfo<\n  'DELETE',\n  {},\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.DeleteTriggerByAppIdAndKeyRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.DeleteTriggerByAppIdAndKeyRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.DeleteTriggerByAppIdAndKeyResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.DeleteTriggerByAppIdAndKeyResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.deleteTriggerByAppIdAndKey(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'DELETE',\n    path: '/v1/trigger',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getTriggerByAppIdAndKey(): __PublicMethodMetaInfo<\n  'GET',\n  { appId: string; triggerKey: string },\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.GetTriggerByAppIdAndKeyRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.GetTriggerByAppIdAndKeyRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.GetTriggerByAppIdAndKeyResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.GetTriggerByAppIdAndKeyResponse\n> {\n  const payload = { appId: ':appId', triggerKey: ':triggerKey' } as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.getTriggerByAppIdAndKey(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/triggers/apps/{appId}/keys/{triggerKey}',\n    pathParams: { appId: 'appId', triggerKey: 'triggerKey' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function queryTriggers(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.QueryTriggersRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.QueryTriggersRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.QueryTriggersResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.QueryTriggersResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.queryTriggers(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/triggers/query',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function resolveTriggers(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.ResolveTriggersRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.ResolveTriggersRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.ResolveTriggersResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.ResolveTriggersResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.resolveTriggers(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/triggers/resolve',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getTriggerDynamicSchema(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.GetTriggerDynamicSchemaRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.GetTriggerDynamicSchemaRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.GetDynamicSchemaResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.GetDynamicSchemaResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.getTriggerDynamicSchema(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/triggers/dynamic_schema',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getIdentitiesSchema(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.GetIdentitiesSchemaRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.GetIdentitiesSchemaRequest,\n  ambassadorWixAutomationsTriggercatalogV1TriggerUniversalTypes.GetIdentitiesSchemaResponse,\n  ambassadorWixAutomationsTriggercatalogV1TriggerTypes.GetIdentitiesSchemaResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAutomationsTriggercatalogV1Trigger.getIdentitiesSchema(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/triggers/identities_schema',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  Trigger as TriggerOriginal,\n  TimeUnit as TimeUnitOriginal,\n  TimeUnitWithLiterals as TimeUnitWithLiteralsOriginal,\n  Segment as SegmentOriginal,\n  SegmentWithLiterals as SegmentWithLiteralsOriginal,\n  SourceType as SourceTypeOriginal,\n  SourceTypeWithLiterals as SourceTypeWithLiteralsOriginal,\n  DomainEventOptions as DomainEventOptionsOriginal,\n  Maturity as MaturityOriginal,\n  MaturityWithLiterals as MaturityWithLiteralsOriginal,\n  Filter as FilterOriginal,\n  FilterFieldKeyOneOf as FilterFieldKeyOneOfOriginal,\n  EntitySelector as EntitySelectorOriginal,\n  ValueInputType as ValueInputTypeOriginal,\n  ValueInputTypeWithLiterals as ValueInputTypeWithLiteralsOriginal,\n  UserInput as UserInputOriginal,\n  UserInputInputOptionsOneOf as UserInputInputOptionsOneOfOriginal,\n  Type as TypeOriginal,\n  TypeWithLiterals as TypeWithLiteralsOriginal,\n  NumberInputOptions as NumberInputOptionsOriginal,\n  BooleanInputOptions as BooleanInputOptionsOriginal,\n  StaticItems as StaticItemsOriginal,\n  StaticItemValue as StaticItemValueOriginal,\n  FieldKeyType as FieldKeyTypeOriginal,\n  FieldKeyTypeWithLiterals as FieldKeyTypeWithLiteralsOriginal,\n  DynamicFieldKey as DynamicFieldKeyOriginal,\n  ValueInput as ValueInputOriginal,\n  ValueInputInputOptionsOneOf as ValueInputInputOptionsOneOfOriginal,\n  Metadata as MetadataOriginal,\n  ImplementedMethods as ImplementedMethodsOriginal,\n  DebounceConfiguration as DebounceConfigurationOriginal,\n  Source as SourceOriginal,\n  SourceOptionsOneOf as SourceOptionsOneOfOriginal,\n  RetryExperimentCreation as RetryExperimentCreationOriginal,\n  TriggerSpecInfo as TriggerSpecInfoOriginal,\n  ExperimentActionType as ExperimentActionTypeOriginal,\n  ExperimentActionTypeWithLiterals as ExperimentActionTypeWithLiteralsOriginal,\n  CreateTriggerRequest as CreateTriggerRequestOriginal,\n  CreateTriggerResponse as CreateTriggerResponseOriginal,\n  GetTriggerRequest as GetTriggerRequestOriginal,\n  GetTriggerResponse as GetTriggerResponseOriginal,\n  UpdateTriggerRequest as UpdateTriggerRequestOriginal,\n  UpdateTriggerResponse as UpdateTriggerResponseOriginal,\n  UpdateTriggerComponentRequest as UpdateTriggerComponentRequestOriginal,\n  UpdateTriggerComponentResponse as UpdateTriggerComponentResponseOriginal,\n  UpdateTriggerMaturityRequest as UpdateTriggerMaturityRequestOriginal,\n  UpdateTriggerMaturityResponse as UpdateTriggerMaturityResponseOriginal,\n  DeleteTriggerRequest as DeleteTriggerRequestOriginal,\n  DeleteTriggerResponse as DeleteTriggerResponseOriginal,\n  DeleteTriggerByAppIdAndKeyRequest as DeleteTriggerByAppIdAndKeyRequestOriginal,\n  DeleteTriggerByAppIdAndKeyResponse as DeleteTriggerByAppIdAndKeyResponseOriginal,\n  MigrateComponentToTriggerRequest as MigrateComponentToTriggerRequestOriginal,\n  MigrateComponentToTriggerResponse as MigrateComponentToTriggerResponseOriginal,\n  RemoveComponentDataRequest as RemoveComponentDataRequestOriginal,\n  RemoveComponentDataResponse as RemoveComponentDataResponseOriginal,\n  GetTriggerByAppIdAndKeyRequest as GetTriggerByAppIdAndKeyRequestOriginal,\n  GetTriggerByAppIdAndKeyResponse as GetTriggerByAppIdAndKeyResponseOriginal,\n  GetRuntimeTriggerRequest as GetRuntimeTriggerRequestOriginal,\n  GetRuntimeTriggerResponse as GetRuntimeTriggerResponseOriginal,\n  GetLatestTriggerRequest as GetLatestTriggerRequestOriginal,\n  GetLatestTriggerResponse as GetLatestTriggerResponseOriginal,\n  QueryRuntimeTriggersRequest as QueryRuntimeTriggersRequestOriginal,\n  QueryV2 as QueryV2Original,\n  QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  Paging as PagingOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryRuntimeTriggersResponse as QueryRuntimeTriggersResponseOriginal,\n  PagingMetadataV2 as PagingMetadataV2Original,\n  Cursors as CursorsOriginal,\n  QueryTriggersRequest as QueryTriggersRequestOriginal,\n  QueryTriggersResponse as QueryTriggersResponseOriginal,\n  ResolveTriggersRequest as ResolveTriggersRequestOriginal,\n  ResolveTriggersResponse as ResolveTriggersResponseOriginal,\n  GetTriggerDynamicSchemaRequest as GetTriggerDynamicSchemaRequestOriginal,\n  SelectedFilterOptions as SelectedFilterOptionsOriginal,\n  GetDynamicSchemaResponse as GetDynamicSchemaResponseOriginal,\n  GetIdentitiesSchemaRequest as GetIdentitiesSchemaRequestOriginal,\n  GetIdentitiesSchemaResponse as GetIdentitiesSchemaResponseOriginal,\n  ListMarketplaceAndWhitelistTriggersRequest as ListMarketplaceAndWhitelistTriggersRequestOriginal,\n  ListMarketplaceAndWhitelistTriggersResponse as ListMarketplaceAndWhitelistTriggersResponseOriginal,\n  ListWhitelistTriggerAppsRequest as ListWhitelistTriggerAppsRequestOriginal,\n  ListWhitelistTriggerAppsResponse as ListWhitelistTriggerAppsResponseOriginal,\n  BulkCreateWhitelistTriggerAppsRequest as BulkCreateWhitelistTriggerAppsRequestOriginal,\n  BulkCreateWhitelistTriggerAppsResponse as BulkCreateWhitelistTriggerAppsResponseOriginal,\n  BulkDeleteWhitelistTriggerAppsRequest as BulkDeleteWhitelistTriggerAppsRequestOriginal,\n  BulkDeleteWhitelistTriggerAppsResponse as BulkDeleteWhitelistTriggerAppsResponseOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  Empty as EmptyOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n} from './automations-triggercatalog-v1-trigger-trigger-catalog.types.js';\n"],"mappings":";AAAA,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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AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","TimeUnit","Segment","SourceType","Maturity","ValueInputType","Type","FieldKeyType","ExperimentActionType","SortOrder","WebhookIdentityType","createTrigger","updateTrigger","deleteTriggerByAppIdAndKey","getTriggerByAppIdAndKey","queryTriggers","resolveTriggers","getTriggerDynamicSchema","getIdentitiesSchema"]}