/** * The Selling Partner API for Messaging Automations * The Selling Partner API for Messaging Automations allows sellers to programmatically manage automated buyer-seller messaging configurations. An automation configuration defines rules for automatically responding to buyer messages (for example, auto-responses to common questions about shipping, returns, or product details). A seller can create multiple automation configurations, and each configuration can apply to one or more Amazon stores. Each store-specific entry within a configuration contains the response content and the automation trigger conditions. The `marketplaceIds` query parameter is required on all operations for store-scoped authorization. * * The version of the OpenAPI document: 2026-04-20 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import { ApiClient } from '../ApiClient.js'; import { AutomationConfiguration } from '../model/AutomationConfiguration.js'; import { CreateAutomationConfigRequest } from '../model/CreateAutomationConfigRequest.js'; import { ListAutomationConfigsResponse } from '../model/ListAutomationConfigsResponse.js'; import { UpdateAutomationConfigRequest } from '../model/UpdateAutomationConfigRequest.js'; /** * AutomationConfigurations service. * @module messaging_v2026_04_20/api/AutomationConfigurationsApi * @version 2026-04-20 */ export declare class AutomationConfigurationsApi { #private; apiClient: any; /** * Constructs a new AutomationConfigurationsApi. * @alias module:messaging_v2026_04_20/api/AutomationConfigurationsApi * @class * @param {ApiClient} [apiClient] Optional API client implementation to use, * default to {@link ApiClient#instance} if unspecified. */ constructor(apiClient?: ApiClient); /** * Initialize rate limiters for API operations */ initializeDefaultRateLimiterMap(): void; /** * Get rate limiter for a specific operation * @param {String} operation name */ getRateLimiter(operation: string): any; /** * Creates a new automation configuration for automated buyer-seller messaging. The configuration is `ACTIVE` as soon as it is created. The response returns the full automation configuration resource, including the server-generated `automationId`. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @param {CreateAutomationConfigRequest} body The request body for creating an automation configuration. * @return {Promise} */ createAutomationConfigurationWithHttpInfo(marketplaceIds: string[], body: CreateAutomationConfigRequest): Promise; /** * Creates a new automation configuration for automated buyer-seller messaging. The configuration is `ACTIVE` as soon as it is created. The response returns the full automation configuration resource, including the server-generated `automationId`. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @param {CreateAutomationConfigRequest} body The request body for creating an automation configuration. * @return {Promise} */ createAutomationConfiguration(marketplaceIds: string[], body: CreateAutomationConfigRequest): Promise; /** * Returns the details of a specific automation configuration, including its store-specific automation entries with response content and trigger conditions. * @param {String} automationId The unique identifier of the automation configuration. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @return {Promise} */ getAutomationConfigurationWithHttpInfo(automationId: string, marketplaceIds: string[]): Promise; /** * Returns the details of a specific automation configuration, including its store-specific automation entries with response content and trigger conditions. * @param {String} automationId The unique identifier of the automation configuration. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @return {Promise} */ getAutomationConfiguration(automationId: string, marketplaceIds: string[]): Promise; /** * Returns a list of automation configurations that include the specified Amazon store. Results may include configurations that also apply to other stores, since a single configuration can span multiple stores. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @param {Object} [opts] Optional parameters * @param {String} [opts.automationType] Filters results by automation type. * @param {String} [opts.automationSubType] Filters results by automation sub-type. * @param {String} [opts.includeMarketplaceAutomations] When set to `true`, the response includes the full, store-level automation details for each configuration, including response text, attachment URL, and the trigger conditions that define when the automation activates for that store. When false or omitted, only the top-level configuration metadata (identifier, status, display name, timestamps) is returned. (default to 'FALSE') * @param {Number} [opts.pageSize] The number of results to return per page. Minimum: 1. Maximum: 50. Default: 10. * @param {String} [opts.paginationToken] A token to fetch the next page of results. Use the `nextToken` value returned in the previous response's `pagination` object. * @return {Promise} */ listAutomationConfigurationsWithHttpInfo(marketplaceIds: string[], opts?: { automationType?: string; automationSubType?: string; includeMarketplaceAutomations?: string; pageSize?: number; paginationToken?: string; }): Promise; /** * Returns a list of automation configurations that include the specified Amazon store. Results may include configurations that also apply to other stores, since a single configuration can span multiple stores. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @param {Object} [opts] Optional parameters * @param {String} [opts.automationType] Filters results by automation type. * @param {String} [opts.automationSubType] Filters results by automation sub-type. * @param {String} [opts.includeMarketplaceAutomations] When set to `true`, the response includes the full, store-level automation details for each configuration, including response text, attachment URL, and the trigger conditions that define when the automation activates for that store. When false or omitted, only the top-level configuration metadata (identifier, status, display name, timestamps) is returned. (default to 'FALSE') * @param {Number} [opts.pageSize] The number of results to return per page. Minimum: 1. Maximum: 50. Default: 10. * @param {String} [opts.paginationToken] A token to fetch the next page of results. Use the `nextToken` value returned in the previous response's `pagination` object. * @return {Promise} */ listAutomationConfigurations(marketplaceIds: string[], opts?: { automationType?: string; automationSubType?: string; includeMarketplaceAutomations?: string; pageSize?: number; paginationToken?: string; }): Promise; /** * Updates an existing automation configuration. This is a full replacement operation using `PUT` semantics; you must provide the complete desired state, including `automationDisplayName`, `automationStatus`, and `marketplaceAutomations`. The `marketplaceAutomations` entries you provide replace all of the configuration's existing Amazon store entries; any store that you omit is removed from the configuration. To deactivate a configuration, send its complete current state with `automationStatus` set to `DEACTIVATED`. * @param {String} automationId The unique identifier of the automation configuration to update. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @param {UpdateAutomationConfigRequest} body The request body for updating an automation configuration. * @return {Promise} */ updateAutomationConfigurationWithHttpInfo(automationId: string, marketplaceIds: string[], body: UpdateAutomationConfigRequest): Promise; /** * Updates an existing automation configuration. This is a full replacement operation using `PUT` semantics; you must provide the complete desired state, including `automationDisplayName`, `automationStatus`, and `marketplaceAutomations`. The `marketplaceAutomations` entries you provide replace all of the configuration's existing Amazon store entries; any store that you omit is removed from the configuration. To deactivate a configuration, send its complete current state with `automationStatus` set to `DEACTIVATED`. * @param {String} automationId The unique identifier of the automation configuration to update. * @param {String[]} marketplaceIds A comma-delimited list of [Amazon store identifiers](https://developer-docs.amazon/sp-api/docs/marketplace-ids) for the request. Required for store-scoped operations and authorization. Your application must have permission to operate in the specified stores before processing the request body. * @param {UpdateAutomationConfigRequest} body The request body for updating an automation configuration. * @return {Promise} */ updateAutomationConfiguration(automationId: string, marketplaceIds: string[], body: UpdateAutomationConfigRequest): Promise; } //# sourceMappingURL=AutomationConfigurationsApi.d.ts.map