@wix/identity 1.0.84 → 1.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4102 @@
1
+ interface RegisterV2Request$1 {
2
+ /** Identifier of registering member. */
3
+ loginId: LoginId$1;
4
+ /** Password of registering member. */
5
+ password?: string;
6
+ /** Profile information of registering member. */
7
+ profile?: IdentityProfile$5;
8
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
9
+ captchaTokens?: CaptchaToken$1[];
10
+ /** Additional data, relevant for the flow. */
11
+ clientMetaData?: Record<string, any> | null;
12
+ }
13
+ interface LoginId$1 extends LoginIdTypeOneOf$1 {
14
+ /** Login email address. */
15
+ email?: string;
16
+ }
17
+ /** @oneof */
18
+ interface LoginIdTypeOneOf$1 {
19
+ /** Login email address. */
20
+ email?: string;
21
+ }
22
+ interface IdentityProfile$5 {
23
+ /** Profile first name. */
24
+ firstName?: string | null;
25
+ /** Profile last name. */
26
+ lastName?: string | null;
27
+ /** Profile nickname. */
28
+ nickname?: string | null;
29
+ /** Profile picture URL. */
30
+ picture?: string | null;
31
+ /**
32
+ * Deprecated. Use `secondaryEmails` instead.
33
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
34
+ * @replacedBy secondary_emails
35
+ * @targetRemovalDate 2023-11-01
36
+ */
37
+ emails?: string[];
38
+ /**
39
+ * Deprecated. Use `phonesV2` instead.
40
+ * @deprecated Deprecated. Use `phonesV2` instead.
41
+ * @replacedBy phones_v2
42
+ * @targetRemovalDate 2023-11-01
43
+ */
44
+ phones?: string[];
45
+ /** List of profile labels. */
46
+ labels?: string[];
47
+ /** Profile language. */
48
+ language?: string | null;
49
+ /** Profile privacy status. */
50
+ privacyStatus?: PrivacyStatus$5;
51
+ /**
52
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
53
+ * are used to store additional information about your site or app's contacts.
54
+ */
55
+ customFields?: CustomField$5[];
56
+ /** List of profile email addresses. */
57
+ secondaryEmails?: SecondaryEmail$5[];
58
+ /** List of profile phone numbers. */
59
+ phonesV2?: Phone$5[];
60
+ /** List of profile physical addresses. */
61
+ addresses?: AddressWrapper$5[];
62
+ /** Company name. */
63
+ company?: string | null;
64
+ /** Position within company. */
65
+ position?: string | null;
66
+ /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
67
+ birthdate?: string | null;
68
+ }
69
+ declare enum PrivacyStatus$5 {
70
+ UNDEFINED = "UNDEFINED",
71
+ PUBLIC = "PUBLIC",
72
+ PRIVATE = "PRIVATE"
73
+ }
74
+ interface CustomField$5 {
75
+ /**
76
+ * Custom field name. The name must match one of the key properties of the objects returned by
77
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
78
+ * with the `custom.` prefix removed.
79
+ */
80
+ name?: string;
81
+ /** Custom field value. */
82
+ value?: V1CustomValue$5;
83
+ }
84
+ interface V1CustomValue$5 extends V1CustomValueValueOneOf$5 {
85
+ /** String value. */
86
+ strValue?: string;
87
+ /** Number value. */
88
+ numValue?: number;
89
+ /** Date value. */
90
+ dateValue?: Date | null;
91
+ /** List value. */
92
+ listValue?: V1ListValue$5;
93
+ /** Map value. */
94
+ mapValue?: V1MapValue$5;
95
+ }
96
+ /** @oneof */
97
+ interface V1CustomValueValueOneOf$5 {
98
+ /** String value. */
99
+ strValue?: string;
100
+ /** Number value. */
101
+ numValue?: number;
102
+ /** Date value. */
103
+ dateValue?: Date | null;
104
+ /** List value. */
105
+ listValue?: V1ListValue$5;
106
+ /** Map value. */
107
+ mapValue?: V1MapValue$5;
108
+ }
109
+ interface V1ListValue$5 {
110
+ /** Custom value. */
111
+ value?: V1CustomValue$5[];
112
+ }
113
+ interface V1MapValue$5 {
114
+ /** Mapped custom value. */
115
+ value?: Record<string, V1CustomValue$5>;
116
+ }
117
+ interface SecondaryEmail$5 {
118
+ /** Email address. */
119
+ email?: string;
120
+ /** Email tag. */
121
+ tag?: EmailTag$5;
122
+ }
123
+ declare enum EmailTag$5 {
124
+ UNTAGGED = "UNTAGGED",
125
+ MAIN = "MAIN",
126
+ HOME = "HOME",
127
+ WORK = "WORK"
128
+ }
129
+ interface Phone$5 {
130
+ /** Phone country code. */
131
+ countryCode?: string | null;
132
+ /** Phone number. */
133
+ phone?: string;
134
+ /** Phone tag. */
135
+ tag?: PhoneTag$5;
136
+ }
137
+ declare enum PhoneTag$5 {
138
+ UNTAGGED = "UNTAGGED",
139
+ MAIN = "MAIN",
140
+ HOME = "HOME",
141
+ MOBILE = "MOBILE",
142
+ WORK = "WORK",
143
+ FAX = "FAX"
144
+ }
145
+ interface AddressWrapper$5 {
146
+ /** Address. */
147
+ address?: Address$5;
148
+ /** Address tag. */
149
+ tag?: AddressTag$5;
150
+ }
151
+ /** Physical address */
152
+ interface Address$5 {
153
+ /** Country code. */
154
+ country?: string | null;
155
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
156
+ subdivision?: string | null;
157
+ /** City name. */
158
+ city?: string | null;
159
+ /** Zip/postal code. */
160
+ postalCode?: string | null;
161
+ /** Main address line, usually street and number as free text. */
162
+ addressLine?: string | null;
163
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
164
+ addressLine2?: string | null;
165
+ }
166
+ declare enum AddressTag$5 {
167
+ UNTAGGED = "UNTAGGED",
168
+ HOME = "HOME",
169
+ WORK = "WORK",
170
+ BILLING = "BILLING",
171
+ SHIPPING = "SHIPPING"
172
+ }
173
+ interface CaptchaToken$1 extends CaptchaTokenTokenOneOf$1 {
174
+ Recaptcha?: string;
175
+ InvisibleRecaptcha?: string;
176
+ NoCaptcha?: string;
177
+ }
178
+ /** @oneof */
179
+ interface CaptchaTokenTokenOneOf$1 {
180
+ Recaptcha?: string;
181
+ InvisibleRecaptcha?: string;
182
+ NoCaptcha?: string;
183
+ }
184
+ interface StateMachineResponse$5 {
185
+ /** The current state of the login or registration process. */
186
+ state?: StateType$5;
187
+ /** If state is `SUCCESS`, a session token. */
188
+ sessionToken?: string | null;
189
+ /** A token representing the current state of the login or registration process. */
190
+ stateToken?: string | null;
191
+ /** Identing of the current member. */
192
+ identity?: Identity$5;
193
+ /** additional_data = 5; //TBD */
194
+ additionalData?: Record<string, CustomValue$5>;
195
+ }
196
+ declare enum StateType$5 {
197
+ /** Initial unknown state. */
198
+ UNKNOWN_STATE = "UNKNOWN_STATE",
199
+ /** The operation completed successfully. */
200
+ SUCCESS = "SUCCESS",
201
+ /** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
202
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
203
+ /**
204
+ * State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
205
+ * https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
206
+ */
207
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
208
+ /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
209
+ STATUS_CHECK = "STATUS_CHECK",
210
+ REQUIRE_MFA = "REQUIRE_MFA"
211
+ }
212
+ interface Identity$5 {
213
+ /** Identity ID */
214
+ id?: string | null;
215
+ /**
216
+ * Identifiers
217
+ * @deprecated Identifiers
218
+ * @replacedBy email
219
+ * @targetRemovalDate 2023-05-01
220
+ */
221
+ identifiers?: Identifier$5[];
222
+ /**
223
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes.
224
+ * For an update operation to succeed, you MUST pass the latest revision.
225
+ */
226
+ revision?: string | null;
227
+ /**
228
+ * The time this identity was created.
229
+ * @readonly
230
+ */
231
+ createdDate?: Date | null;
232
+ /**
233
+ * The time this identity was last updated.
234
+ * @readonly
235
+ */
236
+ updatedDate?: Date | null;
237
+ /** The identity configured connections to authenticate with. */
238
+ connections?: Connection$5[];
239
+ /** Identity profile. */
240
+ identityProfile?: IdentityProfile$5;
241
+ /**
242
+ * Additional information about the identity that can impact user access.
243
+ * This data cannot be set.
244
+ */
245
+ metadata?: Metadata$5;
246
+ /** Identity email address. */
247
+ email?: Email$5;
248
+ /** Identity's current status. */
249
+ status?: StatusV2$5;
250
+ /** filled by pre registered spi */
251
+ customAttributes?: Record<string, any> | null;
252
+ /**
253
+ * Identity factors.
254
+ * @readonly
255
+ */
256
+ factors?: Factor$5[];
257
+ }
258
+ interface Identifier$5 extends IdentifierValueOneOf$5 {
259
+ email?: string;
260
+ userName?: string;
261
+ }
262
+ /** @oneof */
263
+ interface IdentifierValueOneOf$5 {
264
+ email?: string;
265
+ userName?: string;
266
+ }
267
+ interface Connection$5 extends ConnectionTypeOneOf$5 {
268
+ /** IDP connection. */
269
+ idpConnection?: IdpConnection$5;
270
+ /** Authenticator connection. */
271
+ authenticatorConnection?: AuthenticatorConnection$5;
272
+ }
273
+ /** @oneof */
274
+ interface ConnectionTypeOneOf$5 {
275
+ /** IDP connection. */
276
+ idpConnection?: IdpConnection$5;
277
+ /** Authenticator connection. */
278
+ authenticatorConnection?: AuthenticatorConnection$5;
279
+ }
280
+ interface IdpConnection$5 {
281
+ /** IDP connection ID. */
282
+ idpConnectionId?: string;
283
+ /** IDP user ID. */
284
+ idpUserId?: string;
285
+ }
286
+ interface AuthenticatorConnection$5 {
287
+ /** Authenticator connection ID. */
288
+ authenticatorConnectionId?: string;
289
+ /** Whether re-enrollment is required. */
290
+ reEnrollmentRequired?: boolean;
291
+ }
292
+ interface Metadata$5 {
293
+ /**
294
+ * represents general tags such as "isOwner", "isContributor"
295
+ * @readonly
296
+ */
297
+ tags?: string[];
298
+ }
299
+ interface Email$5 {
300
+ address?: string;
301
+ isVerified?: boolean;
302
+ }
303
+ interface StatusV2$5 {
304
+ name?: StatusName$5;
305
+ reasons?: Reason$5[];
306
+ }
307
+ declare enum StatusName$5 {
308
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
309
+ PENDING = "PENDING",
310
+ ACTIVE = "ACTIVE",
311
+ DELETED = "DELETED",
312
+ BLOCKED = "BLOCKED",
313
+ OFFLINE = "OFFLINE"
314
+ }
315
+ declare enum Reason$5 {
316
+ UNKNOWN_REASON = "UNKNOWN_REASON",
317
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
318
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
319
+ }
320
+ interface Factor$5 {
321
+ /** Factor ID. */
322
+ factorId?: string;
323
+ /** Factor type. */
324
+ type?: FactorType$5;
325
+ /** Factor status. */
326
+ status?: Status$5;
327
+ }
328
+ declare enum FactorType$5 {
329
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
330
+ PASSWORD = "PASSWORD",
331
+ SMS = "SMS",
332
+ CALL = "CALL",
333
+ EMAIL = "EMAIL",
334
+ TOTP = "TOTP",
335
+ PUSH = "PUSH"
336
+ }
337
+ declare enum Status$5 {
338
+ /** Factor requires activation. */
339
+ INACTIVE = "INACTIVE",
340
+ /** Factor is active and can be used for authentication. */
341
+ ACTIVE = "ACTIVE",
342
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
343
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
344
+ }
345
+ interface CustomValue$5 extends CustomValueValueOneOf$5 {
346
+ /** String value. */
347
+ strValue?: string;
348
+ /** Number value. */
349
+ numValue?: number;
350
+ /** Date value. */
351
+ dateValue?: Date | null;
352
+ /** List value. */
353
+ listValue?: ListValue$5;
354
+ /** Map value. */
355
+ mapValue?: MapValue$5;
356
+ }
357
+ /** @oneof */
358
+ interface CustomValueValueOneOf$5 {
359
+ /** String value. */
360
+ strValue?: string;
361
+ /** Number value. */
362
+ numValue?: number;
363
+ /** Date value. */
364
+ dateValue?: Date | null;
365
+ /** List value. */
366
+ listValue?: ListValue$5;
367
+ /** Map value. */
368
+ mapValue?: MapValue$5;
369
+ }
370
+ interface ListValue$5 {
371
+ /** Custom value. */
372
+ value?: CustomValue$5[];
373
+ }
374
+ interface MapValue$5 {
375
+ /** Mapped custom value. */
376
+ value?: Record<string, CustomValue$5>;
377
+ }
378
+ interface LoginV2Request$1 {
379
+ /** Identifier of identity logging in. */
380
+ loginId: LoginId$1;
381
+ /** Password of the identity logging in. */
382
+ password?: string;
383
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
384
+ captchaTokens?: CaptchaToken$1[];
385
+ /** Additional data, relevant for the flow. */
386
+ clientMetaData?: Record<string, any> | null;
387
+ }
388
+ interface ChangePasswordRequest$1 {
389
+ /** The new password to set for the logged in user */
390
+ newPassword: string;
391
+ }
392
+ interface ChangePasswordResponse$1 {
393
+ }
394
+ interface LoginWithIdpConnectionRequest$1 {
395
+ /** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
396
+ idpConnectionId: string;
397
+ /** The id of the tenant the caller wants to login into */
398
+ tenantId: string;
399
+ /** The type of the tenant the caller wants to login into */
400
+ tenantType: TenantType$1;
401
+ customPayload?: Record<string, string>;
402
+ /**
403
+ * This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
404
+ * The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
405
+ * Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
406
+ */
407
+ sessionId: string;
408
+ encryptionKey: string;
409
+ visitorId?: string | null;
410
+ bsi?: string | null;
411
+ }
412
+ declare enum TenantType$1 {
413
+ UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
414
+ ACCOUNT = "ACCOUNT",
415
+ SITE = "SITE",
416
+ ROOT = "ROOT"
417
+ }
418
+ interface RawHttpResponse$3 {
419
+ body?: Uint8Array;
420
+ statusCode?: number | null;
421
+ headers?: HeadersEntry$3[];
422
+ }
423
+ interface HeadersEntry$3 {
424
+ key?: string;
425
+ value?: string;
426
+ }
427
+ interface RawHttpRequest$3 {
428
+ body?: Uint8Array;
429
+ pathParams?: PathParametersEntry$3[];
430
+ queryParams?: QueryParametersEntry$3[];
431
+ headers?: HeadersEntry$3[];
432
+ method?: string;
433
+ rawPath?: string;
434
+ rawQuery?: string;
435
+ }
436
+ interface PathParametersEntry$3 {
437
+ key?: string;
438
+ value?: string;
439
+ }
440
+ interface QueryParametersEntry$3 {
441
+ key?: string;
442
+ value?: string;
443
+ }
444
+ interface LoginCallbackRequest$1 {
445
+ /** state that that received on the redirect */
446
+ state?: string;
447
+ /** session token */
448
+ sessionToken?: string;
449
+ }
450
+ interface LoginWithIdpConnectionTokenParamsRequest$1 {
451
+ /** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
452
+ idpConnectionId?: string;
453
+ /** A set of fields that are required for the connection to be able to identify and authenticate the user */
454
+ tokenParams?: Record<string, string>;
455
+ }
456
+ interface SignOnRequest$1 {
457
+ /** the identifier of the identity */
458
+ loginId: LoginId$1;
459
+ /** profile of the identity */
460
+ profile?: IdentityProfile$5;
461
+ /** when true will mark the email of the identity as verified */
462
+ verifyEmail?: boolean;
463
+ /** when false will create a new contact instead of merging the existing contact into the identity */
464
+ mergeExistingContact?: boolean;
465
+ }
466
+ interface SignOnResponse$1 {
467
+ /** session token for the requested identity */
468
+ sessionToken?: string;
469
+ /** The Identity of the provided login_id */
470
+ identity?: Identity$5;
471
+ }
472
+ /** logout request payload */
473
+ interface LogoutRequest$1 {
474
+ /** redirect after logout */
475
+ postLogoutRedirectUri?: string | null;
476
+ /** caller identifier */
477
+ clientId?: string | null;
478
+ }
479
+ interface IdentifierNonNullableFields$5 {
480
+ email: string;
481
+ userName: string;
482
+ }
483
+ interface IdpConnectionNonNullableFields$5 {
484
+ idpConnectionId: string;
485
+ idpUserId: string;
486
+ }
487
+ interface AuthenticatorConnectionNonNullableFields$5 {
488
+ authenticatorConnectionId: string;
489
+ reEnrollmentRequired: boolean;
490
+ }
491
+ interface ConnectionNonNullableFields$5 {
492
+ idpConnection?: IdpConnectionNonNullableFields$5;
493
+ authenticatorConnection?: AuthenticatorConnectionNonNullableFields$5;
494
+ }
495
+ interface V1ListValueNonNullableFields$5 {
496
+ value: V1CustomValueNonNullableFields$5[];
497
+ }
498
+ interface V1CustomValueNonNullableFields$5 {
499
+ strValue: string;
500
+ numValue: number;
501
+ listValue?: V1ListValueNonNullableFields$5;
502
+ }
503
+ interface CustomFieldNonNullableFields$5 {
504
+ name: string;
505
+ value?: V1CustomValueNonNullableFields$5;
506
+ }
507
+ interface SecondaryEmailNonNullableFields$5 {
508
+ email: string;
509
+ tag: EmailTag$5;
510
+ }
511
+ interface PhoneNonNullableFields$5 {
512
+ phone: string;
513
+ tag: PhoneTag$5;
514
+ }
515
+ interface AddressWrapperNonNullableFields$5 {
516
+ tag: AddressTag$5;
517
+ }
518
+ interface IdentityProfileNonNullableFields$5 {
519
+ emails: string[];
520
+ phones: string[];
521
+ labels: string[];
522
+ privacyStatus: PrivacyStatus$5;
523
+ customFields: CustomFieldNonNullableFields$5[];
524
+ secondaryEmails: SecondaryEmailNonNullableFields$5[];
525
+ phonesV2: PhoneNonNullableFields$5[];
526
+ addresses: AddressWrapperNonNullableFields$5[];
527
+ }
528
+ interface MetadataNonNullableFields$5 {
529
+ tags: string[];
530
+ }
531
+ interface EmailNonNullableFields$5 {
532
+ address: string;
533
+ isVerified: boolean;
534
+ }
535
+ interface StatusV2NonNullableFields$5 {
536
+ name: StatusName$5;
537
+ reasons: Reason$5[];
538
+ }
539
+ interface FactorNonNullableFields$5 {
540
+ factorId: string;
541
+ type: FactorType$5;
542
+ status: Status$5;
543
+ }
544
+ interface IdentityNonNullableFields$5 {
545
+ identifiers: IdentifierNonNullableFields$5[];
546
+ connections: ConnectionNonNullableFields$5[];
547
+ identityProfile?: IdentityProfileNonNullableFields$5;
548
+ metadata?: MetadataNonNullableFields$5;
549
+ email?: EmailNonNullableFields$5;
550
+ status?: StatusV2NonNullableFields$5;
551
+ factors: FactorNonNullableFields$5[];
552
+ }
553
+ interface StateMachineResponseNonNullableFields$5 {
554
+ state: StateType$5;
555
+ identity?: IdentityNonNullableFields$5;
556
+ }
557
+ interface HeadersEntryNonNullableFields$3 {
558
+ key: string;
559
+ value: string;
560
+ }
561
+ interface RawHttpResponseNonNullableFields$3 {
562
+ body: Uint8Array;
563
+ headers: HeadersEntryNonNullableFields$3[];
564
+ }
565
+ interface SignOnResponseNonNullableFields$1 {
566
+ sessionToken: string;
567
+ identity?: IdentityNonNullableFields$5;
568
+ }
569
+
570
+ interface RegisterV2Request {
571
+ /** Identifier of registering member. */
572
+ loginId: LoginId;
573
+ /** Password of registering member. */
574
+ password?: string;
575
+ /** Profile information of registering member. */
576
+ profile?: IdentityProfile$4;
577
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
578
+ captchaTokens?: CaptchaToken[];
579
+ /** Additional data, relevant for the flow. */
580
+ clientMetaData?: Record<string, any> | null;
581
+ }
582
+ interface LoginId extends LoginIdTypeOneOf {
583
+ /** Login email address. */
584
+ email?: string;
585
+ }
586
+ /** @oneof */
587
+ interface LoginIdTypeOneOf {
588
+ /** Login email address. */
589
+ email?: string;
590
+ }
591
+ interface IdentityProfile$4 {
592
+ /** Profile first name. */
593
+ firstName?: string | null;
594
+ /** Profile last name. */
595
+ lastName?: string | null;
596
+ /** Profile nickname. */
597
+ nickname?: string | null;
598
+ /** Profile picture URL. */
599
+ picture?: string | null;
600
+ /**
601
+ * Deprecated. Use `secondaryEmails` instead.
602
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
603
+ * @replacedBy secondary_emails
604
+ * @targetRemovalDate 2023-11-01
605
+ */
606
+ emails?: string[];
607
+ /**
608
+ * Deprecated. Use `phonesV2` instead.
609
+ * @deprecated Deprecated. Use `phonesV2` instead.
610
+ * @replacedBy phones_v2
611
+ * @targetRemovalDate 2023-11-01
612
+ */
613
+ phones?: string[];
614
+ /** List of profile labels. */
615
+ labels?: string[];
616
+ /** Profile language. */
617
+ language?: string | null;
618
+ /** Profile privacy status. */
619
+ privacyStatus?: PrivacyStatus$4;
620
+ /**
621
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
622
+ * are used to store additional information about your site or app's contacts.
623
+ */
624
+ customFields?: CustomField$4[];
625
+ /** List of profile email addresses. */
626
+ secondaryEmails?: SecondaryEmail$4[];
627
+ /** List of profile phone numbers. */
628
+ phonesV2?: Phone$4[];
629
+ /** List of profile physical addresses. */
630
+ addresses?: AddressWrapper$4[];
631
+ /** Company name. */
632
+ company?: string | null;
633
+ /** Position within company. */
634
+ position?: string | null;
635
+ /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
636
+ birthdate?: string | null;
637
+ }
638
+ declare enum PrivacyStatus$4 {
639
+ UNDEFINED = "UNDEFINED",
640
+ PUBLIC = "PUBLIC",
641
+ PRIVATE = "PRIVATE"
642
+ }
643
+ interface CustomField$4 {
644
+ /**
645
+ * Custom field name. The name must match one of the key properties of the objects returned by
646
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
647
+ * with the `custom.` prefix removed.
648
+ */
649
+ name?: string;
650
+ /** Custom field value. */
651
+ value?: V1CustomValue$4;
652
+ }
653
+ interface V1CustomValue$4 extends V1CustomValueValueOneOf$4 {
654
+ /** String value. */
655
+ strValue?: string;
656
+ /** Number value. */
657
+ numValue?: number;
658
+ /** Date value. */
659
+ dateValue?: Date | null;
660
+ /** List value. */
661
+ listValue?: V1ListValue$4;
662
+ /** Map value. */
663
+ mapValue?: V1MapValue$4;
664
+ }
665
+ /** @oneof */
666
+ interface V1CustomValueValueOneOf$4 {
667
+ /** String value. */
668
+ strValue?: string;
669
+ /** Number value. */
670
+ numValue?: number;
671
+ /** Date value. */
672
+ dateValue?: Date | null;
673
+ /** List value. */
674
+ listValue?: V1ListValue$4;
675
+ /** Map value. */
676
+ mapValue?: V1MapValue$4;
677
+ }
678
+ interface V1ListValue$4 {
679
+ /** Custom value. */
680
+ value?: V1CustomValue$4[];
681
+ }
682
+ interface V1MapValue$4 {
683
+ /** Mapped custom value. */
684
+ value?: Record<string, V1CustomValue$4>;
685
+ }
686
+ interface SecondaryEmail$4 {
687
+ /** Email address. */
688
+ email?: string;
689
+ /** Email tag. */
690
+ tag?: EmailTag$4;
691
+ }
692
+ declare enum EmailTag$4 {
693
+ UNTAGGED = "UNTAGGED",
694
+ MAIN = "MAIN",
695
+ HOME = "HOME",
696
+ WORK = "WORK"
697
+ }
698
+ interface Phone$4 {
699
+ /** Phone country code. */
700
+ countryCode?: string | null;
701
+ /** Phone number. */
702
+ phone?: string;
703
+ /** Phone tag. */
704
+ tag?: PhoneTag$4;
705
+ }
706
+ declare enum PhoneTag$4 {
707
+ UNTAGGED = "UNTAGGED",
708
+ MAIN = "MAIN",
709
+ HOME = "HOME",
710
+ MOBILE = "MOBILE",
711
+ WORK = "WORK",
712
+ FAX = "FAX"
713
+ }
714
+ interface AddressWrapper$4 {
715
+ /** Address. */
716
+ address?: Address$4;
717
+ /** Address tag. */
718
+ tag?: AddressTag$4;
719
+ }
720
+ /** Physical address */
721
+ interface Address$4 {
722
+ /** Country code. */
723
+ country?: string | null;
724
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
725
+ subdivision?: string | null;
726
+ /** City name. */
727
+ city?: string | null;
728
+ /** Zip/postal code. */
729
+ postalCode?: string | null;
730
+ /** Main address line, usually street and number as free text. */
731
+ addressLine1?: string | null;
732
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
733
+ addressLine2?: string | null;
734
+ }
735
+ declare enum AddressTag$4 {
736
+ UNTAGGED = "UNTAGGED",
737
+ HOME = "HOME",
738
+ WORK = "WORK",
739
+ BILLING = "BILLING",
740
+ SHIPPING = "SHIPPING"
741
+ }
742
+ interface CaptchaToken extends CaptchaTokenTokenOneOf {
743
+ Recaptcha?: string;
744
+ InvisibleRecaptcha?: string;
745
+ NoCaptcha?: string;
746
+ }
747
+ /** @oneof */
748
+ interface CaptchaTokenTokenOneOf {
749
+ Recaptcha?: string;
750
+ InvisibleRecaptcha?: string;
751
+ NoCaptcha?: string;
752
+ }
753
+ interface StateMachineResponse$4 {
754
+ /** The current state of the login or registration process. */
755
+ state?: StateType$4;
756
+ /** If state is `SUCCESS`, a session token. */
757
+ sessionToken?: string | null;
758
+ /** A token representing the current state of the login or registration process. */
759
+ stateToken?: string | null;
760
+ /** Identing of the current member. */
761
+ identity?: Identity$4;
762
+ /** additional_data = 5; //TBD */
763
+ additionalData?: Record<string, CustomValue$4>;
764
+ }
765
+ declare enum StateType$4 {
766
+ /** Initial unknown state. */
767
+ UNKNOWN_STATE = "UNKNOWN_STATE",
768
+ /** The operation completed successfully. */
769
+ SUCCESS = "SUCCESS",
770
+ /** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
771
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
772
+ /**
773
+ * State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
774
+ * https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
775
+ */
776
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
777
+ /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
778
+ STATUS_CHECK = "STATUS_CHECK",
779
+ REQUIRE_MFA = "REQUIRE_MFA"
780
+ }
781
+ interface Identity$4 {
782
+ /** Identity ID */
783
+ _id?: string | null;
784
+ /**
785
+ * Identifiers
786
+ * @deprecated Identifiers
787
+ * @replacedBy email
788
+ * @targetRemovalDate 2023-05-01
789
+ */
790
+ identifiers?: Identifier$4[];
791
+ /**
792
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes.
793
+ * For an update operation to succeed, you MUST pass the latest revision.
794
+ */
795
+ revision?: string | null;
796
+ /**
797
+ * The time this identity was created.
798
+ * @readonly
799
+ */
800
+ _createdDate?: Date | null;
801
+ /**
802
+ * The time this identity was last updated.
803
+ * @readonly
804
+ */
805
+ _updatedDate?: Date | null;
806
+ /** The identity configured connections to authenticate with. */
807
+ connections?: Connection$4[];
808
+ /** Identity profile. */
809
+ identityProfile?: IdentityProfile$4;
810
+ /**
811
+ * Additional information about the identity that can impact user access.
812
+ * This data cannot be set.
813
+ */
814
+ metadata?: Metadata$4;
815
+ /** Identity email address. */
816
+ email?: Email$4;
817
+ /** Identity's current status. */
818
+ status?: StatusV2$4;
819
+ /** filled by pre registered spi */
820
+ customAttributes?: Record<string, any> | null;
821
+ /**
822
+ * Identity factors.
823
+ * @readonly
824
+ */
825
+ factors?: Factor$4[];
826
+ }
827
+ interface Identifier$4 extends IdentifierValueOneOf$4 {
828
+ email?: string;
829
+ userName?: string;
830
+ }
831
+ /** @oneof */
832
+ interface IdentifierValueOneOf$4 {
833
+ email?: string;
834
+ userName?: string;
835
+ }
836
+ interface Connection$4 extends ConnectionTypeOneOf$4 {
837
+ /** IDP connection. */
838
+ idpConnection?: IdpConnection$4;
839
+ /** Authenticator connection. */
840
+ authenticatorConnection?: AuthenticatorConnection$4;
841
+ }
842
+ /** @oneof */
843
+ interface ConnectionTypeOneOf$4 {
844
+ /** IDP connection. */
845
+ idpConnection?: IdpConnection$4;
846
+ /** Authenticator connection. */
847
+ authenticatorConnection?: AuthenticatorConnection$4;
848
+ }
849
+ interface IdpConnection$4 {
850
+ /** IDP connection ID. */
851
+ idpConnectionId?: string;
852
+ /** IDP user ID. */
853
+ idpUserId?: string;
854
+ }
855
+ interface AuthenticatorConnection$4 {
856
+ /** Authenticator connection ID. */
857
+ authenticatorConnectionId?: string;
858
+ /** Whether re-enrollment is required. */
859
+ reEnrollmentRequired?: boolean;
860
+ }
861
+ interface Metadata$4 {
862
+ /**
863
+ * represents general tags such as "isOwner", "isContributor"
864
+ * @readonly
865
+ */
866
+ tags?: string[];
867
+ }
868
+ interface Email$4 {
869
+ address?: string;
870
+ isVerified?: boolean;
871
+ }
872
+ interface StatusV2$4 {
873
+ name?: StatusName$4;
874
+ reasons?: Reason$4[];
875
+ }
876
+ declare enum StatusName$4 {
877
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
878
+ PENDING = "PENDING",
879
+ ACTIVE = "ACTIVE",
880
+ DELETED = "DELETED",
881
+ BLOCKED = "BLOCKED",
882
+ OFFLINE = "OFFLINE"
883
+ }
884
+ declare enum Reason$4 {
885
+ UNKNOWN_REASON = "UNKNOWN_REASON",
886
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
887
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
888
+ }
889
+ interface Factor$4 {
890
+ /** Factor ID. */
891
+ factorId?: string;
892
+ /** Factor type. */
893
+ type?: FactorType$4;
894
+ /** Factor status. */
895
+ status?: Status$4;
896
+ }
897
+ declare enum FactorType$4 {
898
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
899
+ PASSWORD = "PASSWORD",
900
+ SMS = "SMS",
901
+ CALL = "CALL",
902
+ EMAIL = "EMAIL",
903
+ TOTP = "TOTP",
904
+ PUSH = "PUSH"
905
+ }
906
+ declare enum Status$4 {
907
+ /** Factor requires activation. */
908
+ INACTIVE = "INACTIVE",
909
+ /** Factor is active and can be used for authentication. */
910
+ ACTIVE = "ACTIVE",
911
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
912
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
913
+ }
914
+ interface CustomValue$4 extends CustomValueValueOneOf$4 {
915
+ /** String value. */
916
+ strValue?: string;
917
+ /** Number value. */
918
+ numValue?: number;
919
+ /** Date value. */
920
+ dateValue?: Date | null;
921
+ /** List value. */
922
+ listValue?: ListValue$4;
923
+ /** Map value. */
924
+ mapValue?: MapValue$4;
925
+ }
926
+ /** @oneof */
927
+ interface CustomValueValueOneOf$4 {
928
+ /** String value. */
929
+ strValue?: string;
930
+ /** Number value. */
931
+ numValue?: number;
932
+ /** Date value. */
933
+ dateValue?: Date | null;
934
+ /** List value. */
935
+ listValue?: ListValue$4;
936
+ /** Map value. */
937
+ mapValue?: MapValue$4;
938
+ }
939
+ interface ListValue$4 {
940
+ /** Custom value. */
941
+ value?: CustomValue$4[];
942
+ }
943
+ interface MapValue$4 {
944
+ /** Mapped custom value. */
945
+ value?: Record<string, CustomValue$4>;
946
+ }
947
+ interface LoginV2Request {
948
+ /** Identifier of identity logging in. */
949
+ loginId: LoginId;
950
+ /** Password of the identity logging in. */
951
+ password?: string;
952
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
953
+ captchaTokens?: CaptchaToken[];
954
+ /** Additional data, relevant for the flow. */
955
+ clientMetaData?: Record<string, any> | null;
956
+ }
957
+ interface ChangePasswordRequest {
958
+ /** The new password to set for the logged in user */
959
+ newPassword: string;
960
+ }
961
+ interface ChangePasswordResponse {
962
+ }
963
+ interface LoginWithIdpConnectionRequest {
964
+ /** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
965
+ idpConnectionId: string;
966
+ /** The id of the tenant the caller wants to login into */
967
+ tenantId: string;
968
+ /** The type of the tenant the caller wants to login into */
969
+ tenantType: TenantType;
970
+ customPayload?: Record<string, string>;
971
+ /**
972
+ * This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
973
+ * The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
974
+ * Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
975
+ */
976
+ sessionId: string;
977
+ encryptionKey: string;
978
+ visitorId?: string | null;
979
+ bsi?: string | null;
980
+ }
981
+ declare enum TenantType {
982
+ UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
983
+ ACCOUNT = "ACCOUNT",
984
+ SITE = "SITE",
985
+ ROOT = "ROOT"
986
+ }
987
+ interface RawHttpResponse$2 {
988
+ body?: Uint8Array;
989
+ statusCode?: number | null;
990
+ headers?: HeadersEntry$2[];
991
+ }
992
+ interface HeadersEntry$2 {
993
+ key?: string;
994
+ value?: string;
995
+ }
996
+ interface RawHttpRequest$2 {
997
+ body?: Uint8Array;
998
+ pathParams?: PathParametersEntry$2[];
999
+ queryParams?: QueryParametersEntry$2[];
1000
+ headers?: HeadersEntry$2[];
1001
+ method?: string;
1002
+ rawPath?: string;
1003
+ rawQuery?: string;
1004
+ }
1005
+ interface PathParametersEntry$2 {
1006
+ key?: string;
1007
+ value?: string;
1008
+ }
1009
+ interface QueryParametersEntry$2 {
1010
+ key?: string;
1011
+ value?: string;
1012
+ }
1013
+ interface LoginCallbackRequest {
1014
+ /** state that that received on the redirect */
1015
+ state?: string;
1016
+ /** session token */
1017
+ sessionToken?: string;
1018
+ }
1019
+ interface LoginWithIdpConnectionTokenParamsRequest {
1020
+ /** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
1021
+ idpConnectionId?: string;
1022
+ /** A set of fields that are required for the connection to be able to identify and authenticate the user */
1023
+ tokenParams?: Record<string, string>;
1024
+ }
1025
+ interface SignOnRequest {
1026
+ /** the identifier of the identity */
1027
+ loginId: LoginId;
1028
+ /** profile of the identity */
1029
+ profile?: IdentityProfile$4;
1030
+ /** when true will mark the email of the identity as verified */
1031
+ verifyEmail?: boolean;
1032
+ /** when false will create a new contact instead of merging the existing contact into the identity */
1033
+ mergeExistingContact?: boolean;
1034
+ }
1035
+ interface SignOnResponse {
1036
+ /** session token for the requested identity */
1037
+ sessionToken?: string;
1038
+ /** The Identity of the provided login_id */
1039
+ identity?: Identity$4;
1040
+ }
1041
+ /** logout request payload */
1042
+ interface LogoutRequest {
1043
+ /** redirect after logout */
1044
+ postLogoutRedirectUri?: string | null;
1045
+ /** caller identifier */
1046
+ clientId?: string | null;
1047
+ }
1048
+ interface IdentifierNonNullableFields$4 {
1049
+ email: string;
1050
+ userName: string;
1051
+ }
1052
+ interface IdpConnectionNonNullableFields$4 {
1053
+ idpConnectionId: string;
1054
+ idpUserId: string;
1055
+ }
1056
+ interface AuthenticatorConnectionNonNullableFields$4 {
1057
+ authenticatorConnectionId: string;
1058
+ reEnrollmentRequired: boolean;
1059
+ }
1060
+ interface ConnectionNonNullableFields$4 {
1061
+ idpConnection?: IdpConnectionNonNullableFields$4;
1062
+ authenticatorConnection?: AuthenticatorConnectionNonNullableFields$4;
1063
+ }
1064
+ interface V1ListValueNonNullableFields$4 {
1065
+ value: V1CustomValueNonNullableFields$4[];
1066
+ }
1067
+ interface V1CustomValueNonNullableFields$4 {
1068
+ strValue: string;
1069
+ numValue: number;
1070
+ listValue?: V1ListValueNonNullableFields$4;
1071
+ }
1072
+ interface CustomFieldNonNullableFields$4 {
1073
+ name: string;
1074
+ value?: V1CustomValueNonNullableFields$4;
1075
+ }
1076
+ interface SecondaryEmailNonNullableFields$4 {
1077
+ email: string;
1078
+ tag: EmailTag$4;
1079
+ }
1080
+ interface PhoneNonNullableFields$4 {
1081
+ phone: string;
1082
+ tag: PhoneTag$4;
1083
+ }
1084
+ interface AddressWrapperNonNullableFields$4 {
1085
+ tag: AddressTag$4;
1086
+ }
1087
+ interface IdentityProfileNonNullableFields$4 {
1088
+ emails: string[];
1089
+ phones: string[];
1090
+ labels: string[];
1091
+ privacyStatus: PrivacyStatus$4;
1092
+ customFields: CustomFieldNonNullableFields$4[];
1093
+ secondaryEmails: SecondaryEmailNonNullableFields$4[];
1094
+ phonesV2: PhoneNonNullableFields$4[];
1095
+ addresses: AddressWrapperNonNullableFields$4[];
1096
+ }
1097
+ interface MetadataNonNullableFields$4 {
1098
+ tags: string[];
1099
+ }
1100
+ interface EmailNonNullableFields$4 {
1101
+ address: string;
1102
+ isVerified: boolean;
1103
+ }
1104
+ interface StatusV2NonNullableFields$4 {
1105
+ name: StatusName$4;
1106
+ reasons: Reason$4[];
1107
+ }
1108
+ interface FactorNonNullableFields$4 {
1109
+ factorId: string;
1110
+ type: FactorType$4;
1111
+ status: Status$4;
1112
+ }
1113
+ interface IdentityNonNullableFields$4 {
1114
+ identifiers: IdentifierNonNullableFields$4[];
1115
+ connections: ConnectionNonNullableFields$4[];
1116
+ identityProfile?: IdentityProfileNonNullableFields$4;
1117
+ metadata?: MetadataNonNullableFields$4;
1118
+ email?: EmailNonNullableFields$4;
1119
+ status?: StatusV2NonNullableFields$4;
1120
+ factors: FactorNonNullableFields$4[];
1121
+ }
1122
+ interface StateMachineResponseNonNullableFields$4 {
1123
+ state: StateType$4;
1124
+ identity?: IdentityNonNullableFields$4;
1125
+ }
1126
+ interface HeadersEntryNonNullableFields$2 {
1127
+ key: string;
1128
+ value: string;
1129
+ }
1130
+ interface RawHttpResponseNonNullableFields$2 {
1131
+ body: Uint8Array;
1132
+ headers: HeadersEntryNonNullableFields$2[];
1133
+ }
1134
+ interface SignOnResponseNonNullableFields {
1135
+ sessionToken: string;
1136
+ identity?: IdentityNonNullableFields$4;
1137
+ }
1138
+
1139
+ type __PublicMethodMetaInfo$6<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1140
+ getUrl: (context: any) => string;
1141
+ httpMethod: K;
1142
+ path: string;
1143
+ pathParams: M;
1144
+ __requestType: T;
1145
+ __originalRequestType: S;
1146
+ __responseType: Q;
1147
+ __originalResponseType: R;
1148
+ };
1149
+ declare function registerV2(): __PublicMethodMetaInfo$6<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1150
+ declare function loginV2(): __PublicMethodMetaInfo$6<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1151
+ declare function changePassword(): __PublicMethodMetaInfo$6<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
1152
+ declare function loginWithIdpConnection(): __PublicMethodMetaInfo$6<'GET', {
1153
+ tenantId: string;
1154
+ idpConnectionId: string;
1155
+ }, LoginWithIdpConnectionRequest, LoginWithIdpConnectionRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1156
+ declare function loginWithIdpConnectionCallback(): __PublicMethodMetaInfo$6<'GET', {
1157
+ tenantType: string;
1158
+ tenantId: string;
1159
+ idpConnectionId: string;
1160
+ }, RawHttpRequest$2, RawHttpRequest$3, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1161
+ declare function loginCallback(): __PublicMethodMetaInfo$6<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1162
+ declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$6<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1163
+ declare function signOn(): __PublicMethodMetaInfo$6<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
1164
+ declare function logout(): __PublicMethodMetaInfo$6<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1165
+
1166
+ declare const meta$6_changePassword: typeof changePassword;
1167
+ declare const meta$6_loginCallback: typeof loginCallback;
1168
+ declare const meta$6_loginV2: typeof loginV2;
1169
+ declare const meta$6_loginWithIdpConnection: typeof loginWithIdpConnection;
1170
+ declare const meta$6_loginWithIdpConnectionCallback: typeof loginWithIdpConnectionCallback;
1171
+ declare const meta$6_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1172
+ declare const meta$6_logout: typeof logout;
1173
+ declare const meta$6_registerV2: typeof registerV2;
1174
+ declare const meta$6_signOn: typeof signOn;
1175
+ declare namespace meta$6 {
1176
+ export { type __PublicMethodMetaInfo$6 as __PublicMethodMetaInfo, meta$6_changePassword as changePassword, meta$6_loginCallback as loginCallback, meta$6_loginV2 as loginV2, meta$6_loginWithIdpConnection as loginWithIdpConnection, meta$6_loginWithIdpConnectionCallback as loginWithIdpConnectionCallback, meta$6_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$6_logout as logout, meta$6_registerV2 as registerV2, meta$6_signOn as signOn };
1177
+ }
1178
+
1179
+ interface SendRecoveryEmailRequest$1 {
1180
+ /** Email address associated with the account to recover. */
1181
+ email: string;
1182
+ /** Language of the email to be sent. Defaults to the language specified in the member's profile. */
1183
+ language?: string | null;
1184
+ /** Where to redirect to after a successful recovery. */
1185
+ redirect?: Redirect$1;
1186
+ }
1187
+ interface Redirect$1 {
1188
+ /** The URL to redirect to after a successful recovery. */
1189
+ url?: string;
1190
+ /** Caller identifier. */
1191
+ clientId?: string | null;
1192
+ }
1193
+ interface SendRecoveryEmailResponse$1 {
1194
+ }
1195
+ interface SendActivationEmailRequest$1 {
1196
+ /** Id of the activating user */
1197
+ identityId: string;
1198
+ /** Options for the activation email */
1199
+ emailOptions?: EmailOptions$1;
1200
+ }
1201
+ interface EmailOptions$1 {
1202
+ /** language of the email - if not received will fallback to the identity language */
1203
+ language?: string | null;
1204
+ /** Where to redirect after a successful activation process */
1205
+ redirect?: Redirect$1;
1206
+ }
1207
+ interface SendActivationEmailResponse$1 {
1208
+ }
1209
+ interface RecoverRequest$1 {
1210
+ /** recovery token */
1211
+ recoveryToken: string;
1212
+ /** new password to set for the identity */
1213
+ password?: string | null;
1214
+ }
1215
+ interface StateMachineResponse$3 {
1216
+ /** The current state of the login or registration process. */
1217
+ state?: StateType$3;
1218
+ /** If state is `SUCCESS`, a session token. */
1219
+ sessionToken?: string | null;
1220
+ /** A token representing the current state of the login or registration process. */
1221
+ stateToken?: string | null;
1222
+ /** Identing of the current member. */
1223
+ identity?: Identity$3;
1224
+ /** additional_data = 5; //TBD */
1225
+ additionalData?: Record<string, CustomValue$3>;
1226
+ }
1227
+ declare enum StateType$3 {
1228
+ /** Initial unknown state. */
1229
+ UNKNOWN_STATE = "UNKNOWN_STATE",
1230
+ /** The operation completed successfully. */
1231
+ SUCCESS = "SUCCESS",
1232
+ /** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
1233
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
1234
+ /**
1235
+ * State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
1236
+ * https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
1237
+ */
1238
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
1239
+ /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
1240
+ STATUS_CHECK = "STATUS_CHECK",
1241
+ REQUIRE_MFA = "REQUIRE_MFA"
1242
+ }
1243
+ interface Identity$3 {
1244
+ /** Identity ID */
1245
+ id?: string | null;
1246
+ /**
1247
+ * Identifiers
1248
+ * @deprecated Identifiers
1249
+ * @replacedBy email
1250
+ * @targetRemovalDate 2023-05-01
1251
+ */
1252
+ identifiers?: Identifier$3[];
1253
+ /**
1254
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes.
1255
+ * For an update operation to succeed, you MUST pass the latest revision.
1256
+ */
1257
+ revision?: string | null;
1258
+ /**
1259
+ * The time this identity was created.
1260
+ * @readonly
1261
+ */
1262
+ createdDate?: Date | null;
1263
+ /**
1264
+ * The time this identity was last updated.
1265
+ * @readonly
1266
+ */
1267
+ updatedDate?: Date | null;
1268
+ /** The identity configured connections to authenticate with. */
1269
+ connections?: Connection$3[];
1270
+ /** Identity profile. */
1271
+ identityProfile?: IdentityProfile$3;
1272
+ /**
1273
+ * Additional information about the identity that can impact user access.
1274
+ * This data cannot be set.
1275
+ */
1276
+ metadata?: Metadata$3;
1277
+ /** Identity email address. */
1278
+ email?: Email$3;
1279
+ /** Identity's current status. */
1280
+ status?: StatusV2$3;
1281
+ /** filled by pre registered spi */
1282
+ customAttributes?: Record<string, any> | null;
1283
+ /**
1284
+ * Identity factors.
1285
+ * @readonly
1286
+ */
1287
+ factors?: Factor$3[];
1288
+ }
1289
+ interface Identifier$3 extends IdentifierValueOneOf$3 {
1290
+ email?: string;
1291
+ userName?: string;
1292
+ }
1293
+ /** @oneof */
1294
+ interface IdentifierValueOneOf$3 {
1295
+ email?: string;
1296
+ userName?: string;
1297
+ }
1298
+ interface Connection$3 extends ConnectionTypeOneOf$3 {
1299
+ /** IDP connection. */
1300
+ idpConnection?: IdpConnection$3;
1301
+ /** Authenticator connection. */
1302
+ authenticatorConnection?: AuthenticatorConnection$3;
1303
+ }
1304
+ /** @oneof */
1305
+ interface ConnectionTypeOneOf$3 {
1306
+ /** IDP connection. */
1307
+ idpConnection?: IdpConnection$3;
1308
+ /** Authenticator connection. */
1309
+ authenticatorConnection?: AuthenticatorConnection$3;
1310
+ }
1311
+ interface IdpConnection$3 {
1312
+ /** IDP connection ID. */
1313
+ idpConnectionId?: string;
1314
+ /** IDP user ID. */
1315
+ idpUserId?: string;
1316
+ }
1317
+ interface AuthenticatorConnection$3 {
1318
+ /** Authenticator connection ID. */
1319
+ authenticatorConnectionId?: string;
1320
+ /** Whether re-enrollment is required. */
1321
+ reEnrollmentRequired?: boolean;
1322
+ }
1323
+ interface IdentityProfile$3 {
1324
+ /** Profile first name. */
1325
+ firstName?: string | null;
1326
+ /** Profile last name. */
1327
+ lastName?: string | null;
1328
+ /** Profile nickname. */
1329
+ nickname?: string | null;
1330
+ /** Profile picture URL. */
1331
+ picture?: string | null;
1332
+ /**
1333
+ * Deprecated. Use `secondaryEmails` instead.
1334
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
1335
+ * @replacedBy secondary_emails
1336
+ * @targetRemovalDate 2023-11-01
1337
+ */
1338
+ emails?: string[];
1339
+ /**
1340
+ * Deprecated. Use `phonesV2` instead.
1341
+ * @deprecated Deprecated. Use `phonesV2` instead.
1342
+ * @replacedBy phones_v2
1343
+ * @targetRemovalDate 2023-11-01
1344
+ */
1345
+ phones?: string[];
1346
+ /** List of profile labels. */
1347
+ labels?: string[];
1348
+ /** Profile language. */
1349
+ language?: string | null;
1350
+ /** Profile privacy status. */
1351
+ privacyStatus?: PrivacyStatus$3;
1352
+ /**
1353
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
1354
+ * are used to store additional information about your site or app's contacts.
1355
+ */
1356
+ customFields?: CustomField$3[];
1357
+ /** List of profile email addresses. */
1358
+ secondaryEmails?: SecondaryEmail$3[];
1359
+ /** List of profile phone numbers. */
1360
+ phonesV2?: Phone$3[];
1361
+ /** List of profile physical addresses. */
1362
+ addresses?: AddressWrapper$3[];
1363
+ /** Company name. */
1364
+ company?: string | null;
1365
+ /** Position within company. */
1366
+ position?: string | null;
1367
+ /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
1368
+ birthdate?: string | null;
1369
+ }
1370
+ declare enum PrivacyStatus$3 {
1371
+ UNDEFINED = "UNDEFINED",
1372
+ PUBLIC = "PUBLIC",
1373
+ PRIVATE = "PRIVATE"
1374
+ }
1375
+ interface CustomField$3 {
1376
+ /**
1377
+ * Custom field name. The name must match one of the key properties of the objects returned by
1378
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
1379
+ * with the `custom.` prefix removed.
1380
+ */
1381
+ name?: string;
1382
+ /** Custom field value. */
1383
+ value?: V1CustomValue$3;
1384
+ }
1385
+ interface V1CustomValue$3 extends V1CustomValueValueOneOf$3 {
1386
+ /** String value. */
1387
+ strValue?: string;
1388
+ /** Number value. */
1389
+ numValue?: number;
1390
+ /** Date value. */
1391
+ dateValue?: Date | null;
1392
+ /** List value. */
1393
+ listValue?: V1ListValue$3;
1394
+ /** Map value. */
1395
+ mapValue?: V1MapValue$3;
1396
+ }
1397
+ /** @oneof */
1398
+ interface V1CustomValueValueOneOf$3 {
1399
+ /** String value. */
1400
+ strValue?: string;
1401
+ /** Number value. */
1402
+ numValue?: number;
1403
+ /** Date value. */
1404
+ dateValue?: Date | null;
1405
+ /** List value. */
1406
+ listValue?: V1ListValue$3;
1407
+ /** Map value. */
1408
+ mapValue?: V1MapValue$3;
1409
+ }
1410
+ interface V1ListValue$3 {
1411
+ /** Custom value. */
1412
+ value?: V1CustomValue$3[];
1413
+ }
1414
+ interface V1MapValue$3 {
1415
+ /** Mapped custom value. */
1416
+ value?: Record<string, V1CustomValue$3>;
1417
+ }
1418
+ interface SecondaryEmail$3 {
1419
+ /** Email address. */
1420
+ email?: string;
1421
+ /** Email tag. */
1422
+ tag?: EmailTag$3;
1423
+ }
1424
+ declare enum EmailTag$3 {
1425
+ UNTAGGED = "UNTAGGED",
1426
+ MAIN = "MAIN",
1427
+ HOME = "HOME",
1428
+ WORK = "WORK"
1429
+ }
1430
+ interface Phone$3 {
1431
+ /** Phone country code. */
1432
+ countryCode?: string | null;
1433
+ /** Phone number. */
1434
+ phone?: string;
1435
+ /** Phone tag. */
1436
+ tag?: PhoneTag$3;
1437
+ }
1438
+ declare enum PhoneTag$3 {
1439
+ UNTAGGED = "UNTAGGED",
1440
+ MAIN = "MAIN",
1441
+ HOME = "HOME",
1442
+ MOBILE = "MOBILE",
1443
+ WORK = "WORK",
1444
+ FAX = "FAX"
1445
+ }
1446
+ interface AddressWrapper$3 {
1447
+ /** Address. */
1448
+ address?: Address$3;
1449
+ /** Address tag. */
1450
+ tag?: AddressTag$3;
1451
+ }
1452
+ /** Physical address */
1453
+ interface Address$3 {
1454
+ /** Country code. */
1455
+ country?: string | null;
1456
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
1457
+ subdivision?: string | null;
1458
+ /** City name. */
1459
+ city?: string | null;
1460
+ /** Zip/postal code. */
1461
+ postalCode?: string | null;
1462
+ /** Main address line, usually street and number as free text. */
1463
+ addressLine?: string | null;
1464
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
1465
+ addressLine2?: string | null;
1466
+ }
1467
+ declare enum AddressTag$3 {
1468
+ UNTAGGED = "UNTAGGED",
1469
+ HOME = "HOME",
1470
+ WORK = "WORK",
1471
+ BILLING = "BILLING",
1472
+ SHIPPING = "SHIPPING"
1473
+ }
1474
+ interface Metadata$3 {
1475
+ /**
1476
+ * represents general tags such as "isOwner", "isContributor"
1477
+ * @readonly
1478
+ */
1479
+ tags?: string[];
1480
+ }
1481
+ interface Email$3 {
1482
+ address?: string;
1483
+ isVerified?: boolean;
1484
+ }
1485
+ interface StatusV2$3 {
1486
+ name?: StatusName$3;
1487
+ reasons?: Reason$3[];
1488
+ }
1489
+ declare enum StatusName$3 {
1490
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
1491
+ PENDING = "PENDING",
1492
+ ACTIVE = "ACTIVE",
1493
+ DELETED = "DELETED",
1494
+ BLOCKED = "BLOCKED",
1495
+ OFFLINE = "OFFLINE"
1496
+ }
1497
+ declare enum Reason$3 {
1498
+ UNKNOWN_REASON = "UNKNOWN_REASON",
1499
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
1500
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
1501
+ }
1502
+ interface Factor$3 {
1503
+ /** Factor ID. */
1504
+ factorId?: string;
1505
+ /** Factor type. */
1506
+ type?: FactorType$3;
1507
+ /** Factor status. */
1508
+ status?: Status$3;
1509
+ }
1510
+ declare enum FactorType$3 {
1511
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
1512
+ PASSWORD = "PASSWORD",
1513
+ SMS = "SMS",
1514
+ CALL = "CALL",
1515
+ EMAIL = "EMAIL",
1516
+ TOTP = "TOTP",
1517
+ PUSH = "PUSH"
1518
+ }
1519
+ declare enum Status$3 {
1520
+ /** Factor requires activation. */
1521
+ INACTIVE = "INACTIVE",
1522
+ /** Factor is active and can be used for authentication. */
1523
+ ACTIVE = "ACTIVE",
1524
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
1525
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
1526
+ }
1527
+ interface CustomValue$3 extends CustomValueValueOneOf$3 {
1528
+ /** String value. */
1529
+ strValue?: string;
1530
+ /** Number value. */
1531
+ numValue?: number;
1532
+ /** Date value. */
1533
+ dateValue?: Date | null;
1534
+ /** List value. */
1535
+ listValue?: ListValue$3;
1536
+ /** Map value. */
1537
+ mapValue?: MapValue$3;
1538
+ }
1539
+ /** @oneof */
1540
+ interface CustomValueValueOneOf$3 {
1541
+ /** String value. */
1542
+ strValue?: string;
1543
+ /** Number value. */
1544
+ numValue?: number;
1545
+ /** Date value. */
1546
+ dateValue?: Date | null;
1547
+ /** List value. */
1548
+ listValue?: ListValue$3;
1549
+ /** Map value. */
1550
+ mapValue?: MapValue$3;
1551
+ }
1552
+ interface ListValue$3 {
1553
+ /** Custom value. */
1554
+ value?: CustomValue$3[];
1555
+ }
1556
+ interface MapValue$3 {
1557
+ /** Mapped custom value. */
1558
+ value?: Record<string, CustomValue$3>;
1559
+ }
1560
+ interface IdentifierNonNullableFields$3 {
1561
+ email: string;
1562
+ userName: string;
1563
+ }
1564
+ interface IdpConnectionNonNullableFields$3 {
1565
+ idpConnectionId: string;
1566
+ idpUserId: string;
1567
+ }
1568
+ interface AuthenticatorConnectionNonNullableFields$3 {
1569
+ authenticatorConnectionId: string;
1570
+ reEnrollmentRequired: boolean;
1571
+ }
1572
+ interface ConnectionNonNullableFields$3 {
1573
+ idpConnection?: IdpConnectionNonNullableFields$3;
1574
+ authenticatorConnection?: AuthenticatorConnectionNonNullableFields$3;
1575
+ }
1576
+ interface V1ListValueNonNullableFields$3 {
1577
+ value: V1CustomValueNonNullableFields$3[];
1578
+ }
1579
+ interface V1CustomValueNonNullableFields$3 {
1580
+ strValue: string;
1581
+ numValue: number;
1582
+ listValue?: V1ListValueNonNullableFields$3;
1583
+ }
1584
+ interface CustomFieldNonNullableFields$3 {
1585
+ name: string;
1586
+ value?: V1CustomValueNonNullableFields$3;
1587
+ }
1588
+ interface SecondaryEmailNonNullableFields$3 {
1589
+ email: string;
1590
+ tag: EmailTag$3;
1591
+ }
1592
+ interface PhoneNonNullableFields$3 {
1593
+ phone: string;
1594
+ tag: PhoneTag$3;
1595
+ }
1596
+ interface AddressWrapperNonNullableFields$3 {
1597
+ tag: AddressTag$3;
1598
+ }
1599
+ interface IdentityProfileNonNullableFields$3 {
1600
+ emails: string[];
1601
+ phones: string[];
1602
+ labels: string[];
1603
+ privacyStatus: PrivacyStatus$3;
1604
+ customFields: CustomFieldNonNullableFields$3[];
1605
+ secondaryEmails: SecondaryEmailNonNullableFields$3[];
1606
+ phonesV2: PhoneNonNullableFields$3[];
1607
+ addresses: AddressWrapperNonNullableFields$3[];
1608
+ }
1609
+ interface MetadataNonNullableFields$3 {
1610
+ tags: string[];
1611
+ }
1612
+ interface EmailNonNullableFields$3 {
1613
+ address: string;
1614
+ isVerified: boolean;
1615
+ }
1616
+ interface StatusV2NonNullableFields$3 {
1617
+ name: StatusName$3;
1618
+ reasons: Reason$3[];
1619
+ }
1620
+ interface FactorNonNullableFields$3 {
1621
+ factorId: string;
1622
+ type: FactorType$3;
1623
+ status: Status$3;
1624
+ }
1625
+ interface IdentityNonNullableFields$3 {
1626
+ identifiers: IdentifierNonNullableFields$3[];
1627
+ connections: ConnectionNonNullableFields$3[];
1628
+ identityProfile?: IdentityProfileNonNullableFields$3;
1629
+ metadata?: MetadataNonNullableFields$3;
1630
+ email?: EmailNonNullableFields$3;
1631
+ status?: StatusV2NonNullableFields$3;
1632
+ factors: FactorNonNullableFields$3[];
1633
+ }
1634
+ interface StateMachineResponseNonNullableFields$3 {
1635
+ state: StateType$3;
1636
+ identity?: IdentityNonNullableFields$3;
1637
+ }
1638
+
1639
+ interface SendRecoveryEmailRequest {
1640
+ /** Email address associated with the account to recover. */
1641
+ email: string;
1642
+ /** Language of the email to be sent. Defaults to the language specified in the member's profile. */
1643
+ language?: string | null;
1644
+ /** Where to redirect to after a successful recovery. */
1645
+ redirect?: Redirect;
1646
+ }
1647
+ interface Redirect {
1648
+ /** The URL to redirect to after a successful recovery. */
1649
+ url?: string;
1650
+ /** Caller identifier. */
1651
+ clientId?: string | null;
1652
+ }
1653
+ interface SendRecoveryEmailResponse {
1654
+ }
1655
+ interface SendActivationEmailRequest {
1656
+ /** Id of the activating user */
1657
+ identityId: string;
1658
+ /** Options for the activation email */
1659
+ emailOptions?: EmailOptions;
1660
+ }
1661
+ interface EmailOptions {
1662
+ /** language of the email - if not received will fallback to the identity language */
1663
+ language?: string | null;
1664
+ /** Where to redirect after a successful activation process */
1665
+ redirect?: Redirect;
1666
+ }
1667
+ interface SendActivationEmailResponse {
1668
+ }
1669
+ interface RecoverRequest {
1670
+ /** recovery token */
1671
+ recoveryToken: string;
1672
+ /** new password to set for the identity */
1673
+ password?: string | null;
1674
+ }
1675
+ interface StateMachineResponse$2 {
1676
+ /** The current state of the login or registration process. */
1677
+ state?: StateType$2;
1678
+ /** If state is `SUCCESS`, a session token. */
1679
+ sessionToken?: string | null;
1680
+ /** A token representing the current state of the login or registration process. */
1681
+ stateToken?: string | null;
1682
+ /** Identing of the current member. */
1683
+ identity?: Identity$2;
1684
+ /** additional_data = 5; //TBD */
1685
+ additionalData?: Record<string, CustomValue$2>;
1686
+ }
1687
+ declare enum StateType$2 {
1688
+ /** Initial unknown state. */
1689
+ UNKNOWN_STATE = "UNKNOWN_STATE",
1690
+ /** The operation completed successfully. */
1691
+ SUCCESS = "SUCCESS",
1692
+ /** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
1693
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
1694
+ /**
1695
+ * State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
1696
+ * https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
1697
+ */
1698
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
1699
+ /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
1700
+ STATUS_CHECK = "STATUS_CHECK",
1701
+ REQUIRE_MFA = "REQUIRE_MFA"
1702
+ }
1703
+ interface Identity$2 {
1704
+ /** Identity ID */
1705
+ _id?: string | null;
1706
+ /**
1707
+ * Identifiers
1708
+ * @deprecated Identifiers
1709
+ * @replacedBy email
1710
+ * @targetRemovalDate 2023-05-01
1711
+ */
1712
+ identifiers?: Identifier$2[];
1713
+ /**
1714
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes.
1715
+ * For an update operation to succeed, you MUST pass the latest revision.
1716
+ */
1717
+ revision?: string | null;
1718
+ /**
1719
+ * The time this identity was created.
1720
+ * @readonly
1721
+ */
1722
+ _createdDate?: Date | null;
1723
+ /**
1724
+ * The time this identity was last updated.
1725
+ * @readonly
1726
+ */
1727
+ _updatedDate?: Date | null;
1728
+ /** The identity configured connections to authenticate with. */
1729
+ connections?: Connection$2[];
1730
+ /** Identity profile. */
1731
+ identityProfile?: IdentityProfile$2;
1732
+ /**
1733
+ * Additional information about the identity that can impact user access.
1734
+ * This data cannot be set.
1735
+ */
1736
+ metadata?: Metadata$2;
1737
+ /** Identity email address. */
1738
+ email?: Email$2;
1739
+ /** Identity's current status. */
1740
+ status?: StatusV2$2;
1741
+ /** filled by pre registered spi */
1742
+ customAttributes?: Record<string, any> | null;
1743
+ /**
1744
+ * Identity factors.
1745
+ * @readonly
1746
+ */
1747
+ factors?: Factor$2[];
1748
+ }
1749
+ interface Identifier$2 extends IdentifierValueOneOf$2 {
1750
+ email?: string;
1751
+ userName?: string;
1752
+ }
1753
+ /** @oneof */
1754
+ interface IdentifierValueOneOf$2 {
1755
+ email?: string;
1756
+ userName?: string;
1757
+ }
1758
+ interface Connection$2 extends ConnectionTypeOneOf$2 {
1759
+ /** IDP connection. */
1760
+ idpConnection?: IdpConnection$2;
1761
+ /** Authenticator connection. */
1762
+ authenticatorConnection?: AuthenticatorConnection$2;
1763
+ }
1764
+ /** @oneof */
1765
+ interface ConnectionTypeOneOf$2 {
1766
+ /** IDP connection. */
1767
+ idpConnection?: IdpConnection$2;
1768
+ /** Authenticator connection. */
1769
+ authenticatorConnection?: AuthenticatorConnection$2;
1770
+ }
1771
+ interface IdpConnection$2 {
1772
+ /** IDP connection ID. */
1773
+ idpConnectionId?: string;
1774
+ /** IDP user ID. */
1775
+ idpUserId?: string;
1776
+ }
1777
+ interface AuthenticatorConnection$2 {
1778
+ /** Authenticator connection ID. */
1779
+ authenticatorConnectionId?: string;
1780
+ /** Whether re-enrollment is required. */
1781
+ reEnrollmentRequired?: boolean;
1782
+ }
1783
+ interface IdentityProfile$2 {
1784
+ /** Profile first name. */
1785
+ firstName?: string | null;
1786
+ /** Profile last name. */
1787
+ lastName?: string | null;
1788
+ /** Profile nickname. */
1789
+ nickname?: string | null;
1790
+ /** Profile picture URL. */
1791
+ picture?: string | null;
1792
+ /**
1793
+ * Deprecated. Use `secondaryEmails` instead.
1794
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
1795
+ * @replacedBy secondary_emails
1796
+ * @targetRemovalDate 2023-11-01
1797
+ */
1798
+ emails?: string[];
1799
+ /**
1800
+ * Deprecated. Use `phonesV2` instead.
1801
+ * @deprecated Deprecated. Use `phonesV2` instead.
1802
+ * @replacedBy phones_v2
1803
+ * @targetRemovalDate 2023-11-01
1804
+ */
1805
+ phones?: string[];
1806
+ /** List of profile labels. */
1807
+ labels?: string[];
1808
+ /** Profile language. */
1809
+ language?: string | null;
1810
+ /** Profile privacy status. */
1811
+ privacyStatus?: PrivacyStatus$2;
1812
+ /**
1813
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
1814
+ * are used to store additional information about your site or app's contacts.
1815
+ */
1816
+ customFields?: CustomField$2[];
1817
+ /** List of profile email addresses. */
1818
+ secondaryEmails?: SecondaryEmail$2[];
1819
+ /** List of profile phone numbers. */
1820
+ phonesV2?: Phone$2[];
1821
+ /** List of profile physical addresses. */
1822
+ addresses?: AddressWrapper$2[];
1823
+ /** Company name. */
1824
+ company?: string | null;
1825
+ /** Position within company. */
1826
+ position?: string | null;
1827
+ /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
1828
+ birthdate?: string | null;
1829
+ }
1830
+ declare enum PrivacyStatus$2 {
1831
+ UNDEFINED = "UNDEFINED",
1832
+ PUBLIC = "PUBLIC",
1833
+ PRIVATE = "PRIVATE"
1834
+ }
1835
+ interface CustomField$2 {
1836
+ /**
1837
+ * Custom field name. The name must match one of the key properties of the objects returned by
1838
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
1839
+ * with the `custom.` prefix removed.
1840
+ */
1841
+ name?: string;
1842
+ /** Custom field value. */
1843
+ value?: V1CustomValue$2;
1844
+ }
1845
+ interface V1CustomValue$2 extends V1CustomValueValueOneOf$2 {
1846
+ /** String value. */
1847
+ strValue?: string;
1848
+ /** Number value. */
1849
+ numValue?: number;
1850
+ /** Date value. */
1851
+ dateValue?: Date | null;
1852
+ /** List value. */
1853
+ listValue?: V1ListValue$2;
1854
+ /** Map value. */
1855
+ mapValue?: V1MapValue$2;
1856
+ }
1857
+ /** @oneof */
1858
+ interface V1CustomValueValueOneOf$2 {
1859
+ /** String value. */
1860
+ strValue?: string;
1861
+ /** Number value. */
1862
+ numValue?: number;
1863
+ /** Date value. */
1864
+ dateValue?: Date | null;
1865
+ /** List value. */
1866
+ listValue?: V1ListValue$2;
1867
+ /** Map value. */
1868
+ mapValue?: V1MapValue$2;
1869
+ }
1870
+ interface V1ListValue$2 {
1871
+ /** Custom value. */
1872
+ value?: V1CustomValue$2[];
1873
+ }
1874
+ interface V1MapValue$2 {
1875
+ /** Mapped custom value. */
1876
+ value?: Record<string, V1CustomValue$2>;
1877
+ }
1878
+ interface SecondaryEmail$2 {
1879
+ /** Email address. */
1880
+ email?: string;
1881
+ /** Email tag. */
1882
+ tag?: EmailTag$2;
1883
+ }
1884
+ declare enum EmailTag$2 {
1885
+ UNTAGGED = "UNTAGGED",
1886
+ MAIN = "MAIN",
1887
+ HOME = "HOME",
1888
+ WORK = "WORK"
1889
+ }
1890
+ interface Phone$2 {
1891
+ /** Phone country code. */
1892
+ countryCode?: string | null;
1893
+ /** Phone number. */
1894
+ phone?: string;
1895
+ /** Phone tag. */
1896
+ tag?: PhoneTag$2;
1897
+ }
1898
+ declare enum PhoneTag$2 {
1899
+ UNTAGGED = "UNTAGGED",
1900
+ MAIN = "MAIN",
1901
+ HOME = "HOME",
1902
+ MOBILE = "MOBILE",
1903
+ WORK = "WORK",
1904
+ FAX = "FAX"
1905
+ }
1906
+ interface AddressWrapper$2 {
1907
+ /** Address. */
1908
+ address?: Address$2;
1909
+ /** Address tag. */
1910
+ tag?: AddressTag$2;
1911
+ }
1912
+ /** Physical address */
1913
+ interface Address$2 {
1914
+ /** Country code. */
1915
+ country?: string | null;
1916
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
1917
+ subdivision?: string | null;
1918
+ /** City name. */
1919
+ city?: string | null;
1920
+ /** Zip/postal code. */
1921
+ postalCode?: string | null;
1922
+ /** Main address line, usually street and number as free text. */
1923
+ addressLine1?: string | null;
1924
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
1925
+ addressLine2?: string | null;
1926
+ }
1927
+ declare enum AddressTag$2 {
1928
+ UNTAGGED = "UNTAGGED",
1929
+ HOME = "HOME",
1930
+ WORK = "WORK",
1931
+ BILLING = "BILLING",
1932
+ SHIPPING = "SHIPPING"
1933
+ }
1934
+ interface Metadata$2 {
1935
+ /**
1936
+ * represents general tags such as "isOwner", "isContributor"
1937
+ * @readonly
1938
+ */
1939
+ tags?: string[];
1940
+ }
1941
+ interface Email$2 {
1942
+ address?: string;
1943
+ isVerified?: boolean;
1944
+ }
1945
+ interface StatusV2$2 {
1946
+ name?: StatusName$2;
1947
+ reasons?: Reason$2[];
1948
+ }
1949
+ declare enum StatusName$2 {
1950
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
1951
+ PENDING = "PENDING",
1952
+ ACTIVE = "ACTIVE",
1953
+ DELETED = "DELETED",
1954
+ BLOCKED = "BLOCKED",
1955
+ OFFLINE = "OFFLINE"
1956
+ }
1957
+ declare enum Reason$2 {
1958
+ UNKNOWN_REASON = "UNKNOWN_REASON",
1959
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
1960
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
1961
+ }
1962
+ interface Factor$2 {
1963
+ /** Factor ID. */
1964
+ factorId?: string;
1965
+ /** Factor type. */
1966
+ type?: FactorType$2;
1967
+ /** Factor status. */
1968
+ status?: Status$2;
1969
+ }
1970
+ declare enum FactorType$2 {
1971
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
1972
+ PASSWORD = "PASSWORD",
1973
+ SMS = "SMS",
1974
+ CALL = "CALL",
1975
+ EMAIL = "EMAIL",
1976
+ TOTP = "TOTP",
1977
+ PUSH = "PUSH"
1978
+ }
1979
+ declare enum Status$2 {
1980
+ /** Factor requires activation. */
1981
+ INACTIVE = "INACTIVE",
1982
+ /** Factor is active and can be used for authentication. */
1983
+ ACTIVE = "ACTIVE",
1984
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
1985
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
1986
+ }
1987
+ interface CustomValue$2 extends CustomValueValueOneOf$2 {
1988
+ /** String value. */
1989
+ strValue?: string;
1990
+ /** Number value. */
1991
+ numValue?: number;
1992
+ /** Date value. */
1993
+ dateValue?: Date | null;
1994
+ /** List value. */
1995
+ listValue?: ListValue$2;
1996
+ /** Map value. */
1997
+ mapValue?: MapValue$2;
1998
+ }
1999
+ /** @oneof */
2000
+ interface CustomValueValueOneOf$2 {
2001
+ /** String value. */
2002
+ strValue?: string;
2003
+ /** Number value. */
2004
+ numValue?: number;
2005
+ /** Date value. */
2006
+ dateValue?: Date | null;
2007
+ /** List value. */
2008
+ listValue?: ListValue$2;
2009
+ /** Map value. */
2010
+ mapValue?: MapValue$2;
2011
+ }
2012
+ interface ListValue$2 {
2013
+ /** Custom value. */
2014
+ value?: CustomValue$2[];
2015
+ }
2016
+ interface MapValue$2 {
2017
+ /** Mapped custom value. */
2018
+ value?: Record<string, CustomValue$2>;
2019
+ }
2020
+ interface IdentifierNonNullableFields$2 {
2021
+ email: string;
2022
+ userName: string;
2023
+ }
2024
+ interface IdpConnectionNonNullableFields$2 {
2025
+ idpConnectionId: string;
2026
+ idpUserId: string;
2027
+ }
2028
+ interface AuthenticatorConnectionNonNullableFields$2 {
2029
+ authenticatorConnectionId: string;
2030
+ reEnrollmentRequired: boolean;
2031
+ }
2032
+ interface ConnectionNonNullableFields$2 {
2033
+ idpConnection?: IdpConnectionNonNullableFields$2;
2034
+ authenticatorConnection?: AuthenticatorConnectionNonNullableFields$2;
2035
+ }
2036
+ interface V1ListValueNonNullableFields$2 {
2037
+ value: V1CustomValueNonNullableFields$2[];
2038
+ }
2039
+ interface V1CustomValueNonNullableFields$2 {
2040
+ strValue: string;
2041
+ numValue: number;
2042
+ listValue?: V1ListValueNonNullableFields$2;
2043
+ }
2044
+ interface CustomFieldNonNullableFields$2 {
2045
+ name: string;
2046
+ value?: V1CustomValueNonNullableFields$2;
2047
+ }
2048
+ interface SecondaryEmailNonNullableFields$2 {
2049
+ email: string;
2050
+ tag: EmailTag$2;
2051
+ }
2052
+ interface PhoneNonNullableFields$2 {
2053
+ phone: string;
2054
+ tag: PhoneTag$2;
2055
+ }
2056
+ interface AddressWrapperNonNullableFields$2 {
2057
+ tag: AddressTag$2;
2058
+ }
2059
+ interface IdentityProfileNonNullableFields$2 {
2060
+ emails: string[];
2061
+ phones: string[];
2062
+ labels: string[];
2063
+ privacyStatus: PrivacyStatus$2;
2064
+ customFields: CustomFieldNonNullableFields$2[];
2065
+ secondaryEmails: SecondaryEmailNonNullableFields$2[];
2066
+ phonesV2: PhoneNonNullableFields$2[];
2067
+ addresses: AddressWrapperNonNullableFields$2[];
2068
+ }
2069
+ interface MetadataNonNullableFields$2 {
2070
+ tags: string[];
2071
+ }
2072
+ interface EmailNonNullableFields$2 {
2073
+ address: string;
2074
+ isVerified: boolean;
2075
+ }
2076
+ interface StatusV2NonNullableFields$2 {
2077
+ name: StatusName$2;
2078
+ reasons: Reason$2[];
2079
+ }
2080
+ interface FactorNonNullableFields$2 {
2081
+ factorId: string;
2082
+ type: FactorType$2;
2083
+ status: Status$2;
2084
+ }
2085
+ interface IdentityNonNullableFields$2 {
2086
+ identifiers: IdentifierNonNullableFields$2[];
2087
+ connections: ConnectionNonNullableFields$2[];
2088
+ identityProfile?: IdentityProfileNonNullableFields$2;
2089
+ metadata?: MetadataNonNullableFields$2;
2090
+ email?: EmailNonNullableFields$2;
2091
+ status?: StatusV2NonNullableFields$2;
2092
+ factors: FactorNonNullableFields$2[];
2093
+ }
2094
+ interface StateMachineResponseNonNullableFields$2 {
2095
+ state: StateType$2;
2096
+ identity?: IdentityNonNullableFields$2;
2097
+ }
2098
+
2099
+ type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2100
+ getUrl: (context: any) => string;
2101
+ httpMethod: K;
2102
+ path: string;
2103
+ pathParams: M;
2104
+ __requestType: T;
2105
+ __originalRequestType: S;
2106
+ __responseType: Q;
2107
+ __originalResponseType: R;
2108
+ };
2109
+ declare function sendRecoveryEmail(): __PublicMethodMetaInfo$5<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
2110
+ declare function sendActivationEmail(): __PublicMethodMetaInfo$5<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
2111
+ declare function recover(): __PublicMethodMetaInfo$5<'POST', {}, RecoverRequest, RecoverRequest$1, StateMachineResponse$2 & StateMachineResponseNonNullableFields$2, StateMachineResponse$3 & StateMachineResponseNonNullableFields$3>;
2112
+
2113
+ declare const meta$5_recover: typeof recover;
2114
+ declare const meta$5_sendActivationEmail: typeof sendActivationEmail;
2115
+ declare const meta$5_sendRecoveryEmail: typeof sendRecoveryEmail;
2116
+ declare namespace meta$5 {
2117
+ export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_recover as recover, meta$5_sendActivationEmail as sendActivationEmail, meta$5_sendRecoveryEmail as sendRecoveryEmail };
2118
+ }
2119
+
2120
+ interface StartResponse$1 {
2121
+ /** the identifier of the verification process */
2122
+ verificationId?: string;
2123
+ }
2124
+ interface StartRequest$1 {
2125
+ /**
2126
+ * an identity_Id.
2127
+ * If not provided - currently, an exception is thrown. In the future the identity from identity response will be taken.
2128
+ */
2129
+ identityId?: string | null;
2130
+ /** the delivery target */
2131
+ target?: Target$1;
2132
+ }
2133
+ declare enum Target$1 {
2134
+ UNKNOWN_TARGET = "UNKNOWN_TARGET",
2135
+ EMAIL = "EMAIL"
2136
+ }
2137
+ interface VerifyDuringAuthenticationRequest$1 {
2138
+ /** The code to verify. */
2139
+ code: string;
2140
+ /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2141
+ stateToken: string;
2142
+ }
2143
+ interface StateMachineResponse$1 {
2144
+ /** The current state of the login or registration process. */
2145
+ state?: StateType$1;
2146
+ /** If state is `SUCCESS`, a session token. */
2147
+ sessionToken?: string | null;
2148
+ /** A token representing the current state of the login or registration process. */
2149
+ stateToken?: string | null;
2150
+ /** Identing of the current member. */
2151
+ identity?: Identity$1;
2152
+ /** additional_data = 5; //TBD */
2153
+ additionalData?: Record<string, CustomValue$1>;
2154
+ }
2155
+ declare enum StateType$1 {
2156
+ /** Initial unknown state. */
2157
+ UNKNOWN_STATE = "UNKNOWN_STATE",
2158
+ /** The operation completed successfully. */
2159
+ SUCCESS = "SUCCESS",
2160
+ /** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
2161
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
2162
+ /**
2163
+ * State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
2164
+ * https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
2165
+ */
2166
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
2167
+ /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
2168
+ STATUS_CHECK = "STATUS_CHECK",
2169
+ REQUIRE_MFA = "REQUIRE_MFA"
2170
+ }
2171
+ interface Identity$1 {
2172
+ /** Identity ID */
2173
+ id?: string | null;
2174
+ /**
2175
+ * Identifiers
2176
+ * @deprecated Identifiers
2177
+ * @replacedBy email
2178
+ * @targetRemovalDate 2023-05-01
2179
+ */
2180
+ identifiers?: Identifier$1[];
2181
+ /**
2182
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes.
2183
+ * For an update operation to succeed, you MUST pass the latest revision.
2184
+ */
2185
+ revision?: string | null;
2186
+ /**
2187
+ * The time this identity was created.
2188
+ * @readonly
2189
+ */
2190
+ createdDate?: Date | null;
2191
+ /**
2192
+ * The time this identity was last updated.
2193
+ * @readonly
2194
+ */
2195
+ updatedDate?: Date | null;
2196
+ /** The identity configured connections to authenticate with. */
2197
+ connections?: Connection$1[];
2198
+ /** Identity profile. */
2199
+ identityProfile?: IdentityProfile$1;
2200
+ /**
2201
+ * Additional information about the identity that can impact user access.
2202
+ * This data cannot be set.
2203
+ */
2204
+ metadata?: Metadata$1;
2205
+ /** Identity email address. */
2206
+ email?: Email$1;
2207
+ /** Identity's current status. */
2208
+ status?: StatusV2$1;
2209
+ /** filled by pre registered spi */
2210
+ customAttributes?: Record<string, any> | null;
2211
+ /**
2212
+ * Identity factors.
2213
+ * @readonly
2214
+ */
2215
+ factors?: Factor$1[];
2216
+ }
2217
+ interface Identifier$1 extends IdentifierValueOneOf$1 {
2218
+ email?: string;
2219
+ userName?: string;
2220
+ }
2221
+ /** @oneof */
2222
+ interface IdentifierValueOneOf$1 {
2223
+ email?: string;
2224
+ userName?: string;
2225
+ }
2226
+ interface Connection$1 extends ConnectionTypeOneOf$1 {
2227
+ /** IDP connection. */
2228
+ idpConnection?: IdpConnection$1;
2229
+ /** Authenticator connection. */
2230
+ authenticatorConnection?: AuthenticatorConnection$1;
2231
+ }
2232
+ /** @oneof */
2233
+ interface ConnectionTypeOneOf$1 {
2234
+ /** IDP connection. */
2235
+ idpConnection?: IdpConnection$1;
2236
+ /** Authenticator connection. */
2237
+ authenticatorConnection?: AuthenticatorConnection$1;
2238
+ }
2239
+ interface IdpConnection$1 {
2240
+ /** IDP connection ID. */
2241
+ idpConnectionId?: string;
2242
+ /** IDP user ID. */
2243
+ idpUserId?: string;
2244
+ }
2245
+ interface AuthenticatorConnection$1 {
2246
+ /** Authenticator connection ID. */
2247
+ authenticatorConnectionId?: string;
2248
+ /** Whether re-enrollment is required. */
2249
+ reEnrollmentRequired?: boolean;
2250
+ }
2251
+ interface IdentityProfile$1 {
2252
+ /** Profile first name. */
2253
+ firstName?: string | null;
2254
+ /** Profile last name. */
2255
+ lastName?: string | null;
2256
+ /** Profile nickname. */
2257
+ nickname?: string | null;
2258
+ /** Profile picture URL. */
2259
+ picture?: string | null;
2260
+ /**
2261
+ * Deprecated. Use `secondaryEmails` instead.
2262
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
2263
+ * @replacedBy secondary_emails
2264
+ * @targetRemovalDate 2023-11-01
2265
+ */
2266
+ emails?: string[];
2267
+ /**
2268
+ * Deprecated. Use `phonesV2` instead.
2269
+ * @deprecated Deprecated. Use `phonesV2` instead.
2270
+ * @replacedBy phones_v2
2271
+ * @targetRemovalDate 2023-11-01
2272
+ */
2273
+ phones?: string[];
2274
+ /** List of profile labels. */
2275
+ labels?: string[];
2276
+ /** Profile language. */
2277
+ language?: string | null;
2278
+ /** Profile privacy status. */
2279
+ privacyStatus?: PrivacyStatus$1;
2280
+ /**
2281
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
2282
+ * are used to store additional information about your site or app's contacts.
2283
+ */
2284
+ customFields?: CustomField$1[];
2285
+ /** List of profile email addresses. */
2286
+ secondaryEmails?: SecondaryEmail$1[];
2287
+ /** List of profile phone numbers. */
2288
+ phonesV2?: Phone$1[];
2289
+ /** List of profile physical addresses. */
2290
+ addresses?: AddressWrapper$1[];
2291
+ /** Company name. */
2292
+ company?: string | null;
2293
+ /** Position within company. */
2294
+ position?: string | null;
2295
+ /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
2296
+ birthdate?: string | null;
2297
+ }
2298
+ declare enum PrivacyStatus$1 {
2299
+ UNDEFINED = "UNDEFINED",
2300
+ PUBLIC = "PUBLIC",
2301
+ PRIVATE = "PRIVATE"
2302
+ }
2303
+ interface CustomField$1 {
2304
+ /**
2305
+ * Custom field name. The name must match one of the key properties of the objects returned by
2306
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
2307
+ * with the `custom.` prefix removed.
2308
+ */
2309
+ name?: string;
2310
+ /** Custom field value. */
2311
+ value?: V1CustomValue$1;
2312
+ }
2313
+ interface V1CustomValue$1 extends V1CustomValueValueOneOf$1 {
2314
+ /** String value. */
2315
+ strValue?: string;
2316
+ /** Number value. */
2317
+ numValue?: number;
2318
+ /** Date value. */
2319
+ dateValue?: Date | null;
2320
+ /** List value. */
2321
+ listValue?: V1ListValue$1;
2322
+ /** Map value. */
2323
+ mapValue?: V1MapValue$1;
2324
+ }
2325
+ /** @oneof */
2326
+ interface V1CustomValueValueOneOf$1 {
2327
+ /** String value. */
2328
+ strValue?: string;
2329
+ /** Number value. */
2330
+ numValue?: number;
2331
+ /** Date value. */
2332
+ dateValue?: Date | null;
2333
+ /** List value. */
2334
+ listValue?: V1ListValue$1;
2335
+ /** Map value. */
2336
+ mapValue?: V1MapValue$1;
2337
+ }
2338
+ interface V1ListValue$1 {
2339
+ /** Custom value. */
2340
+ value?: V1CustomValue$1[];
2341
+ }
2342
+ interface V1MapValue$1 {
2343
+ /** Mapped custom value. */
2344
+ value?: Record<string, V1CustomValue$1>;
2345
+ }
2346
+ interface SecondaryEmail$1 {
2347
+ /** Email address. */
2348
+ email?: string;
2349
+ /** Email tag. */
2350
+ tag?: EmailTag$1;
2351
+ }
2352
+ declare enum EmailTag$1 {
2353
+ UNTAGGED = "UNTAGGED",
2354
+ MAIN = "MAIN",
2355
+ HOME = "HOME",
2356
+ WORK = "WORK"
2357
+ }
2358
+ interface Phone$1 {
2359
+ /** Phone country code. */
2360
+ countryCode?: string | null;
2361
+ /** Phone number. */
2362
+ phone?: string;
2363
+ /** Phone tag. */
2364
+ tag?: PhoneTag$1;
2365
+ }
2366
+ declare enum PhoneTag$1 {
2367
+ UNTAGGED = "UNTAGGED",
2368
+ MAIN = "MAIN",
2369
+ HOME = "HOME",
2370
+ MOBILE = "MOBILE",
2371
+ WORK = "WORK",
2372
+ FAX = "FAX"
2373
+ }
2374
+ interface AddressWrapper$1 {
2375
+ /** Address. */
2376
+ address?: Address$1;
2377
+ /** Address tag. */
2378
+ tag?: AddressTag$1;
2379
+ }
2380
+ /** Physical address */
2381
+ interface Address$1 {
2382
+ /** Country code. */
2383
+ country?: string | null;
2384
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
2385
+ subdivision?: string | null;
2386
+ /** City name. */
2387
+ city?: string | null;
2388
+ /** Zip/postal code. */
2389
+ postalCode?: string | null;
2390
+ /** Main address line, usually street and number as free text. */
2391
+ addressLine?: string | null;
2392
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
2393
+ addressLine2?: string | null;
2394
+ }
2395
+ declare enum AddressTag$1 {
2396
+ UNTAGGED = "UNTAGGED",
2397
+ HOME = "HOME",
2398
+ WORK = "WORK",
2399
+ BILLING = "BILLING",
2400
+ SHIPPING = "SHIPPING"
2401
+ }
2402
+ interface Metadata$1 {
2403
+ /**
2404
+ * represents general tags such as "isOwner", "isContributor"
2405
+ * @readonly
2406
+ */
2407
+ tags?: string[];
2408
+ }
2409
+ interface Email$1 {
2410
+ address?: string;
2411
+ isVerified?: boolean;
2412
+ }
2413
+ interface StatusV2$1 {
2414
+ name?: StatusName$1;
2415
+ reasons?: Reason$1[];
2416
+ }
2417
+ declare enum StatusName$1 {
2418
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
2419
+ PENDING = "PENDING",
2420
+ ACTIVE = "ACTIVE",
2421
+ DELETED = "DELETED",
2422
+ BLOCKED = "BLOCKED",
2423
+ OFFLINE = "OFFLINE"
2424
+ }
2425
+ declare enum Reason$1 {
2426
+ UNKNOWN_REASON = "UNKNOWN_REASON",
2427
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
2428
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
2429
+ }
2430
+ interface Factor$1 {
2431
+ /** Factor ID. */
2432
+ factorId?: string;
2433
+ /** Factor type. */
2434
+ type?: FactorType$1;
2435
+ /** Factor status. */
2436
+ status?: Status$1;
2437
+ }
2438
+ declare enum FactorType$1 {
2439
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
2440
+ PASSWORD = "PASSWORD",
2441
+ SMS = "SMS",
2442
+ CALL = "CALL",
2443
+ EMAIL = "EMAIL",
2444
+ TOTP = "TOTP",
2445
+ PUSH = "PUSH"
2446
+ }
2447
+ declare enum Status$1 {
2448
+ /** Factor requires activation. */
2449
+ INACTIVE = "INACTIVE",
2450
+ /** Factor is active and can be used for authentication. */
2451
+ ACTIVE = "ACTIVE",
2452
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
2453
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
2454
+ }
2455
+ interface CustomValue$1 extends CustomValueValueOneOf$1 {
2456
+ /** String value. */
2457
+ strValue?: string;
2458
+ /** Number value. */
2459
+ numValue?: number;
2460
+ /** Date value. */
2461
+ dateValue?: Date | null;
2462
+ /** List value. */
2463
+ listValue?: ListValue$1;
2464
+ /** Map value. */
2465
+ mapValue?: MapValue$1;
2466
+ }
2467
+ /** @oneof */
2468
+ interface CustomValueValueOneOf$1 {
2469
+ /** String value. */
2470
+ strValue?: string;
2471
+ /** Number value. */
2472
+ numValue?: number;
2473
+ /** Date value. */
2474
+ dateValue?: Date | null;
2475
+ /** List value. */
2476
+ listValue?: ListValue$1;
2477
+ /** Map value. */
2478
+ mapValue?: MapValue$1;
2479
+ }
2480
+ interface ListValue$1 {
2481
+ /** Custom value. */
2482
+ value?: CustomValue$1[];
2483
+ }
2484
+ interface MapValue$1 {
2485
+ /** Mapped custom value. */
2486
+ value?: Record<string, CustomValue$1>;
2487
+ }
2488
+ interface ResendDuringAuthenticationRequest$1 {
2489
+ /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2490
+ stateToken: string;
2491
+ }
2492
+ interface StartResponseNonNullableFields$1 {
2493
+ verificationId: string;
2494
+ }
2495
+ interface IdentifierNonNullableFields$1 {
2496
+ email: string;
2497
+ userName: string;
2498
+ }
2499
+ interface IdpConnectionNonNullableFields$1 {
2500
+ idpConnectionId: string;
2501
+ idpUserId: string;
2502
+ }
2503
+ interface AuthenticatorConnectionNonNullableFields$1 {
2504
+ authenticatorConnectionId: string;
2505
+ reEnrollmentRequired: boolean;
2506
+ }
2507
+ interface ConnectionNonNullableFields$1 {
2508
+ idpConnection?: IdpConnectionNonNullableFields$1;
2509
+ authenticatorConnection?: AuthenticatorConnectionNonNullableFields$1;
2510
+ }
2511
+ interface V1ListValueNonNullableFields$1 {
2512
+ value: V1CustomValueNonNullableFields$1[];
2513
+ }
2514
+ interface V1CustomValueNonNullableFields$1 {
2515
+ strValue: string;
2516
+ numValue: number;
2517
+ listValue?: V1ListValueNonNullableFields$1;
2518
+ }
2519
+ interface CustomFieldNonNullableFields$1 {
2520
+ name: string;
2521
+ value?: V1CustomValueNonNullableFields$1;
2522
+ }
2523
+ interface SecondaryEmailNonNullableFields$1 {
2524
+ email: string;
2525
+ tag: EmailTag$1;
2526
+ }
2527
+ interface PhoneNonNullableFields$1 {
2528
+ phone: string;
2529
+ tag: PhoneTag$1;
2530
+ }
2531
+ interface AddressWrapperNonNullableFields$1 {
2532
+ tag: AddressTag$1;
2533
+ }
2534
+ interface IdentityProfileNonNullableFields$1 {
2535
+ emails: string[];
2536
+ phones: string[];
2537
+ labels: string[];
2538
+ privacyStatus: PrivacyStatus$1;
2539
+ customFields: CustomFieldNonNullableFields$1[];
2540
+ secondaryEmails: SecondaryEmailNonNullableFields$1[];
2541
+ phonesV2: PhoneNonNullableFields$1[];
2542
+ addresses: AddressWrapperNonNullableFields$1[];
2543
+ }
2544
+ interface MetadataNonNullableFields$1 {
2545
+ tags: string[];
2546
+ }
2547
+ interface EmailNonNullableFields$1 {
2548
+ address: string;
2549
+ isVerified: boolean;
2550
+ }
2551
+ interface StatusV2NonNullableFields$1 {
2552
+ name: StatusName$1;
2553
+ reasons: Reason$1[];
2554
+ }
2555
+ interface FactorNonNullableFields$1 {
2556
+ factorId: string;
2557
+ type: FactorType$1;
2558
+ status: Status$1;
2559
+ }
2560
+ interface IdentityNonNullableFields$1 {
2561
+ identifiers: IdentifierNonNullableFields$1[];
2562
+ connections: ConnectionNonNullableFields$1[];
2563
+ identityProfile?: IdentityProfileNonNullableFields$1;
2564
+ metadata?: MetadataNonNullableFields$1;
2565
+ email?: EmailNonNullableFields$1;
2566
+ status?: StatusV2NonNullableFields$1;
2567
+ factors: FactorNonNullableFields$1[];
2568
+ }
2569
+ interface StateMachineResponseNonNullableFields$1 {
2570
+ state: StateType$1;
2571
+ identity?: IdentityNonNullableFields$1;
2572
+ }
2573
+
2574
+ interface StartResponse {
2575
+ /** the identifier of the verification process */
2576
+ verificationId?: string;
2577
+ }
2578
+ interface StartRequest {
2579
+ /**
2580
+ * an identity_Id.
2581
+ * If not provided - currently, an exception is thrown. In the future the identity from identity response will be taken.
2582
+ */
2583
+ identityId?: string | null;
2584
+ /** the delivery target */
2585
+ target?: Target;
2586
+ }
2587
+ declare enum Target {
2588
+ UNKNOWN_TARGET = "UNKNOWN_TARGET",
2589
+ EMAIL = "EMAIL"
2590
+ }
2591
+ interface VerifyDuringAuthenticationRequest {
2592
+ /** The code to verify. */
2593
+ code: string;
2594
+ /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2595
+ stateToken: string;
2596
+ }
2597
+ interface StateMachineResponse {
2598
+ /** The current state of the login or registration process. */
2599
+ state?: StateType;
2600
+ /** If state is `SUCCESS`, a session token. */
2601
+ sessionToken?: string | null;
2602
+ /** A token representing the current state of the login or registration process. */
2603
+ stateToken?: string | null;
2604
+ /** Identing of the current member. */
2605
+ identity?: Identity;
2606
+ /** additional_data = 5; //TBD */
2607
+ additionalData?: Record<string, CustomValue>;
2608
+ }
2609
+ declare enum StateType {
2610
+ /** Initial unknown state. */
2611
+ UNKNOWN_STATE = "UNKNOWN_STATE",
2612
+ /** The operation completed successfully. */
2613
+ SUCCESS = "SUCCESS",
2614
+ /** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
2615
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
2616
+ /**
2617
+ * State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
2618
+ * https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
2619
+ */
2620
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
2621
+ /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
2622
+ STATUS_CHECK = "STATUS_CHECK",
2623
+ REQUIRE_MFA = "REQUIRE_MFA"
2624
+ }
2625
+ interface Identity {
2626
+ /** Identity ID */
2627
+ _id?: string | null;
2628
+ /**
2629
+ * Identifiers
2630
+ * @deprecated Identifiers
2631
+ * @replacedBy email
2632
+ * @targetRemovalDate 2023-05-01
2633
+ */
2634
+ identifiers?: Identifier[];
2635
+ /**
2636
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes.
2637
+ * For an update operation to succeed, you MUST pass the latest revision.
2638
+ */
2639
+ revision?: string | null;
2640
+ /**
2641
+ * The time this identity was created.
2642
+ * @readonly
2643
+ */
2644
+ _createdDate?: Date | null;
2645
+ /**
2646
+ * The time this identity was last updated.
2647
+ * @readonly
2648
+ */
2649
+ _updatedDate?: Date | null;
2650
+ /** The identity configured connections to authenticate with. */
2651
+ connections?: Connection[];
2652
+ /** Identity profile. */
2653
+ identityProfile?: IdentityProfile;
2654
+ /**
2655
+ * Additional information about the identity that can impact user access.
2656
+ * This data cannot be set.
2657
+ */
2658
+ metadata?: Metadata;
2659
+ /** Identity email address. */
2660
+ email?: Email;
2661
+ /** Identity's current status. */
2662
+ status?: StatusV2;
2663
+ /** filled by pre registered spi */
2664
+ customAttributes?: Record<string, any> | null;
2665
+ /**
2666
+ * Identity factors.
2667
+ * @readonly
2668
+ */
2669
+ factors?: Factor[];
2670
+ }
2671
+ interface Identifier extends IdentifierValueOneOf {
2672
+ email?: string;
2673
+ userName?: string;
2674
+ }
2675
+ /** @oneof */
2676
+ interface IdentifierValueOneOf {
2677
+ email?: string;
2678
+ userName?: string;
2679
+ }
2680
+ interface Connection extends ConnectionTypeOneOf {
2681
+ /** IDP connection. */
2682
+ idpConnection?: IdpConnection;
2683
+ /** Authenticator connection. */
2684
+ authenticatorConnection?: AuthenticatorConnection;
2685
+ }
2686
+ /** @oneof */
2687
+ interface ConnectionTypeOneOf {
2688
+ /** IDP connection. */
2689
+ idpConnection?: IdpConnection;
2690
+ /** Authenticator connection. */
2691
+ authenticatorConnection?: AuthenticatorConnection;
2692
+ }
2693
+ interface IdpConnection {
2694
+ /** IDP connection ID. */
2695
+ idpConnectionId?: string;
2696
+ /** IDP user ID. */
2697
+ idpUserId?: string;
2698
+ }
2699
+ interface AuthenticatorConnection {
2700
+ /** Authenticator connection ID. */
2701
+ authenticatorConnectionId?: string;
2702
+ /** Whether re-enrollment is required. */
2703
+ reEnrollmentRequired?: boolean;
2704
+ }
2705
+ interface IdentityProfile {
2706
+ /** Profile first name. */
2707
+ firstName?: string | null;
2708
+ /** Profile last name. */
2709
+ lastName?: string | null;
2710
+ /** Profile nickname. */
2711
+ nickname?: string | null;
2712
+ /** Profile picture URL. */
2713
+ picture?: string | null;
2714
+ /**
2715
+ * Deprecated. Use `secondaryEmails` instead.
2716
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
2717
+ * @replacedBy secondary_emails
2718
+ * @targetRemovalDate 2023-11-01
2719
+ */
2720
+ emails?: string[];
2721
+ /**
2722
+ * Deprecated. Use `phonesV2` instead.
2723
+ * @deprecated Deprecated. Use `phonesV2` instead.
2724
+ * @replacedBy phones_v2
2725
+ * @targetRemovalDate 2023-11-01
2726
+ */
2727
+ phones?: string[];
2728
+ /** List of profile labels. */
2729
+ labels?: string[];
2730
+ /** Profile language. */
2731
+ language?: string | null;
2732
+ /** Profile privacy status. */
2733
+ privacyStatus?: PrivacyStatus;
2734
+ /**
2735
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
2736
+ * are used to store additional information about your site or app's contacts.
2737
+ */
2738
+ customFields?: CustomField[];
2739
+ /** List of profile email addresses. */
2740
+ secondaryEmails?: SecondaryEmail[];
2741
+ /** List of profile phone numbers. */
2742
+ phonesV2?: Phone[];
2743
+ /** List of profile physical addresses. */
2744
+ addresses?: AddressWrapper[];
2745
+ /** Company name. */
2746
+ company?: string | null;
2747
+ /** Position within company. */
2748
+ position?: string | null;
2749
+ /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
2750
+ birthdate?: string | null;
2751
+ }
2752
+ declare enum PrivacyStatus {
2753
+ UNDEFINED = "UNDEFINED",
2754
+ PUBLIC = "PUBLIC",
2755
+ PRIVATE = "PRIVATE"
2756
+ }
2757
+ interface CustomField {
2758
+ /**
2759
+ * Custom field name. The name must match one of the key properties of the objects returned by
2760
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
2761
+ * with the `custom.` prefix removed.
2762
+ */
2763
+ name?: string;
2764
+ /** Custom field value. */
2765
+ value?: V1CustomValue;
2766
+ }
2767
+ interface V1CustomValue extends V1CustomValueValueOneOf {
2768
+ /** String value. */
2769
+ strValue?: string;
2770
+ /** Number value. */
2771
+ numValue?: number;
2772
+ /** Date value. */
2773
+ dateValue?: Date | null;
2774
+ /** List value. */
2775
+ listValue?: V1ListValue;
2776
+ /** Map value. */
2777
+ mapValue?: V1MapValue;
2778
+ }
2779
+ /** @oneof */
2780
+ interface V1CustomValueValueOneOf {
2781
+ /** String value. */
2782
+ strValue?: string;
2783
+ /** Number value. */
2784
+ numValue?: number;
2785
+ /** Date value. */
2786
+ dateValue?: Date | null;
2787
+ /** List value. */
2788
+ listValue?: V1ListValue;
2789
+ /** Map value. */
2790
+ mapValue?: V1MapValue;
2791
+ }
2792
+ interface V1ListValue {
2793
+ /** Custom value. */
2794
+ value?: V1CustomValue[];
2795
+ }
2796
+ interface V1MapValue {
2797
+ /** Mapped custom value. */
2798
+ value?: Record<string, V1CustomValue>;
2799
+ }
2800
+ interface SecondaryEmail {
2801
+ /** Email address. */
2802
+ email?: string;
2803
+ /** Email tag. */
2804
+ tag?: EmailTag;
2805
+ }
2806
+ declare enum EmailTag {
2807
+ UNTAGGED = "UNTAGGED",
2808
+ MAIN = "MAIN",
2809
+ HOME = "HOME",
2810
+ WORK = "WORK"
2811
+ }
2812
+ interface Phone {
2813
+ /** Phone country code. */
2814
+ countryCode?: string | null;
2815
+ /** Phone number. */
2816
+ phone?: string;
2817
+ /** Phone tag. */
2818
+ tag?: PhoneTag;
2819
+ }
2820
+ declare enum PhoneTag {
2821
+ UNTAGGED = "UNTAGGED",
2822
+ MAIN = "MAIN",
2823
+ HOME = "HOME",
2824
+ MOBILE = "MOBILE",
2825
+ WORK = "WORK",
2826
+ FAX = "FAX"
2827
+ }
2828
+ interface AddressWrapper {
2829
+ /** Address. */
2830
+ address?: Address;
2831
+ /** Address tag. */
2832
+ tag?: AddressTag;
2833
+ }
2834
+ /** Physical address */
2835
+ interface Address {
2836
+ /** Country code. */
2837
+ country?: string | null;
2838
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
2839
+ subdivision?: string | null;
2840
+ /** City name. */
2841
+ city?: string | null;
2842
+ /** Zip/postal code. */
2843
+ postalCode?: string | null;
2844
+ /** Main address line, usually street and number as free text. */
2845
+ addressLine1?: string | null;
2846
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
2847
+ addressLine2?: string | null;
2848
+ }
2849
+ declare enum AddressTag {
2850
+ UNTAGGED = "UNTAGGED",
2851
+ HOME = "HOME",
2852
+ WORK = "WORK",
2853
+ BILLING = "BILLING",
2854
+ SHIPPING = "SHIPPING"
2855
+ }
2856
+ interface Metadata {
2857
+ /**
2858
+ * represents general tags such as "isOwner", "isContributor"
2859
+ * @readonly
2860
+ */
2861
+ tags?: string[];
2862
+ }
2863
+ interface Email {
2864
+ address?: string;
2865
+ isVerified?: boolean;
2866
+ }
2867
+ interface StatusV2 {
2868
+ name?: StatusName;
2869
+ reasons?: Reason[];
2870
+ }
2871
+ declare enum StatusName {
2872
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
2873
+ PENDING = "PENDING",
2874
+ ACTIVE = "ACTIVE",
2875
+ DELETED = "DELETED",
2876
+ BLOCKED = "BLOCKED",
2877
+ OFFLINE = "OFFLINE"
2878
+ }
2879
+ declare enum Reason {
2880
+ UNKNOWN_REASON = "UNKNOWN_REASON",
2881
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
2882
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
2883
+ }
2884
+ interface Factor {
2885
+ /** Factor ID. */
2886
+ factorId?: string;
2887
+ /** Factor type. */
2888
+ type?: FactorType;
2889
+ /** Factor status. */
2890
+ status?: Status;
2891
+ }
2892
+ declare enum FactorType {
2893
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
2894
+ PASSWORD = "PASSWORD",
2895
+ SMS = "SMS",
2896
+ CALL = "CALL",
2897
+ EMAIL = "EMAIL",
2898
+ TOTP = "TOTP",
2899
+ PUSH = "PUSH"
2900
+ }
2901
+ declare enum Status {
2902
+ /** Factor requires activation. */
2903
+ INACTIVE = "INACTIVE",
2904
+ /** Factor is active and can be used for authentication. */
2905
+ ACTIVE = "ACTIVE",
2906
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
2907
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
2908
+ }
2909
+ interface CustomValue extends CustomValueValueOneOf {
2910
+ /** String value. */
2911
+ strValue?: string;
2912
+ /** Number value. */
2913
+ numValue?: number;
2914
+ /** Date value. */
2915
+ dateValue?: Date | null;
2916
+ /** List value. */
2917
+ listValue?: ListValue;
2918
+ /** Map value. */
2919
+ mapValue?: MapValue;
2920
+ }
2921
+ /** @oneof */
2922
+ interface CustomValueValueOneOf {
2923
+ /** String value. */
2924
+ strValue?: string;
2925
+ /** Number value. */
2926
+ numValue?: number;
2927
+ /** Date value. */
2928
+ dateValue?: Date | null;
2929
+ /** List value. */
2930
+ listValue?: ListValue;
2931
+ /** Map value. */
2932
+ mapValue?: MapValue;
2933
+ }
2934
+ interface ListValue {
2935
+ /** Custom value. */
2936
+ value?: CustomValue[];
2937
+ }
2938
+ interface MapValue {
2939
+ /** Mapped custom value. */
2940
+ value?: Record<string, CustomValue>;
2941
+ }
2942
+ interface ResendDuringAuthenticationRequest {
2943
+ /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2944
+ stateToken: string;
2945
+ }
2946
+ interface StartResponseNonNullableFields {
2947
+ verificationId: string;
2948
+ }
2949
+ interface IdentifierNonNullableFields {
2950
+ email: string;
2951
+ userName: string;
2952
+ }
2953
+ interface IdpConnectionNonNullableFields {
2954
+ idpConnectionId: string;
2955
+ idpUserId: string;
2956
+ }
2957
+ interface AuthenticatorConnectionNonNullableFields {
2958
+ authenticatorConnectionId: string;
2959
+ reEnrollmentRequired: boolean;
2960
+ }
2961
+ interface ConnectionNonNullableFields {
2962
+ idpConnection?: IdpConnectionNonNullableFields;
2963
+ authenticatorConnection?: AuthenticatorConnectionNonNullableFields;
2964
+ }
2965
+ interface V1ListValueNonNullableFields {
2966
+ value: V1CustomValueNonNullableFields[];
2967
+ }
2968
+ interface V1CustomValueNonNullableFields {
2969
+ strValue: string;
2970
+ numValue: number;
2971
+ listValue?: V1ListValueNonNullableFields;
2972
+ }
2973
+ interface CustomFieldNonNullableFields {
2974
+ name: string;
2975
+ value?: V1CustomValueNonNullableFields;
2976
+ }
2977
+ interface SecondaryEmailNonNullableFields {
2978
+ email: string;
2979
+ tag: EmailTag;
2980
+ }
2981
+ interface PhoneNonNullableFields {
2982
+ phone: string;
2983
+ tag: PhoneTag;
2984
+ }
2985
+ interface AddressWrapperNonNullableFields {
2986
+ tag: AddressTag;
2987
+ }
2988
+ interface IdentityProfileNonNullableFields {
2989
+ emails: string[];
2990
+ phones: string[];
2991
+ labels: string[];
2992
+ privacyStatus: PrivacyStatus;
2993
+ customFields: CustomFieldNonNullableFields[];
2994
+ secondaryEmails: SecondaryEmailNonNullableFields[];
2995
+ phonesV2: PhoneNonNullableFields[];
2996
+ addresses: AddressWrapperNonNullableFields[];
2997
+ }
2998
+ interface MetadataNonNullableFields {
2999
+ tags: string[];
3000
+ }
3001
+ interface EmailNonNullableFields {
3002
+ address: string;
3003
+ isVerified: boolean;
3004
+ }
3005
+ interface StatusV2NonNullableFields {
3006
+ name: StatusName;
3007
+ reasons: Reason[];
3008
+ }
3009
+ interface FactorNonNullableFields {
3010
+ factorId: string;
3011
+ type: FactorType;
3012
+ status: Status;
3013
+ }
3014
+ interface IdentityNonNullableFields {
3015
+ identifiers: IdentifierNonNullableFields[];
3016
+ connections: ConnectionNonNullableFields[];
3017
+ identityProfile?: IdentityProfileNonNullableFields;
3018
+ metadata?: MetadataNonNullableFields;
3019
+ email?: EmailNonNullableFields;
3020
+ status?: StatusV2NonNullableFields;
3021
+ factors: FactorNonNullableFields[];
3022
+ }
3023
+ interface StateMachineResponseNonNullableFields {
3024
+ state: StateType;
3025
+ identity?: IdentityNonNullableFields;
3026
+ }
3027
+
3028
+ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3029
+ getUrl: (context: any) => string;
3030
+ httpMethod: K;
3031
+ path: string;
3032
+ pathParams: M;
3033
+ __requestType: T;
3034
+ __originalRequestType: S;
3035
+ __responseType: Q;
3036
+ __originalResponseType: R;
3037
+ };
3038
+ declare function start(): __PublicMethodMetaInfo$4<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
3039
+ declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$4<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3040
+ declare function resendDuringAuthentication(): __PublicMethodMetaInfo$4<'POST', {}, ResendDuringAuthenticationRequest, ResendDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3041
+
3042
+ declare const meta$4_resendDuringAuthentication: typeof resendDuringAuthentication;
3043
+ declare const meta$4_start: typeof start;
3044
+ declare const meta$4_verifyDuringAuthentication: typeof verifyDuringAuthentication;
3045
+ declare namespace meta$4 {
3046
+ export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_resendDuringAuthentication as resendDuringAuthentication, meta$4_start as start, meta$4_verifyDuringAuthentication as verifyDuringAuthentication };
3047
+ }
3048
+
3049
+ interface AccountInvite$1 {
3050
+ /**
3051
+ * Invite ID.
3052
+ * @readonly
3053
+ */
3054
+ id?: string;
3055
+ /**
3056
+ * Account ID.
3057
+ * @readonly
3058
+ */
3059
+ accountId?: string;
3060
+ /** Email address where the invite was sent. */
3061
+ email?: string;
3062
+ /**
3063
+ * Deprecated. Use `policyIds`.
3064
+ * @deprecated
3065
+ */
3066
+ role?: string;
3067
+ /**
3068
+ * Deprecated. Use `inviterAccountId`.
3069
+ * @readonly
3070
+ * @deprecated
3071
+ */
3072
+ inviterId?: string;
3073
+ /**
3074
+ * Invite status.
3075
+ *
3076
+ * Supported values:
3077
+ * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
3078
+ * - **Used:** The invite has been accepted.
3079
+ * - **Deleted:** The invite has been deleted or revoked.
3080
+ * - **Declined:** The user has declined the invite.
3081
+ * - **Expired:** The invite has expired without being accepted.
3082
+ */
3083
+ status?: InviteStatus$3;
3084
+ /** Link to accept the invite. */
3085
+ acceptLink?: string;
3086
+ /**
3087
+ * Inviting account ID.
3088
+ * @readonly
3089
+ */
3090
+ inviterAccountId?: string;
3091
+ /**
3092
+ * Account ID that accepted the invite. Populated only once the invite is accepted.
3093
+ * @readonly
3094
+ */
3095
+ acceptedByAccountId?: string | null;
3096
+ /** Date the invite was created. */
3097
+ dateCreated?: Date | null;
3098
+ /** Role IDs included in the invite. */
3099
+ policyIds?: string[];
3100
+ /** Date the invite was last updated. */
3101
+ dateUpdated?: Date | null;
3102
+ /** Assets the users are invited to join. */
3103
+ assignments?: InviteResourceAssignment$1[];
3104
+ /** Invite expiration date. */
3105
+ expirationDate?: Date | null;
3106
+ }
3107
+ /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
3108
+ declare enum InviteStatus$3 {
3109
+ Pending = "Pending",
3110
+ Used = "Used",
3111
+ Deleted = "Deleted",
3112
+ Declined = "Declined",
3113
+ Expired = "Expired"
3114
+ }
3115
+ interface InviteResourceAssignment$1 {
3116
+ /** Role ID. */
3117
+ policyId?: string;
3118
+ /** Resources the user will be able to access. */
3119
+ assignments?: InviteAssignment$1[];
3120
+ }
3121
+ interface InviteAssignment$1 {
3122
+ /** Full name of resource to be assigned. */
3123
+ fullNameResource?: FullNameResource$1;
3124
+ }
3125
+ interface FullNameResource$1 extends FullNameResourceResourceContextOneOf$1 {
3126
+ /** Specific site details. */
3127
+ siteContext?: SiteResourceContext$1;
3128
+ /** Specific account details. */
3129
+ accountContext?: AccountResourceContext$1;
3130
+ }
3131
+ /** @oneof */
3132
+ interface FullNameResourceResourceContextOneOf$1 {
3133
+ /** Specific site details. */
3134
+ siteContext?: SiteResourceContext$1;
3135
+ /** Specific account details. */
3136
+ accountContext?: AccountResourceContext$1;
3137
+ }
3138
+ /** Site resource context. It indicates that the resource is under a site (can be the site itself or some asset of a site, like a blog post) */
3139
+ interface SiteResourceContext$1 {
3140
+ /** Site ID. */
3141
+ metasiteId?: string;
3142
+ }
3143
+ /** Account resource contexts. It indicates that the resource is under the account (can be the account itself or some asset of an account, like a logo or a domain) */
3144
+ interface AccountResourceContext$1 {
3145
+ /** Account ID. */
3146
+ accountId?: string;
3147
+ }
3148
+ declare enum SimpleConditionOperator$1 {
3149
+ UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
3150
+ EQUAL = "EQUAL"
3151
+ }
3152
+ declare enum JoinedConditionOperator$1 {
3153
+ UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
3154
+ OR = "OR",
3155
+ AND = "AND"
3156
+ }
3157
+ declare enum SubjectType$3 {
3158
+ UNKNOWN = "UNKNOWN",
3159
+ ACCOUNT = "ACCOUNT",
3160
+ USER = "USER",
3161
+ USER_GROUP = "USER_GROUP",
3162
+ MEMBER_GROUP = "MEMBER_GROUP",
3163
+ VISITOR_GROUP = "VISITOR_GROUP",
3164
+ EXTERNAL_APP = "EXTERNAL_APP",
3165
+ ACCOUNT_GROUP = "ACCOUNT_GROUP",
3166
+ WIX_APP = "WIX_APP"
3167
+ }
3168
+ declare enum SubjectContextType$1 {
3169
+ UNKNOWN_CTX = "UNKNOWN_CTX",
3170
+ ORG_CTX = "ORG_CTX",
3171
+ ACCOUNT_CTX = "ACCOUNT_CTX"
3172
+ }
3173
+ interface CreateInviteRequest$1 {
3174
+ /** Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite). */
3175
+ subjectsAssignments: SubjectInviteAssignments$1[];
3176
+ /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3177
+ defaultEmailLanguage?: string | null;
3178
+ }
3179
+ interface SubjectInviteAssignments$1 {
3180
+ /** Invitee's email address. */
3181
+ subjectEmail?: string;
3182
+ /** Mapping of roles (referred to here as policies) and assets (referred to here as resources) that will be assigned to the invitee when they accept the invite. When no resources are specified, the invitee will be given access to everything within the account. */
3183
+ assignments?: InviteResourceAssignment$1[];
3184
+ }
3185
+ interface CreateInviteResponse$1 {
3186
+ /** Invites that were sent successfully. */
3187
+ successfulInvites?: AccountInvite$1[];
3188
+ /** Invites that failed. */
3189
+ failedInvites?: InviteFailure$1[];
3190
+ }
3191
+ interface InviteFailure$1 {
3192
+ /** Email address of the failed invite. */
3193
+ subjectEmail?: string;
3194
+ /** Error description. */
3195
+ errorMessage?: string;
3196
+ }
3197
+ interface SiteResourceContextNonNullableFields$1 {
3198
+ metasiteId: string;
3199
+ }
3200
+ interface AccountResourceContextNonNullableFields$1 {
3201
+ accountId: string;
3202
+ }
3203
+ interface FullNameResourceNonNullableFields$1 {
3204
+ siteContext?: SiteResourceContextNonNullableFields$1;
3205
+ accountContext?: AccountResourceContextNonNullableFields$1;
3206
+ }
3207
+ interface SimpleConditionValueNonNullableFields$1 {
3208
+ attrName: string;
3209
+ stringValue: string;
3210
+ boolValue: boolean;
3211
+ }
3212
+ interface SimpleConditionNonNullableFields$1 {
3213
+ attrName: string;
3214
+ value?: SimpleConditionValueNonNullableFields$1;
3215
+ op: SimpleConditionOperator$1;
3216
+ conditionModelId: string;
3217
+ }
3218
+ interface JoinedConditionNonNullableFields$1 {
3219
+ op: JoinedConditionOperator$1;
3220
+ conditions: ConditionTypeNonNullableFields$1[];
3221
+ }
3222
+ interface ExperimentConditionNonNullableFields$1 {
3223
+ spec: string;
3224
+ fallbackValue: string;
3225
+ expectedValue: string;
3226
+ }
3227
+ interface EnvironmentConditionNonNullableFields$1 {
3228
+ experimentCondition?: ExperimentConditionNonNullableFields$1;
3229
+ }
3230
+ interface ConditionValueNonNullableFields$1 {
3231
+ attrName: string;
3232
+ stringValue: string;
3233
+ boolValue: boolean;
3234
+ }
3235
+ interface EqualOperatorNonNullableFields$1 {
3236
+ attrName: string;
3237
+ value?: ConditionValueNonNullableFields$1;
3238
+ }
3239
+ interface LikeOperatorNonNullableFields$1 {
3240
+ attrName: string;
3241
+ values: string[];
3242
+ }
3243
+ interface ExperimentOperatorNonNullableFields$1 {
3244
+ spec: string;
3245
+ fallbackValue: string;
3246
+ expectedValue: string;
3247
+ }
3248
+ interface SubjectContextNonNullableFields$1 {
3249
+ id: string;
3250
+ contextType: SubjectContextType$1;
3251
+ }
3252
+ interface SubjectNonNullableFields$1 {
3253
+ id: string;
3254
+ subjectType: SubjectType$3;
3255
+ context?: SubjectContextNonNullableFields$1;
3256
+ }
3257
+ interface DependOnOperatorNonNullableFields$1 {
3258
+ dependOnSubject?: SubjectNonNullableFields$1;
3259
+ }
3260
+ interface ConditionOperatorNonNullableFields$1 {
3261
+ equals?: EqualOperatorNonNullableFields$1;
3262
+ like?: LikeOperatorNonNullableFields$1;
3263
+ experiment?: ExperimentOperatorNonNullableFields$1;
3264
+ dependOn?: DependOnOperatorNonNullableFields$1;
3265
+ }
3266
+ interface ConditionNonNullableFields$1 {
3267
+ conditionModelId: string;
3268
+ operator?: ConditionOperatorNonNullableFields$1;
3269
+ }
3270
+ interface ConditionTypeNonNullableFields$1 {
3271
+ simpleCondition?: SimpleConditionNonNullableFields$1;
3272
+ joinedConditions?: JoinedConditionNonNullableFields$1;
3273
+ environmentCondition?: EnvironmentConditionNonNullableFields$1;
3274
+ condition?: ConditionNonNullableFields$1;
3275
+ }
3276
+ interface PolicyConditionNonNullableFields$1 {
3277
+ condition?: ConditionTypeNonNullableFields$1;
3278
+ }
3279
+ interface InviteAssignmentNonNullableFields$1 {
3280
+ fullNameResource?: FullNameResourceNonNullableFields$1;
3281
+ condition?: PolicyConditionNonNullableFields$1;
3282
+ }
3283
+ interface InviteResourceAssignmentNonNullableFields$1 {
3284
+ policyId: string;
3285
+ assignments: InviteAssignmentNonNullableFields$1[];
3286
+ }
3287
+ interface AccountInviteNonNullableFields$1 {
3288
+ id: string;
3289
+ accountId: string;
3290
+ email: string;
3291
+ role: string;
3292
+ inviterId: string;
3293
+ status: InviteStatus$3;
3294
+ acceptLink: string;
3295
+ inviterAccountId: string;
3296
+ policyIds: string[];
3297
+ assignments: InviteResourceAssignmentNonNullableFields$1[];
3298
+ }
3299
+ interface InviteFailureNonNullableFields$1 {
3300
+ subjectEmail: string;
3301
+ errorMessage: string;
3302
+ }
3303
+ interface CreateInviteResponseNonNullableFields$1 {
3304
+ successfulInvites: AccountInviteNonNullableFields$1[];
3305
+ failedInvites: InviteFailureNonNullableFields$1[];
3306
+ }
3307
+
3308
+ interface AccountInvite {
3309
+ /**
3310
+ * Invite ID.
3311
+ * @readonly
3312
+ */
3313
+ _id?: string;
3314
+ /**
3315
+ * Account ID.
3316
+ * @readonly
3317
+ */
3318
+ accountId?: string;
3319
+ /** Email address where the invite was sent. */
3320
+ email?: string;
3321
+ /**
3322
+ * Deprecated. Use `policyIds`.
3323
+ * @deprecated
3324
+ */
3325
+ role?: string;
3326
+ /**
3327
+ * Deprecated. Use `inviterAccountId`.
3328
+ * @readonly
3329
+ * @deprecated
3330
+ */
3331
+ inviterId?: string;
3332
+ /**
3333
+ * Invite status.
3334
+ *
3335
+ * Supported values:
3336
+ * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
3337
+ * - **Used:** The invite has been accepted.
3338
+ * - **Deleted:** The invite has been deleted or revoked.
3339
+ * - **Declined:** The user has declined the invite.
3340
+ * - **Expired:** The invite has expired without being accepted.
3341
+ */
3342
+ status?: InviteStatus$2;
3343
+ /** Link to accept the invite. */
3344
+ acceptLink?: string;
3345
+ /**
3346
+ * Inviting account ID.
3347
+ * @readonly
3348
+ */
3349
+ inviterAccountId?: string;
3350
+ /**
3351
+ * Account ID that accepted the invite. Populated only once the invite is accepted.
3352
+ * @readonly
3353
+ */
3354
+ acceptedByAccountId?: string | null;
3355
+ /** Date the invite was created. */
3356
+ dateCreated?: Date | null;
3357
+ /** Role IDs included in the invite. */
3358
+ policyIds?: string[];
3359
+ /** Date the invite was last updated. */
3360
+ dateUpdated?: Date | null;
3361
+ /** Assets the users are invited to join. */
3362
+ assignments?: InviteResourceAssignment[];
3363
+ /** Invite expiration date. */
3364
+ expirationDate?: Date | null;
3365
+ }
3366
+ /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
3367
+ declare enum InviteStatus$2 {
3368
+ Pending = "Pending",
3369
+ Used = "Used",
3370
+ Deleted = "Deleted",
3371
+ Declined = "Declined",
3372
+ Expired = "Expired"
3373
+ }
3374
+ interface InviteResourceAssignment {
3375
+ /** Role ID. */
3376
+ policyId?: string;
3377
+ /** Resources the user will be able to access. */
3378
+ assignments?: InviteAssignment[];
3379
+ }
3380
+ interface InviteAssignment {
3381
+ /** Full name of resource to be assigned. */
3382
+ fullNameResource?: FullNameResource;
3383
+ }
3384
+ interface FullNameResource extends FullNameResourceResourceContextOneOf {
3385
+ /** Specific site details. */
3386
+ siteContext?: SiteResourceContext;
3387
+ /** Specific account details. */
3388
+ accountContext?: AccountResourceContext;
3389
+ }
3390
+ /** @oneof */
3391
+ interface FullNameResourceResourceContextOneOf {
3392
+ /** Specific site details. */
3393
+ siteContext?: SiteResourceContext;
3394
+ /** Specific account details. */
3395
+ accountContext?: AccountResourceContext;
3396
+ }
3397
+ /** Site resource context. It indicates that the resource is under a site (can be the site itself or some asset of a site, like a blog post) */
3398
+ interface SiteResourceContext {
3399
+ /** Site ID. */
3400
+ metasiteId?: string;
3401
+ }
3402
+ /** Account resource contexts. It indicates that the resource is under the account (can be the account itself or some asset of an account, like a logo or a domain) */
3403
+ interface AccountResourceContext {
3404
+ /** Account ID. */
3405
+ accountId?: string;
3406
+ }
3407
+ declare enum SimpleConditionOperator {
3408
+ UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
3409
+ EQUAL = "EQUAL"
3410
+ }
3411
+ declare enum JoinedConditionOperator {
3412
+ UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
3413
+ OR = "OR",
3414
+ AND = "AND"
3415
+ }
3416
+ declare enum SubjectType$2 {
3417
+ UNKNOWN = "UNKNOWN",
3418
+ ACCOUNT = "ACCOUNT",
3419
+ USER = "USER",
3420
+ USER_GROUP = "USER_GROUP",
3421
+ MEMBER_GROUP = "MEMBER_GROUP",
3422
+ VISITOR_GROUP = "VISITOR_GROUP",
3423
+ EXTERNAL_APP = "EXTERNAL_APP",
3424
+ ACCOUNT_GROUP = "ACCOUNT_GROUP",
3425
+ WIX_APP = "WIX_APP"
3426
+ }
3427
+ declare enum SubjectContextType {
3428
+ UNKNOWN_CTX = "UNKNOWN_CTX",
3429
+ ORG_CTX = "ORG_CTX",
3430
+ ACCOUNT_CTX = "ACCOUNT_CTX"
3431
+ }
3432
+ interface CreateInviteRequest {
3433
+ /** Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite). */
3434
+ subjectsAssignments: SubjectInviteAssignments[];
3435
+ /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3436
+ defaultEmailLanguage?: string | null;
3437
+ }
3438
+ interface SubjectInviteAssignments {
3439
+ /** Invitee's email address. */
3440
+ subjectEmail?: string;
3441
+ /** Mapping of roles (referred to here as policies) and assets (referred to here as resources) that will be assigned to the invitee when they accept the invite. When no resources are specified, the invitee will be given access to everything within the account. */
3442
+ assignments?: InviteResourceAssignment[];
3443
+ }
3444
+ interface CreateInviteResponse {
3445
+ /** Invites that were sent successfully. */
3446
+ successfulInvites?: AccountInvite[];
3447
+ /** Invites that failed. */
3448
+ failedInvites?: InviteFailure[];
3449
+ }
3450
+ interface InviteFailure {
3451
+ /** Email address of the failed invite. */
3452
+ subjectEmail?: string;
3453
+ /** Error description. */
3454
+ errorMessage?: string;
3455
+ }
3456
+ interface SiteResourceContextNonNullableFields {
3457
+ metasiteId: string;
3458
+ }
3459
+ interface AccountResourceContextNonNullableFields {
3460
+ accountId: string;
3461
+ }
3462
+ interface FullNameResourceNonNullableFields {
3463
+ siteContext?: SiteResourceContextNonNullableFields;
3464
+ accountContext?: AccountResourceContextNonNullableFields;
3465
+ }
3466
+ interface SimpleConditionValueNonNullableFields {
3467
+ attrName: string;
3468
+ stringValue: string;
3469
+ boolValue: boolean;
3470
+ }
3471
+ interface SimpleConditionNonNullableFields {
3472
+ attrName: string;
3473
+ value?: SimpleConditionValueNonNullableFields;
3474
+ op: SimpleConditionOperator;
3475
+ conditionModelId: string;
3476
+ }
3477
+ interface JoinedConditionNonNullableFields {
3478
+ op: JoinedConditionOperator;
3479
+ conditions: ConditionTypeNonNullableFields[];
3480
+ }
3481
+ interface ExperimentConditionNonNullableFields {
3482
+ spec: string;
3483
+ fallbackValue: string;
3484
+ expectedValue: string;
3485
+ }
3486
+ interface EnvironmentConditionNonNullableFields {
3487
+ experimentCondition?: ExperimentConditionNonNullableFields;
3488
+ }
3489
+ interface ConditionValueNonNullableFields {
3490
+ attrName: string;
3491
+ stringValue: string;
3492
+ boolValue: boolean;
3493
+ }
3494
+ interface EqualOperatorNonNullableFields {
3495
+ attrName: string;
3496
+ value?: ConditionValueNonNullableFields;
3497
+ }
3498
+ interface LikeOperatorNonNullableFields {
3499
+ attrName: string;
3500
+ values: string[];
3501
+ }
3502
+ interface ExperimentOperatorNonNullableFields {
3503
+ spec: string;
3504
+ fallbackValue: string;
3505
+ expectedValue: string;
3506
+ }
3507
+ interface SubjectContextNonNullableFields {
3508
+ _id: string;
3509
+ contextType: SubjectContextType;
3510
+ }
3511
+ interface SubjectNonNullableFields {
3512
+ _id: string;
3513
+ subjectType: SubjectType$2;
3514
+ context?: SubjectContextNonNullableFields;
3515
+ }
3516
+ interface DependOnOperatorNonNullableFields {
3517
+ dependOnSubject?: SubjectNonNullableFields;
3518
+ }
3519
+ interface ConditionOperatorNonNullableFields {
3520
+ equals?: EqualOperatorNonNullableFields;
3521
+ like?: LikeOperatorNonNullableFields;
3522
+ experiment?: ExperimentOperatorNonNullableFields;
3523
+ dependOn?: DependOnOperatorNonNullableFields;
3524
+ }
3525
+ interface ConditionNonNullableFields {
3526
+ conditionModelId: string;
3527
+ operator?: ConditionOperatorNonNullableFields;
3528
+ }
3529
+ interface ConditionTypeNonNullableFields {
3530
+ simpleCondition?: SimpleConditionNonNullableFields;
3531
+ joinedConditions?: JoinedConditionNonNullableFields;
3532
+ environmentCondition?: EnvironmentConditionNonNullableFields;
3533
+ condition?: ConditionNonNullableFields;
3534
+ }
3535
+ interface PolicyConditionNonNullableFields {
3536
+ condition?: ConditionTypeNonNullableFields;
3537
+ }
3538
+ interface InviteAssignmentNonNullableFields {
3539
+ fullNameResource?: FullNameResourceNonNullableFields;
3540
+ condition?: PolicyConditionNonNullableFields;
3541
+ }
3542
+ interface InviteResourceAssignmentNonNullableFields {
3543
+ policyId: string;
3544
+ assignments: InviteAssignmentNonNullableFields[];
3545
+ }
3546
+ interface AccountInviteNonNullableFields {
3547
+ _id: string;
3548
+ accountId: string;
3549
+ email: string;
3550
+ role: string;
3551
+ inviterId: string;
3552
+ status: InviteStatus$2;
3553
+ acceptLink: string;
3554
+ inviterAccountId: string;
3555
+ policyIds: string[];
3556
+ assignments: InviteResourceAssignmentNonNullableFields[];
3557
+ }
3558
+ interface InviteFailureNonNullableFields {
3559
+ subjectEmail: string;
3560
+ errorMessage: string;
3561
+ }
3562
+ interface CreateInviteResponseNonNullableFields {
3563
+ successfulInvites: AccountInviteNonNullableFields[];
3564
+ failedInvites: InviteFailureNonNullableFields[];
3565
+ }
3566
+
3567
+ type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3568
+ getUrl: (context: any) => string;
3569
+ httpMethod: K;
3570
+ path: string;
3571
+ pathParams: M;
3572
+ __requestType: T;
3573
+ __originalRequestType: S;
3574
+ __responseType: Q;
3575
+ __originalResponseType: R;
3576
+ };
3577
+ declare function createInvite(): __PublicMethodMetaInfo$3<'POST', {}, CreateInviteRequest, CreateInviteRequest$1, CreateInviteResponse & CreateInviteResponseNonNullableFields, CreateInviteResponse$1 & CreateInviteResponseNonNullableFields$1>;
3578
+
3579
+ declare const meta$3_createInvite: typeof createInvite;
3580
+ declare namespace meta$3 {
3581
+ export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_createInvite as createInvite };
3582
+ }
3583
+
3584
+ interface SiteInvite$1 {
3585
+ /**
3586
+ * Invite ID.
3587
+ * @readonly
3588
+ */
3589
+ id?: string;
3590
+ /**
3591
+ * Site ID the user is invited to as a collaborator.
3592
+ * @readonly
3593
+ */
3594
+ siteId?: string;
3595
+ /** Email address where the invite was sent. */
3596
+ email?: string;
3597
+ /** Role IDs included in the invite. */
3598
+ policyIds?: string[];
3599
+ /**
3600
+ * Deprecated. Use `inviterAccountId`.
3601
+ * @readonly
3602
+ * @deprecated
3603
+ */
3604
+ inviterId?: string;
3605
+ /**
3606
+ * Invite Status.
3607
+ *
3608
+ * Supported values:
3609
+ * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
3610
+ * - **Used:** The invite has been accepted.
3611
+ * - **Deleted:** The invite has been deleted or revoked.
3612
+ * - **Declined:** The user declined the invite.
3613
+ * - **Expired:** The invite has expired without being accepted.
3614
+ */
3615
+ status?: InviteStatus$1;
3616
+ /** Link to accept the invite. */
3617
+ acceptLink?: string;
3618
+ /**
3619
+ * Inviting account ID.
3620
+ * @readonly
3621
+ */
3622
+ inviterAccountId?: string;
3623
+ /**
3624
+ * Account ID that accepted the invite. Populated only once the invite is accepted.
3625
+ * @readonly
3626
+ */
3627
+ acceptedByAccountId?: string | null;
3628
+ /** Date the invite was created. */
3629
+ dateCreated?: Date | null;
3630
+ /** User's Wix Bookings staff ID, if relevant. */
3631
+ staffId?: string | null;
3632
+ /** Invite expiration date */
3633
+ expirationDate?: Date | null;
3634
+ }
3635
+ /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
3636
+ declare enum InviteStatus$1 {
3637
+ Pending = "Pending",
3638
+ Used = "Used",
3639
+ Deleted = "Deleted",
3640
+ Declined = "Declined",
3641
+ Expired = "Expired"
3642
+ }
3643
+ interface SiteInviteResponse$1 {
3644
+ /** Invites that were sent. */
3645
+ invite?: SiteInvite$1;
3646
+ }
3647
+ interface BulkSiteInviteRequest$1 {
3648
+ /** Role IDs, referred to as policy IDs, to assign to the contributors. */
3649
+ policyIds: string[];
3650
+ /** Email addresses to which the invites should be sent. */
3651
+ emails: string[];
3652
+ /** Details explaining the purpose of the invite. */
3653
+ invitePurpose?: string | null;
3654
+ /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3655
+ defaultEmailLanguage?: string | null;
3656
+ }
3657
+ interface BulkSiteInviteResponse$1 {
3658
+ /** Invites that were sent successfully. */
3659
+ invites?: SiteInvite$1[];
3660
+ /** Invites that failed. */
3661
+ failedEmails?: string[];
3662
+ }
3663
+ interface ResendSiteInviteRequest$1 {
3664
+ /** Invite ID. */
3665
+ inviteId: string;
3666
+ /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3667
+ defaultEmailLanguage?: string | null;
3668
+ }
3669
+ interface RevokeSiteInviteRequest$1 {
3670
+ /** Invite ID. */
3671
+ inviteId: string;
3672
+ }
3673
+ interface RevokeSiteInviteResponse$1 {
3674
+ }
3675
+ interface SiteInviteNonNullableFields$1 {
3676
+ id: string;
3677
+ siteId: string;
3678
+ email: string;
3679
+ policyIds: string[];
3680
+ inviterId: string;
3681
+ status: InviteStatus$1;
3682
+ acceptLink: string;
3683
+ inviterAccountId: string;
3684
+ }
3685
+ interface BulkSiteInviteResponseNonNullableFields$1 {
3686
+ invites: SiteInviteNonNullableFields$1[];
3687
+ failedEmails: string[];
3688
+ }
3689
+ interface SiteInviteResponseNonNullableFields$1 {
3690
+ invite?: SiteInviteNonNullableFields$1;
3691
+ }
3692
+
3693
+ interface SiteInvite {
3694
+ /**
3695
+ * Invite ID.
3696
+ * @readonly
3697
+ */
3698
+ _id?: string;
3699
+ /**
3700
+ * Site ID the user is invited to as a collaborator.
3701
+ * @readonly
3702
+ */
3703
+ siteId?: string;
3704
+ /** Email address where the invite was sent. */
3705
+ email?: string;
3706
+ /** Role IDs included in the invite. */
3707
+ policyIds?: string[];
3708
+ /**
3709
+ * Deprecated. Use `inviterAccountId`.
3710
+ * @readonly
3711
+ * @deprecated
3712
+ */
3713
+ inviterId?: string;
3714
+ /**
3715
+ * Invite Status.
3716
+ *
3717
+ * Supported values:
3718
+ * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
3719
+ * - **Used:** The invite has been accepted.
3720
+ * - **Deleted:** The invite has been deleted or revoked.
3721
+ * - **Declined:** The user declined the invite.
3722
+ * - **Expired:** The invite has expired without being accepted.
3723
+ */
3724
+ status?: InviteStatus;
3725
+ /** Link to accept the invite. */
3726
+ acceptLink?: string;
3727
+ /**
3728
+ * Inviting account ID.
3729
+ * @readonly
3730
+ */
3731
+ inviterAccountId?: string;
3732
+ /**
3733
+ * Account ID that accepted the invite. Populated only once the invite is accepted.
3734
+ * @readonly
3735
+ */
3736
+ acceptedByAccountId?: string | null;
3737
+ /** Date the invite was created. */
3738
+ dateCreated?: Date | null;
3739
+ /** User's Wix Bookings staff ID, if relevant. */
3740
+ staffId?: string | null;
3741
+ /** Invite expiration date */
3742
+ expirationDate?: Date | null;
3743
+ }
3744
+ /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
3745
+ declare enum InviteStatus {
3746
+ Pending = "Pending",
3747
+ Used = "Used",
3748
+ Deleted = "Deleted",
3749
+ Declined = "Declined",
3750
+ Expired = "Expired"
3751
+ }
3752
+ interface SiteInviteResponse {
3753
+ /** Invites that were sent. */
3754
+ invite?: SiteInvite;
3755
+ }
3756
+ interface BulkSiteInviteRequest {
3757
+ /** Role IDs, referred to as policy IDs, to assign to the contributors. */
3758
+ policyIds: string[];
3759
+ /** Email addresses to which the invites should be sent. */
3760
+ emails: string[];
3761
+ /** Details explaining the purpose of the invite. */
3762
+ invitePurpose?: string | null;
3763
+ /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3764
+ defaultEmailLanguage?: string | null;
3765
+ }
3766
+ interface BulkSiteInviteResponse {
3767
+ /** Invites that were sent successfully. */
3768
+ invites?: SiteInvite[];
3769
+ /** Invites that failed. */
3770
+ failedEmails?: string[];
3771
+ }
3772
+ interface ResendSiteInviteRequest {
3773
+ /** Invite ID. */
3774
+ inviteId: string;
3775
+ /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3776
+ defaultEmailLanguage?: string | null;
3777
+ }
3778
+ interface RevokeSiteInviteRequest {
3779
+ /** Invite ID. */
3780
+ inviteId: string;
3781
+ }
3782
+ interface RevokeSiteInviteResponse {
3783
+ }
3784
+ interface SiteInviteNonNullableFields {
3785
+ _id: string;
3786
+ siteId: string;
3787
+ email: string;
3788
+ policyIds: string[];
3789
+ inviterId: string;
3790
+ status: InviteStatus;
3791
+ acceptLink: string;
3792
+ inviterAccountId: string;
3793
+ }
3794
+ interface BulkSiteInviteResponseNonNullableFields {
3795
+ invites: SiteInviteNonNullableFields[];
3796
+ failedEmails: string[];
3797
+ }
3798
+ interface SiteInviteResponseNonNullableFields {
3799
+ invite?: SiteInviteNonNullableFields;
3800
+ }
3801
+
3802
+ type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3803
+ getUrl: (context: any) => string;
3804
+ httpMethod: K;
3805
+ path: string;
3806
+ pathParams: M;
3807
+ __requestType: T;
3808
+ __originalRequestType: S;
3809
+ __responseType: Q;
3810
+ __originalResponseType: R;
3811
+ };
3812
+ declare function bulkInvite(): __PublicMethodMetaInfo$2<'POST', {}, BulkSiteInviteRequest, BulkSiteInviteRequest$1, BulkSiteInviteResponse & BulkSiteInviteResponseNonNullableFields, BulkSiteInviteResponse$1 & BulkSiteInviteResponseNonNullableFields$1>;
3813
+ declare function resendInvite(): __PublicMethodMetaInfo$2<'POST', {
3814
+ inviteId: string;
3815
+ }, ResendSiteInviteRequest, ResendSiteInviteRequest$1, SiteInviteResponse & SiteInviteResponseNonNullableFields, SiteInviteResponse$1 & SiteInviteResponseNonNullableFields$1>;
3816
+ declare function revokeInvite(): __PublicMethodMetaInfo$2<'POST', {
3817
+ inviteId: string;
3818
+ }, RevokeSiteInviteRequest, RevokeSiteInviteRequest$1, RevokeSiteInviteResponse, RevokeSiteInviteResponse$1>;
3819
+
3820
+ declare const meta$2_bulkInvite: typeof bulkInvite;
3821
+ declare const meta$2_resendInvite: typeof resendInvite;
3822
+ declare const meta$2_revokeInvite: typeof revokeInvite;
3823
+ declare namespace meta$2 {
3824
+ export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_bulkInvite as bulkInvite, meta$2_resendInvite as resendInvite, meta$2_revokeInvite as revokeInvite };
3825
+ }
3826
+
3827
+ interface RawHttpResponse$1 {
3828
+ body?: Uint8Array;
3829
+ statusCode?: number | null;
3830
+ headers?: HeadersEntry$1[];
3831
+ }
3832
+ interface HeadersEntry$1 {
3833
+ key?: string;
3834
+ value?: string;
3835
+ }
3836
+ interface RawHttpRequest$1 {
3837
+ body?: Uint8Array;
3838
+ pathParams?: PathParametersEntry$1[];
3839
+ queryParams?: QueryParametersEntry$1[];
3840
+ headers?: HeadersEntry$1[];
3841
+ method?: string;
3842
+ rawPath?: string;
3843
+ rawQuery?: string;
3844
+ }
3845
+ interface PathParametersEntry$1 {
3846
+ key?: string;
3847
+ value?: string;
3848
+ }
3849
+ interface QueryParametersEntry$1 {
3850
+ key?: string;
3851
+ value?: string;
3852
+ }
3853
+ interface TokenInfoResponse$1 {
3854
+ active?: boolean;
3855
+ /** subject type. */
3856
+ subjectType?: SubjectType$1;
3857
+ /** subject id */
3858
+ subjectId?: string;
3859
+ /** Expiration time of the token */
3860
+ exp?: string | null;
3861
+ /** Issued time of the token */
3862
+ iat?: string | null;
3863
+ /** Client id */
3864
+ clientId?: string;
3865
+ /** Account id */
3866
+ accountId?: string | null;
3867
+ /** Site id */
3868
+ siteId?: string | null;
3869
+ /** Instance Id */
3870
+ instanceId?: string | null;
3871
+ /** Vendor Product Id */
3872
+ vendorProductId?: string | null;
3873
+ }
3874
+ declare enum SubjectType$1 {
3875
+ /** unknown subject type */
3876
+ UNKNOWN = "UNKNOWN",
3877
+ /** user subject type */
3878
+ USER = "USER",
3879
+ /** visitor subject type */
3880
+ VISITOR = "VISITOR",
3881
+ /** member subject type */
3882
+ MEMBER = "MEMBER",
3883
+ /** app subject type */
3884
+ APP = "APP"
3885
+ }
3886
+ interface HeadersEntryNonNullableFields$1 {
3887
+ key: string;
3888
+ value: string;
3889
+ }
3890
+ interface RawHttpResponseNonNullableFields$1 {
3891
+ body: Uint8Array;
3892
+ headers: HeadersEntryNonNullableFields$1[];
3893
+ }
3894
+ interface TokenInfoResponseNonNullableFields$1 {
3895
+ active: boolean;
3896
+ subjectType: SubjectType$1;
3897
+ subjectId: string;
3898
+ clientId: string;
3899
+ }
3900
+
3901
+ interface RawHttpResponse {
3902
+ body?: Uint8Array;
3903
+ statusCode?: number | null;
3904
+ headers?: HeadersEntry[];
3905
+ }
3906
+ interface HeadersEntry {
3907
+ key?: string;
3908
+ value?: string;
3909
+ }
3910
+ interface RawHttpRequest {
3911
+ body?: Uint8Array;
3912
+ pathParams?: PathParametersEntry[];
3913
+ queryParams?: QueryParametersEntry[];
3914
+ headers?: HeadersEntry[];
3915
+ method?: string;
3916
+ rawPath?: string;
3917
+ rawQuery?: string;
3918
+ }
3919
+ interface PathParametersEntry {
3920
+ key?: string;
3921
+ value?: string;
3922
+ }
3923
+ interface QueryParametersEntry {
3924
+ key?: string;
3925
+ value?: string;
3926
+ }
3927
+ interface TokenInfoResponse {
3928
+ active?: boolean;
3929
+ /** subject type. */
3930
+ subjectType?: SubjectType;
3931
+ /** subject id */
3932
+ subjectId?: string;
3933
+ /** Expiration time of the token */
3934
+ exp?: string | null;
3935
+ /** Issued time of the token */
3936
+ iat?: string | null;
3937
+ /** Client id */
3938
+ clientId?: string;
3939
+ /** Account id */
3940
+ accountId?: string | null;
3941
+ /** Site id */
3942
+ siteId?: string | null;
3943
+ /** Instance Id */
3944
+ instanceId?: string | null;
3945
+ /** Vendor Product Id */
3946
+ vendorProductId?: string | null;
3947
+ }
3948
+ declare enum SubjectType {
3949
+ /** unknown subject type */
3950
+ UNKNOWN = "UNKNOWN",
3951
+ /** user subject type */
3952
+ USER = "USER",
3953
+ /** visitor subject type */
3954
+ VISITOR = "VISITOR",
3955
+ /** member subject type */
3956
+ MEMBER = "MEMBER",
3957
+ /** app subject type */
3958
+ APP = "APP"
3959
+ }
3960
+ interface HeadersEntryNonNullableFields {
3961
+ key: string;
3962
+ value: string;
3963
+ }
3964
+ interface RawHttpResponseNonNullableFields {
3965
+ body: Uint8Array;
3966
+ headers: HeadersEntryNonNullableFields[];
3967
+ }
3968
+ interface TokenInfoResponseNonNullableFields {
3969
+ active: boolean;
3970
+ subjectType: SubjectType;
3971
+ subjectId: string;
3972
+ clientId: string;
3973
+ }
3974
+
3975
+ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3976
+ getUrl: (context: any) => string;
3977
+ httpMethod: K;
3978
+ path: string;
3979
+ pathParams: M;
3980
+ __requestType: T;
3981
+ __originalRequestType: S;
3982
+ __responseType: Q;
3983
+ __originalResponseType: R;
3984
+ };
3985
+ declare function token(): __PublicMethodMetaInfo$1<'POST', {}, RawHttpRequest, RawHttpRequest$1, RawHttpResponse & RawHttpResponseNonNullableFields, RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
3986
+ declare function tokenInfo(): __PublicMethodMetaInfo$1<'POST', {}, RawHttpRequest, RawHttpRequest$1, TokenInfoResponse & TokenInfoResponseNonNullableFields, TokenInfoResponse$1 & TokenInfoResponseNonNullableFields$1>;
3987
+
3988
+ declare const meta$1_token: typeof token;
3989
+ declare const meta$1_tokenInfo: typeof tokenInfo;
3990
+ declare namespace meta$1 {
3991
+ export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_token as token, meta$1_tokenInfo as tokenInfo };
3992
+ }
3993
+
3994
+ interface ChangeContributorRoleRequest$1 {
3995
+ /** Contributor's account ID. */
3996
+ accountId: string;
3997
+ /** New roles to assign to the contributor on the site. */
3998
+ newRoles: SiteRoleAssignment$1[];
3999
+ }
4000
+ interface SiteRoleAssignment$1 {
4001
+ /** Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles. */
4002
+ roleId?: string;
4003
+ /**
4004
+ * Assignment ID mapping the role to the contributor on the site.
4005
+ * @readonly
4006
+ */
4007
+ assignmentId?: string;
4008
+ }
4009
+ interface ChangeContributorRoleResponse$1 {
4010
+ /** New roles assigned to the contributor on the site. */
4011
+ newAssignedRoles?: SiteRoleAssignment$1[];
4012
+ }
4013
+ interface QuerySiteContributorsRequest$1 {
4014
+ filter?: QuerySiteContributorsFilter$1;
4015
+ }
4016
+ interface QuerySiteContributorsFilter$1 {
4017
+ /** Role IDs (referred to here as policy IDs) to return. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for available roles. */
4018
+ policyIds?: string[];
4019
+ }
4020
+ interface QuerySiteContributorsResponse$1 {
4021
+ /** List of site contributors. */
4022
+ contributors?: ContributorV2$1[];
4023
+ }
4024
+ interface ContributorV2$1 {
4025
+ /** Contributor's account ID. */
4026
+ accountId?: string | null;
4027
+ /** User ID of the owner of the account that the contributor has joined. */
4028
+ accountOwnerId?: string | null;
4029
+ }
4030
+ interface SiteRoleAssignmentNonNullableFields$1 {
4031
+ roleId: string;
4032
+ assignmentId: string;
4033
+ }
4034
+ interface ChangeContributorRoleResponseNonNullableFields$1 {
4035
+ newAssignedRoles: SiteRoleAssignmentNonNullableFields$1[];
4036
+ }
4037
+
4038
+ interface ChangeContributorRoleRequest {
4039
+ /** Contributor's account ID. */
4040
+ accountId: string;
4041
+ /** New roles to assign to the contributor on the site. */
4042
+ newRoles: SiteRoleAssignment[];
4043
+ }
4044
+ interface SiteRoleAssignment {
4045
+ /** Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles. */
4046
+ roleId?: string;
4047
+ /**
4048
+ * Assignment ID mapping the role to the contributor on the site.
4049
+ * @readonly
4050
+ */
4051
+ assignmentId?: string;
4052
+ }
4053
+ interface ChangeContributorRoleResponse {
4054
+ /** New roles assigned to the contributor on the site. */
4055
+ newAssignedRoles?: SiteRoleAssignment[];
4056
+ }
4057
+ interface QuerySiteContributorsRequest {
4058
+ filter?: QuerySiteContributorsFilter;
4059
+ }
4060
+ interface QuerySiteContributorsFilter {
4061
+ /** Role IDs (referred to here as policy IDs) to return. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for available roles. */
4062
+ policyIds?: string[];
4063
+ }
4064
+ interface QuerySiteContributorsResponse {
4065
+ /** List of site contributors. */
4066
+ contributors?: ContributorV2[];
4067
+ }
4068
+ interface ContributorV2 {
4069
+ /** Contributor's account ID. */
4070
+ accountId?: string | null;
4071
+ /** User ID of the owner of the account that the contributor has joined. */
4072
+ accountOwnerId?: string | null;
4073
+ }
4074
+ interface SiteRoleAssignmentNonNullableFields {
4075
+ roleId: string;
4076
+ assignmentId: string;
4077
+ }
4078
+ interface ChangeContributorRoleResponseNonNullableFields {
4079
+ newAssignedRoles: SiteRoleAssignmentNonNullableFields[];
4080
+ }
4081
+
4082
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4083
+ getUrl: (context: any) => string;
4084
+ httpMethod: K;
4085
+ path: string;
4086
+ pathParams: M;
4087
+ __requestType: T;
4088
+ __originalRequestType: S;
4089
+ __responseType: Q;
4090
+ __originalResponseType: R;
4091
+ };
4092
+ declare function changeRole(): __PublicMethodMetaInfo<'PUT', {}, ChangeContributorRoleRequest, ChangeContributorRoleRequest$1, ChangeContributorRoleResponse & ChangeContributorRoleResponseNonNullableFields, ChangeContributorRoleResponse$1 & ChangeContributorRoleResponseNonNullableFields$1>;
4093
+ declare function querySiteContributors(): __PublicMethodMetaInfo<'GET', {}, QuerySiteContributorsRequest, QuerySiteContributorsRequest$1, QuerySiteContributorsResponse, QuerySiteContributorsResponse$1>;
4094
+
4095
+ type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
4096
+ declare const meta_changeRole: typeof changeRole;
4097
+ declare const meta_querySiteContributors: typeof querySiteContributors;
4098
+ declare namespace meta {
4099
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_changeRole as changeRole, meta_querySiteContributors as querySiteContributors };
4100
+ }
4101
+
4102
+ export { meta$3 as accountInvite, meta$6 as authentication, meta$1 as oauth, meta$5 as recovery, meta as rolesManagement, meta$2 as siteInvite, meta$4 as verification };