@wix/auto_sdk_automations_activations 1.0.131 → 1.0.133

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 (49) hide show
  1. package/build/cjs/index.d.ts +38 -3
  2. package/build/cjs/index.js +152 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +110 -5
  5. package/build/cjs/index.typings.js +134 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +8 -6
  8. package/build/cjs/meta.js +102 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +48 -1
  11. package/build/cjs/schemas.js +97 -2
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +38 -3
  14. package/build/es/index.mjs +149 -1
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +110 -5
  17. package/build/es/index.typings.mjs +131 -1
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +8 -6
  20. package/build/es/meta.mjs +99 -1
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +48 -1
  23. package/build/es/schemas.mjs +92 -1
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +38 -3
  26. package/build/internal/cjs/index.js +152 -2
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +110 -5
  29. package/build/internal/cjs/index.typings.js +134 -2
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +8 -6
  32. package/build/internal/cjs/meta.js +102 -2
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +48 -1
  35. package/build/internal/cjs/schemas.js +97 -2
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +38 -3
  38. package/build/internal/es/index.mjs +149 -1
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +110 -5
  41. package/build/internal/es/index.typings.mjs +131 -1
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +8 -6
  44. package/build/internal/es/meta.mjs +99 -1
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +48 -1
  47. package/build/internal/es/schemas.mjs +92 -1
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -84,6 +84,53 @@ declare const CancelEventRequest: z.ZodObject<{
84
84
  externalEntityId: z.ZodString;
85
85
  }, z.core.$strip>;
86
86
  declare const CancelEventResponse: z.ZodObject<{}, z.core.$strip>;
