@wix/auto_sdk_identity_authentication 1.0.57 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,175 +48,177 @@ module.exports = __toCommonJS(schemas_exports);
48
48
  // src/iam-authentication-v1-authentication-authentication.schemas.ts
49
49
  var z = __toESM(require("zod"));
50
50
  var RegisterV2Request = /* @__PURE__ */ (() => {
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()
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 = /* @__PURE__ */ (() => {
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
238
  var RegisterV2Response = /* @__PURE__ */ (() => {
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()
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 = /* @__PURE__ */ (() => {
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 = /* @__PURE__ */ (() => {
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 = /* @__PURE__ */ (() => {
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,22 +512,25 @@ var RegisterV2Response = /* @__PURE__ */ (() => {
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
527
  var ValidateEmailRequest = /* @__PURE__ */ z.object({
517
- email: z.string().max(254)
528
+ email: /* @__PURE__ */ z.string().max(254)
518
529
  });
519
530
  var ValidateEmailResponse = /* @__PURE__ */ z.object({
520
- valid: z.boolean().optional(),
521
- failure: z.object({
522
- reason: z.enum([
531
+ valid: /* @__PURE__ */ z.boolean().optional(),
532
+ failure: /* @__PURE__ */ z.object({
533
+ reason: /* @__PURE__ */ z.enum([
523
534
  "UNKNOWN_REASON",
524
535
  "EMAIL_ADDRESS_BOUNCED",
525
536
  "EMAIL_DOMAIN_MISSING_DNS_RECORDS",
@@ -527,57 +538,57 @@ var ValidateEmailResponse = /* @__PURE__ */ z.object({
527
538
  "EMAIL_DOMAIN_PERMANENTLY_BLACKLISTED"
528
539
  ]).optional()
529
540
  }).optional(),
530
- formatInvalid: z.boolean().optional()
541
+ formatInvalid: /* @__PURE__ */ z.boolean().optional()
531
542
  });
532
543
  var LoginV2Request = /* @__PURE__ */ z.object({
533
- loginId: z.intersection(
534
- z.object({}),
535
- z.xor([
536
- z.object({ email: z.never().optional() }),
537
- z.object({
538
- email: z.string().describe("Login email address.").email()
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()
539
550
  })
540
551
  ])
541
552
  ).describe("Identifier of identity logging in."),
542
- options: z.object({
543
- password: z.string().describe("Password of the identity logging in.").optional().nullable(),
544
- captchaTokens: z.array(
545
- z.intersection(
546
- z.object({}),
547
- z.xor([
548
- z.object({
549
- Recaptcha: z.never().optional(),
550
- InvisibleRecaptcha: z.never().optional(),
551
- NoCaptcha: z.never().optional(),
552
- 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()
553
564
  }),
554
- z.object({
555
- InvisibleRecaptcha: z.never().optional(),
556
- NoCaptcha: z.never().optional(),
557
- recaptchaForClientSiteKey: z.never().optional(),
558
- 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)
559
570
  }),
560
- z.object({
561
- Recaptcha: z.never().optional(),
562
- NoCaptcha: z.never().optional(),
563
- recaptchaForClientSiteKey: z.never().optional(),
564
- 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)
565
576
  }),
566
- z.object({
567
- Recaptcha: z.never().optional(),
568
- InvisibleRecaptcha: z.never().optional(),
569
- recaptchaForClientSiteKey: z.never().optional(),
570
- 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)
571
582
  }),
572
- z.object({
573
- Recaptcha: z.never().optional(),
574
- InvisibleRecaptcha: z.never().optional(),
575
- NoCaptcha: z.never().optional(),
576
- recaptchaForClientSiteKey: z.object({
577
- 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(
578
589
  "The reCAPTCHA token obtained from the client-side reCAPTCHA widget."
579
590
  ).max(5e3).optional(),
580
- siteKeyId: z.string().describe(
591
+ siteKeyId: /* @__PURE__ */ z.string().describe(
581
592
  "The site key ID registered in ReCAPTCHA service SDL for this client's reCAPTCHA configuration."
582
593
  ).regex(
583
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}$/,
@@ -590,139 +601,145 @@ var LoginV2Request = /* @__PURE__ */ z.object({
590
601
  ])
591
602
  )
592
603
  ).optional(),
593
- clientMetaData: z.record(z.string(), z.any()).describe("Additional data that's relevant for the flow.").optional().nullable(),
594
- 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(
595
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."
596
607
  ).max(1e3).optional().nullable()
597
608
  }).optional()
598
609
  });
599
610
  var LoginV2Response = /* @__PURE__ */ (() => {
600
- let wixIamIdentityV1CustomValueSchema = z.intersection(
601
- z.object({}),
602
- z.xor([
603
- z.object({
604
- strValue: z.never().optional(),
605
- numValue: z.never().optional(),
606
- dateValue: z.never().optional(),
607
- listValue: z.never().optional(),
608
- mapValue: z.never().optional(),
609
- boolValue: z.never().optional()
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()
610
621
  }),
611
- z.object({
612
- numValue: z.never().optional(),
613
- dateValue: z.never().optional(),
614
- listValue: z.never().optional(),
615
- mapValue: z.never().optional(),
616
- boolValue: z.never().optional(),
617
- 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.")
618
629
  }),
619
- z.object({
620
- strValue: z.never().optional(),
621
- dateValue: z.never().optional(),
622
- listValue: z.never().optional(),
623
- mapValue: z.never().optional(),
624
- boolValue: z.never().optional(),
625
- 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.")
626
637
  }),
627
- z.object({
628
- strValue: z.never().optional(),
629
- numValue: z.never().optional(),
630
- listValue: z.never().optional(),
631
- mapValue: z.never().optional(),
632
- boolValue: z.never().optional(),
633
- 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.")
634
645
  }),
635
- z.object({
636
- strValue: z.never().optional(),
637
- numValue: z.never().optional(),
638
- dateValue: z.never().optional(),
639
- mapValue: z.never().optional(),
640
- boolValue: z.never().optional(),
641
- listValue: z.object({
642
- 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()
643
656
  }).describe("List of values.")
644
657
  }),
645
- z.object({
646
- strValue: z.never().optional(),
647
- numValue: z.never().optional(),
648
- dateValue: z.never().optional(),
649
- listValue: z.never().optional(),
650
- boolValue: z.never().optional(),
651
- mapValue: z.object({
652
- value: z.record(
653
- z.string(),
654
- 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)
655
668
  ).describe("Map of custom field values.").optional()
656
669
  }).describe("Key-value pairs.")
657
670
  }),
658
- z.object({
659
- strValue: z.never().optional(),
660
- numValue: z.never().optional(),
661
- dateValue: z.never().optional(),
662
- listValue: z.never().optional(),
663
- mapValue: z.never().optional(),
664
- 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")
665
678
  })
666
679
  ])
667
680
  );
668
- let comWixCommonUpstreamWixCommonCustomValueSchema = z.intersection(
669
- z.object({}),
670
- z.xor([
671
- z.object({
672
- strValue: z.never().optional(),
673
- numValue: z.never().optional(),
674
- dateValue: z.never().optional(),
675
- listValue: z.never().optional(),
676
- 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()
677
690
  }),
678
- z.object({
679
- numValue: z.never().optional(),
680
- dateValue: z.never().optional(),
681
- listValue: z.never().optional(),
682
- mapValue: z.never().optional(),
683
- 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.")
684
697
  }),
685
- z.object({
686
- strValue: z.never().optional(),
687
- dateValue: z.never().optional(),
688
- listValue: z.never().optional(),
689
- mapValue: z.never().optional(),
690
- 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.")
691
704
  }),
692
- z.object({
693
- strValue: z.never().optional(),
694
- numValue: z.never().optional(),
695
- listValue: z.never().optional(),
696
- mapValue: z.never().optional(),
697
- 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.")
698
711
  }),
699
- z.object({
700
- strValue: z.never().optional(),
701
- numValue: z.never().optional(),
702
- dateValue: z.never().optional(),
703
- mapValue: z.never().optional(),
704
- listValue: z.object({
705
- value: z.array(
706
- 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
+ )
707
722
  ).optional()
708
723
  }).describe("List value.")
709
724
  }),
710
- z.object({
711
- strValue: z.never().optional(),
712
- numValue: z.never().optional(),
713
- dateValue: z.never().optional(),
714
- listValue: z.never().optional(),
715
- mapValue: z.object({
716
- value: z.record(
717
- z.string(),
718
- 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
+ )
719
736
  ).describe("Mapped custom value.").optional()
720
737
  }).describe("Map value.")
721
738
  })
722
739
  ])
723
740
  );
724
- return z.object({
725
- state: z.enum([
741
+ return /* @__PURE__ */ z.object({
742
+ state: /* @__PURE__ */ z.enum([
726
743
  "UNKNOWN_STATE",
727
744
  "SUCCESS",
728
745
  "REQUIRE_OWNER_APPROVAL",
@@ -730,111 +747,111 @@ var LoginV2Response = /* @__PURE__ */ (() => {
730
747
  "STATUS_CHECK",
731
748
  "REQUIRE_MISSING_FIELDS"
732
749
  ]).describe("Current state of the login or registration process.").optional(),
733
- sessionToken: z.string().describe(
750
+ sessionToken: /* @__PURE__ */ z.string().describe(
734
751
  "Session token. If `state` is not `SUCCESS`, this field is undefined."
735
752
  ).optional().nullable(),
736
- stateToken: z.string().describe(
753
+ stateToken: /* @__PURE__ */ z.string().describe(
737
754
  "Token that represents the current state of the login or registration process."
738
755
  ).optional().nullable(),
739
- identity: z.object({
740
- _id: z.string().describe("Identity ID.").regex(
756
+ identity: /* @__PURE__ */ z.object({
757
+ _id: /* @__PURE__ */ z.string().describe("Identity ID.").regex(
741
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}$/,
742
759
  "Must be a valid GUID"
743
760
  ).optional().nullable(),
744
- 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(
745
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."
746
763
  ).optional().nullable(),
747
- _createdDate: z.date().describe("Date and time the identity was created.").optional().nullable(),
748
- _updatedDate: z.date().describe("Date and time the identity was updated.").optional().nullable(),
749
- connections: z.array(
750
- z.intersection(
751
- z.object({}),
752
- z.xor([
753
- z.object({
754
- idpConnection: z.never().optional(),
755
- 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()
756
773
  }),
757
- z.object({
758
- authenticatorConnection: z.never().optional(),
759
- idpConnection: z.object({
760
- 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(
761
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}$/,
762
779
  "Must be a valid GUID"
763
780
  ).optional(),
764
- idpUserId: z.string().describe("IDP user ID.").optional()
781
+ idpUserId: /* @__PURE__ */ z.string().describe("IDP user ID.").optional()
765
782
  }).describe("IDP connection.")
766
783
  }),
767
- z.object({
768
- idpConnection: z.never().optional(),
769
- authenticatorConnection: z.object({
770
- 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(
771
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}$/,
772
789
  "Must be a valid GUID"
773
790
  ).optional(),
774
- reEnrollmentRequired: z.boolean().describe("Whether re-enrollment is required.").optional()
791
+ reEnrollmentRequired: /* @__PURE__ */ z.boolean().describe("Whether re-enrollment is required.").optional()
775
792
  }).describe("Authenticator connection.")
776
793
  })
777
794
  ])
778
795
  )
779
796
  ).optional(),
780
- identityProfile: z.object({
781
- firstName: z.string().describe("Member's first name.").optional().nullable(),
782
- lastName: z.string().describe("Member's last name.").optional().nullable(),
783
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
784
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
785
- emails: z.array(z.string()).optional(),
786
- phones: z.array(z.string()).optional(),
787
- labels: z.array(z.string()).max(2e3).optional(),
788
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
789
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
790
- customFields: z.array(
791
- z.object({
792
- 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(
793
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)."
794
811
  ).optional(),
795
812
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
796
813
  })
797
814
  ).optional(),
798
- secondaryEmails: z.array(
799
- z.object({
800
- email: z.string().describe("Secondary email address.").email().optional(),
801
- 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()
802
819
  })
803
820
  ).optional(),
804
- phonesV2: z.array(
805
- z.object({
806
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
807
- phone: z.string().describe("Phone number without country code.").optional(),
808
- 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()
809
826
  })
810
827
  ).optional(),
811
- addresses: z.array(
812
- z.object({
813
- address: z.object({
814
- city: z.string().optional().nullable(),
815
- subdivision: z.string().optional().nullable(),
816
- country: z.string().optional().nullable(),
817
- postalCode: z.string().optional().nullable(),
818
- 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()
819
836
  }).describe("Physical address details.").optional(),
820
- 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()
821
838
  })
822
839
  ).optional(),
823
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
824
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
825
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
826
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
827
- 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(
828
845
  "Whether the member consents to receive marketing communications."
829
846
  ).optional().nullable(),
830
- 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()
831
848
  }).describe("Identity profile.").optional(),
832
- email: z.object({
833
- address: z.string().describe("Email address.").email().optional(),
834
- 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()
835
852
  }).describe("Identity email address.").optional(),
836
- status: z.object({
837
- name: z.enum([
853
+ status: /* @__PURE__ */ z.object({
854
+ name: /* @__PURE__ */ z.enum([
838
855
  "UNKNOWN_STATUS",
839
856
  "PENDING",
840
857
  "ACTIVE",
@@ -842,8 +859,8 @@ var LoginV2Response = /* @__PURE__ */ (() => {
842
859
  "BLOCKED",
843
860
  "OFFLINE"
844
861
  ]).describe("Descriptive name of the identity status.").optional(),
845
- reasons: z.array(
846
- z.enum([
862
+ reasons: /* @__PURE__ */ z.array(
863
+ /* @__PURE__ */ z.enum([
847
864
  "UNKNOWN_REASON",
848
865
  "PENDING_ADMIN_APPROVAL_REQUIRED",
849
866
  "PENDING_EMAIL_VERIFICATION_REQUIRED",
@@ -851,13 +868,13 @@ var LoginV2Response = /* @__PURE__ */ (() => {
851
868
  ])
852
869
  ).optional()
853
870
  }).describe("Identity's current status.").optional(),
854
- factors: z.array(
855
- z.object({
856
- 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(
857
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}$/,
858
875
  "Must be a valid GUID"
859
876
  ).optional(),
860
- type: z.enum([
877
+ type: /* @__PURE__ */ z.enum([
861
878
  "PASSWORD",
862
879
  "SMS",
863
880
  "CALL",
@@ -867,338 +884,345 @@ var LoginV2Response = /* @__PURE__ */ (() => {
867
884
  "WEBAUTHN",
868
885
  "RECOVERY_CODE"
869
886
  ]).describe("Factor type.").optional(),
870
- status: z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
887
+ status: /* @__PURE__ */ z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
871
888
  })
872
889
  ).max(10).optional()
873
890
  }).describe("Identity of the current member.").optional(),
874
- additionalData: z.record(z.string(), comWixCommonUpstreamWixCommonCustomValueSchema).describe(
891
+ additionalData: /* @__PURE__ */ z.record(
892
+ /* @__PURE__ */ z.string(),
893
+ comWixCommonUpstreamWixCommonCustomValueSchema
894
+ ).describe(
875
895
  "Additional data relevant to the login or registration process."
876
896
  ).optional()
877
897
  });
878
898
  })();
879
899
  var ChangePasswordRequest = /* @__PURE__ */ z.object({
880
- newPassword: z.string().describe(
900
+ newPassword: /* @__PURE__ */ z.string().describe(
881
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."
882
902
  )
883
903
  });
884
904
  var ChangePasswordResponse = /* @__PURE__ */ z.object({});
885
905
  var SignOnRequest = /* @__PURE__ */ (() => {
886
- let wixIamIdentityV1CustomValueSchema = z.intersection(
887
- z.object({}),
888
- z.xor([
889
- z.object({
890
- strValue: z.never().optional(),
891
- numValue: z.never().optional(),
892
- dateValue: z.never().optional(),
893
- listValue: z.never().optional(),
894
- mapValue: z.never().optional(),
895
- boolValue: z.never().optional()
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()
896
916
  }),
897
- z.object({
898
- numValue: z.never().optional(),
899
- dateValue: z.never().optional(),
900
- listValue: z.never().optional(),
901
- mapValue: z.never().optional(),
902
- boolValue: z.never().optional(),
903
- 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.")
904
924
  }),
905
- z.object({
906
- strValue: z.never().optional(),
907
- dateValue: z.never().optional(),
908
- listValue: z.never().optional(),
909
- mapValue: z.never().optional(),
910
- boolValue: z.never().optional(),
911
- 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.")
912
932
  }),
913
- z.object({
914
- strValue: z.never().optional(),
915
- numValue: z.never().optional(),
916
- listValue: z.never().optional(),
917
- mapValue: z.never().optional(),
918
- boolValue: z.never().optional(),
919
- 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.")
920
940
  }),
921
- z.object({
922
- strValue: z.never().optional(),
923
- numValue: z.never().optional(),
924
- dateValue: z.never().optional(),
925
- mapValue: z.never().optional(),
926
- boolValue: z.never().optional(),
927
- listValue: z.object({
928
- 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()
929
951
  }).describe("List of values.")
930
952
  }),
931
- z.object({
932
- strValue: z.never().optional(),
933
- numValue: z.never().optional(),
934
- dateValue: z.never().optional(),
935
- listValue: z.never().optional(),
936
- boolValue: z.never().optional(),
937
- mapValue: z.object({
938
- value: z.record(
939
- z.string(),
940
- 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)
941
963
  ).describe("Map of custom field values.").optional()
942
964
  }).describe("Key-value pairs.")
943
965
  }),
944
- z.object({
945
- strValue: z.never().optional(),
946
- numValue: z.never().optional(),
947
- dateValue: z.never().optional(),
948
- listValue: z.never().optional(),
949
- mapValue: z.never().optional(),
950
- 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")
951
973
  })
952
974
  ])
953
975
  );
954
- return z.object({
955
- loginId: z.intersection(
956
- z.object({}),
957
- z.xor([
958
- z.object({ email: z.never().optional() }),
959
- z.object({
960
- 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()
961
983
  })
962
984
  ])
963
985
  ).describe(
964
986
  "Member identifier for authentication.\n\nCurrently only email addresses are supported."
965
987
  ),
966
- options: z.object({
967
- profile: z.object({
968
- firstName: z.string().describe("Member's first name.").optional().nullable(),
969
- lastName: z.string().describe("Member's last name.").optional().nullable(),
970
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
971
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
972
- emails: z.array(z.string()).optional(),
973
- phones: z.array(z.string()).optional(),
974
- labels: z.array(z.string()).max(2e3).optional(),
975
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
976
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).optional(),
977
- customFields: z.array(
978
- z.object({
979
- 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(
980
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)."
981
1003
  ).optional(),
982
1004
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
983
1005
  })
984
1006
  ).optional(),
985
- secondaryEmails: z.array(
986
- z.object({
987
- email: z.string().describe("Secondary email address.").email().optional(),
988
- 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()
989
1011
  })
990
1012
  ).optional(),
991
- phonesV2: z.array(
992
- z.object({
993
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
994
- phone: z.string().describe("Phone number without country code.").optional(),
995
- 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()
996
1018
  })
997
1019
  ).optional(),
998
- addresses: z.array(
999
- z.object({
1000
- address: z.object({
1001
- city: z.string().optional().nullable(),
1002
- subdivision: z.string().optional().nullable(),
1003
- country: z.string().optional().nullable(),
1004
- postalCode: z.string().optional().nullable(),
1005
- 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()
1006
1028
  }).describe("Physical address details.").optional(),
1007
- tag: z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).optional()
1029
+ tag: /* @__PURE__ */ z.enum(["UNTAGGED", "HOME", "WORK", "BILLING", "SHIPPING"]).optional()
1008
1030
  })
1009
1031
  ).optional(),
1010
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
1011
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
1012
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
1013
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
1014
- 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(
1015
1037
  "Whether the member consents to receive marketing communications."
1016
1038
  ).optional().nullable(),
1017
- 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()
1018
1040
  }).describe(
1019
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."
1020
1042
  ).optional(),
1021
- verifyEmail: z.boolean().describe(
1043
+ verifyEmail: /* @__PURE__ */ z.boolean().describe(
1022
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`"
1023
1045
  ).optional(),
1024
- mergeExistingContact: z.boolean().describe(
1046
+ mergeExistingContact: /* @__PURE__ */ z.boolean().describe(
1025
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`"
1026
1048
  ).optional()
1027
1049
  }).optional()
1028
1050
  });
1029
1051
  })();
1030
1052
  var SignOnResponse = /* @__PURE__ */ (() => {
1031
- let wixIamIdentityV1CustomValueSchema = z.intersection(
1032
- z.object({}),
1033
- z.xor([
1034
- z.object({
1035
- strValue: z.never().optional(),
1036
- numValue: z.never().optional(),
1037
- dateValue: z.never().optional(),
1038
- listValue: z.never().optional(),
1039
- mapValue: z.never().optional(),
1040
- boolValue: z.never().optional()
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()
1041
1063
  }),
1042
- z.object({
1043
- numValue: z.never().optional(),
1044
- dateValue: z.never().optional(),
1045
- listValue: z.never().optional(),
1046
- mapValue: z.never().optional(),
1047
- boolValue: z.never().optional(),
1048
- 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.")
1049
1071
  }),
1050
- z.object({
1051
- strValue: z.never().optional(),
1052
- dateValue: z.never().optional(),
1053
- listValue: z.never().optional(),
1054
- mapValue: z.never().optional(),
1055
- boolValue: z.never().optional(),
1056
- 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.")
1057
1079
  }),
1058
- z.object({
1059
- strValue: z.never().optional(),
1060
- numValue: z.never().optional(),
1061
- listValue: z.never().optional(),
1062
- mapValue: z.never().optional(),
1063
- boolValue: z.never().optional(),
1064
- 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.")
1065
1087
  }),
1066
- z.object({
1067
- strValue: z.never().optional(),
1068
- numValue: z.never().optional(),
1069
- dateValue: z.never().optional(),
1070
- mapValue: z.never().optional(),
1071
- boolValue: z.never().optional(),
1072
- listValue: z.object({
1073
- 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()
1074
1098
  }).describe("List of values.")
1075
1099
  }),
1076
- z.object({
1077
- strValue: z.never().optional(),
1078
- numValue: z.never().optional(),
1079
- dateValue: z.never().optional(),
1080
- listValue: z.never().optional(),
1081
- boolValue: z.never().optional(),
1082
- mapValue: z.object({
1083
- value: z.record(
1084
- z.string(),
1085
- 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)
1086
1110
  ).describe("Map of custom field values.").optional()
1087
1111
  }).describe("Key-value pairs.")
1088
1112
  }),
1089
- z.object({
1090
- strValue: z.never().optional(),
1091
- numValue: z.never().optional(),
1092
- dateValue: z.never().optional(),
1093
- listValue: z.never().optional(),
1094
- mapValue: z.never().optional(),
1095
- 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")
1096
1120
  })
1097
1121
  ])
1098
1122
  );
1099
- return z.object({
1100
- sessionToken: z.string().describe(
1123
+ return /* @__PURE__ */ z.object({
1124
+ sessionToken: /* @__PURE__ */ z.string().describe(
1101
1125
  "Session token for the authenticated member.\n\nUse this token to obtain access and refresh tokens for subsequent API calls."
1102
1126
  ).optional(),
1103
- identity: z.object({
1104
- _id: z.string().describe("Identity ID.").regex(
1127
+ identity: /* @__PURE__ */ z.object({
1128
+ _id: /* @__PURE__ */ z.string().describe("Identity ID.").regex(
1105
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}$/,
1106
1130
  "Must be a valid GUID"
1107
1131
  ).optional().nullable(),
1108
- 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(
1109
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."
1110
1134
  ).optional().nullable(),
1111
- _createdDate: z.date().describe("Date and time the identity was created.").optional().nullable(),
1112
- _updatedDate: z.date().describe("Date and time the identity was updated.").optional().nullable(),
1113
- connections: z.array(
1114
- z.intersection(
1115
- z.object({}),
1116
- z.xor([
1117
- z.object({
1118
- idpConnection: z.never().optional(),
1119
- 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()
1120
1144
  }),
1121
- z.object({
1122
- authenticatorConnection: z.never().optional(),
1123
- idpConnection: z.object({
1124
- 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(
1125
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}$/,
1126
1150
  "Must be a valid GUID"
1127
1151
  ).optional(),
1128
- idpUserId: z.string().describe("IDP user ID.").optional()
1152
+ idpUserId: /* @__PURE__ */ z.string().describe("IDP user ID.").optional()
1129
1153
  }).describe("IDP connection.")
1130
1154
  }),
1131
- z.object({
1132
- idpConnection: z.never().optional(),
1133
- authenticatorConnection: z.object({
1134
- 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(
1135
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}$/,
1136
1160
  "Must be a valid GUID"
1137
1161
  ).optional(),
1138
- reEnrollmentRequired: z.boolean().describe("Whether re-enrollment is required.").optional()
1162
+ reEnrollmentRequired: /* @__PURE__ */ z.boolean().describe("Whether re-enrollment is required.").optional()
1139
1163
  }).describe("Authenticator connection.")
1140
1164
  })
1141
1165
  ])
1142
1166
  )
1143
1167
  ).optional(),
1144
- identityProfile: z.object({
1145
- firstName: z.string().describe("Member's first name.").optional().nullable(),
1146
- lastName: z.string().describe("Member's last name.").optional().nullable(),
1147
- nickname: z.string().describe("Member's display nickname.").optional().nullable(),
1148
- picture: z.string().describe("URL to member's profile picture.").optional().nullable(),
1149
- emails: z.array(z.string()).optional(),
1150
- phones: z.array(z.string()).optional(),
1151
- labels: z.array(z.string()).max(2e3).optional(),
1152
- language: z.string().describe("Member's preferred language code.").optional().nullable(),
1153
- privacyStatus: z.enum(["UNDEFINED", "PUBLIC", "PRIVATE"]).describe("Member's profile visibility setting.").optional(),
1154
- customFields: z.array(
1155
- z.object({
1156
- 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(
1157
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)."
1158
1182
  ).optional(),
1159
1183
  value: wixIamIdentityV1CustomValueSchema.describe("Value for the custom field.").optional()
1160
1184
  })
1161
1185
  ).optional(),
1162
- secondaryEmails: z.array(
1163
- z.object({
1164
- email: z.string().describe("Secondary email address.").email().optional(),
1165
- 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()
1166
1190
  })
1167
1191
  ).optional(),
1168
- phonesV2: z.array(
1169
- z.object({
1170
- countryCode: z.string().describe("Country code for the phone number.").optional().nullable(),
1171
- phone: z.string().describe("Phone number without country code.").optional(),
1172
- 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()
1173
1197
  })
1174
1198
  ).optional(),
1175
- addresses: z.array(
1176
- z.object({
1177
- address: z.object({
1178
- city: z.string().optional().nullable(),
1179
- subdivision: z.string().optional().nullable(),
1180
- country: z.string().optional().nullable(),
1181
- postalCode: z.string().optional().nullable(),
1182
- 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()
1183
1207
  }).describe("Physical address details.").optional(),
1184
- 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()
1185
1209
  })
1186
1210
  ).optional(),
1187
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
1188
- position: z.string().describe("Position within company.").max(1e3).optional().nullable(),
1189
- birthdate: z.string().describe("Member's birth date in `YYYY-MM-DD` format.").optional().nullable(),
1190
- slug: z.string().describe("URL-friendly slug for the member's profile.").max(255).optional().nullable(),
1191
- 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(
1192
1216
  "Whether the member consents to receive marketing communications."
1193
1217
  ).optional().nullable(),
1194
- 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()
1195
1219
  }).describe("Identity profile.").optional(),
1196
- email: z.object({
1197
- address: z.string().describe("Email address.").email().optional(),
1198
- 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()
1199
1223
  }).describe("Identity email address.").optional(),
1200
- status: z.object({
1201
- name: z.enum([
1224
+ status: /* @__PURE__ */ z.object({
1225
+ name: /* @__PURE__ */ z.enum([
1202
1226
  "UNKNOWN_STATUS",
1203
1227
  "PENDING",
1204
1228
  "ACTIVE",
@@ -1206,8 +1230,8 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1206
1230
  "BLOCKED",
1207
1231
  "OFFLINE"
1208
1232
  ]).describe("Descriptive name of the identity status.").optional(),
1209
- reasons: z.array(
1210
- z.enum([
1233
+ reasons: /* @__PURE__ */ z.array(
1234
+ /* @__PURE__ */ z.enum([
1211
1235
  "UNKNOWN_REASON",
1212
1236
  "PENDING_ADMIN_APPROVAL_REQUIRED",
1213
1237
  "PENDING_EMAIL_VERIFICATION_REQUIRED",
@@ -1215,13 +1239,13 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1215
1239
  ])
1216
1240
  ).optional()
1217
1241
  }).describe("Identity's current status.").optional(),
1218
- factors: z.array(
1219
- z.object({
1220
- 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(
1221
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}$/,
1222
1246
  "Must be a valid GUID"
1223
1247
  ).optional(),
1224
- type: z.enum([
1248
+ type: /* @__PURE__ */ z.enum([
1225
1249
  "PASSWORD",
1226
1250
  "SMS",
1227
1251
  "CALL",
@@ -1231,7 +1255,7 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1231
1255
  "WEBAUTHN",
1232
1256
  "RECOVERY_CODE"
1233
1257
  ]).describe("Factor type.").optional(),
1234
- status: z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
1258
+ status: /* @__PURE__ */ z.enum(["INACTIVE", "ACTIVE", "REQUIRE_REENROLL"]).describe("Factor status.").optional()
1235
1259
  })
1236
1260
  ).max(10).optional()
1237
1261
  }).describe(
@@ -1240,11 +1264,11 @@ var SignOnResponse = /* @__PURE__ */ (() => {
1240
1264
  });
1241
1265
  })();
1242
1266
  var LogoutRequest = /* @__PURE__ */ z.object({
1243
- options: z.object({
1244
- postLogoutRedirectUri: z.string().describe(
1267
+ options: /* @__PURE__ */ z.object({
1268
+ postLogoutRedirectUri: /* @__PURE__ */ z.string().describe(
1245
1269
  "URL to redirect to after logout.\n\nOptional redirect destination after the logout process completes."
1246
1270
  ).url().optional().nullable(),
1247
- clientId: z.string().describe(
1271
+ clientId: /* @__PURE__ */ z.string().describe(
1248
1272
  "Client identifier for the logout request.\n\nIdentifies the application or client initiating the logout."
1249
1273
  ).regex(
1250
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}$/,
@@ -1253,10 +1277,13 @@ var LogoutRequest = /* @__PURE__ */ z.object({
1253
1277
  }).optional()
1254
1278
  });
1255
1279
  var LogoutResponse = /* @__PURE__ */ z.object({
1256
- body: z.string().optional(),
1257
- statusCode: z.number().int().optional().nullable(),
1258
- headers: z.array(
1259
- z.object({ key: z.string().optional(), value: z.string().optional() })
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
+ })
1260
1287
  ).optional()
1261
1288
  });
1262
1289
  // Annotate the CommonJS export names for ESM import in node: