@wix/auto_sdk_automations_activation-log 1.0.0

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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
  11. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +25 -0
  12. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
  13. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
  14. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js +176 -0
  15. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
  16. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
  17. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +85 -0
  18. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
  19. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
  20. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +40 -0
  21. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
  22. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
  23. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +158 -0
  24. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
  25. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
  26. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +323 -0
  27. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
  39. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +7 -0
  40. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
  41. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
  42. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js +170 -0
  43. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
  44. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
  45. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +56 -0
  46. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
  47. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
  48. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +19 -0
  49. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
  50. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
  51. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +155 -0
  52. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
  53. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
  54. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +294 -0
  55. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
  66. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +25 -0
  67. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
  68. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
  69. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js +176 -0
  70. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
  71. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
  72. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +85 -0
  73. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
  74. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
  75. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +40 -0
  76. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
  77. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
  78. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +158 -0
  79. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
  80. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
  81. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +323 -0
  82. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
  93. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +7 -0
  94. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
  95. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
  96. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js +170 -0
  97. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
  98. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
  99. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +56 -0
  100. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
  101. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
  102. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +19 -0
  103. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
  104. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
  105. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +155 -0
  106. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
  107. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
  108. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +294 -0
  109. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1144 @@
1
+ export interface ActivationLog {
2
+ /**
3
+ * Activation ID
4
+ * @format GUID
5
+ */
6
+ id?: string;
7
+ /**
8
+ * The activated automation ID
9
+ * @format GUID
10
+ */
11
+ automationId?: string;
12
+ /** The activated automation revision */
13
+ automationRevision?: string;
14
+ /** Automation activation status */
15
+ status?: Status;
16
+ /** Scheduled status additional info */
17
+ initiatedInfo?: InitiatedStatusInfo;
18
+ /** Scheduled status additional info */
19
+ scheduledInfo?: ScheduledStatusInfo;
20
+ /** Started status additional info */
21
+ startedInfo?: StartedStatusInfo;
22
+ /** Ended status additional info */
23
+ endedInfo?: EndedStatusInfo;
24
+ /** Cancelled status additional info */
25
+ cancelledInfo?: CancelledStatusInfo;
26
+ /** Failed status additional info */
27
+ failedInfo?: FailedStatusInfo;
28
+ /** Skipped status additional info */
29
+ skippedInfo?: SkippedStatusInfo;
30
+ /**
31
+ * Warnings information
32
+ * @maxSize 15
33
+ */
34
+ warnings?: Warning[];
35
+ /** Created date */
36
+ createdDate?: Date | null;
37
+ }
38
+ export declare enum Target {
39
+ UNKNOWN_TARGET = "UNKNOWN_TARGET",
40
+ SCHEDULE = "SCHEDULE",
41
+ IMMEDIATE = "IMMEDIATE"
42
+ }
43
+ export declare enum CancellationReason {
44
+ UNKNOWN_CANCELLATION_REASON = "UNKNOWN_CANCELLATION_REASON",
45
+ /** Indicating that the activation was cancelled directly */
46
+ EVENT_CANCELLED = "EVENT_CANCELLED",
47
+ /** Indicating that the activation is cancelled because the automation was deactivated */
48
+ AUTOMATION_DEACTIVATED = "AUTOMATION_DEACTIVATED",
49
+ /** Indicating that the activation is cancelled because the automation was deleted */
50
+ AUTOMATION_DELETED = "AUTOMATION_DELETED",
51
+ /** Indicating that the activation is cancelled after the automation schedule time was reached */
52
+ CANCELLED_BY_REFRESH_PAYLOAD = "CANCELLED_BY_REFRESH_PAYLOAD",
53
+ /** Indicates that the activation was cancelled due to a UoU GDPR "Right to be Forgotten" request. */
54
+ CANCELLED_BY_GDPR_REQUEST = "CANCELLED_BY_GDPR_REQUEST"
55
+ }
56
+ export interface Identity {
57
+ /**
58
+ * User ID
59
+ * @format GUID
60
+ */
61
+ userId?: string | null;
62
+ /**
63
+ * App ID
64
+ * @format GUID
65
+ */
66
+ appId?: string | null;
67
+ }
68
+ export declare enum ErrorReason {
69
+ /** Unexpected error reason */
70
+ UNEXPECTED_ERROR_REASON = "UNEXPECTED_ERROR_REASON",
71
+ /** Failed to evaluate the schedule date expression */
72
+ SCHEDULE_DATE_EVALUATION_FAILED = "SCHEDULE_DATE_EVALUATION_FAILED"
73
+ }
74
+ export declare enum SkipReason {
75
+ UNKNOWN_SKIP_REASON = "UNKNOWN_SKIP_REASON",
76
+ /** Activation was skipped because the scheduled execution time had already passed at the time of execution */
77
+ SCHEDULE_DATE_EXPIRED = "SCHEDULE_DATE_EXPIRED",
78
+ /** Activation was skipped because the trigger filters defined in the automation did not match the payload. */
79
+ TRIGGER_FILTERS_NOT_PASSED = "TRIGGER_FILTERS_NOT_PASSED",
80
+ /** Activation was skipped because it exceeded the configured rate limit (maximum number of executions allowed in a time period). */
81
+ RATE_LIMIT_EXCEEDED = "RATE_LIMIT_EXCEEDED",
82
+ /** Activation was skipped because an event with the same idempotency key was already processed. */
83
+ EVENT_ALREADY_PROCESSED = "EVENT_ALREADY_PROCESSED"
84
+ }
85
+ export declare enum Status {
86
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
87
+ /** This indicates activation is not started yet (no action has run yet) */
88
+ INITIATED = "INITIATED",
89
+ /** The activation is in scheduled status when the automation has future date or debounce defined and we're in the waiting stage (no action has run yet) */
90
+ SCHEDULED = "SCHEDULED",
91
+ /** This indicates the automation activation has started and currently in progress */
92
+ STARTED = "STARTED",
93
+ /** This indicates all the automation actions were handled either by invoking them, skipping them etc. */
94
+ ENDED = "ENDED",
95
+ /** This indicates the activation was cancelled */
96
+ CANCELLED = "CANCELLED",
97
+ /**
98
+ * This indicates the activation failed to start
99
+ * Note that failure in the activation of a single action will not result a failure in activation of the entire automation
100
+ */
101
+ FAILED = "FAILED",
102
+ /**
103
+ * Indicates that the automation activation was skipped without executing any actions.
104
+ * Note that an activation will either be skipped immediately or move to INITIATED state.
105
+ */
106
+ SKIPPED = "SKIPPED"
107
+ }
108
+ export interface InitiatedStatusInfo {
109
+ /** Created date */
110
+ statusChangedDate?: Date | null;
111
+ /** Target */
112
+ target?: Target;
113
+ /** The reported trigger payload */
114
+ payload?: Record<string, any> | null;
115
+ /**
116
+ * External entity ID
117
+ * @maxLength 40
118
+ */
119
+ externalEntityId?: string | null;
120
+ /**
121
+ * Unique identifier for the request that initiated the automation
122
+ * @maxLength 100
123
+ */
124
+ requestId?: string | null;
125
+ }
126
+ export interface ScheduledStatusInfo {
127
+ /** Created date */
128
+ statusChangedDate?: Date | null;
129
+ /**
130
+ * Schedule identifier
131
+ * @format GUID
132
+ */
133
+ scheduleId?: string;
134
+ /** Indicating when the activation should start */
135
+ date?: Date | null;
136
+ }
137
+ export interface StartedStatusInfo {
138
+ /** Created date */
139
+ statusChangedDate?: Date | null;
140
+ /** Enriched and refreshed payload */
141
+ payload?: Record<string, any> | null;
142
+ }
143
+ export interface EndedStatusInfo {
144
+ /** Created date */
145
+ statusChangedDate?: Date | null;
146
+ /** Indicates if the activation failed with errors in one or more actions. Actions that failed but eventually ended are not included */
147
+ withFailedActions?: boolean | null;
148
+ }
149
+ export interface CancelledStatusInfo {
150
+ /** Created date */
151
+ statusChangedDate?: Date | null;
152
+ /** Cancellation reason */
153
+ reason?: CancellationReason;
154
+ /** The identity (such as user, app etc.) that caused the cancellation */
155
+ initiator?: Identity;
156
+ }
157
+ export interface FailedStatusInfo {
158
+ /** Created date */
159
+ statusChangedDate?: Date | null;
160
+ /**
161
+ * Error description
162
+ * @maxLength 1000
163
+ * @readonly
164
+ */
165
+ errorDescription?: string;
166
+ /**
167
+ * Error code
168
+ * @maxLength 20
169
+ */
170
+ errorCode?: string | null;
171
+ /** Error reason */
172
+ errorReason?: ErrorReason;
173
+ /** Event payload */
174
+ payload?: Record<string, any> | null;
175
+ /**
176
+ * External entity ID
177
+ * @maxLength 40
178
+ */
179
+ externalEntityId?: string | null;
180
+ /**
181
+ * Unique identifier for the request that initiated the automation
182
+ * @maxLength 100
183
+ */
184
+ requestId?: string | null;
185
+ }
186
+ export interface SkippedStatusInfo {
187
+ /** Created date */
188
+ statusChangedDate?: Date | null;
189
+ /** The reason why the automation activation was skipped */
190
+ reason?: SkipReason;
191
+ /** The reported trigger payload */
192
+ payload?: Record<string, any> | null;
193
+ /**
194
+ * External entity ID
195
+ * @maxLength 40
196
+ */
197
+ externalEntityId?: string | null;
198
+ /**
199
+ * Unique identifier for the request that initiated the automation
200
+ * @maxLength 100
201
+ */
202
+ requestId?: string | null;
203
+ }
204
+ export interface Warning {
205
+ /** Event date */
206
+ warningDate?: Date | null;
207
+ /**
208
+ * Detailed description of what caused the warning
209
+ * @maxLength 1000
210
+ * @readonly
211
+ */
212
+ errorDescription?: string;
213
+ /**
214
+ * Error code of what caused the warning
215
+ * @maxLength 20
216
+ * @readonly
217
+ */
218
+ errorCode?: string | null;
219
+ /** The reason for the warning */
220
+ reason?: WarningReason;
221
+ }
222
+ export declare enum WarningReason {
223
+ UNKNOWN_WARNING_REASON = "UNKNOWN_WARNING_REASON",
224
+ /** Failed to enrich payload with studio site enrichment */
225
+ STUDIO_SITE_ENRICHMENT_FAILED = "STUDIO_SITE_ENRICHMENT_FAILED",
226
+ /** Failed to refresh payload data */
227
+ REFRESH_PAYLOAD_FAILED = "REFRESH_PAYLOAD_FAILED",
228
+ /** Failed to retrieve contact information */
229
+ GET_CONTACT_ENRICHMENT_FAILED = "GET_CONTACT_ENRICHMENT_FAILED",
230
+ /** Failed to retrieve member information */
231
+ GET_MEMBER_ENRICHMENT_FAILED = "GET_MEMBER_ENRICHMENT_FAILED"
232
+ }
233
+ export interface DomainEvent extends DomainEventBodyOneOf {
234
+ createdEvent?: EntityCreatedEvent;
235
+ updatedEvent?: EntityUpdatedEvent;
236
+ deletedEvent?: EntityDeletedEvent;
237
+ actionEvent?: ActionEvent;
238
+ /**
239
+ * Unique event ID.
240
+ * Allows clients to ignore duplicate webhooks.
241
+ */
242
+ id?: string;
243
+ /**
244
+ * Assumes actions are also always typed to an entity_type
245
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
246
+ */
247
+ entityFqdn?: string;
248
+ /**
249
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
250
+ * This is although the created/updated/deleted notion is duplication of the oneof types
251
+ * Example: created/updated/deleted/started/completed/email_opened
252
+ */
253
+ slug?: string;
254
+ /** ID of the entity associated with the event. */
255
+ entityId?: string;
256
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
257
+ eventTime?: Date | null;
258
+ /**
259
+ * Whether the event was triggered as a result of a privacy regulation application
260
+ * (for example, GDPR).
261
+ */
262
+ triggeredByAnonymizeRequest?: boolean | null;
263
+ /** If present, indicates the action that triggered the event. */
264
+ originatedFrom?: string | null;
265
+ /**
266
+ * A sequence number defining the order of updates to the underlying entity.
267
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
268
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
269
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
270
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
271
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
272
+ */
273
+ entityEventSequence?: string | null;
274
+ }
275
+ /** @oneof */
276
+ export interface DomainEventBodyOneOf {
277
+ createdEvent?: EntityCreatedEvent;
278
+ updatedEvent?: EntityUpdatedEvent;
279
+ deletedEvent?: EntityDeletedEvent;
280
+ actionEvent?: ActionEvent;
281
+ }
282
+ export interface EntityCreatedEvent {
283
+ entityAsJson?: string;
284
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
285
+ restoreInfo?: RestoreInfo;
286
+ }
287
+ export interface RestoreInfo {
288
+ deletedDate?: Date | null;
289
+ }
290
+ export interface EntityUpdatedEvent {
291
+ /**
292
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
293
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
294
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
295
+ */
296
+ currentEntityAsJson?: string;
297
+ }
298
+ export interface EntityDeletedEvent {
299
+ /** Entity that was deleted */
300
+ deletedEntityAsJson?: string | null;
301
+ }
302
+ export interface ActionEvent {
303
+ bodyAsJson?: string;
304
+ }
305
+ export interface Empty {
306
+ }
307
+ export interface ActivationContinuedAfterSchedule {
308
+ /**
309
+ * Activation identifier
310
+ * @format GUID
311
+ */
312
+ id?: string;
313
+ /** Activation Automation */
314
+ automation?: Automation;
315
+ }
316
+ export interface Automation extends AutomationOriginInfoOneOf {
317
+ /** Application info */
318
+ applicationInfo?: ApplicationOrigin;
319
+ /** Preinstalled info */
320
+ preinstalledInfo?: PreinstalledOrigin;
321
+ /**
322
+ * Automation ID.
323
+ * @format GUID
324
+ * @readonly
325
+ */
326
+ id?: string | null;
327
+ /**
328
+ * Revision number, which increments by 1 each time the automation is updated.
329
+ * To prevent conflicting changes,
330
+ * the current revision must be passed when updating the automation.
331
+ *
332
+ * Ignored when creating an automation.
333
+ * @readonly
334
+ */
335
+ revision?: string | null;
336
+ /**
337
+ * Information about the creator of the automation.
338
+ * @immutable
339
+ * @readonly
340
+ */
341
+ createdBy?: AuditInfo;
342
+ /**
343
+ * Date and time the automation was created.
344
+ * @readonly
345
+ */
346
+ createdDate?: Date | null;
347
+ /**
348
+ * The entity that last updated the automation.
349
+ * @readonly
350
+ */
351
+ updatedBy?: AuditInfo;
352
+ /**
353
+ * Date and time the automation was last updated.
354
+ * @readonly
355
+ */
356
+ updatedDate?: Date | null;
357
+ /**
358
+ * Automation name that is displayed on the user's site.
359
+ * @minLength 1
360
+ * @maxLength 500
361
+ */
362
+ name?: string;
363
+ /**
364
+ * Automation description.
365
+ * @maxLength 2000
366
+ */
367
+ description?: string | null;
368
+ /** Object that defines the automation's trigger, actions, and activation status. */
369
+ configuration?: AutomationConfiguration;
370
+ /**
371
+ * Defines how the automation was added to the site.
372
+ * @immutable
373
+ */
374
+ origin?: Origin;
375
+ /** Automation settings. */
376
+ settings?: AutomationSettings;
377
+ /**
378
+ * Draft info (optional - only if the automation is a draft)
379
+ * @readonly
380
+ */
381
+ draftInfo?: DraftInfo;
382
+ /**
383
+ * Namespace
384
+ * @maxLength 50
385
+ */
386
+ namespace?: string | null;
387
+ /** Extended Fields */
388
+ extendedFields?: ExtendedFields;
389
+ }
390
+ /** @oneof */
391
+ export interface AutomationOriginInfoOneOf {
392
+ /** Application info */
393
+ applicationInfo?: ApplicationOrigin;
394
+ /** Preinstalled info */
395
+ preinstalledInfo?: PreinstalledOrigin;
396
+ }
397
+ export interface ActionSettings {
398
+ /**
399
+ * List of actions that cannot be deleted.
400
+ * Default: Empty. All actions are deletable by default.
401
+ * @maxSize 30
402
+ * @format GUID
403
+ */
404
+ permanentActionIds?: string[];
405
+ /**
406
+ * List of actions that cannot be edited.
407
+ * Default: Empty. All actions are editable by default.
408
+ * @maxSize 30
409
+ * @format GUID
410
+ */
411
+ readonlyActionIds?: string[];
412
+ /** Whether the option to add a delay is disabled for the automation. */
413
+ disableDelayAddition?: boolean;
414
+ /** Whether the option to add a condition is disabled for the automation. */
415
+ disableConditionAddition?: boolean;
416
+ }
417
+ export declare enum Domain {
418
+ /** User domain (default). */
419
+ USER = "USER",
420
+ /** Wix domain. */
421
+ WIX = "WIX"
422
+ }
423
+ export interface Enrichment {
424
+ /**
425
+ * Enrichment input mappings.
426
+ * @maxSize 2
427
+ */
428
+ inputMappings?: Record<string, any>[] | null;
429
+ }
430
+ export interface AuditInfo extends AuditInfoIdOneOf {
431
+ /**
432
+ * User ID.
433
+ * @format GUID
434
+ */
435
+ userId?: string;
436
+ /**
437
+ * Application ID.
438
+ * @format GUID
439
+ */
440
+ appId?: string;
441
+ }
442
+ /** @oneof */
443
+ export interface AuditInfoIdOneOf {
444
+ /**
445
+ * User ID.
446
+ * @format GUID
447
+ */
448
+ userId?: string;
449
+ /**
450
+ * Application ID.
451
+ * @format GUID
452
+ */
453
+ appId?: string;
454
+ }
455
+ /** Automation runtime configuration */
456
+ export interface AutomationConfiguration {
457
+ /** Status of the automation on the site. */
458
+ status?: AutomationConfigurationStatus;
459
+ /** Automation trigger configuration. */
460
+ trigger?: Trigger;
461
+ /**
462
+ * 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.
463
+ * @maxSize 20
464
+ * @format GUID
465
+ */
466
+ rootActionIds?: string[];
467
+ /**
468
+ * Map of all actions that the automation may execute.
469
+ * The key is the action ID, and the value is the action configuration.
470
+ */
471
+ actions?: Record<string, Action>;
472
+ }
473
+ export declare enum TimeUnit {
474
+ UNKNOWN_TIME_UNIT = "UNKNOWN_TIME_UNIT",
475
+ MINUTES = "MINUTES",
476
+ HOURS = "HOURS",
477
+ DAYS = "DAYS",
478
+ WEEKS = "WEEKS",
479
+ MONTHS = "MONTHS"
480
+ }
481
+ export interface Filter {
482
+ /**
483
+ * Filter ID.
484
+ * @format GUID
485
+ */
486
+ id?: string;
487
+ /**
488
+ * Field key from the payload schema, for example "formId".
489
+ * @minLength 1
490
+ * @maxLength 110
491
+ */
492
+ fieldKey?: string;
493
+ /**
494
+ * Filter expression that evaluates to a boolean.
495
+ * @maxLength 2500
496
+ */
497
+ filterExpression?: string;
498
+ }
499
+ export interface FutureDateActivationOffset {
500
+ /**
501
+ * The offset value. The value is always taken as negative, so that the automation runs before the trigger date.
502
+ * To create an offset that causes the automation to run after the trigger date, use a delay action.
503
+ * @maxLength 1000
504
+ */
505
+ preScheduledEventOffsetExpression?: string;
506
+ /** Time unit for the scheduled event offset. */
507
+ scheduledEventOffsetTimeUnit?: TimeUnit;
508
+ }
509
+ export interface RateLimit {
510
+ /**
511
+ * Value expressing the maximum number of times the trigger can be activated.
512
+ * @maxLength 1000
513
+ */
514
+ maxActivationsExpression?: string;
515
+ /**
516
+ * Duration of the rate limiting window in the selected time unit. If no value is set, the rate limit is permanent.
517
+ * @maxLength 1000
518
+ */
519
+ durationExpression?: string | null;
520
+ /** Time unit for the rate limit duration. */
521
+ durationTimeUnit?: TimeUnit;
522
+ /**
523
+ * Unique identifier of each activation, by which rate limiter will count activations.
524
+ * @minLength 1
525
+ * @maxLength 400
526
+ */
527
+ uniqueIdentifierExpression?: string | null;
528
+ }
529
+ export interface FilterValueSelection {
530
+ /**
531
+ * Values that can help the user filter certain automations, values will look like "<filter_id>__<selected_value>"
532
+ * @maxLength 80
533
+ * @maxSize 50
534
+ */
535
+ selectedFilterValues?: string[];
536
+ }
537
+ export interface ConditionExpressionGroup {
538
+ /** Expression group operator. */
539
+ operator?: Operator;
540
+ /**
541
+ * List of boolean expressions to be evaluated with the given operator.
542
+ * @minSize 1
543
+ * @maxSize 20
544
+ * @maxLength 2500
545
+ */
546
+ booleanExpressions?: string[];
547
+ }
548
+ export declare enum Operator {
549
+ UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
550
+ OR = "OR",
551
+ AND = "AND"
552
+ }
553
+ export declare enum Type {
554
+ /** Automation will be triggered according to the trigger configuration. */
555
+ UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
556
+ /** App defined Action. */
557
+ APP_DEFINED = "APP_DEFINED",
558
+ /** Condition Action. */
559
+ CONDITION = "CONDITION",
560
+ /** Delay Action. */
561
+ DELAY = "DELAY",
562
+ /** RateLimit Action. */
563
+ RATE_LIMIT = "RATE_LIMIT",
564
+ /** Set Variables Action. */
565
+ SET_VARIABLES = "SET_VARIABLES",
566
+ /** Output Action. */
567
+ OUTPUT = "OUTPUT"
568
+ }
569
+ export interface AppDefinedAction {
570
+ /**
571
+ * ID of the app that defines the action.
572
+ * @format GUID
573
+ */
574
+ appId?: string;
575
+ /**
576
+ * Action key.
577
+ * @minLength 1
578
+ * @maxLength 100
579
+ */
580
+ actionKey?: string;
581
+ /** Action input mapping. */
582
+ inputMapping?: Record<string, any> | null;
583
+ /**
584
+ * Array of conditions determining whether to skip the action in the automation flow.
585
+ * The action will be skipped if any of the expression groups evaluate to `true`.
586
+ * Actions following a skipped action will still run.
587
+ * @maxSize 10
588
+ */
589
+ skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
590
+ /**
591
+ * List of IDs of actions to run in parallel once the action completes.
592
+ * @maxSize 20
593
+ * @format GUID
594
+ */
595
+ postActionIds?: string[];
596
+ /** Optional output schema of the action. It will be used instead the action schema in case it's provided. */
597
+ overrideOutputSchema?: Record<string, any> | null;
598
+ }
599
+ export interface ConditionAction {
600
+ /**
601
+ * The condition evaluates to `true` if either of the expression groups evaluate to `true`.
602
+ * @minSize 1
603
+ * @maxSize 10
604
+ */
605
+ orExpressionGroups?: ConditionExpressionGroup[];
606
+ /**
607
+ * List of IDs of actions to run when the entire condition is evaluated to `true`.
608
+ * @maxSize 20
609
+ * @format GUID
610
+ */
611
+ truePostActionIds?: string[];
612
+ /**
613
+ * List of IDs of actions to run when the entire condition is evaluated to `false`.
614
+ * @maxSize 20
615
+ * @format GUID
616
+ */
617
+ falsePostActionIds?: string[];
618
+ }
619
+ export interface DelayAction {
620
+ /**
621
+ * Value expressing the amount of time to wait from a specific date or from the time the action is executed.
622
+ * @maxLength 1000
623
+ */
624
+ offsetExpression?: string | null;
625
+ /** Time unit for delay offset. */
626
+ offsetTimeUnit?: TimeUnit;
627
+ /**
628
+ * The action due date. If defined without an offset, the automation will wait until this date to execute the next step.
629
+ * If an offset is defined, it's calculated from this date.
630
+ * The date is expressed in the number of milliseconds since the Unix Epoch (1 January, 1970 UTC).
631
+ * @maxLength 1000
632
+ */
633
+ dueDateEpochExpression?: string | null;
634
+ /**
635
+ * List of IDs of actions to run in parallel after the delay.
636
+ * @maxSize 20
637
+ * @format GUID
638
+ */
639
+ postActionIds?: string[];
640
+ }
641
+ export interface RateLimitAction {
642
+ /**
643
+ * The maximum number of activations allowed for the action.
644
+ * @maxLength 1000
645
+ */
646
+ maxActivationsExpression?: string;
647
+ /**
648
+ * Duration of the rate limiting window, expressed in selected time unit.
649
+ * If no value is set, then there is no time limit on the rate limiter.
650
+ * @maxLength 1000
651
+ */
652
+ rateLimitDurationExpression?: string | null;
653
+ /** Time unit for the rate limit duration. */
654
+ rateLimitDurationTimeUnit?: TimeUnit;
655
+ /**
656
+ * Unique identifier of each activation by which rate limiter counts activations.
657
+ * @minLength 1
658
+ * @maxLength 400
659
+ */
660
+ uniqueIdentifierExpression?: string | null;
661
+ /**
662
+ * List of IDs of actions to run in parallel once the action completes.
663
+ * @maxSize 20
664
+ * @format GUID
665
+ */
666
+ postActionIds?: string[];
667
+ }
668
+ export interface SetVariablesAction {
669
+ /**
670
+ * output mapping
671
+ * for example: {"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }
672
+ */
673
+ outputMapping?: Record<string, any> | null;
674
+ /**
675
+ * output json schema representation
676
+ * could be string instead of Struct (and introduce some compression to minimize the size of it)
677
+ */
678
+ outputSchema?: Record<string, any> | null;
679
+ /**
680
+ * List of IDs of actions to run in parallel after variable initialization.
681
+ * @maxSize 20
682
+ * @format GUID
683
+ */
684
+ postActionIds?: string[];
685
+ }
686
+ export interface OutputAction {
687
+ /** Output action output mapping. */
688
+ outputMapping?: Record<string, any> | null;
689
+ }
690
+ export declare enum AutomationConfigurationStatus {
691
+ /** unused */
692
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
693
+ /** Automation will be triggered according to the trigger configuration */
694
+ ACTIVE = "ACTIVE",
695
+ /** Automation will not be triggered */
696
+ INACTIVE = "INACTIVE"
697
+ }
698
+ export interface Trigger {
699
+ /**
700
+ * ID of the app that defines the trigger.
701
+ * @format GUID
702
+ */
703
+ appId?: string;
704
+ /**
705
+ * Trigger key.
706
+ * @minLength 1
707
+ * @maxLength 100
708
+ */
709
+ triggerKey?: string;
710
+ /**
711
+ * List of filters on schema fields.
712
+ * In order for the automation to run, all filter expressions must evaluate to `true` for a given payload.
713
+ * @maxSize 5
714
+ */
715
+ filters?: Filter[];
716
+ /** Defines the time offset between the trigger date and when the automation runs. */
717
+ scheduledEventOffset?: FutureDateActivationOffset;
718
+ /** Limits the number of times an automation can be triggered. */
719
+ rateLimit?: RateLimit;
720
+ /**
721
+ * An optional configuration, per automation, of a schema that is optionally offered by the trigger provider to affect the behavior of the trigger.
722
+ * For example, a trigger provider may offer a schema that allows the user to configure the trigger to happen at a certain time of day,
723
+ * He would define a schema with a field called "startDate" and using this parameter the user can define his preferred startDate, per automation.
724
+ */
725
+ automationConfigMapping?: Record<string, any> | null;
726
+ /** Optional schema of the trigger. It will be used instead the trigger schema in case it's provided. */
727
+ overrideSchema?: Record<string, any> | null;
728
+ }
729
+ export interface Action extends ActionInfoOneOf {
730
+ /** Action defined by an app (via RPC, HTTP or Velo). */
731
+ appDefinedInfo?: AppDefinedAction;
732
+ /** Condition action. */
733
+ conditionInfo?: ConditionAction;
734
+ /** Delay action. */
735
+ delayInfo?: DelayAction;
736
+ /** Rate-limiting action. */
737
+ rateLimitInfo?: RateLimitAction;
738
+ /**
739
+ * Action ID. If not specified, a new ID is generated.
740
+ * @format GUID
741
+ */
742
+ id?: string | null;
743
+ /** Action type. */
744
+ type?: Type;
745
+ /**
746
+ * Human-readable name to differentiate the action from other actions of the same type.
747
+ * The name can contain only alphanumeric characters and underscores. If not provided, a namespace in the form `actionkey-indexOfAction` is
748
+ * generated automatically.
749
+ * If the action has output, the output will be available in the payload under this name.
750
+ * If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
751
+ * @minLength 1
752
+ * @maxLength 100
753
+ */
754
+ namespace?: string | null;
755
+ }
756
+ /** @oneof */
757
+ export interface ActionInfoOneOf {
758
+ /** Action defined by an app (via RPC, HTTP or Velo). */
759
+ appDefinedInfo?: AppDefinedAction;
760
+ /** Condition action. */
761
+ conditionInfo?: ConditionAction;
762
+ /** Delay action. */
763
+ delayInfo?: DelayAction;
764
+ /** Rate-limiting action. */
765
+ rateLimitInfo?: RateLimitAction;
766
+ }
767
+ export interface FilterableAppDefinedActions {
768
+ /**
769
+ * App defined action identifiers, each identifier in form `${appId}_${actionKey}`
770
+ * @minSize 1
771
+ * @maxSize 100
772
+ * @minLength 1
773
+ * @maxLength 150
774
+ */
775
+ actionIdentifiers?: string[];
776
+ }
777
+ export declare enum Origin {
778
+ /** Default value. This is unused. */
779
+ UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
780
+ /** User created automation. */
781
+ USER = "USER",
782
+ /** Automation created by application (site specific). */
783
+ APPLICATION = "APPLICATION",
784
+ /** Preinstalled application automation. */
785
+ PREINSTALLED = "PREINSTALLED",
786
+ /** Automation created from a recipe. */
787
+ RECIPE = "RECIPE"
788
+ }
789
+ export interface ApplicationOrigin {
790
+ /**
791
+ * Application ID.
792
+ * @format GUID
793
+ */
794
+ appId?: string;
795
+ /**
796
+ * External ID to correlate multiple sites to an automation
797
+ * @format GUID
798
+ */
799
+ appDefinedExternalId?: string | null;
800
+ }
801
+ export interface PreinstalledOrigin {
802
+ /**
803
+ * ID of the app that defines the preinstalled automation.
804
+ * @format GUID
805
+ */
806
+ appId?: string;
807
+ /**
808
+ * Application component ID.
809
+ * @format GUID
810
+ */
811
+ componentId?: string;
812
+ /** Application component version. */
813
+ componentVersion?: number;
814
+ /**
815
+ * Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
816
+ * automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
817
+ * preinstalled automation is used.
818
+ *
819
+ * Default: `false`
820
+ * @immutable
821
+ * @readonly
822
+ */
823
+ override?: boolean | null;
824
+ }
825
+ export interface AutomationSettings {
826
+ /**
827
+ * Whether the automation is hidden from users.
828
+ * Default: `false`
829
+ */
830
+ hidden?: boolean;
831
+ /**
832
+ * Whether the automation is read-only.
833
+ * Default: `false`
834
+ */
835
+ readonly?: boolean;
836
+ /**
837
+ * Whether the option to delete the automation from the site is disabled.
838
+ * Default: `false`
839
+ */
840
+ disableDelete?: boolean;
841
+ /**
842
+ * Whether the option to change the automation status (from active to inactive and vice versa) is disabled.
843
+ * Default: `false`
844
+ */
845
+ disableStatusChange?: boolean;
846
+ /** Automation action settings. */
847
+ actionSettings?: ActionSettings;
848
+ }
849
+ export interface DraftInfo {
850
+ /**
851
+ * Optional - automationId of the original automation.
852
+ * @format GUID
853
+ * @readonly
854
+ */
855
+ originalAutomationId?: string | null;
856
+ }
857
+ export interface Enrichments {
858
+ /** Whether the studio site enrichment is wanted. */
859
+ studioSite?: Enrichment;
860
+ }
861
+ export interface ExtendedFields {
862
+ /**
863
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
864
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
865
+ *
866
+ * You can only access fields for which you have the appropriate permissions.
867
+ *
868
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
869
+ */
870
+ namespaces?: Record<string, Record<string, any>>;
871
+ }
872
+ export interface UouDeleteRequest {
873
+ /** Original UouRightToBeDeletedRequest request */
874
+ originalRequest?: Record<string, any> | null;
875
+ /**
876
+ * Found client ids
877
+ * @maxSize 100
878
+ */
879
+ foundClientEntityIdsByNamespace?: ClientEntityIdsByNamespace[];
880
+ }
881
+ export interface ClientEntityIdsByNamespace {
882
+ /**
883
+ * Client namespace
884
+ * @minLength 5
885
+ * @maxLength 50
886
+ */
887
+ namespace?: string;
888
+ /**
889
+ * Client entity IDs
890
+ * @minLength 5
891
+ * @maxLength 50
892
+ * @maxSize 100
893
+ */
894
+ clientEntityIds?: string[];
895
+ }
896
+ export interface GetActivationLogRequest {
897
+ /**
898
+ * Activation log ID
899
+ * @format GUID
900
+ */
901
+ activationId: string;
902
+ }
903
+ export interface GetActivationLogResponse {
904
+ /** Activation log */
905
+ activationLog?: ActivationLog;
906
+ }
907
+ export interface ListActivationLogsRequest extends ListActivationLogsRequestIdentifierOneOf {
908
+ /** Look up activations by automation id */
909
+ automationIdInfo?: AutomationIdInfo;
910
+ /** Look up activations by preinstalled identifier */
911
+ preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;
912
+ /** From created date, If not specified, defaults to 30 days before the current time. */
913
+ fromCreatedDate?: Date | null;
914
+ /** To created date, If not specified, defaults to current time. */
915
+ toCreatedDate?: Date | null;
916
+ /** Paging */
917
+ cursorPaging?: CursorPaging;
918
+ /** Should return payload in the response */
919
+ includePayload?: boolean | null;
920
+ /** identifier type for the activations to list */
921
+ identifierType?: IdentifierType;
922
+ }
923
+ /** @oneof */
924
+ export interface ListActivationLogsRequestIdentifierOneOf {
925
+ /** Look up activations by automation id */
926
+ automationIdInfo?: AutomationIdInfo;
927
+ /** Look up activations by preinstalled identifier */
928
+ preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;
929
+ }
930
+ export interface CursorPaging {
931
+ /**
932
+ * Maximum number of items to return in the results.
933
+ * @max 500
934
+ */
935
+ limit?: number | null;
936
+ /**
937
+ * Pointer to the next or previous page in the list of results.
938
+ *
939
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
940
+ * Not relevant for the first request.
941
+ * @maxLength 16000
942
+ */
943
+ cursor?: string | null;
944
+ }
945
+ /** Type of identifier used to look up activation logs */
946
+ export declare enum IdentifierType {
947
+ UNKNOWN_TYPE = "UNKNOWN_TYPE"
948
+ }
949
+ export interface AutomationIdInfo {
950
+ /**
951
+ * Automation ID
952
+ * @format GUID
953
+ */
954
+ automationId?: string;
955
+ }
956
+ export interface PreinstalledIdentifierInfo {
957
+ /**
958
+ * ID of the app that defines the preinstalled automation.
959
+ * @format GUID
960
+ */
961
+ appId?: string;
962
+ /**
963
+ * Application component ID.
964
+ * @format GUID
965
+ */
966
+ componentId?: string;
967
+ }
968
+ export interface ListActivationLogsResponse {
969
+ /** List of activation logs */
970
+ activationLogs?: ActivationLog[];
971
+ /** Paging metadata */
972
+ pagingMetadata?: CursorPagingMetadata;
973
+ }
974
+ export interface CursorPagingMetadata {
975
+ /** Number of items returned in the response. */
976
+ count?: number | null;
977
+ /** Cursor string that point to the next page */
978
+ cursors?: Cursors;
979
+ /**
980
+ * Whether there are more pages to retrieve following the current page.
981
+ *
982
+ * + `true`: Another page of results can be retrieved.
983
+ * + `false`: This is the last page.
984
+ */
985
+ hasNext?: boolean | null;
986
+ }
987
+ export interface Cursors {
988
+ /**
989
+ * Cursor string pointing to the next page in the list of results.
990
+ * @maxLength 16000
991
+ */
992
+ next?: string | null;
993
+ }
994
+ export interface SearchActivationLogsByPayloadPiiValueRequest extends SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf {
995
+ /** Filter activations by value and automation id */
996
+ automationIdInfo?: AutomationIdInfo;
997
+ /** Filter activations by value and preinstalled */
998
+ preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;
999
+ /**
1000
+ * Value to search in the payload
1001
+ * @minLength 1
1002
+ * @maxLength 50
1003
+ */
1004
+ value: string;
1005
+ /** Paging */
1006
+ cursorPaging?: CursorPaging;
1007
+ /** Should return payload in the response */
1008
+ includePayload?: boolean | null;
1009
+ /** Filter by */
1010
+ filterBy?: FilterBy;
1011
+ /** From created date */
1012
+ fromCreatedDate?: Date | null;
1013
+ /** To created date */
1014
+ toCreatedDate?: Date | null;
1015
+ }
1016
+ /** @oneof */
1017
+ export interface SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf {
1018
+ /** Filter activations by value and automation id */
1019
+ automationIdInfo?: AutomationIdInfo;
1020
+ /** Filter activations by value and preinstalled */
1021
+ preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;
1022
+ }
1023
+ /** FilterBy */
1024
+ export declare enum FilterBy {
1025
+ UNKNOWN_TYPE = "UNKNOWN_TYPE"
1026
+ }
1027
+ export interface SearchActivationLogsByPayloadPiiValueResponse {
1028
+ /** List of activation logs */
1029
+ activationLogs?: ActivationLog[];
1030
+ /** Paging metadata */
1031
+ pagingMetadata?: CursorPagingMetadata;
1032
+ }
1033
+ export interface MessageEnvelope {
1034
+ /**
1035
+ * App instance ID.
1036
+ * @format GUID
1037
+ */
1038
+ instanceId?: string | null;
1039
+ /**
1040
+ * Event type.
1041
+ * @maxLength 150
1042
+ */
1043
+ eventType?: string;
1044
+ /** The identification type and identity data. */
1045
+ identity?: IdentificationData;
1046
+ /** Stringify payload. */
1047
+ data?: string;
1048
+ }
1049
+ export interface IdentificationData extends IdentificationDataIdOneOf {
1050
+ /**
1051
+ * ID of a site visitor that has not logged in to the site.
1052
+ * @format GUID
1053
+ */
1054
+ anonymousVisitorId?: string;
1055
+ /**
1056
+ * ID of a site visitor that has logged in to the site.
1057
+ * @format GUID
1058
+ */
1059
+ memberId?: string;
1060
+ /**
1061
+ * ID of a Wix user (site owner, contributor, etc.).
1062
+ * @format GUID
1063
+ */
1064
+ wixUserId?: string;
1065
+ /**
1066
+ * ID of an app.
1067
+ * @format GUID
1068
+ */
1069
+ appId?: string;
1070
+ /** @readonly */
1071
+ identityType?: WebhookIdentityType;
1072
+ }
1073
+ /** @oneof */
1074
+ export interface IdentificationDataIdOneOf {
1075
+ /**
1076
+ * ID of a site visitor that has not logged in to the site.
1077
+ * @format GUID
1078
+ */
1079
+ anonymousVisitorId?: string;
1080
+ /**
1081
+ * ID of a site visitor that has logged in to the site.
1082
+ * @format GUID
1083
+ */
1084
+ memberId?: string;
1085
+ /**
1086
+ * ID of a Wix user (site owner, contributor, etc.).
1087
+ * @format GUID
1088
+ */
1089
+ wixUserId?: string;
1090
+ /**
1091
+ * ID of an app.
1092
+ * @format GUID
1093
+ */
1094
+ appId?: string;
1095
+ }
1096
+ export declare enum WebhookIdentityType {
1097
+ UNKNOWN = "UNKNOWN",
1098
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1099
+ MEMBER = "MEMBER",
1100
+ WIX_USER = "WIX_USER",
1101
+ APP = "APP"
1102
+ }
1103
+ interface InitiatedStatusInfoNonNullableFields {
1104
+ target: Target;
1105
+ }
1106
+ interface ScheduledStatusInfoNonNullableFields {
1107
+ scheduleId: string;
1108
+ }
1109
+ interface CancelledStatusInfoNonNullableFields {
1110
+ reason: CancellationReason;
1111
+ }
1112
+ interface FailedStatusInfoNonNullableFields {
1113
+ errorDescription: string;
1114
+ errorReason: ErrorReason;
1115
+ }
1116
+ interface SkippedStatusInfoNonNullableFields {
1117
+ reason: SkipReason;
1118
+ }
1119
+ interface WarningNonNullableFields {
1120
+ errorDescription: string;
1121
+ reason: WarningReason;
1122
+ }
1123
+ interface ActivationLogNonNullableFields {
1124
+ id: string;
1125
+ automationId: string;
1126
+ automationRevision: string;
1127
+ status: Status;
1128
+ initiatedInfo?: InitiatedStatusInfoNonNullableFields;
1129
+ scheduledInfo?: ScheduledStatusInfoNonNullableFields;
1130
+ cancelledInfo?: CancelledStatusInfoNonNullableFields;
1131
+ failedInfo?: FailedStatusInfoNonNullableFields;
1132
+ skippedInfo?: SkippedStatusInfoNonNullableFields;
1133
+ warnings: WarningNonNullableFields[];
1134
+ }
1135
+ export interface GetActivationLogResponseNonNullableFields {
1136
+ activationLog?: ActivationLogNonNullableFields;
1137
+ }
1138
+ export interface ListActivationLogsResponseNonNullableFields {
1139
+ activationLogs: ActivationLogNonNullableFields[];
1140
+ }
1141
+ export interface SearchActivationLogsByPayloadPiiValueResponseNonNullableFields {
1142
+ activationLogs: ActivationLogNonNullableFields[];
1143
+ }
1144
+ export {};