@wix/auto_sdk_automations_action-catalog 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-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
  11. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +22 -0
  12. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
  13. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
  14. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +349 -0
  15. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
  16. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
  17. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +199 -0
  18. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
  19. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
  20. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +67 -0
  21. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
  22. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
  23. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +51 -0
  24. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
  25. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
  26. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +490 -0
  27. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.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-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
  39. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +13 -0
  40. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
  41. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
  42. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +337 -0
  43. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
  44. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
  45. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +164 -0
  46. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
  47. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
  48. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +49 -0
  49. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
  50. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
  51. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +48 -0
  52. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
  53. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
  54. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +455 -0
  55. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.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-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
  66. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +22 -0
  67. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
  68. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
  69. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +349 -0
  70. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
  71. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
  72. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +199 -0
  73. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
  74. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
  75. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +67 -0
  76. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
  77. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
  78. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +51 -0
  79. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
  80. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
  81. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +490 -0
  82. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.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-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
  93. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +13 -0
  94. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
  95. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
  96. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +337 -0
  97. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
  98. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
  99. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +164 -0
  100. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
  101. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
  102. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +49 -0
  103. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
  104. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
  105. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +48 -0
  106. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
  107. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
  108. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +455 -0
  109. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,699 @@
1
+ export interface Action {
2
+ /**
3
+ * Action ID.
4
+ * @format GUID
5
+ * @readonly
6
+ */
7
+ id?: string | null;
8
+ /**
9
+ * The ID of the app that defines the action.
10
+ * @format GUID
11
+ * @readonly
12
+ */
13
+ appId?: string;
14
+ /**
15
+ * Human-readable identifier for the action.
16
+ * @minLength 5
17
+ * @maxLength 50
18
+ * @readonly
19
+ */
20
+ actionKey?: string;
21
+ /**
22
+ * The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)
23
+ * as defined in the app dashboard.
24
+ * @readonly
25
+ */
26
+ inputSchema?: Record<string, any> | null;
27
+ /**
28
+ * The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)
29
+ * as defined in the app dashboard.
30
+ * @readonly
31
+ */
32
+ outputSchema?: Record<string, any> | null;
33
+ /**
34
+ * Action name displayed in the site dashboard to Wix users. For example, "Send SMS" or "Create Coupon".
35
+ * @minLength 1
36
+ * @maxLength 80
37
+ * @readonly
38
+ */
39
+ displayName?: string | null;
40
+ /**
41
+ * Action description displayed in the site dashboard to Wix users.
42
+ * @readonly
43
+ */
44
+ description?: string | null;
45
+ /** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */
46
+ implementedMethods?: ImplementedMethods;
47
+ /** Whether the action is executed immediately or with a delay. */
48
+ executionType?: ExecutionType;
49
+ /** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */
50
+ interfaceConfiguration?: InterfaceConfiguration;
51
+ /** Action icon displayed in the site dashboard to Wix users. */
52
+ icon?: Image;
53
+ /**
54
+ * Date and time the action was created.
55
+ * @readonly
56
+ */
57
+ createdDate?: Date | null;
58
+ /**
59
+ * Date and time the action was updated.
60
+ * @readonly
61
+ */
62
+ updatedDate?: Date | null;
63
+ /**
64
+ * Action component ID.
65
+ * @format GUID
66
+ * @readonly
67
+ */
68
+ componentId?: string | null;
69
+ /**
70
+ * Component version at the time the action was created.
71
+ * @readonly
72
+ */
73
+ componentVersion?: string | null;
74
+ }
75
+ export declare enum Type {
76
+ /** Unknown action configuration UI. */
77
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
78
+ /**
79
+ * The generic action configuration UI. This requires you to provide a
80
+ * [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).
81
+ */
82
+ GENERIC = "GENERIC"
83
+ }
84
+ export interface WidgetComponentOptions {
85
+ /**
86
+ * Widget component name.
87
+ * @minLength 1
88
+ * @maxLength 80
89
+ */
90
+ componentName?: string;
91
+ }
92
+ export interface GenericOptions {
93
+ /** UI schema. */
94
+ uiSchema?: Record<string, any> | null;
95
+ }
96
+ export declare enum SourceType {
97
+ UNKNOWN_SOURCE_TYPE = "UNKNOWN_SOURCE_TYPE",
98
+ /** The input/output schemas are constructed by developers in Dev Center using the self-service flow */
99
+ DEV_CENTER = "DEV_CENTER",
100
+ /** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */
101
+ WIX_API = "WIX_API"
102
+ }
103
+ export interface WixApiOptions {
104
+ /**
105
+ * Service entity fqdn
106
+ * @minLength 1
107
+ * @maxLength 100
108
+ */
109
+ serviceEntityFqdn?: string;
110
+ /**
111
+ * The service providing the API
112
+ * @minLength 1
113
+ * @maxLength 200
114
+ */
115
+ serviceName?: string;
116
+ /**
117
+ * The method name
118
+ * @minLength 1
119
+ * @maxLength 200
120
+ */
121
+ methodName?: string;
122
+ }
123
+ export interface Metadata {
124
+ /** Whether the action is only shown to advanced mode users (Wix staff). */
125
+ hidden?: boolean;
126
+ }
127
+ export interface ImplementedMethods {
128
+ /** Whether Validate Configuration is implemented. */
129
+ validateConfiguration?: boolean;
130
+ /** Whether Duplicate Input Mapping is implemented. */
131
+ duplicateInputMapping?: boolean;
132
+ /** Whether Generate Application Automation Input Mapping is implemented. */
133
+ generateApplicationAutomationInputMapping?: boolean;
134
+ /** Whether Get Quota Info is implemented. */
135
+ getQuotaInfo?: boolean;
136
+ /** Whether On Before Save is implemented. */
137
+ onBeforeSave?: boolean;
138
+ /** Whether On Reset is implemented. */
139
+ onReset?: boolean;
140
+ /** Whether Generate Action Input Mapping From Template is implemented. */
141
+ generateActionInputMappingFromTemplate?: boolean;
142
+ /** Whether On Remove is implemented. */
143
+ onRemove?: boolean;
144
+ /** Whether Get Dynamic Input Schema is implemented. */
145
+ getDynamicInputSchema?: boolean;
146
+ /** Whether Merge Input Mappings is implemented. */
147
+ mergeInputMappings?: boolean;
148
+ /** Whether Get Dynamic Output Schema is implemented. */
149
+ getDynamicOutputSchema?: boolean;
150
+ }
151
+ export declare enum ExecutionType {
152
+ /** Unknown type. */
153
+ UNKNOWN_EXECUTION_TYPE = "UNKNOWN_EXECUTION_TYPE",
154
+ /** Action completes immediately. */
155
+ SYNC = "SYNC",
156
+ /** Action completes asynchronously. */
157
+ ASYNC = "ASYNC"
158
+ }
159
+ export interface InterfaceConfiguration extends InterfaceConfigurationOptionsOneOf {
160
+ /** Details for the generic UI. */
161
+ genericOptions?: GenericOptions;
162
+ /** Type of action configuration UI. */
163
+ type?: Type;
164
+ }
165
+ /** @oneof */
166
+ export interface InterfaceConfigurationOptionsOneOf {
167
+ /** Details for the generic UI. */
168
+ genericOptions?: GenericOptions;
169
+ }
170
+ export interface Image {
171
+ /** WixMedia image ID. */
172
+ id?: string;
173
+ /** Image URL. */
174
+ url?: string;
175
+ /**
176
+ * Original image height.
177
+ * @readonly
178
+ */
179
+ height?: number;
180
+ /**
181
+ * Original image width.
182
+ * @readonly
183
+ */
184
+ width?: number;
185
+ /** Image alt text. */
186
+ altText?: string | null;
187
+ /**
188
+ * Image filename.
189
+ * @readonly
190
+ */
191
+ filename?: string | null;
192
+ }
193
+ export interface FocalPoint {
194
+ /** X-coordinate of the focal point. */
195
+ x?: number;
196
+ /** Y-coordinate of the focal point. */
197
+ y?: number;
198
+ /** crop by height */
199
+ height?: number | null;
200
+ /** crop by width */
201
+ width?: number | null;
202
+ }
203
+ export interface Source extends SourceOptionsOneOf {
204
+ /** Wix API options */
205
+ wixApiOptions?: WixApiOptions;
206
+ /** the source type */
207
+ type?: SourceType;
208
+ }
209
+ /** @oneof */
210
+ export interface SourceOptionsOneOf {
211
+ /** Wix API options */
212
+ wixApiOptions?: WixApiOptions;
213
+ }
214
+ export interface RetryExperimentCreation {
215
+ /** action spec info */
216
+ actionSpecInfo?: ActionSpecInfo;
217
+ /**
218
+ * app id
219
+ * @format GUID
220
+ */
221
+ appId?: string;
222
+ /** experiment action type */
223
+ experimentActionType?: ExperimentActionType;
224
+ /**
225
+ * component id
226
+ * @format GUID
227
+ */
228
+ componentId?: string;
229
+ }
230
+ export interface ActionSpecInfo {
231
+ /**
232
+ * Spec to conduct on for the automation
233
+ * @maxLength 128
234
+ */
235
+ spec?: string;
236
+ /**
237
+ * Value the spec should return in order to affect the user with the operation
238
+ * e.g. creation - show the users the automation, update - show the users the updated automation, deletion - not show the users the automation
239
+ * @maxLength 128
240
+ */
241
+ variantValue?: string | null;
242
+ /**
243
+ * Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)
244
+ * For example, if 50 is set, version 49 and below (including 49) will not expose the preinstalled automation to the user.
245
+ */
246
+ experimentVersion?: number;
247
+ }
248
+ export declare enum ExperimentActionType {
249
+ UNKNOWN_ACTION = "UNKNOWN_ACTION",
250
+ CREATE_COMPONENT = "CREATE_COMPONENT",
251
+ UPDATE_COMPONENT = "UPDATE_COMPONENT",
252
+ DELETE_COMPONENT = "DELETE_COMPONENT"
253
+ }
254
+ export interface CreateActionRequest {
255
+ /** The action to create */
256
+ action?: Action;
257
+ /** Action spec info */
258
+ actionSpecInfo?: ActionSpecInfo;
259
+ /**
260
+ * base uri for the action
261
+ * @maxLength 256
262
+ */
263
+ baseUri?: string;
264
+ }
265
+ export interface CreateActionResponse {
266
+ /** The created action */
267
+ action?: Action;
268
+ }
269
+ export interface UpdateActionRequest {
270
+ /** Action Configuration */
271
+ action?: Action;
272
+ /** Action spec info */
273
+ actionSpecInfo?: ActionSpecInfo;
274
+ }
275
+ export interface UpdateActionResponse {
276
+ /** Action Configuration */
277
+ updatedAction?: Action;
278
+ }
279
+ export interface DeleteActionRequest {
280
+ /**
281
+ * The action App Id
282
+ * @format GUID
283
+ */
284
+ actionAppId: string;
285
+ /**
286
+ * Action Configuration key
287
+ * @minLength 1
288
+ * @maxLength 100
289
+ */
290
+ actionKey: string;
291
+ }
292
+ export interface DeleteActionResponse {
293
+ }
294
+ export interface MigrateComponentToActionRequest {
295
+ /**
296
+ * The action App Id
297
+ * @format GUID
298
+ */
299
+ appId?: string;
300
+ /**
301
+ * The component id
302
+ * @format GUID
303
+ */
304
+ componentId?: string;
305
+ }
306
+ export interface MigrateComponentToActionResponse {
307
+ }
308
+ export interface GetRuntimeActionRequest {
309
+ /** The action App Id */
310
+ appId: string;
311
+ /** Action key */
312
+ actionKey: string;
313
+ }
314
+ export interface GetRuntimeActionResponse {
315
+ /** Action Configuration */
316
+ action?: Action;
317
+ }
318
+ export interface GetActionDynamicInputSchemaRequest {
319
+ /**
320
+ * The App ID of the action's owner.
321
+ * @format GUID
322
+ */
323
+ appId: string;
324
+ /**
325
+ * Action key as defined in an app's action configuration in the Wix Developers Center.
326
+ * For example, `send-email` or `generate-invoice`.
327
+ * @minLength 5
328
+ * @maxLength 50
329
+ */
330
+ actionKey: string;
331
+ /**
332
+ * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected
333
+ * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
334
+ * dynamically on each activation.
335
+ */
336
+ inputMapping: Record<string, any> | null;
337
+ }
338
+ export interface GetActionDynamicInputSchemaResponse {
339
+ /** A [JSON schema](https://json-schema.org/) containing the action's added dynamic fields and its static fields. */
340
+ inputSchema?: Record<string, any> | null;
341
+ /** A [UI schema](https://bo.wix.com/pages/automations-ui-lib/?path=/story/getting-started--about) is a JSON Schema that describes the UI of the static and dynamic fields. */
342
+ uiSchema?: Record<string, any> | null;
343
+ }
344
+ export interface ResolveActionsRequest {
345
+ /** Query options. */
346
+ query?: QueryV2;
347
+ }
348
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
349
+ /** Paging options to limit and skip the number of items. */
350
+ paging?: Paging;
351
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
352
+ cursorPaging?: CursorPaging;
353
+ /**
354
+ * Filter object.
355
+ *
356
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
357
+ */
358
+ filter?: Record<string, any> | null;
359
+ /**
360
+ * Sort object.
361
+ *
362
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
363
+ */
364
+ sort?: Sorting[];
365
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
366
+ fields?: string[];
367
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
368
+ fieldsets?: string[];
369
+ }
370
+ /** @oneof */
371
+ export interface QueryV2PagingMethodOneOf {
372
+ /** Paging options to limit and skip the number of items. */
373
+ paging?: Paging;
374
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
375
+ cursorPaging?: CursorPaging;
376
+ }
377
+ export interface Sorting {
378
+ /**
379
+ * Name of the field to sort by.
380
+ * @maxLength 512
381
+ */
382
+ fieldName?: string;
383
+ /** Sort order. */
384
+ order?: SortOrder;
385
+ }
386
+ export declare enum SortOrder {
387
+ ASC = "ASC",
388
+ DESC = "DESC"
389
+ }
390
+ export interface Paging {
391
+ /** Number of items to load. */
392
+ limit?: number | null;
393
+ /** Number of items to skip in the current sort order. */
394
+ offset?: number | null;
395
+ }
396
+ export interface CursorPaging {
397
+ /**
398
+ * Maximum number of items to return in the results.
399
+ * @max 100
400
+ */
401
+ limit?: number | null;
402
+ /**
403
+ * Pointer to the next or previous page in the list of results.
404
+ *
405
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
406
+ * Not relevant for the first request.
407
+ * @maxLength 16000
408
+ */
409
+ cursor?: string | null;
410
+ }
411
+ export interface ResolveActionsResponse {
412
+ /** Retrieved actions. */
413
+ actions?: Action[];
414
+ /** Paging metadata of the response. */
415
+ paging?: PagingMetadataV2;
416
+ }
417
+ export interface PagingMetadataV2 {
418
+ /** Number of items returned in the response. */
419
+ count?: number | null;
420
+ /** Offset that was requested. */
421
+ offset?: number | null;
422
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
423
+ total?: number | null;
424
+ /** Flag that indicates the server failed to calculate the `total` field. */
425
+ tooManyToCount?: boolean | null;
426
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
427
+ cursors?: Cursors;
428
+ }
429
+ export interface Cursors {
430
+ /**
431
+ * Cursor string pointing to the next page in the list of results.
432
+ * @maxLength 16000
433
+ */
434
+ next?: string | null;
435
+ /**
436
+ * Cursor pointing to the previous page in the list of results.
437
+ * @maxLength 16000
438
+ */
439
+ prev?: string | null;
440
+ }
441
+ export interface CopyInputMappingRequest {
442
+ /**
443
+ * Action app id
444
+ * @format GUID
445
+ */
446
+ appId: string;
447
+ /**
448
+ * Action key
449
+ * @maxLength 100
450
+ */
451
+ actionKey: string;
452
+ /** Action input mapping */
453
+ inputMapping: Record<string, any> | null;
454
+ }
455
+ export interface CopyInputMappingResponse {
456
+ /** New action input mapping */
457
+ inputMapping?: Record<string, any> | null;
458
+ }
459
+ export interface GetActionDynamicOutputSchemaRequest {
460
+ /**
461
+ * The App ID of the action's owner.
462
+ * @format GUID
463
+ */
464
+ appId: string;
465
+ /**
466
+ * Action key as defined in an app's action configuration in the Wix Developers Center.
467
+ * For example, `send-email` or `generate-invoice`.
468
+ * @minLength 5
469
+ * @maxLength 50
470
+ */
471
+ actionKey: string;
472
+ /**
473
+ * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected
474
+ * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
475
+ * dynamically on each activation.
476
+ * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.
477
+ */
478
+ inputMapping: Record<string, any> | null;
479
+ }
480
+ export interface GetActionDynamicOutputSchemaResponse {
481
+ /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
482
+ outputSchema?: Record<string, any> | null;
483
+ }
484
+ export interface BulkGetActionDynamicOutputSchemasRequest {
485
+ /**
486
+ * list of actions details which will be used to generate the output schemas
487
+ * @maxSize 20
488
+ * @minSize 1
489
+ */
490
+ actionsInputMappings: ActionInputMappings[];
491
+ }
492
+ export interface ActionInputMappings {
493
+ /**
494
+ * The App ID of the action's owner.
495
+ * @format GUID
496
+ */
497
+ appId?: string;
498
+ /**
499
+ * Action key as defined in an app's action configuration in the Wix Developers Center.
500
+ * For example, `send-email` or `generate-invoice`.
501
+ * @minLength 5
502
+ * @maxLength 50
503
+ */
504
+ actionKey?: string;
505
+ /**
506
+ * action identifier in the automation, useful for extracting out the output schema
507
+ * @format GUID
508
+ */
509
+ actionId?: string;
510
+ /**
511
+ * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected
512
+ * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
513
+ * dynamically on each activation.
514
+ * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.
515
+ */
516
+ inputMapping?: Record<string, any> | null;
517
+ }
518
+ export interface BulkGetActionDynamicOutputSchemasResponse {
519
+ /** list of action output schemas */
520
+ results?: BulkActionOutputSchemaResult[];
521
+ /** metadata of the bulk action */
522
+ bulkActionMetadata?: BulkActionMetadata;
523
+ }
524
+ export interface ItemMetadata {
525
+ /**
526
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
527
+ * @format GUID
528
+ */
529
+ id?: string | null;
530
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
531
+ originalIndex?: number;
532
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
533
+ success?: boolean;
534
+ /** Details about the error in case of failure. */
535
+ error?: ApplicationError;
536
+ }
537
+ export interface ApplicationError {
538
+ /** Error code. */
539
+ code?: string;
540
+ /** Description of the error. */
541
+ description?: string;
542
+ /** Data related to the error. */
543
+ data?: Record<string, any> | null;
544
+ }
545
+ export interface BulkActionOutputSchemaResult {
546
+ itemMetadata?: ItemMetadata;
547
+ /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
548
+ outputSchema?: Record<string, any> | null;
549
+ }
550
+ export interface BulkActionMetadata {
551
+ /** Number of items that were successfully processed. */
552
+ totalSuccesses?: number;
553
+ /** Number of items that couldn't be processed. */
554
+ totalFailures?: number;
555
+ /** Number of failures without details because detailed failure threshold was exceeded. */
556
+ undetailedFailures?: number;
557
+ }
558
+ export interface DomainEvent extends DomainEventBodyOneOf {
559
+ createdEvent?: EntityCreatedEvent;
560
+ updatedEvent?: EntityUpdatedEvent;
561
+ deletedEvent?: EntityDeletedEvent;
562
+ actionEvent?: ActionEvent;
563
+ /**
564
+ * Unique event ID.
565
+ * Allows clients to ignore duplicate webhooks.
566
+ */
567
+ id?: string;
568
+ /**
569
+ * Assumes actions are also always typed to an entity_type
570
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
571
+ */
572
+ entityFqdn?: string;
573
+ /**
574
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
575
+ * This is although the created/updated/deleted notion is duplication of the oneof types
576
+ * Example: created/updated/deleted/started/completed/email_opened
577
+ */
578
+ slug?: string;
579
+ /** ID of the entity associated with the event. */
580
+ entityId?: string;
581
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
582
+ eventTime?: Date | null;
583
+ /**
584
+ * Whether the event was triggered as a result of a privacy regulation application
585
+ * (for example, GDPR).
586
+ */
587
+ triggeredByAnonymizeRequest?: boolean | null;
588
+ /** If present, indicates the action that triggered the event. */
589
+ originatedFrom?: string | null;
590
+ /**
591
+ * A sequence number defining the order of updates to the underlying entity.
592
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
593
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
594
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
595
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
596
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
597
+ */
598
+ entityEventSequence?: string | null;
599
+ }
600
+ /** @oneof */
601
+ export interface DomainEventBodyOneOf {
602
+ createdEvent?: EntityCreatedEvent;
603
+ updatedEvent?: EntityUpdatedEvent;
604
+ deletedEvent?: EntityDeletedEvent;
605
+ actionEvent?: ActionEvent;
606
+ }
607
+ export interface EntityCreatedEvent {
608
+ entityAsJson?: string;
609
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
610
+ restoreInfo?: RestoreInfo;
611
+ }
612
+ export interface RestoreInfo {
613
+ deletedDate?: Date | null;
614
+ }
615
+ export interface EntityUpdatedEvent {
616
+ /**
617
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
618
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
619
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
620
+ */
621
+ currentEntityAsJson?: string;
622
+ }
623
+ export interface EntityDeletedEvent {
624
+ /** Entity that was deleted */
625
+ deletedEntityAsJson?: string | null;
626
+ }
627
+ export interface ActionEvent {
628
+ bodyAsJson?: string;
629
+ }
630
+ export interface MessageEnvelope {
631
+ /**
632
+ * App instance ID.
633
+ * @format GUID
634
+ */
635
+ instanceId?: string | null;
636
+ /**
637
+ * Event type.
638
+ * @maxLength 150
639
+ */
640
+ eventType?: string;
641
+ /** The identification type and identity data. */
642
+ identity?: IdentificationData;
643
+ /** Stringify payload. */
644
+ data?: string;
645
+ }
646
+ export interface IdentificationData extends IdentificationDataIdOneOf {
647
+ /**
648
+ * ID of a site visitor that has not logged in to the site.
649
+ * @format GUID
650
+ */
651
+ anonymousVisitorId?: string;
652
+ /**
653
+ * ID of a site visitor that has logged in to the site.
654
+ * @format GUID
655
+ */
656
+ memberId?: string;
657
+ /**
658
+ * ID of a Wix user (site owner, contributor, etc.).
659
+ * @format GUID
660
+ */
661
+ wixUserId?: string;
662
+ /**
663
+ * ID of an app.
664
+ * @format GUID
665
+ */
666
+ appId?: string;
667
+ /** @readonly */
668
+ identityType?: WebhookIdentityType;
669
+ }
670
+ /** @oneof */
671
+ export interface IdentificationDataIdOneOf {
672
+ /**
673
+ * ID of a site visitor that has not logged in to the site.
674
+ * @format GUID
675
+ */
676
+ anonymousVisitorId?: string;
677
+ /**
678
+ * ID of a site visitor that has logged in to the site.
679
+ * @format GUID
680
+ */
681
+ memberId?: string;
682
+ /**
683
+ * ID of a Wix user (site owner, contributor, etc.).
684
+ * @format GUID
685
+ */
686
+ wixUserId?: string;
687
+ /**
688
+ * ID of an app.
689
+ * @format GUID
690
+ */
691
+ appId?: string;
692
+ }
693
+ export declare enum WebhookIdentityType {
694
+ UNKNOWN = "UNKNOWN",
695
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
696
+ MEMBER = "MEMBER",
697
+ WIX_USER = "WIX_USER",
698
+ APP = "APP"
699
+ }