@wix/auto_sdk_automations_action-catalog 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +3 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -0
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +3 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -0
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +3 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -0
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +3 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -0
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@
|
|
|
2
2
|
import { CreateActionOptions, Action, UpdateActionOptions, DeleteActionOptions, GetRuntimeActionIdentifiers, GetActionDynamicInputSchemaOptions, GetActionDynamicInputSchemaResponse, ResolveActionsOptions, ResolveActionsResponse, CopyInputMappingOptions, CopyInputMappingResponse, GetActionDynamicOutputSchemaOptions, GetActionDynamicOutputSchemaResponse, ActionInputMappings, BulkGetActionDynamicOutputSchemasResponse } from './index.typings.js';
|
|
3
3
|
export { ActionEvent, ActionSpecInfo, AdditionalInformationRequiredInfo, ApplicationError, BulkActionMetadata, BulkActionOutputSchemaResult, BulkGetActionDynamicOutputSchemasRequest, CopyInputMappingRequest, CreateActionRequest, CreateActionResponse, CursorPaging, Cursors, DeleteActionRequest, DeleteActionResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExecutionType, ExperimentActionType, FocalPoint, GenerateInputMappingFromIntentRequest, GenerateInputMappingFromIntentResponse, GenerateInputMappingFromIntentResponseStatusInfoOneOf, GenericOptions, GetActionDynamicInputSchemaRequest, GetActionDynamicOutputSchemaRequest, GetRuntimeActionRequest, GetRuntimeActionResponse, IdentificationData, IdentificationDataIdOneOf, ImplementedMethods, InputMappingGeneratedInfo, InterfaceConfiguration, InterfaceConfigurationOptionsOneOf, ItemMetadata, MessageEnvelope, Metadata, MigrateComponentToActionRequest, MigrateComponentToActionResponse, Paging, PagingMetadataV2, QueryV2, QueryV2PagingMethodOneOf, ResolveActionsRequest, RestoreInfo, RetryExperimentCreation, SortOrder, Sorting, Source, SourceOptionsOneOf, SourceType, Status, Type, UpdateActionRequest, UpdateActionResponse, WebhookIdentityType, WidgetComponentOptions, WixApiOptions } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
type ActionNonNullablePaths = `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `executionType` | `interfaceConfiguration.type`;
|
|
5
|
+
type ActionNonNullablePaths = `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`;
|
|
6
6
|
declare function createAction$1(httpClient: HttpClient): CreateActionSignature;
|
|
7
7
|
interface CreateActionSignature {
|
|
8
8
|
/**
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/automations-actioncatalog-v1-action-action-catalog.universal.ts","../../src/automations-actioncatalog-v1-action-action-catalog.http.ts","../../src/automations-actioncatalog-v1-action-action-catalog.public.ts","../../src/automations-actioncatalog-v1-action-action-catalog.context.ts"],"sourcesContent":["export * from './src/automations-actioncatalog-v1-action-action-catalog.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixAutomationsActioncatalogV1Action from './automations-actioncatalog-v1-action-action-catalog.http.js';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Action {\n /**\n * Action ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * The ID of the app that defines the action.\n * @format GUID\n * @readonly\n */\n appId?: string;\n /**\n * Human-readable identifier for the action.\n * @minLength 5\n * @maxLength 50\n * @readonly\n */\n actionKey?: string;\n /**\n * The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n inputSchema?: Record<string, any> | null;\n /**\n * The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n outputSchema?: Record<string, any> | null;\n /**\n * Action name displayed in the site dashboard to Wix users. For example, \"Send SMS\" or \"Create Coupon\".\n * @minLength 1\n * @maxLength 80\n * @readonly\n */\n displayName?: string | null;\n /**\n * Action description displayed in the site dashboard to Wix users.\n * @readonly\n */\n description?: string | null;\n /** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */\n implementedMethods?: ImplementedMethods;\n /** Whether the action is executed immediately or with a delay. */\n executionType?: ExecutionTypeWithLiterals;\n /** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */\n interfaceConfiguration?: InterfaceConfiguration;\n /** Action icon displayed in the site dashboard to Wix users. */\n icon?: string;\n /**\n * Date and time the action was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the action was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Action component ID.\n * @format GUID\n * @readonly\n */\n componentId?: string | null;\n /**\n * Component version at the time the action was created.\n * @readonly\n */\n componentVersion?: string | null;\n}\n\nexport enum Type {\n /** Unknown action configuration UI. */\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n /**\n * The generic action configuration UI. This requires you to provide a\n * [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).\n */\n GENERIC = 'GENERIC',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'GENERIC';\n\nexport interface WidgetComponentOptions {\n /**\n * Widget component name.\n * @minLength 1\n * @maxLength 80\n */\n componentName?: string;\n}\n\nexport interface GenericOptions {\n /** UI schema. */\n uiSchema?: Record<string, any> | null;\n}\n\nexport enum SourceType {\n UNKNOWN_SOURCE_TYPE = 'UNKNOWN_SOURCE_TYPE',\n /** The input/output schemas are constructed by developers in Dev Center using the self-service flow */\n DEV_CENTER = 'DEV_CENTER',\n /** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */\n WIX_API = 'WIX_API',\n}\n\n/** @enumType */\nexport type SourceTypeWithLiterals =\n | SourceType\n | 'UNKNOWN_SOURCE_TYPE'\n | 'DEV_CENTER'\n | 'WIX_API';\n\nexport interface WixApiOptions {\n /**\n * Service entity fqdn\n * @minLength 1\n * @maxLength 100\n */\n serviceEntityFqdn?: string;\n /**\n * The service providing the API\n * @minLength 1\n * @maxLength 200\n */\n serviceName?: string;\n /**\n * The method name\n * @minLength 1\n * @maxLength 200\n */\n methodName?: string;\n}\n\nexport interface Metadata {\n /** Whether the action is only shown to advanced mode users (Wix staff). */\n hidden?: boolean;\n}\n\nexport interface ImplementedMethods {\n /** Whether Validate Configuration is implemented. */\n validateConfiguration?: boolean;\n /** Whether Duplicate Input Mapping is implemented. */\n duplicateInputMapping?: boolean;\n /** Whether Generate Application Automation Input Mapping is implemented. */\n generateApplicationAutomationInputMapping?: boolean;\n /** Whether Get Quota Info is implemented. */\n getQuotaInfo?: boolean;\n /** Whether On Before Save is implemented. */\n onBeforeSave?: boolean;\n /** Whether On Reset is implemented. */\n onReset?: boolean;\n /** Whether Generate Action Input Mapping From Template is implemented. */\n generateActionInputMappingFromTemplate?: boolean;\n /** Whether On Remove is implemented. */\n onRemove?: boolean;\n /** Whether Get Dynamic Input Schema is implemented. */\n getDynamicInputSchema?: boolean;\n /** Whether Merge Input Mappings is implemented. */\n mergeInputMappings?: boolean;\n /** Whether Get Dynamic Output Schema is implemented. */\n getDynamicOutputSchema?: boolean;\n}\n\nexport enum ExecutionType {\n /** Unknown type. */\n UNKNOWN_EXECUTION_TYPE = 'UNKNOWN_EXECUTION_TYPE',\n /** Action completes immediately. */\n SYNC = 'SYNC',\n /** Action completes asynchronously. */\n ASYNC = 'ASYNC',\n}\n\n/** @enumType */\nexport type ExecutionTypeWithLiterals =\n | ExecutionType\n | 'UNKNOWN_EXECUTION_TYPE'\n | 'SYNC'\n | 'ASYNC';\n\nexport interface InterfaceConfiguration\n extends InterfaceConfigurationOptionsOneOf {\n /** Details for the generic UI. */\n genericOptions?: GenericOptions;\n /** Type of action configuration UI. */\n type?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface InterfaceConfigurationOptionsOneOf {\n /** Details for the generic UI. */\n genericOptions?: GenericOptions;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface Source extends SourceOptionsOneOf {\n /** Wix API options */\n wixApiOptions?: WixApiOptions;\n /** the source type */\n type?: SourceTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface SourceOptionsOneOf {\n /** Wix API options */\n wixApiOptions?: WixApiOptions;\n}\n\nexport interface RetryExperimentCreation {\n /** action spec info */\n actionSpecInfo?: ActionSpecInfo;\n /**\n * app id\n * @format GUID\n */\n appId?: string;\n /** experiment action type */\n experimentActionType?: ExperimentActionTypeWithLiterals;\n /**\n * component id\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface ActionSpecInfo {\n /**\n * Spec to conduct on for the automation\n * @maxLength 128\n */\n spec?: string;\n /**\n * Value the spec should return in order to affect the user with the operation\n * e.g. creation - show the users the automation, update - show the users the updated automation, deletion - not show the users the automation\n * @maxLength 128\n */\n variantValue?: string | null;\n /**\n * Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)\n * For example, if 50 is set, version 49 and below (including 49) will not expose the preinstalled automation to the user.\n */\n experimentVersion?: number;\n}\n\nexport enum ExperimentActionType {\n UNKNOWN_ACTION = 'UNKNOWN_ACTION',\n CREATE_COMPONENT = 'CREATE_COMPONENT',\n UPDATE_COMPONENT = 'UPDATE_COMPONENT',\n DELETE_COMPONENT = 'DELETE_COMPONENT',\n}\n\n/** @enumType */\nexport type ExperimentActionTypeWithLiterals =\n | ExperimentActionType\n | 'UNKNOWN_ACTION'\n | 'CREATE_COMPONENT'\n | 'UPDATE_COMPONENT'\n | 'DELETE_COMPONENT';\n\nexport interface CreateActionRequest {\n /** The action to create */\n action?: Action;\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n /**\n * base uri for the action\n * @maxLength 256\n */\n baseUri?: string;\n}\n\nexport interface CreateActionResponse {\n /** The created action */\n action?: Action;\n}\n\nexport interface UpdateActionRequest {\n /** Action Configuration */\n action?: Action;\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n}\n\nexport interface UpdateActionResponse {\n /** Action Configuration */\n updatedAction?: Action;\n}\n\nexport interface DeleteActionRequest {\n /**\n * The action App Id\n * @format GUID\n */\n actionAppId: string;\n /**\n * Action Configuration key\n * @minLength 1\n * @maxLength 100\n */\n actionKey: string;\n}\n\nexport interface DeleteActionResponse {}\n\nexport interface MigrateComponentToActionRequest {\n /**\n * The action App Id\n * @format GUID\n */\n appId?: string;\n /**\n * The component id\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface MigrateComponentToActionResponse {}\n\nexport interface GetRuntimeActionRequest {\n /** The action App Id */\n appId: string;\n /** Action key */\n actionKey: string;\n}\n\nexport interface GetRuntimeActionResponse {\n /** Action Configuration */\n action?: Action;\n}\n\nexport interface GetActionDynamicInputSchemaRequest {\n /**\n * The App ID of the action's owner.\n * @format GUID\n */\n appId: string;\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n */\n inputMapping: Record<string, any> | null;\n}\n\nexport interface GetActionDynamicInputSchemaResponse {\n /** A [JSON schema](https://json-schema.org/) containing the action's added dynamic fields and its static fields. */\n inputSchema?: Record<string, any> | null;\n /** A [UI schema](https://bo.wix.com/pages/automations-ui-lib/?path=/story/getting-started--about) is a JSON Schema that describes the UI of the static and dynamic fields. */\n uiSchema?: Record<string, any> | null;\n}\n\nexport interface ResolveActionsRequest {\n /** Query options. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ResolveActionsResponse {\n /** Retrieved actions. */\n actions?: Action[];\n /** Paging metadata of the response. */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CopyInputMappingRequest {\n /**\n * Action app id\n * @format GUID\n */\n appId: string;\n /**\n * Action key\n * @maxLength 100\n */\n actionKey: string;\n /** Action input mapping */\n inputMapping: Record<string, any> | null;\n}\n\nexport interface CopyInputMappingResponse {\n /** New action input mapping */\n inputMapping?: Record<string, any> | null;\n}\n\nexport interface GetActionDynamicOutputSchemaRequest {\n /**\n * The App ID of the action's owner.\n * @format GUID\n */\n appId: string;\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.\n */\n inputMapping: Record<string, any> | null;\n}\n\nexport interface GetActionDynamicOutputSchemaResponse {\n /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */\n outputSchema?: Record<string, any> | null;\n}\n\nexport interface BulkGetActionDynamicOutputSchemasRequest {\n /**\n * list of actions details which will be used to generate the output schemas\n * @maxSize 20\n * @minSize 1\n */\n actionsInputMappings: ActionInputMappings[];\n}\n\nexport interface ActionInputMappings {\n /**\n * The App ID of the action's owner.\n * @format GUID\n */\n appId?: string;\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey?: string;\n /**\n * action identifier in the automation, useful for extracting out the output schema\n * @format GUID\n */\n actionId?: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.\n */\n inputMapping?: Record<string, any> | null;\n}\n\nexport interface BulkGetActionDynamicOutputSchemasResponse {\n /** list of action output schemas */\n results?: BulkActionOutputSchemaResult[];\n /** metadata of the bulk action */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\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 BulkActionOutputSchemaResult {\n itemMetadata?: ItemMetadata;\n /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */\n outputSchema?: Record<string, any> | null;\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 GenerateInputMappingFromIntentRequest {\n /**\n * The App ID of the action's owner\n * @format GUID\n */\n appId?: string;\n /**\n * Action key as defined in an app's action configuration\n * @minLength 5\n * @maxLength 100\n */\n actionKey?: string;\n /**\n * User's/Agent's natural language intent describing the desired action configuration\n * @minLength 1\n * @maxLength 10000\n */\n intent?: string;\n /**\n * Conversation identifier for maintaining context across multiple requests.\n * This represents the entire conversation ID with the clients agent.\n * @format GUID\n */\n conversationId?: string;\n /** The accumulated payload schema for an action. */\n actionSchema?: Record<string, any> | null;\n}\n\nexport interface GenerateInputMappingFromIntentResponse\n extends GenerateInputMappingFromIntentResponseStatusInfoOneOf {\n /** The generated input mapping conforming to the action's input schema */\n inputMappingGeneratedInfo?: InputMappingGeneratedInfo;\n /** Human-readable feedback for the user to refine their intent and structured reason for the failure */\n additionalInformationRequiredInfo?: AdditionalInformationRequiredInfo;\n /** Type of result returned */\n status?: StatusWithLiterals;\n}\n\n/** @oneof */\nexport interface GenerateInputMappingFromIntentResponseStatusInfoOneOf {\n /** The generated input mapping conforming to the action's input schema */\n inputMappingGeneratedInfo?: InputMappingGeneratedInfo;\n /** Human-readable feedback for the user to refine their intent and structured reason for the failure */\n additionalInformationRequiredInfo?: AdditionalInformationRequiredInfo;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n INPUT_MAPPING_GENERATED = 'INPUT_MAPPING_GENERATED',\n ADDITIONAL_INFORMATION_REQUIRED = 'ADDITIONAL_INFORMATION_REQUIRED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'INPUT_MAPPING_GENERATED'\n | 'ADDITIONAL_INFORMATION_REQUIRED';\n\nexport interface InputMappingGeneratedInfo {\n /** The generated action input mapping conforming to the action's input schema */\n inputMapping?: Record<string, any> | null;\n}\n\nexport interface AdditionalInformationRequiredInfo {\n /**\n * Human-readable feedback for the user to refine their intent\n * @minLength 1\n * @maxLength 10000\n */\n feedback?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface 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}\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\ntype ActionNonNullablePaths =\n | `appId`\n | `actionKey`\n | `implementedMethods.validateConfiguration`\n | `implementedMethods.duplicateInputMapping`\n | `implementedMethods.generateApplicationAutomationInputMapping`\n | `implementedMethods.getQuotaInfo`\n | `implementedMethods.onBeforeSave`\n | `implementedMethods.onReset`\n | `implementedMethods.generateActionInputMappingFromTemplate`\n | `implementedMethods.onRemove`\n | `implementedMethods.getDynamicInputSchema`\n | `implementedMethods.mergeInputMappings`\n | `implementedMethods.getDynamicOutputSchema`\n | `executionType`\n | `interfaceConfiguration.type`;\n\n/**\n * Create an action\n * @public\n * @documentationMaturity preview\n * @requiredField options.action.actionKey\n * @requiredField options.action.appId\n * @returns The created action\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction\n */\nexport async function createAction(\n options?: NonNullablePaths<\n CreateActionOptions,\n `action.actionKey` | `action.appId`\n >\n): Promise<NonNullablePaths<Action, ActionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n action: options?.action,\n actionSpecInfo: options?.actionSpecInfo,\n baseUri: options?.baseUri,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'action.icon' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.createAction(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'action.icon' }],\n },\n ])\n )?.action!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n action: '$[0].action',\n actionSpecInfo: '$[0].actionSpecInfo',\n baseUri: '$[0].baseUri',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateActionOptions {\n /** The action to create */\n action?: Action;\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n /**\n * base uri for the action\n * @maxLength 256\n */\n baseUri?: string;\n}\n\n/**\n * Create a new version for a trigger, update the latest version of the component to point to this trigger\n * @param _id - Action ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField options.action.actionKey\n * @requiredField options.action.appId\n * @returns Action Configuration\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction\n */\nexport async function updateAction(\n _id: string,\n options?: NonNullablePaths<\n UpdateActionOptions,\n `action.actionKey` | `action.appId`\n >\n): Promise<NonNullablePaths<Action, ActionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n action: { ...options?.action, id: _id },\n actionSpecInfo: options?.actionSpecInfo,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'action.icon' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.updateAction(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'updatedAction.icon' }],\n },\n ])\n )?.updatedAction!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { action: '$[1].action' },\n explicitPathsToArguments: {\n 'action.id': '$[0]',\n actionSpecInfo: '$[1].actionSpecInfo',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateActionOptions {\n action: {\n /**\n * Action ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * The ID of the app that defines the action.\n * @format GUID\n * @readonly\n */\n appId?: string;\n /**\n * Human-readable identifier for the action.\n * @minLength 5\n * @maxLength 50\n * @readonly\n */\n actionKey?: string;\n /**\n * The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n inputSchema?: Record<string, any> | null;\n /**\n * The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n outputSchema?: Record<string, any> | null;\n /**\n * Action name displayed in the site dashboard to Wix users. For example, \"Send SMS\" or \"Create Coupon\".\n * @minLength 1\n * @maxLength 80\n * @readonly\n */\n displayName?: string | null;\n /**\n * Action description displayed in the site dashboard to Wix users.\n * @readonly\n */\n description?: string | null;\n /** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */\n implementedMethods?: ImplementedMethods;\n /** Whether the action is executed immediately or with a delay. */\n executionType?: ExecutionTypeWithLiterals;\n /** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */\n interfaceConfiguration?: InterfaceConfiguration;\n /** Action icon displayed in the site dashboard to Wix users. */\n icon?: string;\n /**\n * Date and time the action was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the action was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Action component ID.\n * @format GUID\n * @readonly\n */\n componentId?: string | null;\n /**\n * Component version at the time the action was created.\n * @readonly\n */\n componentVersion?: string | null;\n };\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n}\n\n/**\n * Delete a trigger by app id and key\n * @param actionAppId - The action App Id\n * @public\n * @documentationMaturity preview\n * @requiredField actionAppId\n * @requiredField options\n * @requiredField options.actionKey\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction\n */\nexport async function deleteAction(\n actionAppId: string,\n options: NonNullablePaths<DeleteActionOptions, `actionKey`>\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 actionAppId: actionAppId,\n actionKey: options?.actionKey,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.deleteAction(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 actionAppId: '$[0]',\n actionKey: '$[1].actionKey',\n },\n singleArgumentUnchanged: false,\n },\n ['actionAppId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteActionOptions {\n /**\n * Action Configuration key\n * @minLength 1\n * @maxLength 100\n */\n actionKey: string;\n}\n\n/**\n * Returns action configuration by action key\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.actionKey\n * @requiredField identifiers.appId\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @returns Action Configuration\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction\n */\nexport async function getRuntimeAction(\n identifiers: NonNullablePaths<\n GetRuntimeActionIdentifiers,\n `actionKey` | `appId`\n >\n): Promise<NonNullablePaths<Action, ActionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n appId: identifiers?.appId,\n actionKey: identifiers?.actionKey,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.getRuntimeAction(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'action.icon' }],\n },\n ])\n )?.action!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n appId: '$[0].appId',\n actionKey: '$[0].actionKey',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetRuntimeActionIdentifiers {\n /** The action App Id */\n appId: string;\n /** Action key */\n actionKey: string;\n}\n\n/**\n * Returns action dynamic schema and ui schema for the given action key and input mapping (action config)\n * @param appId - The App ID of the action's owner.\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionKey\n * @requiredField options.inputMapping\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema\n */\nexport async function getActionDynamicInputSchema(\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicInputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n): Promise<GetActionDynamicInputSchemaResponse> {\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 inputMapping: options?.inputMapping,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicInputSchema(\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 inputMapping: '$[1].inputMapping',\n },\n singleArgumentUnchanged: false,\n },\n ['appId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetActionDynamicInputSchemaOptions {\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n */\n inputMapping: Record<string, any> | null;\n}\n\n/**\n * Returns action configurations that are installed on the site and exposed to Wix users.\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions\n */\nexport async function resolveActions(\n options?: ResolveActionsOptions\n): Promise<\n NonNullablePaths<\n ResolveActionsResponse,\n {\n [P in ActionNonNullablePaths]: `actions.${number}.${P}`;\n }[ActionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: options?.query,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.resolveActions(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'actions.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0].query' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ResolveActionsOptions {\n /** Query options. */\n query?: QueryV2;\n}\n\n/**\n * Get action input mapping copy\n * The main use case is to call this method from the automations editor, when the user wants to copy an action. So\n * this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing\n * the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI\n * endpoint is implemented.\n * A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping\n * so such that the `messageId` stays unique across multiple actions.\n * @param appId - Action app id\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionKey\n * @requiredField options.inputMapping\n * @permissionId AUTOMATIONS.ACTION_COPY\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping\n */\nexport async function copyInputMapping(\n appId: string,\n options: NonNullablePaths<\n CopyInputMappingOptions,\n `actionKey` | `inputMapping`\n >\n): Promise<CopyInputMappingResponse> {\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 inputMapping: options?.inputMapping,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.copyInputMapping(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 appId: '$[0]',\n actionKey: '$[1].actionKey',\n inputMapping: '$[1].inputMapping',\n },\n singleArgumentUnchanged: false,\n },\n ['appId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CopyInputMappingOptions {\n /**\n * Action key\n * @maxLength 100\n */\n actionKey: string;\n /** Action input mapping */\n inputMapping: Record<string, any> | null;\n}\n\n/**\n * Returns action dynamic output schema for the given action key and the [users] action configuration\n * @param appId - The App ID of the action's owner.\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionKey\n * @requiredField options.inputMapping\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema\n */\nexport async function getActionDynamicOutputSchema(\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicOutputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n): Promise<GetActionDynamicOutputSchemaResponse> {\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 inputMapping: options?.inputMapping,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicOutputSchema(\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 inputMapping: '$[1].inputMapping',\n },\n singleArgumentUnchanged: false,\n },\n ['appId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetActionDynamicOutputSchemaOptions {\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.\n */\n inputMapping: Record<string, any> | null;\n}\n\n/**\n * Returns action dynamic output schema for the given actions\n * @param actionsInputMappings - list of actions details which will be used to generate the output schemas\n * @public\n * @documentationMaturity preview\n * @requiredField actionsInputMappings\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas\n */\nexport async function bulkGetActionDynamicOutputSchemas(\n actionsInputMappings: ActionInputMappings[]\n): Promise<\n NonNullablePaths<\n BulkGetActionDynamicOutputSchemasResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\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 actionsInputMappings: actionsInputMappings,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.bulkGetActionDynamicOutputSchemas(\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: { actionsInputMappings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['actionsInputMappings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v1/actions',\n destPath: '/v1/actions',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/v1/actions',\n destPath: '/v1/actions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_action-catalog';\n\n/** Create an action */\nexport function createAction(payload: object): RequestOptionsFactory<any> {\n function __createAction({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAction;\n}\n\n/** Create a new version for a trigger, update the latest version of the component to point to this trigger */\nexport function updateAction(payload: object): RequestOptionsFactory<any> {\n function __updateAction({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/action/{action.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'updatedAction.createdDate' },\n { path: 'updatedAction.updatedDate' },\n { path: 'updatedAction.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'updatedAction.icon.focalPoint.x' },\n { path: 'updatedAction.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAction;\n}\n\n/** Delete a trigger by app id and key */\nexport function deleteAction(payload: object): RequestOptionsFactory<any> {\n function __deleteAction({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/action',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAction;\n}\n\n/** Returns action configuration by action key */\nexport function getRuntimeAction(payload: object): RequestOptionsFactory<any> {\n function __getRuntimeAction({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/apps/{appId}/keys/{actionKey}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getRuntimeAction;\n}\n\n/** Returns action dynamic schema and ui schema for the given action key and input mapping (action config) */\nexport function getActionDynamicInputSchema(\n payload: object\n): RequestOptionsFactory<any> {\n function __getActionDynamicInputSchema({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/dynamic-input-schema',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getActionDynamicInputSchema;\n}\n\n/** Returns action configurations that are installed on the site and exposed to Wix users. */\nexport function resolveActions(payload: object): RequestOptionsFactory<any> {\n function __resolveActions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/resolve',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'actions.createdDate' },\n { path: 'actions.updatedDate' },\n { path: 'actions.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'actions.icon.focalPoint.x' },\n { path: 'actions.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveActions;\n}\n\n/**\n * Get action input mapping copy\n * The main use case is to call this method from the automations editor, when the user wants to copy an action. So\n * this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing\n * the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI\n * endpoint is implemented.\n * A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping\n * so such that the `messageId` stays unique across multiple actions.\n */\nexport function copyInputMapping(payload: object): RequestOptionsFactory<any> {\n function __copyInputMapping({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/copy',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __copyInputMapping;\n}\n\n/** Returns action dynamic output schema for the given action key and the [users] action configuration */\nexport function getActionDynamicOutputSchema(\n payload: object\n): RequestOptionsFactory<any> {\n function __getActionDynamicOutputSchema({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/dynamic-output-schema',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getActionDynamicOutputSchema;\n}\n\n/** Returns action dynamic output schema for the given actions */\nexport function bulkGetActionDynamicOutputSchemas(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkGetActionDynamicOutputSchemas({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/bulk/dynamic-output-schema',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkGetActionDynamicOutputSchemas;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n Action,\n ActionInputMappings,\n BulkGetActionDynamicOutputSchemasResponse,\n CopyInputMappingOptions,\n CopyInputMappingResponse,\n CreateActionOptions,\n DeleteActionOptions,\n GetActionDynamicInputSchemaOptions,\n GetActionDynamicInputSchemaResponse,\n GetActionDynamicOutputSchemaOptions,\n GetActionDynamicOutputSchemaResponse,\n GetRuntimeActionIdentifiers,\n ResolveActionsOptions,\n ResolveActionsResponse,\n UpdateActionOptions,\n bulkGetActionDynamicOutputSchemas as universalBulkGetActionDynamicOutputSchemas,\n copyInputMapping as universalCopyInputMapping,\n createAction as universalCreateAction,\n deleteAction as universalDeleteAction,\n getActionDynamicInputSchema as universalGetActionDynamicInputSchema,\n getActionDynamicOutputSchema as universalGetActionDynamicOutputSchema,\n getRuntimeAction as universalGetRuntimeAction,\n resolveActions as universalResolveActions,\n updateAction as universalUpdateAction,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/automations' };\n\ntype ActionNonNullablePaths =\n | `appId`\n | `actionKey`\n | `implementedMethods.validateConfiguration`\n | `implementedMethods.duplicateInputMapping`\n | `implementedMethods.generateApplicationAutomationInputMapping`\n | `implementedMethods.getQuotaInfo`\n | `implementedMethods.onBeforeSave`\n | `implementedMethods.onReset`\n | `implementedMethods.generateActionInputMappingFromTemplate`\n | `implementedMethods.onRemove`\n | `implementedMethods.getDynamicInputSchema`\n | `implementedMethods.mergeInputMappings`\n | `implementedMethods.getDynamicOutputSchema`\n | `executionType`\n | `interfaceConfiguration.type`;\n\nexport function createAction(httpClient: HttpClient): CreateActionSignature {\n return (\n options?: NonNullablePaths<\n CreateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ) =>\n universalCreateAction(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateActionSignature {\n /**\n * Create an action\n * @returns The created action\n */\n (\n options?: NonNullablePaths<\n CreateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ): Promise<NonNullablePaths<Action, ActionNonNullablePaths>>;\n}\n\nexport function updateAction(httpClient: HttpClient): UpdateActionSignature {\n return (\n _id: string,\n options?: NonNullablePaths<\n UpdateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ) =>\n universalUpdateAction(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateActionSignature {\n /**\n * Create a new version for a trigger, update the latest version of the component to point to this trigger\n * @param - Action ID.\n * @returns Action Configuration\n */\n (\n _id: string,\n options?: NonNullablePaths<\n UpdateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ): Promise<NonNullablePaths<Action, ActionNonNullablePaths>>;\n}\n\nexport function deleteAction(httpClient: HttpClient): DeleteActionSignature {\n return (\n actionAppId: string,\n options: NonNullablePaths<DeleteActionOptions, `actionKey`>\n ) =>\n universalDeleteAction(\n actionAppId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteActionSignature {\n /**\n * Delete a trigger by app id and key\n * @param - The action App Id\n */\n (\n actionAppId: string,\n options: NonNullablePaths<DeleteActionOptions, `actionKey`>\n ): Promise<void>;\n}\n\nexport function getRuntimeAction(\n httpClient: HttpClient\n): GetRuntimeActionSignature {\n return (\n identifiers: NonNullablePaths<\n GetRuntimeActionIdentifiers,\n `actionKey` | `appId`\n >\n ) =>\n universalGetRuntimeAction(\n identifiers,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetRuntimeActionSignature {\n /**\n * Returns action configuration by action key\n * @returns Action Configuration\n */\n (\n identifiers: NonNullablePaths<\n GetRuntimeActionIdentifiers,\n `actionKey` | `appId`\n >\n ): Promise<NonNullablePaths<Action, ActionNonNullablePaths>>;\n}\n\nexport function getActionDynamicInputSchema(\n httpClient: HttpClient\n): GetActionDynamicInputSchemaSignature {\n return (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicInputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ) =>\n universalGetActionDynamicInputSchema(\n appId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetActionDynamicInputSchemaSignature {\n /**\n * Returns action dynamic schema and ui schema for the given action key and input mapping (action config)\n * @param - The App ID of the action's owner.\n */\n (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicInputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ): Promise<GetActionDynamicInputSchemaResponse>;\n}\n\nexport function resolveActions(\n httpClient: HttpClient\n): ResolveActionsSignature {\n return (options?: ResolveActionsOptions) =>\n universalResolveActions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ResolveActionsSignature {\n /**\n * Returns action configurations that are installed on the site and exposed to Wix users.\n */\n (options?: ResolveActionsOptions): Promise<\n NonNullablePaths<\n ResolveActionsResponse,\n {\n [P in ActionNonNullablePaths]: `actions.${number}.${P}`;\n }[ActionNonNullablePaths]\n >\n >;\n}\n\nexport function copyInputMapping(\n httpClient: HttpClient\n): CopyInputMappingSignature {\n return (\n appId: string,\n options: NonNullablePaths<\n CopyInputMappingOptions,\n `actionKey` | `inputMapping`\n >\n ) =>\n universalCopyInputMapping(\n appId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CopyInputMappingSignature {\n /**\n * Get action input mapping copy\n * The main use case is to call this method from the automations editor, when the user wants to copy an action. So\n * this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing\n * the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI\n * endpoint is implemented.\n * A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping\n * so such that the `messageId` stays unique across multiple actions.\n * @param - Action app id\n */\n (\n appId: string,\n options: NonNullablePaths<\n CopyInputMappingOptions,\n `actionKey` | `inputMapping`\n >\n ): Promise<CopyInputMappingResponse>;\n}\n\nexport function getActionDynamicOutputSchema(\n httpClient: HttpClient\n): GetActionDynamicOutputSchemaSignature {\n return (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicOutputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ) =>\n universalGetActionDynamicOutputSchema(\n appId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetActionDynamicOutputSchemaSignature {\n /**\n * Returns action dynamic output schema for the given action key and the [users] action configuration\n * @param - The App ID of the action's owner.\n */\n (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicOutputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ): Promise<GetActionDynamicOutputSchemaResponse>;\n}\n\nexport function bulkGetActionDynamicOutputSchemas(\n httpClient: HttpClient\n): BulkGetActionDynamicOutputSchemasSignature {\n return (actionsInputMappings: ActionInputMappings[]) =>\n universalBulkGetActionDynamicOutputSchemas(\n actionsInputMappings,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkGetActionDynamicOutputSchemasSignature {\n /**\n * Returns action dynamic output schema for the given actions\n * @param - list of actions details which will be used to generate the output schemas\n */\n (actionsInputMappings: ActionInputMappings[]): Promise<\n NonNullablePaths<\n BulkGetActionDynamicOutputSchemasResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n >;\n}\n\nexport {\n Action,\n ActionEvent,\n ActionInputMappings,\n ActionSpecInfo,\n AdditionalInformationRequiredInfo,\n ApplicationError,\n BulkActionMetadata,\n BulkActionOutputSchemaResult,\n BulkGetActionDynamicOutputSchemasRequest,\n BulkGetActionDynamicOutputSchemasResponse,\n CopyInputMappingOptions,\n CopyInputMappingRequest,\n CopyInputMappingResponse,\n CreateActionOptions,\n CreateActionRequest,\n CreateActionResponse,\n CursorPaging,\n Cursors,\n DeleteActionOptions,\n DeleteActionRequest,\n DeleteActionResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExecutionType,\n ExperimentActionType,\n FocalPoint,\n GenerateInputMappingFromIntentRequest,\n GenerateInputMappingFromIntentResponse,\n GenerateInputMappingFromIntentResponseStatusInfoOneOf,\n GenericOptions,\n GetActionDynamicInputSchemaOptions,\n GetActionDynamicInputSchemaRequest,\n GetActionDynamicInputSchemaResponse,\n GetActionDynamicOutputSchemaOptions,\n GetActionDynamicOutputSchemaRequest,\n GetActionDynamicOutputSchemaResponse,\n GetRuntimeActionIdentifiers,\n GetRuntimeActionRequest,\n GetRuntimeActionResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ImplementedMethods,\n InputMappingGeneratedInfo,\n InterfaceConfiguration,\n InterfaceConfigurationOptionsOneOf,\n ItemMetadata,\n MessageEnvelope,\n Metadata,\n MigrateComponentToActionRequest,\n MigrateComponentToActionResponse,\n Paging,\n PagingMetadataV2,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ResolveActionsOptions,\n ResolveActionsRequest,\n ResolveActionsResponse,\n RestoreInfo,\n RetryExperimentCreation,\n SortOrder,\n Sorting,\n Source,\n SourceOptionsOneOf,\n SourceType,\n Status,\n Type,\n UpdateActionOptions,\n UpdateActionRequest,\n UpdateActionResponse,\n WebhookIdentityType,\n WidgetComponentOptions,\n WixApiOptions,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\n","import {\n createAction as publicCreateAction,\n updateAction as publicUpdateAction,\n deleteAction as publicDeleteAction,\n getRuntimeAction as publicGetRuntimeAction,\n getActionDynamicInputSchema as publicGetActionDynamicInputSchema,\n resolveActions as publicResolveActions,\n copyInputMapping as publicCopyInputMapping,\n getActionDynamicOutputSchema as publicGetActionDynamicOutputSchema,\n bulkGetActionDynamicOutputSchemas as publicBulkGetActionDynamicOutputSchemas,\n} from './automations-actioncatalog-v1-action-action-catalog.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createAction: MaybeContext<\n BuildRESTFunction<typeof publicCreateAction> & typeof publicCreateAction\n> = /*#__PURE__*/ createRESTModule(publicCreateAction);\nexport const updateAction: MaybeContext<\n BuildRESTFunction<typeof publicUpdateAction> & typeof publicUpdateAction\n> = /*#__PURE__*/ createRESTModule(publicUpdateAction);\nexport const deleteAction: MaybeContext<\n BuildRESTFunction<typeof publicDeleteAction> & typeof publicDeleteAction\n> = /*#__PURE__*/ createRESTModule(publicDeleteAction);\nexport const getRuntimeAction: MaybeContext<\n BuildRESTFunction<typeof publicGetRuntimeAction> &\n typeof publicGetRuntimeAction\n> = /*#__PURE__*/ createRESTModule(publicGetRuntimeAction);\nexport const getActionDynamicInputSchema: MaybeContext<\n BuildRESTFunction<typeof publicGetActionDynamicInputSchema> &\n typeof publicGetActionDynamicInputSchema\n> = /*#__PURE__*/ createRESTModule(publicGetActionDynamicInputSchema);\nexport const resolveActions: MaybeContext<\n BuildRESTFunction<typeof publicResolveActions> & typeof publicResolveActions\n> = /*#__PURE__*/ createRESTModule(publicResolveActions);\nexport const copyInputMapping: MaybeContext<\n BuildRESTFunction<typeof publicCopyInputMapping> &\n typeof publicCopyInputMapping\n> = /*#__PURE__*/ createRESTModule(publicCopyInputMapping);\nexport const getActionDynamicOutputSchema: MaybeContext<\n BuildRESTFunction<typeof publicGetActionDynamicOutputSchema> &\n typeof publicGetActionDynamicOutputSchema\n> = /*#__PURE__*/ createRESTModule(publicGetActionDynamicOutputSchema);\nexport const bulkGetActionDynamicOutputSchemas: MaybeContext<\n BuildRESTFunction<typeof publicBulkGetActionDynamicOutputSchemas> &\n typeof publicBulkGetActionDynamicOutputSchemas\n> = /*#__PURE__*/ createRESTModule(publicBulkGetActionDynamicOutputSchemas);\n\nexport {\n Type,\n SourceType,\n ExecutionType,\n ExperimentActionType,\n SortOrder,\n Status,\n WebhookIdentityType,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\nexport {\n Action,\n WidgetComponentOptions,\n GenericOptions,\n WixApiOptions,\n Metadata,\n ImplementedMethods,\n InterfaceConfiguration,\n InterfaceConfigurationOptionsOneOf,\n FocalPoint,\n Source,\n SourceOptionsOneOf,\n RetryExperimentCreation,\n ActionSpecInfo,\n CreateActionRequest,\n CreateActionResponse,\n UpdateActionRequest,\n UpdateActionResponse,\n DeleteActionRequest,\n DeleteActionResponse,\n MigrateComponentToActionRequest,\n MigrateComponentToActionResponse,\n GetRuntimeActionRequest,\n GetRuntimeActionResponse,\n GetActionDynamicInputSchemaRequest,\n GetActionDynamicInputSchemaResponse,\n ResolveActionsRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n ResolveActionsResponse,\n PagingMetadataV2,\n Cursors,\n CopyInputMappingRequest,\n CopyInputMappingResponse,\n GetActionDynamicOutputSchemaRequest,\n GetActionDynamicOutputSchemaResponse,\n BulkGetActionDynamicOutputSchemasRequest,\n ActionInputMappings,\n BulkGetActionDynamicOutputSchemasResponse,\n ItemMetadata,\n ApplicationError,\n BulkActionOutputSchemaResult,\n BulkActionMetadata,\n GenerateInputMappingFromIntentRequest,\n GenerateInputMappingFromIntentResponse,\n GenerateInputMappingFromIntentResponseStatusInfoOneOf,\n InputMappingGeneratedInfo,\n AdditionalInformationRequiredInfo,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n CreateActionOptions,\n UpdateActionOptions,\n DeleteActionOptions,\n GetRuntimeActionIdentifiers,\n GetActionDynamicInputSchemaOptions,\n ResolveActionsOptions,\n CopyInputMappingOptions,\n GetActionDynamicOutputSchemaOptions,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,oCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,oBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QAC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A,EAAE,WAAW;AAAA,EACf;AACJ;AAaO,SAASC,kBACd,YAC2B;AAC3B,SAAO,CACL,gBAKAA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAeO,SAASC,6BACd,YACsC;AACtC,SAAO,CACL,OACA,YAKAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,kBACd,YAC2B;AAC3B,SAAO,CACL,OACA,YAKAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAsBO,SAASC,8BACd,YACuC;AACvC,SAAO,CACL,OACA,YAKAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,mCACd,YAC4C;AAC5C,SAAO,CAAC,yBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC3RA,IAAAC,uBAAiC;AAG1B,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,gCAGK,2DAAiBA,6BAAkC;AAC9D,IAAMC,qCAGK,2DAAiBA,kCAAuC;","names":["bulkGetActionDynamicOutputSchemas","copyInputMapping","createAction","deleteAction","getActionDynamicInputSchema","getActionDynamicOutputSchema","getRuntimeAction","resolveActions","updateAction","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","Type","SourceType","ExecutionType","ExperimentActionType","SortOrder","Status","WebhookIdentityType","createAction","sdkTransformError","updateAction","deleteAction","getRuntimeAction","getActionDynamicInputSchema","resolveActions","copyInputMapping","getActionDynamicOutputSchema","bulkGetActionDynamicOutputSchemas","createAction","updateAction","deleteAction","getRuntimeAction","getActionDynamicInputSchema","resolveActions","copyInputMapping","getActionDynamicOutputSchema","bulkGetActionDynamicOutputSchemas","import_rest_modules","createAction","updateAction","deleteAction","getRuntimeAction","getActionDynamicInputSchema","resolveActions","copyInputMapping","getActionDynamicOutputSchema","bulkGetActionDynamicOutputSchemas"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/automations-actioncatalog-v1-action-action-catalog.universal.ts","../../src/automations-actioncatalog-v1-action-action-catalog.http.ts","../../src/automations-actioncatalog-v1-action-action-catalog.public.ts","../../src/automations-actioncatalog-v1-action-action-catalog.context.ts"],"sourcesContent":["export * from './src/automations-actioncatalog-v1-action-action-catalog.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixAutomationsActioncatalogV1Action from './automations-actioncatalog-v1-action-action-catalog.http.js';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Action {\n /**\n * Action ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * The ID of the app that defines the action.\n * @format GUID\n * @readonly\n */\n appId?: string;\n /**\n * Human-readable identifier for the action.\n * @minLength 5\n * @maxLength 50\n * @readonly\n */\n actionKey?: string;\n /**\n * The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n inputSchema?: Record<string, any> | null;\n /**\n * The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n outputSchema?: Record<string, any> | null;\n /**\n * Action name displayed in the site dashboard to Wix users. For example, \"Send SMS\" or \"Create Coupon\".\n * @minLength 1\n * @maxLength 80\n * @readonly\n */\n displayName?: string | null;\n /**\n * Action description displayed in the site dashboard to Wix users.\n * @readonly\n */\n description?: string | null;\n /** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */\n implementedMethods?: ImplementedMethods;\n /** Whether the action is executed immediately or with a delay. */\n executionType?: ExecutionTypeWithLiterals;\n /** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */\n interfaceConfiguration?: InterfaceConfiguration;\n /** Action icon displayed in the site dashboard to Wix users. */\n icon?: string;\n /**\n * Date and time the action was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the action was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Action component ID.\n * @format GUID\n * @readonly\n */\n componentId?: string | null;\n /**\n * Component version at the time the action was created.\n * @readonly\n */\n componentVersion?: string | null;\n}\n\nexport enum Type {\n /** Unknown action configuration UI. */\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n /**\n * The generic action configuration UI. This requires you to provide a\n * [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).\n */\n GENERIC = 'GENERIC',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'GENERIC';\n\nexport interface WidgetComponentOptions {\n /**\n * Widget component name.\n * @minLength 1\n * @maxLength 80\n */\n componentName?: string;\n}\n\nexport interface GenericOptions {\n /** UI schema. */\n uiSchema?: Record<string, any> | null;\n}\n\nexport enum SourceType {\n UNKNOWN_SOURCE_TYPE = 'UNKNOWN_SOURCE_TYPE',\n /** The input/output schemas are constructed by developers in Dev Center using the self-service flow */\n DEV_CENTER = 'DEV_CENTER',\n /** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */\n WIX_API = 'WIX_API',\n}\n\n/** @enumType */\nexport type SourceTypeWithLiterals =\n | SourceType\n | 'UNKNOWN_SOURCE_TYPE'\n | 'DEV_CENTER'\n | 'WIX_API';\n\nexport interface WixApiOptions {\n /**\n * Service entity fqdn\n * @minLength 1\n * @maxLength 100\n */\n serviceEntityFqdn?: string;\n /**\n * The service providing the API\n * @minLength 1\n * @maxLength 200\n */\n serviceName?: string;\n /**\n * The method name\n * @minLength 1\n * @maxLength 200\n */\n methodName?: string;\n}\n\nexport interface Metadata {\n /** Whether the action is only shown to advanced mode users (Wix staff). */\n hidden?: boolean;\n}\n\nexport interface ImplementedMethods {\n /** Whether Validate Configuration is implemented. */\n validateConfiguration?: boolean;\n /** Whether Duplicate Input Mapping is implemented. */\n duplicateInputMapping?: boolean;\n /** Whether Generate Application Automation Input Mapping is implemented. */\n generateApplicationAutomationInputMapping?: boolean;\n /** Whether Get Quota Info is implemented. */\n getQuotaInfo?: boolean;\n /** Whether On Before Save is implemented. */\n onBeforeSave?: boolean;\n /** Whether On Reset is implemented. */\n onReset?: boolean;\n /** Whether Generate Action Input Mapping From Template is implemented. */\n generateActionInputMappingFromTemplate?: boolean;\n /** Whether On Remove is implemented. */\n onRemove?: boolean;\n /** Whether Get Dynamic Input Schema is implemented. */\n getDynamicInputSchema?: boolean;\n /** Whether Merge Input Mappings is implemented. */\n mergeInputMappings?: boolean;\n /** Whether Get Dynamic Output Schema is implemented. */\n getDynamicOutputSchema?: boolean;\n /** Whether Generate Input Mapping From Intent is implemented. */\n generateInputMappingFromIntent?: boolean;\n}\n\nexport enum ExecutionType {\n /** Unknown type. */\n UNKNOWN_EXECUTION_TYPE = 'UNKNOWN_EXECUTION_TYPE',\n /** Action completes immediately. */\n SYNC = 'SYNC',\n /** Action completes asynchronously. */\n ASYNC = 'ASYNC',\n}\n\n/** @enumType */\nexport type ExecutionTypeWithLiterals =\n | ExecutionType\n | 'UNKNOWN_EXECUTION_TYPE'\n | 'SYNC'\n | 'ASYNC';\n\nexport interface InterfaceConfiguration\n extends InterfaceConfigurationOptionsOneOf {\n /** Details for the generic UI. */\n genericOptions?: GenericOptions;\n /** Type of action configuration UI. */\n type?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface InterfaceConfigurationOptionsOneOf {\n /** Details for the generic UI. */\n genericOptions?: GenericOptions;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface Source extends SourceOptionsOneOf {\n /** Wix API options */\n wixApiOptions?: WixApiOptions;\n /** the source type */\n type?: SourceTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface SourceOptionsOneOf {\n /** Wix API options */\n wixApiOptions?: WixApiOptions;\n}\n\nexport interface RetryExperimentCreation {\n /** action spec info */\n actionSpecInfo?: ActionSpecInfo;\n /**\n * app id\n * @format GUID\n */\n appId?: string;\n /** experiment action type */\n experimentActionType?: ExperimentActionTypeWithLiterals;\n /**\n * component id\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface ActionSpecInfo {\n /**\n * Spec to conduct on for the automation\n * @maxLength 128\n */\n spec?: string;\n /**\n * Value the spec should return in order to affect the user with the operation\n * e.g. creation - show the users the automation, update - show the users the updated automation, deletion - not show the users the automation\n * @maxLength 128\n */\n variantValue?: string | null;\n /**\n * Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)\n * For example, if 50 is set, version 49 and below (including 49) will not expose the preinstalled automation to the user.\n */\n experimentVersion?: number;\n}\n\nexport enum ExperimentActionType {\n UNKNOWN_ACTION = 'UNKNOWN_ACTION',\n CREATE_COMPONENT = 'CREATE_COMPONENT',\n UPDATE_COMPONENT = 'UPDATE_COMPONENT',\n DELETE_COMPONENT = 'DELETE_COMPONENT',\n}\n\n/** @enumType */\nexport type ExperimentActionTypeWithLiterals =\n | ExperimentActionType\n | 'UNKNOWN_ACTION'\n | 'CREATE_COMPONENT'\n | 'UPDATE_COMPONENT'\n | 'DELETE_COMPONENT';\n\nexport interface CreateActionRequest {\n /** The action to create */\n action?: Action;\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n /**\n * base uri for the action\n * @maxLength 256\n */\n baseUri?: string;\n}\n\nexport interface CreateActionResponse {\n /** The created action */\n action?: Action;\n}\n\nexport interface UpdateActionRequest {\n /** Action Configuration */\n action?: Action;\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n}\n\nexport interface UpdateActionResponse {\n /** Action Configuration */\n updatedAction?: Action;\n}\n\nexport interface DeleteActionRequest {\n /**\n * The action App Id\n * @format GUID\n */\n actionAppId: string;\n /**\n * Action Configuration key\n * @minLength 1\n * @maxLength 100\n */\n actionKey: string;\n}\n\nexport interface DeleteActionResponse {}\n\nexport interface MigrateComponentToActionRequest {\n /**\n * The action App Id\n * @format GUID\n */\n appId?: string;\n /**\n * The component id\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface MigrateComponentToActionResponse {}\n\nexport interface GetRuntimeActionRequest {\n /** The action App Id */\n appId: string;\n /** Action key */\n actionKey: string;\n}\n\nexport interface GetRuntimeActionResponse {\n /** Action Configuration */\n action?: Action;\n}\n\nexport interface GetActionDynamicInputSchemaRequest {\n /**\n * The App ID of the action's owner.\n * @format GUID\n */\n appId: string;\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n */\n inputMapping: Record<string, any> | null;\n}\n\nexport interface GetActionDynamicInputSchemaResponse {\n /** A [JSON schema](https://json-schema.org/) containing the action's added dynamic fields and its static fields. */\n inputSchema?: Record<string, any> | null;\n /** A [UI schema](https://bo.wix.com/pages/automations-ui-lib/?path=/story/getting-started--about) is a JSON Schema that describes the UI of the static and dynamic fields. */\n uiSchema?: Record<string, any> | null;\n}\n\nexport interface ResolveActionsRequest {\n /** Query options. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ResolveActionsResponse {\n /** Retrieved actions. */\n actions?: Action[];\n /** Paging metadata of the response. */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CopyInputMappingRequest {\n /**\n * Action app id\n * @format GUID\n */\n appId: string;\n /**\n * Action key\n * @maxLength 100\n */\n actionKey: string;\n /** Action input mapping */\n inputMapping: Record<string, any> | null;\n}\n\nexport interface CopyInputMappingResponse {\n /** New action input mapping */\n inputMapping?: Record<string, any> | null;\n}\n\nexport interface GetActionDynamicOutputSchemaRequest {\n /**\n * The App ID of the action's owner.\n * @format GUID\n */\n appId: string;\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.\n */\n inputMapping: Record<string, any> | null;\n}\n\nexport interface GetActionDynamicOutputSchemaResponse {\n /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */\n outputSchema?: Record<string, any> | null;\n}\n\nexport interface BulkGetActionDynamicOutputSchemasRequest {\n /**\n * list of actions details which will be used to generate the output schemas\n * @maxSize 20\n * @minSize 1\n */\n actionsInputMappings: ActionInputMappings[];\n}\n\nexport interface ActionInputMappings {\n /**\n * The App ID of the action's owner.\n * @format GUID\n */\n appId?: string;\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey?: string;\n /**\n * action identifier in the automation, useful for extracting out the output schema\n * @format GUID\n */\n actionId?: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.\n */\n inputMapping?: Record<string, any> | null;\n}\n\nexport interface BulkGetActionDynamicOutputSchemasResponse {\n /** list of action output schemas */\n results?: BulkActionOutputSchemaResult[];\n /** metadata of the bulk action */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\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 BulkActionOutputSchemaResult {\n itemMetadata?: ItemMetadata;\n /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */\n outputSchema?: Record<string, any> | null;\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 GenerateInputMappingFromIntentRequest {\n /**\n * The App ID of the action's owner\n * @format GUID\n */\n appId?: string;\n /**\n * Action key as defined in an app's action configuration\n * @minLength 5\n * @maxLength 100\n */\n actionKey?: string;\n /**\n * User's/Agent's natural language intent describing the desired action configuration\n * @minLength 1\n * @maxLength 10000\n */\n intent?: string;\n /**\n * Conversation identifier for maintaining context across multiple requests.\n * This represents the entire conversation ID with the clients agent.\n * @format GUID\n */\n conversationId?: string;\n /** The accumulated payload schema for an action. */\n actionSchema?: Record<string, any> | null;\n}\n\nexport interface GenerateInputMappingFromIntentResponse\n extends GenerateInputMappingFromIntentResponseStatusInfoOneOf {\n /** The generated input mapping conforming to the action's input schema */\n inputMappingGeneratedInfo?: InputMappingGeneratedInfo;\n /** Human-readable feedback for the user to refine their intent and structured reason for the failure */\n additionalInformationRequiredInfo?: AdditionalInformationRequiredInfo;\n /** Type of result returned */\n status?: StatusWithLiterals;\n}\n\n/** @oneof */\nexport interface GenerateInputMappingFromIntentResponseStatusInfoOneOf {\n /** The generated input mapping conforming to the action's input schema */\n inputMappingGeneratedInfo?: InputMappingGeneratedInfo;\n /** Human-readable feedback for the user to refine their intent and structured reason for the failure */\n additionalInformationRequiredInfo?: AdditionalInformationRequiredInfo;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n INPUT_MAPPING_GENERATED = 'INPUT_MAPPING_GENERATED',\n ADDITIONAL_INFORMATION_REQUIRED = 'ADDITIONAL_INFORMATION_REQUIRED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'INPUT_MAPPING_GENERATED'\n | 'ADDITIONAL_INFORMATION_REQUIRED';\n\nexport interface InputMappingGeneratedInfo {\n /** The generated action input mapping conforming to the action's input schema */\n inputMapping?: Record<string, any> | null;\n}\n\nexport interface AdditionalInformationRequiredInfo {\n /**\n * Human-readable feedback for the user to refine their intent\n * @minLength 1\n * @maxLength 10000\n */\n feedback?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface 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}\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\ntype ActionNonNullablePaths =\n | `appId`\n | `actionKey`\n | `implementedMethods.validateConfiguration`\n | `implementedMethods.duplicateInputMapping`\n | `implementedMethods.generateApplicationAutomationInputMapping`\n | `implementedMethods.getQuotaInfo`\n | `implementedMethods.onBeforeSave`\n | `implementedMethods.onReset`\n | `implementedMethods.generateActionInputMappingFromTemplate`\n | `implementedMethods.onRemove`\n | `implementedMethods.getDynamicInputSchema`\n | `implementedMethods.mergeInputMappings`\n | `implementedMethods.getDynamicOutputSchema`\n | `implementedMethods.generateInputMappingFromIntent`\n | `executionType`\n | `interfaceConfiguration.type`;\n\n/**\n * Create an action\n * @public\n * @documentationMaturity preview\n * @requiredField options.action.actionKey\n * @requiredField options.action.appId\n * @returns The created action\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction\n */\nexport async function createAction(\n options?: NonNullablePaths<\n CreateActionOptions,\n `action.actionKey` | `action.appId`\n >\n): Promise<NonNullablePaths<Action, ActionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n action: options?.action,\n actionSpecInfo: options?.actionSpecInfo,\n baseUri: options?.baseUri,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'action.icon' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.createAction(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'action.icon' }],\n },\n ])\n )?.action!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n action: '$[0].action',\n actionSpecInfo: '$[0].actionSpecInfo',\n baseUri: '$[0].baseUri',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateActionOptions {\n /** The action to create */\n action?: Action;\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n /**\n * base uri for the action\n * @maxLength 256\n */\n baseUri?: string;\n}\n\n/**\n * Create a new version for a trigger, update the latest version of the component to point to this trigger\n * @param _id - Action ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField options.action.actionKey\n * @requiredField options.action.appId\n * @returns Action Configuration\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction\n */\nexport async function updateAction(\n _id: string,\n options?: NonNullablePaths<\n UpdateActionOptions,\n `action.actionKey` | `action.appId`\n >\n): Promise<NonNullablePaths<Action, ActionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n action: { ...options?.action, id: _id },\n actionSpecInfo: options?.actionSpecInfo,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'action.icon' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.updateAction(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'updatedAction.icon' }],\n },\n ])\n )?.updatedAction!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { action: '$[1].action' },\n explicitPathsToArguments: {\n 'action.id': '$[0]',\n actionSpecInfo: '$[1].actionSpecInfo',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateActionOptions {\n action: {\n /**\n * Action ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * The ID of the app that defines the action.\n * @format GUID\n * @readonly\n */\n appId?: string;\n /**\n * Human-readable identifier for the action.\n * @minLength 5\n * @maxLength 50\n * @readonly\n */\n actionKey?: string;\n /**\n * The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n inputSchema?: Record<string, any> | null;\n /**\n * The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)\n * as defined in the app dashboard.\n * @readonly\n */\n outputSchema?: Record<string, any> | null;\n /**\n * Action name displayed in the site dashboard to Wix users. For example, \"Send SMS\" or \"Create Coupon\".\n * @minLength 1\n * @maxLength 80\n * @readonly\n */\n displayName?: string | null;\n /**\n * Action description displayed in the site dashboard to Wix users.\n * @readonly\n */\n description?: string | null;\n /** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */\n implementedMethods?: ImplementedMethods;\n /** Whether the action is executed immediately or with a delay. */\n executionType?: ExecutionTypeWithLiterals;\n /** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */\n interfaceConfiguration?: InterfaceConfiguration;\n /** Action icon displayed in the site dashboard to Wix users. */\n icon?: string;\n /**\n * Date and time the action was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the action was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Action component ID.\n * @format GUID\n * @readonly\n */\n componentId?: string | null;\n /**\n * Component version at the time the action was created.\n * @readonly\n */\n componentVersion?: string | null;\n };\n /** Action spec info */\n actionSpecInfo?: ActionSpecInfo;\n}\n\n/**\n * Delete a trigger by app id and key\n * @param actionAppId - The action App Id\n * @public\n * @documentationMaturity preview\n * @requiredField actionAppId\n * @requiredField options\n * @requiredField options.actionKey\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction\n */\nexport async function deleteAction(\n actionAppId: string,\n options: NonNullablePaths<DeleteActionOptions, `actionKey`>\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 actionAppId: actionAppId,\n actionKey: options?.actionKey,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.deleteAction(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 actionAppId: '$[0]',\n actionKey: '$[1].actionKey',\n },\n singleArgumentUnchanged: false,\n },\n ['actionAppId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteActionOptions {\n /**\n * Action Configuration key\n * @minLength 1\n * @maxLength 100\n */\n actionKey: string;\n}\n\n/**\n * Returns action configuration by action key\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.actionKey\n * @requiredField identifiers.appId\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @returns Action Configuration\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction\n */\nexport async function getRuntimeAction(\n identifiers: NonNullablePaths<\n GetRuntimeActionIdentifiers,\n `actionKey` | `appId`\n >\n): Promise<NonNullablePaths<Action, ActionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n appId: identifiers?.appId,\n actionKey: identifiers?.actionKey,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.getRuntimeAction(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'action.icon' }],\n },\n ])\n )?.action!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n appId: '$[0].appId',\n actionKey: '$[0].actionKey',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetRuntimeActionIdentifiers {\n /** The action App Id */\n appId: string;\n /** Action key */\n actionKey: string;\n}\n\n/**\n * Returns action dynamic schema and ui schema for the given action key and input mapping (action config)\n * @param appId - The App ID of the action's owner.\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionKey\n * @requiredField options.inputMapping\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema\n */\nexport async function getActionDynamicInputSchema(\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicInputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n): Promise<GetActionDynamicInputSchemaResponse> {\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 inputMapping: options?.inputMapping,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicInputSchema(\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 inputMapping: '$[1].inputMapping',\n },\n singleArgumentUnchanged: false,\n },\n ['appId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetActionDynamicInputSchemaOptions {\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n */\n inputMapping: Record<string, any> | null;\n}\n\n/**\n * Returns action configurations that are installed on the site and exposed to Wix users.\n * @public\n * @documentationMaturity preview\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions\n */\nexport async function resolveActions(\n options?: ResolveActionsOptions\n): Promise<\n NonNullablePaths<\n ResolveActionsResponse,\n {\n [P in ActionNonNullablePaths]: `actions.${number}.${P}`;\n }[ActionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: options?.query,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.resolveActions(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'actions.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0].query' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ResolveActionsOptions {\n /** Query options. */\n query?: QueryV2;\n}\n\n/**\n * Get action input mapping copy\n * The main use case is to call this method from the automations editor, when the user wants to copy an action. So\n * this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing\n * the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI\n * endpoint is implemented.\n * A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping\n * so such that the `messageId` stays unique across multiple actions.\n * @param appId - Action app id\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionKey\n * @requiredField options.inputMapping\n * @permissionId AUTOMATIONS.ACTION_COPY\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping\n */\nexport async function copyInputMapping(\n appId: string,\n options: NonNullablePaths<\n CopyInputMappingOptions,\n `actionKey` | `inputMapping`\n >\n): Promise<CopyInputMappingResponse> {\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 inputMapping: options?.inputMapping,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.copyInputMapping(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 appId: '$[0]',\n actionKey: '$[1].actionKey',\n inputMapping: '$[1].inputMapping',\n },\n singleArgumentUnchanged: false,\n },\n ['appId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CopyInputMappingOptions {\n /**\n * Action key\n * @maxLength 100\n */\n actionKey: string;\n /** Action input mapping */\n inputMapping: Record<string, any> | null;\n}\n\n/**\n * Returns action dynamic output schema for the given action key and the [users] action configuration\n * @param appId - The App ID of the action's owner.\n * @public\n * @documentationMaturity preview\n * @requiredField appId\n * @requiredField options\n * @requiredField options.actionKey\n * @requiredField options.inputMapping\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema\n */\nexport async function getActionDynamicOutputSchema(\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicOutputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n): Promise<GetActionDynamicOutputSchemaResponse> {\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 inputMapping: options?.inputMapping,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicOutputSchema(\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 inputMapping: '$[1].inputMapping',\n },\n singleArgumentUnchanged: false,\n },\n ['appId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetActionDynamicOutputSchemaOptions {\n /**\n * Action key as defined in an app's action configuration in the Wix Developers Center.\n * For example, `send-email` or `generate-invoice`.\n * @minLength 5\n * @maxLength 50\n */\n actionKey: string;\n /**\n * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected\n * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated\n * dynamically on each activation.\n * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.\n */\n inputMapping: Record<string, any> | null;\n}\n\n/**\n * Returns action dynamic output schema for the given actions\n * @param actionsInputMappings - list of actions details which will be used to generate the output schemas\n * @public\n * @documentationMaturity preview\n * @requiredField actionsInputMappings\n * @permissionId AUTOMATIONS.ACTION_READ\n * @applicableIdentity APP\n * @fqn wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas\n */\nexport async function bulkGetActionDynamicOutputSchemas(\n actionsInputMappings: ActionInputMappings[]\n): Promise<\n NonNullablePaths<\n BulkGetActionDynamicOutputSchemasResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\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 actionsInputMappings: actionsInputMappings,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActioncatalogV1Action.bulkGetActionDynamicOutputSchemas(\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: { actionsInputMappings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['actionsInputMappings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/action-catalog-service',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v1/actions',\n destPath: '/v1/actions',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/v1/actions',\n destPath: '/v1/actions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_action-catalog';\n\n/** Create an action */\nexport function createAction(payload: object): RequestOptionsFactory<any> {\n function __createAction({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAction;\n}\n\n/** Create a new version for a trigger, update the latest version of the component to point to this trigger */\nexport function updateAction(payload: object): RequestOptionsFactory<any> {\n function __updateAction({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/action/{action.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'updatedAction.createdDate' },\n { path: 'updatedAction.updatedDate' },\n { path: 'updatedAction.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'updatedAction.icon.focalPoint.x' },\n { path: 'updatedAction.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAction;\n}\n\n/** Delete a trigger by app id and key */\nexport function deleteAction(payload: object): RequestOptionsFactory<any> {\n function __deleteAction({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/action',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAction;\n}\n\n/** Returns action configuration by action key */\nexport function getRuntimeAction(payload: object): RequestOptionsFactory<any> {\n function __getRuntimeAction({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/apps/{appId}/keys/{actionKey}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'action.createdDate' },\n { path: 'action.updatedDate' },\n { path: 'action.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'action.icon.focalPoint.x' },\n { path: 'action.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getRuntimeAction;\n}\n\n/** Returns action dynamic schema and ui schema for the given action key and input mapping (action config) */\nexport function getActionDynamicInputSchema(\n payload: object\n): RequestOptionsFactory<any> {\n function __getActionDynamicInputSchema({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/dynamic-input-schema',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getActionDynamicInputSchema;\n}\n\n/** Returns action configurations that are installed on the site and exposed to Wix users. */\nexport function resolveActions(payload: object): RequestOptionsFactory<any> {\n function __resolveActions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/resolve',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'actions.createdDate' },\n { path: 'actions.updatedDate' },\n { path: 'actions.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'actions.icon.focalPoint.x' },\n { path: 'actions.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveActions;\n}\n\n/**\n * Get action input mapping copy\n * The main use case is to call this method from the automations editor, when the user wants to copy an action. So\n * this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing\n * the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI\n * endpoint is implemented.\n * A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping\n * so such that the `messageId` stays unique across multiple actions.\n */\nexport function copyInputMapping(payload: object): RequestOptionsFactory<any> {\n function __copyInputMapping({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/copy',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __copyInputMapping;\n}\n\n/** Returns action dynamic output schema for the given action key and the [users] action configuration */\nexport function getActionDynamicOutputSchema(\n payload: object\n): RequestOptionsFactory<any> {\n function __getActionDynamicOutputSchema({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/dynamic-output-schema',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getActionDynamicOutputSchema;\n}\n\n/** Returns action dynamic output schema for the given actions */\nexport function bulkGetActionDynamicOutputSchemas(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkGetActionDynamicOutputSchemas({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.actioncatalog.v1.action',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas',\n packageName: PACKAGE_NAME,\n url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({\n protoPath: '/v1/actions/bulk/dynamic-output-schema',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkGetActionDynamicOutputSchemas;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n Action,\n ActionInputMappings,\n BulkGetActionDynamicOutputSchemasResponse,\n CopyInputMappingOptions,\n CopyInputMappingResponse,\n CreateActionOptions,\n DeleteActionOptions,\n GetActionDynamicInputSchemaOptions,\n GetActionDynamicInputSchemaResponse,\n GetActionDynamicOutputSchemaOptions,\n GetActionDynamicOutputSchemaResponse,\n GetRuntimeActionIdentifiers,\n ResolveActionsOptions,\n ResolveActionsResponse,\n UpdateActionOptions,\n bulkGetActionDynamicOutputSchemas as universalBulkGetActionDynamicOutputSchemas,\n copyInputMapping as universalCopyInputMapping,\n createAction as universalCreateAction,\n deleteAction as universalDeleteAction,\n getActionDynamicInputSchema as universalGetActionDynamicInputSchema,\n getActionDynamicOutputSchema as universalGetActionDynamicOutputSchema,\n getRuntimeAction as universalGetRuntimeAction,\n resolveActions as universalResolveActions,\n updateAction as universalUpdateAction,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/automations' };\n\ntype ActionNonNullablePaths =\n | `appId`\n | `actionKey`\n | `implementedMethods.validateConfiguration`\n | `implementedMethods.duplicateInputMapping`\n | `implementedMethods.generateApplicationAutomationInputMapping`\n | `implementedMethods.getQuotaInfo`\n | `implementedMethods.onBeforeSave`\n | `implementedMethods.onReset`\n | `implementedMethods.generateActionInputMappingFromTemplate`\n | `implementedMethods.onRemove`\n | `implementedMethods.getDynamicInputSchema`\n | `implementedMethods.mergeInputMappings`\n | `implementedMethods.getDynamicOutputSchema`\n | `implementedMethods.generateInputMappingFromIntent`\n | `executionType`\n | `interfaceConfiguration.type`;\n\nexport function createAction(httpClient: HttpClient): CreateActionSignature {\n return (\n options?: NonNullablePaths<\n CreateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ) =>\n universalCreateAction(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateActionSignature {\n /**\n * Create an action\n * @returns The created action\n */\n (\n options?: NonNullablePaths<\n CreateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ): Promise<NonNullablePaths<Action, ActionNonNullablePaths>>;\n}\n\nexport function updateAction(httpClient: HttpClient): UpdateActionSignature {\n return (\n _id: string,\n options?: NonNullablePaths<\n UpdateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ) =>\n universalUpdateAction(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateActionSignature {\n /**\n * Create a new version for a trigger, update the latest version of the component to point to this trigger\n * @param - Action ID.\n * @returns Action Configuration\n */\n (\n _id: string,\n options?: NonNullablePaths<\n UpdateActionOptions,\n `action.actionKey` | `action.appId`\n >\n ): Promise<NonNullablePaths<Action, ActionNonNullablePaths>>;\n}\n\nexport function deleteAction(httpClient: HttpClient): DeleteActionSignature {\n return (\n actionAppId: string,\n options: NonNullablePaths<DeleteActionOptions, `actionKey`>\n ) =>\n universalDeleteAction(\n actionAppId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteActionSignature {\n /**\n * Delete a trigger by app id and key\n * @param - The action App Id\n */\n (\n actionAppId: string,\n options: NonNullablePaths<DeleteActionOptions, `actionKey`>\n ): Promise<void>;\n}\n\nexport function getRuntimeAction(\n httpClient: HttpClient\n): GetRuntimeActionSignature {\n return (\n identifiers: NonNullablePaths<\n GetRuntimeActionIdentifiers,\n `actionKey` | `appId`\n >\n ) =>\n universalGetRuntimeAction(\n identifiers,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetRuntimeActionSignature {\n /**\n * Returns action configuration by action key\n * @returns Action Configuration\n */\n (\n identifiers: NonNullablePaths<\n GetRuntimeActionIdentifiers,\n `actionKey` | `appId`\n >\n ): Promise<NonNullablePaths<Action, ActionNonNullablePaths>>;\n}\n\nexport function getActionDynamicInputSchema(\n httpClient: HttpClient\n): GetActionDynamicInputSchemaSignature {\n return (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicInputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ) =>\n universalGetActionDynamicInputSchema(\n appId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetActionDynamicInputSchemaSignature {\n /**\n * Returns action dynamic schema and ui schema for the given action key and input mapping (action config)\n * @param - The App ID of the action's owner.\n */\n (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicInputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ): Promise<GetActionDynamicInputSchemaResponse>;\n}\n\nexport function resolveActions(\n httpClient: HttpClient\n): ResolveActionsSignature {\n return (options?: ResolveActionsOptions) =>\n universalResolveActions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ResolveActionsSignature {\n /**\n * Returns action configurations that are installed on the site and exposed to Wix users.\n */\n (options?: ResolveActionsOptions): Promise<\n NonNullablePaths<\n ResolveActionsResponse,\n {\n [P in ActionNonNullablePaths]: `actions.${number}.${P}`;\n }[ActionNonNullablePaths]\n >\n >;\n}\n\nexport function copyInputMapping(\n httpClient: HttpClient\n): CopyInputMappingSignature {\n return (\n appId: string,\n options: NonNullablePaths<\n CopyInputMappingOptions,\n `actionKey` | `inputMapping`\n >\n ) =>\n universalCopyInputMapping(\n appId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CopyInputMappingSignature {\n /**\n * Get action input mapping copy\n * The main use case is to call this method from the automations editor, when the user wants to copy an action. So\n * this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing\n * the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI\n * endpoint is implemented.\n * A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping\n * so such that the `messageId` stays unique across multiple actions.\n * @param - Action app id\n */\n (\n appId: string,\n options: NonNullablePaths<\n CopyInputMappingOptions,\n `actionKey` | `inputMapping`\n >\n ): Promise<CopyInputMappingResponse>;\n}\n\nexport function getActionDynamicOutputSchema(\n httpClient: HttpClient\n): GetActionDynamicOutputSchemaSignature {\n return (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicOutputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ) =>\n universalGetActionDynamicOutputSchema(\n appId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetActionDynamicOutputSchemaSignature {\n /**\n * Returns action dynamic output schema for the given action key and the [users] action configuration\n * @param - The App ID of the action's owner.\n */\n (\n appId: string,\n options: NonNullablePaths<\n GetActionDynamicOutputSchemaOptions,\n `actionKey` | `inputMapping`\n >\n ): Promise<GetActionDynamicOutputSchemaResponse>;\n}\n\nexport function bulkGetActionDynamicOutputSchemas(\n httpClient: HttpClient\n): BulkGetActionDynamicOutputSchemasSignature {\n return (actionsInputMappings: ActionInputMappings[]) =>\n universalBulkGetActionDynamicOutputSchemas(\n actionsInputMappings,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkGetActionDynamicOutputSchemasSignature {\n /**\n * Returns action dynamic output schema for the given actions\n * @param - list of actions details which will be used to generate the output schemas\n */\n (actionsInputMappings: ActionInputMappings[]): Promise<\n NonNullablePaths<\n BulkGetActionDynamicOutputSchemasResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n >;\n}\n\nexport {\n Action,\n ActionEvent,\n ActionInputMappings,\n ActionSpecInfo,\n AdditionalInformationRequiredInfo,\n ApplicationError,\n BulkActionMetadata,\n BulkActionOutputSchemaResult,\n BulkGetActionDynamicOutputSchemasRequest,\n BulkGetActionDynamicOutputSchemasResponse,\n CopyInputMappingOptions,\n CopyInputMappingRequest,\n CopyInputMappingResponse,\n CreateActionOptions,\n CreateActionRequest,\n CreateActionResponse,\n CursorPaging,\n Cursors,\n DeleteActionOptions,\n DeleteActionRequest,\n DeleteActionResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExecutionType,\n ExperimentActionType,\n FocalPoint,\n GenerateInputMappingFromIntentRequest,\n GenerateInputMappingFromIntentResponse,\n GenerateInputMappingFromIntentResponseStatusInfoOneOf,\n GenericOptions,\n GetActionDynamicInputSchemaOptions,\n GetActionDynamicInputSchemaRequest,\n GetActionDynamicInputSchemaResponse,\n GetActionDynamicOutputSchemaOptions,\n GetActionDynamicOutputSchemaRequest,\n GetActionDynamicOutputSchemaResponse,\n GetRuntimeActionIdentifiers,\n GetRuntimeActionRequest,\n GetRuntimeActionResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ImplementedMethods,\n InputMappingGeneratedInfo,\n InterfaceConfiguration,\n InterfaceConfigurationOptionsOneOf,\n ItemMetadata,\n MessageEnvelope,\n Metadata,\n MigrateComponentToActionRequest,\n MigrateComponentToActionResponse,\n Paging,\n PagingMetadataV2,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ResolveActionsOptions,\n ResolveActionsRequest,\n ResolveActionsResponse,\n RestoreInfo,\n RetryExperimentCreation,\n SortOrder,\n Sorting,\n Source,\n SourceOptionsOneOf,\n SourceType,\n Status,\n Type,\n UpdateActionOptions,\n UpdateActionRequest,\n UpdateActionResponse,\n WebhookIdentityType,\n WidgetComponentOptions,\n WixApiOptions,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\n","import {\n createAction as publicCreateAction,\n updateAction as publicUpdateAction,\n deleteAction as publicDeleteAction,\n getRuntimeAction as publicGetRuntimeAction,\n getActionDynamicInputSchema as publicGetActionDynamicInputSchema,\n resolveActions as publicResolveActions,\n copyInputMapping as publicCopyInputMapping,\n getActionDynamicOutputSchema as publicGetActionDynamicOutputSchema,\n bulkGetActionDynamicOutputSchemas as publicBulkGetActionDynamicOutputSchemas,\n} from './automations-actioncatalog-v1-action-action-catalog.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createAction: MaybeContext<\n BuildRESTFunction<typeof publicCreateAction> & typeof publicCreateAction\n> = /*#__PURE__*/ createRESTModule(publicCreateAction);\nexport const updateAction: MaybeContext<\n BuildRESTFunction<typeof publicUpdateAction> & typeof publicUpdateAction\n> = /*#__PURE__*/ createRESTModule(publicUpdateAction);\nexport const deleteAction: MaybeContext<\n BuildRESTFunction<typeof publicDeleteAction> & typeof publicDeleteAction\n> = /*#__PURE__*/ createRESTModule(publicDeleteAction);\nexport const getRuntimeAction: MaybeContext<\n BuildRESTFunction<typeof publicGetRuntimeAction> &\n typeof publicGetRuntimeAction\n> = /*#__PURE__*/ createRESTModule(publicGetRuntimeAction);\nexport const getActionDynamicInputSchema: MaybeContext<\n BuildRESTFunction<typeof publicGetActionDynamicInputSchema> &\n typeof publicGetActionDynamicInputSchema\n> = /*#__PURE__*/ createRESTModule(publicGetActionDynamicInputSchema);\nexport const resolveActions: MaybeContext<\n BuildRESTFunction<typeof publicResolveActions> & typeof publicResolveActions\n> = /*#__PURE__*/ createRESTModule(publicResolveActions);\nexport const copyInputMapping: MaybeContext<\n BuildRESTFunction<typeof publicCopyInputMapping> &\n typeof publicCopyInputMapping\n> = /*#__PURE__*/ createRESTModule(publicCopyInputMapping);\nexport const getActionDynamicOutputSchema: MaybeContext<\n BuildRESTFunction<typeof publicGetActionDynamicOutputSchema> &\n typeof publicGetActionDynamicOutputSchema\n> = /*#__PURE__*/ createRESTModule(publicGetActionDynamicOutputSchema);\nexport const bulkGetActionDynamicOutputSchemas: MaybeContext<\n BuildRESTFunction<typeof publicBulkGetActionDynamicOutputSchemas> &\n typeof publicBulkGetActionDynamicOutputSchemas\n> = /*#__PURE__*/ createRESTModule(publicBulkGetActionDynamicOutputSchemas);\n\nexport {\n Type,\n SourceType,\n ExecutionType,\n ExperimentActionType,\n SortOrder,\n Status,\n WebhookIdentityType,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\nexport {\n Action,\n WidgetComponentOptions,\n GenericOptions,\n WixApiOptions,\n Metadata,\n ImplementedMethods,\n InterfaceConfiguration,\n InterfaceConfigurationOptionsOneOf,\n FocalPoint,\n Source,\n SourceOptionsOneOf,\n RetryExperimentCreation,\n ActionSpecInfo,\n CreateActionRequest,\n CreateActionResponse,\n UpdateActionRequest,\n UpdateActionResponse,\n DeleteActionRequest,\n DeleteActionResponse,\n MigrateComponentToActionRequest,\n MigrateComponentToActionResponse,\n GetRuntimeActionRequest,\n GetRuntimeActionResponse,\n GetActionDynamicInputSchemaRequest,\n GetActionDynamicInputSchemaResponse,\n ResolveActionsRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n ResolveActionsResponse,\n PagingMetadataV2,\n Cursors,\n CopyInputMappingRequest,\n CopyInputMappingResponse,\n GetActionDynamicOutputSchemaRequest,\n GetActionDynamicOutputSchemaResponse,\n BulkGetActionDynamicOutputSchemasRequest,\n ActionInputMappings,\n BulkGetActionDynamicOutputSchemasResponse,\n ItemMetadata,\n ApplicationError,\n BulkActionOutputSchemaResult,\n BulkActionMetadata,\n GenerateInputMappingFromIntentRequest,\n GenerateInputMappingFromIntentResponse,\n GenerateInputMappingFromIntentResponseStatusInfoOneOf,\n InputMappingGeneratedInfo,\n AdditionalInformationRequiredInfo,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n CreateActionOptions,\n UpdateActionOptions,\n DeleteActionOptions,\n GetRuntimeActionIdentifiers,\n GetActionDynamicInputSchemaOptions,\n ResolveActionsOptions,\n CopyInputMappingOptions,\n GetActionDynamicOutputSchemaOptions,\n} from './automations-actioncatalog-v1-action-action-catalog.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,oCAAAC;AAAA,EAAA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AClD,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,gCAGK,2DAAiBA,6BAAkC;AAC9D,IAAMC,qCAGK,2DAAiBA,kCAAuC;","names":["bulkGetActionDynamicOutputSchemas","copyInputMapping","createAction","deleteAction","getActionDynamicInputSchema","getActionDynamicOutputSchema","getRuntimeAction","resolveActions","updateAction","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","Type","SourceType","ExecutionType","ExperimentActionType","SortOrder","Status","WebhookIdentityType","createAction","sdkTransformError","updateAction","deleteAction","getRuntimeAction","getActionDynamicInputSchema","resolveActions","copyInputMapping","getActionDynamicOutputSchema","bulkGetActionDynamicOutputSchemas","createAction","updateAction","deleteAction","getRuntimeAction","getActionDynamicInputSchema","resolveActions","copyInputMapping","getActionDynamicOutputSchema","bulkGetActionDynamicOutputSchemas","import_rest_modules","createAction","updateAction","deleteAction","getRuntimeAction","getActionDynamicInputSchema","resolveActions","copyInputMapping","getActionDynamicOutputSchema","bulkGetActionDynamicOutputSchemas"]}
|
|
@@ -153,6 +153,8 @@ interface ImplementedMethods {
|
|
|
153
153
|
mergeInputMappings?: boolean;
|
|
154
154
|
/** Whether Get Dynamic Output Schema is implemented. */
|
|
155
155
|
getDynamicOutputSchema?: boolean;
|
|
156
|
+
/** Whether Generate Input Mapping From Intent is implemented. */
|
|
157
|
+
generateInputMappingFromIntent?: boolean;
|
|
156
158
|
}
|
|
157
159
|
declare enum ExecutionType {
|
|
158
160
|
/** Unknown type. */
|
|
@@ -739,7 +741,7 @@ declare enum WebhookIdentityType {
|
|
|
739
741
|
}
|
|
740
742
|
/** @enumType */
|
|
741
743
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
742
|
-
type ActionNonNullablePaths = `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `executionType` | `interfaceConfiguration.type`;
|
|
744
|
+
type ActionNonNullablePaths = `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`;
|
|
743
745
|
/**
|
|
744
746
|
* Create an action
|
|
745
747
|
* @public
|