@wix/auto_sdk_identity_authentication 1.0.5 → 1.0.6

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 (134) hide show
  1. package/build/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +174 -80
  2. package/build/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +174 -80
  3. package/build/index.d.mts +71 -0
  4. package/build/index.d.ts +71 -0
  5. package/build/index.js +859 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +816 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +174 -80
  10. package/build/internal/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +174 -80
  11. package/build/internal/index.d.mts +71 -0
  12. package/build/internal/index.d.ts +71 -0
  13. package/build/internal/index.js +859 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +816 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +600 -0
  18. package/build/internal/meta.d.ts +600 -0
  19. package/build/internal/meta.js +518 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +485 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +600 -0
  24. package/build/meta.d.ts +600 -0
  25. package/build/meta.js +518 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +485 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  40. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -27
  41. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  42. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  43. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -376
  44. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  45. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  46. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  47. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  48. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  49. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -62
  50. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  51. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -131
  52. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  53. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  54. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -466
  55. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  67. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  68. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  69. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  70. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -366
  71. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  72. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  73. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  74. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  75. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  76. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  77. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  78. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -128
  79. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  80. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  81. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -433
  82. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  93. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -27
  94. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  95. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  96. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -376
  97. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  98. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  99. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  100. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  101. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  102. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -62
  103. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  104. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -131
  105. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  106. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  107. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -466
  108. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  119. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  120. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  121. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  122. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -366
  123. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  124. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  125. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  126. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  127. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  128. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  129. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  130. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -128
  131. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  132. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  133. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -433
  134. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
