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