@wix/auto_sdk_automations_automations-v-2 1.0.75 → 1.0.77

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.
@@ -1895,93 +1895,123 @@ interface PublishDraftAutomationResponse {
1895
1895
  interface ValidateAutomationRequest {
1896
1896
  /** Automation to validate. */
1897
1897
  automation: Automation;
1898
- /** Automation validation settings. */
1898
+ /**
1899
+ * Validation settings.
1900
+ *
1901
+ * When not specified, validates the full automation including trigger, actions, and provider validations.
1902
+ *
1903
+ * > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugins](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
1904
+ */
1899
1905
  validationSettings?: ValidationSettings;
1900
1906
  }
1901
1907
  interface ValidationSettings {
1902
1908
  /**
1903
- * IDs of actions to validate. Only actions whose IDs are specified are validated.
1909
+ * IDs of actions to validate.
1904
1910
  *
1905
- * When action IDs are specified, triggers are not validated. When empty, the full automation is validated, including triggers.
1911
+ * When specified, only these actions are validated. When empty, the full automation is validated including the trigger. Any validations added by the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) are also performed.
1906
1912
  * @maxSize 30
1907
1913
  * @format GUID
1908
1914
  */
1909
1915
  actionIds?: string[];
1910
1916
  /**
1911
- * Whether to skip provider validations.
1917
+ * Whether to skip [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) and [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) validations.
1912
1918
  *
1913
1919
  * Default: `false`.
1914
1920
  */
1915
1921
  skipProviderValidations?: boolean;
1916
1922
  }
1917
1923
  interface ValidateAutomationResponse {
1918
- /** Automation validation status. */
1924
+ /** Validation status. */
1919
1925
  status?: ValidationResultStatusWithLiterals;
1920
1926
  /**
1921
- * Validation errors related to the automation's trigger configuration.
1927
+ * Errors found in the automation's trigger.
1922
1928
  * @maxSize 100
1923
1929
  */
1924
1930
  triggerValidationErrors?: TriggerValidationError[];
1925
1931
  /**
1926
- * Validation errors related to the automation's actions configuration.
1932
+ * Errors found in the automation's actions.
1927
1933
  * @maxSize 100
1928
1934
  */
1929
1935
  actionValidationErrors?: ActionValidationError[];
1930
1936
  }
1931
1937
  declare enum ValidationResultStatus {
1932
1938
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
1933
- /** Automation is valid - no validation errors found. */
1939
+ /**
1940
+ * Automation is valid. No errors found.
1941
+ *
1942
+ * You can save and run valid automations on user sites.
1943
+ */
1934
1944
  VALID = "VALID",
1935
- /** Automation is partially valid - validation errors with Warning severity were found - might affect automation execution */
1945
+ /**
1946
+ * Automation is valid but contains at least one error with a `WARNING` severity.
1947
+ *
1948
+ * Errors with a `WARNING` allow you to save and run the automation on user sites, but this can result in unexpected behavior.
1949
+ */
1936
1950
  VALID_WITH_WARNINGS = "VALID_WITH_WARNINGS",
1937
- /** Automation is not valid, validation errors with Critical severity were found - prevents proper automation/action execution and should be fixed. */
1951
+ /**
1952
+ * Automation is not valid. It contains at least one error with a `CRITICAL` severity.
1953
+ *
1954
+ * Errors with a `CRITICAL` severity do not allow you to save and run the automation on user sites.
1955
+ */
1938
1956
  INVALID = "INVALID"
1939
1957
  }
1940
1958
  /** @enumType */
1941
1959
  type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
1942
1960
  interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
1943
- /** Automation's Trigger configuration error. */
1961
+ /** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#trigger-configuration). */
1944
1962
  configurationError?: TriggerConfigurationError;
1945
- /** Trigger Provider configuration error. */
1963
+ /** Error found in how the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) configured their trigger. */
1946
1964
  providerConfigurationError?: ProviderConfigurationError;
1947
- /** Validation error type. */
1965
+ /** Error type. */
1948
1966
  errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
1949
- /** Validation error severity */
1967
+ /** Error severity. */
1950
1968
  errorSeverity?: SeverityWithLiterals;
1951
1969
  }
1952
1970
  /** @oneof */
1953
1971
  interface TriggerValidationErrorErrorOneOf {
1954
- /** Automation's Trigger configuration error. */
1972
+ /** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#trigger-configuration). */
1955
1973
  configurationError?: TriggerConfigurationError;
1956
- /** Trigger Provider configuration error. */
1974
+ /** Error found in how the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) configured their trigger. */
1957
1975
  providerConfigurationError?: ProviderConfigurationError;
1958
1976
  }