@@ -1,895 +0,0 @@
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
- /**
718
- * TODO: is this a reasonable maxLength?
719
- * @maxLength 1000
720
- */
721
- stateToken?: string;
722
- factorType: FactorType;
723
- rememberThisDevice?: boolean;
724
- }
725
- /** @oneof */
726
- export interface VerifyRequestFactorDataOneOf {
727
- smsData?: SmsVerifyData;
728
- callData?: CallVerifyData;
729
- emailData?: ExternalEmailVerifyData;
730
- totpData?: TotpVerifyData;
731
- pushData?: PushVerifyData;
732
- }
733
- export interface SmsVerifyData {
734
- /**
735
- * @minLength 1
736
- * @maxLength 100
737
- */
738
- code?: string | null;
739
- }
740
- export interface CallVerifyData {
741
- /**
742
- * @minLength 1
743
- * @maxLength 100
744
- */
745
- code?: string | null;
746
- }
747
- export interface ExternalEmailVerifyData {
748
- /**
749
- * @minLength 1
750
- * @maxLength 100
751
- */
752
- code?: string | null;
753
- }
754
- export interface TotpVerifyData {
755
- /**
756
- * @minLength 1
757
- * @maxLength 100
758
- */
759
- code?: string | null;
760
- }
761
- export interface PushVerifyData {
762
- /** @maxLength 36 */
763
- transactionId?: string | null;
764
- }
765
- /**
766
- * Registers a new member.
767
- *
768
- * Typically, after a successful registration, you generate and use member tokens for the
769
- * registered member so that subsequent API calls are called as part of a member session.
770
- * 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).
771
- *
772
- * If the email used to register the member already exists as a contact email, the registering
773
- * member need to verify the email address using a code that is sent to the address.
774
- * @param loginId - Identifier of the registering member.
775
- * @public
776
- * @requiredField loginId
777
- * @fqn wix.iam.authentication.v1.AuthenticationService.RegisterV2
778
- */
779
- 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`>>;
780
- export interface RegisterV2Options {
781
- /** Password of the registering member. */
782
- password?: string;
783
- /** Profile information of registering member. */
784
- profile?: IdentityProfile;
785
- /** CAPTCHA tokens, when CAPTCHA setting is on. */
786
- captchaTokens?: CaptchaToken[];
787
- /** Additional data that's relevant for the flow. */
788
- clientMetaData?: Record<string, any> | null;
789
- }
790
- /**
791
- * Logs in an existing member.
792
- *
793
- * Typically, after a successful login, you generate and use member tokens for the
794
- * logged-in 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
- * @param loginId - Identifier of identity logging in.
797
- * @public
798
- * @requiredField loginId
799
- * @fqn wix.iam.authentication.v1.AuthenticationService.LoginV2
800
- */
801
- 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`>>;
802
- export interface LoginV2Options {
803
- /** Password of the identity logging in. */
804
- password?: string;
805
- /** CAPTCHA tokens, when CAPTCHA setting is on. */
806
- captchaTokens?: CaptchaToken[];
807
- /** Additional data that's relevant for the flow. */
808
- clientMetaData?: Record<string, any> | null;
809
- }
810
- /**
811
- * Changes the password of a logged in user.
812
- * @param newPassword - The new password to set for the logged in user
813
- * @public
814
- * @documentationMaturity preview
815
- * @requiredField newPassword
816
- * @permissionId IAM.CHANGE_PASSWORD
817
- * @fqn wix.iam.authentication.v1.AuthenticationService.ChangePassword
818
- */
819
- export declare function changePassword(newPassword: string): Promise<void>;
820
- /** @public
821
- * @documentationMaturity preview
822
- * @fqn wix.iam.authentication.v1.AuthenticationService.LoginCallback
823
- */
824
- export declare function loginCallback(options?: LoginCallbackOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
825
- export interface LoginCallbackOptions {
826
- /** state that that received on the redirect */
827
- state?: string;
828
- /** session token */
829
- sessionToken?: string;
830
- }
831
- /** @param loginId - the identifier of the identity
832
- * @public
833
- * @documentationMaturity preview
834
- * @requiredField loginId
835
- * @permissionId IAM.AUTHENTICAITON_SIGN_ON
836
- * @permissionScope Manage Members Authentication
837
- * @permissionScopeId SCOPE.DC-IDENTITY.MANAGE_AUTHENTICATION
838
- * @applicableIdentity APP
839
- * @fqn wix.iam.authentication.v1.AuthenticationService.SignOn
840
- */
841
- 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`>>;
842
- export interface SignOnOptions {
843
- /** profile of the identity */
844
- profile?: IdentityProfile;
845
- /** when true will mark the email of the identity as verified */
846
- verifyEmail?: boolean;
847
- /** when false will create a new contact instead of merging the existing contact into the identity */
848
- mergeExistingContact?: boolean;
849
- }
850
- /**
851
- * Logs out a member.
852
- * @public
853
- * @documentationMaturity preview
854
- * @fqn wix.iam.authentication.v1.AuthenticationService.Logout
855
- */
856
- export declare function logout(options?: LogoutOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
857
- export interface LogoutOptions {
858
- /**
859
- * redirect after logout
860
- * @format WEB_URL
861
- */
862
- postLogoutRedirectUri?: string | null;
863
- /**
864
- * caller identifier
865
- * @format GUID
866
- */
867
- clientId?: string | null;
868
- }
869
- /** @public
870
- * @documentationMaturity preview
871
- * @requiredField factorType
872
- * @fqn wix.iam.authentication.v1.AuthenticationService.Verify
873
- */
874
- 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`>>;
875
- export interface VerifyOptions extends VerifyOptionsFactorDataOneOf {
876
- /**
877
- * TODO: is this a reasonable maxLength?
878
- * @maxLength 1000
879
- */
880
- stateToken?: string;
881
- rememberThisDevice?: boolean;
882
- smsData?: SmsVerifyData;
883
- callData?: CallVerifyData;
884
- emailData?: ExternalEmailVerifyData;
885
- totpData?: TotpVerifyData;
886
- pushData?: PushVerifyData;
887
- }
888
- /** @oneof */
889
- export interface VerifyOptionsFactorDataOneOf {
890
- smsData?: SmsVerifyData;
891
- callData?: CallVerifyData;
892
- emailData?: ExternalEmailVerifyData;
893
- totpData?: TotpVerifyData;
894
- pushData?: PushVerifyData;
895
- }