{"version":3,"sources":["../../src/premium-domains-v1-connected-domain-connected-domains.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateConnectedDomainRequest = z.object({\n  connectedDomain: z\n    .object({\n      _id: z\n        .string()\n        .describe(\n          'ID of the connected domain. Identical to the domain name including TLD.'\n        )\n        .optional(),\n      domain: z\n        .string()\n        .describe(\n          'Domain name including TLD.\\nBoth root domains and subdomains are supported.'\n        ),\n      connectionType: z.enum(['POINTING', 'NAMESERVERS', 'HIDDEN']).optional(),\n      siteInfo: z\n        .intersection(\n          z.object({\n            _id: z\n              .string()\n              .describe('ID of the site to which the domain is assigned.')\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            assignmentType: z.enum(['PRIMARY', 'REDIRECT']).optional(),\n          }),\n          z.xor([\n            z.object({ redirectInfo: z.never().optional() }),\n            z.object({\n              redirectInfo: z\n                .object({\n                  primaryDomain: z\n                    .string()\n                    .describe(\n                      'Primary domain to which this domain will redirect.'\n                    )\n                    .optional(),\n                })\n                .describe(\n                  'Redirect information, relevant when `assignmentType` = `REDIRECT`.'\n                ),\n            }),\n          ])\n        )\n        .describe(\n          \"Information about the site to which the domain is assigned, and whether\\nit's the primary domain or a redirect.\"\n        )\n        .optional(),\n      suppressNotifications: z\n        .boolean()\n        .describe(\n          'Whether the site owner receives standard email notifications from Wix about\\nthe connected domain.\\n\\nDefault: `false`'\n        )\n        .optional(),\n      dnsPropagationStatus: z\n        .enum(['COMPLETED', 'FAILED', 'IN_PROGRESS'])\n        .optional(),\n      _createdDate: z\n        .date()\n        .describe(\n          'Date and time the `connectedDomain` object was created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n      _updatedDate: z\n        .date()\n        .describe(\n          'Date and time the `connectedDomain` object was last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Domain to connect.'),\n});\nexport const CreateConnectedDomainResponse = z.object({\n  _id: z\n    .string()\n    .describe(\n      'ID of the connected domain. Identical to the domain name including TLD.'\n    )\n    .optional(),\n  domain: z\n    .string()\n    .describe(\n      'Domain name including TLD.\\nBoth root domains and subdomains are supported.'\n    )\n    .optional(),\n  connectionType: z\n    .enum(['POINTING', 'NAMESERVERS', 'HIDDEN'])\n    .describe('How the domain is connected to the Wix site.')\n    .optional(),\n  siteInfo: z\n    .intersection(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the site to which the domain is assigned.')\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        assignmentType: z\n          .enum(['PRIMARY', 'REDIRECT'])\n          .describe(\n            'The relationship assigned for this domain to the site.\\n\\nRead more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).'\n          )\n          .optional(),\n      }),\n      z.xor([\n        z.object({ redirectInfo: z.never().optional() }),\n        z.object({\n          redirectInfo: z\n            .object({\n              primaryDomain: z\n                .string()\n                .describe('Primary domain to which this domain will redirect.')\n                .optional(),\n            })\n            .describe(\n              'Redirect information, relevant when `assignmentType` = `REDIRECT`.'\n            ),\n        }),\n      ])\n    )\n    .describe(\n      \"Information about the site to which the domain is assigned, and whether\\nit's the primary domain or a redirect.\"\n    )\n    .optional(),\n  suppressNotifications: z\n    .boolean()\n    .describe(\n      'Whether the site owner receives standard email notifications from Wix about\\nthe connected domain.\\n\\nDefault: `false`'\n    )\n    .optional(),\n  dnsPropagationStatus: z\n    .enum(['COMPLETED', 'FAILED', 'IN_PROGRESS'])\n    .describe('DNS propagation status.')\n    .optional(),\n  _createdDate: z\n    .date()\n    .describe(\n      'Date and time the `connectedDomain` object was created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe(\n      'Date and time the `connectedDomain` object was last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n});\nexport const GetConnectedDomainRequest = z.object({\n  connectedDomainId: z\n    .string()\n    .describe(\n      'ID of the connected domain. Identical to the domain name including TLD.'\n    ),\n});\nexport const GetConnectedDomainResponse = z.object({\n  _id: z\n    .string()\n    .describe(\n      'ID of the connected domain. Identical to the domain name including TLD.'\n    )\n    .optional(),\n  domain: z\n    .string()\n    .describe(\n      'Domain name including TLD.\\nBoth root domains and subdomains are supported.'\n    )\n    .optional(),\n  connectionType: z\n    .enum(['POINTING', 'NAMESERVERS', 'HIDDEN'])\n    .describe('How the domain is connected to the Wix site.')\n    .optional(),\n  siteInfo: z\n    .intersection(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the site to which the domain is assigned.')\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        assignmentType: z\n          .enum(['PRIMARY', 'REDIRECT'])\n          .describe(\n            'The relationship assigned for this domain to the site.\\n\\nRead more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).'\n          )\n          .optional(),\n      }),\n      z.xor([\n        z.object({ redirectInfo: z.never().optional() }),\n        z.object({\n          redirectInfo: z\n            .object({\n              primaryDomain: z\n                .string()\n                .describe('Primary domain to which this domain will redirect.')\n                .optional(),\n            })\n            .describe(\n              'Redirect information, relevant when `assignmentType` = `REDIRECT`.'\n            ),\n        }),\n      ])\n    )\n    .describe(\n      \"Information about the site to which the domain is assigned, and whether\\nit's the primary domain or a redirect.\"\n    )\n    .optional(),\n  suppressNotifications: z\n    .boolean()\n    .describe(\n      'Whether the site owner receives standard email notifications from Wix about\\nthe connected domain.\\n\\nDefault: `false`'\n    )\n    .optional(),\n  dnsPropagationStatus: z\n    .enum(['COMPLETED', 'FAILED', 'IN_PROGRESS'])\n    .describe('DNS propagation status.')\n    .optional(),\n  _createdDate: z\n    .date()\n    .describe(\n      'Date and time the `connectedDomain` object was created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe(\n      'Date and time the `connectedDomain` object was last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n    )\n    .optional()\n    .nullable(),\n});\nexport const DeleteConnectedDomainRequest = z.object({\n  connectedDomainId: z\n    .string()\n    .describe(\n      'ID of the connected domain to delete. Identical to the domain name including TLD.'\n    ),\n});\nexport const DeleteConnectedDomainResponse = z.object({});\nexport const ListConnectedDomainsRequest = z.object({\n  options: z\n    .object({\n      paging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe('Number of domains to load.\\n\\nMin: `0`\\nMax: `100`')\n            .min(0)\n            .max(100)\n            .optional()\n            .nullable(),\n          cursor: z\n            .string()\n            .describe(\n              \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe('Cursor paging options.')\n        .optional(),\n    })\n    .describe('Filter options.')\n    .optional(),\n});\nexport const ListConnectedDomainsResponse = z.object({\n  pagingMetadata: z\n    .object({\n      count: z\n        .number()\n        .int()\n        .describe('Number of domains returned in the response.')\n        .optional()\n        .nullable(),\n      cursors: z\n        .object({\n          next: z\n            .string()\n            .describe('Cursor pointing to next page in the list of results.')\n            .optional()\n            .nullable(),\n          prev: z\n            .string()\n            .describe(\n              'Cursor pointing to previous page in the list of results.'\n            )\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n        )\n        .optional(),\n      hasNext: z\n        .boolean()\n        .describe(\n          'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n        )\n        .optional()\n        .nullable(),\n    })\n    .describe('Metadata about the returned list of connected domains.')\n    .optional(),\n  connectedDomains: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe(\n            'ID of the connected domain. Identical to the domain name including TLD.'\n          )\n          .optional(),\n        domain: z\n          .string()\n          .describe(\n            'Domain name including TLD.\\nBoth root domains and subdomains are supported.'\n          )\n          .optional(),\n        connectionType: z\n          .enum(['POINTING', 'NAMESERVERS', 'HIDDEN'])\n          .describe('How the domain is connected to the Wix site.')\n          .optional(),\n        siteInfo: z\n          .intersection(\n            z.object({\n              _id: z\n                .string()\n                .describe('ID of the site to which the domain is assigned.')\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              assignmentType: z\n                .enum(['PRIMARY', 'REDIRECT'])\n                .describe(\n                  'The relationship assigned for this domain to the site.\\n\\nRead more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).'\n                )\n                .optional(),\n            }),\n            z.xor([\n              z.object({ redirectInfo: z.never().optional() }),\n              z.object({\n                redirectInfo: z\n                  .object({\n                    primaryDomain: z\n                      .string()\n                      .describe(\n                        'Primary domain to which this domain will redirect.'\n                      )\n                      .optional(),\n                  })\n                  .describe(\n                    'Redirect information, relevant when `assignmentType` = `REDIRECT`.'\n                  ),\n              }),\n            ])\n          )\n          .describe(\n            \"Information about the site to which the domain is assigned, and whether\\nit's the primary domain or a redirect.\"\n          )\n          .optional(),\n        suppressNotifications: z\n          .boolean()\n          .describe(\n            'Whether the site owner receives standard email notifications from Wix about\\nthe connected domain.\\n\\nDefault: `false`'\n          )\n          .optional(),\n        dnsPropagationStatus: z\n          .enum(['COMPLETED', 'FAILED', 'IN_PROGRESS'])\n          .describe('DNS propagation status.')\n          .optional(),\n        _createdDate: z\n          .date()\n          .describe(\n            'Date and time the `connectedDomain` object was created in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n        _updatedDate: z\n          .date()\n          .describe(\n            'Date and time the `connectedDomain` object was last updated in\\n`YYYY-MM-DDThh:mm:ss.sssZ` format.'\n          )\n          .optional()\n          .nullable(),\n      })\n    )\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,+BAAiC,SAAO;AAAA,EACnD,iBACG,SAAO;AAAA,IACN,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,QACG,SAAO,EACP;AAAA,MACC;AAAA,IACF;AAAA,IACF,gBAAkB,OAAK,CAAC,YAAY,eAAe,QAAQ,CAAC,EAAE,SAAS;AAAA,IACvE,UACG;AAAA,MACG,SAAO;AAAA,QACP,KACG,SAAO,EACP,SAAS,iDAAiD,EAC1D;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,gBAAkB,OAAK,CAAC,WAAW,UAAU,CAAC,EAAE,SAAS;AAAA,MAC3D,CAAC;AAAA,MACC,MAAI;AAAA,QACF,SAAO,EAAE,cAAgB,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,QAC7C,SAAO;AAAA,UACP,cACG,SAAO;AAAA,YACN,eACG,SAAO,EACP;AAAA,cACC;AAAA,YACF,EACC,SAAS;AAAA,UACd,CAAC,EACA;AAAA,YACC;AAAA,UACF;AAAA,QACJ,CAAC;AAAA,MACH,CAAC;AAAA,IACH,EACC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,uBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,sBACG,OAAK,CAAC,aAAa,UAAU,aAAa,CAAC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