@wix/auto_sdk_identity_authentication 1.0.58 → 1.0.59

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