@wix/auto_sdk_identity_authentication 1.0.57 → 1.0.58

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.
@@ -1,175 +1,177 @@
1
1
  // src/iam-authentication-v1-authentication-authentication.schemas.ts
2
2
  import * as z from "zod";
3
3
  var RegisterV2Request = /* @__PURE__ */ (() => {
4
- let wixIamIdentityV1CustomValueSchema = z.intersection(
5
- z.object({}),
6
- z.xor([
7
- z.object({
8
- strValue: z.never().optional(),
9
- numValue: z.never().optional(),
10
- dateValue: z.never().optional(),
11
- listValue: z.never().optional(),
12
- mapValue: z.never().optional(),
13
- boolValue: z.never().optional()
4
+ let wixIamIdentityV1CustomValueSchema = /* @__PURE__ */ z.intersection(
5
+ /* @__PURE__ */ z.object({}),
6
+ /* @__PURE__ */ z.xor([
7
+ /* @__PURE__ */ z.object({
8
+ strValue: /* @__PURE__ */ z.never().optional(),
9
+ numValue: /* @__PURE__ */ z.never().optional(),
10
+ dateValue: /* @__PURE__ */ z.never().optional(),
11
+ listValue: /* @__PURE__ */ z.never().optional(),
12
+ mapValue: /* @__PURE__ */ z.never().optional(),
13
+ boolValue: /* @__PURE__ */ z.never().optional()
14
14
  }),
15
- z.object({
16
- numValue: z.never().optional(),
17
- dateValue: z.never().optional(),
18
- listValue: z.never().optional(),
19
- mapValue: z.never().optional(),
20
- boolValue: z.never().optional(),
21
- strValue: z.string().describe("Text value.")
15
+ /* @__PURE__ */ z.object({
16
+ numValue: /* @__PURE__ */ z.never().optional(),
17
+ dateValue: /* @__PURE__ */ z.never().optional(),
18
+ listValue: /* @__PURE__ */ z.never().optional(),
19
+ mapValue: /* @__PURE__ */ z.never().optional(),
20
+ boolValue: /* @__PURE__ */ z.never().optional(),
21
+ strValue: /* @__PURE__ */ z.string().describe("Text value.")
22
22
  }),
23
- z.object({
24
- strValue: z.never().optional(),
25
- dateValue: z.never().optional(),
26
- listValue: z.never().optional(),
27
- mapValue: z.never().optional(),
28
- boolValue: z.never().optional(),
29
- numValue: z.number().describe("Numeric value.")
23
+ /* @__PURE__ */ z.object({
24
+ strValue: /* @__PURE__ */ z.never().optional(),
25
+ dateValue: /* @__PURE__ */ z.never().optional(),
26
+ listValue: /* @__PURE__ */ z.never().optional(),
27
+ mapValue: /* @__PURE__ */ z.never().optional(),
28
+ boolValue: /* @__PURE__ */ z.never().optional(),
29
+ numValue: /* @__PURE__ */ z.number().describe("Numeric value.")
30
30
  }),
31
- z.object({
32
- strValue: z.never().optional(),
33
- numValue: z.never().optional(),
34
- listValue: z.never().optional(),
35
- mapValue: z.never().optional(),
36
- boolValue: z.never().optional(),
37
- dateValue: z.date().describe("Date/time value.")
31
+ /* @__PURE__ */ z.object({
32
+ strValue: /* @__PURE__ */ z.never().optional(),
33
+ numValue: /* @__PURE__ */ z.never().optional(),
34
+ listValue: /* @__PURE__ */ z.never().optional(),
35
+ mapValue: /* @__PURE__ */ z.never().optional(),
36
+ boolValue: /* @__PURE__ */ z.never().optional(),
37
+ dateValue: /* @__PURE__ */ z.date().describe("Date/time value.")
38
38
  }),
39
- z.object({
40
- strValue: z.never().optional(),
41
- numValue: z.never().optional(),
42
- dateValue: z.never().optional(),
43
- mapValue: z.never().optional(),
44
- boolValue: z.never().optional(),
45
- listValue: z.object({
46
- value: z.array(z.lazy(() => wixIamIdentityV1CustomValueSchema)).optional()
39
+ /* @__PURE__ */ z.object({
40
+ strValue: /* @__PURE__ */ z.never().optional(),
41
+ numValue: /* @__PURE__ */ z.never().optional(),
42
+ dateValue: /* @__PURE__ */ z.never().optional(),
43
+ mapValue: /* @__PURE__ */ z.never().optional(),
44
+ boolValue: /* @__PURE__ */ z.never().optional(),
45
+ listValue: /* @__PURE__ */ z.object({
46
+ value: /* @__PURE__ */ z.array(
47
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
48
+ ).optional()
47
49
  }).describe("List of values.")
48
50
  }),
49
- z.object({
50
- strValue: z.never().optional(),
51
- numValue: z.never().optional(),
52
- dateValue: z.never().optional(),
53
- listValue: z.never().optional(),
54
- boolValue: z.never().optional(),
55
- mapValue: z.object({
56
- value: z.record(
57
- z.string(),
58
- z.lazy(() => wixIamIdentityV1CustomValueSchema)
51
+ /* @__PURE__ */ z.object({
52
+ strValue: /* @__PURE__ */ z.never().optional(),
53
+ numValue: /* @__PURE__ */ z.never().optional(),
54
+ dateValue: /* @__PURE__ */ z.never().optional(),
55
+ listValue: /* @__PURE__ */ z.never().optional(),
56
+ boolValue: /* @__PURE__ */ z.never().optional(),
57
+ mapValue: /* @__PURE__ */ z.object({
58
+ value: /* @__PURE__ */ z.record(
59
+ /* @__PURE__ */ z.string(),
60
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
59
61
  ).describe("Map of custom field values.").optional()
60
62
  }).describe("Key-value pairs.")
61
63
  }),
62
- z.object({
63
- strValue: z.never().optional(),
64
- numValue: z.never().optional(),
65
- dateValue: z.never().optional(),
66
- listValue: z.never().optional(),
67
- mapValue: z.never().optional(),
68
- boolValue: z.boolean().describe("Bool value")
64
+ /* @__PURE__ */ z.object({
65
+ strValue: /* @__PURE__ */ z.never().optional(),
66
+ numValue: /* @__PURE__ */ z.never().optional(),
67
+ dateValue: /* @__PURE__ */ z.never().optional(),
68
+ listValue: /* @__PURE__ */ z.never().optional(),
69
+ mapValue: /* @__PURE__ */ z.never().optional(),
70
+ boolValue: /* @__PURE__ */ z.boolean().describe("Bool value")
69
71
  })
70
72
  ])
71
73
  );
72
- return z.object({
73
- loginId: z.intersection(
74
- z.object({}),
75
- z.xor([
76
- z.object({ email: z.never().optional() }),
77
- z.object({
78
- email: z.string().describe("Login email address.").email()
74
+ return /* @__PURE__ */ z.object({
75
+ loginId: /* @__PURE__ */ z.intersection(
76
+ /* @__PURE__ */ z.object({}),
77
+ /* @__PURE__ */ z.xor([
78
+ /* @__PURE__ */ z.object({ email: /* @__PURE__ */ z.never().optional() }),
79
+ /* @__PURE__ */ z.object({
80
+ email: /* @__PURE__ */ z.string().describe("Login email address.").email()
79
81
  })
80
82
  ])
81
83
  ).describe("Identifier of the registering member."),
82
- options: z.object({
83
- password: z.string().describe("Password of the registering member.").optional(),
84
- profile: z.object({
85
- firstName: z.string().describe("Member's first name.").optional().nullable(),
86
- lastName: z.string().describe("Member's last name.").optional().nullable(),
87
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
88
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
89
- emails: z.array(z.string()).optional(),
90
- phones: z.array(z.string()).optional(),
91
- labels: z.array(z.string()).max(2e3).optional(),
92
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
93
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).optional(),
94
- customFields: z.array(
95
- z.object({
96
- name: z.string().describe(
84
+ options: /* @__PURE__ */ z.object({
85
+ password: /* @__PURE__ */ z.string().describe("Password of the registering member.").optional(),
86
+ profile: /* @__PURE__ */ z.object({
87
+ firstName: /* @__PURE__ */ z.string().describe("Member's first name.").optional().nullable(),
88
+ lastName: /* @__PURE__ */ z.string().describe("Member's last name.").optional().nullable(),
89
+ nickname: /* @__PURE__ */ z.string().describe("Member's display nickname.").optional().nullable(),
90
+ picture: /* @__PURE__ */ z.string().describe("URL to member's profile picture.").optional().nullable(),
91
+ emails: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
92
+ phones: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
93
+ labels: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(2e3).optional(),
94
+ language: /* @__PURE__ */ z.string().describe("Member's preferred language code.").optional().nullable(),
95
+ privacyStatus: /* @__PURE__ */ z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).optional(),
96
+ customFields: /* @__PURE__ */ z.array(
97
+ /* @__PURE__ */ z.object({
98
+ name: /* @__PURE__ */ z.string().describe(
97
99
  "Custom field name matching an extended field key (without `custom.` prefix).\n\nMust match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)."
98
100
  ).optional(),
99
101
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
100
102
  })
101
103
  ).optional(),
102
- secondaryEmails: z.array(
103
- z.object({
104
- email: z.string().describe("Secondary email address.").email().optional(),
105
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).optional()
104
+ secondaryEmails: /* @__PURE__ */ z.array(
105
+ /* @__PURE__ */ z.object({
106
+ email: /* @__PURE__ */ z.string().describe("Secondary email address.").email().optional(),
107
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).optional()
106
108
  })
107
109
  ).optional(),
108
- phonesV2: z.array(
109
- z.object({
110
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
111
- phone: z.string().describe("Phone number without country code.").optional(),
112
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).optional()
110
+ phonesV2: /* @__PURE__ */ z.array(
111
+ /* @__PURE__ */ z.object({
112
+ countryCode: /* @__PURE__ */ z.string().describe("Country code for the phone number.").optional().nullable(),
113
+ phone: /* @__PURE__ */ z.string().describe("Phone number without country code.").optional(),
114
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).optional()
113
115
  })
114
116
  ).optional(),
115
- addresses: z.array(
116
- z.object({
117
- address: z.object({
118
- city: z.string().optional().nullable(),
119
- subdivision: z.string().optional().nullable(),
120
- country: z.string().optional().nullable(),
121
- postalCode: z.string().optional().nullable(),
122
- addressLine2: z.string().optional().nullable()
117
+ addresses: /* @__PURE__ */ z.array(
118
+ /* @__PURE__ */ z.object({
119
+ address: /* @__PURE__ */ z.object({
120
+ city: /* @__PURE__ */ z.string().optional().nullable(),
121
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
122
+ country: /* @__PURE__ */ z.string().optional().nullable(),
123
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
124
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
123
125
  }).describe("Physical address details.").optional(),
124
- tag: z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).optional()
126
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).optional()
125
127
  })
126
128
  ).optional(),
127
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
128
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
129
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
130
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
131
- subscription: z.boolean().describe(
129
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
130
+ position: /* @__PURE__ */ z.string().describe("Position within company.").max(1e3).optional().nullable(),
131
+ birthdate: /* @__PURE__ */ z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
132
+ slug: /* @__PURE__ */ z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
133
+ subscription: /* @__PURE__ */ z.boolean().describe(
132
134
  "Whether the member consents to receive marketing communications."
133
135
  ).optional().nullable(),
134
- vatId: z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
136
+ vatId: /* @__PURE__ */ z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
135
137
  }).describe("Profile information of registering member.").optional(),
136
- captchaTokens: z.array(
137
- z.intersection(
138
- z.object({}),
139
- z.xor([
140
- z.object({
141
- Recaptcha: z.never().optional(),
142
- InvisibleRecaptcha: z.never().optional(),
143
- NoCaptcha: z.never().optional(),
144
- recaptchaForClientSiteKey: z.never().optional()
138
+ captchaTokens: /* @__PURE__ */ z.array(
139
+ /* @__PURE__ */ z.intersection(
140
+ /* @__PURE__ */ z.object({}),
141
+ /* @__PURE__ */ z.xor([
142
+ /* @__PURE__ */ z.object({
143
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
144
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
145
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
146
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional()
145
147
  }),
146
- z.object({
147
- InvisibleRecaptcha: z.never().optional(),
148
- NoCaptcha: z.never().optional(),
149
- recaptchaForClientSiteKey: z.never().optional(),
150
- Recaptcha: z.string().max(5e3)
148
+ /* @__PURE__ */ z.object({
149
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
150
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
151
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional(),
152
+ Recaptcha: /* @__PURE__ */ z.string().max(5e3)
151
153
  }),
152
- z.object({
153
- Recaptcha: z.never().optional(),
154
- NoCaptcha: z.never().optional(),
155
- recaptchaForClientSiteKey: z.never().optional(),
156
- InvisibleRecaptcha: z.string().max(5e3)
154
+ /* @__PURE__ */ z.object({
155
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
156
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
157
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional(),
158
+ InvisibleRecaptcha: /* @__PURE__ */ z.string().max(5e3)
157
159
  }),
158
- z.object({
159
- Recaptcha: z.never().optional(),
160
- InvisibleRecaptcha: z.never().optional(),
161
- recaptchaForClientSiteKey: z.never().optional(),
162
- NoCaptcha: z.string().max(5e3)
160
+ /* @__PURE__ */ z.object({
161
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
162
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
163
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional(),
164
+ NoCaptcha: /* @__PURE__ */ z.string().max(5e3)
163
165
  }),
164
- z.object({
165
- Recaptcha: z.never().optional(),
166
- InvisibleRecaptcha: z.never().optional(),
167
- NoCaptcha: z.never().optional(),
168
- recaptchaForClientSiteKey: z.object({
169
- token: z.string().describe(
166
+ /* @__PURE__ */ z.object({
167
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
168
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
169
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
170
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.object({
171
+ token: /* @__PURE__ */ z.string().describe(
170
172
  "The reCAPTCHA token obtained from the client-side reCAPTCHA widget."
171
173
  ).max(5e3).optional(),
172
- siteKeyId: z.string().describe(
174
+ siteKeyId: /* @__PURE__ */ z.string().describe(
173
175
  "The site key ID registered in ReCAPTCHA service SDL for this client's reCAPTCHA configuration."
174
176
  ).regex(
175
177
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -182,137 +184,143 @@ var RegisterV2Request = /* @__PURE__ */ (() => {
182
184
  ])
183
185
  )
184
186
  ).optional(),
185
- clientMetaData: z.record(z.string(), z.any()).describe("Additional data that's relevant for the flow.").optional().nullable()
187
+ clientMetaData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Additional data that's relevant for the flow.").optional().nullable()
186
188
  }).optional()
187
189
  });
188
190
  })();
189
191
  var RegisterV2Response = /* @__PURE__ */ (() => {
190
- let wixIamIdentityV1CustomValueSchema = z.intersection(
191
- z.object({}),
192
- z.xor([
193
- z.object({
194
- strValue: z.never().optional(),
195
- numValue: z.never().optional(),
196
- dateValue: z.never().optional(),
197
- listValue: z.never().optional(),
198
- mapValue: z.never().optional(),
199
- boolValue: z.never().optional()
192
+ let wixIamIdentityV1CustomValueSchema = /* @__PURE__ */ z.intersection(
193
+ /* @__PURE__ */ z.object({}),
194
+ /* @__PURE__ */ z.xor([
195
+ /* @__PURE__ */ z.object({
196
+ strValue: /* @__PURE__ */ z.never().optional(),
197
+ numValue: /* @__PURE__ */ z.never().optional(),
198
+ dateValue: /* @__PURE__ */ z.never().optional(),
199
+ listValue: /* @__PURE__ */ z.never().optional(),
200
+ mapValue: /* @__PURE__ */ z.never().optional(),
201
+ boolValue: /* @__PURE__ */ z.never().optional()
200
202
  }),
201
- z.object({
202
- numValue: z.never().optional(),
203
- dateValue: z.never().optional(),
204
- listValue: z.never().optional(),
205
- mapValue: z.never().optional(),
206
- boolValue: z.never().optional(),
207
- strValue: z.string().describe("Text value.")
203
+ /* @__PURE__ */ z.object({
204
+ numValue: /* @__PURE__ */ z.never().optional(),
205
+ dateValue: /* @__PURE__ */ z.never().optional(),
206
+ listValue: /* @__PURE__ */ z.never().optional(),
207
+ mapValue: /* @__PURE__ */ z.never().optional(),
208
+ boolValue: /* @__PURE__ */ z.never().optional(),
209
+ strValue: /* @__PURE__ */ z.string().describe("Text value.")
208
210
  }),
209
- z.object({
210
- strValue: z.never().optional(),
211
- dateValue: z.never().optional(),
212
- listValue: z.never().optional(),
213
- mapValue: z.never().optional(),
214
- boolValue: z.never().optional(),
215
- numValue: z.number().describe("Numeric value.")
211
+ /* @__PURE__ */ z.object({
212
+ strValue: /* @__PURE__ */ z.never().optional(),
213
+ dateValue: /* @__PURE__ */ z.never().optional(),
214
+ listValue: /* @__PURE__ */ z.never().optional(),
215
+ mapValue: /* @__PURE__ */ z.never().optional(),
216
+ boolValue: /* @__PURE__ */ z.never().optional(),
217
+ numValue: /* @__PURE__ */ z.number().describe("Numeric value.")
216
218
  }),
217
- z.object({
218
- strValue: z.never().optional(),
219
- numValue: z.never().optional(),
220
- listValue: z.never().optional(),
221
- mapValue: z.never().optional(),
222
- boolValue: z.never().optional(),
223
- dateValue: z.date().describe("Date/time value.")
219
+ /* @__PURE__ */ z.object({
220
+ strValue: /* @__PURE__ */ z.never().optional(),
221
+ numValue: /* @__PURE__ */ z.never().optional(),
222
+ listValue: /* @__PURE__ */ z.never().optional(),
223
+ mapValue: /* @__PURE__ */ z.never().optional(),
224
+ boolValue: /* @__PURE__ */ z.never().optional(),
225
+ dateValue: /* @__PURE__ */ z.date().describe("Date/time value.")
224
226
  }),
225
- z.object({
226
- strValue: z.never().optional(),
227
- numValue: z.never().optional(),
228
- dateValue: z.never().optional(),
229
- mapValue: z.never().optional(),
230
- boolValue: z.never().optional(),
231
- listValue: z.object({
232
- value: z.array(z.lazy(() => wixIamIdentityV1CustomValueSchema)).optional()
227
+ /* @__PURE__ */ z.object({
228
+ strValue: /* @__PURE__ */ z.never().optional(),
229
+ numValue: /* @__PURE__ */ z.never().optional(),
230
+ dateValue: /* @__PURE__ */ z.never().optional(),
231
+ mapValue: /* @__PURE__ */ z.never().optional(),
232
+ boolValue: /* @__PURE__ */ z.never().optional(),
233
+ listValue: /* @__PURE__ */ z.object({
234
+ value: /* @__PURE__ */ z.array(
235
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
236
+ ).optional()
233
237
  }).describe("List of values.")
234
238
  }),
235
- z.object({
236
- strValue: z.never().optional(),
237
- numValue: z.never().optional(),
238
- dateValue: z.never().optional(),
239
- listValue: z.never().optional(),
240
- boolValue: z.never().optional(),
241
- mapValue: z.object({
242
- value: z.record(
243
- z.string(),
244
- z.lazy(() => wixIamIdentityV1CustomValueSchema)
239
+ /* @__PURE__ */ z.object({
240
+ strValue: /* @__PURE__ */ z.never().optional(),
241
+ numValue: /* @__PURE__ */ z.never().optional(),
242
+ dateValue: /* @__PURE__ */ z.never().optional(),
243
+ listValue: /* @__PURE__ */ z.never().optional(),
244
+ boolValue: /* @__PURE__ */ z.never().optional(),
245
+ mapValue: /* @__PURE__ */ z.object({
246
+ value: /* @__PURE__ */ z.record(
247
+ /* @__PURE__ */ z.string(),
248
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
245
249
  ).describe("Map of custom field values.").optional()
246
250
  }).describe("Key-value pairs.")
247
251
  }),
248
- z.object({
249
- strValue: z.never().optional(),
250
- numValue: z.never().optional(),
251
- dateValue: z.never().optional(),
252
- listValue: z.never().optional(),
253
- mapValue: z.never().optional(),
254
- boolValue: z.boolean().describe("Bool value")
252
+ /* @__PURE__ */ z.object({
253
+ strValue: /* @__PURE__ */ z.never().optional(),
254
+ numValue: /* @__PURE__ */ z.never().optional(),
255
+ dateValue: /* @__PURE__ */ z.never().optional(),
256
+ listValue: /* @__PURE__ */ z.never().optional(),
257
+ mapValue: /* @__PURE__ */ z.never().optional(),
258
+ boolValue: /* @__PURE__ */ z.boolean().describe("Bool value")
255
259
  })
256
260
  ])
257
261
  );
258
- let comWixCommonUpstreamWixCommonCustomValueSchema = z.intersection(
259
- z.object({}),
260
- z.xor([
261
- z.object({
262
- strValue: z.never().optional(),
263
- numValue: z.never().optional(),
264
- dateValue: z.never().optional(),
265
- listValue: z.never().optional(),
266
- mapValue: z.never().optional()
262
+ let comWixCommonUpstreamWixCommonCustomValueSchema = /* @__PURE__ */ z.intersection(
263
+ /* @__PURE__ */ z.object({}),
264
+ /* @__PURE__ */ z.xor([
265
+ /* @__PURE__ */ z.object({
266
+ strValue: /* @__PURE__ */ z.never().optional(),
267
+ numValue: /* @__PURE__ */ z.never().optional(),
268
+ dateValue: /* @__PURE__ */ z.never().optional(),
269
+ listValue: /* @__PURE__ */ z.never().optional(),
270
+ mapValue: /* @__PURE__ */ z.never().optional()
267
271
  }),
268
- z.object({
269
- numValue: z.never().optional(),
270
- dateValue: z.never().optional(),
271
- listValue: z.never().optional(),
272
- mapValue: z.never().optional(),
273
- strValue: z.string().describe("String value.")
272
+ /* @__PURE__ */ z.object({
273
+ numValue: /* @__PURE__ */ z.never().optional(),
274
+ dateValue: /* @__PURE__ */ z.never().optional(),
275
+ listValue: /* @__PURE__ */ z.never().optional(),
276
+ mapValue: /* @__PURE__ */ z.never().optional(),
277
+ strValue: /* @__PURE__ */ z.string().describe("String value.")
274
278
  }),
275
- z.object({
276
- strValue: z.never().optional(),
277
- dateValue: z.never().optional(),
278
- listValue: z.never().optional(),
279
- mapValue: z.never().optional(),
280
- numValue: z.number().describe("Number value.")
279
+ /* @__PURE__ */ z.object({
280
+ strValue: /* @__PURE__ */ z.never().optional(),
281
+ dateValue: /* @__PURE__ */ z.never().optional(),
282
+ listValue: /* @__PURE__ */ z.never().optional(),
283
+ mapValue: /* @__PURE__ */ z.never().optional(),
284
+ numValue: /* @__PURE__ */ z.number().describe("Number value.")
281
285
  }),
282
- z.object({
283
- strValue: z.never().optional(),
284
- numValue: z.never().optional(),
285
- listValue: z.never().optional(),
286
- mapValue: z.never().optional(),
287
- dateValue: z.date().describe("Date value.")
286
+ /* @__PURE__ */ z.object({
287
+ strValue: /* @__PURE__ */ z.never().optional(),
288
+ numValue: /* @__PURE__ */ z.never().optional(),
289
+ listValue: /* @__PURE__ */ z.never().optional(),
290
+ mapValue: /* @__PURE__ */ z.never().optional(),
291
+ dateValue: /* @__PURE__ */ z.date().describe("Date value.")
288
292
  }),
289
- z.object({
290
- strValue: z.never().optional(),
291
- numValue: z.never().optional(),
292
- dateValue: z.never().optional(),
293
- mapValue: z.never().optional(),
294
- listValue: z.object({
295
- value: z.array(
296
- z.lazy(() => comWixCommonUpstreamWixCommonCustomValueSchema)
293
+ /* @__PURE__ */ z.object({
294
+ strValue: /* @__PURE__ */ z.never().optional(),
295
+ numValue: /* @__PURE__ */ z.never().optional(),
296
+ dateValue: /* @__PURE__ */ z.never().optional(),
297
+ mapValue: /* @__PURE__ */ z.never().optional(),
298
+ listValue: /* @__PURE__ */ z.object({
299
+ value: /* @__PURE__ */ z.array(
300
+ /* @__PURE__ */ z.lazy(
301
+ () => comWixCommonUpstreamWixCommonCustomValueSchema
302
+ )
297
303
  ).optional()
298
304
  }).describe("List value.")
299
305
  }),
300
- z.object({
301
- strValue: z.never().optional(),
302
- numValue: z.never().optional(),
303
- dateValue: z.never().optional(),
304
- listValue: z.never().optional(),
305
- mapValue: z.object({
306
- value: z.record(
307
- z.string(),
308
- z.lazy(() => comWixCommonUpstreamWixCommonCustomValueSchema)
306
+ /* @__PURE__ */ z.object({
307
+ strValue: /* @__PURE__ */ z.never().optional(),
308
+ numValue: /* @__PURE__ */ z.never().optional(),
309
+ dateValue: /* @__PURE__ */ z.never().optional(),
310
+ listValue: /* @__PURE__ */ z.never().optional(),
311
+ mapValue: /* @__PURE__ */ z.object({
312
+ value: /* @__PURE__ */ z.record(
313
+ /* @__PURE__ */ z.string(),
314
+ /* @__PURE__ */ z.lazy(
315
+ () => comWixCommonUpstreamWixCommonCustomValueSchema
316
+ )
309
317
  ).describe("Mapped custom value.").optional()
310
318
  }).describe("Map value.")
311
319
  })
312
320
  ])
313
321
  );
314
- return z.object({
315
- state: z.enum([
322
+ return /* @__PURE__ */ z.object({
323
+ state: /* @__PURE__ */ z.enum([
316
324
  "UNKNOWN_STATE",
317
325
  "SUCCESS",
318
326
  "REQUIRE_OWNER_APPROVAL",
@@ -320,111 +328,111 @@ var RegisterV2Response = /* @__PURE__ */ (() => {
320
328
  "STATUS_CHECK",
321
329
  "REQUIRE_MISSING_FIELDS"
322
330
  ]).describe("Current state of the login or registration process.").optional(),
323
- sessionToken: z.string().describe(
331
+ sessionToken: /* @__PURE__ */ z.string().describe(
324
332
  "Session token. If `state` is not `SUCCESS`, this field is undefined."
325
333
  ).optional().nullable(),
326
- stateToken: z.string().describe(
334
+ stateToken: /* @__PURE__ */ z.string().describe(
327
335
  "Token that represents the current state of the login or registration process."
328
336
  ).optional().nullable(),
329
- identity: z.object({
330
- _id: z.string().describe("Identity ID.").regex(
337
+ identity: /* @__PURE__ */ z.object({
338
+ _id: /* @__PURE__ */ z.string().describe("Identity ID.").regex(
331
339
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
332
340
  "Must be a valid GUID"
333
341
  ).optional().nullable(),
334
- revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
342
+ revision: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
335
343
  "Revision number, which increments by 1 each time the identity is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the identity.\n\nIgnored when creating an identity."
336
344
  ).optional().nullable(),
337
- _createdDate: z.date().describe("Date and time the identity was created.").optional().nullable(),
338
- _updatedDate: z.date().describe("Date and time the identity was updated.").optional().nullable(),
339
- connections: z.array(
340
- z.intersection(
341
- z.object({}),
342
- z.xor([
343
- z.object({
344
- idpConnection: z.never().optional(),
345
- authenticatorConnection: z.never().optional()
345
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the identity was created.").optional().nullable(),
346
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the identity was updated.").optional().nullable(),
347
+ connections: /* @__PURE__ */ z.array(
348
+ /* @__PURE__ */ z.intersection(
349
+ /* @__PURE__ */ z.object({}),
350
+ /* @__PURE__ */ z.xor([
351
+ /* @__PURE__ */ z.object({
352
+ idpConnection: /* @__PURE__ */ z.never().optional(),
353
+ authenticatorConnection: /* @__PURE__ */ z.never().optional()
346
354
  }),
347
- z.object({
348
- authenticatorConnection: z.never().optional(),
349
- idpConnection: z.object({
350
- idpConnectionId: z.string().describe("IDP connection ID.").regex(
355
+ /* @__PURE__ */ z.object({
356
+ authenticatorConnection: /* @__PURE__ */ z.never().optional(),
357
+ idpConnection: /* @__PURE__ */ z.object({
358
+ idpConnectionId: /* @__PURE__ */ z.string().describe("IDP connection ID.").regex(
351
359
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
352
360
  "Must be a valid GUID"
353
361
  ).optional(),
354
- idpUserId: z.string().describe("IDP user ID.").optional()
362
+ idpUserId: /* @__PURE__ */ z.string().describe("IDP user ID.").optional()
355
363
  }).describe("IDP connection.")
356
364
  }),
357
- z.object({
358
- idpConnection: z.never().optional(),
359
- authenticatorConnection: z.object({
360
- authenticatorConnectionId: z.string().describe("Authenticator connection ID.").regex(
365
+ /* @__PURE__ */ z.object({
366
+ idpConnection: /* @__PURE__ */ z.never().optional(),
367
+ authenticatorConnection: /* @__PURE__ */ z.object({
368
+ authenticatorConnectionId: /* @__PURE__ */ z.string().describe("Authenticator connection ID.").regex(
361
369
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
362
370
  "Must be a valid GUID"
363
371
  ).optional(),
364
- reEnrollmentRequired: z.boolean().describe("Whether re-enrollment is required.").optional()
372
+ reEnrollmentRequired: /* @__PURE__ */ z.boolean().describe("Whether re-enrollment is required.").optional()
365
373
  }).describe("Authenticator connection.")
366
374
  })
367
375
  ])
368
376
  )
369
377
  ).optional(),
370
- identityProfile: z.object({
371
- firstName: z.string().describe("Member's first name.").optional().nullable(),
372
- lastName: z.string().describe("Member's last name.").optional().nullable(),
373
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
374
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
375
- emails: z.array(z.string()).optional(),
376
- phones: z.array(z.string()).optional(),
377
- labels: z.array(z.string()).max(2e3).optional(),
378
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
379
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
380
- customFields: z.array(
381
- z.object({
382
- name: z.string().describe(
378
+ identityProfile: /* @__PURE__ */ z.object({
379
+ firstName: /* @__PURE__ */ z.string().describe("Member's first name.").optional().nullable(),
380
+ lastName: /* @__PURE__ */ z.string().describe("Member's last name.").optional().nullable(),
381
+ nickname: /* @__PURE__ */ z.string().describe("Member's display nickname.").optional().nullable(),
382
+ picture: /* @__PURE__ */ z.string().describe("URL to member's profile picture.").optional().nullable(),
383
+ emails: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
384
+ phones: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
385
+ labels: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(2e3).optional(),
386
+ language: /* @__PURE__ */ z.string().describe("Member's preferred language code.").optional().nullable(),
387
+ privacyStatus: /* @__PURE__ */ z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
388
+ customFields: /* @__PURE__ */ z.array(
389
+ /* @__PURE__ */ z.object({
390
+ name: /* @__PURE__ */ z.string().describe(
383
391
  "Custom field name matching an extended field key (without `custom.` prefix).\n\nMust match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)."
384
392
  ).optional(),
385
393
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
386
394
  })
387
395
  ).optional(),
388
- secondaryEmails: z.array(
389
- z.object({
390
- email: z.string().describe("Secondary email address.").email().optional(),
391
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).describe("Email tag.").optional()
396
+ secondaryEmails: /* @__PURE__ */ z.array(
397
+ /* @__PURE__ */ z.object({
398
+ email: /* @__PURE__ */ z.string().describe("Secondary email address.").email().optional(),
399
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).describe("Email tag.").optional()
392
400
  })
393
401
  ).optional(),
394
- phonesV2: z.array(
395
- z.object({
396
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
397
- phone: z.string().describe("Phone number without country code.").optional(),
398
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).describe("Phone tag.").optional()
402
+ phonesV2: /* @__PURE__ */ z.array(
403
+ /* @__PURE__ */ z.object({
404
+ countryCode: /* @__PURE__ */ z.string().describe("Country code for the phone number.").optional().nullable(),
405
+ phone: /* @__PURE__ */ z.string().describe("Phone number without country code.").optional(),
406
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).describe("Phone tag.").optional()
399
407
  })
400
408
  ).optional(),
401
- addresses: z.array(
402
- z.object({
403
- address: z.object({
404
- city: z.string().optional().nullable(),
405
- subdivision: z.string().optional().nullable(),
406
- country: z.string().optional().nullable(),
407
- postalCode: z.string().optional().nullable(),
408
- addressLine2: z.string().optional().nullable()
409
+ addresses: /* @__PURE__ */ z.array(
410
+ /* @__PURE__ */ z.object({
411
+ address: /* @__PURE__ */ z.object({
412
+ city: /* @__PURE__ */ z.string().optional().nullable(),
413
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
414
+ country: /* @__PURE__ */ z.string().optional().nullable(),
415
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
416
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
409
417
  }).describe("Physical address details.").optional(),
410
- tag: z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).describe("Address tag.").optional()
418
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).describe("Address tag.").optional()
411
419
  })
412
420
  ).optional(),
413
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
414
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
415
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
416
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
417
- subscription: z.boolean().describe(
421
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
422
+ position: /* @__PURE__ */ z.string().describe("Position within company.").max(1e3).optional().nullable(),
423
+ birthdate: /* @__PURE__ */ z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
424
+ slug: /* @__PURE__ */ z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
425
+ subscription: /* @__PURE__ */ z.boolean().describe(
418
426
  "Whether the member consents to receive marketing communications."
419
427
  ).optional().nullable(),
420
- vatId: z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
428
+ vatId: /* @__PURE__ */ z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
421
429
  }).describe("Identity profile.").optional(),
422
- email: z.object({
423
- address: z.string().describe("Email address.").email().optional(),
424
- isVerified: z.boolean().describe("Whether the email address is verified.").optional()
430
+ email: /* @__PURE__ */ z.object({
431
+ address: /* @__PURE__ */ z.string().describe("Email address.").email().optional(),
432
+ isVerified: /* @__PURE__ */ z.boolean().describe("Whether the email address is verified.").optional()
425
433
  }).describe("Identity email address.").optional(),
426
- status: z.object({
427
- name: z.enum([
434
+ status: /* @__PURE__ */ z.object({
435
+ name: /* @__PURE__ */ z.enum([
428
436
  "UNKNOWN_STATUS",
429
437
  "PENDING",
430
438
  "ACTIVE",
@@ -432,8 +440,8 @@ var RegisterV2Response = /* @__PURE__ */ (() => {
432
440
  "BLOCKED",
433
441
  "OFFLINE"
434
442
  ]).describe("Descriptive name of the identity status.").optional(),
435
- reasons: z.array(
436
- z.enum([
443
+ reasons: /* @__PURE__ */ z.array(
444
+ /* @__PURE__ */ z.enum([
437
445
  "UNKNOWN_REASON",
438
446
  "PENDING_ADMIN_APPROVAL_REQUIRED",
439
447
  "PENDING_EMAIL_VERIFICATION_REQUIRED",
@@ -441,13 +449,13 @@ var RegisterV2Response = /* @__PURE__ */ (() => {
441
449
  ])
442
450
  ).optional()
443
451
  }).describe("Identity's current status.").optional(),
444
- factors: z.array(
445
- z.object({
446
- factorId: z.string().describe("Factor ID.").regex(
452
+ factors: /* @__PURE__ */ z.array(
453
+ /* @__PURE__ */ z.object({
454
+ factorId: /* @__PURE__ */ z.string().describe("Factor ID.").regex(
447
455
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
448
456
  "Must be a valid GUID"
449
457
  ).optional(),
450
- type: z.enum([
458
+ type: /* @__PURE__ */ z.enum([
451
459
  "PASSWORD",
452
460
  "SMS",
453
461
  "CALL",
@@ -457,22 +465,25 @@ var RegisterV2Response = /* @__PURE__ */ (() => {
457
465
  "WEBAUTHN",
458
466
  "RECOVERY_CODE"
459
467
  ]).describe("Factor type.").optional(),
460
- status: z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
468
+ status: /* @__PURE__ */ z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
461
469
  })
462
470
  ).max(10).optional()
463
471
  }).describe("Identity of the current member.").optional(),
464
- additionalData: z.record(z.string(), comWixCommonUpstreamWixCommonCustomValueSchema).describe(
472
+ additionalData: /* @__PURE__ */ z.record(
473
+ /* @__PURE__ */ z.string(),
474
+ comWixCommonUpstreamWixCommonCustomValueSchema
475
+ ).describe(
465
476
  "Additional data relevant to the login or registration process."
466
477
  ).optional()
467
478
  });
468
479
  })();
469
480
  var ValidateEmailRequest = /* @__PURE__ */ z.object({
470
- email: z.string().max(254)
481
+ email: /* @__PURE__ */ z.string().max(254)
471
482
  });
472
483
  var ValidateEmailResponse = /* @__PURE__ */ z.object({
473
- valid: z.boolean().optional(),
474
- failure: z.object({
475
- reason: z.enum([
484
+ valid: /* @__PURE__ */ z.boolean().optional(),
485
+ failure: /* @__PURE__ */ z.object({
486
+ reason: /* @__PURE__ */ z.enum([
476
487
  "UNKNOWN_REASON",
477
488
  "EMAIL_ADDRESS_BOUNCED",
478
489
  "EMAIL_DOMAIN_MISSING_DNS_RECORDS",
@@ -480,57 +491,57 @@ var ValidateEmailResponse = /* @__PURE__ */ z.object({
480
491
  "EMAIL_DOMAIN_PERMANENTLY_BLACKLISTED"
481
492
  ]).optional()
482
493
  }).optional(),
483
- formatInvalid: z.boolean().optional()
494
+ formatInvalid: /* @__PURE__ */ z.boolean().optional()
484
495
  });
485
496
  var LoginV2Request = /* @__PURE__ */ z.object({
486
- loginId: z.intersection(
487
- z.object({}),
488
- z.xor([
489
- z.object({ email: z.never().optional() }),
490
- z.object({
491
- email: z.string().describe("Login email address.").email()
497
+ loginId: /* @__PURE__ */ z.intersection(
498
+ /* @__PURE__ */ z.object({}),
499
+ /* @__PURE__ */ z.xor([
500
+ /* @__PURE__ */ z.object({ email: /* @__PURE__ */ z.never().optional() }),
501
+ /* @__PURE__ */ z.object({
502
+ email: /* @__PURE__ */ z.string().describe("Login email address.").email()
492
503
  })
493
504
  ])
494
505
  ).describe("Identifier of identity logging in."),
495
- options: z.object({
496
- password: z.string().describe("Password of the identity logging in.").optional().nullable(),
497
- captchaTokens: z.array(
498
- z.intersection(
499
- z.object({}),
500
- z.xor([
501
- z.object({
502
- Recaptcha: z.never().optional(),
503
- InvisibleRecaptcha: z.never().optional(),
504
- NoCaptcha: z.never().optional(),
505
- recaptchaForClientSiteKey: z.never().optional()
506
+ options: /* @__PURE__ */ z.object({
507
+ password: /* @__PURE__ */ z.string().describe("Password of the identity logging in.").optional().nullable(),
508
+ captchaTokens: /* @__PURE__ */ z.array(
509
+ /* @__PURE__ */ z.intersection(
510
+ /* @__PURE__ */ z.object({}),
511
+ /* @__PURE__ */ z.xor([
512
+ /* @__PURE__ */ z.object({
513
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
514
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
515
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
516
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional()
506
517
  }),
507
- z.object({
508
- InvisibleRecaptcha: z.never().optional(),
509
- NoCaptcha: z.never().optional(),
510
- recaptchaForClientSiteKey: z.never().optional(),
511
- Recaptcha: z.string().max(5e3)
518
+ /* @__PURE__ */ z.object({
519
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
520
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
521
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional(),
522
+ Recaptcha: /* @__PURE__ */ z.string().max(5e3)
512
523
  }),
513
- z.object({
514
- Recaptcha: z.never().optional(),
515
- NoCaptcha: z.never().optional(),
516
- recaptchaForClientSiteKey: z.never().optional(),
517
- InvisibleRecaptcha: z.string().max(5e3)
524
+ /* @__PURE__ */ z.object({
525
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
526
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
527
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional(),
528
+ InvisibleRecaptcha: /* @__PURE__ */ z.string().max(5e3)
518
529
  }),
519
- z.object({
520
- Recaptcha: z.never().optional(),
521
- InvisibleRecaptcha: z.never().optional(),
522
- recaptchaForClientSiteKey: z.never().optional(),
523
- NoCaptcha: z.string().max(5e3)
530
+ /* @__PURE__ */ z.object({
531
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
532
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
533
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.never().optional(),
534
+ NoCaptcha: /* @__PURE__ */ z.string().max(5e3)
524
535
  }),
525
- z.object({
526
- Recaptcha: z.never().optional(),
527
- InvisibleRecaptcha: z.never().optional(),
528
- NoCaptcha: z.never().optional(),
529
- recaptchaForClientSiteKey: z.object({
530
- token: z.string().describe(
536
+ /* @__PURE__ */ z.object({
537
+ Recaptcha: /* @__PURE__ */ z.never().optional(),
538
+ InvisibleRecaptcha: /* @__PURE__ */ z.never().optional(),
539
+ NoCaptcha: /* @__PURE__ */ z.never().optional(),
540
+ recaptchaForClientSiteKey: /* @__PURE__ */ z.object({
541
+ token: /* @__PURE__ */ z.string().describe(
531
542
  "The reCAPTCHA token obtained from the client-side reCAPTCHA widget."
532
543
  ).max(5e3).optional(),
533
- siteKeyId: z.string().describe(
544
+ siteKeyId: /* @__PURE__ */ z.string().describe(
534
545
  "The site key ID registered in ReCAPTCHA service SDL for this client's reCAPTCHA configuration."
535
546
  ).regex(
536
547
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -543,139 +554,145 @@ var LoginV2Request = /* @__PURE__ */ z.object({
543
554
  ])
544
555
  )
545
556
  ).optional(),
546
- clientMetaData: z.record(z.string(), z.any()).describe("Additional data that's relevant for the flow.").optional().nullable(),
547
- stateToken: z.string().describe(
557
+ clientMetaData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Additional data that's relevant for the flow.").optional().nullable(),
558
+ stateToken: /* @__PURE__ */ z.string().describe(
548
559
  "State token from a login flow that was started beforehand.\n\nWhen provided, this request continues an in-progress login flow rather than starting a new one."
549
560
  ).max(1e3).optional().nullable()
550
561
  }).optional()
551
562
  });
552
563
  var LoginV2Response = /* @__PURE__ */ (() => {
553
- let wixIamIdentityV1CustomValueSchema = z.intersection(
554
- z.object({}),
555
- z.xor([
556
- z.object({
557
- strValue: z.never().optional(),
558
- numValue: z.never().optional(),
559
- dateValue: z.never().optional(),
560
- listValue: z.never().optional(),
561
- mapValue: z.never().optional(),
562
- boolValue: z.never().optional()
564
+ let wixIamIdentityV1CustomValueSchema = /* @__PURE__ */ z.intersection(
565
+ /* @__PURE__ */ z.object({}),
566
+ /* @__PURE__ */ z.xor([
567
+ /* @__PURE__ */ z.object({
568
+ strValue: /* @__PURE__ */ z.never().optional(),
569
+ numValue: /* @__PURE__ */ z.never().optional(),
570
+ dateValue: /* @__PURE__ */ z.never().optional(),
571
+ listValue: /* @__PURE__ */ z.never().optional(),
572
+ mapValue: /* @__PURE__ */ z.never().optional(),
573
+ boolValue: /* @__PURE__ */ z.never().optional()
563
574
  }),
564
- z.object({
565
- numValue: z.never().optional(),
566
- dateValue: z.never().optional(),
567
- listValue: z.never().optional(),
568
- mapValue: z.never().optional(),
569
- boolValue: z.never().optional(),
570
- strValue: z.string().describe("Text value.")
575
+ /* @__PURE__ */ z.object({
576
+ numValue: /* @__PURE__ */ z.never().optional(),
577
+ dateValue: /* @__PURE__ */ z.never().optional(),
578
+ listValue: /* @__PURE__ */ z.never().optional(),
579
+ mapValue: /* @__PURE__ */ z.never().optional(),
580
+ boolValue: /* @__PURE__ */ z.never().optional(),
581
+ strValue: /* @__PURE__ */ z.string().describe("Text value.")
571
582
  }),
572
- z.object({
573
- strValue: z.never().optional(),
574
- dateValue: z.never().optional(),
575
- listValue: z.never().optional(),
576
- mapValue: z.never().optional(),
577
- boolValue: z.never().optional(),
578
- numValue: z.number().describe("Numeric value.")
583
+ /* @__PURE__ */ z.object({
584
+ strValue: /* @__PURE__ */ z.never().optional(),
585
+ dateValue: /* @__PURE__ */ z.never().optional(),
586
+ listValue: /* @__PURE__ */ z.never().optional(),
587
+ mapValue: /* @__PURE__ */ z.never().optional(),
588
+ boolValue: /* @__PURE__ */ z.never().optional(),
589
+ numValue: /* @__PURE__ */ z.number().describe("Numeric value.")
579
590
  }),
580
- z.object({
581
- strValue: z.never().optional(),
582
- numValue: z.never().optional(),
583
- listValue: z.never().optional(),
584
- mapValue: z.never().optional(),
585
- boolValue: z.never().optional(),
586
- dateValue: z.date().describe("Date/time value.")
591
+ /* @__PURE__ */ z.object({
592
+ strValue: /* @__PURE__ */ z.never().optional(),
593
+ numValue: /* @__PURE__ */ z.never().optional(),
594
+ listValue: /* @__PURE__ */ z.never().optional(),
595
+ mapValue: /* @__PURE__ */ z.never().optional(),
596
+ boolValue: /* @__PURE__ */ z.never().optional(),
597
+ dateValue: /* @__PURE__ */ z.date().describe("Date/time value.")
587
598
  }),
588
- z.object({
589
- strValue: z.never().optional(),
590
- numValue: z.never().optional(),
591
- dateValue: z.never().optional(),
592
- mapValue: z.never().optional(),
593
- boolValue: z.never().optional(),
594
- listValue: z.object({
595
- value: z.array(z.lazy(() => wixIamIdentityV1CustomValueSchema)).optional()
599
+ /* @__PURE__ */ z.object({
600
+ strValue: /* @__PURE__ */ z.never().optional(),
601
+ numValue: /* @__PURE__ */ z.never().optional(),
602
+ dateValue: /* @__PURE__ */ z.never().optional(),
603
+ mapValue: /* @__PURE__ */ z.never().optional(),
604
+ boolValue: /* @__PURE__ */ z.never().optional(),
605
+ listValue: /* @__PURE__ */ z.object({
606
+ value: /* @__PURE__ */ z.array(
607
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
608
+ ).optional()
596
609
  }).describe("List of values.")
597
610
  }),
598
- z.object({
599
- strValue: z.never().optional(),
600
- numValue: z.never().optional(),
601
- dateValue: z.never().optional(),
602
- listValue: z.never().optional(),
603
- boolValue: z.never().optional(),
604
- mapValue: z.object({
605
- value: z.record(
606
- z.string(),
607
- z.lazy(() => wixIamIdentityV1CustomValueSchema)
611
+ /* @__PURE__ */ z.object({
612
+ strValue: /* @__PURE__ */ z.never().optional(),
613
+ numValue: /* @__PURE__ */ z.never().optional(),
614
+ dateValue: /* @__PURE__ */ z.never().optional(),
615
+ listValue: /* @__PURE__ */ z.never().optional(),
616
+ boolValue: /* @__PURE__ */ z.never().optional(),
617
+ mapValue: /* @__PURE__ */ z.object({
618
+ value: /* @__PURE__ */ z.record(
619
+ /* @__PURE__ */ z.string(),
620
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
608
621
  ).describe("Map of custom field values.").optional()
609
622
  }).describe("Key-value pairs.")
610
623
  }),
611
- z.object({
612
- strValue: z.never().optional(),
613
- numValue: z.never().optional(),
614
- dateValue: z.never().optional(),
615
- listValue: z.never().optional(),
616
- mapValue: z.never().optional(),
617
- boolValue: z.boolean().describe("Bool value")
624
+ /* @__PURE__ */ z.object({
625
+ strValue: /* @__PURE__ */ z.never().optional(),
626
+ numValue: /* @__PURE__ */ z.never().optional(),
627
+ dateValue: /* @__PURE__ */ z.never().optional(),
628
+ listValue: /* @__PURE__ */ z.never().optional(),
629
+ mapValue: /* @__PURE__ */ z.never().optional(),
630
+ boolValue: /* @__PURE__ */ z.boolean().describe("Bool value")
618
631
  })
619
632
  ])
620
633
  );
621
- let comWixCommonUpstreamWixCommonCustomValueSchema = z.intersection(
622
- z.object({}),
623
- z.xor([
624
- z.object({
625
- strValue: z.never().optional(),
626
- numValue: z.never().optional(),
627
- dateValue: z.never().optional(),
628
- listValue: z.never().optional(),
629
- mapValue: z.never().optional()
634
+ let comWixCommonUpstreamWixCommonCustomValueSchema = /* @__PURE__ */ z.intersection(
635
+ /* @__PURE__ */ z.object({}),
636
+ /* @__PURE__ */ z.xor([
637
+ /* @__PURE__ */ z.object({
638
+ strValue: /* @__PURE__ */ z.never().optional(),
639
+ numValue: /* @__PURE__ */ z.never().optional(),
640
+ dateValue: /* @__PURE__ */ z.never().optional(),
641
+ listValue: /* @__PURE__ */ z.never().optional(),
642
+ mapValue: /* @__PURE__ */ z.never().optional()
630
643
  }),
631
- z.object({
632
- numValue: z.never().optional(),
633
- dateValue: z.never().optional(),
634
- listValue: z.never().optional(),
635
- mapValue: z.never().optional(),
636
- strValue: z.string().describe("String value.")
644
+ /* @__PURE__ */ z.object({
645
+ numValue: /* @__PURE__ */ z.never().optional(),
646
+ dateValue: /* @__PURE__ */ z.never().optional(),
647
+ listValue: /* @__PURE__ */ z.never().optional(),
648
+ mapValue: /* @__PURE__ */ z.never().optional(),
649
+ strValue: /* @__PURE__ */ z.string().describe("String value.")
637
650
  }),
638
- z.object({
639
- strValue: z.never().optional(),
640
- dateValue: z.never().optional(),
641
- listValue: z.never().optional(),
642
- mapValue: z.never().optional(),
643
- numValue: z.number().describe("Number value.")
651
+ /* @__PURE__ */ z.object({
652
+ strValue: /* @__PURE__ */ z.never().optional(),
653
+ dateValue: /* @__PURE__ */ z.never().optional(),
654
+ listValue: /* @__PURE__ */ z.never().optional(),
655
+ mapValue: /* @__PURE__ */ z.never().optional(),
656
+ numValue: /* @__PURE__ */ z.number().describe("Number value.")
644
657
  }),
645
- z.object({
646
- strValue: z.never().optional(),
647
- numValue: z.never().optional(),
648
- listValue: z.never().optional(),
649
- mapValue: z.never().optional(),
650
- dateValue: z.date().describe("Date value.")
658
+ /* @__PURE__ */ z.object({
659
+ strValue: /* @__PURE__ */ z.never().optional(),
660
+ numValue: /* @__PURE__ */ z.never().optional(),
661
+ listValue: /* @__PURE__ */ z.never().optional(),
662
+ mapValue: /* @__PURE__ */ z.never().optional(),
663
+ dateValue: /* @__PURE__ */ z.date().describe("Date value.")
651
664
  }),
652
- z.object({
653
- strValue: z.never().optional(),
654
- numValue: z.never().optional(),
655
- dateValue: z.never().optional(),
656
- mapValue: z.never().optional(),
657
- listValue: z.object({
658
- value: z.array(
659
- z.lazy(() => comWixCommonUpstreamWixCommonCustomValueSchema)
665
+ /* @__PURE__ */ z.object({
666
+ strValue: /* @__PURE__ */ z.never().optional(),
667
+ numValue: /* @__PURE__ */ z.never().optional(),
668
+ dateValue: /* @__PURE__ */ z.never().optional(),
669
+ mapValue: /* @__PURE__ */ z.never().optional(),
670
+ listValue: /* @__PURE__ */ z.object({
671
+ value: /* @__PURE__ */ z.array(
672
+ /* @__PURE__ */ z.lazy(
673
+ () => comWixCommonUpstreamWixCommonCustomValueSchema
674
+ )
660
675
  ).optional()
661
676
  }).describe("List value.")
662
677
  }),
663
- z.object({
664
- strValue: z.never().optional(),
665
- numValue: z.never().optional(),
666
- dateValue: z.never().optional(),
667
- listValue: z.never().optional(),
668
- mapValue: z.object({
669
- value: z.record(
670
- z.string(),
671
- z.lazy(() => comWixCommonUpstreamWixCommonCustomValueSchema)
678
+ /* @__PURE__ */ z.object({
679
+ strValue: /* @__PURE__ */ z.never().optional(),
680
+ numValue: /* @__PURE__ */ z.never().optional(),
681
+ dateValue: /* @__PURE__ */ z.never().optional(),
682
+ listValue: /* @__PURE__ */ z.never().optional(),
683
+ mapValue: /* @__PURE__ */ z.object({
684
+ value: /* @__PURE__ */ z.record(
685
+ /* @__PURE__ */ z.string(),
686
+ /* @__PURE__ */ z.lazy(
687
+ () => comWixCommonUpstreamWixCommonCustomValueSchema
688
+ )
672
689
  ).describe("Mapped custom value.").optional()
673
690
  }).describe("Map value.")
674
691
  })
675
692
  ])
676
693
  );
677
- return z.object({
678
- state: z.enum([
694
+ return /* @__PURE__ */ z.object({
695
+ state: /* @__PURE__ */ z.enum([
679
696
  "UNKNOWN_STATE",
680
697
  "SUCCESS",
681
698
  "REQUIRE_OWNER_APPROVAL",
@@ -683,111 +700,111 @@ var LoginV2Response = /* @__PURE__ */ (() => {
683
700
  "STATUS_CHECK",
684
701
  "REQUIRE_MISSING_FIELDS"
685
702
  ]).describe("Current state of the login or registration process.").optional(),
686
- sessionToken: z.string().describe(
703
+ sessionToken: /* @__PURE__ */ z.string().describe(
687
704
  "Session token. If `state` is not `SUCCESS`, this field is undefined."
688
705
  ).optional().nullable(),
689
- stateToken: z.string().describe(
706
+ stateToken: /* @__PURE__ */ z.string().describe(
690
707
  "Token that represents the current state of the login or registration process."
691
708
  ).optional().nullable(),
692
- identity: z.object({
693
- _id: z.string().describe("Identity ID.").regex(
709
+ identity: /* @__PURE__ */ z.object({
710
+ _id: /* @__PURE__ */ z.string().describe("Identity ID.").regex(
694
711
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
695
712
  "Must be a valid GUID"
696
713
  ).optional().nullable(),
697
- revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
714
+ revision: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
698
715
  "Revision number, which increments by 1 each time the identity is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the identity.\n\nIgnored when creating an identity."
699
716
  ).optional().nullable(),
700
- _createdDate: z.date().describe("Date and time the identity was created.").optional().nullable(),
701
- _updatedDate: z.date().describe("Date and time the identity was updated.").optional().nullable(),
702
- connections: z.array(
703
- z.intersection(
704
- z.object({}),
705
- z.xor([
706
- z.object({
707
- idpConnection: z.never().optional(),
708
- authenticatorConnection: z.never().optional()
717
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the identity was created.").optional().nullable(),
718
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the identity was updated.").optional().nullable(),
719
+ connections: /* @__PURE__ */ z.array(
720
+ /* @__PURE__ */ z.intersection(
721
+ /* @__PURE__ */ z.object({}),
722
+ /* @__PURE__ */ z.xor([
723
+ /* @__PURE__ */ z.object({
724
+ idpConnection: /* @__PURE__ */ z.never().optional(),
725
+ authenticatorConnection: /* @__PURE__ */ z.never().optional()
709
726
  }),
710
- z.object({
711
- authenticatorConnection: z.never().optional(),
712
- idpConnection: z.object({
713
- idpConnectionId: z.string().describe("IDP connection ID.").regex(
727
+ /* @__PURE__ */ z.object({
728
+ authenticatorConnection: /* @__PURE__ */ z.never().optional(),
729
+ idpConnection: /* @__PURE__ */ z.object({
730
+ idpConnectionId: /* @__PURE__ */ z.string().describe("IDP connection ID.").regex(
714
731
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
715
732
  "Must be a valid GUID"
716
733
  ).optional(),
717
- idpUserId: z.string().describe("IDP user ID.").optional()
734
+ idpUserId: /* @__PURE__ */ z.string().describe("IDP user ID.").optional()
718
735
  }).describe("IDP connection.")
719
736
  }),
720
- z.object({
721
- idpConnection: z.never().optional(),
722
- authenticatorConnection: z.object({
723
- authenticatorConnectionId: z.string().describe("Authenticator connection ID.").regex(
737
+ /* @__PURE__ */ z.object({
738
+ idpConnection: /* @__PURE__ */ z.never().optional(),
739
+ authenticatorConnection: /* @__PURE__ */ z.object({
740
+ authenticatorConnectionId: /* @__PURE__ */ z.string().describe("Authenticator connection ID.").regex(
724
741
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
725
742
  "Must be a valid GUID"
726
743
  ).optional(),
727
- reEnrollmentRequired: z.boolean().describe("Whether re-enrollment is required.").optional()
744
+ reEnrollmentRequired: /* @__PURE__ */ z.boolean().describe("Whether re-enrollment is required.").optional()
728
745
  }).describe("Authenticator connection.")
729
746
  })
730
747
  ])
731
748
  )
732
749
  ).optional(),
733
- identityProfile: z.object({
734
- firstName: z.string().describe("Member's first name.").optional().nullable(),
735
- lastName: z.string().describe("Member's last name.").optional().nullable(),
736
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
737
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
738
- emails: z.array(z.string()).optional(),
739
- phones: z.array(z.string()).optional(),
740
- labels: z.array(z.string()).max(2e3).optional(),
741
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
742
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
743
- customFields: z.array(
744
- z.object({
745
- name: z.string().describe(
750
+ identityProfile: /* @__PURE__ */ z.object({
751
+ firstName: /* @__PURE__ */ z.string().describe("Member's first name.").optional().nullable(),
752
+ lastName: /* @__PURE__ */ z.string().describe("Member's last name.").optional().nullable(),
753
+ nickname: /* @__PURE__ */ z.string().describe("Member's display nickname.").optional().nullable(),
754
+ picture: /* @__PURE__ */ z.string().describe("URL to member's profile picture.").optional().nullable(),
755
+ emails: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
756
+ phones: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
757
+ labels: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(2e3).optional(),
758
+ language: /* @__PURE__ */ z.string().describe("Member's preferred language code.").optional().nullable(),
759
+ privacyStatus: /* @__PURE__ */ z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
760
+ customFields: /* @__PURE__ */ z.array(
761
+ /* @__PURE__ */ z.object({
762
+ name: /* @__PURE__ */ z.string().describe(
746
763
  "Custom field name matching an extended field key (without `custom.` prefix).\n\nMust match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)."
747
764
  ).optional(),
748
765
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
749
766
  })
750
767
  ).optional(),
751
- secondaryEmails: z.array(
752
- z.object({
753
- email: z.string().describe("Secondary email address.").email().optional(),
754
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).describe("Email tag.").optional()
768
+ secondaryEmails: /* @__PURE__ */ z.array(
769
+ /* @__PURE__ */ z.object({
770
+ email: /* @__PURE__ */ z.string().describe("Secondary email address.").email().optional(),
771
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).describe("Email tag.").optional()
755
772
  })
756
773
  ).optional(),
757
- phonesV2: z.array(
758
- z.object({
759
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
760
- phone: z.string().describe("Phone number without country code.").optional(),
761
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).describe("Phone tag.").optional()
774
+ phonesV2: /* @__PURE__ */ z.array(
775
+ /* @__PURE__ */ z.object({
776
+ countryCode: /* @__PURE__ */ z.string().describe("Country code for the phone number.").optional().nullable(),
777
+ phone: /* @__PURE__ */ z.string().describe("Phone number without country code.").optional(),
778
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).describe("Phone tag.").optional()
762
779
  })
763
780
  ).optional(),
764
- addresses: z.array(
765
- z.object({
766
- address: z.object({
767
- city: z.string().optional().nullable(),
768
- subdivision: z.string().optional().nullable(),
769
- country: z.string().optional().nullable(),
770
- postalCode: z.string().optional().nullable(),
771
- addressLine2: z.string().optional().nullable()
781
+ addresses: /* @__PURE__ */ z.array(
782
+ /* @__PURE__ */ z.object({
783
+ address: /* @__PURE__ */ z.object({
784
+ city: /* @__PURE__ */ z.string().optional().nullable(),
785
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
786
+ country: /* @__PURE__ */ z.string().optional().nullable(),
787
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
788
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
772
789
  }).describe("Physical address details.").optional(),
773
- tag: z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).describe("Address tag.").optional()
790
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).describe("Address tag.").optional()
774
791
  })
775
792
  ).optional(),
776
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
777
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
778
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
779
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
780
- subscription: z.boolean().describe(
793
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
794
+ position: /* @__PURE__ */ z.string().describe("Position within company.").max(1e3).optional().nullable(),
795
+ birthdate: /* @__PURE__ */ z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
796
+ slug: /* @__PURE__ */ z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
797
+ subscription: /* @__PURE__ */ z.boolean().describe(
781
798
  "Whether the member consents to receive marketing communications."
782
799
  ).optional().nullable(),
783
- vatId: z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
800
+ vatId: /* @__PURE__ */ z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
784
801
  }).describe("Identity profile.").optional(),
785
- email: z.object({
786
- address: z.string().describe("Email address.").email().optional(),
787
- isVerified: z.boolean().describe("Whether the email address is verified.").optional()
802
+ email: /* @__PURE__ */ z.object({
803
+ address: /* @__PURE__ */ z.string().describe("Email address.").email().optional(),
804
+ isVerified: /* @__PURE__ */ z.boolean().describe("Whether the email address is verified.").optional()
788
805
  }).describe("Identity email address.").optional(),
789
- status: z.object({
790
- name: z.enum([
806
+ status: /* @__PURE__ */ z.object({
807
+ name: /* @__PURE__ */ z.enum([
791
808
  "UNKNOWN_STATUS",
792
809
  "PENDING",
793
810
  "ACTIVE",
@@ -795,8 +812,8 @@ var LoginV2Response = /* @__PURE__ */ (() => {
795
812
  "BLOCKED",
796
813
  "OFFLINE"
797
814
  ]).describe("Descriptive name of the identity status.").optional(),
798
- reasons: z.array(
799
- z.enum([
815
+ reasons: /* @__PURE__ */ z.array(
816
+ /* @__PURE__ */ z.enum([
800
817
  "UNKNOWN_REASON",
801
818
  "PENDING_ADMIN_APPROVAL_REQUIRED",
802
819
  "PENDING_EMAIL_VERIFICATION_REQUIRED",
@@ -804,13 +821,13 @@ var LoginV2Response = /* @__PURE__ */ (() => {
804
821
  ])
805
822
  ).optional()
806
823
  }).describe("Identity's current status.").optional(),
807
- factors: z.array(
808
- z.object({
809
- factorId: z.string().describe("Factor ID.").regex(
824
+ factors: /* @__PURE__ */ z.array(
825
+ /* @__PURE__ */ z.object({
826
+ factorId: /* @__PURE__ */ z.string().describe("Factor ID.").regex(
810
827
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
811
828
  "Must be a valid GUID"
812
829
  ).optional(),
813
- type: z.enum([
830
+ type: /* @__PURE__ */ z.enum([
814
831
  "PASSWORD",
815
832
  "SMS",
816
833
  "CALL",
@@ -820,338 +837,345 @@ var LoginV2Response = /* @__PURE__ */ (() => {
820
837
  "WEBAUTHN",
821
838
  "RECOVERY_CODE"
822
839
  ]).describe("Factor type.").optional(),
823
- status: z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
840
+ status: /* @__PURE__ */ z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
824
841
  })
825
842
  ).max(10).optional()
826
843
  }).describe("Identity of the current member.").optional(),
827
- additionalData: z.record(z.string(), comWixCommonUpstreamWixCommonCustomValueSchema).describe(
844
+ additionalData: /* @__PURE__ */ z.record(
845
+ /* @__PURE__ */ z.string(),
846
+ comWixCommonUpstreamWixCommonCustomValueSchema
847
+ ).describe(
828
848
  "Additional data relevant to the login or registration process."
829
849
  ).optional()
830
850
  });
831
851
  })();
832
852
  var ChangePasswordRequest = /* @__PURE__ */ z.object({
833
- newPassword: z.string().describe(
853
+ newPassword: /* @__PURE__ */ z.string().describe(
834
854
  "New password to set for the logged-in member.\n\nThe password must meet the site's configured password requirements for length and complexity."
835
855
  )
836
856
  });
837
857
  var ChangePasswordResponse = /* @__PURE__ */ z.object({});
838
858
  var SignOnRequest = /* @__PURE__ */ (() => {
839
- let wixIamIdentityV1CustomValueSchema = z.intersection(
840
- z.object({}),
841
- z.xor([
842
- z.object({
843
- strValue: z.never().optional(),
844
- numValue: z.never().optional(),
845
- dateValue: z.never().optional(),
846
- listValue: z.never().optional(),
847
- mapValue: z.never().optional(),
848
- boolValue: z.never().optional()
859
+ let wixIamIdentityV1CustomValueSchema = /* @__PURE__ */ z.intersection(
860
+ /* @__PURE__ */ z.object({}),
861
+ /* @__PURE__ */ z.xor([
862
+ /* @__PURE__ */ z.object({
863
+ strValue: /* @__PURE__ */ z.never().optional(),
864
+ numValue: /* @__PURE__ */ z.never().optional(),
865
+ dateValue: /* @__PURE__ */ z.never().optional(),
866
+ listValue: /* @__PURE__ */ z.never().optional(),
867
+ mapValue: /* @__PURE__ */ z.never().optional(),
868
+ boolValue: /* @__PURE__ */ z.never().optional()
849
869
  }),
850
- z.object({
851
- numValue: z.never().optional(),
852
- dateValue: z.never().optional(),
853
- listValue: z.never().optional(),
854
- mapValue: z.never().optional(),
855
- boolValue: z.never().optional(),
856
- strValue: z.string().describe("Text value.")
870
+ /* @__PURE__ */ z.object({
871
+ numValue: /* @__PURE__ */ z.never().optional(),
872
+ dateValue: /* @__PURE__ */ z.never().optional(),
873
+ listValue: /* @__PURE__ */ z.never().optional(),
874
+ mapValue: /* @__PURE__ */ z.never().optional(),
875
+ boolValue: /* @__PURE__ */ z.never().optional(),
876
+ strValue: /* @__PURE__ */ z.string().describe("Text value.")
857
877
  }),
858
- z.object({
859
- strValue: z.never().optional(),
860
- dateValue: z.never().optional(),
861
- listValue: z.never().optional(),
862
- mapValue: z.never().optional(),
863
- boolValue: z.never().optional(),
864
- numValue: z.number().describe("Numeric value.")
878
+ /* @__PURE__ */ z.object({
879
+ strValue: /* @__PURE__ */ z.never().optional(),
880
+ dateValue: /* @__PURE__ */ z.never().optional(),
881
+ listValue: /* @__PURE__ */ z.never().optional(),
882
+ mapValue: /* @__PURE__ */ z.never().optional(),
883
+ boolValue: /* @__PURE__ */ z.never().optional(),
884
+ numValue: /* @__PURE__ */ z.number().describe("Numeric value.")
865
885
  }),
866
- z.object({
867
- strValue: z.never().optional(),
868
- numValue: z.never().optional(),
869
- listValue: z.never().optional(),
870
- mapValue: z.never().optional(),
871
- boolValue: z.never().optional(),
872
- dateValue: z.date().describe("Date/time value.")
886
+ /* @__PURE__ */ z.object({
887
+ strValue: /* @__PURE__ */ z.never().optional(),
888
+ numValue: /* @__PURE__ */ z.never().optional(),
889
+ listValue: /* @__PURE__ */ z.never().optional(),
890
+ mapValue: /* @__PURE__ */ z.never().optional(),
891
+ boolValue: /* @__PURE__ */ z.never().optional(),
892
+ dateValue: /* @__PURE__ */ z.date().describe("Date/time value.")
873
893
  }),
874
- z.object({
875
- strValue: z.never().optional(),
876
- numValue: z.never().optional(),
877
- dateValue: z.never().optional(),
878
- mapValue: z.never().optional(),
879
- boolValue: z.never().optional(),
880
- listValue: z.object({
881
- value: z.array(z.lazy(() => wixIamIdentityV1CustomValueSchema)).optional()
894
+ /* @__PURE__ */ z.object({
895
+ strValue: /* @__PURE__ */ z.never().optional(),
896
+ numValue: /* @__PURE__ */ z.never().optional(),
897
+ dateValue: /* @__PURE__ */ z.never().optional(),
898
+ mapValue: /* @__PURE__ */ z.never().optional(),
899
+ boolValue: /* @__PURE__ */ z.never().optional(),
900
+ listValue: /* @__PURE__ */ z.object({
901
+ value: /* @__PURE__ */ z.array(
902
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
903
+ ).optional()
882
904
  }).describe("List of values.")
883
905
  }),
884
- z.object({
885
- strValue: z.never().optional(),
886
- numValue: z.never().optional(),
887
- dateValue: z.never().optional(),
888
- listValue: z.never().optional(),
889
- boolValue: z.never().optional(),
890
- mapValue: z.object({
891
- value: z.record(
892
- z.string(),
893
- z.lazy(() => wixIamIdentityV1CustomValueSchema)
906
+ /* @__PURE__ */ z.object({
907
+ strValue: /* @__PURE__ */ z.never().optional(),
908
+ numValue: /* @__PURE__ */ z.never().optional(),
909
+ dateValue: /* @__PURE__ */ z.never().optional(),
910
+ listValue: /* @__PURE__ */ z.never().optional(),
911
+ boolValue: /* @__PURE__ */ z.never().optional(),
912
+ mapValue: /* @__PURE__ */ z.object({
913
+ value: /* @__PURE__ */ z.record(
914
+ /* @__PURE__ */ z.string(),
915
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
894
916
  ).describe("Map of custom field values.").optional()
895
917
  }).describe("Key-value pairs.")
896
918
  }),
897
- z.object({
898
- strValue: z.never().optional(),
899
- numValue: z.never().optional(),
900
- dateValue: z.never().optional(),
901
- listValue: z.never().optional(),
902
- mapValue: z.never().optional(),
903
- boolValue: z.boolean().describe("Bool value")
919
+ /* @__PURE__ */ z.object({
920
+ strValue: /* @__PURE__ */ z.never().optional(),
921
+ numValue: /* @__PURE__ */ z.never().optional(),
922
+ dateValue: /* @__PURE__ */ z.never().optional(),
923
+ listValue: /* @__PURE__ */ z.never().optional(),
924
+ mapValue: /* @__PURE__ */ z.never().optional(),
925
+ boolValue: /* @__PURE__ */ z.boolean().describe("Bool value")
904
926
  })
905
927
  ])
906
928
  );
907
- return z.object({
908
- loginId: z.intersection(
909
- z.object({}),
910
- z.xor([
911
- z.object({ email: z.never().optional() }),
912
- z.object({
913
- email: z.string().describe("Login email address.").email()
929
+ return /* @__PURE__ */ z.object({
930
+ loginId: /* @__PURE__ */ z.intersection(
931
+ /* @__PURE__ */ z.object({}),
932
+ /* @__PURE__ */ z.xor([
933
+ /* @__PURE__ */ z.object({ email: /* @__PURE__ */ z.never().optional() }),
934
+ /* @__PURE__ */ z.object({
935
+ email: /* @__PURE__ */ z.string().describe("Login email address.").email()
914
936
  })
915
937
  ])
916
938
  ).describe(
917
939
  "Member identifier for authentication.\n\nCurrently only email addresses are supported."
918
940
  ),
919
- options: z.object({
920
- profile: z.object({
921
- firstName: z.string().describe("Member's first name.").optional().nullable(),
922
- lastName: z.string().describe("Member's last name.").optional().nullable(),
923
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
924
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
925
- emails: z.array(z.string()).optional(),
926
- phones: z.array(z.string()).optional(),
927
- labels: z.array(z.string()).max(2e3).optional(),
928
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
929
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).optional(),
930
- customFields: z.array(
931
- z.object({
932
- name: z.string().describe(
941
+ options: /* @__PURE__ */ z.object({
942
+ profile: /* @__PURE__ */ z.object({
943
+ firstName: /* @__PURE__ */ z.string().describe("Member's first name.").optional().nullable(),
944
+ lastName: /* @__PURE__ */ z.string().describe("Member's last name.").optional().nullable(),
945
+ nickname: /* @__PURE__ */ z.string().describe("Member's display nickname.").optional().nullable(),
946
+ picture: /* @__PURE__ */ z.string().describe("URL to member's profile picture.").optional().nullable(),
947
+ emails: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
948
+ phones: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
949
+ labels: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(2e3).optional(),
950
+ language: /* @__PURE__ */ z.string().describe("Member's preferred language code.").optional().nullable(),
951
+ privacyStatus: /* @__PURE__ */ z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).optional(),
952
+ customFields: /* @__PURE__ */ z.array(
953
+ /* @__PURE__ */ z.object({
954
+ name: /* @__PURE__ */ z.string().describe(
933
955
  "Custom field name matching an extended field key (without `custom.` prefix).\n\nMust match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)."
934
956
  ).optional(),
935
957
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
936
958
  })
937
959
  ).optional(),
938
- secondaryEmails: z.array(
939
- z.object({
940
- email: z.string().describe("Secondary email address.").email().optional(),
941
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).optional()
960
+ secondaryEmails: /* @__PURE__ */ z.array(
961
+ /* @__PURE__ */ z.object({
962
+ email: /* @__PURE__ */ z.string().describe("Secondary email address.").email().optional(),
963
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).optional()
942
964
  })
943
965
  ).optional(),
944
- phonesV2: z.array(
945
- z.object({
946
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
947
- phone: z.string().describe("Phone number without country code.").optional(),
948
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).optional()
966
+ phonesV2: /* @__PURE__ */ z.array(
967
+ /* @__PURE__ */ z.object({
968
+ countryCode: /* @__PURE__ */ z.string().describe("Country code for the phone number.").optional().nullable(),
969
+ phone: /* @__PURE__ */ z.string().describe("Phone number without country code.").optional(),
970
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).optional()
949
971
  })
950
972
  ).optional(),
951
- addresses: z.array(
952
- z.object({
953
- address: z.object({
954
- city: z.string().optional().nullable(),
955
- subdivision: z.string().optional().nullable(),
956
- country: z.string().optional().nullable(),
957
- postalCode: z.string().optional().nullable(),
958
- addressLine2: z.string().optional().nullable()
973
+ addresses: /* @__PURE__ */ z.array(
974
+ /* @__PURE__ */ z.object({
975
+ address: /* @__PURE__ */ z.object({
976
+ city: /* @__PURE__ */ z.string().optional().nullable(),
977
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
978
+ country: /* @__PURE__ */ z.string().optional().nullable(),
979
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
980
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
959
981
  }).describe("Physical address details.").optional(),
960
- tag: z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).optional()
982
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).optional()
961
983
  })
962
984
  ).optional(),
963
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
964
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
965
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
966
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
967
- subscription: z.boolean().describe(
985
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
986
+ position: /* @__PURE__ */ z.string().describe("Position within company.").max(1e3).optional().nullable(),
987
+ birthdate: /* @__PURE__ */ z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
988
+ slug: /* @__PURE__ */ z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
989
+ subscription: /* @__PURE__ */ z.boolean().describe(
968
990
  "Whether the member consents to receive marketing communications."
969
991
  ).optional().nullable(),
970
- vatId: z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
992
+ vatId: /* @__PURE__ */ z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
971
993
  }).describe(
972
994
  "Member profile information.\n\nProfile data such as first name, last name, and other member details.\nIf the member already exists, provided profile information will update the existing member's profile.\nIf the member doesn't exist, this profile information is used to create the new member."
973
995
  ).optional(),
974
- verifyEmail: z.boolean().describe(
996
+ verifyEmail: /* @__PURE__ */ z.boolean().describe(
975
997
  "Whether to mark the member's email as verified without requiring verification.\n\nWhen `true`, marks the email as verified without requiring verification.\nUse with caution in production as this bypasses security verification.\n\nDefault: `false`"
976
998
  ).optional(),
977
- mergeExistingContact: z.boolean().describe(
999
+ mergeExistingContact: /* @__PURE__ */ z.boolean().describe(
978
1000
  "Whether to merge with an existing contact with the same email address.\n\nWhen `true`, links the member to an existing contact record with the same email\nand inherits contact data. When `false`, creates a new contact record.\n\nDefault: `true`"
979
1001
  ).optional()
980
1002
  }).optional()
981
1003
  });
982
1004
  })();
983
1005
  var SignOnResponse = /* @__PURE__ */ (() => {
984
- let wixIamIdentityV1CustomValueSchema = z.intersection(
985
- z.object({}),
986
- z.xor([
987
- z.object({
988
- strValue: z.never().optional(),
989
- numValue: z.never().optional(),
990
- dateValue: z.never().optional(),
991
- listValue: z.never().optional(),
992
- mapValue: z.never().optional(),
993
- boolValue: z.never().optional()
1006
+ let wixIamIdentityV1CustomValueSchema = /* @__PURE__ */ z.intersection(
1007
+ /* @__PURE__ */ z.object({}),
1008
+ /* @__PURE__ */ z.xor([
1009
+ /* @__PURE__ */ z.object({
1010
+ strValue: /* @__PURE__ */ z.never().optional(),
1011
+ numValue: /* @__PURE__ */ z.never().optional(),
1012
+ dateValue: /* @__PURE__ */ z.never().optional(),
1013
+ listValue: /* @__PURE__ */ z.never().optional(),
1014
+ mapValue: /* @__PURE__ */ z.never().optional(),
1015
+ boolValue: /* @__PURE__ */ z.never().optional()
994
1016
  }),
995
- z.object({
996
- numValue: z.never().optional(),
997
- dateValue: z.never().optional(),
998
- listValue: z.never().optional(),
999
- mapValue: z.never().optional(),
1000
- boolValue: z.never().optional(),
1001
- strValue: z.string().describe("Text value.")
1017
+ /* @__PURE__ */ z.object({
1018
+ numValue: /* @__PURE__ */ z.never().optional(),
1019
+ dateValue: /* @__PURE__ */ z.never().optional(),
1020
+ listValue: /* @__PURE__ */ z.never().optional(),
1021
+ mapValue: /* @__PURE__ */ z.never().optional(),
1022
+ boolValue: /* @__PURE__ */ z.never().optional(),
1023
+ strValue: /* @__PURE__ */ z.string().describe("Text value.")
1002
1024
  }),
1003
- z.object({
1004
- strValue: z.never().optional(),
1005
- dateValue: z.never().optional(),
1006
- listValue: z.never().optional(),
1007
- mapValue: z.never().optional(),
1008
- boolValue: z.never().optional(),
1009
- numValue: z.number().describe("Numeric value.")
1025
+ /* @__PURE__ */ z.object({
1026
+ strValue: /* @__PURE__ */ z.never().optional(),
1027
+ dateValue: /* @__PURE__ */ z.never().optional(),
1028
+ listValue: /* @__PURE__ */ z.never().optional(),
1029
+ mapValue: /* @__PURE__ */ z.never().optional(),
1030
+ boolValue: /* @__PURE__ */ z.never().optional(),
1031
+ numValue: /* @__PURE__ */ z.number().describe("Numeric value.")
1010
1032
  }),
1011
- z.object({
1012
- strValue: z.never().optional(),
1013
- numValue: z.never().optional(),
1014
- listValue: z.never().optional(),
1015
- mapValue: z.never().optional(),
1016
- boolValue: z.never().optional(),
1017
- dateValue: z.date().describe("Date/time value.")
1033
+ /* @__PURE__ */ z.object({
1034
+ strValue: /* @__PURE__ */ z.never().optional(),
1035
+ numValue: /* @__PURE__ */ z.never().optional(),
1036
+ listValue: /* @__PURE__ */ z.never().optional(),
1037
+ mapValue: /* @__PURE__ */ z.never().optional(),
1038
+ boolValue: /* @__PURE__ */ z.never().optional(),
1039
+ dateValue: /* @__PURE__ */ z.date().describe("Date/time value.")
1018
1040
  }),
1019
- z.object({
1020
- strValue: z.never().optional(),
1021
- numValue: z.never().optional(),
1022
- dateValue: z.never().optional(),
1023
- mapValue: z.never().optional(),
1024
- boolValue: z.never().optional(),
1025
- listValue: z.object({
1026
- value: z.array(z.lazy(() => wixIamIdentityV1CustomValueSchema)).optional()
1041
+ /* @__PURE__ */ z.object({
1042
+ strValue: /* @__PURE__ */ z.never().optional(),
1043
+ numValue: /* @__PURE__ */ z.never().optional(),
1044
+ dateValue: /* @__PURE__ */ z.never().optional(),
1045
+ mapValue: /* @__PURE__ */ z.never().optional(),
1046
+ boolValue: /* @__PURE__ */ z.never().optional(),
1047
+ listValue: /* @__PURE__ */ z.object({
1048
+ value: /* @__PURE__ */ z.array(
1049
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
1050
+ ).optional()
1027
1051
  }).describe("List of values.")
1028
1052
  }),
1029
- z.object({
1030
- strValue: z.never().optional(),
1031
- numValue: z.never().optional(),
1032
- dateValue: z.never().optional(),
1033
- listValue: z.never().optional(),
1034
- boolValue: z.never().optional(),
1035
- mapValue: z.object({
1036
- value: z.record(
1037
- z.string(),
1038
- z.lazy(() => wixIamIdentityV1CustomValueSchema)
1053
+ /* @__PURE__ */ z.object({
1054
+ strValue: /* @__PURE__ */ z.never().optional(),
1055
+ numValue: /* @__PURE__ */ z.never().optional(),
1056
+ dateValue: /* @__PURE__ */ z.never().optional(),
1057
+ listValue: /* @__PURE__ */ z.never().optional(),
1058
+ boolValue: /* @__PURE__ */ z.never().optional(),
1059
+ mapValue: /* @__PURE__ */ z.object({
1060
+ value: /* @__PURE__ */ z.record(
1061
+ /* @__PURE__ */ z.string(),
1062
+ /* @__PURE__ */ z.lazy(() => wixIamIdentityV1CustomValueSchema)
1039
1063
  ).describe("Map of custom field values.").optional()
1040
1064
  }).describe("Key-value pairs.")
1041
1065
  }),
1042
- z.object({
1043
- strValue: z.never().optional(),
1044
- numValue: z.never().optional(),
1045
- dateValue: z.never().optional(),
1046
- listValue: z.never().optional(),
1047
- mapValue: z.never().optional(),
1048
- boolValue: z.boolean().describe("Bool value")
1066
+ /* @__PURE__ */ z.object({
1067
+ strValue: /* @__PURE__ */ z.never().optional(),
1068
+ numValue: /* @__PURE__ */ z.never().optional(),
1069
+ dateValue: /* @__PURE__ */ z.never().optional(),
1070
+ listValue: /* @__PURE__ */ z.never().optional(),
1071
+ mapValue: /* @__PURE__ */ z.never().optional(),
1072
+ boolValue: /* @__PURE__ */ z.boolean().describe("Bool value")
1049
1073
  })
1050
1074
  ])
1051
1075
  );
1052
- return z.object({
1053
- sessionToken: z.string().describe(
1076
+ return /* @__PURE__ */ z.object({
1077
+ sessionToken: /* @__PURE__ */ z.string().describe(
1054
1078
  "Session token for the authenticated member.\n\nUse this token to obtain access and refresh tokens for subsequent API calls."
1055
1079
  ).optional(),
1056
- identity: z.object({
1057
- _id: z.string().describe("Identity ID.").regex(
1080
+ identity: /* @__PURE__ */ z.object({
1081
+ _id: /* @__PURE__ */ z.string().describe("Identity ID.").regex(
1058
1082
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1059
1083
  "Must be a valid GUID"
1060
1084
  ).optional().nullable(),
1061
- revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
1085
+ revision: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
1062
1086
  "Revision number, which increments by 1 each time the identity is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the identity.\n\nIgnored when creating an identity."
1063
1087
  ).optional().nullable(),
1064
- _createdDate: z.date().describe("Date and time the identity was created.").optional().nullable(),
1065
- _updatedDate: z.date().describe("Date and time the identity was updated.").optional().nullable(),
1066
- connections: z.array(
1067
- z.intersection(
1068
- z.object({}),
1069
- z.xor([
1070
- z.object({
1071
- idpConnection: z.never().optional(),
1072
- authenticatorConnection: z.never().optional()
1088
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the identity was created.").optional().nullable(),
1089
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the identity was updated.").optional().nullable(),
1090
+ connections: /* @__PURE__ */ z.array(
1091
+ /* @__PURE__ */ z.intersection(
1092
+ /* @__PURE__ */ z.object({}),
1093
+ /* @__PURE__ */ z.xor([
1094
+ /* @__PURE__ */ z.object({
1095
+ idpConnection: /* @__PURE__ */ z.never().optional(),
1096
+ authenticatorConnection: /* @__PURE__ */ z.never().optional()
1073
1097
  }),
1074
- z.object({
1075
- authenticatorConnection: z.never().optional(),
1076
- idpConnection: z.object({
1077
- idpConnectionId: z.string().describe("IDP connection ID.").regex(
1098
+ /* @__PURE__ */ z.object({
1099
+ authenticatorConnection: /* @__PURE__ */ z.never().optional(),
1100
+ idpConnection: /* @__PURE__ */ z.object({
1101
+ idpConnectionId: /* @__PURE__ */ z.string().describe("IDP connection ID.").regex(
1078
1102
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1079
1103
  "Must be a valid GUID"
1080
1104
  ).optional(),
1081
- idpUserId: z.string().describe("IDP user ID.").optional()
1105
+ idpUserId: /* @__PURE__ */ z.string().describe("IDP user ID.").optional()
1082
1106
  }).describe("IDP connection.")
1083
1107
  }),
1084
- z.object({
1085
- idpConnection: z.never().optional(),
1086
- authenticatorConnection: z.object({
1087
- authenticatorConnectionId: z.string().describe("Authenticator connection ID.").regex(
1108
+ /* @__PURE__ */ z.object({
1109
+ idpConnection: /* @__PURE__ */ z.never().optional(),
1110
+ authenticatorConnection: /* @__PURE__ */ z.object({
1111
+ authenticatorConnectionId: /* @__PURE__ */ z.string().describe("Authenticator connection ID.").regex(
1088
1112
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1089
1113
  "Must be a valid GUID"
1090
1114
  ).optional(),
1091
- reEnrollmentRequired: z.boolean().describe("Whether re-enrollment is required.").optional()
1115
+ reEnrollmentRequired: /* @__PURE__ */ z.boolean().describe("Whether re-enrollment is required.").optional()
1092
1116
  }).describe("Authenticator connection.")
1093
1117
  })
1094
1118
  ])
1095
1119
  )
1096
1120
  ).optional(),
1097
- identityProfile: z.object({
1098
- firstName: z.string().describe("Member's first name.").optional().nullable(),
1099
- lastName: z.string().describe("Member's last name.").optional().nullable(),
1100
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
1101
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
1102
- emails: z.array(z.string()).optional(),
1103
- phones: z.array(z.string()).optional(),
1104
- labels: z.array(z.string()).max(2e3).optional(),
1105
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
1106
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
1107
- customFields: z.array(
1108
- z.object({
1109
- name: z.string().describe(
1121
+ identityProfile: /* @__PURE__ */ z.object({
1122
+ firstName: /* @__PURE__ */ z.string().describe("Member's first name.").optional().nullable(),
1123
+ lastName: /* @__PURE__ */ z.string().describe("Member's last name.").optional().nullable(),
1124
+ nickname: /* @__PURE__ */ z.string().describe("Member's display nickname.").optional().nullable(),
1125
+ picture: /* @__PURE__ */ z.string().describe("URL to member's profile picture.").optional().nullable(),
1126
+ emails: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
1127
+ phones: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
1128
+ labels: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(2e3).optional(),
1129
+ language: /* @__PURE__ */ z.string().describe("Member's preferred language code.").optional().nullable(),
1130
+ privacyStatus: /* @__PURE__ */ z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
1131
+ customFields: /* @__PURE__ */ z.array(
1132
+ /* @__PURE__ */ z.object({
1133
+ name: /* @__PURE__ */ z.string().describe(
1110
1134
  "Custom field name matching an extended field key (without `custom.` prefix).\n\nMust match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)."
1111
1135
  ).optional(),
1112
1136
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
1113
1137
  })
1114
1138
  ).optional(),
1115
- secondaryEmails: z.array(
1116
- z.object({
1117
- email: z.string().describe("Secondary email address.").email().optional(),
1118
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).describe("Email tag.").optional()
1139
+ secondaryEmails: /* @__PURE__ */ z.array(
1140
+ /* @__PURE__ */ z.object({
1141
+ email: /* @__PURE__ */ z.string().describe("Secondary email address.").email().optional(),
1142
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "WORK"]).describe("Email tag.").optional()
1119
1143
  })
1120
1144
  ).optional(),
1121
- phonesV2: z.array(
1122
- z.object({
1123
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
1124
- phone: z.string().describe("Phone number without country code.").optional(),
1125
- tag: z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).describe("Phone tag.").optional()
1145
+ phonesV2: /* @__PURE__ */ z.array(
1146
+ /* @__PURE__ */ z.object({
1147
+ countryCode: /* @__PURE__ */ z.string().describe("Country code for the phone number.").optional().nullable(),
1148
+ phone: /* @__PURE__ */ z.string().describe("Phone number without country code.").optional(),
1149
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "MAIN", "HOME", "MOBILE", "WORK", "FAX"]).describe("Phone tag.").optional()
1126
1150
  })
1127
1151
  ).optional(),
1128
- addresses: z.array(
1129
- z.object({
1130
- address: z.object({
1131
- city: z.string().optional().nullable(),
1132
- subdivision: z.string().optional().nullable(),
1133
- country: z.string().optional().nullable(),
1134
- postalCode: z.string().optional().nullable(),
1135
- addressLine2: z.string().optional().nullable()
1152
+ addresses: /* @__PURE__ */ z.array(
1153
+ /* @__PURE__ */ z.object({
1154
+ address: /* @__PURE__ */ z.object({
1155
+ city: /* @__PURE__ */ z.string().optional().nullable(),
1156
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
1157
+ country: /* @__PURE__ */ z.string().optional().nullable(),
1158
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
1159
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
1136
1160
  }).describe("Physical address details.").optional(),
1137
- tag: z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).describe("Address tag.").optional()
1161
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).describe("Address tag.").optional()
1138
1162
  })
1139
1163
  ).optional(),
1140
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
1141
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
1142
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
1143
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
1144
- subscription: z.boolean().describe(
1164
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
1165
+ position: /* @__PURE__ */ z.string().describe("Position within company.").max(1e3).optional().nullable(),
1166
+ birthdate: /* @__PURE__ */ z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
1167
+ slug: /* @__PURE__ */ z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
1168
+ subscription: /* @__PURE__ */ z.boolean().describe(
1145
1169
  "Whether the member consents to receive marketing communications."
1146
1170
  ).optional().nullable(),
1147
- vatId: z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
1171
+ vatId: /* @__PURE__ */ z.string().describe("Tax ID or VAT number for personal or corporate use.").max(1e3).optional().nullable()
1148
1172
  }).describe("Identity profile.").optional(),
1149
- email: z.object({
1150
- address: z.string().describe("Email address.").email().optional(),
1151
- isVerified: z.boolean().describe("Whether the email address is verified.").optional()
1173
+ email: /* @__PURE__ */ z.object({
1174
+ address: /* @__PURE__ */ z.string().describe("Email address.").email().optional(),
1175
+ isVerified: /* @__PURE__ */ z.boolean().describe("Whether the email address is verified.").optional()
1152
1176
  }).describe("Identity email address.").optional(),
1153
- status: z.object({
1154
- name: z.enum([
1177
+ status: /* @__PURE__ */ z.object({
1178
+ name: /* @__PURE__ */ z.enum([
1155
1179
  "UNKNOWN_STATUS",
1156
1180
  "PENDING",
1157
1181
  "ACTIVE",
@@ -1159,8 +1183,8 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1159
1183
  "BLOCKED",
1160
1184
  "OFFLINE"
1161
1185
  ]).describe("Descriptive name of the identity status.").optional(),
1162
- reasons: z.array(
1163
- z.enum([
1186
+ reasons: /* @__PURE__ */ z.array(
1187
+ /* @__PURE__ */ z.enum([
1164
1188
  "UNKNOWN_REASON",
1165
1189
  "PENDING_ADMIN_APPROVAL_REQUIRED",
1166
1190
  "PENDING_EMAIL_VERIFICATION_REQUIRED",
@@ -1168,13 +1192,13 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1168
1192
  ])
1169
1193
  ).optional()
1170
1194
  }).describe("Identity's current status.").optional(),
1171
- factors: z.array(
1172
- z.object({
1173
- factorId: z.string().describe("Factor ID.").regex(
1195
+ factors: /* @__PURE__ */ z.array(
1196
+ /* @__PURE__ */ z.object({
1197
+ factorId: /* @__PURE__ */ z.string().describe("Factor ID.").regex(
1174
1198
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1175
1199
  "Must be a valid GUID"
1176
1200
  ).optional(),
1177
- type: z.enum([
1201
+ type: /* @__PURE__ */ z.enum([
1178
1202
  "PASSWORD",
1179
1203
  "SMS",
1180
1204
  "CALL",
@@ -1184,7 +1208,7 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1184
1208
  "WEBAUTHN",
1185
1209
  "RECOVERY_CODE"
1186
1210
  ]).describe("Factor type.").optional(),
1187
- status: z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
1211
+ status: /* @__PURE__ */ z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
1188
1212
  })
1189
1213
  ).max(10).optional()
1190
1214
  }).describe(
@@ -1193,11 +1217,11 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1193
1217
  });
1194
1218
  })();
1195
1219
  var LogoutRequest = /* @__PURE__ */ z.object({
1196
- options: z.object({
1197
- postLogoutRedirectUri: z.string().describe(
1220
+ options: /* @__PURE__ */ z.object({
1221
+ postLogoutRedirectUri: /* @__PURE__ */ z.string().describe(
1198
1222
  "URL to redirect to after logout.\n\nOptional redirect destination after the logout process completes."
1199
1223
  ).url().optional().nullable(),
1200
- clientId: z.string().describe(
1224
+ clientId: /* @__PURE__ */ z.string().describe(
1201
1225
  "Client identifier for the logout request.\n\nIdentifies the application or client initiating the logout."
1202
1226
  ).regex(
1203
1227
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -1206,10 +1230,13 @@ var LogoutRequest = /* @__PURE__ */ z.object({
1206
1230
  }).optional()
1207
1231
  });
1208
1232
  var LogoutResponse = /* @__PURE__ */ z.object({
1209
- body: z.string().optional(),
1210
- statusCode: z.number().int().optional().nullable(),
1211
- headers: z.array(
1212
- z.object({ key: z.string().optional(), value: z.string().optional() })
1233
+ body: /* @__PURE__ */ z.string().optional(),
1234
+ statusCode: /* @__PURE__ */ z.number().int().optional().nullable(),
1235
+ headers: /* @__PURE__ */ z.array(
1236
+ /* @__PURE__ */ z.object({
1237
+ key: /* @__PURE__ */ z.string().optional(),
1238
+ value: /* @__PURE__ */ z.string().optional()
1239
+ })
1213
1240
  ).optional()
1214
1241
  });
1215
1242
  export {