@wix/auto_sdk_identity_authentication 1.0.3 → 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 (130) hide show
  1. package/build/{internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +203 -251
  2. package/build/{cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +203 -251
  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/{es/src/iam-authentication-v1-authentication-authentication.universal.d.ts → internal/iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +203 -251
  10. package/build/internal/{es/src/iam-authentication-v1-authentication-authentication.universal.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +203 -251
  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/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → internal/meta.d.mts} +107 -281
  18. package/build/internal/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → meta.d.ts} +107 -281
  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/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → meta.d.mts} +107 -281
  24. package/build/{internal/es/src/iam-authentication-v1-authentication-authentication.types.d.ts → meta.d.ts} +107 -281
  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 -26
  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 -334
  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 -61
  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 -115
  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.js +0 -450
  54. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  66. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  67. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  68. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  69. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -324
  70. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  71. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  72. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  73. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  74. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  75. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  76. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  77. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -112
  78. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  79. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -417
  80. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  91. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -26
  92. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  93. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  94. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -334
  95. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  96. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  97. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  98. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  99. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  100. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -61
  101. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  102. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -115
  103. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  104. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -450
  105. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  116. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  117. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  118. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  119. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -324
  120. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  121. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  122. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  123. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  124. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  125. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  126. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  127. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -112
  128. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  129. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -417
  130. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
@@ -1,6 +1,6 @@
1
- export interface Authentication {
2
- }
3
- export interface RegisterV2Request {
1
+ import { n as RegisterV2Request$1, S as StateMachineResponse$1, a8 as LoginV2Request$1, a9 as ChangePasswordRequest$1, aa as ChangePasswordResponse$1, ag as LoginCallbackRequest$1, c as RawHttpResponse$1, ai as SignOnRequest$1, e as SignOnResponse$1, aj as LogoutRequest$1, ak as VerifyRequest$1 } from './iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.js';
2
+
3
+ interface RegisterV2Request {
4
4
  /** Identifier of the registering member. */
5
5
  loginId: LoginId;
6
6
  /** Password of the registering member. */
@@ -12,7 +12,7 @@ export interface RegisterV2Request {
12
12
  /** Additional data that's relevant for the flow. */
13
13
  clientMetaData?: Record<string, any> | null;
14
14
  }
15
- export interface LoginId extends LoginIdTypeOneOf {
15
+ interface LoginId extends LoginIdTypeOneOf {
16
16
  /**
17
17
  * Login email address.
18
18
  * @format EMAIL
@@ -20,14 +20,14 @@ export interface LoginId extends LoginIdTypeOneOf {
20
20
  email?: string;
21
21
  }
22
22
  /** @oneof */
23
- export interface LoginIdTypeOneOf {
23
+ interface LoginIdTypeOneOf {
24
24
  /**
25
25
  * Login email address.
26
26
  * @format EMAIL
27
27
  */
28
28
  email?: string;
29
29
  }
30
- export interface IdentityProfile {
30
+ interface IdentityProfile {
31
31
  /** Profile first name. */
32
32
  firstName?: string | null;
33
33
  /** Profile last name. */
@@ -94,7 +94,7 @@ export interface IdentityProfile {
94
94
  */
95
95
  slug?: string | null;
96
96
  }
97
- export declare enum PrivacyStatus {
97
+ declare enum PrivacyStatus {
98
98
  /** No defined privacy status. */
99
99
  UNDEFINED = "UNDEFINED",
100
100
  /** Profile details, such as profile name and profile picture, are visible to other members. */
@@ -102,7 +102,7 @@ export declare enum PrivacyStatus {
102
102
  /** Profile details aren't visible to other members. */
103
103
  PRIVATE = "PRIVATE"
104
104
  }
105
- export interface CustomField {
105
+ interface CustomField {
106
106
  /**
107
107
  * Custom field name. The name must match one of the key properties of the objects returned by
108
108
  * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
@@ -112,7 +112,7 @@ export interface CustomField {
112
112
  /** Custom field value. */
113
113
  value?: V1CustomValue;
114
114
  }
115
- export interface V1CustomValue extends V1CustomValueValueOneOf {
115
+ interface V1CustomValue extends V1CustomValueValueOneOf {
116
116
  /** String value. */
117
117
  strValue?: string;
118
118
  /** Number value. */
@@ -125,7 +125,7 @@ export interface V1CustomValue extends V1CustomValueValueOneOf {
125
125
  mapValue?: V1MapValue;
126
126
  }
127
127
  /** @oneof */
128
- export interface V1CustomValueValueOneOf {
128
+ interface V1CustomValueValueOneOf {
129
129
  /** String value. */
130
130
  strValue?: string;
131
131
  /** Number value. */
@@ -137,15 +137,15 @@ export interface V1CustomValueValueOneOf {
137
137
  /** Map of values. */
138
138
  mapValue?: V1MapValue;
139
139
  }
140
- export interface V1ListValue {
140
+ interface V1ListValue {
141
141
  /** Custom value. */
142
142
  value?: V1CustomValue[];
143
143
  }
144
- export interface V1MapValue {
144
+ interface V1MapValue {
145
145
  /** Mapped custom value. */
146
146
  value?: Record<string, V1CustomValue>;
147
147
  }
148
- export interface SecondaryEmail {
148
+ interface SecondaryEmail {
149
149
  /**
150
150
  * Email address.
151
151
  * @format EMAIL
@@ -154,13 +154,13 @@ export interface SecondaryEmail {
154
154
  /** Email tag. */
155
155
  tag?: EmailTag;
156
156
  }
157
- export declare enum EmailTag {
157
+ declare enum EmailTag {
158
158
  UNTAGGED = "UNTAGGED",
159
159
  MAIN = "MAIN",
160
160
  HOME = "HOME",
161
161
  WORK = "WORK"
162
162
  }
163
- export interface Phone {
163
+ interface Phone {
164
164
  /**
165
165
  * Phone country code.
166
166
  * @format COUNTRY
@@ -174,7 +174,7 @@ export interface Phone {
174
174
  /** Phone tag. */
175
175
  tag?: PhoneTag;
176
176
  }
177
- export declare enum PhoneTag {
177
+ declare enum PhoneTag {
178
178
  UNTAGGED = "UNTAGGED",
179
179
  MAIN = "MAIN",
180
180
  HOME = "HOME",
@@ -182,14 +182,14 @@ export declare enum PhoneTag {
182
182
  WORK = "WORK",
183
183
  FAX = "FAX"
184
184
  }
185
- export interface AddressWrapper {
185
+ interface AddressWrapper {
186
186
  /** Address. */
187
187
  address?: Address;
188
188
  /** Address tag. */
189
189
  tag?: AddressTag;
190
190
  }
191
191
  /** Physical address */
192
- export interface Address {
192
+ interface Address {
193
193
  /**
194
194
  * Country code.
195
195
  * @format COUNTRY
@@ -206,14 +206,14 @@ export interface Address {
206
206
  /** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */
207
207
  addressLine2?: string | null;
208
208
  }
209
- export declare enum AddressTag {
209
+ declare enum AddressTag {
210
210
  UNTAGGED = "UNTAGGED",
211
211
  HOME = "HOME",
212
212
  WORK = "WORK",
213
213
  BILLING = "BILLING",
214
214
  SHIPPING = "SHIPPING"
215
215
  }
216
- export interface CaptchaToken extends CaptchaTokenTokenOneOf {
216
+ interface CaptchaToken extends CaptchaTokenTokenOneOf {
217
217
  /** @maxLength 5000 */
218
218
  Recaptcha?: string;
219
219
  /** @maxLength 5000 */
@@ -222,7 +222,7 @@ export interface CaptchaToken extends CaptchaTokenTokenOneOf {
222
222
  NoCaptcha?: string;
223
223
  }
224
224
  /** @oneof */
225
- export interface CaptchaTokenTokenOneOf {
225
+ interface CaptchaTokenTokenOneOf {
226
226
  /** @maxLength 5000 */
227
227
  Recaptcha?: string;
228
228
  /** @maxLength 5000 */
@@ -230,7 +230,7 @@ export interface CaptchaTokenTokenOneOf {
230
230
  /** @maxLength 5000 */
231
231
  NoCaptcha?: string;
232
232
  }
233
- export interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
233
+ interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
234
234
  /** Current state of the login or registration process. */
235
235
  state?: StateType;
236
236
  /** Session token. If `state` is not `SUCCESS`, this field is undefined. */
@@ -243,9 +243,9 @@ export interface StateMachineResponse extends StateMachineResponseStateDataOneOf
243
243
  additionalData?: Record<string, CustomValue>;
244
244
  }
245
245
  /** @oneof */
246
- export interface StateMachineResponseStateDataOneOf {
246
+ interface StateMachineResponseStateDataOneOf {
247
247
  }
248
- export declare enum StateType {
248
+ declare enum StateType {
249
249
  /** Initial unknown state. */
250
250
  UNKNOWN_STATE = "UNKNOWN_STATE",
251
251
  /** Login completed successfully. */
@@ -257,7 +257,7 @@ export declare enum StateType {
257
257
  /** Indicates that the `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
258
258
  STATUS_CHECK = "STATUS_CHECK"
259
259
  }
260
- export interface Identity {
260
+ interface Identity {
261
261
  /**
262
262
  * Identity ID.
263
263
  * @format GUID
@@ -303,20 +303,20 @@ export interface Identity {
303
303
  */
304
304
  factors?: Factor[];
305
305
  }
306
- export interface Connection extends ConnectionTypeOneOf {
306
+ interface Connection extends ConnectionTypeOneOf {
307
307
  /** IDP connection. */
308
308
  idpConnection?: IdpConnection;
309
309
  /** Authenticator connection. */
310
310
  authenticatorConnection?: AuthenticatorConnection;
311
311
  }
312
312
  /** @oneof */
313
- export interface ConnectionTypeOneOf {
313
+ interface ConnectionTypeOneOf {
314
314
  /** IDP connection. */
315
315
  idpConnection?: IdpConnection;
316
316
  /** Authenticator connection. */
317
317
  authenticatorConnection?: AuthenticatorConnection;
318
318
  }
319
- export interface IdpConnection {
319
+ interface IdpConnection {
320
320
  /**
321
321
  * IDP connection ID.
322
322
  * @format GUID
@@ -325,7 +325,7 @@ export interface IdpConnection {
325
325
  /** IDP user ID. */
326
326
  idpUserId?: string;
327
327
  }
328
- export interface AuthenticatorConnection {
328
+ interface AuthenticatorConnection {
329
329
  /**
330
330
  * Authenticator connection ID.
331
331
  * @format GUID
@@ -334,14 +334,14 @@ export interface AuthenticatorConnection {
334
334
  /** Whether re-enrollment is required. */
335
335
  reEnrollmentRequired?: boolean;
336
336
  }
337
- export interface Metadata {
337
+ interface Metadata {
338
338
  /**
339
339
  * General tags. For example, `"isOwner"`.
340
340
  * @readonly
341
341
  */
342
342
  tags?: string[];
343
343
  }
344
- export interface Email {
344
+ interface Email {
345
345
  /**
346
346
  * Email address.
347
347
  * @format EMAIL
@@ -350,11 +350,11 @@ export interface Email {
350
350
  /** Whether the email address is verified. */
351
351
  isVerified?: boolean;
352
352
  }
353
- export interface StatusV2 {
353
+ interface StatusV2 {
354
354
  name?: StatusName;
355
355
  reasons?: Reason[];
356
356
  }
357
- export declare enum StatusName {
357
+ declare enum StatusName {
358
358
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
359
359
  PENDING = "PENDING",
360
360
  ACTIVE = "ACTIVE",
@@ -362,12 +362,12 @@ export declare enum StatusName {
362
362
  BLOCKED = "BLOCKED",
363
363
  OFFLINE = "OFFLINE"
364
364
  }
365
- export declare enum Reason {
365
+ declare enum Reason {
366
366
  UNKNOWN_REASON = "UNKNOWN_REASON",
367
367
  PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
368
368
  PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
369
369
  }
370
- export interface Factor {
370
+ interface Factor {
371
371
  /**
372
372
  * Factor ID.
373
373
  * @format GUID
@@ -378,7 +378,7 @@ export interface Factor {
378
378
  /** Factor status. */
379
379
  status?: Status;
380
380
  }
381
- export declare enum FactorType {
381
+ declare enum FactorType {
382
382
  /** Unknown factor type. */
383
383
  UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
384
384
  /** Requires a password. */
@@ -392,9 +392,11 @@ export declare enum FactorType {
392
392
  /** Requires authentication via an authenticator app. */
393
393
  TOTP = "TOTP",
394
394
  /** Requires authentication via a push notification. */
395
- PUSH = "PUSH"
395
+ PUSH = "PUSH",
396
+ /** Requires authentication via WebAuthn/passkey. */
397
+ WEBAUTHN = "WEBAUTHN"
396
398
  }
397
- export declare enum Status {
399
+ declare enum Status {
398
400
  /** Factor requires activation. */
399
401
  INACTIVE = "INACTIVE",
400
402
  /** Factor is active and can be used for authentication. */
@@ -402,7 +404,7 @@ export declare enum Status {
402
404
  /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
403
405
  REQUIRE_REENROLL = "REQUIRE_REENROLL"
404
406
  }
405
- export interface CustomValue extends CustomValueValueOneOf {
407
+ interface CustomValue extends CustomValueValueOneOf {
406
408
  /** String value. */
407
409
  strValue?: string;
408
410
  /** Number value. */
@@ -415,7 +417,7 @@ export interface CustomValue extends CustomValueValueOneOf {
415
417
  mapValue?: MapValue;
416
418
  }
417
419
  /** @oneof */
418
- export interface CustomValueValueOneOf {
420
+ interface CustomValueValueOneOf {
419
421
  /** String value. */
420
422
  strValue?: string;
421
423
  /** Number value. */
@@ -427,74 +429,15 @@ export interface CustomValueValueOneOf {
427
429
  /** Map value. */
428
430
  mapValue?: MapValue;
429
431
  }
430
- export interface ListValue {
432
+ interface ListValue {
431
433
  /** Custom value. */
432
434
  value?: CustomValue[];
433
435
  }
434
- export interface MapValue {
436
+ interface MapValue {
435
437
  /** Mapped custom value. */
436
438
  value?: Record<string, CustomValue>;
437
439
  }
438
- export interface RequireMfaData {
439
- /**
440
- * The factors available for the user to perform the required MFA.
441
- * @maxSize 100
442
- */
443
- availableFactors?: V1Factor[];
444
- /** The reason the user is required to perform MFA. */
445
- reason?: MfaReason;
446
- }
447
- export interface V1Factor {
448
- /** Type of verification factor. */
449
- factorType?: FactorType;
450
- /** Availability status for second factor */
451
- factorStatus?: FactorStatus;
452
- }
453
- export declare enum FactorStatus {
454
- UNKNOWN_FACTOR_STATUS = "UNKNOWN_FACTOR_STATUS",
455
- ENABLED = "ENABLED",
456
- REQUIRE_ACTIVATION = "REQUIRE_ACTIVATION",
457
- REQUIRE_REENROLL = "REQUIRE_REENROLL",
458
- ENABLED_BY_RULE = "ENABLED_BY_RULE",
459
- DISABLED_BY_RULE = "DISABLED_BY_RULE"
460
- }
461
- export declare enum MfaReason {
462
- UNKNOWN_MFA_REASON = "UNKNOWN_MFA_REASON",
463
- /** Mfa is required due to user settings */
464
- USER_SETTINGS = "USER_SETTINGS",
465
- /** Mfa is required due to high risk login */
466
- HIGH_RISK_LOGIN = "HIGH_RISK_LOGIN"
467
- }
468
- export interface MfaChallengeData {
469
- /** Type of verifation factor. */
470
- factorType?: FactorType;
471
- verificationChallengeData?: VerificationChallenge;
472
- /**
473
- * Factors types the member can choose from to verify themselves.
474
- * @maxSize 100
475
- */
476
- availableFactors?: V1Factor[];
477
- /** The reason the user is required to perform MFA. */
478
- reason?: MfaReason;
479
- }
480
- export interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
481
- pushData?: PushChallengeData;
482
- /** @maxLength 200 */
483
- hint?: string | null;
484
- }
485
- /** @oneof */
486
- export interface VerificationChallengeFactorChallengeDataOneOf {
487
- pushData?: PushChallengeData;
488
- }
489
- export interface PushChallengeData {
490
- /**
491
- * This should be tied to a specific push notification.
492
- * It will be sent in subsequent requests to verify the factor.
493
- * @maxLength 36
494
- */
495
- transactionId?: string;
496
- }
497
- export interface LoginV2Request {
440
+ interface LoginV2Request {
498
441
  /** Identifier of identity logging in. */
499
442
  loginId: LoginId;
500
443
  /** Password of the identity logging in. */
@@ -504,84 +447,28 @@ export interface LoginV2Request {
504
447
  /** Additional data that's relevant for the flow. */
505
448
  clientMetaData?: Record<string, any> | null;
506
449
  }
507
- export interface ChangePasswordRequest {
450
+ interface ChangePasswordRequest {
508
451
  /** The new password to set for the logged in user */
509
452
  newPassword: string;
510
453
  }
511
- export interface ChangePasswordResponse {
512
- }
513
- export interface LoginWithIdpConnectionRequest {
514
- /**
515
- * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData
516
- * @format GUID
517
- */
518
- idpConnectionId?: string;
519
- /**
520
- * The id of the tenant the caller wants to login into
521
- * @format GUID
522
- */
523
- tenantId?: string;
524
- /** The type of the tenant the caller wants to login into */
525
- tenantType?: TenantType;
526
- customPayload?: Record<string, string>;
527
- /**
528
- * This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
529
- * The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
530
- * Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
531
- */
532
- sessionId?: string;
533
- encryptionKey?: string;
534
- visitorId?: string | null;
535
- bsi?: string | null;
536
- }
537
- export declare enum TenantType {
538
- UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
539
- ACCOUNT = "ACCOUNT",
540
- SITE = "SITE",
541
- ROOT = "ROOT"
454
+ interface ChangePasswordResponse {
542
455
  }
543
- export interface RawHttpResponse {
456
+ interface RawHttpResponse {
544
457
  body?: Uint8Array;
545
458
  statusCode?: number | null;
546
459
  headers?: HeadersEntry[];
547
460
  }
548
- export interface HeadersEntry {
549
- key?: string;
550
- value?: string;
551
- }
552
- export interface RawHttpRequest {
553
- body?: Uint8Array;
554
- pathParams?: PathParametersEntry[];
555
- queryParams?: QueryParametersEntry[];
556
- headers?: HeadersEntry[];
557
- method?: string;
558
- rawPath?: string;
559
- rawQuery?: string;
560
- }
561
- export interface PathParametersEntry {
562
- key?: string;
563
- value?: string;
564
- }
565
- export interface QueryParametersEntry {
461
+ interface HeadersEntry {
566
462
  key?: string;
567
463
  value?: string;
568
464
  }
569
- export interface LoginCallbackRequest {
465
+ interface LoginCallbackRequest {
570
466
  /** state that that received on the redirect */
571
467
  state?: string;
572
468
  /** session token */
573
469
  sessionToken?: string;
574
470
  }
575
- export interface LoginWithIdpConnectionTokenParamsRequest {
576
- /**
577
- * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData)
578
- * @format GUID
579
- */
580
- idpConnectionId?: string;
581
- /** A set of fields that are required for the connection to be able to identify and authenticate the user */
582
- tokenParams?: Record<string, string>;
583
- }
584
- export interface SignOnRequest {
471
+ interface SignOnRequest {
585
472
  /** the identifier of the identity */
586
473
  loginId: LoginId;
587
474
  /** profile of the identity */
@@ -591,14 +478,14 @@ export interface SignOnRequest {
591
478
  /** when false will create a new contact instead of merging the existing contact into the identity */
592
479
  mergeExistingContact?: boolean;
593
480
  }
594
- export interface SignOnResponse {
481
+ interface SignOnResponse {
595
482
  /** session token for the requested identity */
596
483
  sessionToken?: string;
597
484
  /** The Identity of the provided login_id */
598
485
  identity?: Identity;
599
486
  }
600
487
  /** logout request payload */
601
- export interface LogoutRequest {
488
+ interface LogoutRequest {
602
489
  /**
603
490
  * redirect after logout
604
491
  * @format WEB_URL
@@ -610,12 +497,13 @@ export interface LogoutRequest {
610
497
  */
611
498
  clientId?: string | null;
612
499
  }
613
- export interface VerifyRequest extends VerifyRequestFactorDataOneOf {
500
+ interface VerifyRequest extends VerifyRequestFactorDataOneOf {
614
501
  smsData?: SmsVerifyData;
615
502
  callData?: CallVerifyData;
616
503
  emailData?: ExternalEmailVerifyData;
617
504
  totpData?: TotpVerifyData;
618
505
  pushData?: PushVerifyData;
506
+ webauthnData?: WebAuthnVerifyData;
619
507
  /**
620
508
  * TODO: is this a reasonable maxLength?
621
509
  * @maxLength 1000
@@ -625,150 +513,88 @@ export interface VerifyRequest extends VerifyRequestFactorDataOneOf {
625
513
  rememberThisDevice?: boolean;
626
514
  }
627
515
  /** @oneof */
628
- export interface VerifyRequestFactorDataOneOf {
516
+ interface VerifyRequestFactorDataOneOf {
629
517
  smsData?: SmsVerifyData;
630
518
  callData?: CallVerifyData;
631
519
  emailData?: ExternalEmailVerifyData;
632
520
  totpData?: TotpVerifyData;
633
521
  pushData?: PushVerifyData;
522
+ webauthnData?: WebAuthnVerifyData;
634
523
  }
635
- export interface SmsVerifyData {
524
+ interface SmsVerifyData {
636
525
  /**
637
526
  * @minLength 1
638
527
  * @maxLength 100
639
528
  */
640
529
  code?: string | null;
641
530
  }
642
- export interface CallVerifyData {
531
+ interface CallVerifyData {
643
532
  /**
644
533
  * @minLength 1
645
534
  * @maxLength 100
646
535
  */
647
536
  code?: string | null;
648
537
  }
649
- export interface ExternalEmailVerifyData {
538
+ interface ExternalEmailVerifyData {
650
539
  /**
651
540
  * @minLength 1
652
541
  * @maxLength 100
653
542
  */
654
543
  code?: string | null;
655
544
  }
656
- export interface TotpVerifyData {
545
+ interface TotpVerifyData {
657
546
  /**
658
547
  * @minLength 1
659
548
  * @maxLength 100
660
549
  */
661
550
  code?: string | null;
662
551
  }
663
- export interface PushVerifyData {
552
+ interface PushVerifyData {
664
553
  /** @maxLength 36 */
665
554
  transactionId?: string | null;
666
555
  }
667
- interface V1FactorNonNullableFields {
668
- factorType: FactorType;
669
- factorStatus: FactorStatus;
670
- }
671
- interface RequireMfaDataNonNullableFields {
672
- availableFactors: V1FactorNonNullableFields[];
673
- reason: MfaReason;
674
- }
675
- interface PushChallengeDataNonNullableFields {
676
- transactionId: string;
677
- }
678
- interface VerificationChallengeNonNullableFields {
679
- pushData?: PushChallengeDataNonNullableFields;
680
- }
681
- interface MfaChallengeDataNonNullableFields {
682
- factorType: FactorType;
683
- verificationChallengeData?: VerificationChallengeNonNullableFields;
684
- availableFactors: V1FactorNonNullableFields[];
685
- reason: MfaReason;
686
- }
687
- interface IdpConnectionNonNullableFields {
688
- idpConnectionId: string;
689
- idpUserId: string;
690
- }
691
- interface AuthenticatorConnectionNonNullableFields {
692
- authenticatorConnectionId: string;
693
- reEnrollmentRequired: boolean;
694
- }
695
- interface ConnectionNonNullableFields {
696
- idpConnection?: IdpConnectionNonNullableFields;
697
- authenticatorConnection?: AuthenticatorConnectionNonNullableFields;
698
- }
699
- interface V1ListValueNonNullableFields {
700
- value: V1CustomValueNonNullableFields[];
701
- }
702
- interface V1CustomValueNonNullableFields {
703
- strValue: string;
704
- numValue: number;
705
- listValue?: V1ListValueNonNullableFields;
706
- }
707
- interface CustomFieldNonNullableFields {
708
- name: string;
709
- value?: V1CustomValueNonNullableFields;
710
- }
711
- interface SecondaryEmailNonNullableFields {
712
- email: string;
713
- tag: EmailTag;
714
- }
715
- interface PhoneNonNullableFields {
716
- phone: string;
717
- tag: PhoneTag;
718
- }
719
- interface AddressWrapperNonNullableFields {
720
- tag: AddressTag;
721
- }
722
- interface IdentityProfileNonNullableFields {
723
- emails: string[];
724
- phones: string[];
725
- labels: string[];
726
- privacyStatus: PrivacyStatus;
727
- customFields: CustomFieldNonNullableFields[];
728
- secondaryEmails: SecondaryEmailNonNullableFields[];
729
- phonesV2: PhoneNonNullableFields[];
730
- addresses: AddressWrapperNonNullableFields[];
731
- }
732
- interface MetadataNonNullableFields {
733
- tags: string[];
734
- }
735
- interface EmailNonNullableFields {
736
- address: string;
737
- isVerified: boolean;
738
- }
739
- interface StatusV2NonNullableFields {
740
- name: StatusName;
741
- reasons: Reason[];
742
- }
743
- interface FactorNonNullableFields {
744
- factorId: string;
745
- type: FactorType;
746
- status: Status;
747
- }
748
- interface IdentityNonNullableFields {
749
- connections: ConnectionNonNullableFields[];
750
- identityProfile?: IdentityProfileNonNullableFields;
751
- metadata?: MetadataNonNullableFields;
752
- email?: EmailNonNullableFields;
753
- status?: StatusV2NonNullableFields;
754
- factors: FactorNonNullableFields[];
755
- }
756
- export interface StateMachineResponseNonNullableFields {
757
- requireMfaData?: RequireMfaDataNonNullableFields;
758
- mfaChallengeData?: MfaChallengeDataNonNullableFields;
759
- state: StateType;
760
- identity?: IdentityNonNullableFields;
761
- }
762
- interface HeadersEntryNonNullableFields {
763
- key: string;
764
- value: string;
765
- }
766
- export interface RawHttpResponseNonNullableFields {
767
- body: Uint8Array;
768
- headers: HeadersEntryNonNullableFields[];
769
- }
770
- export interface SignOnResponseNonNullableFields {
771
- sessionToken: string;
772
- identity?: IdentityNonNullableFields;
773
- }
774
- export {};
556
+ interface WebAuthnVerifyData {
557
+ /**
558
+ * The challenge_id from the WebAuthnChallengeData that was returned in the previous
559
+ * verification response. This will always be present when completing the WebAuthn authentication
560
+ * ceremony with the credential data from the client.
561
+ * @format GUID
562
+ */
563
+ challengeId?: string | null;
564
+ /**
565
+ * If this field is present, this is a request to complete the WebAuthn authentication
566
+ * with the credential data from the client.
567
+ *
568
+ * The credential contains a JSON string representation of a WebAuthn PublicKeyCredential
569
+ * object returned by the browser during authentication, serialized as per the WebAuthn specification.
570
+ * The SPI implementation should use this to verify the authentication assertion.
571
+ *
572
+ * Any standards-compliant WebAuthn server library should be able to process this serialized format.
573
+ * For details on the serialization format, refer to the W3C WebAuthn specification:
574
+ * https://www.w3.org/TR/webauthn-3/#dom-publickeycredential-tojson
575
+ * @maxLength 3000
576
+ */
577
+ credential?: string | null;
578
+ }
579
+
580
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
581
+ getUrl: (context: any) => string;
582
+ httpMethod: K;
583
+ path: string;
584
+ pathParams: M;
585
+ __requestType: T;
586
+ __originalRequestType: S;
587
+ __responseType: Q;
588
+ __originalResponseType: R;
589
+ };
590
+ declare function registerV2(): __PublicMethodMetaInfo<'POST', {}, RegisterV2Request$1, RegisterV2Request, StateMachineResponse$1, StateMachineResponse>;
591
+ declare function loginV2(): __PublicMethodMetaInfo<'POST', {}, LoginV2Request$1, LoginV2Request, StateMachineResponse$1, StateMachineResponse>;
592
+ declare function changePassword(): __PublicMethodMetaInfo<'POST', {}, ChangePasswordRequest$1, ChangePasswordRequest, ChangePasswordResponse$1, ChangePasswordResponse>;
593
+ declare function loginCallback(): __PublicMethodMetaInfo<'GET', {}, LoginCallbackRequest$1, LoginCallbackRequest, RawHttpResponse$1, RawHttpResponse>;
594
+ declare function signOn(): __PublicMethodMetaInfo<'POST', {}, SignOnRequest$1, SignOnRequest, SignOnResponse$1, SignOnResponse>;
595
+ declare function logout(): __PublicMethodMetaInfo<'GET', {}, LogoutRequest$1, LogoutRequest, RawHttpResponse$1, RawHttpResponse>;
596
+ declare function verify(): __PublicMethodMetaInfo<'POST', {
597
+ factorType: string;
598
+ }, VerifyRequest$1, VerifyRequest, StateMachineResponse$1, StateMachineResponse>;
599
+
600
+ export { type __PublicMethodMetaInfo, changePassword, loginCallback, loginV2, logout, registerV2, signOn, verify };