@wix/auto_sdk_domains_dns-propagation 1.0.0 → 1.0.2

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.
@@ -0,0 +1,60 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const GetDnsPropagationRequest: z.ZodObject<{
4
+ dnsPropagationId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ declare const GetDnsPropagationResponse: z.ZodIntersection<z.ZodObject<{
7
+ _id: z.ZodOptional<z.ZodString>;
8
+ domain: z.ZodOptional<z.ZodString>;
9
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
12
+ status: z.ZodOptional<z.ZodEnum<{
13
+ SUCCEEDED: "SUCCEEDED";
14
+ FAILED: "FAILED";
15
+ IN_PROGRESS: "IN_PROGRESS";
16
+ }>>;
17
+ dnsResolverIncludesWixNs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
18
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
19
+ failureInfo: z.ZodOptional<z.ZodNever>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ failureInfo: z.ZodObject<{
22
+ invalidRecords: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23
+ INVALID_A_RECORD: "INVALID_A_RECORD";
24
+ INVALID_NS_RECORD: "INVALID_NS_RECORD";
25
+ INVALID_CNAME_RECORD: "INVALID_CNAME_RECORD";
26
+ }>>>;
27
+ invalidARecordInfo: z.ZodOptional<z.ZodObject<{
28
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ hostName: z.ZodOptional<z.ZodString>;
30
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ }, z.core.$strip>>>;
32
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ hostName: z.ZodOptional<z.ZodString>;
34
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>>;
37
+ invalidNsRecordInfo: z.ZodOptional<z.ZodObject<{
38
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ hostName: z.ZodOptional<z.ZodString>;
40
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>>>;
42
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ hostName: z.ZodOptional<z.ZodString>;
44
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strip>>>;
46
+ }, z.core.$strip>>;
47
+ invalidCnameRecordInfo: z.ZodOptional<z.ZodObject<{
48
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ hostName: z.ZodOptional<z.ZodString>;
50
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strip>>>;
52
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ hostName: z.ZodOptional<z.ZodString>;
54
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ }, z.core.$strip>>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>]>>;
59
+
60
+ export { GetDnsPropagationRequest, GetDnsPropagationResponse };
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ GetDnsPropagationRequest: () => GetDnsPropagationRequest,
34
+ GetDnsPropagationResponse: () => GetDnsPropagationResponse
35
+ });
36
+ module.exports = __toCommonJS(schemas_exports);
37
+
38
+ // src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts
39
+ var z = __toESM(require("zod"));
40
+ var GetDnsPropagationRequest = z.object({
41
+ dnsPropagationId: z.string().describe(
42
+ "ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology)."
43
+ )
44
+ });
45
+ var GetDnsPropagationResponse = z.intersection(
46
+ z.object({
47
+ _id: z.string().describe(
48
+ "ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain)."
49
+ ).optional(),
50
+ domain: z.string().describe(
51
+ "Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported."
52
+ ).optional(),
53
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
54
+ "Revision number, which increments by 1 each time the DNS propagation\nis updated. Ignored when creating a DNS propagation."
55
+ ).optional().nullable(),
56
+ _createdDate: z.date().describe("Date and time the DNS propagation was created.").optional().nullable(),
57
+ _updatedDate: z.date().describe("Date and time the DNS propagation was updated.").optional().nullable(),
58
+ status: z.enum(["SUCCEEDED", "FAILED", "IN_PROGRESS"]).describe(
59
+ "Current status of the DNS propagation. Can take up to 3 days to complete."
60
+ ).optional(),
61
+ dnsResolverIncludesWixNs: z.boolean().describe(
62
+ "Whether Wix name servers were detected among the domain's name servers.\nFor subdomains, this value matches the root domain's setting."
63
+ ).optional().nullable()
64
+ }),
65
+ z.xor([
66
+ z.object({ failureInfo: z.never().optional() }),
67
+ z.object({
68
+ failureInfo: z.object({
69
+ invalidRecords: z.array(
70
+ z.enum([
71
+ "INVALID_A_RECORD",
72
+ "INVALID_NS_RECORD",
73
+ "INVALID_CNAME_RECORD"
74
+ ])
75
+ ).optional(),
76
+ invalidARecordInfo: z.object({
77
+ expectedDnsRecords: z.array(
78
+ z.object({
79
+ hostName: z.string().describe(
80
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
81
+ ).optional(),
82
+ values: z.array(z.string()).min(1).max(10).optional()
83
+ })
84
+ ).max(10).optional(),
85
+ actualDnsRecords: z.array(
86
+ z.object({
87
+ hostName: z.string().describe(
88
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
89
+ ).optional(),
90
+ values: z.array(z.string()).min(1).max(10).optional()
91
+ })
92
+ ).max(10).optional()
93
+ }).describe(
94
+ "Details about the A record for which the DNS propagation has failed.\nIncludes all expected and current values of the A record."
95
+ ).optional(),
96
+ invalidNsRecordInfo: z.object({
97
+ expectedDnsRecords: z.array(
98
+ z.object({
99
+ hostName: z.string().describe(
100
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
101
+ ).optional(),
102
+ values: z.array(z.string()).min(1).max(10).optional()
103
+ })
104
+ ).max(10).optional(),
105
+ actualDnsRecords: z.array(
106
+ z.object({
107
+ hostName: z.string().describe(
108
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
109
+ ).optional(),
110
+ values: z.array(z.string()).min(1).max(10).optional()
111
+ })
112
+ ).max(10).optional()
113
+ }).describe(
114
+ "Details about the NS (nameserver) record for which the DNS propagation has failed.\nIncludes all expected and current values of the NS record."
115
+ ).optional(),
116
+ invalidCnameRecordInfo: z.object({
117
+ expectedDnsRecords: z.array(
118
+ z.object({
119
+ hostName: z.string().describe(
120
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
121
+ ).optional(),
122
+ values: z.array(z.string()).min(1).max(10).optional()
123
+ })
124
+ ).max(10).optional(),
125
+ actualDnsRecords: z.array(
126
+ z.object({
127
+ hostName: z.string().describe(
128
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
129
+ ).optional(),
130
+ values: z.array(z.string()).min(1).max(10).optional()
131
+ })
132
+ ).max(10).optional()
133
+ }).describe(
134
+ "Details about the CNAME record for which the DNS propagation has failed.\nIncludes all expected and current values of the CNAME records."
135
+ ).optional()
136
+ }).describe(
137
+ "Details about DNS propagation failure, including which record types failed.\nOnly present when `status` is `FAILED`."
138
+ )
139
+ })
140
+ ])
141
+ );
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ GetDnsPropagationRequest,
145
+ GetDnsPropagationResponse
146
+ });
147
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../schemas.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.schemas.js';\n","import * as z from 'zod';\n\nexport const GetDnsPropagationRequest = z.object({\n dnsPropagationId: z\n .string()\n .describe(\n 'ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).'\n ),\n});\nexport const GetDnsPropagationResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).'\n )\n .optional(),\n domain: z\n .string()\n .describe(\n 'Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.'\n )\n .optional(),\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 DNS propagation\\nis updated. Ignored when creating a DNS propagation.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the DNS propagation was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the DNS propagation was updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['SUCCEEDED', 'FAILED', 'IN_PROGRESS'])\n .describe(\n 'Current status of the DNS propagation. Can take up to 3 days to complete.'\n )\n .optional(),\n dnsResolverIncludesWixNs: z\n .boolean()\n .describe(\n \"Whether Wix name servers were detected among the domain's name servers.\\nFor subdomains, this value matches the root domain's setting.\"\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({ failureInfo: z.never().optional() }),\n z.object({\n failureInfo: z\n .object({\n invalidRecords: z\n .array(\n z.enum([\n 'INVALID_A_RECORD',\n 'INVALID_NS_RECORD',\n 'INVALID_CNAME_RECORD',\n ])\n )\n .optional(),\n invalidARecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the A record for which the DNS propagation has failed.\\nIncludes all expected and current values of the A record.'\n )\n .optional(),\n invalidNsRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the NS (nameserver) record for which the DNS propagation has failed.\\nIncludes all expected and current values of the NS record.'\n )\n .optional(),\n invalidCnameRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the CNAME record for which the DNS propagation has failed.\\nIncludes all expected and current values of the CNAME records.'\n )\n .optional(),\n })\n .describe(\n 'Details about DNS propagation failure, including which record types failed.\\nOnly present when `status` is `FAILED`.'\n ),\n }),\n ])\n);\n"],"mappings":";;;;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IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;","names":[]}
@@ -0,0 +1,60 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const GetDnsPropagationRequest: z.ZodObject<{
4
+ dnsPropagationId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ declare const GetDnsPropagationResponse: z.ZodIntersection<z.ZodObject<{
7
+ _id: z.ZodOptional<z.ZodString>;
8
+ domain: z.ZodOptional<z.ZodString>;
9
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
12
+ status: z.ZodOptional<z.ZodEnum<{
13
+ SUCCEEDED: "SUCCEEDED";
14
+ FAILED: "FAILED";
15
+ IN_PROGRESS: "IN_PROGRESS";
16
+ }>>;
17
+ dnsResolverIncludesWixNs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
18
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
19
+ failureInfo: z.ZodOptional<z.ZodNever>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ failureInfo: z.ZodObject<{
22
+ invalidRecords: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23
+ INVALID_A_RECORD: "INVALID_A_RECORD";
24
+ INVALID_NS_RECORD: "INVALID_NS_RECORD";
25
+ INVALID_CNAME_RECORD: "INVALID_CNAME_RECORD";
26
+ }>>>;
27
+ invalidARecordInfo: z.ZodOptional<z.ZodObject<{
28
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ hostName: z.ZodOptional<z.ZodString>;
30
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ }, z.core.$strip>>>;
32
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ hostName: z.ZodOptional<z.ZodString>;
34
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>>;
37
+ invalidNsRecordInfo: z.ZodOptional<z.ZodObject<{
38
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ hostName: z.ZodOptional<z.ZodString>;
40
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>>>;
42
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ hostName: z.ZodOptional<z.ZodString>;
44
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strip>>>;
46
+ }, z.core.$strip>>;
47
+ invalidCnameRecordInfo: z.ZodOptional<z.ZodObject<{
48
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ hostName: z.ZodOptional<z.ZodString>;
50
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strip>>>;
52
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ hostName: z.ZodOptional<z.ZodString>;
54
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ }, z.core.$strip>>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>]>>;
59
+
60
+ export { GetDnsPropagationRequest, GetDnsPropagationResponse };
@@ -0,0 +1,109 @@
1
+ // src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts
2
+ import * as z from "zod";
3
+ var GetDnsPropagationRequest = z.object({
4
+ dnsPropagationId: z.string().describe(
5
+ "ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology)."
6
+ )
7
+ });
8
+ var GetDnsPropagationResponse = z.intersection(
9
+ z.object({
10
+ _id: z.string().describe(
11
+ "ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain)."
12
+ ).optional(),
13
+ domain: z.string().describe(
14
+ "Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported."
15
+ ).optional(),
16
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
17
+ "Revision number, which increments by 1 each time the DNS propagation\nis updated. Ignored when creating a DNS propagation."
18
+ ).optional().nullable(),
19
+ _createdDate: z.date().describe("Date and time the DNS propagation was created.").optional().nullable(),
20
+ _updatedDate: z.date().describe("Date and time the DNS propagation was updated.").optional().nullable(),
21
+ status: z.enum(["SUCCEEDED", "FAILED", "IN_PROGRESS"]).describe(
22
+ "Current status of the DNS propagation. Can take up to 3 days to complete."
23
+ ).optional(),
24
+ dnsResolverIncludesWixNs: z.boolean().describe(
25
+ "Whether Wix name servers were detected among the domain's name servers.\nFor subdomains, this value matches the root domain's setting."
26
+ ).optional().nullable()
27
+ }),
28
+ z.xor([
29
+ z.object({ failureInfo: z.never().optional() }),
30
+ z.object({
31
+ failureInfo: z.object({
32
+ invalidRecords: z.array(
33
+ z.enum([
34
+ "INVALID_A_RECORD",
35
+ "INVALID_NS_RECORD",
36
+ "INVALID_CNAME_RECORD"
37
+ ])
38
+ ).optional(),
39
+ invalidARecordInfo: z.object({
40
+ expectedDnsRecords: z.array(
41
+ z.object({
42
+ hostName: z.string().describe(
43
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
44
+ ).optional(),
45
+ values: z.array(z.string()).min(1).max(10).optional()
46
+ })
47
+ ).max(10).optional(),
48
+ actualDnsRecords: z.array(
49
+ z.object({
50
+ hostName: z.string().describe(
51
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
52
+ ).optional(),
53
+ values: z.array(z.string()).min(1).max(10).optional()
54
+ })
55
+ ).max(10).optional()
56
+ }).describe(
57
+ "Details about the A record for which the DNS propagation has failed.\nIncludes all expected and current values of the A record."
58
+ ).optional(),
59
+ invalidNsRecordInfo: z.object({
60
+ expectedDnsRecords: z.array(
61
+ z.object({
62
+ hostName: z.string().describe(
63
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
64
+ ).optional(),
65
+ values: z.array(z.string()).min(1).max(10).optional()
66
+ })
67
+ ).max(10).optional(),
68
+ actualDnsRecords: z.array(
69
+ z.object({
70
+ hostName: z.string().describe(
71
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
72
+ ).optional(),
73
+ values: z.array(z.string()).min(1).max(10).optional()
74
+ })
75
+ ).max(10).optional()
76
+ }).describe(
77
+ "Details about the NS (nameserver) record for which the DNS propagation has failed.\nIncludes all expected and current values of the NS record."
78
+ ).optional(),
79
+ invalidCnameRecordInfo: z.object({
80
+ expectedDnsRecords: z.array(
81
+ z.object({
82
+ hostName: z.string().describe(
83
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
84
+ ).optional(),
85
+ values: z.array(z.string()).min(1).max(10).optional()
86
+ })
87
+ ).max(10).optional(),
88
+ actualDnsRecords: z.array(
89
+ z.object({
90
+ hostName: z.string().describe(
91
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
92
+ ).optional(),
93
+ values: z.array(z.string()).min(1).max(10).optional()
94
+ })
95
+ ).max(10).optional()
96
+ }).describe(
97
+ "Details about the CNAME record for which the DNS propagation has failed.\nIncludes all expected and current values of the CNAME records."
98
+ ).optional()
99
+ }).describe(
100
+ "Details about DNS propagation failure, including which record types failed.\nOnly present when `status` is `FAILED`."
101
+ )
102
+ })
103
+ ])
104
+ );
105
+ export {
106
+ GetDnsPropagationRequest,
107
+ GetDnsPropagationResponse
108
+ };
109
+ //# sourceMappingURL=schemas.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetDnsPropagationRequest = z.object({\n dnsPropagationId: z\n .string()\n .describe(\n 'ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).'\n ),\n});\nexport const GetDnsPropagationResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).'\n )\n .optional(),\n domain: z\n .string()\n .describe(\n 'Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.'\n )\n .optional(),\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 DNS propagation\\nis updated. Ignored when creating a DNS propagation.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the DNS propagation was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the DNS propagation was updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['SUCCEEDED', 'FAILED', 'IN_PROGRESS'])\n .describe(\n 'Current status of the DNS propagation. Can take up to 3 days to complete.'\n )\n .optional(),\n dnsResolverIncludesWixNs: z\n .boolean()\n .describe(\n \"Whether Wix name servers were detected among the domain's name servers.\\nFor subdomains, this value matches the root domain's setting.\"\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({ failureInfo: z.never().optional() }),\n z.object({\n failureInfo: z\n .object({\n invalidRecords: z\n .array(\n z.enum([\n 'INVALID_A_RECORD',\n 'INVALID_NS_RECORD',\n 'INVALID_CNAME_RECORD',\n ])\n )\n .optional(),\n invalidARecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the A record for which the DNS propagation has failed.\\nIncludes all expected and current values of the A record.'\n )\n .optional(),\n invalidNsRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the NS (nameserver) record for which the DNS propagation has failed.\\nIncludes all expected and current values of the NS record.'\n )\n .optional(),\n invalidCnameRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the CNAME record for which the DNS propagation has failed.\\nIncludes all expected and current values of the CNAME records.'\n )\n .optional(),\n })\n .describe(\n 'Details about DNS propagation failure, including which record types failed.\\nOnly present when `status` is `FAILED`.'\n ),\n }),\n ])\n);\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,2BAA6B,SAAO;AAAA,EAC/C,kBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B;AAAA,EACvC,SAAO;AAAA,IACP,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,QACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,QACG,OAAK,CAAC,aAAa,UAAU,aAAa,CAAC,EAC3C;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,0BACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC;AAAA,EACC,MAAI;AAAA,IACF,SAAO,EAAE,aAAe,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,IAC5C,SAAO;AAAA,MACP,aACG,SAAO;AAAA,QACN,gBACG;AAAA,UACG,OAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QACH,EACC,SAAS;AAAA,QACZ,oBACG,SAAO;AAAA,UACN,oBACG;AAAA,YACG,SAAO;AAAA,cACP,UACG,SAAO,EACP;AAAA,gBACC;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,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,UACZ,kBACG;AAAA,YACG,SAAO;AAAA,cACP,UACG,SAAO,EACP;AAAA,gBACC;AAAA,cACF,EACC,SAAS;AAAA,cACZ,QAAU,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;","names":[]}
@@ -0,0 +1,60 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const GetDnsPropagationRequest: z.ZodObject<{
4
+ dnsPropagationId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ declare const GetDnsPropagationResponse: z.ZodIntersection<z.ZodObject<{
7
+ _id: z.ZodOptional<z.ZodString>;
8
+ domain: z.ZodOptional<z.ZodString>;
9
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
12
+ status: z.ZodOptional<z.ZodEnum<{
13
+ SUCCEEDED: "SUCCEEDED";
14
+ FAILED: "FAILED";
15
+ IN_PROGRESS: "IN_PROGRESS";
16
+ }>>;
17
+ dnsResolverIncludesWixNs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
18
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
19
+ failureInfo: z.ZodOptional<z.ZodNever>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ failureInfo: z.ZodObject<{
22
+ invalidRecords: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23
+ INVALID_A_RECORD: "INVALID_A_RECORD";
24
+ INVALID_NS_RECORD: "INVALID_NS_RECORD";
25
+ INVALID_CNAME_RECORD: "INVALID_CNAME_RECORD";
26
+ }>>>;
27
+ invalidARecordInfo: z.ZodOptional<z.ZodObject<{
28
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ hostName: z.ZodOptional<z.ZodString>;
30
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ }, z.core.$strip>>>;
32
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ hostName: z.ZodOptional<z.ZodString>;
34
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>>;
37
+ invalidNsRecordInfo: z.ZodOptional<z.ZodObject<{
38
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ hostName: z.ZodOptional<z.ZodString>;
40
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>>>;
42
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ hostName: z.ZodOptional<z.ZodString>;
44
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strip>>>;
46
+ }, z.core.$strip>>;
47
+ invalidCnameRecordInfo: z.ZodOptional<z.ZodObject<{
48
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ hostName: z.ZodOptional<z.ZodString>;
50
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strip>>>;
52
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ hostName: z.ZodOptional<z.ZodString>;
54
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ }, z.core.$strip>>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>]>>;
59
+
60
+ export { GetDnsPropagationRequest, GetDnsPropagationResponse };
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ GetDnsPropagationRequest: () => GetDnsPropagationRequest,
34
+ GetDnsPropagationResponse: () => GetDnsPropagationResponse
35
+ });
36
+ module.exports = __toCommonJS(schemas_exports);
37
+
38
+ // src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts
39
+ var z = __toESM(require("zod"));
40
+ var GetDnsPropagationRequest = z.object({
41
+ dnsPropagationId: z.string().describe(
42
+ "ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology)."
43
+ )
44
+ });
45
+ var GetDnsPropagationResponse = z.intersection(
46
+ z.object({
47
+ _id: z.string().describe(
48
+ "ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain)."
49
+ ).optional(),
50
+ domain: z.string().describe(
51
+ "Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported."
52
+ ).optional(),
53
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
54
+ "Revision number, which increments by 1 each time the DNS propagation\nis updated. Ignored when creating a DNS propagation."
55
+ ).optional().nullable(),
56
+ _createdDate: z.date().describe("Date and time the DNS propagation was created.").optional().nullable(),
57
+ _updatedDate: z.date().describe("Date and time the DNS propagation was updated.").optional().nullable(),
58
+ status: z.enum(["SUCCEEDED", "FAILED", "IN_PROGRESS"]).describe(
59
+ "Current status of the DNS propagation. Can take up to 3 days to complete."
60
+ ).optional(),
61
+ dnsResolverIncludesWixNs: z.boolean().describe(
62
+ "Whether Wix name servers were detected among the domain's name servers.\nFor subdomains, this value matches the root domain's setting."
63
+ ).optional().nullable()
64
+ }),
65
+ z.xor([
66
+ z.object({ failureInfo: z.never().optional() }),
67
+ z.object({
68
+ failureInfo: z.object({
69
+ invalidRecords: z.array(
70
+ z.enum([
71
+ "INVALID_A_RECORD",
72
+ "INVALID_NS_RECORD",
73
+ "INVALID_CNAME_RECORD"
74
+ ])
75
+ ).optional(),
76
+ invalidARecordInfo: z.object({
77
+ expectedDnsRecords: z.array(
78
+ z.object({
79
+ hostName: z.string().describe(
80
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
81
+ ).optional(),
82
+ values: z.array(z.string()).min(1).max(10).optional()
83
+ })
84
+ ).max(10).optional(),
85
+ actualDnsRecords: z.array(
86
+ z.object({
87
+ hostName: z.string().describe(
88
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
89
+ ).optional(),
90
+ values: z.array(z.string()).min(1).max(10).optional()
91
+ })
92
+ ).max(10).optional()
93
+ }).describe(
94
+ "Details about the A record for which the DNS propagation has failed.\nIncludes all expected and current values of the A record."
95
+ ).optional(),
96
+ invalidNsRecordInfo: z.object({
97
+ expectedDnsRecords: z.array(
98
+ z.object({
99
+ hostName: z.string().describe(
100
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
101
+ ).optional(),
102
+ values: z.array(z.string()).min(1).max(10).optional()
103
+ })
104
+ ).max(10).optional(),
105
+ actualDnsRecords: z.array(
106
+ z.object({
107
+ hostName: z.string().describe(
108
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
109
+ ).optional(),
110
+ values: z.array(z.string()).min(1).max(10).optional()
111
+ })
112
+ ).max(10).optional()
113
+ }).describe(
114
+ "Details about the NS (nameserver) record for which the DNS propagation has failed.\nIncludes all expected and current values of the NS record."
115
+ ).optional(),
116
+ invalidCnameRecordInfo: z.object({
117
+ expectedDnsRecords: z.array(
118
+ z.object({
119
+ hostName: z.string().describe(
120
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
121
+ ).optional(),
122
+ values: z.array(z.string()).min(1).max(10).optional()
123
+ })
124
+ ).max(10).optional(),
125
+ actualDnsRecords: z.array(
126
+ z.object({
127
+ hostName: z.string().describe(
128
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
129
+ ).optional(),
130
+ values: z.array(z.string()).min(1).max(10).optional()
131
+ })
132
+ ).max(10).optional()
133
+ }).describe(
134
+ "Details about the CNAME record for which the DNS propagation has failed.\nIncludes all expected and current values of the CNAME records."
135
+ ).optional()
136
+ }).describe(
137
+ "Details about DNS propagation failure, including which record types failed.\nOnly present when `status` is `FAILED`."
138
+ )
139
+ })
140
+ ])
141
+ );
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ GetDnsPropagationRequest,
145
+ GetDnsPropagationResponse
146
+ });
147
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../schemas.ts","../../../src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.schemas.js';\n","import * as z from 'zod';\n\nexport const GetDnsPropagationRequest = z.object({\n dnsPropagationId: z\n .string()\n .describe(\n 'ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).'\n ),\n});\nexport const GetDnsPropagationResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).'\n )\n .optional(),\n domain: z\n .string()\n .describe(\n 'Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.'\n )\n .optional(),\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 DNS propagation\\nis updated. Ignored when creating a DNS propagation.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the DNS propagation was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the DNS propagation was updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['SUCCEEDED', 'FAILED', 'IN_PROGRESS'])\n .describe(\n 'Current status of the DNS propagation. Can take up to 3 days to complete.'\n )\n .optional(),\n dnsResolverIncludesWixNs: z\n .boolean()\n .describe(\n \"Whether Wix name servers were detected among the domain's name servers.\\nFor subdomains, this value matches the root domain's setting.\"\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({ failureInfo: z.never().optional() }),\n z.object({\n failureInfo: z\n .object({\n invalidRecords: z\n .array(\n z.enum([\n 'INVALID_A_RECORD',\n 'INVALID_NS_RECORD',\n 'INVALID_CNAME_RECORD',\n ])\n )\n .optional(),\n invalidARecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the A record for which the DNS propagation has failed.\\nIncludes all expected and current values of the A record.'\n )\n .optional(),\n invalidNsRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the NS (nameserver) record for which the DNS propagation has failed.\\nIncludes all expected and current values of the NS record.'\n )\n .optional(),\n invalidCnameRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the CNAME record for which the DNS propagation has failed.\\nIncludes all expected and current values of the CNAME records.'\n )\n .optional(),\n })\n .describe(\n 'Details about DNS propagation failure, including which record types failed.\\nOnly present when `status` is `FAILED`.'\n ),\n }),\n ])\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,2BAA6B,SAAO;AAAA,EAC/C,kBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B;AAAA,EACvC,SAAO;AAAA,IACP,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,QACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,QACG,OAAK,CAAC,aAAa,UAAU,aAAa,CAAC,EAC3C;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,0BACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC;AAAA,EACC,MAAI;AAAA,IACF,SAAO,EAAE,aAAe,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,IAC5C,SAAO;AAAA,MACP,aACG,SAAO;AAAA,QACN,gBACG;AAAA,UACG,OAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA;AAAA,UACF,CA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F,EACC,SAAS;AAAA,cACZ,QAAU,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,UACZ,kBACG;AAAA,YACG,SAAO;AAAA,cACP,UACG,SAAO,EACP;AAAA,gBACC;AAAA,cACF,EACC,SAAS;AAAA,cACZ,QAAU,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;","names":[]}
@@ -0,0 +1,60 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const GetDnsPropagationRequest: z.ZodObject<{
4
+ dnsPropagationId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ declare const GetDnsPropagationResponse: z.ZodIntersection<z.ZodObject<{
7
+ _id: z.ZodOptional<z.ZodString>;
8
+ domain: z.ZodOptional<z.ZodString>;
9
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
12
+ status: z.ZodOptional<z.ZodEnum<{
13
+ SUCCEEDED: "SUCCEEDED";
14
+ FAILED: "FAILED";
15
+ IN_PROGRESS: "IN_PROGRESS";
16
+ }>>;
17
+ dnsResolverIncludesWixNs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
18
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
19
+ failureInfo: z.ZodOptional<z.ZodNever>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ failureInfo: z.ZodObject<{
22
+ invalidRecords: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23
+ INVALID_A_RECORD: "INVALID_A_RECORD";
24
+ INVALID_NS_RECORD: "INVALID_NS_RECORD";
25
+ INVALID_CNAME_RECORD: "INVALID_CNAME_RECORD";
26
+ }>>>;
27
+ invalidARecordInfo: z.ZodOptional<z.ZodObject<{
28
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ hostName: z.ZodOptional<z.ZodString>;
30
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ }, z.core.$strip>>>;
32
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ hostName: z.ZodOptional<z.ZodString>;
34
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>>;
37
+ invalidNsRecordInfo: z.ZodOptional<z.ZodObject<{
38
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ hostName: z.ZodOptional<z.ZodString>;
40
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>>>;
42
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ hostName: z.ZodOptional<z.ZodString>;
44
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strip>>>;
46
+ }, z.core.$strip>>;
47
+ invalidCnameRecordInfo: z.ZodOptional<z.ZodObject<{
48
+ expectedDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ hostName: z.ZodOptional<z.ZodString>;
50
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strip>>>;
52
+ actualDnsRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ hostName: z.ZodOptional<z.ZodString>;
54
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ }, z.core.$strip>>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>]>>;
59
+
60
+ export { GetDnsPropagationRequest, GetDnsPropagationResponse };
@@ -0,0 +1,109 @@
1
+ // src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts
2
+ import * as z from "zod";
3
+ var GetDnsPropagationRequest = z.object({
4
+ dnsPropagationId: z.string().describe(
5
+ "ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology)."
6
+ )
7
+ });
8
+ var GetDnsPropagationResponse = z.intersection(
9
+ z.object({
10
+ _id: z.string().describe(
11
+ "ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain)."
12
+ ).optional(),
13
+ domain: z.string().describe(
14
+ "Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported."
15
+ ).optional(),
16
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
17
+ "Revision number, which increments by 1 each time the DNS propagation\nis updated. Ignored when creating a DNS propagation."
18
+ ).optional().nullable(),
19
+ _createdDate: z.date().describe("Date and time the DNS propagation was created.").optional().nullable(),
20
+ _updatedDate: z.date().describe("Date and time the DNS propagation was updated.").optional().nullable(),
21
+ status: z.enum(["SUCCEEDED", "FAILED", "IN_PROGRESS"]).describe(
22
+ "Current status of the DNS propagation. Can take up to 3 days to complete."
23
+ ).optional(),
24
+ dnsResolverIncludesWixNs: z.boolean().describe(
25
+ "Whether Wix name servers were detected among the domain's name servers.\nFor subdomains, this value matches the root domain's setting."
26
+ ).optional().nullable()
27
+ }),
28
+ z.xor([
29
+ z.object({ failureInfo: z.never().optional() }),
30
+ z.object({
31
+ failureInfo: z.object({
32
+ invalidRecords: z.array(
33
+ z.enum([
34
+ "INVALID_A_RECORD",
35
+ "INVALID_NS_RECORD",
36
+ "INVALID_CNAME_RECORD"
37
+ ])
38
+ ).optional(),
39
+ invalidARecordInfo: z.object({
40
+ expectedDnsRecords: z.array(
41
+ z.object({
42
+ hostName: z.string().describe(
43
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
44
+ ).optional(),
45
+ values: z.array(z.string()).min(1).max(10).optional()
46
+ })
47
+ ).max(10).optional(),
48
+ actualDnsRecords: z.array(
49
+ z.object({
50
+ hostName: z.string().describe(
51
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
52
+ ).optional(),
53
+ values: z.array(z.string()).min(1).max(10).optional()
54
+ })
55
+ ).max(10).optional()
56
+ }).describe(
57
+ "Details about the A record for which the DNS propagation has failed.\nIncludes all expected and current values of the A record."
58
+ ).optional(),
59
+ invalidNsRecordInfo: z.object({
60
+ expectedDnsRecords: z.array(
61
+ z.object({
62
+ hostName: z.string().describe(
63
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
64
+ ).optional(),
65
+ values: z.array(z.string()).min(1).max(10).optional()
66
+ })
67
+ ).max(10).optional(),
68
+ actualDnsRecords: z.array(
69
+ z.object({
70
+ hostName: z.string().describe(
71
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
72
+ ).optional(),
73
+ values: z.array(z.string()).min(1).max(10).optional()
74
+ })
75
+ ).max(10).optional()
76
+ }).describe(
77
+ "Details about the NS (nameserver) record for which the DNS propagation has failed.\nIncludes all expected and current values of the NS record."
78
+ ).optional(),
79
+ invalidCnameRecordInfo: z.object({
80
+ expectedDnsRecords: z.array(
81
+ z.object({
82
+ hostName: z.string().describe(
83
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
84
+ ).optional(),
85
+ values: z.array(z.string()).min(1).max(10).optional()
86
+ })
87
+ ).max(10).optional(),
88
+ actualDnsRecords: z.array(
89
+ z.object({
90
+ hostName: z.string().describe(
91
+ "Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains."
92
+ ).optional(),
93
+ values: z.array(z.string()).min(1).max(10).optional()
94
+ })
95
+ ).max(10).optional()
96
+ }).describe(
97
+ "Details about the CNAME record for which the DNS propagation has failed.\nIncludes all expected and current values of the CNAME records."
98
+ ).optional()
99
+ }).describe(
100
+ "Details about DNS propagation failure, including which record types failed.\nOnly present when `status` is `FAILED`."
101
+ )
102
+ })
103
+ ])
104
+ );
105
+ export {
106
+ GetDnsPropagationRequest,
107
+ GetDnsPropagationResponse
108
+ };
109
+ //# sourceMappingURL=schemas.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/premium-domains-v1-dns-propagation-dns-propagation.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetDnsPropagationRequest = z.object({\n dnsPropagationId: z\n .string()\n .describe(\n 'ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).'\n ),\n});\nexport const GetDnsPropagationResponse = z.intersection(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).'\n )\n .optional(),\n domain: z\n .string()\n .describe(\n 'Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.'\n )\n .optional(),\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 DNS propagation\\nis updated. Ignored when creating a DNS propagation.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the DNS propagation was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the DNS propagation was updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['SUCCEEDED', 'FAILED', 'IN_PROGRESS'])\n .describe(\n 'Current status of the DNS propagation. Can take up to 3 days to complete.'\n )\n .optional(),\n dnsResolverIncludesWixNs: z\n .boolean()\n .describe(\n \"Whether Wix name servers were detected among the domain's name servers.\\nFor subdomains, this value matches the root domain's setting.\"\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({ failureInfo: z.never().optional() }),\n z.object({\n failureInfo: z\n .object({\n invalidRecords: z\n .array(\n z.enum([\n 'INVALID_A_RECORD',\n 'INVALID_NS_RECORD',\n 'INVALID_CNAME_RECORD',\n ])\n )\n .optional(),\n invalidARecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the A record for which the DNS propagation has failed.\\nIncludes all expected and current values of the A record.'\n )\n .optional(),\n invalidNsRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the NS (nameserver) record for which the DNS propagation has failed.\\nIncludes all expected and current values of the NS record.'\n )\n .optional(),\n invalidCnameRecordInfo: z\n .object({\n expectedDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n actualDnsRecords: z\n .array(\n z.object({\n hostName: z\n .string()\n .describe(\n 'Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.'\n )\n .optional(),\n values: z.array(z.string()).min(1).max(10).optional(),\n })\n )\n .max(10)\n .optional(),\n })\n .describe(\n 'Details about the CNAME record for which the DNS propagation has failed.\\nIncludes all expected and current values of the CNAME records.'\n )\n .optional(),\n })\n .describe(\n 'Details about DNS propagation failure, including which record types failed.\\nOnly present when `status` is `FAILED`.'\n ),\n }),\n ])\n);\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,2BAA6B,SAAO;AAAA,EAC/C,kBACG,SAAO,EACP;AAAA,IACC;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B;AAAA,EACvC,SAAO;AAAA,IACP,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,QACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,gDAAgD,EACzD,SAAS,EACT,SAAS;AAAA,IACZ,QACG,OAAK,CAAC,aAAa,UAAU,aAAa,CAAC,EAC3C;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,0BACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC;AAAA,EACC,MAAI;AAAA,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AE,EACN,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,wBACG,SAAO;AAAA,UACN,oBACG;AAAA,YACG,SAAO;AAAA,cACP,UACG,SAAO,EACP;AAAA,gBACC;AAAA,cACF,EACC,SAAS;AAAA,cACZ,QAAU,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,UACZ,kBACG;AAAA,YACG,SAAO;AAAA,cACP,UACG,SAAO,EACP;AAAA,gBACC;AAAA,cACF,EACC,SAAS;AAAA,cACZ,QAAU,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,YACtD,CAAC;AAAA,UACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_domains_dns-propagation",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,16 +21,23 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
+ },
25
+ "./schemas": {
26
+ "import": "./build/es/schemas.mjs",
27
+ "require": "./build/cjs/schemas.js",
28
+ "types": "./build/es/schemas.d.mts"
24
29
  }
25
30
  },
26
31
  "files": [
27
32
  "build",
28
33
  "meta",
29
- "service-plugins"
34
+ "service-plugins",
35
+ "schemas"
30
36
  ],
31
37
  "dependencies": {
32
- "@wix/sdk-runtime": "^1.0.10",
33
- "@wix/sdk-types": "^1.17.6"
38
+ "@wix/sdk-runtime": "^1.0.12",
39
+ "@wix/sdk-types": "^1.17.7",
40
+ "zod": "^4.3.6"
34
41
  },
35
42
  "devDependencies": {
36
43
  "tsup": "^8.4.0",
@@ -50,5 +57,5 @@
50
57
  "fqdn": "wix.premium.domains.v1.dns_propagation"
51
58
  }
52
59
  },
53
- "falconPackageHash": "0e1119c8a3e5cdb5f16c050ae915ebe289782de3d1b138e4c209dea7"
60
+ "falconPackageHash": "f1fb8dedf5822035607e543d1eabffa02465ef4e06a68c4f3655cab1"
54
61
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../build/cjs/schemas.js"
3
+ }