@wix/auto_sdk_automations_automations-v-2 1.0.78 → 1.0.80

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.
@@ -1898,107 +1898,139 @@ interface PublishDraftAutomationResponse {
1898
1898
  interface ValidateAutomationRequest {
1899
1899
  /** Automation to validate. */
1900
1900
  automation: Automation;
1901
- /** Automation validation settings. */
1901
+ /**
1902
+ * Validation settings.
1903
+ *
1904
+ * When not specified, the method validates the full automation. This includes the trigger, actions, and provider validation logic.
1905
+ *
1906
+ * > **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).
1907
+ */
1902
1908
  validationSettings?: ValidationSettings;
1903
1909
  }
1904
1910
  interface ValidationSettings {
1905
1911
  /**
1906
- * IDs of actions to validate. Only actions whose IDs are specified are validated.
1912
+ * IDs of actions to validate.
1907
1913
  *
1908
- * When action IDs are specified, triggers are not validated. When empty, the full automation is validated, including triggers.
1914
+ * When specified, only these actions are validated.
1915
+ *
1916
+ * When not specified, the full automation is validated. This includes the trigger, actions, and custom logic added by the [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).
1909
1917
  * @maxSize 30
1910
1918
  * @format GUID
1911
1919
  */
1912
1920
  actionIds?: string[];
1913
1921
  /**
1914
- * Whether to skip provider validations.
1922
+ * 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.
1915
1923
  *
1916
1924
  * Default: `false`.
1917
1925
  */
1918
1926
  skipProviderValidations?: boolean;
1919
1927
  }
1920
1928
  interface ValidateAutomationResponse {
1921
- /** Automation validation status. */
1929
+ /** Validation status. */
1922
1930
  status?: ValidationResultStatusWithLiterals;
1923
1931
  /**
1924
- * Validation errors related to the automation's trigger configuration.
1932
+ * Errors found in the automation's [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers).
1925
1933
  * @maxSize 100
1926
1934
  */
1927
1935
  triggerValidationErrors?: TriggerValidationError[];
1928
1936
  /**
1929
- * Validation errors related to the automation's actions configuration.
1937
+ * Errors in the automation's [action configurations](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions).
1930
1938
  * @maxSize 100
1931
1939
  */
1932
1940
  actionValidationErrors?: ActionValidationError[];
1933
1941
  }
1934
1942
  declare enum ValidationResultStatus {
1935
1943
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
1936
- /** Automation is valid - no validation errors found. */
1944
+ /**
1945
+ * Automation is valid. No errors found.
1946
+ *
1947
+ * You can save and run valid automations on user sites.
1948
+ */
1937
1949
  VALID = "VALID",
1938
- /** Automation is partially valid - validation errors with Warning severity were found - might affect automation execution */
1950
+ /**
1951
+ * Automation is valid but contains at least one error with a `WARNING` severity.
1952
+ *
1953
+ * Errors with a `WARNING` allow you to save and run the automation on user sites, but this can result in unexpected behavior.
1954
+ */
1939
1955
  VALID_WITH_WARNINGS = "VALID_WITH_WARNINGS",
1940
- /** Automation is not valid, validation errors with Critical severity were found - prevents proper automation/action execution and should be fixed. */
1956
+ /**
1957
+ * Automation is not valid. It contains at least one error with a `CRITICAL` severity.
1958
+ *
1959
+ * Errors with a `CRITICAL` severity do not allow you to save and run the automation on user sites.
1960
+ */
1941
1961
  INVALID = "INVALID"
1942
1962
  }
1943
1963
  /** @enumType */
1944
1964
  type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
1945
1965
  interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
1946
- /** Automation's Trigger configuration error. */
1966
+ /** Error in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger). */
1947
1967
  configurationError?: TriggerConfigurationError;
1948
- /** Trigger Provider configuration error. */
1968
+ /** 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. */
1949
1969
  providerConfigurationError?: ProviderConfigurationError;
1950
- /** Validation error type. */
1970
+ /** Error type. */
1951
1971
  errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
1952
- /** Validation error severity */
1972
+ /** Error severity. */
1953
1973
  errorSeverity?: SeverityWithLiterals;
1954
1974
  }