87
+ declare const RunAutomationRequest: z.ZodObject<{
88
+ identifierType: z.ZodEnum<{
89
+ PREINSTALLED: "PREINSTALLED";
90
+ AUTOMATION: "AUTOMATION";
91
+ }>;
92
+ options: z.ZodIntersection<z.ZodObject<{
93
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
94
+ migrationFlow: z.ZodOptional<z.ZodBoolean>;
95
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
96
+ automationIdentifier: z.ZodOptional<z.ZodNever>;
97
+ preinstalledIdentifier: z.ZodObject<{
98
+ appId: z.ZodOptional<z.ZodString>;
99
+ componentId: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ preinstalledIdentifier: z.ZodOptional<z.ZodNever>;
103
+ automationIdentifier: z.ZodObject<{
104
+ automationId: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>;
106
+ }, z.core.$strip>]>>;
107
+ }, z.core.$strip>;
108
+ declare const RunAutomationResponse: z.ZodObject<{
109
+ activationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
110
+ }, z.core.$strip>;
111
+ declare const TestAutomationRequest: z.ZodObject<{
112
+ identifierType: z.ZodEnum<{
113
+ PREINSTALLED: "PREINSTALLED";
114
+ AUTOMATION: "AUTOMATION";
115
+ }>;
116
+ options: z.ZodIntersection<z.ZodObject<{
117
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
118
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
119
+ automationIdentifier: z.ZodOptional<z.ZodNever>;
120
+ preinstalledIdentifier: z.ZodObject<{
121
+ appId: z.ZodOptional<z.ZodString>;
122
+ componentId: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ preinstalledIdentifier: z.ZodOptional<z.ZodNever>;
126
+ automationIdentifier: z.ZodObject<{
127
+ automationId: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strip>;
129
+ }, z.core.$strip>]>>;
130
+ }, z.core.$strip>;
131
+ declare const TestAutomationResponse: z.ZodObject<{
132
+ activationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
+ }, z.core.$strip>;
87
134
  declare const RerunActivationRequest: z.ZodObject<{
88
135
  activationId: z.ZodString;
89
136
  options: z.ZodOptional<z.ZodObject<{
@@ -119,4 +166,4 @@ declare const ReportActionInvocationCompletedRequest: z.ZodObject<{
119
166
  }, z.core.$strip>;
120
167
  declare const ReportActionInvocationCompletedResponse: z.ZodObject<{}, z.core.$strip>;
121
168
 
122
- export { BulkCancelEventRequest, BulkCancelEventResponse, BulkReportEventRequest, BulkReportEventResponse, CancelEventRequest, CancelEventResponse, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedResponse, ReportEventRequest, ReportEventResponse, RerunActivationRequest, RerunActivationResponse };
169
+ export { BulkCancelEventRequest, BulkCancelEventResponse, BulkReportEventRequest, BulkReportEventResponse, CancelEventRequest, CancelEventResponse, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedResponse, ReportEventRequest, ReportEventResponse, RerunActivationRequest, RerunActivationResponse, RunAutomationRequest, RunAutomationResponse, TestAutomationRequest, TestAutomationResponse };
@@ -41,7 +41,11 @@ __export(schemas_exports, {
41
41
  ReportEventRequest: () => ReportEventRequest,
42
42
  ReportEventResponse: () => ReportEventResponse,
43
43
  RerunActivationRequest: () => RerunActivationRequest,
44
- RerunActivationResponse: () => RerunActivationResponse
44
+ RerunActivationResponse: () => RerunActivationResponse,
45
+ RunAutomationRequest: () => RunAutomationRequest,
46
+ RunAutomationResponse: () => RunAutomationResponse,
47
+ TestAutomationRequest: () => TestAutomationRequest,
48
+ TestAutomationResponse: () => TestAutomationResponse
45
49
  });
46
50
  module.exports = __toCommonJS(schemas_exports);
47
51
 
@@ -204,6 +208,93 @@ var CancelEventRequest = z.object({
204
208
  )
205
209
  });
206
210
  var CancelEventResponse = z.object({});
211
+ var RunAutomationRequest = z.object({
212
+ identifierType: z.enum(["PREINSTALLED", "AUTOMATION"]),
213
+ options: z.intersection(
214
+ z.object({
215
+ payload: z.record(z.string(), z.any()).describe(
216
+ "Event payload, formatted as key:value pairs.\nMust comply with the payload schema\nif you provided one when configuring your trigger.\n\nKey names can include only alphanumeric characters or underscores\n(`A-Z`, `a-z`, `0-9`, `_`).\nThey cannot start with an underscore.\n\nValues can be strings, numbers, integers, booleans, or arrays.\nIf a value is an array, the array items must be objects,\nand nested object properties must be\nstrings, numbers, integers, or booleans only."
217
+ ),
218
+ migrationFlow: z.boolean().describe(
219
+ "When true, indicates this is a migration flow and should bypass\nthe check for future dates that have already passed."
220
+ ).optional()
221
+ }),
222
+ z.xor([
223
+ z.object({
224
+ automationIdentifier: z.never().optional(),
225
+ preinstalledIdentifier: z.object({
226
+ appId: z.string().describe("identifier for the application of the preinstalled").regex(
227
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
228
+ "Must be a valid GUID"
229
+ ).optional(),
230
+ componentId: z.string().describe("application component id").regex(
231
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
232
+ "Must be a valid GUID"
233
+ ).optional()
234
+ }).describe("a preinstalled automation identifier")
235
+ }),
236
+ z.object({
237
+ preinstalledIdentifier: z.never().optional(),
238
+ automationIdentifier: z.object({
239
+ automationId: z.string().describe("automation id").regex(
240
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
241
+ "Must be a valid GUID"
242
+ ).optional()
243
+ }).describe(
244
+ "a automation of any type identifier that will be available in future"
245
+ )
246
+ })
247
+ ])
248
+ )
249
+ });
250
+ var RunAutomationResponse = z.object({
251
+ activationId: z.string().describe("Activation ID generated (for tracking)").regex(
252
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
253
+ "Must be a valid GUID"
254
+ ).optional().nullable()
255
+ });
256
+ var TestAutomationRequest = z.object({
257
+ identifierType: z.enum(["PREINSTALLED", "AUTOMATION"]),
258
+ options: z.intersection(
259
+ z.object({
260
+ payload: z.record(z.string(), z.any()).describe(
261
+ "Event payload, formatted as key:value pairs.\nMust comply with the payload schema\nif you provided one when configuring your trigger.\n\nKey names can include only alphanumeric characters or underscores\n(`A-Z`, `a-z`, `0-9`, `_`).\nThey cannot start with an underscore.\n\nValues can be strings, numbers, integers, booleans, or arrays.\nIf a value is an array, the array items must be objects,\nand nested object properties must be\nstrings, numbers, integers, or booleans only."
262
+ )
263
+ }),
264
+ z.xor([
265
+ z.object({
266
+ automationIdentifier: z.never().optional(),
267
+ preinstalledIdentifier: z.object({
268
+ appId: z.string().describe("identifier for the application of the preinstalled").regex(
269
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
270
+ "Must be a valid GUID"
271
+ ).optional(),
272
+ componentId: z.string().describe("application component id").regex(
273
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
274
+ "Must be a valid GUID"
275
+ ).optional()
276
+ }).describe("a preinstalled automation identifier")
277
+ }),
278
+ z.object({
279
+ preinstalledIdentifier: z.never().optional(),
280
+ automationIdentifier: z.object({
281
+ automationId: z.string().describe("automation id").regex(
282
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
283
+ "Must be a valid GUID"
284
+ ).optional()
285
+ }).describe(
286
+ "a automation of any type identifier that will be available in future"
287
+ )
288
+ })
289
+ ])
290
+ )
291
+ });
292
+ var TestAutomationResponse = z.object({
293
+ activationId: z.string().describe("Activation ID generated (for tracking)").regex(
294
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
295
+ "Must be a valid GUID"
296
+ ).optional().nullable()
297
+ });
207
298
  var RerunActivationRequest = z.object({
208
299
  activationId: z.string().describe("The activation ID whose payload will be used for the rerun.").regex(
209
300
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -266,6 +357,10 @@ var ReportActionInvocationCompletedResponse = z.object({});
266
357
  ReportEventRequest,
267
358
  ReportEventResponse,
268
359
  RerunActivationRequest,
269
- RerunActivationResponse
360
+ RerunActivationResponse,
361
+ RunAutomationRequest,
362
+ RunAutomationResponse,
363
+ TestAutomationRequest,
364
+ TestAutomationResponse
270
365
  });
271
366
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/automations-v2-activation-activations.schemas.ts"],"sourcesContent":["export * from './src/automations-v2-activation-activations.schemas.js';\n","import * as z from 'zod';\n\nexport const ReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n options: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.\\n\\nKey names can include only alphanumeric characters or underscores\\n(`A-Z`, `a-z`, `0-9`, `_`).\\nThey cannot start with an underscore.\\n\\nValues can be strings, numbers, integers, booleans, or arrays.\\nIf a value is an array, the array items must be objects,\\nand nested object properties must be\\nstrings, numbers, integers, or booleans only.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nRequired if your app needs to\\n[cancel the event](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/cancel-event)\\nif the automation becomes no longer relevant.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#about-canceling-events)\\nfor more information.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .optional(),\n});\nexport const ReportEventResponse = z.object({\n activationIds: z.array(z.string()).max(100).optional(),\n});\nexport const BulkReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n eventsInfo: z\n .array(\n z.object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n )\n .min(1)\n .max(100),\n});\nexport const BulkReportEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key associated with the event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Metadata for the individual item in the request.')\n .optional(),\n eventInfo: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .describe('Event details for the item in the request.')\n .optional(),\n activationIds: z.array(z.string()).max(100).optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const BulkCancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose events you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityIds: z.array(z.string()).min(1).max(100),\n});\nexport const BulkCancelEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key related to the canceled event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n 'Metadata of the item, including its ID and success or failure status.'\n )\n .optional(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const CancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose event you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid)\\nfor more information.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const CancelEventResponse = z.object({});\nexport const RerunActivationRequest = z.object({\n activationId: z\n .string()\n .describe('The activation ID whose payload will be used for the rerun.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n options: z\n .object({\n skipDelays: z\n .boolean()\n .describe(\n 'When true, delay actions will be skipped (similar to test mode behavior).'\n )\n .optional(),\n })\n .describe('Options controlling execution behavior.')\n .optional(),\n })\n .optional(),\n});\nexport const RerunActivationResponse = z.object({\n activationId: z\n .string()\n .describe('Activation ID generated (for tracking)')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const ReportActionInvocationCompletedRequest = z.object({\n status: z.enum(['UNKNOWN_STATUS', 'SUCCESS', 'FAILURE']),\n invocationToken: z\n .string()\n .describe(\n \"Invocation token from Wix's original call to [Invoke](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke). Wix uses this token to match your results with the correct automation run.\\n\\nLearn more about [running an invoked action with a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow#run-an-invoked-action-with-a-timeout).\"\n )\n .max(2048),\n options: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z.never().optional(),\n }),\n z.object({\n failureInfo: z.never().optional(),\n successInfo: z\n .object({\n result: z\n .record(z.string(), z.any())\n .describe(\n \"Your action's results as specified in its [output schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-output-schema).\"\n )\n .optional()\n .nullable(),\n })\n .describe(\"When the `status` is `SUCCESS`, your action's results.\"),\n }),\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z\n .object({\n errorDescription: z\n .string()\n .describe('Why the action failed.')\n .max(1000)\n .optional(),\n })\n .describe('When the `status` is `FAILURE`, why the action failed.'),\n }),\n ])\n )\n .optional(),\n});\nexport const ReportActionInvocationCompletedResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,YACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,SACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,kBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,aACG,SAAO;AAAA,MACN,KACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI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A,MAClC,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aACG,SAAO;AAAA,UACN,QACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,YACC;AAAA,UACF,EACC,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA,SAAS,wDAAwD;AAAA,MACtE,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aACG,SAAO;AAAA,UACN,kBACG,SAAO,EACP,SAAS,wBAAwB,EACjC,IAAI,GAAI,EACR,SAAS;AAAA,QACd,CAAC,EACA,SAAS,wDAAwD;AAAA,MACtE,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,0CAA4C,SAAO,CAAC,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../schemas.ts","../../src/automations-v2-activation-activations.schemas.ts"],"sourcesContent":["export * from './src/automations-v2-activation-activations.schemas.js';\n","import * as z from 'zod';\n\nexport const ReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n options: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.\\n\\nKey names can include only alphanumeric characters or underscores\\n(`A-Z`, `a-z`, `0-9`, `_`).\\nThey cannot start with an underscore.\\n\\nValues can be strings, numbers, integers, booleans, or arrays.\\nIf a value is an array, the array items must be objects,\\nand nested object properties must be\\nstrings, numbers, integers, or booleans only.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nRequired if your app needs to\\n[cancel the event](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/cancel-event)\\nif the automation becomes no longer relevant.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#about-canceling-events)\\nfor more information.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .optional(),\n});\nexport const ReportEventResponse = z.object({\n activationIds: z.array(z.string()).max(100).optional(),\n});\nexport const BulkReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n eventsInfo: z\n .array(\n z.object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n )\n .min(1)\n .max(100),\n});\nexport const BulkReportEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key associated with the event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Metadata for the individual item in the request.')\n .optional(),\n eventInfo: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .describe('Event details for the item in the request.')\n .optional(),\n activationIds: z.array(z.string()).max(100).optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const BulkCancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose events you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityIds: z.array(z.string()).min(1).max(100),\n});\nexport const BulkCancelEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key related to the canceled event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n 'Metadata of the item, including its ID and success or failure status.'\n )\n .optional(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const CancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose event you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid)\\nfor more information.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const CancelEventResponse = z.object({});\nexport const RunAutomationRequest = z.object({\n identifierType: z.enum(['PREINSTALLED', 'AUTOMATION']),\n options: z.intersection(\n z.object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.\\n\\nKey names can include only alphanumeric characters or underscores\\n(`A-Z`, `a-z`, `0-9`, `_`).\\nThey cannot start with an underscore.\\n\\nValues can be strings, numbers, integers, booleans, or arrays.\\nIf a value is an array, the array items must be objects,\\nand nested object properties must be\\nstrings, numbers, integers, or booleans only.'\n ),\n migrationFlow: z\n .boolean()\n .describe(\n 'When true, indicates this is a migration flow and should bypass\\nthe check for future dates that have already passed.'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n automationIdentifier: z.never().optional(),\n preinstalledIdentifier: z\n .object({\n appId: z\n .string()\n .describe('identifier for the application of the preinstalled')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n componentId: z\n .string()\n .describe('application component id')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n .describe('a preinstalled automation identifier'),\n }),\n z.object({\n preinstalledIdentifier: z.never().optional(),\n automationIdentifier: z\n .object({\n automationId: z\n .string()\n .describe('automation id')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n .describe(\n 'a automation of any type identifier that will be available in future'\n ),\n }),\n ])\n ),\n});\nexport const RunAutomationResponse = z.object({\n activationId: z\n .string()\n .describe('Activation ID generated (for tracking)')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const TestAutomationRequest = z.object({\n identifierType: z.enum(['PREINSTALLED', 'AUTOMATION']),\n options: z.intersection(\n z.object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.\\n\\nKey names can include only alphanumeric characters or underscores\\n(`A-Z`, `a-z`, `0-9`, `_`).\\nThey cannot start with an underscore.\\n\\nValues can be strings, numbers, integers, booleans, or arrays.\\nIf a value is an array, the array items must be objects,\\nand nested object properties must be\\nstrings, numbers, integers, or booleans only.'\n ),\n }),\n z.xor([\n z.object({\n automationIdentifier: z.never().optional(),\n preinstalledIdentifier: z\n .object({\n appId: z\n .string()\n .describe('identifier for the application of the preinstalled')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n componentId: z\n .string()\n .describe('application component id')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n .describe('a preinstalled automation identifier'),\n }),\n z.object({\n preinstalledIdentifier: z.never().optional(),\n automationIdentifier: z\n .object({\n automationId: z\n .string()\n .describe('automation id')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n .describe(\n 'a automation of any type identifier that will be available in future'\n ),\n }),\n ])\n ),\n});\nexport const TestAutomationResponse = z.object({\n activationId: z\n .string()\n .describe('Activation ID generated (for tracking)')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const RerunActivationRequest = z.object({\n activationId: z\n .string()\n .describe('The activation ID whose payload will be used for the rerun.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n options: z\n .object({\n skipDelays: z\n .boolean()\n .describe(\n 'When true, delay actions will be skipped (similar to test mode behavior).'\n )\n .optional(),\n })\n .describe('Options controlling execution behavior.')\n .optional(),\n })\n .optional(),\n});\nexport const RerunActivationResponse = z.object({\n activationId: z\n .string()\n .describe('Activation ID generated (for tracking)')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const ReportActionInvocationCompletedRequest = z.object({\n status: z.enum(['UNKNOWN_STATUS', 'SUCCESS', 'FAILURE']),\n invocationToken: z\n .string()\n .describe(\n \"Invocation token from Wix's original call to [Invoke](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke). Wix uses this token to match your results with the correct automation run.\\n\\nLearn more about [running an invoked action with a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow#run-an-invoked-action-with-a-timeout).\"\n )\n .max(2048),\n options: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z.never().optional(),\n }),\n z.object({\n failureInfo: z.never().optional(),\n successInfo: z\n .object({\n result: z\n .record(z.string(), z.any())\n .describe(\n \"Your action's results as specified in its [output schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-output-schema).\"\n )\n .optional()\n .nullable(),\n })\n .describe(\"When the `status` is `SUCCESS`, your action's results.\"),\n }),\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z\n .object({\n errorDescription: z\n .string()\n .describe('Why the action failed.')\n .max(1000)\n .optional(),\n })\n .describe('When the `status` is `FAILURE`, why the action failed.'),\n }),\n ])\n )\n .optional(),\n});\nexport const ReportActionInvocationCompletedResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,YACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,SACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,kBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,aACG,SAAO;AAAA,MACN,KACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS;AAAA,MACZ,mBACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA,SAAS,wCAAwC,EACjD,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,eAAiB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AACvD,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,YACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,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CAAC;AACM,IAAM,yCAA2C,SAAO;AAAA,EAC7D,QAAU,OAAK,CAAC,kBAAkB,WAAW,SAAS,CAAC;AAAA,EACvD,iBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,IAAI;AAAA,EACX,SACG;AAAA,IACG,SAAO,CAAC,CAAC;AAAA,IACT,MAAI;AAAA,MACF,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aAAe,QAAM,EAAE,SAAS;AAAA,MAClC,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aACG,SAAO;AAAA,UACN,QACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,YACC;AAAA,UACF,EACC,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA,SAAS,wDAAwD;AAAA,MACtE,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aACG,SAAO;AAAA,UACN,kBACG,SAAO,EACP,SAAS,wBAAwB,EACjC,IAAI,GAAI,EACR,SAAS;AAAA,QACd,CAAC,EACA,SAAS,wDAAwD;AAAA,MACtE,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,0CAA4C,SAAO,CAAC,CAAC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.mjs';
3
- export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo, RerunActivationRequest, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, RunPreinstalledAutomationRequest, RunPreinstalledAutomationResponse, Runtime, RuntimeStatus, RuntimeStatusWithLiterals, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduleStatusWithLiterals, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SpiAction, SplitAction, SplitActionPath, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SuccessInfo, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TargetWithLiterals, TemplateOrigin, TestAutomationRequest, TestAutomationRequestIdentifierOneOf, TestAutomationResponse, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerInfo, TriggerSettings, Type, TypeWithLiterals, Units, UnitsWithLiterals, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, UpdateScheduleStatusRequest, UpdateScheduleStatusResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, V1RunAutomationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
2
+ import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, IdentifierTypeWithLiterals, EsbConfigResolverRunAutomationOptions, V1RunAutomationResponse, TestAutomationOptions, TestAutomationResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.mjs';
3
+ export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, EsbConfigResolverRunAutomationOptionsIdentifierOneOf, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo, RerunActivationRequest, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, RunPreinstalledAutomationRequest, RunPreinstalledAutomationResponse, Runtime, RuntimeStatus, RuntimeStatusWithLiterals, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduleStatusWithLiterals, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SpiAction, SplitAction, SplitActionPath, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SuccessInfo, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TargetWithLiterals, TemplateOrigin, TestAutomationOptionsIdentifierOneOf, TestAutomationRequest, TestAutomationRequestIdentifierOneOf, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerInfo, TriggerSettings, Type, TypeWithLiterals, Units, UnitsWithLiterals, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, UpdateScheduleStatusRequest, UpdateScheduleStatusResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function reportEvent$1(httpClient: HttpClient): ReportEventSignature;
6
6
  interface ReportEventSignature {
@@ -71,6 +71,39 @@ interface CancelEventSignature {
71
71
  */
72
72
  (triggerKey: string, externalEntityId: string): Promise<void>;
73
73
  }
74
+ declare function esbConfigResolverRunAutomation$1(httpClient: HttpClient): EsbConfigResolverRunAutomationSignature;
75
+ interface EsbConfigResolverRunAutomationSignature {
76
+ /**
77
+ * Runs an automation manually.
78
+ *
79
+ * This gives a user the ability to trigger the automation manually,
80
+ * without requiring an event to be reported to start the automation.
81
+ * As an example,
82
+ * consider an automation that sends a confirmation for a hotel booking when a user submits a reservation online.
83
+ * However, if the user calls the hotel directly to make the reservation, the automation isn't triggered.
84
+ * The site owner needs a way to send the automated confirmation without the user making an online booking.
85
+ * Run Automation provides this functionality.
86
+ *
87
+ *
88
+ * <blockquote class="important">
89
+ * __Permissions__
90
+ * This endpoint requires the Manage Your App
91
+ * [permission scope](https://devforum.wix.com/en/article/available-permissions).
92
+ * </blockquote>
93
+ * @param - identifier MUST be either AUTOMATION or PREINSTALLED
94
+ */
95
+ (identifierType: IdentifierTypeWithLiterals, options?: NonNullablePaths<EsbConfigResolverRunAutomationOptions, `payload`, 2>): Promise<V1RunAutomationResponse>;
96
+ }
97
+ declare function testAutomation$1(httpClient: HttpClient): TestAutomationSignature;
98
+ interface TestAutomationSignature {
99
+ /**
100
+ * Runs an automation manually in test mode.
101
+ *
102
+ * Similar to RunAutomation but always executed as TEST to allow running draft automations safely.
103
+ * @param - identifier MUST be either AUTOMATION or PREINSTALLED
104
+ */
105
+ (identifierType: IdentifierTypeWithLiterals, options: NonNullablePaths<TestAutomationOptions, `payload`, 2>): Promise<TestAutomationResponse>;
106
+ }
74
107
  declare function rerunActivation$1(httpClient: HttpClient): RerunActivationSignature;
75
108
  interface RerunActivationSignature {
76
109
  /**
@@ -101,7 +134,9 @@ declare const reportEvent: MaybeContext<BuildRESTFunction<typeof reportEvent$1>
101
134
  declare const bulkReportEvent: MaybeContext<BuildRESTFunction<typeof bulkReportEvent$1> & typeof bulkReportEvent$1>;
102
135
  declare const bulkCancelEvent: MaybeContext<BuildRESTFunction<typeof bulkCancelEvent$1> & typeof bulkCancelEvent$1>;
103
136
  declare const cancelEvent: MaybeContext<BuildRESTFunction<typeof cancelEvent$1> & typeof cancelEvent$1>;
137
+ declare const esbConfigResolverRunAutomation: MaybeContext<BuildRESTFunction<typeof esbConfigResolverRunAutomation$1> & typeof esbConfigResolverRunAutomation$1>;
138
+ declare const testAutomation: MaybeContext<BuildRESTFunction<typeof testAutomation$1> & typeof testAutomation$1>;
104
139
  declare const rerunActivation: MaybeContext<BuildRESTFunction<typeof rerunActivation$1> & typeof rerunActivation$1>;
105
140
  declare const reportActionInvocationCompleted: MaybeContext<BuildRESTFunction<typeof reportActionInvocationCompleted$1> & typeof reportActionInvocationCompleted$1>;
106
141
 
107
- export { BulkCancelEventResponse, BulkReportEventResponse, EventInfo, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportActionInvocationCompleted, reportEvent, rerunActivation };
142
+ export { BulkCancelEventResponse, BulkReportEventResponse, EsbConfigResolverRunAutomationOptions, EventInfo, IdentifierTypeWithLiterals, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, TestAutomationOptions, TestAutomationResponse, V1RunAutomationResponse, bulkCancelEvent, bulkReportEvent, cancelEvent, esbConfigResolverRunAutomation, reportActionInvocationCompleted, reportEvent, rerunActivation, testAutomation };
@@ -62,6 +62,22 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
62
62
  {
63
63
  srcPath: "/automations/v1/events/test-automation",
64
64
  destPath: "/v1/events/test-automation"
65
+ },
66
+ {
67
+ srcPath: "/automations/esbConfigResolver/v1/events/bulk-cancel",
68
+ destPath: "/v1/events/bulk-cancel"
69
+ },
70
+ {
71
+ srcPath: "/automations/esbConfigResolver/v1/events/bulk-report",
72
+ destPath: "/v1/events/bulk-report"
73
+ },
74
+ {
75
+ srcPath: "/automations/esbConfigResolver/v1/events/cancel",
76
+ destPath: "/v1/events/cancel"
77
+ },
78
+ {
79
+ srcPath: "/automations/esbConfigResolver/v1/events/report",
80
+ destPath: "/v1/events/report"
65
81
  }
66
82
  ],
67
83
  "platform.rise.ai": [
@@ -210,6 +226,48 @@ function cancelEvent(payload) {
210
226
  }
211
227
  return __cancelEvent;
212
228
  }
229
+ function esbConfigResolverRunAutomation(payload) {
230
+ function __esbConfigResolverRunAutomation({ host }) {
231
+ const metadata = {
232
+ entityFqdn: "wix.automations.v2.activation",
233
+ method: "POST",
234
+ methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.RunAutomation",
235
+ packageName: PACKAGE_NAME,
236
+ migrationOptions: {
237
+ optInTransformResponse: true
238
+ },
239
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
240
+ protoPath: "/v1/events/run-automation",
241
+ data: payload,
242
+ host
243
+ }),
244
+ data: payload
245
+ };
246
+ return metadata;
247
+ }
248
+ return __esbConfigResolverRunAutomation;
249
+ }
250
+ function testAutomation(payload) {
251
+ function __testAutomation({ host }) {
252
+ const metadata = {
253
+ entityFqdn: "wix.automations.v2.activation",
254
+ method: "POST",
255
+ methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.TestAutomation",
256
+ packageName: PACKAGE_NAME,
257
+ migrationOptions: {
258
+ optInTransformResponse: true
259
+ },
260
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
261
+ protoPath: "/v1/events/test-automation",
262
+ data: payload,
263
+ host
264
+ }),
265
+ data: payload
266
+ };
267
+ return metadata;
268
+ }
269
+ return __testAutomation;
270
+ }
213
271
  function rerunActivation(payload) {
214
272
  function __rerunActivation({ host }) {
215
273
  const metadata = {
@@ -522,6 +580,76 @@ async function cancelEvent2(triggerKey, externalEntityId) {
522
580
  throw transformedError;
523
581
  }
524
582
  }
583
+ async function esbConfigResolverRunAutomation2(identifierType, options) {
584
+ const { httpClient, sideEffects } = arguments[2];
585
+ const payload = renameKeysFromSDKRequestToRESTRequest({
586
+ identifierType,
587
+ preinstalledIdentifier: options?.preinstalledIdentifier,
588
+ automationIdentifier: options?.automationIdentifier,
589
+ payload: options?.payload,
590
+ migrationFlow: options?.migrationFlow
591
+ });
592
+ const reqOpts = esbConfigResolverRunAutomation(
593
+ payload
594
+ );
595
+ sideEffects?.onSiteCall?.();
596
+ try {
597
+ const result = await httpClient.request(reqOpts);
598
+ sideEffects?.onSuccess?.(result);
599
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
600
+ } catch (err) {
601
+ const transformedError = sdkTransformError(
602
+ err,
603
+ {
604
+ spreadPathsToArguments: {},
605
+ explicitPathsToArguments: {
606
+ identifierType: "$[0]",
607
+ preinstalledIdentifier: "$[1].preinstalledIdentifier",
608
+ automationIdentifier: "$[1].automationIdentifier",
609
+ payload: "$[1].payload",
610
+ migrationFlow: "$[1].migrationFlow"
611
+ },
612
+ singleArgumentUnchanged: false
613
+ },
614
+ ["identifierType", "options"]
615
+ );
616
+ sideEffects?.onError?.(err);
617
+ throw transformedError;
618
+ }
619
+ }
620
+ async function testAutomation2(identifierType, options) {
621
+ const { httpClient, sideEffects } = arguments[2];
622
+ const payload = renameKeysFromSDKRequestToRESTRequest({
623
+ identifierType,
624
+ preinstalledIdentifier: options?.preinstalledIdentifier,
625
+ automationIdentifier: options?.automationIdentifier,
626
+ payload: options?.payload
627
+ });
628
+ const reqOpts = testAutomation(payload);
629
+ sideEffects?.onSiteCall?.();
630
+ try {
631
+ const result = await httpClient.request(reqOpts);
632
+ sideEffects?.onSuccess?.(result);
633
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
634
+ } catch (err) {
635
+ const transformedError = sdkTransformError(
636
+ err,
637
+ {
638
+ spreadPathsToArguments: {},
639
+ explicitPathsToArguments: {
640
+ identifierType: "$[0]",
641
+ preinstalledIdentifier: "$[1].preinstalledIdentifier",
642
+ automationIdentifier: "$[1].automationIdentifier",
643
+ payload: "$[1].payload"
644
+ },
645
+ singleArgumentUnchanged: false
646
+ },
647
+ ["identifierType", "options"]
648
+ );
649
+ sideEffects?.onError?.(err);
650
+ throw transformedError;
651
+ }
652
+ }
525
653
  async function rerunActivation2(activationId, options) {
526
654
  const { httpClient, sideEffects } = arguments[2];
527
655
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -619,6 +747,22 @@ function cancelEvent3(httpClient) {
619
747
  { httpClient }
620
748
  );
621
749
  }
750
+ function esbConfigResolverRunAutomation3(httpClient) {
751
+ return (identifierType, options) => esbConfigResolverRunAutomation2(
752
+ identifierType,
753
+ options,
754
+ // @ts-ignore
755
+ { httpClient }
756
+ );
757
+ }
758
+ function testAutomation3(httpClient) {
759
+ return (identifierType, options) => testAutomation2(
760
+ identifierType,
761
+ options,
762
+ // @ts-ignore
763
+ { httpClient }
764
+ );
765
+ }
622
766
  function rerunActivation3(httpClient) {
623
767
  return (activationId, options) => rerunActivation2(
624
768
  activationId,
@@ -643,6 +787,8 @@ var reportEvent4 = /* @__PURE__ */ createRESTModule(reportEvent3);
643
787
  var bulkReportEvent4 = /* @__PURE__ */ createRESTModule(bulkReportEvent3);
644
788
  var bulkCancelEvent4 = /* @__PURE__ */ createRESTModule(bulkCancelEvent3);
645
789
  var cancelEvent4 = /* @__PURE__ */ createRESTModule(cancelEvent3);
790
+ var esbConfigResolverRunAutomation4 = /* @__PURE__ */ createRESTModule(esbConfigResolverRunAutomation3);
791
+ var testAutomation4 = /* @__PURE__ */ createRESTModule(testAutomation3);
646
792
  var rerunActivation4 = /* @__PURE__ */ createRESTModule(rerunActivation3);
647
793
  var reportActionInvocationCompleted4 = /* @__PURE__ */ createRESTModule(reportActionInvocationCompleted3);
648
794
  export {
@@ -671,8 +817,10 @@ export {
671
817
  bulkCancelEvent4 as bulkCancelEvent,
672
818
  bulkReportEvent4 as bulkReportEvent,
673
819
  cancelEvent4 as cancelEvent,
820
+ esbConfigResolverRunAutomation4 as esbConfigResolverRunAutomation,
674
821
  reportActionInvocationCompleted4 as reportActionInvocationCompleted,
675
822
  reportEvent4 as reportEvent,
676
- rerunActivation4 as rerunActivation
823
+ rerunActivation4 as rerunActivation,
824
+ testAutomation4 as testAutomation
677
825
  };
678
826
  //# sourceMappingURL=index.mjs.map