@wix/auto_sdk_identity_authentication 1.0.12 → 1.0.13

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