{"version":3,"sources":["../../src/automations-v1-automation-automations-service.public.ts","../../src/automations-v1-automation-automations-service.universal.ts","../../src/automations-v1-automation-automations-service.http.ts","../../src/automations-v1-automation-automations-service.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  Automation,\n  AutomationCreatedEnvelope,\n  AutomationDeletedEnvelope,\n  AutomationDeletedWithEntityEnvelope,\n  AutomationQuery,\n  AutomationUpdatedEnvelope,\n  AutomationUpdatedWithPreviousEntityEnvelope,\n  AutomationsQueryBuilder,\n  DeleteAutomationOptions,\n  GenerateActionInputMappingFromTemplateOptions,\n  GenerateActionInputMappingFromTemplateResponse,\n  GetActionsQuotaInfoResponse,\n  GetAutomationActivationReportsResponse,\n  GetAutomationActivationStatsOptions,\n  GetAutomationOptions,\n  MigrationUpdateAutomation,\n  MigrationUpdateAutomationResponse,\n  OverrideApplicationAutomationResponse,\n  QueryAutomationsOptions,\n  QueryAutomationsResponse,\n  UpdateAutomation,\n  ValidateAutomationByIdOptions,\n  ValidateAutomationByIdResponse,\n  ValidateAutomationResponse,\n  createAutomation as universalCreateAutomation,\n  deleteAutomation as universalDeleteAutomation,\n  generateActionInputMappingFromTemplate as universalGenerateActionInputMappingFromTemplate,\n  getActionsQuotaInfo as universalGetActionsQuotaInfo,\n  getAutomation as universalGetAutomation,\n  getAutomationActivationStats as universalGetAutomationActivationStats,\n  migrationUpdateAutomation as universalMigrationUpdateAutomation,\n  overrideApplicationAutomation as universalOverrideApplicationAutomation,\n  queryAutomations as universalQueryAutomations,\n  typedQueryAutomations as universalTypedQueryAutomations,\n  updateAutomation as universalUpdateAutomation,\n  validateAutomation as universalValidateAutomation,\n  validateAutomationById as universalValidateAutomationById,\n} from './automations-v1-automation-automations-service.universal.js';\n\nconst TRANSFORM_PATHS_0 = [\n  { path: 'entity.createdDate' },\n  { path: 'entity.updatedDate' },\n  { path: 'metadata.eventTime' },\n];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'undefined.createdDate' },\n  { path: 'undefined.updatedDate' },\n  { path: 'metadata.eventTime' },\n];\nconst TRANSFORM_PATHS_2 = [\n  { path: 'data.automation.createdDate' },\n  { path: 'data.automation.updatedDate' },\n  { path: 'metadata.eventTime' },\n];\nconst TRANSFORM_PATHS_3 = [\n  { path: 'data.previousAutomation.createdDate' },\n  { path: 'data.previousAutomation.updatedDate' },\n  { path: 'data.currentAutomation.createdDate' },\n  { path: 'data.currentAutomation.updatedDate' },\n  { path: 'metadata.eventTime' },\n];\nexport const __metadata = { PACKAGE_NAME: '@wix/automations' };\n\nexport function createAutomation(\n  httpClient: HttpClient\n): CreateAutomationSignature {\n  return (\n    automation: NonNullablePaths<\n      Automation,\n      | `name`\n      | `rule`\n      | `rule.actions`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.appId`\n      | `rule.trigger`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`,\n      3\n    >\n  ) =>\n    universalCreateAutomation(\n      automation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateAutomationSignature {\n  /**\n   * Creates a new Automation\n   * @param - Automation to be created\n   * @returns The created Automation\n   * @deprecated\n   */\n  (\n    automation: NonNullablePaths<\n      Automation,\n      | `name`\n      | `rule`\n      | `rule.actions`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.appId`\n      | `rule.trigger`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`,\n      3\n    >\n  ): Promise<\n    NonNullablePaths<\n      Automation,\n      | `name`\n      | `description`\n      | `type`\n      | `status`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`\n      | `rule.trigger.filters`\n      | `rule.trigger.filters.${number}.fieldKey`\n      | `rule.trigger.filters.${number}.filterExpression`\n      | `rule.trigger.debounce.timeFrameInSeconds`\n      | `rule.trigger.debounce.fieldKey`\n      | `rule.actions`\n      | `rule.actions.${number}.appId`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.actionConfig`\n      | `rule.actions.${number}.delay.for.seconds`\n      | `rule.actions.${number}.delay.for.delayFieldKey`\n      | `rule.actions.${number}.delay.until.dateFieldKey`\n      | `rule.actions.${number}.rateLimit.activations`\n      | `rule.actions.${number}.condition.conditionExpression`\n      | `metadata.hidden`\n      | `metadata.alwaysActive`\n      | `metadata.schedulingModificationDisabled`\n      | `metadata.actionRemovalDisabled`\n      | `metadata.actionConditionsEditingDisabled`,\n      5\n    >\n  >;\n}\n\nexport function getAutomation(httpClient: HttpClient): GetAutomationSignature {\n  return (automationId: string, options?: GetAutomationOptions) =>\n    universalGetAutomation(\n      automationId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetAutomationSignature {\n  /**\n   * Get a Automation by id\n   * @param - Automation ID\n   * @returns Automation\n   * @deprecated\n   */\n  (automationId: string, options?: GetAutomationOptions): Promise<\n    NonNullablePaths<\n      Automation,\n      | `name`\n      | `description`\n      | `type`\n      | `status`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`\n      | `rule.trigger.filters`\n      | `rule.trigger.filters.${number}.fieldKey`\n      | `rule.trigger.filters.${number}.filterExpression`\n      | `rule.trigger.debounce.timeFrameInSeconds`\n      | `rule.trigger.debounce.fieldKey`\n      | `rule.actions`\n      | `rule.actions.${number}.appId`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.actionConfig`\n      | `rule.actions.${number}.delay.for.seconds`\n      | `rule.actions.${number}.delay.for.delayFieldKey`\n      | `rule.actions.${number}.delay.until.dateFieldKey`\n      | `rule.actions.${number}.rateLimit.activations`\n      | `rule.actions.${number}.condition.conditionExpression`\n      | `metadata.hidden`\n      | `metadata.alwaysActive`\n      | `metadata.schedulingModificationDisabled`\n      | `metadata.actionRemovalDisabled`\n      | `metadata.actionConditionsEditingDisabled`,\n      5\n    >\n  >;\n}\n\nexport function updateAutomation(\n  httpClient: HttpClient\n): UpdateAutomationSignature {\n  return (\n    _id: string,\n    automation: NonNullablePaths<UpdateAutomation, `revision`, 0>\n  ) =>\n    universalUpdateAutomation(\n      _id,\n      automation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateAutomationSignature {\n  /**\n   * Update a Automation, supports partial update\n   * Pass the latest `revision` for a successful update\n   * @param - Automation ID\n   * @returns The updated Automation\n   * @deprecated\n   */\n  (\n    _id: string,\n    automation: NonNullablePaths<UpdateAutomation, `revision`, 0>\n  ): Promise<\n    NonNullablePaths<\n      Automation,\n      | `name`\n      | `description`\n      | `type`\n      | `status`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`\n      | `rule.trigger.filters`\n      | `rule.trigger.filters.${number}.fieldKey`\n      | `rule.trigger.filters.${number}.filterExpression`\n      | `rule.trigger.debounce.timeFrameInSeconds`\n      | `rule.trigger.debounce.fieldKey`\n      | `rule.actions`\n      | `rule.actions.${number}.appId`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.actionConfig`\n      | `rule.actions.${number}.delay.for.seconds`\n      | `rule.actions.${number}.delay.for.delayFieldKey`\n      | `rule.actions.${number}.delay.until.dateFieldKey`\n      | `rule.actions.${number}.rateLimit.activations`\n      | `rule.actions.${number}.condition.conditionExpression`\n      | `metadata.hidden`\n      | `metadata.alwaysActive`\n      | `metadata.schedulingModificationDisabled`\n      | `metadata.actionRemovalDisabled`\n      | `metadata.actionConditionsEditingDisabled`,\n      5\n    >\n  >;\n}\n\nexport function migrationUpdateAutomation(\n  httpClient: HttpClient\n): MigrationUpdateAutomationSignature {\n  return (_id: string, automation: MigrationUpdateAutomation) =>\n    universalMigrationUpdateAutomation(\n      _id,\n      automation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface MigrationUpdateAutomationSignature {\n  /**\n   * @param - Automation ID\n   * @deprecated\n   */\n  (_id: string, automation: MigrationUpdateAutomation): Promise<\n    NonNullablePaths<\n      MigrationUpdateAutomationResponse,\n      | `automation.name`\n      | `automation.description`\n      | `automation.type`\n      | `automation.status`\n      | `automation.rule.trigger.appId`\n      | `automation.rule.trigger.triggerKey`\n      | `automation.rule.trigger.filters`\n      | `automation.rule.trigger.filters.${number}.fieldKey`\n      | `automation.rule.trigger.filters.${number}.filterExpression`\n      | `automation.rule.trigger.debounce.timeFrameInSeconds`\n      | `automation.rule.trigger.debounce.fieldKey`\n      | `automation.rule.actions`\n      | `automation.rule.actions.${number}.appId`\n      | `automation.rule.actions.${number}.actionKey`\n      | `automation.rule.actions.${number}.actionConfig`\n      | `automation.rule.actions.${number}.delay.for.seconds`\n      | `automation.rule.actions.${number}.delay.for.delayFieldKey`\n      | `automation.rule.actions.${number}.delay.until.dateFieldKey`\n      | `automation.rule.actions.${number}.rateLimit.activations`\n      | `automation.rule.actions.${number}.condition.conditionExpression`\n      | `automation.metadata.hidden`\n      | `automation.metadata.alwaysActive`\n      | `automation.metadata.schedulingModificationDisabled`\n      | `automation.metadata.actionRemovalDisabled`\n      | `automation.metadata.actionConditionsEditingDisabled`,\n      6\n    >\n  >;\n}\n\nexport function deleteAutomation(\n  httpClient: HttpClient\n): DeleteAutomationSignature {\n  return (automationId: string, options?: DeleteAutomationOptions) =>\n    universalDeleteAutomation(\n      automationId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteAutomationSignature {\n  /**\n   * Delete an Automation\n   * @param - Id of the Automation to delete\n   * @deprecated\n   */\n  (automationId: string, options?: DeleteAutomationOptions): Promise<void>;\n}\n\nexport function queryAutomations(\n  httpClient: HttpClient\n): QueryAutomationsSignature {\n  return (options?: QueryAutomationsOptions) =>\n    universalQueryAutomations(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryAutomationsSignature {\n  /**\n   * Query Automations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n   * @deprecated\n   */\n  (options?: QueryAutomationsOptions): AutomationsQueryBuilder;\n}\n\nexport function typedQueryAutomations(\n  httpClient: HttpClient\n): TypedQueryAutomationsSignature {\n  return (query: AutomationQuery, options?: QueryAutomationsOptions) =>\n    universalTypedQueryAutomations(\n      query,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface TypedQueryAutomationsSignature {\n  /** */\n  (query: AutomationQuery, options?: QueryAutomationsOptions): Promise<\n    NonNullablePaths<\n      QueryAutomationsResponse,\n      | `automations`\n      | `automations.${number}.name`\n      | `automations.${number}.description`\n      | `automations.${number}.type`\n      | `automations.${number}.status`\n      | `automations.${number}.rule.trigger.appId`\n      | `automations.${number}.rule.trigger.triggerKey`\n      | `automations.${number}.metadata.hidden`\n      | `automations.${number}.metadata.alwaysActive`\n      | `automations.${number}.metadata.schedulingModificationDisabled`\n      | `automations.${number}.metadata.actionRemovalDisabled`\n      | `automations.${number}.metadata.actionConditionsEditingDisabled`,\n      4\n    >\n  >;\n}\n\nexport function overrideApplicationAutomation(\n  httpClient: HttpClient\n): OverrideApplicationAutomationSignature {\n  return (\n    automation: NonNullablePaths<\n      Automation,\n      | `name`\n      | `rule`\n      | `rule.actions`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.appId`\n      | `rule.trigger`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`,\n      3\n    >\n  ) =>\n    universalOverrideApplicationAutomation(\n      automation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface OverrideApplicationAutomationSignature {\n  /**\n   * Creates a new Automation\n   * @param - Application Automation\n   * @deprecated\n   */\n  (\n    automation: NonNullablePaths<\n      Automation,\n      | `name`\n      | `rule`\n      | `rule.actions`\n      | `rule.actions.${number}.actionKey`\n      | `rule.actions.${number}.appId`\n      | `rule.trigger`\n      | `rule.trigger.appId`\n      | `rule.trigger.triggerKey`,\n      3\n    >\n  ): Promise<\n    NonNullablePaths<\n      OverrideApplicationAutomationResponse,\n      | `automation.name`\n      | `automation.description`\n      | `automation.type`\n      | `automation.status`\n      | `automation.rule.trigger.appId`\n      | `automation.rule.trigger.triggerKey`\n      | `automation.rule.trigger.filters`\n      | `automation.rule.trigger.filters.${number}.fieldKey`\n      | `automation.rule.trigger.filters.${number}.filterExpression`\n      | `automation.rule.trigger.debounce.timeFrameInSeconds`\n      | `automation.rule.trigger.debounce.fieldKey`\n      | `automation.rule.actions`\n      | `automation.rule.actions.${number}.appId`\n      | `automation.rule.actions.${number}.actionKey`\n      | `automation.rule.actions.${number}.actionConfig`\n      | `automation.rule.actions.${number}.delay.for.seconds`\n      | `automation.rule.actions.${number}.delay.for.delayFieldKey`\n      | `automation.rule.actions.${number}.delay.until.dateFieldKey`\n      | `automation.rule.actions.${number}.rateLimit.activations`\n      | `automation.rule.actions.${number}.condition.conditionExpression`\n      | `automation.metadata.hidden`\n      | `automation.metadata.alwaysActive`\n      | `automation.metadata.schedulingModificationDisabled`\n      | `automation.metadata.actionRemovalDisabled`\n      | `automation.metadata.actionConditionsEditingDisabled`,\n      6\n    >\n  >;\n}\n\nexport function validateAutomationById(\n  httpClient: HttpClient\n): ValidateAutomationByIdSignature {\n  return (automationId: string, options?: ValidateAutomationByIdOptions) =>\n    universalValidateAutomationById(\n      automationId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ValidateAutomationByIdSignature {\n  /**\n   * Validate Automation by Id\n   * @param - Automation ID\n   * @deprecated\n   */\n  (automationId: string, options?: ValidateAutomationByIdOptions): Promise<\n    NonNullablePaths<\n      ValidateAutomationByIdResponse,\n      | `valid`\n      | `triggerValidationErrors`\n      | `triggerValidationErrors.${number}.configurationError.errorType`\n      | `triggerValidationErrors.${number}.providerConfigurationError.message`\n      | `triggerValidationErrors.${number}.providerConfigurationError.title`\n      | `triggerValidationErrors.${number}.errorType`\n      | `actionValidationInfo`\n      | `actionValidationInfo.${number}.appId`\n      | `actionValidationInfo.${number}.actionKey`,\n      3\n    >\n  >;\n}\n\nexport function validateAutomation(\n  httpClient: HttpClient\n): ValidateAutomationSignature {\n  return (automation: Automation) =>\n    universalValidateAutomation(\n      automation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ValidateAutomationSignature {\n  /**\n   * Validate Automation\n   * @param - Automation to validate\n   * @deprecated\n   */\n  (automation: Automation): Promise<\n    NonNullablePaths<\n      ValidateAutomationResponse,\n      | `valid`\n      | `triggerValidationErrors`\n      | `triggerValidationErrors.${number}.configurationError.errorType`\n      | `triggerValidationErrors.${number}.providerConfigurationError.message`\n      | `triggerValidationErrors.${number}.providerConfigurationError.title`\n      | `triggerValidationErrors.${number}.errorType`\n      | `actionValidationInfo`\n      | `actionValidationInfo.${number}.appId`\n      | `actionValidationInfo.${number}.actionKey`,\n      3\n    >\n  >;\n}\n\nexport function getAutomationActivationStats(\n  httpClient: HttpClient\n): GetAutomationActivationStatsSignature {\n  return (\n    automationId: string,\n    options?: GetAutomationActivationStatsOptions\n  ) =>\n    universalGetAutomationActivationStats(\n      automationId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetAutomationActivationStatsSignature {\n  /**\n   * @param - Automation ID\n   * @deprecated\n   */\n  (\n    automationId: string,\n    options?: GetAutomationActivationStatsOptions\n  ): Promise<\n    NonNullablePaths<\n      GetAutomationActivationReportsResponse,\n      | `activationReports`\n      | `activationReports.${number}.activationId`\n      | `activationReports.${number}.requestId`\n      | `activationReports.${number}.status`,\n      2\n    >\n  >;\n}\n\nexport function getActionsQuotaInfo(\n  httpClient: HttpClient\n): GetActionsQuotaInfoSignature {\n  return () =>\n    universalGetActionsQuotaInfo(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetActionsQuotaInfoSignature {\n  /**\n   * Get actions quota information\n   * @deprecated\n   */\n  (): Promise<\n    NonNullablePaths<\n      GetActionsQuotaInfoResponse,\n      | `actionProviderQuotaInfo`\n      | `actionProviderQuotaInfo.${number}.appId`\n      | `actionProviderQuotaInfo.${number}.actionKey`\n      | `actionProviderQuotaInfo.${number}.actionQuotaInfo.enforced`,\n      3\n    >\n  >;\n}\n\nexport function generateActionInputMappingFromTemplate(\n  httpClient: HttpClient\n): GenerateActionInputMappingFromTemplateSignature {\n  return (\n    appId: string,\n    options: NonNullablePaths<\n      GenerateActionInputMappingFromTemplateOptions,\n      `actionInputMappingTemplate` | `actionKey`,\n      0\n    >\n  ) =>\n    universalGenerateActionInputMappingFromTemplate(\n      appId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GenerateActionInputMappingFromTemplateSignature {\n  /**\n   * Generate action input mapping from a template\n   * @param - action app id\n   * @deprecated\n   */\n  (\n    appId: string,\n    options: NonNullablePaths<\n      GenerateActionInputMappingFromTemplateOptions,\n      `actionInputMappingTemplate` | `actionKey`,\n      0\n    >\n  ): Promise<GenerateActionInputMappingFromTemplateResponse>;\n}\n\nexport const onAutomationCreated = /*#__PURE__*/ EventDefinition(\n  'wix.automations.v1.automation_created',\n  true,\n  (event: AutomationCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: TRANSFORM_PATHS_0,\n        },\n      ])\n    )\n)<AutomationCreatedEnvelope>();\nexport const onAutomationDeleted = /*#__PURE__*/ EventDefinition(\n  'wix.automations.v1.automation_deleted',\n  true,\n  (event: AutomationDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: TRANSFORM_PATHS_1,\n        },\n      ])\n    )\n)<AutomationDeletedEnvelope>();\nexport const onAutomationUpdated = /*#__PURE__*/ EventDefinition(\n  'wix.automations.v1.automation_updated',\n  true,\n  (event: AutomationUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: TRANSFORM_PATHS_0,\n        },\n      ])\n    )\n)<AutomationUpdatedEnvelope>();\nexport const onAutomationDeletedWithEntity = /*#__PURE__*/ EventDefinition(\n  'wix.automations.v1.automation_deleted_with_entity',\n  true,\n  (event: AutomationDeletedWithEntityEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: TRANSFORM_PATHS_2,\n        },\n      ])\n    )\n)<AutomationDeletedWithEntityEnvelope>();\nexport const onAutomationUpdatedWithPreviousEntity =\n  /*#__PURE__*/ EventDefinition(\n    'wix.automations.v1.automation_updated_with_previous_entity',\n    true,\n    (event: AutomationUpdatedWithPreviousEntityEnvelope) =>\n      renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(event, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_3,\n          },\n        ])\n      )\n  )<AutomationUpdatedWithPreviousEntityEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  Action,\n  ActionConfigurationError,\n  ActionErrorType,\n  ActionEvent,\n  ActionProviderQuotaInfo,\n  ActionQuotaInfo,\n  ActionValidationError,\n  ActionValidationErrorErrorOneOf,\n  ActionValidationInfo,\n  ActivationReport,\n  ActivationStatus,\n  AdditionalInfo,\n  AddressLocation,\n  ApplicationError,\n  Asset,\n  Automation,\n  AutomationCreatedEnvelope,\n  AutomationDeletedEnvelope,\n  AutomationDeletedWithEntityEnvelope,\n  AutomationMetadata,\n  AutomationQuerySpec,\n  AutomationUpdatedEnvelope,\n  AutomationUpdatedWithPreviousEntityEnvelope,\n  AutomationsQueryBuilder,\n  AutomationsQueryResult,\n  BaseEventMetadata,\n  BlockType,\n  BulkActionMetadata,\n  BulkCreateApplicationAutomationRequest,\n  BulkCreateApplicationAutomationResponse,\n  BulkDeleteAutomationsRequest,\n  BulkDeleteAutomationsResponse,\n  CTA,\n  Condition,\n  ConditionBlock,\n  Conditions,\n  CreateAutomationRequest,\n  CreateAutomationResponse,\n  CursorPaging,\n  Cursors,\n  Debounce,\n  Delay,\n  DelayTypeOneOf,\n  DeleteAutomationOptions,\n  DeleteAutomationRequest,\n  DeleteAutomationResponse,\n  DeleteContext,\n  DeleteStatus,\n  DeletedWithEntity,\n  Domain,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EditorlessAssigned,\n  EditorlessUnassigned,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  ExtendedFields,\n  Filter,\n  GenerateActionInputMappingFromTemplateOptions,\n  GenerateActionInputMappingFromTemplateRequest,\n  GenerateActionInputMappingFromTemplateResponse,\n  GenerateApplicationAutomationFromCustomRequest,\n  GenerateApplicationAutomationFromCustomResponse,\n  GetActionsQuotaInfoRequest,\n  GetActionsQuotaInfoResponse,\n  GetApplicationAutomationRequest,\n  GetApplicationAutomationResponse,\n  GetAutomationActionSchemaRequest,\n  GetAutomationActionSchemaResponse,\n  GetAutomationActivationReportsRequest,\n  GetAutomationActivationReportsResponse,\n  GetAutomationActivationStatsOptions,\n  GetAutomationOptions,\n  GetAutomationRequest,\n  GetAutomationResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  ItemMetadata,\n  MessageEnvelope,\n  MetaSiteSpecialEvent,\n  MetaSiteSpecialEventPayloadOneOf,\n  MigrationBulkCreateAutomations,\n  MigrationBulkCreateAutomationsRequest,\n  MigrationBulkCreateAutomationsResponse,\n  MigrationUpdateAutomation,\n  MigrationUpdateAutomationRequest,\n  MigrationUpdateAutomationResponse,\n  MigrationUpdateMigratedToV3AutomationRequest,\n  MigrationUpdateMigratedToV3AutomationResponse,\n  Namespace,\n  NamespaceChanged,\n  OdeditorAssigned,\n  OdeditorUnassigned,\n  Offset,\n  OffsetValueOneOf,\n  OverrideApplicationAutomationRequest,\n  OverrideApplicationAutomationResponse,\n  Paging,\n  PagingMetadata,\n  PagingMetadataV2,\n  PicassoAssigned,\n  PicassoUnassigned,\n  Plan,\n  ProviderConfigurationError,\n  QueryApplicationAutomationsRequest,\n  QueryApplicationAutomationsResponse,\n  QueryAutomationsOptions,\n  QueryAutomationsRequest,\n  QueryAutomationsResponse,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  Quota,\n  QuotaInfo,\n  RateLimit,\n  RestoreInfo,\n  Rule,\n  ServiceProvisioned,\n  ServiceRemoved,\n  SiteCreated,\n  SiteCreatedContext,\n  SiteDeleted,\n  SiteHardDeleted,\n  SiteMarkedAsTemplate,\n  SiteMarkedAsWixSite,\n  SitePublished,\n  SitePurgedExternally,\n  SiteRenamed,\n  SiteTransferred,\n  SiteUndeleted,\n  SiteUnpublished,\n  SiteUrlChanged,\n  SortOrder,\n  Sorting,\n  Source,\n  State,\n  Status,\n  StudioAssigned,\n  StudioTwoAssigned,\n  StudioTwoUnassigned,\n  StudioUnassigned,\n  SyncApplicationAutomationsRequest,\n  SyncApplicationAutomationsResponse,\n  Trigger,\n  TriggerConfigurationError,\n  TriggerErrorType,\n  TriggerValidationError,\n  TriggerValidationErrorErrorOneOf,\n  TriggerValidationErrorValidationErrorType,\n  Type,\n  Until,\n  UpdateApplicationAutomationConfigurationIdRequest,\n  UpdateApplicationAutomationConfigurationIdResponse,\n  UpdateApplicationAutomationToMigratedFromV1Request,\n  UpdateApplicationAutomationToMigratedFromV1Response,\n  UpdateAutomation,\n  UpdateAutomationRequest,\n  UpdateAutomationResponse,\n  UpdatedAutomationsWithEsb,\n  UpdatedWithPreviousEntity,\n  UpgradeCTA,\n  UserDomainMediaDisabled,\n  UserDomainMediaEnabled,\n  ValidateAutomationByIdOptions,\n  ValidateAutomationByIdRequest,\n  ValidateAutomationByIdResponse,\n  ValidateAutomationRequest,\n  ValidateAutomationResponse,\n  ValidationErrorType,\n  WebhookIdentityType,\n  WixelAssigned,\n  WixelUnassigned,\n  utils,\n} from './automations-v1-automation-automations-service.universal.js';\n","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 ambassadorWixAutomationsV1Automation from './automations-v1-automation-automations-service.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/** Automation */\nexport interface Automation {\n  /**\n   * Automation ID\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Revision */\n  revision?: string | null;\n  /**\n   * Automation name\n   * @maxLength 500\n   */\n  name?: string;\n  /**\n   * Automation description\n   * @maxLength 2000\n   */\n  description?: string;\n  /**\n   * Automation Type\n   * @readonly\n   */\n  type?: TypeWithLiterals;\n  /** Automation Status */\n  status?: StatusWithLiterals;\n  /** Rule that contains a trigger & some actions */\n  rule?: Rule;\n  /**\n   * Source Application Automation\n   * @readonly\n   */\n  source?: Source;\n  /**\n   * Metadata\n   * @readonly\n   */\n  metadata?: AutomationMetadata;\n  /**\n   * Created date\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Updated date\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * ESB Configuration ID\n   * @format GUID\n   * @readonly\n   */\n  esbConfigurationId?: string | null;\n  /**\n   * Was this automation migrated from v1\n   * @readonly\n   */\n  migratedFromV1?: boolean | null;\n  /** @readonly */\n  migratedToV3?: boolean | null;\n  /** @internal */\n  extendedFields?: ExtendedFields;\n}\n\nexport enum Type {\n  CUSTOM = 'CUSTOM',\n  APPLICATION = 'APPLICATION',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'CUSTOM' | 'APPLICATION';\n\nexport enum Status {\n  ACTIVE = 'ACTIVE',\n  INACTIVE = 'INACTIVE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'ACTIVE' | 'INACTIVE';\n\nexport interface Rule {\n  /** an event triggered by visitors on a site, or by a site manager (owner & team). */\n  trigger?: Trigger;\n  /**\n   * the actions responding to the trigger happening.\n   * ** IMPORTANT NOTE: the order of the actions is important, and will be executed in the order they appear in the list **\n   * @minSize 1\n   * @maxSize 30\n   */\n  actions?: Action[];\n}\n\nexport interface Trigger {\n  /**\n   * the id of the app defining the trigger\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * Identifier for this trigger - human readable action key\n   * @minLength 1\n   * @maxLength 100\n   */\n  triggerKey?: string;\n  /**\n   * optional list of filters on schema fields\n   * @maxSize 5\n   */\n  filters?: Filter[];\n  /**\n   * optional - allows to define a trigger whose following actions will be executed only if the same event for the same resource has not in the last X seconds.\n   * for example, if the trigger is \"session booked\", the resource is a contact and the timeframe is 3600 seconds (contact hasn't booked another session in the last hour),\n   * then the actions will be executed only if the same event (session booked for that contact) has not happened in the last hour.\n   */\n  debounce?: Debounce;\n}\n\nexport interface Filter {\n  /**\n   * the filter identifier\n   * @format GUID\n   */\n  _id?: string | null;\n  /**\n   * the field key from the schema, for example \"formId\"\n   * @minLength 1\n   * @maxLength 110\n   */\n  fieldKey?: string;\n  /**\n   * filter expression that evaluates to a boolean, for example - {{ contains([\"guid1\",\"guid2\"];formId) }}\n   * @minLength 5\n   */\n  filterExpression?: string;\n}\n\nexport interface Debounce {\n  /**\n   * Amount of time in seconds to wait for any additional events to occur before triggering the actions.\n   * If no additional events occur within the specified time, the actions will be triggered.\n   * If additional events occur within the specified time, the timer will be reset.\n   * @min 1\n   */\n  timeFrameInSeconds?: number;\n  /**\n   * The field key in the trigger's 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\nexport interface Action {\n  /**\n   * the id of the action for delayed events\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * the id of the app defining the action\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * Identifier for this action - human readable action key - unique per app def id\n   * @maxLength 80\n   */\n  actionKey?: string;\n  /**\n   * input mapping expression for the action inputs\n   * for example:\n   * `{  \"subject\": \"Thanks for reaching out!\"\n   * \"message\": \"Hi {{contact.name.first}}, thanks for contacting our business\"\n   * }`\n   * where the value for \"contact.name.first\" comes from the trigger's payload\n   * @maxLength 20000\n   */\n  actionConfig?: string;\n  /**\n   * output mapping expression for the action output\n   * for example in get-contact action:\n   * `{ \"author\": \"{{$}}\" }`\n   * This will map the entire entity of contact under `author` namespace\n   * @maxLength 3000\n   */\n  outputActionConfig?: string | null;\n  /** Optional delay configuration for the action */\n  delay?: Delay;\n  /** allows you define an activation policy - like number of activations in a time frame, or limit by some identifier, like contact (e.g. send email to user only at first login) */\n  rateLimit?: RateLimit;\n  /**\n   * allows the user to define a condition for the action to be executed, if the condition fails the action (and following actions) will not be executed\n   * @deprecated allows the user to define a condition for the action to be executed, if the condition fails the action (and following actions) will not be executed\n   * @replacedBy conditions\n   * @targetRemovalDate 2023-08-01\n   */\n  condition?: Condition;\n  conditions?: Conditions;\n  /**\n   * allows the user to define a namespace for the action output\n   * @minLength 1\n   * @maxLength 100\n   */\n  namespace?: string | null;\n}\n\nexport enum BlockType {\n  UNKNOWN = 'UNKNOWN',\n  OR = 'OR',\n  AND = 'AND',\n}\n\n/** @enumType */\nexport type BlockTypeWithLiterals = BlockType | 'UNKNOWN' | 'OR' | 'AND';\n\nexport interface ConditionBlock {\n  type?: BlockTypeWithLiterals;\n  /**\n   * @minSize 1\n   * @maxSize 20\n   */\n  lineExpressions?: string[];\n}\n\nexport interface Offset extends OffsetValueOneOf {\n  /** A delay in seconds */\n  seconds?: number;\n  /** The key of the field in the trigger payload which contains a delay, in seconds. */\n  delayFieldKey?: string;\n}\n\n/** @oneof */\nexport interface OffsetValueOneOf {\n  /** A delay in seconds */\n  seconds?: number;\n  /** The key of the field in the trigger payload which contains a delay, in seconds. */\n  delayFieldKey?: string;\n}\n\n/** calculated as date + delay */\nexport interface Until {\n  /** The key of the field in the trigger payload which contains the date to delay until */\n  dateFieldKey?: string;\n  /** Optional: a delay to add together with the date described in the payload */\n  offset?: Offset;\n}\n\nexport interface Delay extends DelayTypeOneOf {\n  /** A delay which is calculated based on the immediate time when the action is triggered. */\n  for?: Offset;\n  /** A delay which is calculated based on a date field in the trigger payload. May also be used together with an Offset delay. */\n  until?: Until;\n}\n\n/** @oneof */\nexport interface DelayTypeOneOf {\n  /** A delay which is calculated based on the immediate time when the action is triggered. */\n  for?: Offset;\n  /** A delay which is calculated based on a date field in the trigger payload. May also be used together with an Offset delay. */\n  until?: Until;\n}\n\nexport interface RateLimit {\n  /**\n   * time frame in minutes\n   * @min 1\n   */\n  timeFrame?: number | null;\n  /**\n   * number of activations allowed in the given time frame\n   * @min 1\n   */\n  activations?: number;\n  /**\n   * limit the activation by an entity, for example activate once per contact. example: {{contact.id}}\n   * @minLength 1\n   * @maxLength 300\n   */\n  uniqueIdentifierExpression?: string | null;\n}\n\nexport interface Condition {\n  /**\n   * entity object is deprecated due to the new approach to conditions\n   * the condition expression, for example - {{and(gt(price;10);lt(price;100))}}\n   * @minLength 1\n   * @maxLength 2000\n   */\n  conditionExpression?: string;\n}\n\nexport interface Conditions {\n  /**\n   * condition evaluates to `true` if either of the blocks evaluate to `true` (aka OR between all)\n   * @minSize 1\n   * @maxSize 10\n   */\n  conditionBlocks?: ConditionBlock[];\n}\n\nexport interface Source {\n  /** Automation ID */\n  automationId?: string | null;\n  /** Application ID */\n  appId?: string | null;\n  /** Component ID */\n  componentId?: string | null;\n  /** Version */\n  version?: number | null;\n}\n\nexport interface AutomationMetadata {\n  /** Is this Automation hidden on a site? */\n  hidden?: boolean;\n  /** Can this Automation be dismissed (inactivated) on a site? */\n  alwaysActive?: boolean;\n  /** Is this Automation's scheduling modification is disabled on a site? */\n  schedulingModificationDisabled?: boolean;\n  /** Is the removal of this Automation's actions disabled? */\n  actionRemovalDisabled?: boolean;\n  /** Is conditions editing for this Automation allowed on a site? */\n  actionConditionsEditingDisabled?: boolean;\n  /**\n   * Domain\n   * @internal\n   * @immutable\n   */\n  domain?: DomainWithLiterals;\n}\n\nexport enum Domain {\n  /** User domain (default) */\n  USER = 'USER',\n  /** Wix domain */\n  WIX = 'WIX',\n}\n\n/** @enumType */\nexport type DomainWithLiterals = Domain | 'USER' | 'WIX';\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetApplicationAutomationRequest {\n  /**\n   * Application Automation ID\n   * @format GUID\n   */\n  automationId?: string;\n}\n\nexport interface GetApplicationAutomationResponse {\n  /** Automation */\n  automation?: Automation;\n}\n\nexport interface QueryApplicationAutomationsRequest {\n  /** Query */\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   * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n   * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n   *\n   * If multiple filters are provided, they are combined with AND operator.\n   *\n   * Example:\n   * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n   * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n   * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n   * @internal\n   * @maxSize 10\n   */\n  selectItemsBy?: Record<string, any>[] | null;\n  /**\n   * Origin point for geo-distance sorting on a GEO field\n   * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n   */\n  origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n  /** Address latitude. */\n  latitude?: number | null;\n  /** Address longitude. */\n  longitude?: number | null;\n}\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 QueryApplicationAutomationsResponse {\n  /** List of automations */\n  automations?: Automation[];\n  /** Paging metadata */\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   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   * @internal\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface UpdateApplicationAutomationConfigurationIdRequest {\n  /**\n   * Application Automation ID\n   * @format GUID\n   */\n  automationId?: string;\n  /**\n   * Configuration ID\n   * @format GUID\n   */\n  esbConfigurationId?: string;\n}\n\nexport interface UpdateApplicationAutomationConfigurationIdResponse {}\n\nexport interface UpdateApplicationAutomationToMigratedFromV1Request {\n  /**\n   * Application Automation ID\n   * @format GUID\n   */\n  automationId?: string;\n  /**\n   * Revision\n   * @readonly\n   */\n  revision?: string | null;\n  /** value to be set */\n  value?: boolean | null;\n}\n\nexport interface UpdateApplicationAutomationToMigratedFromV1Response {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n  /** Emitted on a meta site creation. */\n  siteCreated?: SiteCreated;\n  /** Emitted on a meta site transfer completion. */\n  siteTransferred?: SiteTransferred;\n  /** Emitted on a meta site deletion. */\n  siteDeleted?: SiteDeleted;\n  /** Emitted on a meta site restoration. */\n  siteUndeleted?: SiteUndeleted;\n  /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n  sitePublished?: SitePublished;\n  /** Emitted on a meta site unpublish. */\n  siteUnpublished?: SiteUnpublished;\n  /** Emitted when meta site is marked as template. */\n  siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n  /** Emitted when meta site is marked as a WixSite. */\n  siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n  /** Emitted when an application is provisioned (installed). */\n  serviceProvisioned?: ServiceProvisioned;\n  /** Emitted when an application is removed (uninstalled). */\n  serviceRemoved?: ServiceRemoved;\n  /** Emitted when meta site name (URL slug) is changed. */\n  siteRenamedPayload?: SiteRenamed;\n  /** Emitted when meta site was permanently deleted. */\n  hardDeleted?: SiteHardDeleted;\n  /** Emitted on a namespace change. */\n  namespaceChanged?: NamespaceChanged;\n  /** Emitted when Studio is attached. */\n  studioAssigned?: StudioAssigned;\n  /** Emitted when Studio is detached. */\n  studioUnassigned?: StudioUnassigned;\n  /**\n   * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n   * the actual URL.\n   *\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n   */\n  urlChanged?: SiteUrlChanged;\n  /** Site is marked as PurgedExternally */\n  sitePurgedExternally?: SitePurgedExternally;\n  /** Emitted when Odeditor is attached. */\n  odeditorAssigned?: OdeditorAssigned;\n  /** Emitted when Odeditor is detached. */\n  odeditorUnassigned?: OdeditorUnassigned;\n  /** Emitted when Picasso is attached. */\n  picassoAssigned?: PicassoAssigned;\n  /** Emitted when Picasso is detached. */\n  picassoUnassigned?: PicassoUnassigned;\n  /** Emitted when Wixel is attached. */\n  wixelAssigned?: WixelAssigned;\n  /** Emitted when Wixel is detached. */\n  wixelUnassigned?: WixelUnassigned;\n  /** Emitted when StudioTwo is attached. */\n  studioTwoAssigned?: StudioTwoAssigned;\n  /** Emitted when StudioTwo is detached. */\n  studioTwoUnassigned?: StudioTwoUnassigned;\n  /** Emitted when media from user domain is enabled. */\n  userDomainMediaEnabled?: UserDomainMediaEnabled;\n  /** Emitted when media from user domain is disabled. */\n  userDomainMediaDisabled?: UserDomainMediaDisabled;\n  /** Emitted when Editorless is attached. */\n  editorlessAssigned?: EditorlessAssigned;\n  /** Emitted when Editorless is detached. */\n  editorlessUnassigned?: EditorlessUnassigned;\n  /**\n   * A meta site id.\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /** A meta site version. Monotonically increasing. */\n  version?: string;\n  /** A timestamp of the event. */\n  timestamp?: string;\n  /**\n   * TODO(meta-site): Change validation once validations are disabled for consumers\n   * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n   * @maxSize 4000\n   */\n  assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n  /** Emitted on a meta site creation. */\n  siteCreated?: SiteCreated;\n  /** Emitted on a meta site transfer completion. */\n  siteTransferred?: SiteTransferred;\n  /** Emitted on a meta site deletion. */\n  siteDeleted?: SiteDeleted;\n  /** Emitted on a meta site restoration. */\n  siteUndeleted?: SiteUndeleted;\n  /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n  sitePublished?: SitePublished;\n  /** Emitted on a meta site unpublish. */\n  siteUnpublished?: SiteUnpublished;\n  /** Emitted when meta site is marked as template. */\n  siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n  /** Emitted when meta site is marked as a WixSite. */\n  siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n  /** Emitted when an application is provisioned (installed). */\n  serviceProvisioned?: ServiceProvisioned;\n  /** Emitted when an application is removed (uninstalled). */\n  serviceRemoved?: ServiceRemoved;\n  /** Emitted when meta site name (URL slug) is changed. */\n  siteRenamedPayload?: SiteRenamed;\n  /** Emitted when meta site was permanently deleted. */\n  hardDeleted?: SiteHardDeleted;\n  /** Emitted on a namespace change. */\n  namespaceChanged?: NamespaceChanged;\n  /** Emitted when Studio is attached. */\n  studioAssigned?: StudioAssigned;\n  /** Emitted when Studio is detached. */\n  studioUnassigned?: StudioUnassigned;\n  /**\n   * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n   * the actual URL.\n   *\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n   * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n   */\n  urlChanged?: SiteUrlChanged;\n  /** Site is marked as PurgedExternally */\n  sitePurgedExternally?: SitePurgedExternally;\n  /** Emitted when Odeditor is attached. */\n  odeditorAssigned?: OdeditorAssigned;\n  /** Emitted when Odeditor is detached. */\n  odeditorUnassigned?: OdeditorUnassigned;\n  /** Emitted when Picasso is attached. */\n  picassoAssigned?: PicassoAssigned;\n  /** Emitted when Picasso is detached. */\n  picassoUnassigned?: PicassoUnassigned;\n  /** Emitted when Wixel is attached. */\n  wixelAssigned?: WixelAssigned;\n  /** Emitted when Wixel is detached. */\n  wixelUnassigned?: WixelUnassigned;\n  /** Emitted when StudioTwo is attached. */\n  studioTwoAssigned?: StudioTwoAssigned;\n  /** Emitted when StudioTwo is detached. */\n  studioTwoUnassigned?: StudioTwoUnassigned;\n  /** Emitted when media from user domain is enabled. */\n  userDomainMediaEnabled?: UserDomainMediaEnabled;\n  /** Emitted when media from user domain is disabled. */\n  userDomainMediaDisabled?: UserDomainMediaDisabled;\n  /** Emitted when Editorless is attached. */\n  editorlessAssigned?: EditorlessAssigned;\n  /** Emitted when Editorless is detached. */\n  editorlessUnassigned?: EditorlessUnassigned;\n}\n\nexport interface Asset {\n  /**\n   * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n   * @maxLength 36\n   */\n  appDefId?: string;\n  /**\n   * An instance id. For legacy reasons may be UUID or a string.\n   * @maxLength 200\n   */\n  instanceId?: string;\n  /** An application state. */\n  state?: StateWithLiterals;\n}\n\nexport enum State {\n  UNKNOWN = 'UNKNOWN',\n  ENABLED = 'ENABLED',\n  DISABLED = 'DISABLED',\n  PENDING = 'PENDING',\n  DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n  | State\n  | 'UNKNOWN'\n  | 'ENABLED'\n  | 'DISABLED'\n  | 'PENDING'\n  | 'DEMO';\n\nexport interface SiteCreated {\n  /**\n   * A template identifier (empty if not created from a template).\n   * @maxLength 36\n   */\n  originTemplateId?: string;\n  /**\n   * An account id of the owner.\n   * @format GUID\n   */\n  ownerId?: string;\n  /** A context in which meta site was created. */\n  context?: SiteCreatedContextWithLiterals;\n  /**\n   * A meta site id from which this site was created.\n   *\n   * In case of a creation from a template it's a template id.\n   * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n   * @format GUID\n   */\n  originMetaSiteId?: string | null;\n  /**\n   * A meta site name (URL slug).\n   * @maxLength 20\n   */\n  siteName?: string;\n  /** A namespace. */\n  namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n  /** A valid option, we don't expose all reasons why site might be created. */\n  OTHER = 'OTHER',\n  /** A meta site was created from template. */\n  FROM_TEMPLATE = 'FROM_TEMPLATE',\n  /** A meta site was created by copying of the transfferred meta site. */\n  DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n  /** A copy of existing meta site. */\n  DUPLICATE = 'DUPLICATE',\n  /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n  OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n  /** deprecated A meta site was created for Flash editor. */\n  FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n  | SiteCreatedContext\n  | 'OTHER'\n  | 'FROM_TEMPLATE'\n  | 'DUPLICATE_BY_SITE_TRANSFER'\n  | 'DUPLICATE'\n  | 'OLD_SITE_TRANSFER'\n  | 'FLASH';\n\nexport enum Namespace {\n  UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n  /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n  WIX = 'WIX',\n  /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  SHOUT_OUT = 'SHOUT_OUT',\n  /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  ALBUMS = 'ALBUMS',\n  /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n  /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  HOTELS = 'HOTELS',\n  /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  CLUBS = 'CLUBS',\n  /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n  /**\n   * AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default.\n   * Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG).\n   */\n  DEV_SITE = 'DEV_SITE',\n  /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  LOGOS = 'LOGOS',\n  /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  VIDEO_MAKER = 'VIDEO_MAKER',\n  /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n  /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n  /**\n   * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n   *\n   * Meta site with this namespace will *not* be shown in a user's site list by default.\n   */\n  HTML_DRAFT = 'HTML_DRAFT',\n  /**\n   * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n   * Will be accessible from Site List and will not have a website app.\n   * Once the user attaches a site, the site will become a regular wixsite.\n   */\n  SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n  /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n  CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n  /** It is to be used in the Business First efforts. */\n  DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n  /** Bookings business flow with no site. */\n  ANYWHERE = 'ANYWHERE',\n  /** Namespace for Headless Backoffice with no editor */\n  HEADLESS = 'HEADLESS',\n  /**\n   * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n   * The site will be used for account level CSM feature for enterprise\n   */\n  ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n  /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n  RISE = 'RISE',\n  /**\n   * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n   * There's a blank site behind the scene but it's blank).\n   * The Mobile company will be the owner of this namespace.\n   */\n  BRANDED_FIRST = 'BRANDED_FIRST',\n  /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n  NOWNIA = 'NOWNIA',\n  /**\n   * UGC Templates are templates that are created by users for personal use and to sale to other users.\n   * The Partners company owns this namespace.\n   */\n  UGC_TEMPLATE = 'UGC_TEMPLATE',\n  /** Codux Headless Sites */\n  CODUX = 'CODUX',\n  /** Bobb - AI Design Creator. */\n  MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n  /**\n   * Shared Blog Site is a unique single site across Enterprise account,\n   * This site will hold all Blog posts related to the Marketing product.\n   */\n  SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n  /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  STANDALONE_FORMS = 'STANDALONE_FORMS',\n  /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n  STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n  /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n  MIMIR = 'MIMIR',\n  /** Wix Twins platform. */\n  TWINS = 'TWINS',\n  /** Wix Nano. */\n  NANO = 'NANO',\n  /** Base44 headless sites. */\n  BASE44 = 'BASE44',\n  /** Wix Channels Sites */\n  CHANNELS = 'CHANNELS',\n  /** Nautilus platform. */\n  NAUTILUS = 'NAUTILUS',\n  /**\n   * Symphony — a siteless site representing a project within Symphony (the evolution of Orion).\n   * Holds project data, conversations, assets, and manages collaborators / shared team members for the project.\n   */\n  SYMPHONY = 'SYMPHONY',\n  /** Nautilus platform app. */\n  NAUTILUS_APPS = 'NAUTILUS_APPS',\n  /**\n   * Vibu — a siteless site representing a project built with Vibu (the AI app builder).\n   * Holds the project's generated code, conversations, assets, and manages collaborators for the project.\n   */\n  VIBU = 'VIBU',\n  /**\n   * Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit\n   * (an Enterprise account may have several), holding that BrandKit's brand definition\n   * (theme, typography, assets) which is rolled out to the BrandKit's connected sites.\n   * MetaSites with this namespace will *not* be shown in a user's site list by default.\n   */\n  ENTERPRISE_BRAND_KIT = 'ENTERPRISE_BRAND_KIT',\n  /**\n   * Dev-center development sites (com.wixpress.devcenter.dsm).\n   * DEPRECATED: replaced by Flag.DEV_CENTER_DEV_SITE_FLAG (a dev site is orthogonal to the namespace). Do not use for new sites.\n   */\n  DEV_CENTER_DEV_SITE = 'DEV_CENTER_DEV_SITE',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n  | Namespace\n  | 'UNKNOWN_NAMESPACE'\n  | 'WIX'\n  | 'SHOUT_OUT'\n  | 'ALBUMS'\n  | 'WIX_STORES_TEST_DRIVE'\n  | 'HOTELS'\n  | 'CLUBS'\n  | 'ONBOARDING_DRAFT'\n  | 'DEV_SITE'\n  | 'LOGOS'\n  | 'VIDEO_MAKER'\n  | 'PARTNER_DASHBOARD'\n  | 'DEV_CENTER_COMPANY'\n  | 'HTML_DRAFT'\n  | 'SITELESS_BUSINESS'\n  | 'CREATOR_ECONOMY'\n  | 'DASHBOARD_FIRST'\n  | 'ANYWHERE'\n  | 'HEADLESS'\n  | 'ACCOUNT_MASTER_CMS'\n  | 'RISE'\n  | 'BRANDED_FIRST'\n  | 'NOWNIA'\n  | 'UGC_TEMPLATE'\n  | 'CODUX'\n  | 'MEDIA_DESIGN_CREATOR'\n  | 'SHARED_BLOG_ENTERPRISE'\n  | 'STANDALONE_FORMS'\n  | 'STANDALONE_EVENTS'\n  | 'MIMIR'\n  | 'TWINS'\n  | 'NANO'\n  | 'BASE44'\n  | 'CHANNELS'\n  | 'NAUTILUS'\n  | 'SYMPHONY'\n  | 'NAUTILUS_APPS'\n  | 'VIBU'\n  | 'ENTERPRISE_BRAND_KIT'\n  | 'DEV_CENTER_DEV_SITE';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n  /**\n   * A previous owner id (user that transfers meta site).\n   * @format GUID\n   */\n  oldOwnerId?: string;\n  /**\n   * A new owner id (user that accepts meta site).\n   * @format GUID\n   */\n  newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n  /** A deletion context. */\n  deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n  /** When the meta site was deleted. */\n  dateDeleted?: Date | null;\n  /** A status. */\n  deleteStatus?: DeleteStatusWithLiterals;\n  /**\n   * A reason (flow).\n   * @maxLength 255\n   */\n  deleteOrigin?: string;\n  /**\n   * A service that deleted it.\n   * @maxLength 255\n   */\n  initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n  UNKNOWN = 'UNKNOWN',\n  TRASH = 'TRASH',\n  DELETED = 'DELETED',\n  PENDING_PURGE = 'PENDING_PURGE',\n  PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n  | DeleteStatus\n  | 'UNKNOWN'\n  | 'TRASH'\n  | 'DELETED'\n  | 'PENDING_PURGE'\n  | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n  /**\n   * A list of URLs previously associated with the meta site.\n   * @maxLength 4000\n   * @maxSize 10000\n   */\n  urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n  /**\n   * Either UUID or EmbeddedServiceType.\n   * @maxLength 36\n   */\n  appDefId?: string;\n  /**\n   * Not only UUID. Something here could be something weird.\n   * @maxLength 36\n   */\n  instanceId?: string;\n  /**\n   * An instance id from which this instance is originated.\n   * @maxLength 36\n   */\n  originInstanceId?: string;\n  /**\n   * A version.\n   * @maxLength 500\n   */\n  version?: string | null;\n  /**\n   * The origin meta site id\n   * @format GUID\n   */\n  originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n  /**\n   * Either UUID or EmbeddedServiceType.\n   * @maxLength 36\n   */\n  appDefId?: string;\n  /**\n   * Not only UUID. Something here could be something weird.\n   * @maxLength 36\n   */\n  instanceId?: string;\n  /**\n   * A version.\n   * @maxLength 500\n   */\n  version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n  /**\n   * A new meta site name (URL slug).\n   * @maxLength 20\n   */\n  newSiteName?: string;\n  /**\n   * A previous meta site name (URL slug).\n   * @maxLength 255\n   */\n  oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n  /** A deletion context. */\n  deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n  /** A previous namespace. */\n  oldNamespace?: NamespaceWithLiterals;\n  /** A new namespace. */\n  newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n  /**\n   * @maxLength 2048\n   * @maxSize 100\n   * @deprecated\n   * @targetRemovalDate 2025-04-15\n   */\n  appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\n/** Media from user domain is enabled. */\nexport interface UserDomainMediaEnabled {}\n\n/** Media from user domain is disabled. */\nexport interface UserDomainMediaDisabled {}\n\n/** Assigned Editorless */\nexport interface EditorlessAssigned {}\n\n/** Unassigned Editorless */\nexport interface EditorlessUnassigned {}\n\nexport interface SyncApplicationAutomationsRequest {\n  /**\n   * List of app IDs\n   * @format GUID\n   * @maxSize 20\n   */\n  appIds?: string[];\n}\n\nexport interface SyncApplicationAutomationsResponse {}\n\nexport interface BulkCreateApplicationAutomationRequest {\n  /**\n   * Automations to be created\n   * @minSize 1\n   */\n  automations?: Automation[];\n}\n\nexport interface BulkCreateApplicationAutomationResponse {\n  /** The created Automations */\n  results?: Automation[];\n  /** Bulk create metadata. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\nexport interface CreateAutomationRequest {\n  /** Automation to be created */\n  automation: Automation;\n}\n\nexport interface CreateAutomationResponse {\n  /** The created Automation */\n  automation?: Automation;\n}\n\nexport interface MigrationBulkCreateAutomationsRequest {\n  /** Automations to be created */\n  automations?: Automation[];\n  /** V1 Activity type (trigger name) */\n  activityType?: string;\n  /** automation id to counter map */\n  automationIdToCounter?: Record<string, string>;\n  /** automation id to last triggered map */\n  automationIdToLastTriggered?: Record<string, string>;\n  /** ignore validations */\n  ignoreValidations?: boolean | null;\n}\n\nexport interface MigrationBulkCreateAutomationsResponse {\n  /** bulk action metadata */\n  bulkActionMetadata?: BulkActionMetadata;\n  /** item metadata */\n  itemMetadata?: ItemMetadata[];\n}\n\nexport interface ItemMetadata {\n  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n  _id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface MigrationBulkCreateAutomations {\n  /**\n   * Automations to be created\n   * @maxSize 100\n   */\n  automations?: Automation[];\n  /** V1 Activity type (trigger name) */\n  activityType?: string;\n  /** automation id to counter map */\n  automationIdToCounter?: Record<string, string>;\n  /** automation id to last triggered map */\n  automationIdToLastTriggered?: Record<string, string>;\n}\n\nexport interface GetAutomationRequest {\n  /**\n   * Automation ID\n   * @format GUID\n   */\n  automationId: string;\n  /** Automation type */\n  automationType?: TypeWithLiterals;\n}\n\nexport interface GetAutomationResponse {\n  /** Automation */\n  automation?: Automation;\n}\n\nexport interface UpdateAutomationRequest {\n  /** Automation to be updated, may be partial */\n  automation: Automation;\n  /**\n   * Explicit list of fields to update\n   * @internal\n   */\n  mask?: string[];\n}\n\nexport interface UpdateAutomationResponse {\n  /** The updated Automation */\n  automation?: Automation;\n}\n\nexport interface UpdatedWithPreviousEntity {\n  /** previous automation */\n  previousAutomation?: Automation;\n  /** updated automation */\n  currentAutomation?: Automation;\n}\n\nexport interface MigrationUpdateAutomationRequest {\n  /** Automation to be updated, may be partial */\n  automation: Automation;\n}\n\nexport interface MigrationUpdateAutomationResponse {\n  /** The updated Automation */\n  automation?: Automation;\n}\n\nexport interface DeleteAutomationRequest {\n  /**\n   * Id of the Automation to delete\n   * @format GUID\n   */\n  automationId: string;\n  /** The revision of the Automation */\n  revision?: string;\n}\n\nexport interface DeleteAutomationResponse {}\n\nexport interface DeletedWithEntity {\n  /** Deleted automation */\n  automation?: Automation;\n}\n\nexport interface QueryAutomationsRequest {\n  /** WQL expression */\n  query: QueryV2;\n  /** Automation type */\n  automationType?: TypeWithLiterals;\n}\n\nexport interface QueryAutomationsResponse {\n  /** List of automations */\n  automations?: Automation[];\n  /** Paging metadata */\n  paging?: PagingMetadataV2;\n}\n\nexport interface OverrideApplicationAutomationRequest {\n  /** Application Automation */\n  automation: Automation;\n}\n\nexport interface OverrideApplicationAutomationResponse {\n  /** Custom Automation */\n  automation?: Automation;\n}\n\nexport interface GenerateApplicationAutomationFromCustomRequest {\n  /** Custom Automation */\n  automation?: Automation;\n}\n\nexport interface GenerateApplicationAutomationFromCustomResponse {\n  /** Application Automation */\n  automation?: Automation;\n}\n\nexport interface ValidateAutomationByIdRequest {\n  /**\n   * Automation ID\n   * @format GUID\n   */\n  automationId: string;\n  /** Automation type */\n  automationType?: TypeWithLiterals;\n}\n\nexport interface ValidateAutomationByIdResponse {\n  /** is the Automation valid */\n  valid?: boolean;\n  /**\n   * list of validation errors for the automation Trigger\n   * @maxSize 100\n   */\n  triggerValidationErrors?: TriggerValidationError[];\n  /**\n   * list of validation information for the automation Actions\n   * @maxSize 100\n   */\n  actionValidationInfo?: ActionValidationInfo[];\n}\n\nexport interface TriggerValidationError\n  extends TriggerValidationErrorErrorOneOf {\n  /** trigger configuration error */\n  configurationError?: TriggerConfigurationError;\n  /** provider configuration error */\n  providerConfigurationError?: ProviderConfigurationError;\n  /** validation error type */\n  errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TriggerValidationErrorErrorOneOf {\n  /** trigger configuration error */\n  configurationError?: TriggerConfigurationError;\n  /** provider configuration error */\n  providerConfigurationError?: ProviderConfigurationError;\n}\n\nexport enum TriggerValidationErrorValidationErrorType {\n  UNKNOWN_VALIDATION_ERROR_TYPE = 'UNKNOWN_VALIDATION_ERROR_TYPE',\n  CONFIGURATION_ERROR = 'CONFIGURATION_ERROR',\n  PROVIDER_ERROR = 'PROVIDER_ERROR',\n}\n\n/** @enumType */\nexport type TriggerValidationErrorValidationErrorTypeWithLiterals =\n  | TriggerValidationErrorValidationErrorType\n  | 'UNKNOWN_VALIDATION_ERROR_TYPE'\n  | 'CONFIGURATION_ERROR'\n  | 'PROVIDER_ERROR';\n\nexport interface TriggerConfigurationError {\n  /** trigger error type */\n  errorType?: TriggerErrorTypeWithLiterals;\n  /** optional - related filter field key */\n  filterFieldKey?: string | null;\n}\n\nexport enum TriggerErrorType {\n  UNKNOWN_TRIGGER_ERROR_TYPE = 'UNKNOWN_TRIGGER_ERROR_TYPE',\n  NOT_FOUND = 'NOT_FOUND',\n  APP_NOT_INSTALLED = 'APP_NOT_INSTALLED',\n  MODERATION_MISMATCH = 'MODERATION_MISMATCH',\n  DEPRECATED = 'DEPRECATED',\n  INVALID_TRIGGER_KEY = 'INVALID_TRIGGER_KEY',\n  INVALID_FILTER_FIELD_KEY = 'INVALID_FILTER_FIELD_KEY',\n  INVALID_FILTER_EXPRESSION = 'INVALID_FILTER_EXPRESSION',\n}\n\n/** @enumType */\nexport type TriggerErrorTypeWithLiterals =\n  | TriggerErrorType\n  | 'UNKNOWN_TRIGGER_ERROR_TYPE'\n  | 'NOT_FOUND'\n  | 'APP_NOT_INSTALLED'\n  | 'MODERATION_MISMATCH'\n  | 'DEPRECATED'\n  | 'INVALID_TRIGGER_KEY'\n  | 'INVALID_FILTER_FIELD_KEY'\n  | 'INVALID_FILTER_EXPRESSION';\n\nexport interface ProviderConfigurationError {\n  /** Scheme field key. */\n  fieldKey?: string | null;\n  /** Error message. */\n  message?: string;\n  /** Label for the call-to-action button displayed with the error. */\n  ctaLabel?: string | null;\n  /** When the call-to-action button is clicked, the redirect URL. */\n  ctaUrl?: string | null;\n  /** Error title. */\n  title?: string;\n}\n\nexport interface ActionValidationInfo {\n  /**\n   * the id of the action in the automation\n   * @format GUID\n   */\n  actionId?: string | null;\n  /**\n   * the id of the app defining the action\n   * @format GUID\n   */\n  appId?: string;\n  /** human readable identifier of the action per app */\n  actionKey?: string;\n  /**\n   * list of action validation errors\n   * @maxSize 100\n   */\n  validationErrors?: ActionValidationError[];\n}\n\nexport interface ActionValidationError extends ActionValidationErrorErrorOneOf {\n  /** action configuration error */\n  configurationError?: ActionConfigurationError;\n  /** provider configuration error */\n  providerConfigurationError?: ProviderConfigurationError;\n  /** validation error type */\n  errorType?: ValidationErrorTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ActionValidationErrorErrorOneOf {\n  /** action configuration error */\n  configurationError?: ActionConfigurationError;\n  /** provider configuration error */\n  providerConfigurationError?: ProviderConfigurationError;\n}\n\nexport enum ValidationErrorType {\n  UNKNOWN_VALIDATION_ERROR_TYPE = 'UNKNOWN_VALIDATION_ERROR_TYPE',\n  CONFIGURATION_ERROR = 'CONFIGURATION_ERROR',\n  PROVIDER_ERROR = 'PROVIDER_ERROR',\n}\n\n/** @enumType */\nexport type ValidationErrorTypeWithLiterals =\n  | ValidationErrorType\n  | 'UNKNOWN_VALIDATION_ERROR_TYPE'\n  | 'CONFIGURATION_ERROR'\n  | 'PROVIDER_ERROR';\n\nexport interface ActionConfigurationError {\n  /** action error type */\n  errorType?: ActionErrorTypeWithLiterals;\n  /** optional - related field key */\n  fieldKey?: string | null;\n}\n\nexport enum ActionErrorType {\n  UNKNOWN_ACTION_ERROR_TYPE = 'UNKNOWN_ACTION_ERROR_TYPE',\n  NOT_FOUND = 'NOT_FOUND',\n  APP_NOT_INSTALLED = 'APP_NOT_INSTALLED',\n  MODERATION_MISMATCH = 'MODERATION_MISMATCH',\n  DEPRECATED = 'DEPRECATED',\n  INVALID_ACTION_KEY = 'INVALID_ACTION_KEY',\n  INVALID_INPUT_MAPPING = 'INVALID_INPUT_MAPPING',\n  INVALID_OUTPUT_MAPPING = 'INVALID_OUTPUT_MAPPING',\n  INVALID_DELAY = 'INVALID_DELAY',\n  INVALID_RATE_LIMIT = 'INVALID_RATE_LIMIT',\n  INPUT_MAPPING_TYPE_MISMATCH = 'INPUT_MAPPING_TYPE_MISMATCH',\n  INPUT_MAPPING_MISSING_REQUIRED_FIELD = 'INPUT_MAPPING_MISSING_REQUIRED_FIELD',\n  INPUT_MAPPING_SCHEMA_MISMATCH = 'INPUT_MAPPING_SCHEMA_MISMATCH',\n  INPUT_MAPPING_VARIABLE_MISSING_FROM_SCHEMA = 'INPUT_MAPPING_VARIABLE_MISSING_FROM_SCHEMA',\n}\n\n/** @enumType */\nexport type ActionErrorTypeWithLiterals =\n  | ActionErrorType\n  | 'UNKNOWN_ACTION_ERROR_TYPE'\n  | 'NOT_FOUND'\n  | 'APP_NOT_INSTALLED'\n  | 'MODERATION_MISMATCH'\n  | 'DEPRECATED'\n  | 'INVALID_ACTION_KEY'\n  | 'INVALID_INPUT_MAPPING'\n  | 'INVALID_OUTPUT_MAPPING'\n  | 'INVALID_DELAY'\n  | 'INVALID_RATE_LIMIT'\n  | 'INPUT_MAPPING_TYPE_MISMATCH'\n  | 'INPUT_MAPPING_MISSING_REQUIRED_FIELD'\n  | 'INPUT_MAPPING_SCHEMA_MISMATCH'\n  | 'INPUT_MAPPING_VARIABLE_MISSING_FROM_SCHEMA';\n\nexport interface ValidateAutomationRequest {\n  /** Automation to validate */\n  automation: Automation;\n}\n\nexport interface ValidateAutomationResponse {\n  /** is the Automation valid */\n  valid?: boolean;\n  /**\n   * list of validation errors for the automation Trigger\n   * @maxSize 100\n   */\n  triggerValidationErrors?: TriggerValidationError[];\n  /**\n   * list of validation information for the automation Actions\n   * @maxSize 100\n   */\n  actionValidationInfo?: ActionValidationInfo[];\n}\n\nexport interface UpdatedAutomationsWithEsb {\n  /**\n   * updated automations\n   * @maxSize 100\n   */\n  automations?: Automation[];\n}\n\nexport interface GetAutomationActivationReportsRequest {\n  /**\n   * Automation ID\n   * @format GUID\n   */\n  automationId: string;\n  paging?: Paging;\n  /** Fields projection - pass in the field key you want to get back */\n  fields?: string[];\n}\n\nexport interface GetAutomationActivationReportsResponse {\n  /** Automation activation reports */\n  activationReports?: ActivationReport[];\n  metadata?: PagingMetadata;\n  /** activationStatus -> count */\n  stats?: Record<string, number>;\n}\n\nexport interface ActivationReport {\n  /** @format GUID */\n  activationId?: string;\n  requestId?: string;\n  status?: ActivationStatusWithLiterals;\n  creationDate?: Date | null;\n  updateDate?: Date | null;\n  /** will be populated when status = FAILED */\n  error?: string | null;\n}\n\nexport enum ActivationStatus {\n  UNKNOWN_ACTIVATION_REQUEST = 'UNKNOWN_ACTIVATION_REQUEST',\n  IN_PROGRESS = 'IN_PROGRESS',\n  SUCCESS = 'SUCCESS',\n  FAILED = 'FAILED',\n  SCHEDULED = 'SCHEDULED',\n  RETRY = 'RETRY',\n  RESUMED = 'RESUMED',\n  PAUSED = 'PAUSED',\n}\n\n/** @enumType */\nexport type ActivationStatusWithLiterals =\n  | ActivationStatus\n  | 'UNKNOWN_ACTIVATION_REQUEST'\n  | 'IN_PROGRESS'\n  | 'SUCCESS'\n  | 'FAILED'\n  | 'SCHEDULED'\n  | 'RETRY'\n  | 'RESUMED'\n  | 'PAUSED';\n\nexport interface PagingMetadata {\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. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   * @internal\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface GetAutomationActionSchemaRequest {\n  /**\n   * Automation's Configuration ID\n   * @format GUID\n   */\n  esbConfigurationId?: string;\n  /**\n   * Specific action ID\n   * @format GUID\n   */\n  actionId?: string;\n}\n\nexport interface GetAutomationActionSchemaResponse {\n  /** The payload schema of the automation for the specific action */\n  schema?: Record<string, any> | null;\n}\n\nexport interface GetActionsQuotaInfoRequest {}\n\nexport interface GetActionsQuotaInfoResponse {\n  /** list of action quota information */\n  actionProviderQuotaInfo?: ActionProviderQuotaInfo[];\n}\n\nexport interface ActionProviderQuotaInfo {\n  /**\n   * action app id\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * the action key\n   * @minLength 1\n   * @maxLength 80\n   */\n  actionKey?: string;\n  /** the action quota information */\n  actionQuotaInfo?: ActionQuotaInfo;\n}\n\nexport interface ActionQuotaInfo {\n  /**\n   * Whether the quotas for your action are enforced. If you mark this as `true` in the response body,\n   * Wix displays the information in the quota object on the site dashboard. If you mark this as `false` for\n   * a user, Wix does not display any quota info on the site dashboard for your service.\n   */\n  enforced?: boolean;\n  /**\n   * The plans your service provides, together with the quotas enforced by each plan. A site may be enrolled\n   * in multiple plans. Plans and quotas can be related as follows:\n   *\n   * + A single plan has a single quota.\n   * + A single plan has multiple quotas.\n   * + Multiple plans are associated with multiple quotas.\n   *\n   * Plans and quotas that are related should be grouped together in a single `quotaInfo`\n   * object.\n   */\n  quotaInfo?: QuotaInfo[];\n}\n\nexport interface QuotaInfo {\n  /** List of plans associated with the site making the request. */\n  plans?: Plan[];\n  /**\n   * List of quotas associated with the plans the site is enrolled in.\n   * @minSize 1\n   */\n  quotas?: Quota[];\n  /**\n   * Details for an upgrade call-to-action button.\n   * Displayed in the Wix user’s site dashboard together with the quota details.\n   */\n  upgradeCta?: UpgradeCTA;\n}\n\nexport interface Plan {\n  /** Plan ID defined by the action provider. */\n  _id?: string;\n  /** Plan name to display in the Wix user’s site dashboard. */\n  name?: string;\n  /**\n   * Plan group ID.\n   * @internal\n   */\n  groupId?: string | null;\n}\n\nexport interface Quota {\n  /**\n   * Name of the feature the quota is related to. For example, \"Messages sent\".\n   * @minLength 1\n   */\n  featureName?: string;\n  /**\n   * Quota renewal date in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.\n   * For example, 10 July 2020 at 15:00 is written as `2020-07-10 15:00:00.000`.\n   */\n  renewalDate?: Date | null;\n  /** The user's current quota usage. */\n  currentUsage?: string;\n  /** Quota limit data. */\n  limit?: string | null;\n  /** Additional information about the quota. Displayed as a tooltip in the Wix user’s dashboard. */\n  additionalInfo?: AdditionalInfo;\n}\n\nexport interface CTA {\n  /**\n   * Call-to-action redirect URL.\n   * @minLength 1\n   */\n  url?: string;\n  /**\n   * Call-to-action label.\n   * @minLength 1\n   */\n  label?: string;\n}\n\nexport interface AdditionalInfo {\n  /**\n   * Tooltip content.\n   * @minLength 1\n   */\n  description?: string;\n  /** Details for an options call-to-action link that appears in the tooltip. */\n  cta?: CTA;\n}\n\nexport interface UpgradeCTA {\n  /**\n   * CTA button redirect URL.\n   * @minLength 1\n   */\n  url?: string;\n  /**\n   * CTA button label.\n   * @minLength 1\n   */\n  label?: string;\n  /**\n   * ID of the related plan.\n   * @internal\n   */\n  planId?: string | null;\n}\n\nexport interface BulkDeleteAutomationsRequest {\n  /**\n   * Automation IDs to delete\n   * @format GUID\n   * @maxSize 200\n   */\n  automationIds?: string[];\n}\n\nexport interface BulkDeleteAutomationsResponse {}\n\nexport interface GenerateActionInputMappingFromTemplateRequest {\n  /** action app id */\n  appId: string;\n  /** the action key */\n  actionKey: string;\n  /** action input mapping template the action spi provider will generate input mapping from */\n  actionInputMappingTemplate: Record<string, any> | null;\n}\n\nexport interface GenerateActionInputMappingFromTemplateResponse {\n  /** generated action input mapping */\n  generatedActionInputMapping?: Record<string, any> | null;\n}\n\nexport interface MigrationUpdateMigratedToV3AutomationRequest {\n  /**\n   * Automation id\n   * @format GUID\n   */\n  automationId?: string;\n}\n\nexport interface MigrationUpdateMigratedToV3AutomationResponse {}\n\nexport interface BaseEventMetadata {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n  accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n  /** ID of the Wix account associated with the event */\n  accountId: string;\n  /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n  siteId?: string;\n  /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n  parentAccountId?: string;\n}\n\nexport interface AutomationCreatedEnvelope {\n  entity: Automation;\n  metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.automations.v1.automation_created\n * @serviceIdentifier wix.automations.app_automations.v1.ApplicationAutomationsService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onAutomationCreated(\n  handler: (event: AutomationCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AutomationDeletedEnvelope {\n  metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.automations.v1.automation_deleted\n * @serviceIdentifier wix.automations.app_automations.v1.ApplicationAutomationsService\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onAutomationDeleted(\n  handler: (event: AutomationDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AutomationUpdatedEnvelope {\n  entity: Automation;\n  metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.automations.v1.automation_updated\n * @serviceIdentifier wix.automations.app_automations.v1.ApplicationAutomationsService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onAutomationUpdated(\n  handler: (event: AutomationUpdatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AutomationDeletedWithEntityEnvelope {\n  data: DeletedWithEntity;\n  metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.automations.v1.automation_deleted_with_entity\n * @serviceIdentifier com.wixpress.automations.service.AutomationsService\n * @slug deleted_with_entity\n * @documentationMaturity preview\n */\nexport declare function onAutomationDeletedWithEntity(\n  handler: (event: AutomationDeletedWithEntityEnvelope) => void | Promise<void>\n): void;\n\nexport interface AutomationUpdatedWithPreviousEntityEnvelope {\n  data: UpdatedWithPreviousEntity;\n  metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.automations.v1.automation_updated_with_previous_entity\n * @serviceIdentifier com.wixpress.automations.service.AutomationsService\n * @slug updated_with_previous_entity\n * @documentationMaturity preview\n */\nexport declare function onAutomationUpdatedWithPreviousEntity(\n  handler: (\n    event: AutomationUpdatedWithPreviousEntityEnvelope\n  ) => void | Promise<void>\n): void;\n\n/**\n * Creates a new Automation\n * @param automation - Automation to be created\n * @public\n * @documentationMaturity preview\n * @requiredField automation\n * @requiredField automation.name\n * @requiredField automation.rule\n * @requiredField automation.rule.actions\n * @requiredField automation.rule.actions.actionKey\n * @requiredField automation.rule.actions.appId\n * @requiredField automation.rule.trigger\n * @requiredField automation.rule.trigger.appId\n * @requiredField automation.rule.trigger.triggerKey\n * @permissionId AUTOMATIONS.AUTOMATION_CREATE\n * @applicableIdentity APP\n * @returns The created Automation\n * @fqn com.wixpress.automations.service.AutomationsService.CreateAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function createAutomation(\n  automation: NonNullablePaths<\n    Automation,\n    | `name`\n    | `rule`\n    | `rule.actions`\n    | `rule.actions.${number}.actionKey`\n    | `rule.actions.${number}.appId`\n    | `rule.trigger`\n    | `rule.trigger.appId`\n    | `rule.trigger.triggerKey`,\n    3\n  >\n): Promise<\n  NonNullablePaths<\n    Automation,\n    | `name`\n    | `description`\n    | `type`\n    | `status`\n    | `rule.trigger.appId`\n    | `rule.trigger.triggerKey`\n    | `rule.trigger.filters`\n    | `rule.trigger.filters.${number}.fieldKey`\n    | `rule.trigger.filters.${number}.filterExpression`\n    | `rule.trigger.debounce.timeFrameInSeconds`\n    | `rule.trigger.debounce.fieldKey`\n    | `rule.actions`\n    | `rule.actions.${number}.appId`\n    | `rule.actions.${number}.actionKey`\n    | `rule.actions.${number}.actionConfig`\n    | `rule.actions.${number}.delay.for.seconds`\n    | `rule.actions.${number}.delay.for.delayFieldKey`\n    | `rule.actions.${number}.delay.until.dateFieldKey`\n    | `rule.actions.${number}.rateLimit.activations`\n    | `rule.actions.${number}.condition.conditionExpression`\n    | `metadata.hidden`\n    | `metadata.alwaysActive`\n    | `metadata.schedulingModificationDisabled`\n    | `metadata.actionRemovalDisabled`\n    | `metadata.actionConditionsEditingDisabled`,\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    automation: automation,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.createAutomation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.automation!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { automation: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['automation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Get a Automation by id\n * @param automationId - Automation ID\n * @public\n * @documentationMaturity preview\n * @requiredField automationId\n * @permissionId AUTOMATIONS.AUTOMATION_READ\n * @applicableIdentity APP\n * @returns Automation\n * @fqn com.wixpress.automations.service.AutomationsService.GetAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function getAutomation(\n  automationId: string,\n  options?: GetAutomationOptions\n): Promise<\n  NonNullablePaths<\n    Automation,\n    | `name`\n    | `description`\n    | `type`\n    | `status`\n    | `rule.trigger.appId`\n    | `rule.trigger.triggerKey`\n    | `rule.trigger.filters`\n    | `rule.trigger.filters.${number}.fieldKey`\n    | `rule.trigger.filters.${number}.filterExpression`\n    | `rule.trigger.debounce.timeFrameInSeconds`\n    | `rule.trigger.debounce.fieldKey`\n    | `rule.actions`\n    | `rule.actions.${number}.appId`\n    | `rule.actions.${number}.actionKey`\n    | `rule.actions.${number}.actionConfig`\n    | `rule.actions.${number}.delay.for.seconds`\n    | `rule.actions.${number}.delay.for.delayFieldKey`\n    | `rule.actions.${number}.delay.until.dateFieldKey`\n    | `rule.actions.${number}.rateLimit.activations`\n    | `rule.actions.${number}.condition.conditionExpression`\n    | `metadata.hidden`\n    | `metadata.alwaysActive`\n    | `metadata.schedulingModificationDisabled`\n    | `metadata.actionRemovalDisabled`\n    | `metadata.actionConditionsEditingDisabled`,\n    5\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    automationId: automationId,\n    automationType: options?.automationType,\n  });\n\n  const reqOpts = ambassadorWixAutomationsV1Automation.getAutomation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.automation!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          automationId: '$[0]',\n          automationType: '$[1].automationType',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['automationId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetAutomationOptions {\n  /** Automation type */\n  automationType?: TypeWithLiterals;\n}\n\n/**\n * Update a Automation, supports partial update\n * Pass the latest `revision` for a successful update\n * @param _id - Automation ID\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField automation\n * @requiredField automation.revision\n * @permissionId AUTOMATIONS.AUTOMATION_UPDATE\n * @applicableIdentity APP\n * @returns The updated Automation\n * @fqn com.wixpress.automations.service.AutomationsService.UpdateAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function updateAutomation(\n  _id: string,\n  automation: NonNullablePaths<UpdateAutomation, `revision`, 0>\n): Promise<\n  NonNullablePaths<\n    Automation,\n    | `name`\n    | `description`\n    | `type`\n    | `status`\n    | `rule.trigger.appId`\n    | `rule.trigger.triggerKey`\n    | `rule.trigger.filters`\n    | `rule.trigger.filters.${number}.fieldKey`\n    | `rule.trigger.filters.${number}.filterExpression`\n    | `rule.trigger.debounce.timeFrameInSeconds`\n    | `rule.trigger.debounce.fieldKey`\n    | `rule.actions`\n    | `rule.actions.${number}.appId`\n    | `rule.actions.${number}.actionKey`\n    | `rule.actions.${number}.actionConfig`\n    | `rule.actions.${number}.delay.for.seconds`\n    | `rule.actions.${number}.delay.for.delayFieldKey`\n    | `rule.actions.${number}.delay.until.dateFieldKey`\n    | `rule.actions.${number}.rateLimit.activations`\n    | `rule.actions.${number}.condition.conditionExpression`\n    | `metadata.hidden`\n    | `metadata.alwaysActive`\n    | `metadata.schedulingModificationDisabled`\n    | `metadata.actionRemovalDisabled`\n    | `metadata.actionConditionsEditingDisabled`,\n    5\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    automation: { ...automation, id: _id },\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.updateAutomation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.automation!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { automation: '$[1]' },\n        explicitPathsToArguments: { 'automation.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'automation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateAutomation {\n  /**\n   * Automation ID\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Revision */\n  revision?: string | null;\n  /**\n   * Automation name\n   * @maxLength 500\n   */\n  name?: string;\n  /**\n   * Automation description\n   * @maxLength 2000\n   */\n  description?: string;\n  /**\n   * Automation Type\n   * @readonly\n   */\n  type?: TypeWithLiterals;\n  /** Automation Status */\n  status?: StatusWithLiterals;\n  /** Rule that contains a trigger & some actions */\n  rule?: Rule;\n  /**\n   * Source Application Automation\n   * @readonly\n   */\n  source?: Source;\n  /**\n   * Metadata\n   * @readonly\n   */\n  metadata?: AutomationMetadata;\n  /**\n   * Created date\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Updated date\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * ESB Configuration ID\n   * @format GUID\n   * @readonly\n   */\n  esbConfigurationId?: string | null;\n  /**\n   * Was this automation migrated from v1\n   * @readonly\n   */\n  migratedFromV1?: boolean | null;\n  /** @readonly */\n  migratedToV3?: boolean | null;\n  /** @internal */\n  extendedFields?: ExtendedFields;\n}\n\n/** @param _id - Automation ID\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField automation\n * @permissionId AUTOMATIONS.AUTOMATION_UPDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.MigrationUpdateAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function migrationUpdateAutomation(\n  _id: string,\n  automation: MigrationUpdateAutomation\n): Promise<\n  NonNullablePaths<\n    MigrationUpdateAutomationResponse,\n    | `automation.name`\n    | `automation.description`\n    | `automation.type`\n    | `automation.status`\n    | `automation.rule.trigger.appId`\n    | `automation.rule.trigger.triggerKey`\n    | `automation.rule.trigger.filters`\n    | `automation.rule.trigger.filters.${number}.fieldKey`\n    | `automation.rule.trigger.filters.${number}.filterExpression`\n    | `automation.rule.trigger.debounce.timeFrameInSeconds`\n    | `automation.rule.trigger.debounce.fieldKey`\n    | `automation.rule.actions`\n    | `automation.rule.actions.${number}.appId`\n    | `automation.rule.actions.${number}.actionKey`\n    | `automation.rule.actions.${number}.actionConfig`\n    | `automation.rule.actions.${number}.delay.for.seconds`\n    | `automation.rule.actions.${number}.delay.for.delayFieldKey`\n    | `automation.rule.actions.${number}.delay.until.dateFieldKey`\n    | `automation.rule.actions.${number}.rateLimit.activations`\n    | `automation.rule.actions.${number}.condition.conditionExpression`\n    | `automation.metadata.hidden`\n    | `automation.metadata.alwaysActive`\n    | `automation.metadata.schedulingModificationDisabled`\n    | `automation.metadata.actionRemovalDisabled`\n    | `automation.metadata.actionConditionsEditingDisabled`,\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    automation: { ...automation, id: _id },\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.migrationUpdateAutomation(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: { automation: '$[1]' },\n        explicitPathsToArguments: { 'automation.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'automation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface MigrationUpdateAutomation {\n  /**\n   * Automation ID\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Revision */\n  revision?: string | null;\n  /**\n   * Automation name\n   * @maxLength 500\n   */\n  name?: string;\n  /**\n   * Automation description\n   * @maxLength 2000\n   */\n  description?: string;\n  /**\n   * Automation Type\n   * @readonly\n   */\n  type?: TypeWithLiterals;\n  /** Automation Status */\n  status?: StatusWithLiterals;\n  /** Rule that contains a trigger & some actions */\n  rule?: Rule;\n  /**\n   * Source Application Automation\n   * @readonly\n   */\n  source?: Source;\n  /**\n   * Metadata\n   * @readonly\n   */\n  metadata?: AutomationMetadata;\n  /**\n   * Created date\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Updated date\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * ESB Configuration ID\n   * @format GUID\n   * @readonly\n   */\n  esbConfigurationId?: string | null;\n  /**\n   * Was this automation migrated from v1\n   * @readonly\n   */\n  migratedFromV1?: boolean | null;\n  /** @readonly */\n  migratedToV3?: boolean | null;\n  /** @internal */\n  extendedFields?: ExtendedFields;\n}\n\n/**\n * Delete an Automation\n * @param automationId - Id of the Automation to delete\n * @public\n * @documentationMaturity preview\n * @requiredField automationId\n * @permissionId AUTOMATIONS.AUTOMATION_DELETE\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.DeleteAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function deleteAutomation(\n  automationId: string,\n  options?: DeleteAutomationOptions\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    automationId: automationId,\n    revision: options?.revision,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.deleteAutomation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          automationId: '$[0]',\n          revision: '$[1].revision',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['automationId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface DeleteAutomationOptions {\n  /** The revision of the Automation */\n  revision?: string;\n}\n\n/**\n * Query Automations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.AUTOMATION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.QueryAutomations\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport function queryAutomations(\n  options?: QueryAutomationsOptions\n): AutomationsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    Automation,\n    'CURSOR',\n    QueryAutomationsRequest,\n    QueryAutomationsResponse\n  >({\n    func: async (payload: QueryAutomationsRequest) => {\n      const reqOpts = ambassadorWixAutomationsV1Automation.queryAutomations({\n        ...payload,\n        ...(options ?? {}),\n      });\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: QueryAutomationsRequest['query']) => {\n      const args = [query, options] as [\n        QueryAutomationsRequest['query'],\n        QueryAutomationsOptions\n      ];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({ data }: HttpResponse<QueryAutomationsResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [])\n      );\n\n      return {\n        items: transformedData?.automations,\n        pagingMetadata: transformedData?.metadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\nexport interface QueryAutomationsOptions {\n  /** Automation type */\n  automationType?: TypeWithLiterals | undefined;\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface AutomationsQueryResult extends QueryCursorResult {\n  items: Automation[];\n  query: AutomationsQueryBuilder;\n  next: () => Promise<AutomationsQueryResult>;\n  prev: () => Promise<AutomationsQueryResult>;\n}\n\nexport interface AutomationsQueryBuilder {\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      | 'revision'\n      | 'name'\n      | 'description'\n      | 'type'\n      | 'status'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | 'metadata.hidden'\n      | 'metadata.alwaysActive'\n      | 'metadata.schedulingModificationDisabled'\n      | 'metadata.actionRemovalDisabled'\n      | 'metadata.actionConditionsEditingDisabled'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\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      | 'revision'\n      | 'name'\n      | 'description'\n      | 'type'\n      | 'status'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | 'metadata.hidden'\n      | 'metadata.alwaysActive'\n      | 'metadata.schedulingModificationDisabled'\n      | 'metadata.actionRemovalDisabled'\n      | 'metadata.actionConditionsEditingDisabled'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\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:\n      | '_id'\n      | 'revision'\n      | 'name'\n      | 'description'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\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:\n      | '_id'\n      | 'revision'\n      | 'name'\n      | 'description'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\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:\n      | '_id'\n      | 'revision'\n      | 'name'\n      | 'description'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\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:\n      | '_id'\n      | 'revision'\n      | 'name'\n      | 'description'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\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:\n      | '_id'\n      | 'name'\n      | 'description'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'esbConfigurationId',\n    value: string\n  ) => AutomationsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName:\n      | '_id'\n      | 'revision'\n      | 'name'\n      | 'description'\n      | 'type'\n      | 'status'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | 'metadata.hidden'\n      | 'metadata.alwaysActive'\n      | 'metadata.schedulingModificationDisabled'\n      | 'metadata.actionRemovalDisabled'\n      | 'metadata.actionConditionsEditingDisabled'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: any\n  ) => AutomationsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName:\n      | '_id'\n      | 'revision'\n      | 'name'\n      | 'description'\n      | 'type'\n      | 'status'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | 'metadata.hidden'\n      | 'metadata.alwaysActive'\n      | 'metadata.schedulingModificationDisabled'\n      | 'metadata.actionRemovalDisabled'\n      | 'metadata.actionConditionsEditingDisabled'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId',\n    value: boolean\n  ) => AutomationsQueryBuilder;\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      | 'revision'\n      | 'name'\n      | 'description'\n      | 'type'\n      | 'status'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | 'metadata.hidden'\n      | 'metadata.alwaysActive'\n      | 'metadata.schedulingModificationDisabled'\n      | 'metadata.actionRemovalDisabled'\n      | 'metadata.actionConditionsEditingDisabled'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId'\n    >\n  ) => AutomationsQueryBuilder;\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      | 'revision'\n      | 'name'\n      | 'description'\n      | 'type'\n      | 'status'\n      | 'rule.trigger.appId'\n      | 'rule.trigger.triggerKey'\n      | 'rule.actions.id'\n      | 'rule.actions.appId'\n      | 'rule.actions.actionKey'\n      | 'source.automationId'\n      | 'source.appId'\n      | 'source.componentId'\n      | 'source.version'\n      | 'metadata.hidden'\n      | 'metadata.alwaysActive'\n      | 'metadata.schedulingModificationDisabled'\n      | 'metadata.actionRemovalDisabled'\n      | 'metadata.actionConditionsEditingDisabled'\n      | '_createdDate'\n      | '_updatedDate'\n      | 'esbConfigurationId'\n    >\n  ) => AutomationsQueryBuilder;\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) => AutomationsQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => AutomationsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<AutomationsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn com.wixpress.automations.service.AutomationsService.QueryAutomations\n * @requiredField query\n */\nexport async function typedQueryAutomations(\n  query: AutomationQuery,\n  options?: QueryAutomationsOptions\n): Promise<\n  NonNullablePaths<\n    QueryAutomationsResponse,\n    | `automations`\n    | `automations.${number}.name`\n    | `automations.${number}.description`\n    | `automations.${number}.type`\n    | `automations.${number}.status`\n    | `automations.${number}.rule.trigger.appId`\n    | `automations.${number}.rule.trigger.triggerKey`\n    | `automations.${number}.metadata.hidden`\n    | `automations.${number}.metadata.alwaysActive`\n    | `automations.${number}.metadata.schedulingModificationDisabled`\n    | `automations.${number}.metadata.actionRemovalDisabled`\n    | `automations.${number}.metadata.actionConditionsEditingDisabled`,\n    4\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    query: query,\n    ...options,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.queryAutomations(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', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface AutomationQuerySpec extends QuerySpec {\n  paging: 'cursor';\n  wql: [\n    {\n      fields: [\n        'rule.actions._id',\n        'rule.actions.actionKey',\n        'rule.actions.appId'\n      ];\n      operators: ['$hasAll', '$hasSome'];\n      sort: 'BOTH';\n    },\n    {\n      fields: [\n        '_createdDate',\n        '_id',\n        '_updatedDate',\n        'description',\n        'esbConfigurationId',\n        'metadata.actionConditionsEditingDisabled',\n        'metadata.actionRemovalDisabled',\n        'metadata.alwaysActive',\n        'metadata.hidden',\n        'metadata.schedulingModificationDisabled',\n        'name',\n        'revision',\n        'rule.trigger.appId',\n        'rule.trigger.triggerKey',\n        'source.appId',\n        'source.automationId',\n        'source.componentId',\n        'source.version',\n        'status',\n        'type'\n      ];\n      operators: '*';\n      sort: 'BOTH';\n    }\n  ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n  Automation,\n  AutomationQuerySpec\n>;\nexport type AutomationQuery = {\n  /** \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  */\n  cursorPaging?: {\n    /** \n  Maximum number of items to return in the results. \n  @max: 100 \n  */\n    limit?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n      | null;\n    /** \n  Pointer to the next or previous page in the list of results.\n\n  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n  Not relevant for the first request. \n  @maxLength: 16000 \n  */\n    cursor?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n      | null;\n  };\n  /** \n  Filter object.\n\n  Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).  \n  */\n  filter?: CommonQueryWithEntityContext['filter'] | null;\n  /** \n  Sort object.\n\n  Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).  \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @maxLength: 512 \n  */\n    fieldName?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n    /** \n  When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n  a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n\n  If multiple filters are provided, they are combined with AND operator.\n\n  Example:\n  Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n  and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n  { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] } \n  @internal: undefined,\n  @maxSize: 10 \n  */\n    selectItemsBy?:\n      | NonNullable<\n          CommonQueryWithEntityContext['sort']\n        >[number]['selectItemsBy']\n      | null;\n    /** \n  Origin point for geo-distance sorting on a GEO field\n  results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  \n  */\n    origin?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['origin'];\n  }[];\n};\n\nexport const utils = {\n  query: /*#__PURE__*/ createQueryUtils<\n    Automation,\n    AutomationQuerySpec,\n    AutomationQuery\n  >(),\n};\n\n/**\n * Creates a new Automation\n * @param automation - Application Automation\n * @public\n * @documentationMaturity preview\n * @requiredField automation\n * @requiredField automation.name\n * @requiredField automation.rule\n * @requiredField automation.rule.actions\n * @requiredField automation.rule.actions.actionKey\n * @requiredField automation.rule.actions.appId\n * @requiredField automation.rule.trigger\n * @requiredField automation.rule.trigger.appId\n * @requiredField automation.rule.trigger.triggerKey\n * @permissionId AUTOMATIONS.OVERRIDE_APPLICATION_AUTOMATION\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.OverrideApplicationAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function overrideApplicationAutomation(\n  automation: NonNullablePaths<\n    Automation,\n    | `name`\n    | `rule`\n    | `rule.actions`\n    | `rule.actions.${number}.actionKey`\n    | `rule.actions.${number}.appId`\n    | `rule.trigger`\n    | `rule.trigger.appId`\n    | `rule.trigger.triggerKey`,\n    3\n  >\n): Promise<\n  NonNullablePaths<\n    OverrideApplicationAutomationResponse,\n    | `automation.name`\n    | `automation.description`\n    | `automation.type`\n    | `automation.status`\n    | `automation.rule.trigger.appId`\n    | `automation.rule.trigger.triggerKey`\n    | `automation.rule.trigger.filters`\n    | `automation.rule.trigger.filters.${number}.fieldKey`\n    | `automation.rule.trigger.filters.${number}.filterExpression`\n    | `automation.rule.trigger.debounce.timeFrameInSeconds`\n    | `automation.rule.trigger.debounce.fieldKey`\n    | `automation.rule.actions`\n    | `automation.rule.actions.${number}.appId`\n    | `automation.rule.actions.${number}.actionKey`\n    | `automation.rule.actions.${number}.actionConfig`\n    | `automation.rule.actions.${number}.delay.for.seconds`\n    | `automation.rule.actions.${number}.delay.for.delayFieldKey`\n    | `automation.rule.actions.${number}.delay.until.dateFieldKey`\n    | `automation.rule.actions.${number}.rateLimit.activations`\n    | `automation.rule.actions.${number}.condition.conditionExpression`\n    | `automation.metadata.hidden`\n    | `automation.metadata.alwaysActive`\n    | `automation.metadata.schedulingModificationDisabled`\n    | `automation.metadata.actionRemovalDisabled`\n    | `automation.metadata.actionConditionsEditingDisabled`,\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    automation: automation,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.overrideApplicationAutomation(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: { automation: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['automation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Validate Automation by Id\n * @param automationId - Automation ID\n * @public\n * @documentationMaturity preview\n * @requiredField automationId\n * @permissionId AUTOMATIONS.AUTOMATION_VALIDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.ValidateAutomationById\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function validateAutomationById(\n  automationId: string,\n  options?: ValidateAutomationByIdOptions\n): Promise<\n  NonNullablePaths<\n    ValidateAutomationByIdResponse,\n    | `valid`\n    | `triggerValidationErrors`\n    | `triggerValidationErrors.${number}.configurationError.errorType`\n    | `triggerValidationErrors.${number}.providerConfigurationError.message`\n    | `triggerValidationErrors.${number}.providerConfigurationError.title`\n    | `triggerValidationErrors.${number}.errorType`\n    | `actionValidationInfo`\n    | `actionValidationInfo.${number}.appId`\n    | `actionValidationInfo.${number}.actionKey`,\n    3\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    automationId: automationId,\n    automationType: options?.automationType,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.validateAutomationById(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: {\n          automationId: '$[0]',\n          automationType: '$[1].automationType',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['automationId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ValidateAutomationByIdOptions {\n  /** Automation type */\n  automationType?: TypeWithLiterals;\n}\n\n/**\n * Validate Automation\n * @param automation - Automation to validate\n * @public\n * @documentationMaturity preview\n * @requiredField automation\n * @permissionId AUTOMATIONS.AUTOMATION_VALIDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.ValidateAutomation\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function validateAutomation(\n  automation: Automation\n): Promise<\n  NonNullablePaths<\n    ValidateAutomationResponse,\n    | `valid`\n    | `triggerValidationErrors`\n    | `triggerValidationErrors.${number}.configurationError.errorType`\n    | `triggerValidationErrors.${number}.providerConfigurationError.message`\n    | `triggerValidationErrors.${number}.providerConfigurationError.title`\n    | `triggerValidationErrors.${number}.errorType`\n    | `actionValidationInfo`\n    | `actionValidationInfo.${number}.appId`\n    | `actionValidationInfo.${number}.actionKey`,\n    3\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    automation: automation,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.validateAutomation(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: { automation: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['automation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/** @param automationId - Automation ID\n * @public\n * @documentationMaturity preview\n * @requiredField automationId\n * @permissionId AUTOMATIONS.AUTOMATION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.GetAutomationActivationStats\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function getAutomationActivationStats(\n  automationId: string,\n  options?: GetAutomationActivationStatsOptions\n): Promise<\n  NonNullablePaths<\n    GetAutomationActivationReportsResponse,\n    | `activationReports`\n    | `activationReports.${number}.activationId`\n    | `activationReports.${number}.requestId`\n    | `activationReports.${number}.status`,\n    2\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    automationId: automationId,\n    paging: options?.paging,\n    fields: options?.fields,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.getAutomationActivationStats(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: {\n          automationId: '$[0]',\n          paging: '$[1].paging',\n          fields: '$[1].fields',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['automationId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetAutomationActivationStatsOptions {\n  paging?: Paging;\n  /** Fields projection - pass in the field key you want to get back */\n  fields?: string[];\n}\n\n/**\n * Get actions quota information\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.AUTOMATION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.GetActionsQuotaInfo\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function getActionsQuotaInfo(): Promise<\n  NonNullablePaths<\n    GetActionsQuotaInfoResponse,\n    | `actionProviderQuotaInfo`\n    | `actionProviderQuotaInfo.${number}.appId`\n    | `actionProviderQuotaInfo.${number}.actionKey`\n    | `actionProviderQuotaInfo.${number}.actionQuotaInfo.enforced`,\n    3\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.getActionsQuotaInfo(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: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Generate action input mapping from a template\n * @param appId - action app id\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionInputMappingTemplate\n * @requiredField options.actionKey\n * @permissionId AUTOMATIONS.AUTOMATION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.automations.service.AutomationsService.GenerateActionInputMappingFromTemplate\n * @deprecated\n * @targetRemovalDate 2025-05-01\n */\nexport async function generateActionInputMappingFromTemplate(\n  appId: string,\n  options: NonNullablePaths<\n    GenerateActionInputMappingFromTemplateOptions,\n    `actionInputMappingTemplate` | `actionKey`,\n    0\n  >\n): Promise<GenerateActionInputMappingFromTemplateResponse> {\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    actionKey: options?.actionKey,\n    actionInputMappingTemplate: options?.actionInputMappingTemplate,\n  });\n\n  const reqOpts =\n    ambassadorWixAutomationsV1Automation.generateActionInputMappingFromTemplate(\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          actionKey: '$[1].actionKey',\n          actionInputMappingTemplate: '$[1].actionInputMappingTemplate',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['appId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GenerateActionInputMappingFromTemplateOptions {\n  /** the action key */\n  actionKey: string;\n  /** action input mapping template the action spi provider will generate input mapping from */\n  actionInputMappingTemplate: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n  { path: 'automation.createdDate' },\n  { path: 'automation.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'mask' }];\nconst TRANSFORM_PATHS_2 = [\n  { path: 'query.sort.origin.latitude' },\n  { path: 'query.sort.origin.longitude' },\n];\nconst TRANSFORM_PATHS_3 = [\n  { path: 'automations.createdDate' },\n  { path: 'automations.updatedDate' },\n];\nconst TRANSFORM_PATHS_4 = [\n  { path: 'activationReports.creationDate' },\n  { path: 'activationReports.updateDate' },\n];\nconst TRANSFORM_PATHS_5 = [\n  {\n    path: 'actionProviderQuotaInfo.actionQuotaInfo.quotaInfo.quotas.renewalDate',\n  },\n];\n\nfunction resolveComWixpressAutomationsServiceAutomationsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/automations-app',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/automations-app',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/automations-app',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_automations-service';\n\n/**\n * Creates a new Automation\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function createAutomation(payload: object): RequestOptionsFactory<any> {\n  function __createAutomation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.CreateAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createAutomation;\n}\n\n/**\n * Get a Automation by id\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function getAutomation(payload: object): RequestOptionsFactory<any> {\n  function __getAutomation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.GetAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/{automationId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getAutomation;\n}\n\n/**\n * Update a Automation, supports partial update\n * Pass the latest `revision` for a successful update\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function updateAutomation(payload: object): RequestOptionsFactory<any> {\n  function __updateAutomation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: TRANSFORM_PATHS_1,\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.UpdateAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/{automation.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateAutomation;\n}\n\n/** @deprecated Will be removed on 2025-05-01. */\nexport function migrationUpdateAutomation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __migrationUpdateAutomation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.MigrationUpdateAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/migrations/{automation.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __migrationUpdateAutomation;\n}\n\n/**\n * Delete an Automation\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function deleteAutomation(payload: object): RequestOptionsFactory<any> {\n  function __deleteAutomation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.DeleteAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/{automationId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteAutomation;\n}\n\n/**\n * Query Automations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function queryAutomations(payload: object): RequestOptionsFactory<any> {\n  function __queryAutomations({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: TRANSFORM_PATHS_2,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.QueryAutomations',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/query',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_3,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryAutomations;\n}\n\n/**\n * Creates a new Automation\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function overrideApplicationAutomation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __overrideApplicationAutomation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.OverrideApplicationAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/override',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __overrideApplicationAutomation;\n}\n\n/**\n * Validate Automation by Id\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function validateAutomationById(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __validateAutomationById({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.ValidateAutomationById',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/{automationId}/validate',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __validateAutomationById;\n}\n\n/**\n * Validate Automation\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function validateAutomation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __validateAutomation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.ValidateAutomation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/validate',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __validateAutomation;\n}\n\n/** @deprecated Will be removed on 2025-05-01. */\nexport function getAutomationActivationStats(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getAutomationActivationStats({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.GetAutomationActivationStats',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/{automationId}/activation-stats',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_4,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getAutomationActivationStats;\n}\n\n/**\n * Get actions quota information\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function getActionsQuotaInfo(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getActionsQuotaInfo({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.GetActionsQuotaInfo',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath: '/v1/automations/actions/quota',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_5,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getActionsQuotaInfo;\n}\n\n/**\n * Generate action input mapping from a template\n * @deprecated Will be removed on 2025-05-01.\n */\nexport function generateActionInputMappingFromTemplate(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __generateActionInputMappingFromTemplate({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.automations.v1.automation',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.automations.service.AutomationsService.GenerateActionInputMappingFromTemplate',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressAutomationsServiceAutomationsServiceUrl({\n        protoPath:\n          '/v1/automations/actions/generate-action-input-mapping-from-template',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __generateActionInputMappingFromTemplate;\n}\n","import {\n  createAutomation as publicCreateAutomation,\n  getAutomation as publicGetAutomation,\n  updateAutomation as publicUpdateAutomation,\n  migrationUpdateAutomation as publicMigrationUpdateAutomation,\n  deleteAutomation as publicDeleteAutomation,\n  queryAutomations as publicQueryAutomations,\n  typedQueryAutomations as publicTypedQueryAutomations,\n  overrideApplicationAutomation as publicOverrideApplicationAutomation,\n  validateAutomationById as publicValidateAutomationById,\n  validateAutomation as publicValidateAutomation,\n  getAutomationActivationStats as publicGetAutomationActivationStats,\n  getActionsQuotaInfo as publicGetActionsQuotaInfo,\n  generateActionInputMappingFromTemplate as publicGenerateActionInputMappingFromTemplate,\n} from './automations-v1-automation-automations-service.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n  BuildRESTFunction,\n  MaybeContext,\n  BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n  AutomationQuery,\n  AutomationsQueryBuilder,\n  QueryAutomationsOptions,\n  typedQueryAutomations as universalTypedQueryAutomations,\n} from './automations-v1-automation-automations-service.universal.js';\nimport { onAutomationCreated as publicOnAutomationCreated } from './automations-v1-automation-automations-service.public.js';\nimport { onAutomationDeleted as publicOnAutomationDeleted } from './automations-v1-automation-automations-service.public.js';\nimport { onAutomationUpdated as publicOnAutomationUpdated } from './automations-v1-automation-automations-service.public.js';\nimport { onAutomationDeletedWithEntity as publicOnAutomationDeletedWithEntity } from './automations-v1-automation-automations-service.public.js';\nimport { onAutomationUpdatedWithPreviousEntity as publicOnAutomationUpdatedWithPreviousEntity } from './automations-v1-automation-automations-service.public.js';\n\nfunction customQueryAutomations(httpClient: HttpClient) {\n  const router = /*#__PURE__*/ createQueryOverloadRouter({\n    builderQueryFunction: (options?: QueryAutomationsOptions) =>\n      publicQueryAutomations(httpClient)(options),\n    typedQueryFunction: (\n      query: AutomationQuery,\n      options?: QueryAutomationsOptions\n    ) => publicTypedQueryAutomations(httpClient)(query, options),\n    hasOptionsParameter: true,\n  });\n\n  function overloadedQuery(\n    query: AutomationQuery,\n    options?: QueryAutomationsOptions\n  ): ReturnType<typeof universalTypedQueryAutomations>;\n  function overloadedQuery(\n    options?: QueryAutomationsOptions\n  ): AutomationsQueryBuilder;\n  function overloadedQuery(\n    queryOrOptions?: AutomationQuery | QueryAutomationsOptions,\n    options?: QueryAutomationsOptions\n  ): any {\n    return router(...arguments);\n  }\n\n  return overloadedQuery;\n}\n\nexport const createAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicCreateAutomation> &\n    typeof publicCreateAutomation\n> = /*#__PURE__*/ createRESTModule(publicCreateAutomation);\nexport const getAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicGetAutomation> & typeof publicGetAutomation\n> = /*#__PURE__*/ createRESTModule(publicGetAutomation);\nexport const updateAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateAutomation> &\n    typeof publicUpdateAutomation\n> = /*#__PURE__*/ createRESTModule(publicUpdateAutomation);\nexport const migrationUpdateAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicMigrationUpdateAutomation> &\n    typeof publicMigrationUpdateAutomation\n> = /*#__PURE__*/ createRESTModule(publicMigrationUpdateAutomation);\nexport const deleteAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteAutomation> &\n    typeof publicDeleteAutomation\n> = /*#__PURE__*/ createRESTModule(publicDeleteAutomation);\nexport const overrideApplicationAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicOverrideApplicationAutomation> &\n    typeof publicOverrideApplicationAutomation\n> = /*#__PURE__*/ createRESTModule(publicOverrideApplicationAutomation);\nexport const validateAutomationById: MaybeContext<\n  BuildRESTFunction<typeof publicValidateAutomationById> &\n    typeof publicValidateAutomationById\n> = /*#__PURE__*/ createRESTModule(publicValidateAutomationById);\nexport const validateAutomation: MaybeContext<\n  BuildRESTFunction<typeof publicValidateAutomation> &\n    typeof publicValidateAutomation\n> = /*#__PURE__*/ createRESTModule(publicValidateAutomation);\nexport const getAutomationActivationStats: MaybeContext<\n  BuildRESTFunction<typeof publicGetAutomationActivationStats> &\n    typeof publicGetAutomationActivationStats\n> = /*#__PURE__*/ createRESTModule(publicGetAutomationActivationStats);\nexport const getActionsQuotaInfo: MaybeContext<\n  BuildRESTFunction<typeof publicGetActionsQuotaInfo> &\n    typeof publicGetActionsQuotaInfo\n> = /*#__PURE__*/ createRESTModule(publicGetActionsQuotaInfo);\nexport const generateActionInputMappingFromTemplate: MaybeContext<\n  BuildRESTFunction<typeof publicGenerateActionInputMappingFromTemplate> &\n    typeof publicGenerateActionInputMappingFromTemplate\n> = /*#__PURE__*/ createRESTModule(\n  publicGenerateActionInputMappingFromTemplate\n);\nexport const queryAutomations: MaybeContext<\n  BuildRESTFunction<typeof customQueryAutomations> &\n    typeof customQueryAutomations\n> = /*#__PURE__*/ createRESTModule(customQueryAutomations);\n/** */\nexport const onAutomationCreated: BuildEventDefinition<\n  typeof publicOnAutomationCreated\n> &\n  typeof publicOnAutomationCreated = /*#__PURE__*/ createEventModule(\n  publicOnAutomationCreated\n);\n/** */\nexport const onAutomationDeleted: BuildEventDefinition<\n  typeof publicOnAutomationDeleted\n> &\n  typeof publicOnAutomationDeleted = /*#__PURE__*/ createEventModule(\n  publicOnAutomationDeleted\n);\n/** */\nexport const onAutomationUpdated: BuildEventDefinition<\n  typeof publicOnAutomationUpdated\n> &\n  typeof publicOnAutomationUpdated = /*#__PURE__*/ createEventModule(\n  publicOnAutomationUpdated\n);\n/** */\nexport const onAutomationDeletedWithEntity: BuildEventDefinition<\n  typeof publicOnAutomationDeletedWithEntity\n> &\n  typeof publicOnAutomationDeletedWithEntity = /*#__PURE__*/ createEventModule(\n  publicOnAutomationDeletedWithEntity\n);\n/** */\nexport const onAutomationUpdatedWithPreviousEntity: BuildEventDefinition<\n  typeof publicOnAutomationUpdatedWithPreviousEntity\n> &\n  typeof publicOnAutomationUpdatedWithPreviousEntity =\n  /*#__PURE__*/ createEventModule(publicOnAutomationUpdatedWithPreviousEntity);\n\nexport {\n  Type,\n  Status,\n  BlockType,\n  Domain,\n  SortOrder,\n  State,\n  SiteCreatedContext,\n  Namespace,\n  DeleteStatus,\n  WebhookIdentityType,\n  TriggerValidationErrorValidationErrorType,\n  TriggerErrorType,\n  ValidationErrorType,\n  ActionErrorType,\n  ActivationStatus,\n} from './automations-v1-automation-automations-service.universal.js';\nexport {\n  Automation,\n  Rule,\n  Trigger,\n  Filter,\n  Debounce,\n  Action,\n  ConditionBlock,\n  Offset,\n  OffsetValueOneOf,\n  Until,\n  Delay,\n  DelayTypeOneOf,\n  RateLimit,\n  Condition,\n  Conditions,\n  Source,\n  AutomationMetadata,\n  ExtendedFields,\n  GetApplicationAutomationRequest,\n  GetApplicationAutomationResponse,\n  QueryApplicationAutomationsRequest,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  Sorting,\n  AddressLocation,\n  Paging,\n  CursorPaging,\n  QueryApplicationAutomationsResponse,\n  PagingMetadataV2,\n  Cursors,\n  UpdateApplicationAutomationConfigurationIdRequest,\n  UpdateApplicationAutomationConfigurationIdResponse,\n  UpdateApplicationAutomationToMigratedFromV1Request,\n  UpdateApplicationAutomationToMigratedFromV1Response,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  Empty,\n  MetaSiteSpecialEvent,\n  MetaSiteSpecialEventPayloadOneOf,\n  Asset,\n  SiteCreated,\n  SiteTransferred,\n  SiteDeleted,\n  DeleteContext,\n  SiteUndeleted,\n  SitePublished,\n  SiteUnpublished,\n  SiteMarkedAsTemplate,\n  SiteMarkedAsWixSite,\n  ServiceProvisioned,\n  ServiceRemoved,\n  SiteRenamed,\n  SiteHardDeleted,\n  NamespaceChanged,\n  StudioAssigned,\n  StudioUnassigned,\n  SiteUrlChanged,\n  SitePurgedExternally,\n  OdeditorAssigned,\n  OdeditorUnassigned,\n  PicassoAssigned,\n  PicassoUnassigned,\n  WixelAssigned,\n  WixelUnassigned,\n  StudioTwoAssigned,\n  StudioTwoUnassigned,\n  UserDomainMediaEnabled,\n  UserDomainMediaDisabled,\n  EditorlessAssigned,\n  EditorlessUnassigned,\n  SyncApplicationAutomationsRequest,\n  SyncApplicationAutomationsResponse,\n  BulkCreateApplicationAutomationRequest,\n  BulkCreateApplicationAutomationResponse,\n  BulkActionMetadata,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  CreateAutomationRequest,\n  CreateAutomationResponse,\n  MigrationBulkCreateAutomationsRequest,\n  MigrationBulkCreateAutomationsResponse,\n  ItemMetadata,\n  ApplicationError,\n  MigrationBulkCreateAutomations,\n  GetAutomationRequest,\n  GetAutomationResponse,\n  UpdateAutomationRequest,\n  UpdateAutomationResponse,\n  UpdatedWithPreviousEntity,\n  MigrationUpdateAutomationRequest,\n  MigrationUpdateAutomationResponse,\n  DeleteAutomationRequest,\n  DeleteAutomationResponse,\n  DeletedWithEntity,\n  QueryAutomationsRequest,\n  QueryAutomationsResponse,\n  OverrideApplicationAutomationRequest,\n  OverrideApplicationAutomationResponse,\n  GenerateApplicationAutomationFromCustomRequest,\n  GenerateApplicationAutomationFromCustomResponse,\n  ValidateAutomationByIdRequest,\n  ValidateAutomationByIdResponse,\n  TriggerValidationError,\n  TriggerValidationErrorErrorOneOf,\n  TriggerConfigurationError,\n  ProviderConfigurationError,\n  ActionValidationInfo,\n  ActionValidationError,\n  ActionValidationErrorErrorOneOf,\n  ActionConfigurationError,\n  ValidateAutomationRequest,\n  ValidateAutomationResponse,\n  UpdatedAutomationsWithEsb,\n  GetAutomationActivationReportsRequest,\n  GetAutomationActivationReportsResponse,\n  ActivationReport,\n  PagingMetadata,\n  GetAutomationActionSchemaRequest,\n  GetAutomationActionSchemaResponse,\n  GetActionsQuotaInfoRequest,\n  GetActionsQuotaInfoResponse,\n  ActionProviderQuotaInfo,\n  ActionQuotaInfo,\n  QuotaInfo,\n  Plan,\n  Quota,\n  CTA,\n  AdditionalInfo,\n  UpgradeCTA,\n  BulkDeleteAutomationsRequest,\n  BulkDeleteAutomationsResponse,\n  GenerateActionInputMappingFromTemplateRequest,\n  GenerateActionInputMappingFromTemplateResponse,\n  MigrationUpdateMigratedToV3AutomationRequest,\n  MigrationUpdateMigratedToV3AutomationResponse,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  AutomationCreatedEnvelope,\n  AutomationDeletedEnvelope,\n  AutomationUpdatedEnvelope,\n  AutomationDeletedWithEntityEnvelope,\n  AutomationUpdatedWithPreviousEntityEnvelope,\n  GetAutomationOptions,\n  UpdateAutomation,\n  MigrationUpdateAutomation,\n  DeleteAutomationOptions,\n  QueryAutomationsOptions,\n  AutomationsQueryResult,\n  AutomationsQueryBuilder,\n  AutomationQuerySpec,\n  ValidateAutomationByIdOptions,\n  GetAutomationActivationStatsOptions,\n  GenerateActionInputMappingFromTemplateOptions,\n} from './automations-v1-automation-automations-service.universal.js';\nexport { utils } from './automations-v1-automation-automations-service.universal.js';\nexport {\n  TypeWithLiterals,\n  StatusWithLiterals,\n  BlockTypeWithLiterals,\n  DomainWithLiterals,\n  SortOrderWithLiterals,\n  StateWithLiterals,\n  SiteCreatedContextWithLiterals,\n  NamespaceWithLiterals,\n  DeleteStatusWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  TriggerValidationErrorValidationErrorTypeWithLiterals,\n  TriggerErrorTypeWithLiterals,\n  ValidationErrorTypeWithLiterals,\n  ActionErrorTypeWithLiterals,\n  ActivationStatusWithLiterals,\n  CommonQueryWithEntityContext,\n  AutomationQuery,\n} from './automations-v1-automation-automations-service.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACH9D,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,yBAAyB;AAAA,EACjC,EAAE,MAAM,yBAAyB;AACnC;AACA,IAAM,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC;AAC3C,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,6BAA6B;AAAA,EACrC,EAAE,MAAM,8BAA8B;AACxC;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,0BAA0B;AAAA,EAClC,EAAE,MAAM,0BAA0B;AACpC;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,iCAAiC;AAAA,EACzC,EAAE,MAAM,+BAA+B;AACzC;AACA,IAAM,oBAAoB;AAAA,EACxB;AAAA,IACE,MAAM;AAAA,EACR;AACF;AAEA,SAAS,0DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA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BA;AACF;AACO,IAAMZ,oBAGK,iCAAiB,sBAAsB;AAElD,IAAMa,uBAGsC;AAAA,EACjD;AACF;AAEO,IAAMC,uBAGsC;AAAA,EACjD;AACF;AAEO,IAAMC,uBAGsC;AAAA,EACjD;AACF;AAEO,IAAMC,iCAGgD;AAAA,EAC3D;AACF;AAEO,IAAMC,yCAIG,kCAAkB,qCAA2C;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","Type","Status","BlockType","Domain","SortOrder","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","TriggerValidationErrorValidationErrorType","TriggerErrorType","ValidationErrorType","ActionErrorType","ActivationStatus","createAutomation","getAutomation","updateAutomation","migrationUpdateAutomation","deleteAutomation","queryAutomations","overrideApplicationAutomation","validateAutomationById","validateAutomation","getAutomationActivationStats","getActionsQuotaInfo","generateActionInputMappingFromTemplate","TRANSFORM_PATHS_0","TRANSFORM_PATHS_1","TRANSFORM_PATHS_2","TRANSFORM_PATHS_3","createAutomation","getAutomation","updateAutomation","migrationUpdateAutomation","deleteAutomation","queryAutomations","typedQueryAutomations","overrideApplicationAutomation","validateAutomationById","validateAutomation","getAutomationActivationStats","getActionsQuotaInfo","generateActionInputMappingFromTemplate","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","TRANSFORM_PATHS_0","TRANSFORM_PATHS_1","TRANSFORM_PATHS_2","TRANSFORM_PATHS_3","queryAutomations","typedQueryAutomations","createAutomation","getAutomation","updateAutomation","migrationUpdateAutomation","deleteAutomation","overrideApplicationAutomation","validateAutomationById","validateAutomation","getAutomationActivationStats","getActionsQuotaInfo","generateActionInputMappingFromTemplate","onAutomationCreated","onAutomationDeleted","onAutomationUpdated","onAutomationDeletedWithEntity","onAutomationUpdatedWithPreviousEntity"]}