1959
1977
  declare enum TriggerValidationErrorValidationErrorType {
1960
1978
  UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
1961
- /** Automation's Trigger Configuration error. */
1979
+ /** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#trigger-configuration). */
1962
1980
  CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
1963
- /** Trigger Provider related error. */
1981
+ /** Error found in how the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) configured their trigger. */
1964
1982
  PROVIDER_ERROR = "PROVIDER_ERROR"
1965
1983
  }
1966
1984
  /** @enumType */
1967
1985
  type TriggerValidationErrorValidationErrorTypeWithLiterals = TriggerValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
1968
1986
  interface TriggerConfigurationError {
1969
- /** Trigger error type. */
1987
+ /** Type of the trigger error. */
1970
1988
  errorType?: TriggerErrorTypeWithLiterals;
1971
1989
  }
1972
1990
  declare enum TriggerErrorType {
1973
1991
  UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
1974
- /** Configured trigger was not found. */
1992
+ /** Trigger was not found. */
1975
1993
  NOT_FOUND = "NOT_FOUND",
1976
- /** App not installed. */
1994
+ /** Required app is not installed on the site. */
1977
1995
  APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
1978
- /** Invalid trigger key. */
1996
+ /** Trigger key is invalid. */
1979
1997
  INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
1980
- /** Invalid filter field key. */
1998
+ /**
1999
+ * Filter field key is invalid.
2000
+ *
2001
+ * Learn more about [trigger filter](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
2002
+ */
1981
2003
  INVALID_FILTER_FIELD_KEY = "INVALID_FILTER_FIELD_KEY",
1982
- /** Invalid filter expression. */
2004
+ /**
2005
+ * Filter expression is invalid.
2006
+ *
2007
+ * Learn more about [trigger filter expressions](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
2008
+ */
1983
2009
  INVALID_FILTER_EXPRESSION = "INVALID_FILTER_EXPRESSION",
1984
- /** Missing configuration for a required trigger filter */
2010
+ /**
2011
+ * Required trigger filter was not found.
2012
+ *
2013
+ * Learn more about [required trigger filters](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
2014
+ */
1985
2015
  MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
1986
2016
  }
1987
2017
  /** @enumType */