1955
1975
  /** @oneof */
1956
1976
  interface TriggerValidationErrorErrorOneOf {
1957
- /** Automation's Trigger configuration error. */
1977
+ /** Error in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger). */
1958
1978
  configurationError?: TriggerConfigurationError;
1959
- /** Trigger Provider configuration error. */
1979
+ /** 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. */
1960
1980
  providerConfigurationError?: ProviderConfigurationError;
1961
1981
  }
1962
1982
  declare enum TriggerValidationErrorValidationErrorType {
1963
1983
  UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
1964
- /** Automation's Trigger Configuration error. */
1984
+ /** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger). */
1965
1985
  CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
1966
- /** Trigger Provider related error. */
1986
+ /** 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. */
1967
1987
  PROVIDER_ERROR = "PROVIDER_ERROR"
1968
1988
  }
1969
1989
  /** @enumType */
1970
1990
  type TriggerValidationErrorValidationErrorTypeWithLiterals = TriggerValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
1971
1991
  interface TriggerConfigurationError {
1972
- /** Trigger error type. */
1992
+ /** Type of the trigger error. */
1973
1993
  errorType?: TriggerErrorTypeWithLiterals;
1974
1994
  }
1975
1995
  declare enum TriggerErrorType {
1976
1996
  UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
1977
- /** Configured trigger was not found. */
1997
+ /** Trigger was not found. */
1978
1998
  NOT_FOUND = "NOT_FOUND",
1979
- /** App not installed. */
1999
+ /** Required app is not installed on the site. */
1980
2000
  APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
1981
- /** Invalid trigger key. */
2001
+ /** Trigger key is invalid. */
1982
2002
  INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
1983
- /** Invalid filter field key. */
2003
+ /**
2004
+ * Filter field key is invalid.
2005
+ *
2006
+ * Learn more about [trigger filter](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
2007
+ */
1984
2008
  INVALID_FILTER_FIELD_KEY = "INVALID_FILTER_FIELD_KEY",
1985
- /** Invalid filter expression. */
2009
+ /**
2010
+ * Filter expression is invalid.
2011
+ *
2012
+ * Learn more about [trigger filter expressions](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
2013
+ */
1986
2014
  INVALID_FILTER_EXPRESSION = "INVALID_FILTER_EXPRESSION",
1987
- /** Missing configuration for a required trigger filter */
2015
+ /**
2016
+ * Required trigger filter was not found.
2017
+ *
2018
+ * Learn more about [required trigger filters](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
2019
+ */
1988
2020
  MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
1989
2021
  }
1990
2022
  /** @enumType */
1991
2023
  type TriggerErrorTypeWithLiterals = TriggerErrorType | 'UNKNOWN_TRIGGER_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'INVALID_TRIGGER_KEY' | 'INVALID_FILTER_FIELD_KEY' | 'INVALID_FILTER_EXPRESSION' | 'MISSING_REQUIRED_FILTER';
1992
2024
  interface ProviderConfigurationError {
1993
- /** Key corresponding to the field in the schema. */
2025
+ /** Scheme field key. */
1994
2026
  fieldKey?: string | null;
1995
2027
  /** Error message. */
1996
2028
  message?: string;
1997
- /** Label for a call-to-action button that's displayed with the error. Translated according to the SPI language context. */
2029
+ /** Label for the call-to-action button displayed with the error. */
1998
2030
  ctaLabel?: string | null;
1999
- /** URL to redirect to when the call-to-action button is clicked. */
2031
+ /** When the call-to-action button is clicked, the redirect URL. */
2000
2032
  ctaUrl?: string | null;
2001
- /** Title for the error. */
2033
+ /** Error title. */
2002
2034
  title?: string;
2003
2035
  }
