{"version":3,"sources":["../../../src/devcenter-scripts-v1-script-properties-embedded-scripts.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const EmbedScriptRequest = z.object({\n  properties: z\n    .object({\n      parameters: z\n        .record(z.string(), z.string())\n        .describe(\n          'Dynamic parameters available to the script when it runs on the site.\\n\\nLearn more about [using dynamic parameters](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#using-dynamic-parameters-in-your-html-code).'\n        )\n        .optional(),\n      disabled: z\n        .boolean()\n        .describe('Whether to disable the script. Default: `false`.')\n        .optional(),\n    })\n    .describe('Details of the script to embed.'),\n  options: z\n    .object({\n      componentId: z\n        .string()\n        .describe(\n          \"Extension ID of the embedded script.\\n\\nYou can find the extension ID in the **Extensions** page in the [app dashboard](https://manage.wix.com/account/custom-apps). If you added the embedded script extension [using the Wix CLI](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/add-an-embedded-script-extension), you can also find it in the extension's [`embedded.extension.ts` file](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#embeddedextensionts).\"\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    .optional(),\n});\nexport const EmbedScriptResponse = z.object({\n  properties: z\n    .object({\n      parameters: z\n        .record(z.string(), z.string())\n        .describe(\n          'Dynamic parameters available to the script when it runs on the site.\\n\\nLearn more about [using dynamic parameters](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#using-dynamic-parameters-in-your-html-code).'\n        )\n        .optional(),\n      disabled: z\n        .boolean()\n        .describe('Whether to disable the script. Default: `false`.')\n        .optional(),\n    })\n    .describe('Details of the embedded script.')\n    .optional(),\n});\nexport const GetEmbeddedScriptRequest = z.object({\n  options: z\n    .object({\n      componentId: z\n        .string()\n        .describe(\n          \"Extension ID of the embedded script to retrieve.\\n\\nYou can find the extension ID in the **Extensions** page in the [app dashboard](https://manage.wix.com/account/custom-apps). If you added the embedded script extension [using the Wix CLI](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/add-an-embedded-script-extension), you can also find it in the extension's [`embedded.extension.ts` file](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#embeddedextensionts).\"\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    .optional(),\n});\nexport const GetEmbeddedScriptResponse = z.object({\n  parameters: z\n    .record(z.string(), z.string())\n    .describe(\n      'Dynamic parameters available to the script when it runs on the site.\\n\\nLearn more about [using dynamic parameters](https://dev.wix.com/docs/wix-cli/guides/extensions/site-extensions/embedded-scripts/embedded-script-extension-files-and-code#using-dynamic-parameters-in-your-html-code).'\n    )\n    .optional(),\n  disabled: z\n    .boolean()\n    .describe('Whether to disable the script. Default: `false`.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,YACG,SAAO;AAAA,IACN,YACG,SAAS,SAAO,GAAK,SAAO,CAAC,EAC7B;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,UAAQ,EACR,SAAS,kDAAkD,EAC3D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,iCAAiC;AAAA,EAC7C,SACG,SAAO;AAAA,IACN,aACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,YACG,SAAO;AAAA,IACN,YACG,SAAS,SAAO,GAAK,SAAO,CAAC,EAC7B;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,UAAQ,EACR,SAAS,kDAAkD,EAC3D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,iCAAiC,EAC1C,SAAS;AACd,CAAC;AACM,IAAM,2BAA6B,SAAO;AAAA,EAC/C,SACG,SAAO;AAAA,IACN,aACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,4BAA8B,SAAO;AAAA,EAChD,YACG,SAAS,SAAO,GAAK,SAAO,CAAC,EAC7B;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,UACG,UAAQ,EACR,SAAS,kDAAkD,EAC3D,SAAS;AACd,CAAC;","names":[]}