@@ -2009,125 +2039,159 @@ declare enum ValidationErrorSeverity {
2009
2039
  type ValidationErrorSeverityWithLiterals = ValidationErrorSeverity | 'UNKNOWN_VALIDATION_ERROR_SEVERITY' | 'WARNING' | 'ERROR';
2010
2040
  declare enum Severity {
2011
2041
  UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
2012
- /** Low severity error - may affect automation execution. */
2042
+ /**
2043
+ * Low-severity error.
2044
+ *
2045
+ * Errors with a `WARNING` severity allow you to save and run the automation, but the results might be unexpected.
2046
+ */
2013
2047
  WARNING = "WARNING",
2014
- /** Critical severity error - prevents proper automation execution and should be fixed. */
2048
+ /**
2049
+ * High-severity error.
2050
+ *
2051
+ * Errors with a `CRITICAL` severity do not allow you to save and run the automation.
2052
+ */
2015
2053
  CRITICAL = "CRITICAL"
2016
2054
  }
2017
2055
  /** @enumType */
2018
2056
  type SeverityWithLiterals = Severity | 'UNKNOWN_SEVERITY' | 'WARNING' | 'CRITICAL';
2019
2057
  interface ActionValidationInfo {
2020
2058
  /**
2021
- * Action ID.
2059
+ * ID of the [action as configured in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions).
2022
2060
  * @format GUID
2023
2061
  */
2024
2062
  actionId?: string | null;
2025
2063
  /**
2026
- * ID of the app that defined the action.
2064
+ * ID of the [app that created the action](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action).
2027
2065
  * @format GUID
2028
2066
  */
2029
2067
  appId?: string;
2030
2068
  /**
2031
- * Human-readable action identifier.
2069
+ * Action key.
2070
+ *
2071
+ * This identifies the action in the [app that defined it in the Wix Dev Center](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction#how-to-set-up-an-action). This remains consistent across different automations.
2032
2072
  * @minLength 1
2033
2073
  * @maxLength 100
2034
2074
  */
2035
2075
  actionKey?: string;
2036
2076
  /**
2037
- * Action validation errors.
2077
+ * Errors found in the action's configuration.
2038
2078
  * @maxSize 100
2039
2079
  */
2040
2080
  validationErrors?: ActionValidationError[];
2041
2081
  }
2042
2082
  interface ActionValidationError extends ActionValidationErrorErrorOneOf {
2043
- /** Action configuration error. */
2083
+ /** Error found in the [configuration of the action in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
2044
2084
  configurationError?: ActionConfigurationError;
2045
- /** Provider configuration error. */
2085
+ /** Error found in the configuration of the action as added by the [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction). */
2046
2086
  providerConfigurationError?: ProviderConfigurationError;
2047
2087
  /**
2048
- * Action Identifier in the Automation.
2088
+ * ID of the action as [configured in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions).
2049
2089
  * @format GUID
2050
2090
  */
2051
2091
  actionId?: string;
2052
2092
  /**
2053
- * ID of the app that defined the action.
2093
+ * ID of the [app that created the action](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action).
2054
2094
  * @format GUID
2055
2095
  */
2056
2096
  appId?: string;
2057
2097
  /**
2058
- * Human-readable action identifier.
2098
+ * Action key.
2099
+ *
2100
+ * This remains consistent across different automations.
2059
2101
  * @minLength 1
2060
2102
  * @maxLength 100
2061
2103
  */
2062
2104
  actionKey?: string;
2063
- /** Validation error type. */
2105
+ /** Error type. */
2064
2106
  errorType?: ValidationErrorTypeWithLiterals;
2065
- /** Validation error severity */
2107
+ /** Error severity. */
2066
2108
  errorSeverity?: SeverityWithLiterals;
2067
2109
  }
2068
2110
  /** @oneof */
2069
2111
  interface ActionValidationErrorErrorOneOf {
2070
- /** Action configuration error. */
2112
+ /** Error found in the [configuration of the action in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
2071
2113
  configurationError?: ActionConfigurationError;
2072
- /** Provider configuration error. */
2114
+ /** Error found in the configuration of the action as added by the [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction). */
2073
2115
  providerConfigurationError?: ProviderConfigurationError;
2074
2116
  }
2075
2117
  declare enum ValidationErrorType {
2076
2118
  UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
2077
- /** Configuration error. */
2119
+ /** Error found in how the [action is configured in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
2078
2120
  CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
2079
- /** Provider error. */
2121
+ /** Error found in how the [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured their action. */
2080
2122
  PROVIDER_ERROR = "PROVIDER_ERROR"
2081
2123
  }
2082
2124
  /** @enumType */
2083
2125
  type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
2084
2126
  interface ActionConfigurationError {
2085
- /** Action error type. */
2127
+ /** Error type. */
2086
2128
  errorType?: ActionErrorTypeWithLiterals;
2087
2129
  }
2088
2130
  declare enum ActionErrorType {
2089
2131
  UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
2090
- /** Configured action was not found. */
2132
+ /** Action was not found. */
2091
2133
  NOT_FOUND = "NOT_FOUND",
2092
- /** App not installed. */
2134
+ /** Required app is not installed on the site. */
2093
2135
  APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
2094
2136
  /** Invalid action key. */
2095
2137
  INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
2096
- /** Invalid mapping */
2138
+ /**
2139
+ * Invalid action mapping.
2140
+ *
2141
+ * At least one action parameter doesn't match the action's [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping) or other schema.
2142
+ */
2097
2143
  INVALID_MAPPING = "INVALID_MAPPING",
2098
- /** Mapping type mismatch. */
2144
+ /**
2145
+ * Action mapping type mismatch.
2146
+ *
2147
+ * The type of at least one action parameter does not match the type configured in the action's [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema) or other schema.
2148
+ */
2099
2149
  MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
2100
- /** Mapping missing required field. */
2150
+ /**
2151
+ * Action mapping missing a required schema field.
2152
+ *
2153
+ * At least one field included in the action schema's [`required` array](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema#top-level-properties) is missing a matching action parameter.
2154
+ */
2101
2155
  MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
2102
- /** Mapping schema mismatch. */
2156
+ /**
2157
+ * Action schema mapping mismatch.
2158
+ *
2159
+ * The format or value of at least one action parameter does not match the action's [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema) or other schema.
2160
+ */
2103
2161
  MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
2104
- /** Mapping variable missing from schema. */
2162
+ /** Action uses a variable not available to it in the current automation. */
2105
2163
  MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
2106
- /** Configured post action not found. */
2164
+ /**
2165
+ * Configured post action not found.
2166
+ *
2167
+ * Learn more about [configuring actions](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions) in an automation.
2168
+ */
2107
2169
  POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
2108
2170
  }
2109
2171
  /** @enumType */
2110
2172
  type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'INVALID_ACTION_KEY' | 'INVALID_MAPPING' | 'MAPPING_TYPE_MISMATCH' | 'MAPPING_MISSING_REQUIRED_FIELD' | 'MAPPING_SCHEMA_MISMATCH' | 'MAPPING_VARIABLE_MISSING_FROM_SCHEMA' | 'POST_ACTION_NOT_FOUND';
2111
2173
  interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
2112
- /** Automation configuration error. */
2174
+ /** Error caused by an error in the automation's [configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation). */
2113
2175
  configurationError?: AutomationConfigurationError;
2114
- /** Provider configuration error. */
2176
+ /** Error caused by an error in how the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) or [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured their trigger or action. */
2115
2177
  providerConfigurationError?: ProviderConfigurationError;
2116
- /** Validation error type. */
2178
+ /** Error type. */
2117
2179
  errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
2118
- /** Validation error severity */
2180
+ /** Error severity. */
2119
2181
  errorSeverity?: SeverityWithLiterals;
2120
2182
  }
