@wix/auto_sdk_identity_authentication 1.0.7 → 1.0.9

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.
Files changed (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  11. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +27 -0
  12. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  13. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  14. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +376 -0
  15. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  16. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  17. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +161 -0
  18. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  19. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  20. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +62 -0
  21. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  22. package/build/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts → cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  23. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +131 -0
  24. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  25. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  26. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +468 -0
  27. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  38. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +11 -0
  39. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  40. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  41. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +366 -0
  42. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  43. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  44. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +128 -0
  45. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  46. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  47. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +39 -0
  48. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  49. package/build/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts → es/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  50. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +128 -0
  51. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  52. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  53. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +435 -0
  54. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  65. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +27 -0
  66. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  67. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  68. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +376 -0
  69. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  70. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  71. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +161 -0
  72. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  73. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  74. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +62 -0
  75. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  76. package/build/internal/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts → cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  77. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +131 -0
  78. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  79. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  80. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +468 -0
  81. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  92. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +11 -0
  93. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  94. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  95. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +366 -0
  96. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  97. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  98. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +128 -0
  99. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  100. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  101. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +39 -0
  102. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  103. package/build/internal/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts → es/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  104. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +128 -0
  105. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  106. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  107. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +435 -0
  108. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -71
  111. package/build/index.d.ts +0 -71
  112. package/build/index.js +0 -859
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -816
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -71
  117. package/build/internal/index.d.ts +0 -71
  118. package/build/internal/index.js +0 -859
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -816
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -600
  123. package/build/internal/meta.d.ts +0 -600
  124. package/build/internal/meta.js +0 -518
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -485
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -600
  129. package/build/meta.d.ts +0 -600
  130. package/build/meta.js +0 -518
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -485
  133. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,922 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ export interface Authentication {
3
+ }
4
+ export interface RegisterV2Request {
5
+ /** Identifier of the registering member. */
6
+ loginId: LoginId;
7
+ /** Password of the registering member. */
8
+ password?: string;
9
+ /** Profile information of registering member. */
10
+ profile?: IdentityProfile;
11
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
12
+ captchaTokens?: CaptchaToken[];
13
+ /** Additional data that's relevant for the flow. */
14
+ clientMetaData?: Record<string, any> | null;
15
+ }
16
+ export interface LoginId extends LoginIdTypeOneOf {
17
+ /**
18
+ * Login email address.
19
+ * @format EMAIL
20
+ */
21
+ email?: string;
22
+ }
23
+ /** @oneof */
24
+ export interface LoginIdTypeOneOf {
25
+ /**
26
+ * Login email address.
27
+ * @format EMAIL
28
+ */
29
+ email?: string;
30
+ }
31
+ export interface IdentityProfile {
32
+ /** Profile first name. */
33
+ firstName?: string | null;
34
+ /** Profile last name. */
35
+ lastName?: string | null;
36
+ /** Profile nickname. */
37
+ nickname?: string | null;
38
+ /** Profile picture URL. */
39
+ picture?: string | null;
40
+ /**
41
+ * Deprecated. Use `secondaryEmails` instead.
42
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
43
+ * @replacedBy secondary_emails
44
+ * @targetRemovalDate 2023-11-01
45
+ */
46
+ emails?: string[];
47
+ /**
48
+ * Deprecated. Use `phonesV2` instead.
49
+ * @deprecated Deprecated. Use `phonesV2` instead.
50
+ * @replacedBy phones_v2
51
+ * @targetRemovalDate 2023-11-01
52
+ */
53
+ phones?: string[];
54
+ /**
55
+ * List of profile labels.
56
+ * @maxSize 2000
57
+ */
58
+ labels?: string[];
59
+ /**
60
+ * Profile language.
61
+ * @format LANGUAGE
62
+ */
63
+ language?: string | null;
64
+ /** Profile privacy status. */
65
+ privacyStatus?: PrivacyStatus;
66
+ /**
67
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
68
+ * are used to store additional information about your site or app's contacts.
69
+ */
70
+ customFields?: CustomField[];
71
+ /** List of profile email addresses. */
72
+ secondaryEmails?: SecondaryEmail[];
73
+ /** List of profile phone numbers. */
74
+ phonesV2?: Phone[];
75
+ /** List of profile physical addresses. */
76
+ addresses?: AddressWrapper[];
77
+ /**
78
+ * Company name.
79
+ * @maxLength 1000
80
+ */
81
+ company?: string | null;
82
+ /**
83
+ * Position within company.
84
+ * @maxLength 1000
85
+ */
86
+ position?: string | null;
87
+ /**
88
+ * Profile birthdate in `YYYY-MM-DD` format.
89
+ * @format LOCAL_DATE
90
+ */
91
+ birthdate?: string | null;
92
+ /**
93
+ * Profile slug.
94
+ * @maxLength 255
95
+ */
96
+ slug?: string | null;
97
+ }
98
+ export declare enum PrivacyStatus {
99
+ /** No defined privacy status. */
100
+ UNDEFINED = "UNDEFINED",
101
+ /** Profile details, such as profile name and profile picture, are visible to other members. */
102
+ PUBLIC = "PUBLIC",
103
+ /** Profile details aren't visible to other members. */
104
+ PRIVATE = "PRIVATE"
105
+ }
106
+ export interface CustomField {
107
+ /**
108
+ * Custom field name. The name must match one of the key properties of the objects returned by
109
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
110
+ * with the `custom.` prefix removed.
111
+ */
112
+ name?: string;
113
+ /** Custom field value. */
114
+ value?: V1CustomValue;
115
+ }
116
+ export interface V1CustomValue extends V1CustomValueValueOneOf {
117
+ /** String value. */
118
+ strValue?: string;
119
+ /** Number value. */
120
+ numValue?: number;
121
+ /** Date value. */
122
+ dateValue?: Date | null;
123
+ /** Array of values. */
124
+ listValue?: V1ListValue;
125
+ /** Map of values. */
126
+ mapValue?: V1MapValue;
127
+ }
128
+ /** @oneof */
129
+ export interface V1CustomValueValueOneOf {
130
+ /** String value. */
131
+ strValue?: string;
132
+ /** Number value. */
133
+ numValue?: number;
134
+ /** Date value. */
135
+ dateValue?: Date | null;
136
+ /** Array of values. */
137
+ listValue?: V1ListValue;
138
+ /** Map of values. */
139
+ mapValue?: V1MapValue;
140
+ }
141
+ export interface V1ListValue {
142
+ /** Custom value. */
143
+ value?: V1CustomValue[];
144
+ }
145
+ export interface V1MapValue {
146
+ /** Mapped custom value. */
147
+ value?: Record<string, V1CustomValue>;
148
+ }
149
+ export interface SecondaryEmail {
150
+ /**
151
+ * Email address.
152
+ * @format EMAIL
153
+ */
154
+ email?: string;
155
+ /** Email tag. */
156
+ tag?: EmailTag;
157
+ }
158
+ export declare enum EmailTag {
159
+ UNTAGGED = "UNTAGGED",
160
+ MAIN = "MAIN",
161
+ HOME = "HOME",
162
+ WORK = "WORK"
163
+ }
164
+ export interface Phone {
165
+ /**
166
+ * Phone country code.
167
+ * @format COUNTRY
168
+ */
169
+ countryCode?: string | null;
170
+ /**
171
+ * Phone number.
172
+ * @format PHONE
173
+ */
174
+ phone?: string;
175
+ /** Phone tag. */
176
+ tag?: PhoneTag;
177
+ }
178
+ export declare enum PhoneTag {
179
+ UNTAGGED = "UNTAGGED",
180
+ MAIN = "MAIN",
181
+ HOME = "HOME",
182
+ MOBILE = "MOBILE",
183
+ WORK = "WORK",
184
+ FAX = "FAX"
185
+ }
186
+ export interface AddressWrapper {
187
+ /** Address. */
188
+ address?: Address;
189
+ /** Address tag. */
190
+ tag?: AddressTag;
191
+ }
192
+ /** Physical address */
193
+ export interface Address {
194
+ /**
195
+ * Country code.
196
+ * @format COUNTRY
197
+ */
198
+ country?: string | null;
199
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
200
+ subdivision?: string | null;
201
+ /** City name. */
202
+ city?: string | null;
203
+ /** Zip/postal code. */
204
+ postalCode?: string | null;
205
+ /** Main address line, usually street and number as free text. */
206
+ addressLine1?: string | null;
207
+ /** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */
208
+ addressLine2?: string | null;
209
+ }
210
+ export declare enum AddressTag {
211
+ UNTAGGED = "UNTAGGED",
212
+ HOME = "HOME",
213
+ WORK = "WORK",
214
+ BILLING = "BILLING",
215
+ SHIPPING = "SHIPPING"
216
+ }
217
+ export interface CaptchaToken extends CaptchaTokenTokenOneOf {
218
+ /** @maxLength 5000 */
219
+ Recaptcha?: string;
220
+ /** @maxLength 5000 */
221
+ InvisibleRecaptcha?: string;
222
+ /** @maxLength 5000 */
223
+ NoCaptcha?: string;
224
+ }
225
+ /** @oneof */
226
+ export interface CaptchaTokenTokenOneOf {
227
+ /** @maxLength 5000 */
228
+ Recaptcha?: string;
229
+ /** @maxLength 5000 */
230
+ InvisibleRecaptcha?: string;
231
+ /** @maxLength 5000 */
232
+ NoCaptcha?: string;
233
+ }
234
+ export interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
235
+ /** Current state of the login or registration process. */
236
+ state?: StateType;
237
+ /** Session token. If `state` is not `SUCCESS`, this field is undefined. */
238
+ sessionToken?: string | null;
239
+ /** Token that represents the current state of the login or registration process. */
240
+ stateToken?: string | null;
241
+ /** Identity of the current member. */
242
+ identity?: Identity;
243
+ /** Additional data relevant to the login or registration process. */
244
+ additionalData?: Record<string, CustomValue>;
245
+ }
246
+ /** @oneof */
247
+ export interface StateMachineResponseStateDataOneOf {
248
+ }
249
+ export declare enum StateType {
250
+ /** Initial unknown state. */
251
+ UNKNOWN_STATE = "UNKNOWN_STATE",
252
+ /** Login completed successfully. */
253
+ SUCCESS = "SUCCESS",
254
+ /** Indicates that the member needs the owner to approve their registration. */
255
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
256
+ /** Indicates that the member needs to verify their email. */
257
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
258
+ /** Indicates that the `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
259
+ STATUS_CHECK = "STATUS_CHECK"
260
+ }
261
+ export interface Identity {
262
+ /**
263
+ * Identity ID.
264
+ * @format GUID
265
+ */
266
+ _id?: string | null;
267
+ /**
268
+ * Revision number, which increments by 1 each time the identity is updated.
269
+ * To prevent conflicting changes,
270
+ * the current revision must be passed when updating the identity.
271
+ *
272
+ * Ignored when creating an identity.
273
+ */
274
+ revision?: string | null;
275
+ /**
276
+ * Date and time the identity was created.
277
+ * @readonly
278
+ */
279
+ _createdDate?: Date | null;
280
+ /**
281
+ * Date and time the identity was updated.
282
+ * @readonly
283
+ */
284
+ _updatedDate?: Date | null;
285
+ /** The identity configured connections to authenticate with. */
286
+ connections?: Connection[];
287
+ /** Identity profile. */
288
+ identityProfile?: IdentityProfile;
289
+ /**
290
+ * Additional information about the identity that can impact user access.
291
+ * This data cannot be set.
292
+ */
293
+ metadata?: Metadata;
294
+ /** Identity email address. */
295
+ email?: Email;
296
+ /** Identity's current status. */
297
+ status?: StatusV2;
298
+ /** Custom attributes. */
299
+ customAttributes?: Record<string, any> | null;
300
+ /**
301
+ * Identity verification factors.
302
+ * @maxSize 10
303
+ * @readonly
304
+ */
305
+ factors?: Factor[];
306
+ }
307
+ export interface Connection extends ConnectionTypeOneOf {
308
+ /** IDP connection. */
309
+ idpConnection?: IdpConnection;
310
+ /** Authenticator connection. */
311
+ authenticatorConnection?: AuthenticatorConnection;
312
+ }
313
+ /** @oneof */
314
+ export interface ConnectionTypeOneOf {
315
+ /** IDP connection. */
316
+ idpConnection?: IdpConnection;
317
+ /** Authenticator connection. */
318
+ authenticatorConnection?: AuthenticatorConnection;
319
+ }
320
+ export interface IdpConnection {
321
+ /**
322
+ * IDP connection ID.
323
+ * @format GUID
324
+ */
325
+ idpConnectionId?: string;
326
+ /** IDP user ID. */
327
+ idpUserId?: string;
328
+ }
329
+ export interface AuthenticatorConnection {
330
+ /**
331
+ * Authenticator connection ID.
332
+ * @format GUID
333
+ */
334
+ authenticatorConnectionId?: string;
335
+ /** Whether re-enrollment is required. */
336
+ reEnrollmentRequired?: boolean;
337
+ }
338
+ export interface Metadata {
339
+ /**
340
+ * General tags. For example, `"isOwner"`.
341
+ * @readonly
342
+ */
343
+ tags?: string[];
344
+ }
345
+ export interface Email {
346
+ /**
347
+ * Email address.
348
+ * @format EMAIL
349
+ */
350
+ address?: string;
351
+ /** Whether the email address is verified. */
352
+ isVerified?: boolean;
353
+ }
354
+ export interface StatusV2 {
355
+ name?: StatusName;
356
+ reasons?: Reason[];
357
+ }
358
+ export declare enum StatusName {
359
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
360
+ PENDING = "PENDING",
361
+ ACTIVE = "ACTIVE",
362
+ DELETED = "DELETED",
363
+ BLOCKED = "BLOCKED",
364
+ OFFLINE = "OFFLINE"
365
+ }
366
+ export declare enum Reason {
367
+ UNKNOWN_REASON = "UNKNOWN_REASON",
368
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
369
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
370
+ }
371
+ export interface Factor {
372
+ /**
373
+ * Factor ID.
374
+ * @format GUID
375
+ */
376
+ factorId?: string;
377
+ /** Factor type. */
378
+ type?: FactorType;
379
+ /** Factor status. */
380
+ status?: Status;
381
+ }
382
+ export declare enum FactorType {
383
+ /** Unknown factor type. */
384
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
385
+ /** Requires a password. */
386
+ PASSWORD = "PASSWORD",
387
+ /** Requires a code sent via SMS. */
388
+ SMS = "SMS",
389
+ /** Requires a code sent by phone call. */
390
+ CALL = "CALL",
391
+ /** Requires a code sent by email. */
392
+ EMAIL = "EMAIL",
393
+ /** Requires authentication via an authenticator app. */
394
+ TOTP = "TOTP",
395
+ /** Requires authentication via a push notification. */
396
+ PUSH = "PUSH",
397
+ /** Requires authentication via WebAuthn/passkey. */
398
+ WEBAUTHN = "WEBAUTHN"
399
+ }
400
+ export declare enum Status {
401
+ /** Factor requires activation. */
402
+ INACTIVE = "INACTIVE",
403
+ /** Factor is active and can be used for authentication. */
404
+ ACTIVE = "ACTIVE",
405
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
406
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
407
+ }
408
+ export interface CustomValue extends CustomValueValueOneOf {
409
+ /** String value. */
410
+ strValue?: string;
411
+ /** Number value. */
412
+ numValue?: number;
413
+ /** Date value. */
414
+ dateValue?: Date | null;
415
+ /** List value. */
416
+ listValue?: ListValue;
417
+ /** Map value. */
418
+ mapValue?: MapValue;
419
+ }
420
+ /** @oneof */
421
+ export interface CustomValueValueOneOf {
422
+ /** String value. */
423
+ strValue?: string;
424
+ /** Number value. */
425
+ numValue?: number;
426
+ /** Date value. */
427
+ dateValue?: Date | null;
428
+ /** List value. */
429
+ listValue?: ListValue;
430
+ /** Map value. */
431
+ mapValue?: MapValue;
432
+ }
433
+ export interface ListValue {
434
+ /** Custom value. */
435
+ value?: CustomValue[];
436
+ }
437
+ export interface MapValue {
438
+ /** Mapped custom value. */
439
+ value?: Record<string, CustomValue>;
440
+ }
441
+ export interface RequireMfaData {
442
+ /**
443
+ * The factors available for the user to perform the required MFA.
444
+ * @maxSize 100
445
+ */
446
+ availableFactors?: V1Factor[];
447
+ /** The reason the user is required to perform MFA. */
448
+ reason?: MfaReason;
449
+ }
450
+ export interface V1Factor {
451
+ /** Type of verification factor. */
452
+ factorType?: FactorType;
453
+ /** Availability status for second factor */
454
+ factorStatus?: FactorStatus;
455
+ }
456
+ export declare enum FactorStatus {
457
+ UNKNOWN_FACTOR_STATUS = "UNKNOWN_FACTOR_STATUS",
458
+ ENABLED = "ENABLED",
459
+ REQUIRE_ACTIVATION = "REQUIRE_ACTIVATION",
460
+ REQUIRE_REENROLL = "REQUIRE_REENROLL",
461
+ ENABLED_BY_RULE = "ENABLED_BY_RULE",
462
+ DISABLED_BY_RULE = "DISABLED_BY_RULE"
463
+ }
464
+ export declare enum MfaReason {
465
+ UNKNOWN_MFA_REASON = "UNKNOWN_MFA_REASON",
466
+ /** Mfa is required due to user settings */
467
+ USER_SETTINGS = "USER_SETTINGS",
468
+ /** Mfa is required due to high risk login */
469
+ HIGH_RISK_LOGIN = "HIGH_RISK_LOGIN"
470
+ }
471
+ export interface MfaChallengeData {
472
+ /** Type of verifation factor. */
473
+ factorType?: FactorType;
474
+ verificationChallengeData?: VerificationChallenge;
475
+ /**
476
+ * Factors types the member can choose from to verify themselves.
477
+ * @maxSize 100
478
+ */
479
+ availableFactors?: V1Factor[];
480
+ /** The reason the user is required to perform MFA. */
481
+ reason?: MfaReason;
482
+ }
483
+ export interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
484
+ pushData?: PushChallengeData;
485
+ webauthnData?: WebAuthnChallengeData;
486
+ /** @maxLength 200 */
487
+ hint?: string | null;
488
+ }
489
+ /** @oneof */
490
+ export interface VerificationChallengeFactorChallengeDataOneOf {
491
+ pushData?: PushChallengeData;
492
+ webauthnData?: WebAuthnChallengeData;
493
+ }
494
+ export interface PushChallengeData {
495
+ /**
496
+ * This should be tied to a specific push notification.
497
+ * It will be sent in subsequent requests to verify the factor.
498
+ * @maxLength 36
499
+ */
500
+ transactionId?: string;
501
+ }
502
+ export interface WebAuthnChallengeData {
503
+ /**
504
+ * A unique identifier for this challenge that will be used to correlate
505
+ * the authentication response with this challenge.
506
+ * This should be a cryptographically random GUID to prevent guessing attacks.
507
+ * @format GUID
508
+ */
509
+ challengeId?: string;
510
+ /**
511
+ * The challenge that will be signed by the authenticator during the WebAuthn authentication ceremony.
512
+ * This should be a cryptographically secure random value with at least 16 bytes of entropy.
513
+ * The value is used to prevent replay attacks and MUST be randomly generated by the implementer.
514
+ */
515
+ challenge?: Uint8Array;
516
+ /**
517
+ * The timeout in milliseconds for the WebAuthn authentication ceremony.
518
+ * After this time, the challenge will be considered expired and the authentication will need to be restarted.
519
+ * This is optional and may be overridden by the client if provided.
520
+ * The WebAuthn spec recommends a timeout of at least 1 minute (60000ms).
521
+ */
522
+ timeoutMs?: number | null;
523
+ /**
524
+ * Optional list of credentials that are acceptable for this authentication ceremony.
525
+ * If empty, all credentials associated with the user will be considered.
526
+ * @maxSize 10
527
+ */
528
+ allowCredentials?: PublicKeyCredentialDescriptor[];
529
+ /** Specifies the requirement for user verification during the authentication ceremony. */
530
+ userVerification?: UserVerificationRequirement;
531
+ /**
532
+ * Optional hints to guide the client UI
533
+ * Examples include "security-key" to emphasize external authenticators
534
+ * or "client-device" to emphasize built-in authenticators
535
+ * @maxLength 50
536
+ * @maxSize 10
537
+ */
538
+ hints?: string[];
539
+ /**
540
+ * Optional extensions for the authentication ceremony
541
+ * Provides additional parameters for specialized WebAuthn functionality
542
+ */
543
+ extensions?: AuthenticationExtensionInputs;
544
+ }
545
+ export interface PublicKeyCredentialDescriptor {
546
+ /** The credential ID */
547
+ _id?: Uint8Array;
548
+ /**
549
+ * An optional hint as to the transports used by the credential
550
+ * Examples include "usb", "nfc", "ble", "internal", "hybrid"
551
+ * @maxLength 50
552
+ * @maxSize 10
553
+ */
554
+ transports?: string[];
555
+ }
556
+ export declare enum UserVerificationRequirement {
557
+ /** Default unspecified value */
558
+ USER_VERIFICATION_UNSPECIFIED = "USER_VERIFICATION_UNSPECIFIED",
559
+ /**
560
+ * The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
561
+ * set
562
+ */
563
+ USER_VERIFICATION_REQUIRED = "USER_VERIFICATION_REQUIRED",
564
+ /** The Relying Party prefers user verification but will not fail the operation if unavailable */
565
+ USER_VERIFICATION_PREFERRED = "USER_VERIFICATION_PREFERRED",
566
+ /** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
567
+ USER_VERIFICATION_DISCOURAGED = "USER_VERIFICATION_DISCOURAGED"
568
+ }
569
+ export interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
570
+ /** Read existing large blob data from the authenticator */
571
+ largeBlobRead?: boolean;
572
+ /** Write data to the authenticator's large blob storage */
573
+ largeBlobWrite?: Uint8Array;
574
+ /**
575
+ * FIDO AppID Extension (appid)
576
+ * An AppID that was used for previously registered U2F authenticators
577
+ * This makes already-registered U2F credentials forward-compatible with the WebAuthn API
578
+ * @maxLength 256
579
+ */
580
+ appid?: string;
581
+ /**
582
+ * User Verification Method Extension (uvm)
583
+ * Requests the authenticator to report which verification methods were used
584
+ * Examples include fingerprint, PIN, or facial recognition
585
+ */
586
+ uvm?: boolean;
587
+ }
588
+ /** @oneof */
589
+ export interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
590
+ /** Read existing large blob data from the authenticator */
591
+ largeBlobRead?: boolean;
592
+ /** Write data to the authenticator's large blob storage */
593
+ largeBlobWrite?: Uint8Array;
594
+ }
595
+ export interface LoginV2Request {
596
+ /** Identifier of identity logging in. */
597
+ loginId: LoginId;
598
+ /** Password of the identity logging in. */
599
+ password?: string;
600
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
601
+ captchaTokens?: CaptchaToken[];
602
+ /** Additional data that's relevant for the flow. */
603
+ clientMetaData?: Record<string, any> | null;
604
+ }
605
+ export interface ChangePasswordRequest {
606
+ /** The new password to set for the logged in user */
607
+ newPassword: string;
608
+ }
609
+ export interface ChangePasswordResponse {
610
+ }
611
+ export interface LoginWithIdpConnectionRequest {
612
+ /**
613
+ * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData
614
+ * @format GUID
615
+ */
616
+ idpConnectionId?: string;
617
+ /**
618
+ * The id of the tenant the caller wants to login into
619
+ * @format GUID
620
+ */
621
+ tenantId?: string;
622
+ /** The type of the tenant the caller wants to login into */
623
+ tenantType?: TenantType;
624
+ customPayload?: Record<string, string>;
625
+ /**
626
+ * This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
627
+ * The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
628
+ * Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
629
+ */
630
+ sessionId?: string;
631
+ encryptionKey?: string;
632
+ visitorId?: string | null;
633
+ bsi?: string | null;
634
+ }
635
+ export declare enum TenantType {
636
+ UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
637
+ ACCOUNT = "ACCOUNT",
638
+ SITE = "SITE",
639
+ ROOT = "ROOT"
640
+ }
641
+ export interface RawHttpResponse {
642
+ body?: Uint8Array;
643
+ statusCode?: number | null;
644
+ headers?: HeadersEntry[];
645
+ }
646
+ export interface HeadersEntry {
647
+ key?: string;
648
+ value?: string;
649
+ }
650
+ export interface RawHttpRequest {
651
+ body?: Uint8Array;
652
+ pathParams?: PathParametersEntry[];
653
+ queryParams?: QueryParametersEntry[];
654
+ headers?: HeadersEntry[];
655
+ method?: string;
656
+ rawPath?: string;
657
+ rawQuery?: string;
658
+ }
659
+ export interface PathParametersEntry {
660
+ key?: string;
661
+ value?: string;
662
+ }
663
+ export interface QueryParametersEntry {
664
+ key?: string;
665
+ value?: string;
666
+ }
667
+ export interface LoginCallbackRequest {
668
+ /** state that that received on the redirect */
669
+ state?: string;
670
+ /** session token */
671
+ sessionToken?: string;
672
+ }
673
+ export interface LoginWithIdpConnectionTokenParamsRequest {
674
+ /**
675
+ * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData)
676
+ * @format GUID
677
+ */
678
+ idpConnectionId?: string;
679
+ /** A set of fields that are required for the connection to be able to identify and authenticate the user */
680
+ tokenParams?: Record<string, string>;
681
+ }
682
+ export interface SignOnRequest {
683
+ /** the identifier of the identity */
684
+ loginId: LoginId;
685
+ /** profile of the identity */
686
+ profile?: IdentityProfile;
687
+ /** when true will mark the email of the identity as verified */
688
+ verifyEmail?: boolean;
689
+ /** when false will create a new contact instead of merging the existing contact into the identity */
690
+ mergeExistingContact?: boolean;
691
+ }
692
+ export interface SignOnResponse {
693
+ /** session token for the requested identity */
694
+ sessionToken?: string;
695
+ /** The Identity of the provided login_id */
696
+ identity?: Identity;
697
+ }
698
+ /** logout request payload */
699
+ export interface LogoutRequest {
700
+ /**
701
+ * redirect after logout
702
+ * @format WEB_URL
703
+ */
704
+ postLogoutRedirectUri?: string | null;
705
+ /**
706
+ * caller identifier
707
+ * @format GUID
708
+ */
709
+ clientId?: string | null;
710
+ }
711
+ export interface VerifyRequest extends VerifyRequestFactorDataOneOf {
712
+ smsData?: SmsVerifyData;
713
+ callData?: CallVerifyData;
714
+ emailData?: ExternalEmailVerifyData;
715
+ totpData?: TotpVerifyData;
716
+ pushData?: PushVerifyData;
717
+ webauthnData?: WebAuthnVerifyData;
718
+ /**
719
+ * TODO: is this a reasonable maxLength?
720
+ * @maxLength 1000
721
+ */
722
+ stateToken?: string;
723
+ factorType: FactorType;
724
+ rememberThisDevice?: boolean;
725
+ }
726
+ /** @oneof */
727
+ export interface VerifyRequestFactorDataOneOf {
728
+ smsData?: SmsVerifyData;
729
+ callData?: CallVerifyData;
730
+ emailData?: ExternalEmailVerifyData;
731
+ totpData?: TotpVerifyData;
732
+ pushData?: PushVerifyData;
733
+ webauthnData?: WebAuthnVerifyData;
734
+ }
735
+ export interface SmsVerifyData {
736
+ /**
737
+ * @minLength 1
738
+ * @maxLength 100
739
+ */
740
+ code?: string | null;
741
+ }
742
+ export interface CallVerifyData {
743
+ /**
744
+ * @minLength 1
745
+ * @maxLength 100
746
+ */
747
+ code?: string | null;
748
+ }
749
+ export interface ExternalEmailVerifyData {
750
+ /**
751
+ * @minLength 1
752
+ * @maxLength 100
753
+ */
754
+ code?: string | null;
755
+ }
756
+ export interface TotpVerifyData {
757
+ /**
758
+ * @minLength 1
759
+ * @maxLength 100
760
+ */
761
+ code?: string | null;
762
+ }
763
+ export interface PushVerifyData {
764
+ /** @maxLength 36 */
765
+ transactionId?: string | null;
766
+ }
767
+ export interface WebAuthnVerifyData {
768
+ /**
769
+ * The challenge_id from the WebAuthnChallengeData that was returned in the previous
770
+ * verification response. This will always be present when completing the WebAuthn authentication
771
+ * ceremony with the credential data from the client.
772
+ * @format GUID
773
+ */
774
+ challengeId?: string | null;
775
+ /**
776
+ * If this field is present, this is a request to complete the WebAuthn authentication
777
+ * with the credential data from the client.
778
+ *
779
+ * The credential contains a JSON string representation of a WebAuthn PublicKeyCredential
780
+ * object returned by the browser during authentication, serialized as per the WebAuthn specification.
781
+ * The SPI implementation should use this to verify the authentication assertion.
782
+ *
783
+ * Any standards-compliant WebAuthn server library should be able to process this serialized format.
784
+ * For details on the serialization format, refer to the W3C WebAuthn specification:
785
+ * https://www.w3.org/TR/webauthn-3/#dom-publickeycredential-tojson
786
+ * @maxLength 3000
787
+ */
788
+ credential?: string | null;
789
+ }
790
+ /**
791
+ * Registers a new member.
792
+ *
793
+ * Typically, after a successful registration, you generate and use member tokens for the
794
+ * registered member so that subsequent API calls are called as part of a member session.
795
+ * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).
796
+ *
797
+ * If the email used to register the member already exists as a contact email, the registering
798
+ * member need to verify the email address using a code that is sent to the address.
799
+ * @param loginId - Identifier of the registering member.
800
+ * @public
801
+ * @requiredField loginId
802
+ * @fqn wix.iam.authentication.v1.AuthenticationService.RegisterV2
803
+ */
804
+ export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
805
+ export interface RegisterV2Options {
806
+ /** Password of the registering member. */
807
+ password?: string;
808
+ /** Profile information of registering member. */
809
+ profile?: IdentityProfile;
810
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
811
+ captchaTokens?: CaptchaToken[];
812
+ /** Additional data that's relevant for the flow. */
813
+ clientMetaData?: Record<string, any> | null;
814
+ }
815
+ /**
816
+ * Logs in an existing member.
817
+ *
818
+ * Typically, after a successful login, you generate and use member tokens for the
819
+ * logged-in member so that subsequent API calls are called as part of a member session.
820
+ * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).
821
+ * @param loginId - Identifier of identity logging in.
822
+ * @public
823
+ * @requiredField loginId
824
+ * @fqn wix.iam.authentication.v1.AuthenticationService.LoginV2
825
+ */
826
+ export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
827
+ export interface LoginV2Options {
828
+ /** Password of the identity logging in. */
829
+ password?: string;
830
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
831
+ captchaTokens?: CaptchaToken[];
832
+ /** Additional data that's relevant for the flow. */
833
+ clientMetaData?: Record<string, any> | null;
834
+ }
835
+ /**
836
+ * Changes the password of a logged in user.
837
+ * @param newPassword - The new password to set for the logged in user
838
+ * @public
839
+ * @documentationMaturity preview
840
+ * @requiredField newPassword
841
+ * @permissionId IAM.CHANGE_PASSWORD
842
+ * @fqn wix.iam.authentication.v1.AuthenticationService.ChangePassword
843
+ */
844
+ export declare function changePassword(newPassword: string): Promise<void>;
845
+ /** @public
846
+ * @documentationMaturity preview
847
+ * @fqn wix.iam.authentication.v1.AuthenticationService.LoginCallback
848
+ */
849
+ export declare function loginCallback(options?: LoginCallbackOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
850
+ export interface LoginCallbackOptions {
851
+ /** state that that received on the redirect */
852
+ state?: string;
853
+ /** session token */
854
+ sessionToken?: string;
855
+ }
856
+ /** @param loginId - the identifier of the identity
857
+ * @public
858
+ * @documentationMaturity preview
859
+ * @requiredField loginId
860
+ * @permissionId IAM.AUTHENTICAITON_SIGN_ON
861
+ * @permissionScope Manage Members Authentication
862
+ * @permissionScopeId SCOPE.DC-IDENTITY.MANAGE_AUTHENTICATION
863
+ * @applicableIdentity APP
864
+ * @fqn wix.iam.authentication.v1.AuthenticationService.SignOn
865
+ */
866
+ export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<NonNullablePaths<SignOnResponse, `sessionToken` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
867
+ export interface SignOnOptions {
868
+ /** profile of the identity */
869
+ profile?: IdentityProfile;
870
+ /** when true will mark the email of the identity as verified */
871
+ verifyEmail?: boolean;
872
+ /** when false will create a new contact instead of merging the existing contact into the identity */
873
+ mergeExistingContact?: boolean;
874
+ }
875
+ /**
876
+ * Logs out a member.
877
+ * @public
878
+ * @documentationMaturity preview
879
+ * @fqn wix.iam.authentication.v1.AuthenticationService.Logout
880
+ */
881
+ export declare function logout(options?: LogoutOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
882
+ export interface LogoutOptions {
883
+ /**
884
+ * redirect after logout
885
+ * @format WEB_URL
886
+ */
887
+ postLogoutRedirectUri?: string | null;
888
+ /**
889
+ * caller identifier
890
+ * @format GUID
891
+ */
892
+ clientId?: string | null;
893
+ }
894
+ /** @public
895
+ * @documentationMaturity preview
896
+ * @requiredField factorType
897
+ * @fqn wix.iam.authentication.v1.AuthenticationService.Verify
898
+ */
899
+ export declare function verify(factorType: FactorType, options?: VerifyOptions): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
900
+ export interface VerifyOptions extends VerifyOptionsFactorDataOneOf {
901
+ /**
902
+ * TODO: is this a reasonable maxLength?
903
+ * @maxLength 1000
904
+ */
905
+ stateToken?: string;
906
+ rememberThisDevice?: boolean;
907
+ smsData?: SmsVerifyData;
908
+ callData?: CallVerifyData;
909
+ emailData?: ExternalEmailVerifyData;
910
+ totpData?: TotpVerifyData;
911
+ pushData?: PushVerifyData;
912
+ webauthnData?: WebAuthnVerifyData;
913
+ }
914
+ /** @oneof */
915
+ export interface VerifyOptionsFactorDataOneOf {
916
+ smsData?: SmsVerifyData;
917
+ callData?: CallVerifyData;
918
+ emailData?: ExternalEmailVerifyData;
919
+ totpData?: TotpVerifyData;
920
+ pushData?: PushVerifyData;
921
+ webauthnData?: WebAuthnVerifyData;
922
+ }