@wix/auto_sdk_functions_function-productions 1.0.23 → 1.0.24
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.
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +14 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +36 -0
- package/build/cjs/schemas.js +72 -4
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +14 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +36 -0
- package/build/es/schemas.mjs +72 -4
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +14 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +36 -0
- package/build/internal/cjs/schemas.js +72 -4
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +14 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +36 -0
- package/build/internal/es/schemas.mjs +72 -4
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/schemas.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions-v1-production-function-productions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateFunctionProductionRequest = z.object({\n functionProduction: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z.enum(['BLANK', 'TEMPLATE']),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe(\n 'Function SPI configuration dev center component payload.'\n )\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.')\n .optional(),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z.enum(['ACTIVE', 'INACTIVE']).optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n readonlyActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe(\n 'When the automation is a draft, the draft details.'\n )\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n ])\n )\n )\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe(\n 'Options for creating a function from a function template.'\n ),\n }),\n ])\n )\n .describe('Function production to create.'),\n});\nexport const CreateFunctionProductionResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z\n .enum(['BLANK', 'TEMPLATE'])\n .describe('Type that the function is created from.')\n .optional(),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe('Function SPI configuration dev center component payload.')\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.')\n .optional(),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .describe('Activation status')\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z\n .enum(['ACTIVE', 'INACTIVE'])\n .describe('Status of the automation on the site.')\n .optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe('Unit in which to set the action offset.')\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .describe(\n '[Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type).'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .describe(\"How the automation was added to the user's site.\")\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z.array(z.string()).max(30).optional(),\n readonlyActionIds: z.array(z.string()).max(30).optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe('When the automation is a draft, the draft details.')\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n ])\n )\n )\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z.never().optional(),\n }),\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe('Options for creating a function from a function template.'),\n }),\n ])\n);\nexport const UpdateFunctionProductionRequest = z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 functionProduction: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z.enum(['BLANK', 'TEMPLATE']).optional(),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe(\n 'Function SPI configuration dev center component payload.'\n )\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.'),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z.enum(['ACTIVE', 'INACTIVE']).optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n readonlyActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe(\n 'When the automation is a draft, the draft details.'\n )\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n ])\n )\n )\n .max(100),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z.never().optional(),\n }),\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe(\n 'Options for creating a function from a function template.'\n ),\n }),\n ])\n )\n .describe('Function production to update.'),\n});\nexport const UpdateFunctionProductionResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z\n .enum(['BLANK', 'TEMPLATE'])\n .describe('Type that the function is created from.')\n .optional(),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe('Function SPI configuration dev center component payload.')\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.')\n .optional(),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .describe('Activation status')\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z\n .enum(['ACTIVE', 'INACTIVE'])\n .describe('Status of the automation on the site.')\n .optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe('Unit in which to set the action offset.')\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .describe(\n '[Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type).'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .describe(\"How the automation was added to the user's site.\")\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z.array(z.string()).max(30).optional(),\n readonlyActionIds: z.array(z.string()).max(30).optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe('When the automation is a draft, the draft details.')\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n ])\n )\n )\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z.never().optional(),\n }),\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe('Options for creating a function from a function template.'),\n }),\n ])\n);\nexport const DeleteFunctionProductionRequest = z.object({\n functionProductionId: z\n .string()\n .describe('ID of the function production to delete.')\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 DeleteFunctionProductionResponse = z.object({});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,kCAAoC,SAAO;AAAA,EACtD,oBACG;AAAA,IACG,SAAO;AAAA,MACP,KACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,MAAQ,OAAK,CAAC,SAAS,UAAU,CAAC;AAAA,MAClC,0BACG,SAAO;AAAA,QACN,KACG,SAAO,EACP,SAAS,sBAAsB,EAC/B;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,QACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,QACZ,cACG,OAAK,EACL,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP,SAAS,aAAa,EACtB;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,eACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA,SAAS,gDAAgD,EACzD,SAAS;AAAA,MACZ,UACG,SAAO;AAAA,QACN,KACG,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,UACC;AAAA,U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M,kCAAoC,SAAO;AAAA,EACtD,sBACG,SAAO,EACP,SAAS,0CAA0C,EACnD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,mCAAqC,SAAO,CAAC,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/functions-v1-production-function-productions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateFunctionProductionRequest = z.object({\n functionProduction: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z.enum(['BLANK', 'TEMPLATE']),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe(\n 'Function SPI configuration dev center component payload.'\n )\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.')\n .optional(),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z.enum(['ACTIVE', 'INACTIVE']).optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n readonlyActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe(\n 'When the automation is a draft, the draft details.'\n )\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the template automation.'\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 })\n .describe(\n 'When the origin of the automation is `TEMPLATE`, the details of the template automation.'\n ),\n }),\n ])\n )\n )\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe(\n 'Options for creating a function from a function template.'\n ),\n }),\n ])\n )\n .describe('Function production to create.'),\n});\nexport const CreateFunctionProductionResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z\n .enum(['BLANK', 'TEMPLATE'])\n .describe('Type that the function is created from.')\n .optional(),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe('Function SPI configuration dev center component payload.')\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.')\n .optional(),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .describe('Activation status')\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z\n .enum(['ACTIVE', 'INACTIVE'])\n .describe('Status of the automation on the site.')\n .optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe('Unit in which to set the action offset.')\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .describe(\n '[Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type).'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .describe(\"How the automation was added to the user's site.\")\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z.array(z.string()).max(30).optional(),\n readonlyActionIds: z.array(z.string()).max(30).optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe('When the automation is a draft, the draft details.')\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the template automation.'\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 })\n .describe(\n 'When the origin of the automation is `TEMPLATE`, the details of the template automation.'\n ),\n }),\n ])\n )\n )\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z.never().optional(),\n }),\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe('Options for creating a function from a function template.'),\n }),\n ])\n);\nexport const UpdateFunctionProductionRequest = z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 functionProduction: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z.enum(['BLANK', 'TEMPLATE']).optional(),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe(\n 'Function SPI configuration dev center component payload.'\n )\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.'),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z.enum(['ACTIVE', 'INACTIVE']).optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n readonlyActionIds: z\n .array(z.string())\n .max(30)\n .optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe(\n 'When the automation is a draft, the draft details.'\n )\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the template automation.'\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 })\n .describe(\n 'When the origin of the automation is `TEMPLATE`, the details of the template automation.'\n ),\n }),\n ])\n )\n )\n .max(100),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z.never().optional(),\n }),\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe(\n 'Options for creating a function from a function template.'\n ),\n }),\n ])\n )\n .describe('Function production to update.'),\n});\nexport const UpdateFunctionProductionResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n \"Function production ID. This is the same as the created function's ID.\"\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 appId: z\n .string()\n .describe(\n 'App ID of the business solution that created the function type the function production is based on.'\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 type: z\n .enum(['BLANK', 'TEMPLATE'])\n .describe('Type that the function is created from.')\n .optional(),\n functionSpiConfiguration: z\n .object({\n _id: z\n .string()\n .describe('SpiConfiguration 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('SpiConfiguration revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the SpiConfiguration was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the SpiConfiguration was last updated.')\n .optional()\n .nullable(),\n functionId: z\n .string()\n .describe('Function 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 .nullable(),\n configuration: z\n .record(z.string(), z.any())\n .describe('Function SPI configuration dev center component payload.')\n .optional()\n .nullable(),\n })\n .describe('Service plugin configuration for the function.')\n .optional(),\n function: z\n .object({\n _id: z\n .string()\n .describe('Function 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the function is updated.\\nTo prevent conflicting changes,\\nthe current revision must be passed when updating the function.\\n\\nIgnored when creating a function.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function was last updated.')\n .optional()\n .nullable(),\n functionExtensionId: z\n .string()\n .describe(\"The function's app extension 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 .nullable(),\n functionName: z\n .string()\n .describe('Function name.')\n .max(100)\n .optional()\n .nullable(),\n activationStatus: z\n .enum(['ACTIVE', 'INACTIVE', 'DRAFT'])\n .describe('Activation status')\n .optional(),\n appId: z\n .string()\n .describe('ID of the app that defines the function.')\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 functionExtensionName: z\n .string()\n .describe(\"The function's app extension name.\")\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n functionTemplateExtensionId: z\n .string()\n .describe('Function template extension 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 .nullable(),\n })\n .describe('Function created from the function production.')\n .optional(),\n functionMethods: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Function method 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Function method revision.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the function method was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function method was last updated.')\n .optional()\n .nullable(),\n automationId: z\n .string()\n .describe('ID of the automation to link to the function.')\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 functionId: z\n .string()\n .describe(\n 'ID of the function that this method links to an automation.'\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 methodName: z\n .string()\n .describe('Display name for the function method.')\n .max(160)\n .optional(),\n })\n )\n .max(100)\n .optional(),\n automations: z\n .array(\n z.intersection(\n z.object({\n _id: 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 .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.'\n )\n .optional()\n .nullable(),\n createdBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who created the automation.')\n .optional(),\n _createdDate: z\n .date()\n .describe('When the automation was created.')\n .optional()\n .nullable(),\n updatedBy: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n userId: z.never().optional(),\n appId: z.never().optional(),\n }),\n z.object({\n appId: z.never().optional(),\n userId: z\n .string()\n .describe(\n '[User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).'\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 }),\n z.object({\n userId: z.never().optional(),\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 }),\n ])\n )\n .describe('Who last updated the automation.')\n .optional(),\n _updatedDate: z\n .date()\n .describe('When the automation was last updated.')\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\"Automation name as displayed on the user's site.\")\n .min(1)\n .max(500)\n .optional(),\n description: z\n .string()\n .describe('Automation description.')\n .max(2000)\n .optional()\n .nullable(),\n configuration: z\n .object({\n status: z\n .enum(['ACTIVE', 'INACTIVE'])\n .describe('Status of the automation on the site.')\n .optional(),\n trigger: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that defines the trigger.')\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 triggerKey: z\n .string()\n .describe(\n 'Trigger key.\\n\\nLearn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).'\n )\n .min(1)\n .max(100)\n .optional(),\n filters: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Filter 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 fieldKey: z\n .string()\n .describe(\n 'Field key.\\n\\nYou can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).'\n )\n .min(1)\n .max(110)\n .optional(),\n filterExpression: z\n .string()\n .describe(\n 'Filter expression in bracket notation.\\n\\nFor the automation to run, the expression must evaluate to `true`.'\n )\n .max(5000)\n .optional(),\n })\n )\n .max(5)\n .optional(),\n scheduledEventOffset: z\n .object({\n preScheduledEventOffsetExpression: z\n .string()\n .describe(\n 'Amount of time before the trigger to run the automation.\\n\\n> **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).'\n )\n .max(1000)\n .optional(),\n scheduledEventOffsetTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe('Unit in which to set the action offset.')\n .optional(),\n })\n .describe(\n 'Automation offset. You can schedule automations to run before the trigger occurs.\\n\\nLearn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).'\n )\n .optional(),\n rateLimit: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the trigger can be activated.'\n )\n .max(1000)\n .optional(),\n durationExpression: z\n .string()\n .describe(\n 'Duration of the rate limit. The rate limit applies for the specified duration and then expires.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n durationTimeUnit: z\n .enum(['MINUTES', 'HOURS', 'DAYS', 'WEEKS', 'MONTHS'])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Activation identifier used to count the number of activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Limit on the number of times an automation can be triggered.'\n )\n .optional(),\n overrideSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Trigger schema override. When specified, this replaces the trigger schema.'\n )\n .optional()\n .nullable(),\n })\n .describe('Trigger configuration.')\n .optional(),\n rootActionIds: z.array(z.string()).max(20).optional(),\n actions: z\n .record(\n z.string(),\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'Action ID.\\n\\nUnique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\\n\\nIf not specified, automatically generated by Wix.'\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 type: z\n .enum([\n 'APP_DEFINED',\n 'CONDITION',\n 'DELAY',\n 'RATE_LIMIT',\n 'CODE_CONDITION',\n ])\n .describe(\n '[Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type).'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Editable display name for the action.')\n .min(1)\n .max(60)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n '[Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\\n\\nIf the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n skipActionExpression: z\n .string()\n .describe(\n 'Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\\n\\nWhen empty, the action runs.'\n )\n .max(1000)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n }),\n z.object({\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n appDefinedInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that defines the action.'\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 actionKey: z\n .string()\n .describe('Action key.')\n .min(1)\n .max(100)\n .optional(),\n inputMapping: z\n .record(z.string(), z.any())\n .describe(\n \"Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\\n\\nThe input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\"\n )\n .optional()\n .nullable(),\n skipConditionOrExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n overrideOutputSchema: z\n .record(z.string(), z.any())\n .describe(\n 'Action output schema. When specified, this replaces the action schema.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the action whose `type` is `APP_DEFINED`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n conditionInfo: z\n .object({\n orExpressionGroups: z\n .array(\n z.object({\n operator: z\n .enum(['OR', 'AND'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n booleanExpressions: z\n .array(z.string())\n .min(1)\n .max(20)\n .optional(),\n })\n )\n .min(1)\n .max(10)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n codeConditionInfo: z\n .object({\n snippet: z\n .object({\n language: z\n .enum(['JAVASCRIPT'])\n .describe(\n 'Logical operator used to evaluate the condition expressions.'\n )\n .optional(),\n code: z\n .string()\n .describe(\n 'Expressions evaluated using the selected operator. this code should comply the language syntax. and format'\n )\n .max(1500)\n .optional(),\n })\n .describe(\n 'condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean.'\n )\n .optional(),\n dynamicVariableExpressions: z\n .array(z.string())\n .max(50)\n .optional(),\n truePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n falsePostActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n mergeActionId: z\n .string()\n .describe(\n 'ID of the MERGE action for this condition. When absent, branches run independently (current behavior).'\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 })\n .describe(\n 'Details of the action whose `type` is `CODE_CONDITION`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n rateLimitInfo: z.never().optional(),\n delayInfo: z\n .object({\n offsetExpression: z\n .string()\n .describe(\n 'Time to wait before running the action. The wait time starts from when the current action completes.\\n\\n> **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.'\n )\n .max(1000)\n .optional()\n .nullable(),\n offsetTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the wait time to wait before the action runs.'\n )\n .optional(),\n dueDateEpochExpression: z\n .string()\n .describe(\n 'Action run date in milliseconds elapsed since January 1, 1970 UTC.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n dueDateExpression: z\n .string()\n .describe(\n 'Action run date as a timestamp or DateTime expression using bracket notation.\\n\\n> **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.'\n )\n .max(1000)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `DELAY`.'\n ),\n }),\n z.object({\n appDefinedInfo: z.never().optional(),\n conditionInfo: z.never().optional(),\n codeConditionInfo: z.never().optional(),\n delayInfo: z.never().optional(),\n rateLimitInfo: z\n .object({\n maxActivationsExpression: z\n .string()\n .describe(\n 'Maximum number of times the action can run.'\n )\n .max(1000)\n .optional(),\n rateLimitDurationExpression: z\n .string()\n .describe(\n 'Rate limit duration.\\n\\nWhen empty, the rate limit does not expire.'\n )\n .max(1000)\n .optional()\n .nullable(),\n rateLimitDurationTimeUnit: z\n .enum([\n 'MINUTES',\n 'HOURS',\n 'DAYS',\n 'WEEKS',\n 'MONTHS',\n ])\n .describe(\n 'Unit in which to set the duration of the rate limit.'\n )\n .optional(),\n uniqueIdentifierExpression: z\n .string()\n .describe(\n 'Unique identifier of each activation by which rate limiter counts activations.'\n )\n .min(1)\n .max(400)\n .optional()\n .nullable(),\n postActionIds: z\n .array(z.string())\n .max(1)\n .optional(),\n })\n .describe(\n 'Details of the action whose `type` is `RATE_LIMIT`.'\n ),\n }),\n ])\n )\n )\n .describe(\n 'Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below.'\n )\n .optional(),\n })\n .describe('Automation configuration.')\n .optional(),\n origin: z\n .enum(['USER', 'APPLICATION', 'PREINSTALLED'])\n .describe(\"How the automation was added to the user's site.\")\n .optional(),\n settings: z\n .object({\n hidden: z\n .boolean()\n .describe(\n 'Whether the automation is hidden from users.\\n\\nDefault: `false`'\n )\n .optional(),\n readonly: z\n .boolean()\n .describe(\n \"Whether the automation is read-only.\\n\\nWhen `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\\n\\nDefault: `false`.\\n\\n> **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\"\n )\n .optional(),\n disableDelete: z\n .boolean()\n .describe(\n 'Whether to disable the option to delete the automation from the site.\\n\\nDefault: `false`.'\n )\n .optional(),\n disableStatusChange: z\n .boolean()\n .describe(\n \"Whether to disable the option to change the automation's `configuration.status`.\\n\\nDefault: `false`.\"\n )\n .optional(),\n actionSettings: z\n .object({\n permanentActionIds: z.array(z.string()).max(30).optional(),\n readonlyActionIds: z.array(z.string()).max(30).optional(),\n })\n .describe('Automation action settings.')\n .optional(),\n })\n .describe(\n 'Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations'\n )\n .optional(),\n draftInfo: z\n .object({\n originalAutomationId: z\n .string()\n .describe('ID of the original automation.')\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 })\n .describe('When the automation is a draft, the draft details.')\n .optional(),\n archived: z\n .boolean()\n .describe(\n 'Whether the automation is archived.\\n\\nTo archive an automation, set this to `true`. To restore an archived automation, set this to `false`.'\n )\n .optional(),\n autoArchivePolicy: z\n .object({\n archiveDate: z\n .date()\n .describe(\n 'Date when to archive the automation\\nIf this date in the past, nothing will happen (automation will not go into archived state)\\nIf this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\\nAfter this date the automation may be unarchived and archived again, this date will have no influence'\n )\n .optional()\n .nullable(),\n })\n .describe('Auto archive policy')\n .optional(),\n }),\n z.xor([\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n }),\n z.object({\n preinstalledInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n applicationInfo: z\n .object({\n appId: z\n .string()\n .describe(\n \"[App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\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 })\n .describe(\n 'When the origin of the automation is `APPLICATION`, the details of the app that created it.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n templateInfo: z.never().optional(),\n preinstalledInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).'\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 override: z\n .boolean()\n .describe(\n 'Whether the automation is an override.\\n\\nWhen a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\\n\\n> **Note**: An override automation can no longer be updated by the app that originally installed it.\\n>\\n> To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\\n\\nDefault: `false`.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation.'\n ),\n }),\n z.object({\n applicationInfo: z.never().optional(),\n preinstalledInfo: z.never().optional(),\n templateInfo: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that added the template automation.'\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 })\n .describe(\n 'When the origin of the automation is `TEMPLATE`, the details of the template automation.'\n ),\n }),\n ])\n )\n )\n .max(100)\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the function production was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the function production was last updated.')\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z.never().optional(),\n }),\n z.object({\n templateOptions: z.never().optional(),\n blankOptions: z\n .object({\n functionExtensionId: z\n .string()\n .describe(\n 'ID of the function type that the function was created from.'\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 })\n .describe('Options for creating a function from a function type.'),\n }),\n z.object({\n blankOptions: z.never().optional(),\n templateOptions: z\n .object({\n functionTemplateExtensionId: z\n .string()\n .describe(\n 'ID of the function template that the function was created from.'\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 })\n .describe('Options for creating a function from a function template.'),\n }),\n ])\n);\nexport const DeleteFunctionProductionRequest = z.object({\n functionProductionId: z\n .string()\n .describe('ID of the function production to delete.')\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 DeleteFunctionProductionResponse = z.object({});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,kCAAoC,SAAO;AAAA,EACtD,oBACG;AAAA,IACG,SAAO;AAAA,MACP,KACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,MAAQ,OAAK,CAAC,SAAS,UAAU,CAAC;AAAA,MAClC,0BACG,SAAO;AAAA,QACN,KACG,SAAO,EACP,SAAS,sBAAsB,EAC/B;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,QACZ,cACG,OAAK,EACL,SA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