2121
2183
  /** @oneof */
2122
2184
  interface AutomationValidationErrorErrorOneOf {
2123
- /** Automation configuration error. */
2185
+ /** Error caused by an error in the automation's [configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation). */
2124
2186
  configurationError?: AutomationConfigurationError;
2125
- /** Provider configuration error. */
2187
+ /** Error caused by an error in how the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) or [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured their trigger or action. */
2126
2188
  providerConfigurationError?: ProviderConfigurationError;
2127
2189
  }
2128
2190
  declare enum AutomationValidationErrorValidationErrorType {
2129
2191
  UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
2192
+ /** Automation-level error caused by an error in the automation's configuration. */
2130
2193
  CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
2194
+ /** Error caused by an error in how the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) or [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured the automation. */
2131
2195
  PROVIDER_ERROR = "PROVIDER_ERROR"
2132
2196
  }
2133
2197
  /** @enumType */
@@ -2154,12 +2218,12 @@ interface ValidateAutomationByIdResponse {
2154
2218
  /** Automation validation status. */
2155
2219
  status?: ValidationResultStatusWithLiterals;
2156
2220
  /**
2157
- * Validation errors related to the automation's trigger configuration.
2221
+ * Errors found in the trigger configuration.
2158
2222
  * @maxSize 100
2159
2223
  */
2160
2224
  triggerValidationErrors?: TriggerValidationError[];
2161
2225
  /**
2162
- * Validation errors related to the automation's actions configuration.
2226
+ * Errors found in the configuration of one or more of the automation's actions.
2163
2227
  * @maxSize 100
2164
2228
  */
2165
2229
  actionValidationErrors?: ActionValidationError[];
@@ -2940,7 +3004,15 @@ declare function deleteDraftAutomation(automationId: string): Promise<void>;
2940
3004
  */
2941
3005
  declare function publishDraftAutomation(automationId: string): Promise<NonNullablePaths<PublishDraftAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.archived`, 7>>;
2942
3006
  /**
2943
- * Validates the specified automation.
3007
+ * Validates an automation. A valid automation has no validation errors.
3008
+ *
3009
+ * This method:
3010
+ *
3011
+ * - Validates that the [trigger is properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger).
3012
+ * - Validates that all [actions are properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions) with correct [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping) and other mappings.
3013
+ * - Validates custom logic added by [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
3014
+ *
3015
+ * > **Note**: This method identifies configuration errors but doesn't fix them. It does not modify the automation.
2944
3016
  * @param automation - Automation to validate.
2945
3017
  * @public
2946
3018
  * @documentationMaturity preview
@@ -2951,7 +3023,13 @@ declare function publishDraftAutomation(automationId: string): Promise<NonNullab
2951
3023
  */
2952
3024
  declare function validateAutomation(automation: Automation, options?: ValidateAutomationOptions): Promise<NonNullablePaths<ValidateAutomationResponse, `status` | `triggerValidationErrors` | `triggerValidationErrors.${number}.configurationError.errorType` | `triggerValidationErrors.${number}.providerConfigurationError.message` | `triggerValidationErrors.${number}.providerConfigurationError.title` | `triggerValidationErrors.${number}.errorType` | `triggerValidationErrors.${number}.errorSeverity` | `actionValidationErrors` | `actionValidationErrors.${number}.configurationError.errorType` | `actionValidationErrors.${number}.providerConfigurationError.message` | `actionValidationErrors.${number}.providerConfigurationError.title` | `actionValidationErrors.${number}.actionId` | `actionValidationErrors.${number}.appId` | `actionValidationErrors.${number}.actionKey` | `actionValidationErrors.${number}.errorType` | `actionValidationErrors.${number}.errorSeverity`, 5>>;
2953
3025
  interface ValidateAutomationOptions {
2954
- /** Automation validation settings. */
3026
+ /**
3027
+ * Validation settings.
3028
+ *
3029
+ * When not specified, validates the full automation including trigger, actions, and provider validations.
3030
+ *
3031
+ * > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugins](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
3032
+ */
2955
3033
  validationSettings?: ValidationSettings;
2956
3034
  }
2957
3035
  /**