2004
2036
  declare enum ValidationErrorSeverity {
@@ -2012,125 +2044,159 @@ declare enum ValidationErrorSeverity {
2012
2044
  type ValidationErrorSeverityWithLiterals = ValidationErrorSeverity | 'UNKNOWN_VALIDATION_ERROR_SEVERITY' | 'WARNING' | 'ERROR';
2013
2045
  declare enum Severity {
2014
2046
  UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
2015
- /** Low severity error - may affect automation execution. */
2047
+ /**
2048
+ * Low-severity error.
2049
+ *
2050
+ * Errors with a `WARNING` severity allow you to save and run the automation, but the results might be unexpected.
2051
+ */
2016
2052
  WARNING = "WARNING",
2017
- /** Critical severity error - prevents proper automation execution and should be fixed. */
2053
+ /**
2054
+ * High-severity error.
2055
+ *
2056
+ * Errors with a `CRITICAL` severity do not allow you to save and run the automation.
2057
+ */
2018
2058
  CRITICAL = "CRITICAL"
2019
2059
  }
2020
2060
  /** @enumType */
2021
2061
  type SeverityWithLiterals = Severity | 'UNKNOWN_SEVERITY' | 'WARNING' | 'CRITICAL';
2022
2062
  interface ActionValidationInfo {
2023
2063
  /**
2024
- * Action ID.
2064
+ * 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).
2025
2065
  * @format GUID
2026
2066
  */
2027
2067
  actionId?: string | null;
2028
2068
  /**
2029
- * ID of the app that defined the action.
2069
+ * 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).
2030
2070
  * @format GUID
2031
2071
  */
2032
2072
  appId?: string;
2033
2073
  /**
2034
- * Human-readable action identifier.
2074
+ * Action key.
2075
+ *
2076
+ * 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.
2035
2077
  * @minLength 1
2036
2078
  * @maxLength 100
2037
2079
  */
2038
2080
  actionKey?: string;
2039
2081
  /**
2040
- * Action validation errors.
2082
+ * Errors found in the action's configuration.
2041
2083
  * @maxSize 100
2042
2084
  */
2043
2085
  validationErrors?: ActionValidationError[];
2044
2086
  }
2045
2087
  interface ActionValidationError extends ActionValidationErrorErrorOneOf {
2046
- /** Action configuration error. */
2088
+ /** 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). */
2047
2089
  configurationError?: ActionConfigurationError;
2048
- /** Provider configuration error. */
2090
+ /** 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). */
2049
2091
  providerConfigurationError?: ProviderConfigurationError;
2050
2092
  /**
2051
- * Action Identifier in the Automation.
2093
+ * 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).
2052
2094
  * @format GUID
2053
2095
  */
2054
2096
  actionId?: string;
2055
2097
  /**
2056
- * ID of the app that defined the action.
2098
+ * 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).
2057
2099
  * @format GUID
2058
2100
  */
2059
2101
  appId?: string;
2060
2102
  /**
2061
- * Human-readable action identifier.
2103
+ * Action key.
2104
+ *
2105
+ * This remains consistent across different automations.
2062
2106
  * @minLength 1
2063
2107
  * @maxLength 100
2064
2108
  */
2065
2109
  actionKey?: string;
2066
- /** Validation error type. */
2110
+ /** Error type. */
2067
2111
  errorType?: ValidationErrorTypeWithLiterals;
2068
- /** Validation error severity */
2112
+ /** Error severity. */
2069
2113
  errorSeverity?: SeverityWithLiterals;
2070
2114
  }
2071
2115
  /** @oneof */
2072
2116
  interface ActionValidationErrorErrorOneOf {
2073
- /** Action configuration error. */
2117
+ /** 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). */
2074
2118
  configurationError?: ActionConfigurationError;
2075
- /** Provider configuration error. */
2119
+ /** 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). */
2076
2120
  providerConfigurationError?: ProviderConfigurationError;
2077
2121
  }
2078
2122
  declare enum ValidationErrorType {
2079
2123
  UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
2080
- /** Configuration error. */
2124
+ /** Error in the [action configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
2081
2125
  CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
2082
- /** Provider error. */
2126
+ /** Error in the [action provider configuration](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction). */
2083
2127
  PROVIDER_ERROR = "PROVIDER_ERROR"
2084
2128
  }
2085
2129
  /** @enumType */
2086
2130
  type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
2087
2131
  interface ActionConfigurationError {
2088
- /** Action error type. */
2132
+ /** Error type. */
2089
2133
  errorType?: ActionErrorTypeWithLiterals;
2090
2134
  }
2091
2135
  declare enum ActionErrorType {
2092
2136
  UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
2093
- /** Configured action was not found. */
2137
+ /** Action was not found. */
2094
2138
  NOT_FOUND = "NOT_FOUND",
2095
- /** App not installed. */
2139
+ /** Required app is not installed on the site. */
2096
2140
  APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
2097
2141
  /** Invalid action key. */
2098
2142
  INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
2099
- /** Invalid mapping */
2143
+ /**
2144
+ * Invalid action mapping.
2145
+ *
2146
+ * 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.
2147
+ */
2100
2148
  INVALID_MAPPING = "INVALID_MAPPING",
2101
- /** Mapping type mismatch. */
2149
+ /**
2150
+ * Action mapping type mismatch.
2151
+ *
2152
+ * 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.
2153
+ */
2102
2154
  MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
2103
- /** Mapping missing required field. */
2155
+ /**
2156
+ * Action mapping missing a required schema field.
2157
+ *
2158
+ * 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.
2159
+ */
2104
2160
  MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
2105
- /** Mapping schema mismatch. */
2161
+ /**
2162
+ * Action schema mapping mismatch.
2163
+ *
2164
+ * 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.
2165
+ */
2106
2166
  MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
2107
- /** Mapping variable missing from schema. */
2167
+ /** Action uses a variable not available to it in the current automation. */
2108
2168
  MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
2109
- /** Configured post action not found. */
2169
+ /**
2170
+ * Configured post action not found.
2171
+ *
2172
+ * 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.
2173
+ */
2110
2174
  POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
2111
2175
  }
2112
2176
  /** @enumType */
2113
2177
  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';
2114
2178
  interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
2115
- /** Automation configuration error. */
2179
+ /** 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). */
2116
2180
  configurationError?: AutomationConfigurationError;
2117
- /** Provider configuration error. */
2181
+ /** 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. */
2118
2182
  providerConfigurationError?: ProviderConfigurationError;
2119
- /** Validation error type. */
2183
+ /** Error type. */
2120
2184
  errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
2121
- /** Validation error severity */
2185
+ /** Error severity. */
2122
2186
  errorSeverity?: SeverityWithLiterals;
2123
2187
  }
2124
2188
  /** @oneof */
2125
2189
  interface AutomationValidationErrorErrorOneOf {
2126
- /** Automation configuration error. */
2190
+ /** 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). */
2127
2191
  configurationError?: AutomationConfigurationError;
2128
- /** Provider configuration error. */
2192
+ /** 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. */
2129
2193
  providerConfigurationError?: ProviderConfigurationError;
2130
2194
  }
2131
2195
  declare enum AutomationValidationErrorValidationErrorType {
2132
2196
  UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
2197
+ /** Automation-level error caused by an error in the automation's configuration. */
2133
2198
  CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
2199
+ /** 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. */
2134
2200
  PROVIDER_ERROR = "PROVIDER_ERROR"
2135
2201
  }
2136
2202
  /** @enumType */
@@ -2157,12 +2223,12 @@ interface ValidateAutomationByIdResponse {
2157
2223
  /** Automation validation status. */
2158
2224
  status?: ValidationResultStatusWithLiterals;
2159
2225
  /**
2160
- * Validation errors related to the automation's trigger configuration.
2226
+ * Errors found in the trigger configuration.
2161
2227
  * @maxSize 100
2162
2228
  */
2163
2229
  triggerValidationErrors?: TriggerValidationError[];
2164
2230
  /**
2165
- * Validation errors related to the automation's actions configuration.
2231
+ * Errors found in the configuration of one or more of the automation's actions.
2166
2232
  * @maxSize 100
2167
2233
  */
2168
2234
  actionValidationErrors?: ActionValidationError[];