@wix/automations 1.0.18 → 1.0.19

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.
@@ -1772,7 +1772,6 @@ interface Activation {
1772
1772
  /** Activation automation */
1773
1773
  automation?: Automation$1;
1774
1774
  }
1775
- /** Automation */
1776
1775
  interface Automation$1 extends AutomationOriginInfoOneOf$1 {
1777
1776
  /** Application info */
1778
1777
  applicationInfo?: ApplicationOrigin$1;
@@ -1786,43 +1785,43 @@ interface Automation$1 extends AutomationOriginInfoOneOf$1 {
1786
1785
  */
1787
1786
  _id?: string | null;
1788
1787
  /**
1789
- * Revision number, which increments by 1 each time the Automation is updated.
1788
+ * Revision number, which increments by 1 each time the automation is updated.
1790
1789
  * To prevent conflicting changes,
1791
- * the current revision must be passed when updating the Automation.
1790
+ * the current revision must be passed when updating the automation.
1792
1791
  *
1793
- * Ignored when creating an Automation.
1792
+ * Ignored when creating an automation.
1794
1793
  * @readonly
1795
1794
  */
1796
1795
  revision?: string | null;
1797
1796
  /**
1798
- * information about the creator of the automation
1797
+ * Information about the creator of the automation.
1799
1798
  * @readonly
1800
1799
  */
1801
1800
  createdBy?: AuditInfo$1;
1802
1801
  /**
1803
- * Date and time the Automation was created.
1802
+ * Date and time the automation was created.
1804
1803
  * @readonly
1805
1804
  */
1806
1805
  _createdDate?: Date;
1807
1806
  /**
1808
- * information about who updated of the automation
1807
+ * The entity that last updated the automation.
1809
1808
  * @readonly
1810
1809
  */
1811
1810
  updatedBy?: AuditInfo$1;
1812
1811
  /**
1813
- * Date and time the Automation was last updated.
1812
+ * Date and time the automation was last updated.
1814
1813
  * @readonly
1815
1814
  */
1816
1815
  _updatedDate?: Date;
1817
- /** Automation name */
1816
+ /** Automation name that is displayed on the user's site. */
1818
1817
  name?: string;
1819
- /** Automation description */
1818
+ /** Automation description. */
1820
1819
  description?: string | null;
1821
- /** Automation runtime configuration */
1820
+ /** Object that defines the automation's trigger, actions, and activation status. */
1822
1821
  configuration?: AutomationConfiguration$1;
1823
- /** Origin type */
1822
+ /** Defines how the automation was added to the site. */
1824
1823
  origin?: Origin$1;
1825
- /** Automation settings */
1824
+ /** Automation settings. */
1826
1825
  settings?: AutomationSettings$1;
1827
1826
  }
1828
1827
  /** @oneof */
@@ -1835,39 +1834,45 @@ interface AutomationOriginInfoOneOf$1 {
1835
1834
  draftInfo?: DraftOrigin$1;
1836
1835
  }
1837
1836
  interface ActionSettings$1 {
1838
- /** list of permanent action ids of actions that cannot be deleted (default - empty, all actions are deletable by default) */
1837
+ /**
1838
+ * List of actions that cannot be deleted.
1839
+ * Default: Empty. All actions are deletable by default.
1840
+ */
1839
1841
  permanentActionIds?: string[];
1840
- /** list of readonly action ids, (default - empty, all actions are editable by default) */
1842
+ /**
1843
+ * List of actions that cannot be edited.
1844
+ * Default: Empty. All actions are editable by default.
1845
+ */
1841
1846
  readonlyActionIds?: string[];
1842
- /** sets if adding a delay action is disabled for this automation */
1847
+ /** Whether the option to add a delay is disabled for the automation. */
1843
1848
  disableDelayAddition?: boolean;
1844
- /** sets if adding a condition action is disabled for this automation */
1849
+ /** Whether the option to add a condition is disabled for the automation. */
1845
1850
  disableConditionAddition?: boolean;
1846
1851
  }
1847
1852
  interface AuditInfo$1 extends AuditInfoIdOneOf$1 {
1848
- /** user identifier */
1853
+ /** User ID. */
1849
1854
  userId?: string;
1850
- /** application identifier */
1855
+ /** Application ID. */
1851
1856
  appId?: string;
1852
1857
  }
1853
1858
  /** @oneof */
1854
1859
  interface AuditInfoIdOneOf$1 {
1855
- /** user identifier */
1860
+ /** User ID. */
1856
1861
  userId?: string;
1857
- /** application identifier */
1862
+ /** Application ID. */
1858
1863
  appId?: string;
1859
1864
  }
1860
1865
  /** Automation runtime configuration */
1861
1866
  interface AutomationConfiguration$1 {
1862
- /** Automation's Status */
1867
+ /** Status of the automation on the site. */
1863
1868
  status?: AutomationConfigurationStatus;
1864
- /** Trigger configuration */
1869
+ /** Automation trigger configuration. */
1865
1870
  trigger?: Trigger$1;
1866
- /** actions that run in parallel after the trigger */
1871
+ /** List of IDs of root actions. Root actions are the first actions to run after the trigger. The actions in the list run in parallel. */
1867
1872
  rootActionIds?: string[];
1868
1873
  /**
1869
- * map of all actions by actionId
1870
- * The key is the actionId of the action, and the value is the action configuration
1874
+ * Map of all actions that the automation may execute.
1875
+ * The key is the action ID, and the value is the action configuration.
1871
1876
  */
1872
1877
  actions?: Record<string, AutomationConfigurationAction>;
1873
1878
  }
@@ -1880,51 +1885,36 @@ declare enum TimeUnit$1 {
1880
1885
  MONTHS = "MONTHS"
1881
1886
  }
1882
1887
  interface Filter$1 {
1883
- /** the filter identifier */
1888
+ /** Filter ID. */
1884
1889
  _id?: string;
1885
- /** the field key from the schema, for example "formId" */
1890
+ /** Field key from the payload schema, for example "formId". */
1886
1891
  fieldKey?: string;
1887
- /** filter expression that evaluates to a boolean, for example - {{ contains(["guid1","guid2"];formId) }} */
1892
+ /** Filter expression that evaluates to a boolean. */
1888
1893
  filterExpression?: string;
1889
1894
  }
1890
1895
  interface FutureDateActivationOffset$1 {
1891
1896
  /**
1892
- * expression of offset before the trigger's time (in selected time unit), when the Automation should run
1893
- * only allows negative offset from the trigger's date (before the trigger), positive offset should be achieved via offset delay action
1894
- * preScheduledEventOffsetExpression: "{{5}}" + timeUnit: Days - to run the Automation 5 days before the trigger's date
1895
- * or, preScheduledEventOffsetExpression: "{{ someNumberField }}" + timeUnit: Minutes, to run the Automation someNumberField's value in minutes before the trigger's date
1897
+ * The offset value. The value is always taken as negative, so that the automation runs before the trigger date.
1898
+ * To create an offset that causes the automation to run after the trigger date, use a delay action.
1896
1899
  */
1897
1900
  preScheduledEventOffsetExpression?: string;
1898
- /** Time unit for the scheduled event offset */
1901
+ /** Time unit for the scheduled event offset. */
1899
1902
  scheduledEventOffsetTimeUnit?: TimeUnit$1;
1900
1903
  }
1901
1904
  interface RateLimit$1 {
1902
- /**
1903
- * Maximum number of activations expression. the expression will need to be parsed to Int on runtime
1904
- * for example - "{{ 1 }}" to set max activations to 1, or "{{ var(someNumberField) }}" to set max activations as the value of "someNumberField" from the payload
1905
- */
1905
+ /** Value expressing the maximum number of times the trigger can be activated. */
1906
1906
  maxActivationsExpression?: string;
1907
- /**
1908
- * Duration of the rate limiting window (in selected time unit) expression for rate limiter, if empty then no time limit. the expression will need to be parsed to Int on runtime
1909
- * for example - "{{ 10 }}" to set timeframe to be 10 minutes, or {{ var(someNumberField) }} to set timeframe in minutes as the value of "someNumberField" from the payload
1910
- */
1907
+ /** Duration of the rate limiting window in the selected time unit. If no value is set, the rate limit is permanent. */
1911
1908
  durationExpression?: string | null;
1912
- /** Time unit for the rate limit duration */
1909
+ /** Time unit for the rate limit duration. */
1913
1910
  durationTimeUnit?: TimeUnit$1;
1914
- /**
1915
- * Unique identifier of each activation by which rate limiter will count activations, expected return type is string
1916
- * for example - {{ var(contact.id) }} to set the unique identifier as the value of "contact.id" from the payload
1917
- * evaluated expression must be under 46 characters
1918
- */
1911
+ /** Unique identifier of each activation, by which rate limiter will count activations. */
1919
1912
  uniqueIdentifierExpression?: string | null;
1920
1913
  }
1921
1914
  interface ConditionExpressionGroup$1 {
1922
- /** expression group operator */
1915
+ /** Expression group operator. */
1923
1916
  operator?: Operator$1;
1924
- /**
1925
- * list of boolean expressions to be evaluated with the given operator
1926
- * examples - {{ true }}, {{ someBooleanField }}, {{ contains(["guid1...","guid2..."];formId) }}
1927
- */
1917
+ /** List of boolean expressions to be evaluated with the given operator. */
1928
1918
  booleanExpressions?: string[];
1929
1919
  }
1930
1920
  declare enum Operator$1 {
@@ -1947,86 +1937,60 @@ declare enum Type$1 {
1947
1937
  OUTPUT = "OUTPUT"
1948
1938
  }
1949
1939
  interface AppDefinedAction$1 {
1950
- /** Action app id */
1940
+ /** ID of the app that defines the action. */
1951
1941
  appId?: string;
1952
- /** Action key */
1942
+ /** Action key. */
1953
1943
  actionKey?: string;
1954
- /**
1955
- * Action input mapping, example:
1956
- * {
1957
- * "to": "{{ var(contact.email) }}",
1958
- * "subject": "Your registration to {{ var(eventName) }} is Confirmed",
1959
- * "body": "Hi {{ var(contact.name) }}, you are confirmed for the event"
1960
- * }
1961
- */
1944
+ /** Action input mapping. */
1962
1945
  inputMapping?: Record<string, any> | null;
1963
1946
  /**
1964
- * optional skip condition configuration - if this action should be skipped when the automation runs (following actions of a skipped action will still run)
1965
- * the action will be skipped if either of the expression groups evaluate to `true`
1966
- * the relation between the expression groups is an OR relation.
1947
+ * Array of conditions determining whether to skip the action in the automation flow.
1948
+ * The action will be skipped if any of the expression groups evaluate to `true`.
1949
+ * Actions following a skipped action will still run.
1967
1950
  */
1968
1951
  skipConditionOrExpressionGroups?: ConditionExpressionGroup$1[];
1969
- /** actions to run in parallel after this action finishes */
1952
+ /** List of IDs of actions to run in parallel once the action completes. */
1970
1953
  postActionIds?: string[];
1971
1954
  }
1972
1955
  interface ConditionAction$1 {
1973
- /**
1974
- * the condition evaluates to `true` if either of the expression groups evaluate to `true`
1975
- * the relation between the expression groups is an OR relation.
1976
- */
1956
+ /** The condition evaluates to `true` if either of the expression groups evaluate to `true`. */
1977
1957
  orExpressionGroups?: ConditionExpressionGroup$1[];
1978
- /** actions to run when the entire condition is evaluated to `true` */
1958
+ /** List of IDs of actions to run when the entire condition is evaluated to `true`. */
1979
1959
  truePostActionIds?: string[];
1980
- /** actions to run when the entire condition is evaluated to `false` */
1960
+ /** List of IDs of actions to run when the entire condition is evaluated to `false`. */
1981
1961
  falsePostActionIds?: string[];
1982
1962
  }
1983
1963
  interface DelayAction$1 {
1984
- /**
1985
- * optional - expression for amount of time to wait (in selected time unit) - from a specific date or from the time the action is executed
1986
- * offsetExpression: "{{5}}" + timeUnit: Days - to wait for 5 days from the time the delay was invoked
1987
- * or, offsetExpression: "{{5}}" + timeUnit: Days + dueDateEpochExpression: "{{someDateField}}" - to wait for 5 days from the time date in "someDateField" field in the payload
1988
- * or, offsetExpression: "{{ someNumberField }}" + timeUnit: Minutes, to wait for someNumberField's value in minutes
1989
- */
1964
+ /** Value expressing the amount of time to wait from a specific date or from the time the action is executed. */
1990
1965
  offsetExpression?: string | null;
1991
- /** Time unit for delay offset */
1966
+ /** Time unit for delay offset. */
1992
1967
  offsetTimeUnit?: TimeUnit$1;
1993
1968
  /**
1994
- * optional - expression of the due date to wait until, if an offset was defined, it will be calculated from this date
1995
- * number of milliseconds since the Unix Epoch (1 January, 1970 UTC)
1996
- * for example - "{{ 18238348023423 }}", or "{{ someEpochFromPayloadField }}" / "{{ contact.birthdate }}"
1969
+ * The action due date. If defined without an offset, the automation will wait until this date to execute the next step.
1970
+ * If an offset is defined, it's calculated from this date.
1971
+ * The date is expressed in the number of milliseconds since the Unix Epoch (1 January, 1970 UTC).
1997
1972
  */
1998
1973
  dueDateEpochExpression?: string | null;
1999
- /** actions to run in parallel after this action finishes */
1974
+ /** List of IDs of actions to run in parallel after the delay. */
2000
1975
  postActionIds?: string[];
2001
1976
  }
2002
1977
  interface RateLimitAction$1 {
2003
- /**
2004
- * Maximum number of activations expression. the expression will need to be parsed to Int on runtime
2005
- * for example - "{{ 1 }}" to set max activations to 1, or "{{ var(someNumberField) }}" to set max activations as the value of "someNumberField" from the payload
2006
- */
1978
+ /** The maximum number of activations allowed for the action. */
2007
1979
  maxActivationsExpression?: string;
2008
1980
  /**
2009
- * Duration of the rate limiting window (in selected time unit) expression for rate limiter, if empty then no time limit. the expression will need to be parsed to Int on runtime
2010
- * for example - "{{ 10 }}" to set timeframe to be 10 minutes, or {{ var(someNumberField) }} to set timeframe in minutes as the value of "someNumberField" from the payload
1981
+ * Duration of the rate limiting window, expressed in selected time unit.
1982
+ * If no value is set, then there is no time limit on the rate limiter.
2011
1983
  */
2012
1984
  rateLimitDurationExpression?: string | null;
2013
- /** Time unit for the rate limit duration */
1985
+ /** Time unit for the rate limit duration. */
2014
1986
  rateLimitDurationTimeUnit?: TimeUnit$1;
2015
- /**
2016
- * Unique identifier of each activation by which rate limiter will count activations, expected return type is string
2017
- * for example - {{ var(contact.id) }} to set the unique identifier as the value of "contact.id" from the payload
2018
- */
1987
+ /** Unique identifier of each activation by which rate limiter counts activations. */
2019
1988
  uniqueIdentifierExpression?: string | null;
2020
- /** actions to run in parallel after this action finishes */
1989
+ /** List of IDs of actions to run in parallel once the action completes. */
2021
1990
  postActionIds?: string[];
2022
1991
  }
2023
1992
  interface OutputAction$1 {
2024
- /**
2025
- * Output action output mapping
2026
- * {
2027
- * "to": "{{ var(contact.email) }}"
2028
- * }
2029
- */
1993
+ /** Output action output mapping. */
2030
1994
  outputMapping?: Record<string, any> | null;
2031
1995
  }
2032
1996
  declare enum AutomationConfigurationStatus {
@@ -2038,89 +2002,52 @@ declare enum AutomationConfigurationStatus {
2038
2002
  INACTIVE = "INACTIVE"
2039
2003
  }
2040
2004
  interface Trigger$1 {
2041
- /** Trigger Application id */
2005
+ /** ID of the app that defines the trigger. */
2042
2006
  appId?: string;
2043
- /** Trigger key */
2007
+ /** Trigger key. */
2044
2008
  triggerKey?: string;
2045
2009
  /**
2046
- * optional - list of filters on schema fields
2047
- * the relation between the filter expressions is an AND relation.
2048
- * all filter expressions must be evaluated to `true` for a given payload in order for the automation to be executed
2010
+ * List of filters on schema fields.
2011
+ * In order for the automation to run, all filter expressions must evaluate to `true` for a given payload.
2049
2012
  */
2050
2013
  filters?: Filter$1[];
2051
- /** optional - future date trigger activation offset */
2014
+ /** Defines the time offset between the trigger date and when the automation runs. */
2052
2015
  scheduledEventOffset?: FutureDateActivationOffset$1;
2053
- /** optional - rate limiting configuration */
2016
+ /** Limits the number of times an automation can be triggered. */
2054
2017
  rateLimit?: RateLimit$1;
2055
2018
  automationConfigMapping?: Record<string, any> | null;
2056
2019
  }
2057
2020
  interface AutomationConfigurationAction extends AutomationConfigurationActionInfoOneOf {
2058
- /** App defined Action (via RPC, HTTP or Velo) */
2021
+ /** Action defined by an app (via RPC, HTTP or Velo). */
2059
2022
  appDefinedInfo?: AppDefinedAction$1;
2060
- /** Condition action */
2023
+ /** Condition action. */
2061
2024
  conditionInfo?: ConditionAction$1;
2062
- /** Delay action */
2025
+ /** Delay action. */
2063
2026
  delayInfo?: DelayAction$1;
2064
- /** Rate limiting action */
2027
+ /** Rate-limiting action. */
2065
2028
  rateLimitInfo?: RateLimitAction$1;
2066
- /** Action id, if not specified, will be generated */
2029
+ /** Action ID. If not specified, a new ID is generated. */
2067
2030
  _id?: string | null;
2068
- /** Type of the action */
2031
+ /** Action type. */
2069
2032
  type?: Type$1;
2070
2033
  /**
2071
- * Human readable name for the action (may only contain alphanumeric characters and underscores) to differentiate from other actions of the same kind.
2072
- * if the action has output, the output will be available in the payload under this name, otherwise it will be concatenated to the payload as is
2073
- * without namespaces (or in case of exact same namespaces), if the user has multiple actions of the same kind (appId+actionKey), the output will be overwritten.
2074
- *
2075
- * for example, given:
2076
- * - if the action output looks like this - { "message": "hello" }
2077
- * - the namespace is "action_1"
2078
- * - the trigger payload looks like this - { "someField": "50", "someBoolean": true }
2079
- *
2080
- * the payload will look like this:
2081
- * {
2082
- * "someField": "50",
2083
- * "someBoolean": true,
2084
- * "action_1": {
2085
- * "message": "hello"
2086
- * }
2087
- * }
2088
- *
2089
- * given the following Automation configuration:
2090
- *
2091
- * (Trigger A)
2092
- * |
2093
- * (Action B) // namespace = "action_b_1"
2094
- * |
2095
- * (Action B) // namespace = "action_b_2"
2096
- * |
2097
- * (Action C)
2098
- *
2099
- *
2100
- * the available fields that Action C will be able to use to map to it's input fields will be:
2101
- * {
2102
- * "someField": "50",
2103
- * "someBoolean": true,
2104
- * "action_b_1": {
2105
- * "message": "hello"
2106
- * },
2107
- * "action_b_2": {
2108
- * "message": "hello"
2109
- * }
2110
- * }
2111
- * so the user can select which specific action output to use (action_b_1.message or action_b_2.message, in the case above)
2034
+ * Human-readable name to differentiate the action from other actions of the same type.
2035
+ * The name can contain only alphanumeric characters and underscores. If not provided, a namespace in the form `actionkey-indexOfAction` is
2036
+ * generated automatically.
2037
+ * If the action has output, the output will be available in the payload under this name.
2038
+ * If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
2112
2039
  */
2113
2040
  namespace?: string | null;
2114
2041
  }
2115
2042
  /** @oneof */
2116
2043
  interface AutomationConfigurationActionInfoOneOf {
2117
- /** App defined Action (via RPC, HTTP or Velo) */
2044
+ /** Action defined by an app (via RPC, HTTP or Velo). */
2118
2045
  appDefinedInfo?: AppDefinedAction$1;
2119
- /** Condition action */
2046
+ /** Condition action. */
2120
2047
  conditionInfo?: ConditionAction$1;
2121
- /** Delay action */
2048
+ /** Delay action. */
2122
2049
  delayInfo?: DelayAction$1;
2123
- /** Rate limiting action */
2050
+ /** Rate-limiting action. */
2124
2051
  rateLimitInfo?: RateLimitAction$1;
2125
2052
  }
2126
2053
  declare enum Origin$1 {
@@ -2136,18 +2063,22 @@ declare enum Origin$1 {
2136
2063
  DRAFT = "DRAFT"
2137
2064
  }
2138
2065
  interface ApplicationOrigin$1 {
2139
- /** identifier for the application */
2066
+ /** Application ID. */
2140
2067
  appId?: string;
2141
2068
  }
2142
2069
  interface PreinstalledOrigin$1 {
2143
- /** identifier for the application */
2070
+ /** ID of the app that defines the preinstalled automation. */
2144
2071
  appId?: string;
2145
- /** application component ID */
2072
+ /** Application component ID. */
2146
2073
  componentId?: string;
2147
- /** application component Version */
2074
+ /** Application component version. */
2148
2075
  componentVersion?: number;
2149
2076
  /**
2150
- * is this a user modified preinstalled automation (on a specific site) or the original one
2077
+ * Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
2078
+ * automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
2079
+ * preinstalled automation is used.
2080
+ *
2081
+ * Default: `false`
2151
2082
  * @readonly
2152
2083
  */
2153
2084
  override?: boolean | null;
@@ -2157,15 +2088,27 @@ interface DraftOrigin$1 {
2157
2088
  parentId?: string | null;
2158
2089
  }
2159
2090
  interface AutomationSettings$1 {
2160
- /** sets if the automation is hidden from users */
2091
+ /**
2092
+ * Whether the automation is hidden from users.
2093
+ * Default: `false`
2094
+ */
2161
2095
  hidden?: boolean;
2162
- /** sets if the automation is readonly */
2096
+ /**
2097
+ * Whether the automation is read-only.
2098
+ * Default: `false`
2099
+ */
2163
2100
  readonly?: boolean;
2164
- /** sets if deleting the automation is disabled */
2101
+ /**
2102
+ * Whether the option to delete the automation from the site is disabled.
2103
+ * Default: `false`
2104
+ */
2165
2105
  disableDelete?: boolean;
2166
- /** sets if changing the automation status is disabled (from active to inactive and vice versa) */
2106
+ /**
2107
+ * Whether the option to change the automation status (from active to inactive and vice versa) is disabled.
2108
+ * Default: `false`
2109
+ */
2167
2110
  disableStatusChange?: boolean;
2168
- /** Automation's action settings */
2111
+ /** Automation action settings. */
2169
2112
  actionSettings?: ActionSettings$1;
2170
2113
  }
2171
2114
  interface ActivationStatus {
@@ -3514,7 +3457,6 @@ declare namespace context$1 {
3514
3457
  export { type Action$1 as Action, type context$1_ActionActionOneOf as ActionActionOneOf, type context$1_ActionCompletedRequest as ActionCompletedRequest, type context$1_ActionData as ActionData, type ActionEvent$1 as ActionEvent, type ActionSettings$1 as ActionSettings, type context$1_ActionStatus as ActionStatus, type context$1_ActionsData as ActionsData, type context$1_Activation as Activation, type context$1_ActivationActionStatusChanged as ActivationActionStatusChanged, context$1_ActivationActionStatusChangedStatus as ActivationActionStatusChangedStatus, type context$1_ActivationActionStatusChangedStatusInfoOneOf as ActivationActionStatusChangedStatusInfoOneOf, type context$1_ActivationContinuedAfterSchedule as ActivationContinuedAfterSchedule, type context$1_ActivationRequest as ActivationRequest, type context$1_ActivationResumeAfterDelay as ActivationResumeAfterDelay, type context$1_ActivationScheduleCompleted as ActivationScheduleCompleted, type context$1_ActivationScheduleRequested as ActivationScheduleRequested, type context$1_ActivationSource as ActivationSource, type context$1_ActivationSourceOfOneOf as ActivationSourceOfOneOf, type context$1_ActivationStatus as ActivationStatus, type context$1_ActivationStatusChanged as ActivationStatusChanged, type context$1_ActivationStatusChangedEnvelope as ActivationStatusChangedEnvelope, type context$1_ActivationStatusChangedFailedStatusInfo as ActivationStatusChangedFailedStatusInfo, context$1_ActivationStatusChangedStatus as ActivationStatusChangedStatus, type context$1_ActivationStatusChangedStatusInfoOneOf as ActivationStatusChangedStatusInfoOneOf, type AppDefinedAction$1 as AppDefinedAction, type context$1_AppDefinedActionInfo as AppDefinedActionInfo, type ApplicationError$1 as ApplicationError, type ApplicationOrigin$1 as ApplicationOrigin, type context$1_AsyncAction as AsyncAction, type AuditInfo$1 as AuditInfo, type AuditInfoIdOneOf$1 as AuditInfoIdOneOf, type Automation$1 as Automation, type AutomationConfiguration$1 as AutomationConfiguration, type context$1_AutomationConfigurationAction as AutomationConfigurationAction, type context$1_AutomationConfigurationActionInfoOneOf as AutomationConfigurationActionInfoOneOf, context$1_AutomationConfigurationStatus as AutomationConfigurationStatus, type context$1_AutomationIdentifier as AutomationIdentifier, type context$1_AutomationInfo as AutomationInfo, type context$1_AutomationInfoOriginInfoOneOf as AutomationInfoOriginInfoOneOf, type AutomationOriginInfoOneOf$1 as AutomationOriginInfoOneOf, type AutomationSettings$1 as AutomationSettings, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BatchActivationRequest as BatchActivationRequest, context$1_BlockType as BlockType, type BulkActionMetadata$1 as BulkActionMetadata, type context$1_BulkCancelEventRequest as BulkCancelEventRequest, type context$1_BulkCancelEventResponse as BulkCancelEventResponse, type context$1_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type context$1_BulkCancelEventResult as BulkCancelEventResult, type context$1_BulkReportEventRequest as BulkReportEventRequest, type context$1_BulkReportEventResponse as BulkReportEventResponse, type context$1_BulkReportEventResponseNonNullableFields as BulkReportEventResponseNonNullableFields, type context$1_BulkReportEventResult as BulkReportEventResult, type context$1_CancelEventRequest as CancelEventRequest, type context$1_CancelEventResponse as CancelEventResponse, type context$1_CancelPendingScheduleRequest as CancelPendingScheduleRequest, type context$1_CancelPendingScheduleRequestByOneOf as CancelPendingScheduleRequestByOneOf, type context$1_CancelPendingScheduleResponse as CancelPendingScheduleResponse, context$1_CancellationReason as CancellationReason, type context$1_CancelledStatusInfo as CancelledStatusInfo, type context$1_Case as Case, type ConditionAction$1 as ConditionAction, type context$1_ConditionActionInfo as ConditionActionInfo, type context$1_ConditionBlock as ConditionBlock, type ConditionExpressionGroup$1 as ConditionExpressionGroup, type context$1_ConditionFilter as ConditionFilter, type context$1_Delay as Delay, type DelayAction$1 as DelayAction, type context$1_DelayActionInfo as DelayActionInfo, type context$1_DelayHelper as DelayHelper, type context$1_DelayOfOneOf as DelayOfOneOf, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type DraftOrigin$1 as DraftOrigin, type Empty$1 as Empty, type context$1_EndedStatusInfo as EndedStatusInfo, type context$1_EndedStatusInfoTypeInfoOneOf as EndedStatusInfoTypeInfoOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type context$1_EventInfo as EventInfo, type EventMetadata$1 as EventMetadata, type context$1_ExecuteFromActionRequest as ExecuteFromActionRequest, type context$1_ExecuteFromActionResponse as ExecuteFromActionResponse, type context$1_ExpressionEvaluationResult as ExpressionEvaluationResult, type context$1_FailedStatusInfo as FailedStatusInfo, type context$1_File as File, type Filter$1 as Filter, type FutureDateActivationOffset$1 as FutureDateActivationOffset, type context$1_Idempotency as Idempotency, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, context$1_IdentifierType as IdentifierType, type context$1_Identity as Identity, type context$1_IfFilter as IfFilter, type context$1_InitiatedStatusInfo as InitiatedStatusInfo, type context$1_InternalTarget as InternalTarget, type ItemMetadata$1 as ItemMetadata, type MessageEnvelope$1 as MessageEnvelope, Operator$1 as Operator, Origin$1 as Origin, type context$1_Output as Output, type OutputAction$1 as OutputAction, type context$1_PreinstalledIdentifier as PreinstalledIdentifier, type PreinstalledOrigin$1 as PreinstalledOrigin, type RateLimit$1 as RateLimit, type RateLimitAction$1 as RateLimitAction, type context$1_RateLimitActionInfo as RateLimitActionInfo, type context$1_RateLimiting as RateLimiting, type context$1_RefreshPayloadRequest as RefreshPayloadRequest, type context$1_RefreshPayloadResponse as RefreshPayloadResponse, type context$1_ReportDomainEventRequest as ReportDomainEventRequest, type context$1_ReportDomainEventResponse as ReportDomainEventResponse, type context$1_ReportEventOptions as ReportEventOptions, type context$1_ReportEventRequest as ReportEventRequest, type context$1_ReportEventResponse as ReportEventResponse, type context$1_ReportEventResponseNonNullableFields as ReportEventResponseNonNullableFields, type RestoreInfo$1 as RestoreInfo, type context$1_RunAutomationRequest as RunAutomationRequest, type context$1_RunAutomationResponse as RunAutomationResponse, type context$1_Runtime as Runtime, type context$1_Schedule as Schedule, type context$1_ScheduleRequest as ScheduleRequest, type context$1_ScheduleResponse as ScheduleResponse, context$1_ScheduleStatus as ScheduleStatus, type context$1_ScheduledAction as ScheduledAction, type context$1_ScheduledStatusInfo as ScheduledStatusInfo, type context$1_Scheduler as Scheduler, type context$1_Service as Service, type context$1_ServiceMapping as ServiceMapping, type context$1_SimpleDelay as SimpleDelay, type context$1_SpiAction as SpiAction, type context$1_StartedStatusInfo as StartedStatusInfo, type context$1_StartedStatusInfoAppDefinedActionInfo as StartedStatusInfoAppDefinedActionInfo, type context$1_StartedStatusInfoTypeInfoOneOf as StartedStatusInfoTypeInfoOneOf, Status$1 as Status, type context$1_SwitchFilter as SwitchFilter, type context$1_SystemHelper as SystemHelper, type context$1_SystemHelperHelperOneOf as SystemHelperHelperOneOf, context$1_Target as Target, context$1_TargetType as TargetType, TimeUnit$1 as TimeUnit, type Trigger$1 as Trigger, type context$1_TriggerInfo as TriggerInfo, Type$1 as Type, context$1_Units as Units, type context$1_UnprocessedTargetEvent as UnprocessedTargetEvent, type context$1_UpdatePendingSchedulesPayloadRequest as UpdatePendingSchedulesPayloadRequest, type context$1_UpdatePendingSchedulesPayloadResponse as UpdatePendingSchedulesPayloadResponse, type context$1_V1RunAutomationRequest as V1RunAutomationRequest, type context$1_V1RunAutomationRequestIdentifierOneOf as V1RunAutomationRequestIdentifierOneOf, type context$1_V1RunAutomationResponse as V1RunAutomationResponse, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicBulkCancelEventType as _publicBulkCancelEventType, type context$1__publicBulkReportEventType as _publicBulkReportEventType, type context$1__publicCancelEventType as _publicCancelEventType, type context$1__publicOnActivationStatusChangedType as _publicOnActivationStatusChangedType, type context$1__publicReportEventType as _publicReportEventType, context$1_bulkCancelEvent as bulkCancelEvent, context$1_bulkReportEvent as bulkReportEvent, context$1_cancelEvent as cancelEvent, context$1_onActivationStatusChanged as onActivationStatusChanged, onActivationStatusChanged$1 as publicOnActivationStatusChanged, context$1_reportEvent as reportEvent };
3515
3458
  }
3516
3459
 
3517
- /** Automation */
3518
3460
  interface Automation extends AutomationOriginInfoOneOf {
3519
3461
  /** Application info */
3520
3462
  applicationInfo?: ApplicationOrigin;
@@ -3528,43 +3470,43 @@ interface Automation extends AutomationOriginInfoOneOf {
3528
3470
  */
3529
3471
  _id?: string | null;
3530
3472
  /**
3531
- * Revision number, which increments by 1 each time the Automation is updated.
3473
+ * Revision number, which increments by 1 each time the automation is updated.
3532
3474
  * To prevent conflicting changes,
3533
- * the current revision must be passed when updating the Automation.
3475
+ * the current revision must be passed when updating the automation.
3534
3476
  *
3535
- * Ignored when creating an Automation.
3477
+ * Ignored when creating an automation.
3536
3478
  * @readonly
3537
3479
  */
3538
3480
  revision?: string | null;
3539
3481
  /**
3540
- * information about the creator of the automation
3482
+ * Information about the creator of the automation.
3541
3483
  * @readonly
3542
3484
  */
3543
3485
  createdBy?: AuditInfo;
3544
3486
  /**
3545
- * Date and time the Automation was created.
3487
+ * Date and time the automation was created.
3546
3488
  * @readonly
3547
3489
  */
3548
3490
  _createdDate?: Date;
3549
3491
  /**
3550
- * information about who updated of the automation
3492
+ * The entity that last updated the automation.
3551
3493
  * @readonly
3552
3494
  */
3553
3495
  updatedBy?: AuditInfo;
3554
3496
  /**
3555
- * Date and time the Automation was last updated.
3497
+ * Date and time the automation was last updated.
3556
3498
  * @readonly
3557
3499
  */
3558
3500
  _updatedDate?: Date;
3559
- /** Automation name */
3501
+ /** Automation name that is displayed on the user's site. */
3560
3502
  name?: string;
3561
- /** Automation description */
3503
+ /** Automation description. */
3562
3504
  description?: string | null;
3563
- /** Automation runtime configuration */
3505
+ /** Object that defines the automation's trigger, actions, and activation status. */
3564
3506
  configuration?: AutomationConfiguration;
3565
- /** Origin type */
3507
+ /** Defines how the automation was added to the site. */
3566
3508
  origin?: Origin;
3567
- /** Automation settings */
3509
+ /** Automation settings. */
3568
3510
  settings?: AutomationSettings;
3569
3511
  }
3570
3512
  /** @oneof */
@@ -3577,39 +3519,45 @@ interface AutomationOriginInfoOneOf {
3577
3519
  draftInfo?: DraftOrigin;
3578
3520
  }
3579
3521
  interface ActionSettings {
3580
- /** list of permanent action ids of actions that cannot be deleted (default - empty, all actions are deletable by default) */
3522
+ /**
3523
+ * List of actions that cannot be deleted.
3524
+ * Default: Empty. All actions are deletable by default.
3525
+ */
3581
3526
  permanentActionIds?: string[];
3582
- /** list of readonly action ids, (default - empty, all actions are editable by default) */
3527
+ /**
3528
+ * List of actions that cannot be edited.
3529
+ * Default: Empty. All actions are editable by default.
3530
+ */
3583
3531
  readonlyActionIds?: string[];
3584
- /** sets if adding a delay action is disabled for this automation */
3532
+ /** Whether the option to add a delay is disabled for the automation. */
3585
3533
  disableDelayAddition?: boolean;
3586
- /** sets if adding a condition action is disabled for this automation */
3534
+ /** Whether the option to add a condition is disabled for the automation. */
3587
3535
  disableConditionAddition?: boolean;
3588
3536
  }
3589
3537
  interface AuditInfo extends AuditInfoIdOneOf {
3590
- /** user identifier */
3538
+ /** User ID. */
3591
3539
  userId?: string;
3592
- /** application identifier */
3540
+ /** Application ID. */
3593
3541
  appId?: string;
3594
3542
  }
3595
3543
  /** @oneof */
3596
3544
  interface AuditInfoIdOneOf {
3597
- /** user identifier */
3545
+ /** User ID. */
3598
3546
  userId?: string;
3599
- /** application identifier */
3547
+ /** Application ID. */
3600
3548
  appId?: string;
3601
3549
  }
3602
3550
  /** Automation runtime configuration */
3603
3551
  interface AutomationConfiguration {
3604
- /** Automation's Status */
3552
+ /** Status of the automation on the site. */
3605
3553
  status?: Status;
3606
- /** Trigger configuration */
3554
+ /** Automation trigger configuration. */
3607
3555
  trigger?: Trigger;
3608
- /** actions that run in parallel after the trigger */
3556
+ /** List of IDs of root actions. Root actions are the first actions to run after the trigger. The actions in the list run in parallel. */
3609
3557
  rootActionIds?: string[];
3610
3558
  /**
3611
- * map of all actions by actionId
3612
- * The key is the actionId of the action, and the value is the action configuration
3559
+ * Map of all actions that the automation may execute.
3560
+ * The key is the action ID, and the value is the action configuration.
3613
3561
  */
3614
3562
  actions?: Record<string, Action>;
3615
3563
  }
@@ -3622,51 +3570,36 @@ declare enum TimeUnit {
3622
3570
  MONTHS = "MONTHS"
3623
3571
  }
3624
3572
  interface Filter {
3625
- /** the filter identifier */
3573
+ /** Filter ID. */
3626
3574
  _id?: string;
3627
- /** the field key from the schema, for example "formId" */
3575
+ /** Field key from the payload schema, for example "formId". */
3628
3576
  fieldKey?: string;
3629
- /** filter expression that evaluates to a boolean, for example - {{ contains(["guid1","guid2"];formId) }} */
3577
+ /** Filter expression that evaluates to a boolean. */
3630
3578
  filterExpression?: string;
3631
3579
  }
3632
3580
  interface FutureDateActivationOffset {
3633
3581
  /**
3634
- * expression of offset before the trigger's time (in selected time unit), when the Automation should run
3635
- * only allows negative offset from the trigger's date (before the trigger), positive offset should be achieved via offset delay action
3636
- * preScheduledEventOffsetExpression: "{{5}}" + timeUnit: Days - to run the Automation 5 days before the trigger's date
3637
- * or, preScheduledEventOffsetExpression: "{{ someNumberField }}" + timeUnit: Minutes, to run the Automation someNumberField's value in minutes before the trigger's date
3582
+ * The offset value. The value is always taken as negative, so that the automation runs before the trigger date.
3583
+ * To create an offset that causes the automation to run after the trigger date, use a delay action.
3638
3584
  */
3639
3585
  preScheduledEventOffsetExpression?: string;
3640
- /** Time unit for the scheduled event offset */
3586
+ /** Time unit for the scheduled event offset. */
3641
3587
  scheduledEventOffsetTimeUnit?: TimeUnit;
3642
3588
  }
3643
3589
  interface RateLimit {
3644
- /**
3645
- * Maximum number of activations expression. the expression will need to be parsed to Int on runtime
3646
- * for example - "{{ 1 }}" to set max activations to 1, or "{{ var(someNumberField) }}" to set max activations as the value of "someNumberField" from the payload
3647
- */
3590
+ /** Value expressing the maximum number of times the trigger can be activated. */
3648
3591
  maxActivationsExpression?: string;
3649
- /**
3650
- * Duration of the rate limiting window (in selected time unit) expression for rate limiter, if empty then no time limit. the expression will need to be parsed to Int on runtime
3651
- * for example - "{{ 10 }}" to set timeframe to be 10 minutes, or {{ var(someNumberField) }} to set timeframe in minutes as the value of "someNumberField" from the payload
3652
- */
3592
+ /** Duration of the rate limiting window in the selected time unit. If no value is set, the rate limit is permanent. */
3653
3593
  durationExpression?: string | null;
3654
- /** Time unit for the rate limit duration */
3594
+ /** Time unit for the rate limit duration. */
3655
3595
  durationTimeUnit?: TimeUnit;
3656
- /**
3657
- * Unique identifier of each activation by which rate limiter will count activations, expected return type is string
3658
- * for example - {{ var(contact.id) }} to set the unique identifier as the value of "contact.id" from the payload
3659
- * evaluated expression must be under 46 characters
3660
- */
3596
+ /** Unique identifier of each activation, by which rate limiter will count activations. */
3661
3597
  uniqueIdentifierExpression?: string | null;
3662
3598
  }
3663
3599
  interface ConditionExpressionGroup {
3664
- /** expression group operator */
3600
+ /** Expression group operator. */
3665
3601
  operator?: Operator;
3666
- /**
3667
- * list of boolean expressions to be evaluated with the given operator
3668
- * examples - {{ true }}, {{ someBooleanField }}, {{ contains(["guid1...","guid2..."];formId) }}
3669
- */
3602
+ /** List of boolean expressions to be evaluated with the given operator. */
3670
3603
  booleanExpressions?: string[];
3671
3604
  }
3672
3605
  declare enum Operator {
@@ -3689,86 +3622,60 @@ declare enum Type {
3689
3622
  OUTPUT = "OUTPUT"
3690
3623
  }
3691
3624
  interface AppDefinedAction {
3692
- /** Action app id */
3625
+ /** ID of the app that defines the action. */
3693
3626
  appId?: string;
3694
- /** Action key */
3627
+ /** Action key. */
3695
3628
  actionKey?: string;
3696
- /**
3697
- * Action input mapping, example:
3698
- * {
3699
- * "to": "{{ var(contact.email) }}",
3700
- * "subject": "Your registration to {{ var(eventName) }} is Confirmed",
3701
- * "body": "Hi {{ var(contact.name) }}, you are confirmed for the event"
3702
- * }
3703
- */
3629
+ /** Action input mapping. */
3704
3630
  inputMapping?: Record<string, any> | null;
3705
3631
  /**
3706
- * optional skip condition configuration - if this action should be skipped when the automation runs (following actions of a skipped action will still run)
3707
- * the action will be skipped if either of the expression groups evaluate to `true`
3708
- * the relation between the expression groups is an OR relation.
3632
+ * Array of conditions determining whether to skip the action in the automation flow.
3633
+ * The action will be skipped if any of the expression groups evaluate to `true`.
3634
+ * Actions following a skipped action will still run.
3709
3635
  */
3710
3636
  skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
3711
- /** actions to run in parallel after this action finishes */
3637
+ /** List of IDs of actions to run in parallel once the action completes. */
3712
3638
  postActionIds?: string[];
3713
3639
  }
3714
3640
  interface ConditionAction {
3715
- /**
3716
- * the condition evaluates to `true` if either of the expression groups evaluate to `true`
3717
- * the relation between the expression groups is an OR relation.
3718
- */
3641
+ /** The condition evaluates to `true` if either of the expression groups evaluate to `true`. */
3719
3642
  orExpressionGroups?: ConditionExpressionGroup[];
3720
- /** actions to run when the entire condition is evaluated to `true` */
3643
+ /** List of IDs of actions to run when the entire condition is evaluated to `true`. */
3721
3644
  truePostActionIds?: string[];
3722
- /** actions to run when the entire condition is evaluated to `false` */
3645
+ /** List of IDs of actions to run when the entire condition is evaluated to `false`. */
3723
3646
  falsePostActionIds?: string[];
3724
3647
  }
3725
3648
  interface DelayAction {
3726
- /**
3727
- * optional - expression for amount of time to wait (in selected time unit) - from a specific date or from the time the action is executed
3728
- * offsetExpression: "{{5}}" + timeUnit: Days - to wait for 5 days from the time the delay was invoked
3729
- * or, offsetExpression: "{{5}}" + timeUnit: Days + dueDateEpochExpression: "{{someDateField}}" - to wait for 5 days from the time date in "someDateField" field in the payload
3730
- * or, offsetExpression: "{{ someNumberField }}" + timeUnit: Minutes, to wait for someNumberField's value in minutes
3731
- */
3649
+ /** Value expressing the amount of time to wait from a specific date or from the time the action is executed. */
3732
3650
  offsetExpression?: string | null;
3733
- /** Time unit for delay offset */
3651
+ /** Time unit for delay offset. */
3734
3652
  offsetTimeUnit?: TimeUnit;
3735
3653
  /**
3736
- * optional - expression of the due date to wait until, if an offset was defined, it will be calculated from this date
3737
- * number of milliseconds since the Unix Epoch (1 January, 1970 UTC)
3738
- * for example - "{{ 18238348023423 }}", or "{{ someEpochFromPayloadField }}" / "{{ contact.birthdate }}"
3654
+ * The action due date. If defined without an offset, the automation will wait until this date to execute the next step.
3655
+ * If an offset is defined, it's calculated from this date.
3656
+ * The date is expressed in the number of milliseconds since the Unix Epoch (1 January, 1970 UTC).
3739
3657
  */
3740
3658
  dueDateEpochExpression?: string | null;
3741
- /** actions to run in parallel after this action finishes */
3659
+ /** List of IDs of actions to run in parallel after the delay. */
3742
3660
  postActionIds?: string[];
3743
3661
  }
3744
3662
  interface RateLimitAction {
3745
- /**
3746
- * Maximum number of activations expression. the expression will need to be parsed to Int on runtime
3747
- * for example - "{{ 1 }}" to set max activations to 1, or "{{ var(someNumberField) }}" to set max activations as the value of "someNumberField" from the payload
3748
- */
3663
+ /** The maximum number of activations allowed for the action. */
3749
3664
  maxActivationsExpression?: string;
3750
3665
  /**
3751
- * Duration of the rate limiting window (in selected time unit) expression for rate limiter, if empty then no time limit. the expression will need to be parsed to Int on runtime
3752
- * for example - "{{ 10 }}" to set timeframe to be 10 minutes, or {{ var(someNumberField) }} to set timeframe in minutes as the value of "someNumberField" from the payload
3666
+ * Duration of the rate limiting window, expressed in selected time unit.
3667
+ * If no value is set, then there is no time limit on the rate limiter.
3753
3668
  */
3754
3669
  rateLimitDurationExpression?: string | null;
3755
- /** Time unit for the rate limit duration */
3670
+ /** Time unit for the rate limit duration. */
3756
3671
  rateLimitDurationTimeUnit?: TimeUnit;
3757
- /**
3758
- * Unique identifier of each activation by which rate limiter will count activations, expected return type is string
3759
- * for example - {{ var(contact.id) }} to set the unique identifier as the value of "contact.id" from the payload
3760
- */
3672
+ /** Unique identifier of each activation by which rate limiter counts activations. */
3761
3673
  uniqueIdentifierExpression?: string | null;
3762
- /** actions to run in parallel after this action finishes */
3674
+ /** List of IDs of actions to run in parallel once the action completes. */
3763
3675
  postActionIds?: string[];
3764
3676
  }
3765
3677
  interface OutputAction {
3766
- /**
3767
- * Output action output mapping
3768
- * {
3769
- * "to": "{{ var(contact.email) }}"
3770
- * }
3771
- */
3678
+ /** Output action output mapping. */
3772
3679
  outputMapping?: Record<string, any> | null;
3773
3680
  }
3774
3681
  declare enum Status {
@@ -3780,89 +3687,52 @@ declare enum Status {
3780
3687
  INACTIVE = "INACTIVE"
3781
3688
  }
3782
3689
  interface Trigger {
3783
- /** Trigger Application id */
3690
+ /** ID of the app that defines the trigger. */
3784
3691
  appId?: string;
3785
- /** Trigger key */
3692
+ /** Trigger key. */
3786
3693
  triggerKey?: string;
3787
3694
  /**
3788
- * optional - list of filters on schema fields
3789
- * the relation between the filter expressions is an AND relation.
3790
- * all filter expressions must be evaluated to `true` for a given payload in order for the automation to be executed
3695
+ * List of filters on schema fields.
3696
+ * In order for the automation to run, all filter expressions must evaluate to `true` for a given payload.
3791
3697
  */
3792
3698
  filters?: Filter[];
3793
- /** optional - future date trigger activation offset */
3699
+ /** Defines the time offset between the trigger date and when the automation runs. */
3794
3700
  scheduledEventOffset?: FutureDateActivationOffset;
3795
- /** optional - rate limiting configuration */
3701
+ /** Limits the number of times an automation can be triggered. */
3796
3702
  rateLimit?: RateLimit;
3797
3703
  automationConfigMapping?: Record<string, any> | null;
3798
3704
  }
3799
3705
  interface Action extends ActionInfoOneOf {
3800
- /** App defined Action (via RPC, HTTP or Velo) */
3706
+ /** Action defined by an app (via RPC, HTTP or Velo). */
3801
3707
  appDefinedInfo?: AppDefinedAction;
3802
- /** Condition action */
3708
+ /** Condition action. */
3803
3709
  conditionInfo?: ConditionAction;
3804
- /** Delay action */
3710
+ /** Delay action. */
3805
3711
  delayInfo?: DelayAction;
3806
- /** Rate limiting action */
3712
+ /** Rate-limiting action. */
3807
3713
  rateLimitInfo?: RateLimitAction;
3808
- /** Action id, if not specified, will be generated */
3714
+ /** Action ID. If not specified, a new ID is generated. */
3809
3715
  _id?: string | null;
3810
- /** Type of the action */
3716
+ /** Action type. */
3811
3717
  type?: Type;
3812
3718
  /**
3813
- * Human readable name for the action (may only contain alphanumeric characters and underscores) to differentiate from other actions of the same kind.
3814
- * if the action has output, the output will be available in the payload under this name, otherwise it will be concatenated to the payload as is
3815
- * without namespaces (or in case of exact same namespaces), if the user has multiple actions of the same kind (appId+actionKey), the output will be overwritten.
3816
- *
3817
- * for example, given:
3818
- * - if the action output looks like this - { "message": "hello" }
3819
- * - the namespace is "action_1"
3820
- * - the trigger payload looks like this - { "someField": "50", "someBoolean": true }
3821
- *
3822
- * the payload will look like this:
3823
- * {
3824
- * "someField": "50",
3825
- * "someBoolean": true,
3826
- * "action_1": {
3827
- * "message": "hello"
3828
- * }
3829
- * }
3830
- *
3831
- * given the following Automation configuration:
3832
- *
3833
- * (Trigger A)
3834
- * |
3835
- * (Action B) // namespace = "action_b_1"
3836
- * |
3837
- * (Action B) // namespace = "action_b_2"
3838
- * |
3839
- * (Action C)
3840
- *
3841
- *
3842
- * the available fields that Action C will be able to use to map to it's input fields will be:
3843
- * {
3844
- * "someField": "50",
3845
- * "someBoolean": true,
3846
- * "action_b_1": {
3847
- * "message": "hello"
3848
- * },
3849
- * "action_b_2": {
3850
- * "message": "hello"
3851
- * }
3852
- * }
3853
- * so the user can select which specific action output to use (action_b_1.message or action_b_2.message, in the case above)
3719
+ * Human-readable name to differentiate the action from other actions of the same type.
3720
+ * The name can contain only alphanumeric characters and underscores. If not provided, a namespace in the form `actionkey-indexOfAction` is
3721
+ * generated automatically.
3722
+ * If the action has output, the output will be available in the payload under this name.
3723
+ * If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
3854
3724
  */
3855
3725
  namespace?: string | null;
3856
3726
  }
3857
3727
  /** @oneof */
3858
3728
  interface ActionInfoOneOf {
3859
- /** App defined Action (via RPC, HTTP or Velo) */
3729
+ /** Action defined by an app (via RPC, HTTP or Velo). */
3860
3730
  appDefinedInfo?: AppDefinedAction;
3861
- /** Condition action */
3731
+ /** Condition action. */
3862
3732
  conditionInfo?: ConditionAction;
3863
- /** Delay action */
3733
+ /** Delay action. */
3864
3734
  delayInfo?: DelayAction;
3865
- /** Rate limiting action */
3735
+ /** Rate-limiting action. */
3866
3736
  rateLimitInfo?: RateLimitAction;
3867
3737
  }
3868
3738
  declare enum Origin {
@@ -3878,18 +3748,22 @@ declare enum Origin {
3878
3748
  DRAFT = "DRAFT"
3879
3749
  }
3880
3750
  interface ApplicationOrigin {
3881
- /** identifier for the application */
3751
+ /** Application ID. */
3882
3752
  appId?: string;
3883
3753
  }
3884
3754
  interface PreinstalledOrigin {
3885
- /** identifier for the application */
3755
+ /** ID of the app that defines the preinstalled automation. */
3886
3756
  appId?: string;
3887
- /** application component ID */
3757
+ /** Application component ID. */
3888
3758
  componentId?: string;
3889
- /** application component Version */
3759
+ /** Application component version. */
3890
3760
  componentVersion?: number;
3891
3761
  /**
3892
- * is this a user modified preinstalled automation (on a specific site) or the original one
3762
+ * Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
3763
+ * automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
3764
+ * preinstalled automation is used.
3765
+ *
3766
+ * Default: `false`
3893
3767
  * @readonly
3894
3768
  */
3895
3769
  override?: boolean | null;
@@ -3899,25 +3773,37 @@ interface DraftOrigin {
3899
3773
  parentId?: string | null;
3900
3774
  }
3901
3775
  interface AutomationSettings {
3902
- /** sets if the automation is hidden from users */
3776
+ /**
3777
+ * Whether the automation is hidden from users.
3778
+ * Default: `false`
3779
+ */
3903
3780
  hidden?: boolean;
3904
- /** sets if the automation is readonly */
3781
+ /**
3782
+ * Whether the automation is read-only.
3783
+ * Default: `false`
3784
+ */
3905
3785
  readonly?: boolean;
3906
- /** sets if deleting the automation is disabled */
3786
+ /**
3787
+ * Whether the option to delete the automation from the site is disabled.
3788
+ * Default: `false`
3789
+ */
3907
3790
  disableDelete?: boolean;
3908
- /** sets if changing the automation status is disabled (from active to inactive and vice versa) */
3791
+ /**
3792
+ * Whether the option to change the automation status (from active to inactive and vice versa) is disabled.
3793
+ * Default: `false`
3794
+ */
3909
3795
  disableStatusChange?: boolean;
3910
- /** Automation's action settings */
3796
+ /** Automation action settings. */
3911
3797
  actionSettings?: ActionSettings;
3912
3798
  }
3913
3799
  interface GetAutomationRevisionRequest {
3914
- /** Automation ID */
3800
+ /** Automation ID. */
3915
3801
  automationId?: string;
3916
- /** Automation revision */
3802
+ /** Automation revision. */
3917
3803
  revision?: string | null;
3918
3804
  }
3919
3805
  interface GetAutomationRevisionResponse {
3920
- /** Automation with the relevant revision */
3806
+ /** Automation with the relevant revision. */
3921
3807
  automation?: Automation;
3922
3808
  }
3923
3809
  interface CreateAutomationRequest {
@@ -3925,25 +3811,25 @@ interface CreateAutomationRequest {
3925
3811
  automation: Automation;
3926
3812
  }
3927
3813
  interface CreateAutomationResponse {
3928
- /** The created Automation. */
3814
+ /** The created automation. */
3929
3815
  automation?: Automation;
3930
3816
  }
3931
3817
  interface GetAutomationRequest {
3932
- /** ID of the Automation to retrieve. */
3818
+ /** Automation ID. */
3933
3819
  automationId: string;
3934
- /** Automation Origin */
3820
+ /** Automation origin. */
3935
3821
  origin?: Origin;
3936
3822
  }
3937
3823
  interface GetAutomationResponse {
3938
- /** The requested Automation. */
3824
+ /** The requested automation. */
3939
3825
  automation?: Automation;
3940
3826
  }
3941
3827
  interface UpdateAutomationRequest {
3942
- /** Automation to be updated, may be partial. */
3828
+ /** Automation to update. */
3943
3829
  automation: Automation;
3944
3830
  }
3945
3831
  interface UpdateAutomationResponse {
3946
- /** Updated Automation. */
3832
+ /** Updated automation. */
3947
3833
  automation?: Automation;
3948
3834
  }
3949
3835
  interface UpdatedWithPreviousEntity {
@@ -3953,7 +3839,7 @@ interface UpdatedWithPreviousEntity {
3953
3839
  currentAutomation?: Automation;
3954
3840
  }
3955
3841
  interface DeleteAutomationRequest {
3956
- /** Id of the Automation to delete. */
3842
+ /** Automation ID. */
3957
3843
  automationId: string;
3958
3844
  }
3959
3845
  interface DeleteAutomationResponse {
@@ -3963,17 +3849,17 @@ interface DeletedWithEntity {
3963
3849
  automation?: Automation;
3964
3850
  }
3965
3851
  interface BulkDeleteAutomationsRequest {
3966
- /** Automation IDs to delete */
3852
+ /** Automation IDs to delete. */
3967
3853
  automationIds: string[];
3968
3854
  }
3969
3855
  interface BulkDeleteAutomationsResponse {
3970
- /** bulk delete results */
3856
+ /** Deleted automations results. */
3971
3857
  results?: BulkDeleteResult[];
3972
- /** bulk delete metadata */
3858
+ /** Metadata for the API call. */
3973
3859
  bulkActionMetadata?: BulkActionMetadata;
3974
3860
  }
3975
3861
  interface BulkDeleteResult {
3976
- /** bulk delete item metadata */
3862
+ /** Metadata for the item deletion. */
3977
3863
  itemMetadata?: ItemMetadata;
3978
3864
  }
3979
3865
  interface ItemMetadata {
@@ -4003,17 +3889,20 @@ interface BulkActionMetadata {
4003
3889
  undetailedFailures?: number;
4004
3890
  }
4005
3891
  interface CreatePreinstalledAutomationRequest {
4006
- /** Automation to be created. */
3892
+ /** Preinstalled automation to be created. */
4007
3893
  automation?: Automation;
4008
3894
  }
4009
3895
  interface CreatePreinstalledAutomationResponse {
4010
- /** The created Automation. */
3896
+ /** The created preinstalled automation. */
4011
3897
  automation?: Automation;
4012
3898
  }
4013
3899
  interface DeletePreinstalledAutomationRequest {
4014
- /** Id of the Automation to delete. */
3900
+ /** Automation ID. */
4015
3901
  automationId?: string;
4016
- /** Should ignore override check (default: false) */
3902
+ /**
3903
+ * Whether to ignore the override check.
3904
+ * Default: `false`
3905
+ */
4017
3906
  ignoreOverrideCheck?: boolean;
4018
3907
  }
4019
3908
  interface DeletePreinstalledAutomationResponse {
@@ -4067,9 +3956,9 @@ interface CursorPaging {
4067
3956
  cursor?: string | null;
4068
3957
  }
4069
3958
  interface QueryAutomationsResponse {
4070
- /** List of Automations. */
3959
+ /** List of automations. */
4071
3960
  automations?: Automation[];
4072
- /** Paging metadata */
3961
+ /** Paging metadata. */
4073
3962
  pagingMetadata?: CursorPagingMetadata;
4074
3963
  }
4075
3964
  interface CursorPagingMetadata {
@@ -4164,13 +4053,13 @@ interface ActionEvent {
4164
4053
  interface Empty {
4165
4054
  }
4166
4055
  interface CopyAutomationRequest {
4167
- /** ID of the Automation to copy */
4056
+ /** Automation ID. */
4168
4057
  automationId?: string;
4169
- /** Automation Origin */
4058
+ /** Automation origin. */
4170
4059
  origin?: Origin;
4171
4060
  }
4172
4061
  interface CopyAutomationResponse {
4173
- /** New automation */
4062
+ /** Automation copy. */
4174
4063
  automation?: Automation;
4175
4064
  }
4176
4065
  interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
@@ -4445,42 +4334,47 @@ interface StudioAssigned {
4445
4334
  interface StudioUnassigned {
4446
4335
  }
4447
4336
  interface ValidateAutomationRequest {
4448
- /** Automation to validate */
4337
+ /** Automation to validate. */
4449
4338
  automation: Automation;
4450
- /** optional validation settings */
4339
+ /** Settings to customize the validation. */
4451
4340
  validationSettings?: ValidationSettings;
4452
4341
  }
4453
4342
  interface ValidationSettings {
4454
4343
  /**
4455
- * specific actions to include in the validation
4456
- * if non empty - only the specific actions would be validated (trigger excluded)
4457
- * if empty, the entire automation will be validated (trigger included)
4344
+ * List of specific actions to validate. Only the actions in the list are validated. In this case, triggers are not validated.
4345
+ *
4346
+ * If the list is empty, the entire automation is validated, including triggers.
4347
+ *
4348
+ * Default: Empty.
4458
4349
  */
4459
4350
  actionIds?: string[];
4460
- /** whether or not to skip provider validations (default: false) */
4351
+ /**
4352
+ * Whether to skip provider validations.
4353
+ * Default: `false`
4354
+ */
4461
4355
  skipProviderValidations?: boolean;
4462
4356
  }
4463
4357
  interface ValidateAutomationResponse {
4464
- /** is the Automation valid */
4358
+ /** Whether the automation is valid. */
4465
4359
  valid?: boolean;
4466
- /** list of validation errors for the automation Trigger */
4360
+ /** List of validation errors for the automation trigger. */
4467
4361
  triggerValidationErrors?: TriggerValidationError[];
4468
- /** list of validation information for the automation Actions */
4362
+ /** List of validation information for the automation actions. */
4469
4363
  actionValidationInfo?: ActionValidationInfo[];
4470
4364
  }
4471
4365
  interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
4472
- /** trigger configuration error */
4366
+ /** Trigger configuration error. */
4473
4367
  configurationError?: TriggerConfigurationError;
4474
- /** provider configuration error */
4368
+ /** Provider configuration error. */
4475
4369
  providerConfigurationError?: ProviderConfigurationError;
4476
- /** validation error type */
4370
+ /** Validation error type. */
4477
4371
  errorType?: TriggerValidationErrorValidationErrorType;
4478
4372
  }
4479
4373
  /** @oneof */
4480
4374
  interface TriggerValidationErrorErrorOneOf {
4481
- /** trigger configuration error */
4375
+ /** Trigger configuration error. */
4482
4376
  configurationError?: TriggerConfigurationError;
4483
- /** provider configuration error */
4377
+ /** Provider configuration error. */
4484
4378
  providerConfigurationError?: ProviderConfigurationError;
4485
4379
  }
4486
4380
  declare enum TriggerValidationErrorValidationErrorType {
@@ -4489,9 +4383,9 @@ declare enum TriggerValidationErrorValidationErrorType {
4489
4383
  PROVIDER_ERROR = "PROVIDER_ERROR"
4490
4384
  }
4491
4385
  interface TriggerConfigurationError {
4492
- /** trigger error type */
4386
+ /** Trigger error type. */
4493
4387
  errorType?: TriggerErrorType;
4494
- /** optional - related filter field key */
4388
+ /** Related filter field key. */
4495
4389
  filterFieldKey?: string | null;
4496
4390
  }
4497
4391
  declare enum TriggerErrorType {
@@ -4517,28 +4411,28 @@ interface ProviderConfigurationError {
4517
4411
  title?: string;
4518
4412
  }
4519
4413
  interface ActionValidationInfo {
4520
- /** the id of the action in the automation */
4414
+ /** Action ID. */
4521
4415
  actionId?: string | null;
4522
- /** the id of the app defining the action */
4416
+ /** ID of the app that defines the action. */
4523
4417
  appId?: string;
4524
- /** human readable identifier of the action per app */
4418
+ /** Human-readable action identifier. */
4525
4419
  actionKey?: string;
4526
- /** list of action validation errors */
4420
+ /** List of action validation errors. */
4527
4421
  validationErrors?: ActionValidationError[];
4528
4422
  }
4529
4423
  interface ActionValidationError extends ActionValidationErrorErrorOneOf {
4530
- /** action configuration error */
4424
+ /** Action configuration error. */
4531
4425
  configurationError?: ActionConfigurationError;
4532
- /** provider configuration error */
4426
+ /** Provider configuration error. */
4533
4427
  providerConfigurationError?: ProviderConfigurationError;
4534
- /** validation error type */
4428
+ /** Validation error type. */
4535
4429
  errorType?: ValidationErrorType;
4536
4430
  }
4537
4431
  /** @oneof */
4538
4432
  interface ActionValidationErrorErrorOneOf {
4539
- /** action configuration error */
4433
+ /** Action configuration error. */
4540
4434
  configurationError?: ActionConfigurationError;
4541
- /** provider configuration error */
4435
+ /** Provider configuration error. */
4542
4436
  providerConfigurationError?: ProviderConfigurationError;
4543
4437
  }
4544
4438
  declare enum ValidationErrorType {
@@ -4547,9 +4441,9 @@ declare enum ValidationErrorType {
4547
4441
  PROVIDER_ERROR = "PROVIDER_ERROR"
4548
4442
  }
4549
4443
  interface ActionConfigurationError {
4550
- /** action error type */
4444
+ /** Action error type. */
4551
4445
  errorType?: ActionErrorType;
4552
- /** optional - related field key */
4446
+ /** Related field key. */
4553
4447
  fieldKey?: string | null;
4554
4448
  }
4555
4449
  declare enum ActionErrorType {
@@ -4572,21 +4466,21 @@ interface GetAutomationActionSchemaRequest {
4572
4466
  actionId?: string;
4573
4467
  }
4574
4468
  interface GetAutomationActionSchemaResponse {
4575
- /** The accumulated payload schema for action */
4469
+ /** The accumulated payload schema for an action. */
4576
4470
  schema?: Record<string, any> | null;
4577
4471
  }
4578
4472
  interface GetActionsQuotaInfoRequest {
4579
4473
  }
4580
4474
  interface GetActionsQuotaInfoResponse {
4581
- /** list of action quota information */
4475
+ /** List of action quotas. */
4582
4476
  actionProviderQuotaInfo?: ActionProviderQuotaInfo[];
4583
4477
  }
4584
4478
  interface ActionProviderQuotaInfo {
4585
- /** action app id */
4479
+ /** ID of the app that defines the action. */
4586
4480
  appId?: string;
4587
- /** the action key */
4481
+ /** Action key. */
4588
4482
  actionKey?: string;
4589
- /** the action quota information */
4483
+ /** Action quota information. */
4590
4484
  actionQuotaInfo?: ActionQuotaInfo;
4591
4485
  }
4592
4486
  interface ActionQuotaInfo {
@@ -4888,7 +4782,7 @@ interface AutomationDeletedWithEntityEnvelope {
4888
4782
  metadata: EventMetadata;
4889
4783
  }
4890
4784
  interface GetAutomationOptions {
4891
- /** Automation Origin */
4785
+ /** Automation origin. */
4892
4786
  origin?: Origin;
4893
4787
  }
4894
4788
  interface UpdateAutomation {
@@ -4904,43 +4798,43 @@ interface UpdateAutomation {
4904
4798
  */
4905
4799
  _id?: string | null;
4906
4800
  /**
4907
- * Revision number, which increments by 1 each time the Automation is updated.
4801
+ * Revision number, which increments by 1 each time the automation is updated.
4908
4802
  * To prevent conflicting changes,
4909
- * the current revision must be passed when updating the Automation.
4803
+ * the current revision must be passed when updating the automation.
4910
4804
  *
4911
- * Ignored when creating an Automation.
4805
+ * Ignored when creating an automation.
4912
4806
  * @readonly
4913
4807
  */
4914
4808
  revision?: string | null;
4915
4809
  /**
4916
- * information about the creator of the automation
4810
+ * Information about the creator of the automation.
4917
4811
  * @readonly
4918
4812
  */
4919
4813
  createdBy?: AuditInfo;
4920
4814
  /**
4921
- * Date and time the Automation was created.
4815
+ * Date and time the automation was created.
4922
4816
  * @readonly
4923
4817
  */
4924
4818
  _createdDate?: Date;
4925
4819
  /**
4926
- * information about who updated of the automation
4820
+ * The entity that last updated the automation.
4927
4821
  * @readonly
4928
4822
  */
4929
4823
  updatedBy?: AuditInfo;
4930
4824
  /**
4931
- * Date and time the Automation was last updated.
4825
+ * Date and time the automation was last updated.
4932
4826
  * @readonly
4933
4827
  */
4934
4828
  _updatedDate?: Date;
4935
- /** Automation name */
4829
+ /** Automation name that is displayed on the user's site. */
4936
4830
  name?: string;
4937
- /** Automation description */
4831
+ /** Automation description. */
4938
4832
  description?: string | null;
4939
- /** Automation runtime configuration */
4833
+ /** Object that defines the automation's trigger, actions, and activation status. */
4940
4834
  configuration?: AutomationConfiguration;
4941
- /** Origin type */
4835
+ /** Defines how the automation was added to the site. */
4942
4836
  origin?: Origin;
4943
- /** Automation settings */
4837
+ /** Automation settings. */
4944
4838
  settings?: AutomationSettings;
4945
4839
  }
4946
4840
  interface QueryCursorResult {
@@ -5006,7 +4900,7 @@ interface AutomationsQueryBuilder {
5006
4900
  find: () => Promise<AutomationsQueryResult>;
5007
4901
  }
5008
4902
  interface ValidateAutomationOptions {
5009
- /** optional validation settings */
4903
+ /** Settings to customize the validation. */
5010
4904
  validationSettings?: ValidationSettings;
5011
4905
  }
5012
4906