@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,6 +1,6 @@
1
- export interface Authentication {
1
+ interface Authentication {
2
2
  }
3
- export interface RegisterV2Request {
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. */
@@ -93,8 +93,15 @@ export interface IdentityProfile {
93
93
  * @maxLength 255
94
94
  */
95
95
  slug?: string | null;
96
+ /** Consent to be added to mailing list */
97
+ subscription?: boolean | null;
98
+ /**
99
+ * Government id for personal/corporate (Vat ID).
100
+ * @maxLength 1000
101
+ */
102
+ vatId?: string | null;
96
103
  }
97
- export declare enum PrivacyStatus {
104
+ declare enum PrivacyStatus {
98
105
  /** No defined privacy status. */
99
106
  UNDEFINED = "UNDEFINED",
100
107
  /** Profile details, such as profile name and profile picture, are visible to other members. */
@@ -103,8 +110,8 @@ export declare enum PrivacyStatus {
103
110
  PRIVATE = "PRIVATE"
104
111
  }
105
112
  /** @enumType */
106
- export type PrivacyStatusWithLiterals = PrivacyStatus | 'UNDEFINED' | 'PUBLIC' | 'PRIVATE';
107
- export interface CustomField {
113
+ type PrivacyStatusWithLiterals = PrivacyStatus | 'UNDEFINED' | 'PUBLIC' | 'PRIVATE';
114
+ interface CustomField {
108
115
  /**
109
116
  * Custom field name. The name must match one of the key properties of the objects returned by
110
117
  * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
@@ -114,7 +121,7 @@ export interface CustomField {
114
121
  /** Custom field value. */
115
122
  value?: V1CustomValue;
116
123
  }
117
- export interface V1CustomValue extends V1CustomValueValueOneOf {
124
+ interface V1CustomValue extends V1CustomValueValueOneOf {
118
125
  /** String value. */
119
126
  strValue?: string;
120
127
  /** Number value. */
@@ -127,7 +134,7 @@ export interface V1CustomValue extends V1CustomValueValueOneOf {
127
134
  mapValue?: V1MapValue;
128
135
  }
129
136
  /** @oneof */
130
- export interface V1CustomValueValueOneOf {
137
+ interface V1CustomValueValueOneOf {
131
138
  /** String value. */
132
139
  strValue?: string;
133
140
  /** Number value. */
@@ -139,15 +146,15 @@ export interface V1CustomValueValueOneOf {
139
146
  /** Map of values. */
140
147
  mapValue?: V1MapValue;
141
148
  }
142
- export interface V1ListValue {
149
+ interface V1ListValue {
143
150
  /** Custom value. */
144
151
  value?: V1CustomValue[];
145
152
  }
146
- export interface V1MapValue {
153
+ interface V1MapValue {
147
154
  /** Mapped custom value. */
148
155
  value?: Record<string, V1CustomValue>;
149
156
  }
150
- export interface SecondaryEmail {
157
+ interface SecondaryEmail {
151
158
  /**
152
159
  * Email address.
153
160
  * @format EMAIL
@@ -156,15 +163,15 @@ export interface SecondaryEmail {
156
163
  /** Email tag. */
157
164
  tag?: EmailTagWithLiterals;
158
165
  }
159
- export declare enum EmailTag {
166
+ declare enum EmailTag {
160
167
  UNTAGGED = "UNTAGGED",
161
168
  MAIN = "MAIN",
162
169
  HOME = "HOME",
163
170
  WORK = "WORK"
164
171
  }
165
172
  /** @enumType */
166
- export type EmailTagWithLiterals = EmailTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'WORK';
167
- export interface Phone {
173
+ type EmailTagWithLiterals = EmailTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'WORK';
174
+ interface Phone {
168
175
  /**
169
176
  * Phone country code.
170
177
  * @format COUNTRY
@@ -178,7 +185,7 @@ export interface Phone {
178
185
  /** Phone tag. */
179
186
  tag?: PhoneTagWithLiterals;
180
187
  }
181
- export declare enum PhoneTag {
188
+ declare enum PhoneTag {
182
189
  UNTAGGED = "UNTAGGED",
183
190
  MAIN = "MAIN",
184
191
  HOME = "HOME",
@@ -187,15 +194,15 @@ export declare enum PhoneTag {
187
194
  FAX = "FAX"
188
195
  }
189
196
  /** @enumType */
190
- export type PhoneTagWithLiterals = PhoneTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
191
- export interface AddressWrapper {
197
+ type PhoneTagWithLiterals = PhoneTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
198
+ interface AddressWrapper {
192
199
  /** Address. */
193
200
  address?: Address;
194
201
  /** Address tag. */
195
202
  tag?: AddressTagWithLiterals;
196
203
  }
197
204
  /** Physical address */
198
- export interface Address {
205
+ interface Address {
199
206
  /**
200
207
  * Country code.
201
208
  * @format COUNTRY
@@ -208,11 +215,11 @@ export interface Address {
208
215
  /** Zip/postal code. */
209
216
  postalCode?: string | null;
210
217
  /** Main address line, usually street and number as free text. */
211
- addressLine?: string | null;
218
+ addressLine1?: string | null;
212
219
  /** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */
213
220
  addressLine2?: string | null;
214
221
  }
215
- export declare enum AddressTag {
222
+ declare enum AddressTag {
216
223
  UNTAGGED = "UNTAGGED",
217
224
  HOME = "HOME",
218
225
  WORK = "WORK",
@@ -220,8 +227,8 @@ export declare enum AddressTag {
220
227
  SHIPPING = "SHIPPING"
221
228
  }
222
229
  /** @enumType */
223
- export type AddressTagWithLiterals = AddressTag | 'UNTAGGED' | 'HOME' | 'WORK' | 'BILLING' | 'SHIPPING';
224
- export interface CaptchaToken extends CaptchaTokenTokenOneOf {
230
+ type AddressTagWithLiterals = AddressTag | 'UNTAGGED' | 'HOME' | 'WORK' | 'BILLING' | 'SHIPPING';
231
+ interface CaptchaToken extends CaptchaTokenTokenOneOf {
225
232
  /** @maxLength 5000 */
226
233
  Recaptcha?: string;
227
234
  /** @maxLength 5000 */
@@ -230,7 +237,7 @@ export interface CaptchaToken extends CaptchaTokenTokenOneOf {
230
237
  NoCaptcha?: string;
231
238
  }
232
239
  /** @oneof */
233
- export interface CaptchaTokenTokenOneOf {
240
+ interface CaptchaTokenTokenOneOf {
234
241
  /** @maxLength 5000 */
235
242
  Recaptcha?: string;
236
243
  /** @maxLength 5000 */
@@ -238,7 +245,7 @@ export interface CaptchaTokenTokenOneOf {
238
245
  /** @maxLength 5000 */
239
246
  NoCaptcha?: string;
240
247
  }
241
- export interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
248
+ interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
242
249
  /** Current state of the login or registration process. */
243
250
  state?: StateTypeWithLiterals;
244
251
  /** Session token. If `state` is not `SUCCESS`, this field is undefined. */
@@ -251,9 +258,9 @@ export interface StateMachineResponse extends StateMachineResponseStateDataOneOf
251
258
  additionalData?: Record<string, CustomValue>;
252
259
  }
253
260
  /** @oneof */
254
- export interface StateMachineResponseStateDataOneOf {
261
+ interface StateMachineResponseStateDataOneOf {
255
262
  }
256
- export declare enum StateType {
263
+ declare enum StateType {
257
264
  /** Initial unknown state. */
258
265
  UNKNOWN_STATE = "UNKNOWN_STATE",
259
266
  /** Login completed successfully. */
@@ -266,13 +273,13 @@ export declare enum StateType {
266
273
  STATUS_CHECK = "STATUS_CHECK"
267
274
  }
268
275
  /** @enumType */
269
- export type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK';
270
- export interface Identity {
276
+ type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK';
277
+ interface Identity {
271
278
  /**
272
279
  * Identity ID.
273
280
  * @format GUID
274
281
  */
275
- id?: string | null;
282
+ _id?: string | null;
276
283
  /**
277
284
  * Revision number, which increments by 1 each time the identity is updated.
278
285
  * To prevent conflicting changes,
@@ -285,12 +292,12 @@ export interface Identity {
285
292
  * Date and time the identity was created.
286
293
  * @readonly
287
294
  */
288
- createdDate?: Date | null;
295
+ _createdDate?: Date | null;
289
296
  /**
290
297
  * Date and time the identity was updated.
291
298
  * @readonly
292
299
  */
293
- updatedDate?: Date | null;
300
+ _updatedDate?: Date | null;
294
301
  /** The identity configured connections to authenticate with. */
295
302
  connections?: Connection[];
296
303
  /** Identity profile. */
@@ -313,20 +320,20 @@ export interface Identity {
313
320
  */
314
321
  factors?: Factor[];
315
322
  }
316
- export interface Connection extends ConnectionTypeOneOf {
323
+ interface Connection extends ConnectionTypeOneOf {
317
324
  /** IDP connection. */
318
325
  idpConnection?: IdpConnection;
319
326
  /** Authenticator connection. */
320
327
  authenticatorConnection?: AuthenticatorConnection;
321
328
  }
322
329
  /** @oneof */
323
- export interface ConnectionTypeOneOf {
330
+ interface ConnectionTypeOneOf {
324
331
  /** IDP connection. */
325
332
  idpConnection?: IdpConnection;
326
333
  /** Authenticator connection. */
327
334
  authenticatorConnection?: AuthenticatorConnection;
328
335
  }
329
- export interface IdpConnection {
336
+ interface IdpConnection {
330
337
  /**
331
338
  * IDP connection ID.
332
339
  * @format GUID
@@ -335,7 +342,7 @@ export interface IdpConnection {
335
342
  /** IDP user ID. */
336
343
  idpUserId?: string;
337
344
  }
338
- export interface AuthenticatorConnection {
345
+ interface AuthenticatorConnection {
339
346
  /**
340
347
  * Authenticator connection ID.
341
348
  * @format GUID
@@ -344,14 +351,14 @@ export interface AuthenticatorConnection {
344
351
  /** Whether re-enrollment is required. */
345
352
  reEnrollmentRequired?: boolean;
346
353
  }
347
- export interface Metadata {
354
+ interface Metadata {
348
355
  /**
349
356
  * General tags. For example, `"isOwner"`.
350
357
  * @readonly
351
358
  */
352
359
  tags?: string[];
353
360
  }
354
- export interface Email {
361
+ interface Email {
355
362
  /**
356
363
  * Email address.
357
364
  * @format EMAIL
@@ -360,11 +367,11 @@ export interface Email {
360
367
  /** Whether the email address is verified. */
361
368
  isVerified?: boolean;
362
369
  }
363
- export interface StatusV2 {
370
+ interface StatusV2 {
364
371
  name?: StatusNameWithLiterals;
365
372
  reasons?: ReasonWithLiterals[];
366
373
  }
367
- export declare enum StatusName {
374
+ declare enum StatusName {
368
375
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
369
376
  PENDING = "PENDING",
370
377
  ACTIVE = "ACTIVE",
@@ -373,15 +380,15 @@ export declare enum StatusName {
373
380
  OFFLINE = "OFFLINE"
374
381
  }
375
382
  /** @enumType */
376
- export type StatusNameWithLiterals = StatusName | 'UNKNOWN_STATUS' | 'PENDING' | 'ACTIVE' | 'DELETED' | 'BLOCKED' | 'OFFLINE';
377
- export declare enum Reason {
383
+ type StatusNameWithLiterals = StatusName | 'UNKNOWN_STATUS' | 'PENDING' | 'ACTIVE' | 'DELETED' | 'BLOCKED' | 'OFFLINE';
384
+ declare enum Reason {
378
385
  UNKNOWN_REASON = "UNKNOWN_REASON",
379
386
  PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
380
387
  PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
381
388
  }
382
389
  /** @enumType */
383
- export type ReasonWithLiterals = Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED';
384
- export interface Factor {
390
+ type ReasonWithLiterals = Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED';
391
+ interface Factor {
385
392
  /**
386
393
  * Factor ID.
387
394
  * @format GUID
@@ -392,7 +399,7 @@ export interface Factor {
392
399
  /** Factor status. */
393
400
  status?: StatusWithLiterals;
394
401
  }
395
- export declare enum FactorType {
402
+ declare enum FactorType {
396
403
  /** Unknown factor type. */
397
404
  UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
398
405
  /** Requires a password. */
@@ -411,8 +418,8 @@ export declare enum FactorType {
411
418
  WEBAUTHN = "WEBAUTHN"
412
419
  }
413
420
  /** @enumType */
414
- export type FactorTypeWithLiterals = FactorType | 'UNKNOWN_FACTOR_TYPE' | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN';
415
- export declare enum Status {
421
+ type FactorTypeWithLiterals = FactorType | 'UNKNOWN_FACTOR_TYPE' | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN';
422
+ declare enum Status {
416
423
  /** Factor requires activation. */
417
424
  INACTIVE = "INACTIVE",
418
425
  /** Factor is active and can be used for authentication. */
@@ -421,8 +428,8 @@ export declare enum Status {
421
428
  REQUIRE_REENROLL = "REQUIRE_REENROLL"
422
429
  }
423
430
  /** @enumType */
424
- export type StatusWithLiterals = Status | 'INACTIVE' | 'ACTIVE' | 'REQUIRE_REENROLL';
425
- export interface CustomValue extends CustomValueValueOneOf {
431
+ type StatusWithLiterals = Status | 'INACTIVE' | 'ACTIVE' | 'REQUIRE_REENROLL';
432
+ interface CustomValue extends CustomValueValueOneOf {
426
433
  /** String value. */
427
434
  strValue?: string;
428
435
  /** Number value. */
@@ -435,7 +442,7 @@ export interface CustomValue extends CustomValueValueOneOf {
435
442
  mapValue?: MapValue;
436
443
  }
437
444
  /** @oneof */
438
- export interface CustomValueValueOneOf {
445
+ interface CustomValueValueOneOf {
439
446
  /** String value. */
440
447
  strValue?: string;
441
448
  /** Number value. */
@@ -447,15 +454,15 @@ export interface CustomValueValueOneOf {
447
454
  /** Map value. */
448
455
  mapValue?: MapValue;
449
456
  }
450
- export interface ListValue {
457
+ interface ListValue {
451
458
  /** Custom value. */
452
459
  value?: CustomValue[];
453
460
  }
454
- export interface MapValue {
461
+ interface MapValue {
455
462
  /** Mapped custom value. */
456
463
  value?: Record<string, CustomValue>;
457
464
  }
458
- export interface RequireMfaData {
465
+ interface RequireMfaData {
459
466
  /**
460
467
  * The factors available for the user to perform the required MFA.
461
468
  * @maxSize 100
@@ -464,13 +471,13 @@ export interface RequireMfaData {
464
471
  /** The reason the user is required to perform MFA. */
465
472
  reason?: MfaReasonWithLiterals;
466
473
  }
467
- export interface V1Factor {
474
+ interface V1Factor {
468
475
  /** Type of verification factor. */
469
476
  factorType?: FactorTypeWithLiterals;
470
477
  /** Availability status for second factor */
471
478
  factorStatus?: FactorStatusWithLiterals;
472
479
  }
473
- export declare enum FactorStatus {
480
+ declare enum FactorStatus {
474
481
  UNKNOWN_FACTOR_STATUS = "UNKNOWN_FACTOR_STATUS",
475
482
  ENABLED = "ENABLED",
476
483
  REQUIRE_ACTIVATION = "REQUIRE_ACTIVATION",
@@ -479,8 +486,8 @@ export declare enum FactorStatus {
479
486
  DISABLED_BY_RULE = "DISABLED_BY_RULE"
480
487
  }
481
488
  /** @enumType */
482
- export type FactorStatusWithLiterals = FactorStatus | 'UNKNOWN_FACTOR_STATUS' | 'ENABLED' | 'REQUIRE_ACTIVATION' | 'REQUIRE_REENROLL' | 'ENABLED_BY_RULE' | 'DISABLED_BY_RULE';
483
- export declare enum MfaReason {
489
+ type FactorStatusWithLiterals = FactorStatus | 'UNKNOWN_FACTOR_STATUS' | 'ENABLED' | 'REQUIRE_ACTIVATION' | 'REQUIRE_REENROLL' | 'ENABLED_BY_RULE' | 'DISABLED_BY_RULE';
490
+ declare enum MfaReason {
484
491
  UNKNOWN_MFA_REASON = "UNKNOWN_MFA_REASON",
485
492
  /** Mfa is required due to user settings */
486
493
  USER_SETTINGS = "USER_SETTINGS",
@@ -488,8 +495,8 @@ export declare enum MfaReason {
488
495
  HIGH_RISK_LOGIN = "HIGH_RISK_LOGIN"
489
496
  }
490
497
  /** @enumType */
491
- export type MfaReasonWithLiterals = MfaReason | 'UNKNOWN_MFA_REASON' | 'USER_SETTINGS' | 'HIGH_RISK_LOGIN';
492
- export interface MfaChallengeData {
498
+ type MfaReasonWithLiterals = MfaReason | 'UNKNOWN_MFA_REASON' | 'USER_SETTINGS' | 'HIGH_RISK_LOGIN';
499
+ interface MfaChallengeData {
493
500
  /** Type of verifation factor. */
494
501
  factorType?: FactorTypeWithLiterals;
495
502
  verificationChallengeData?: VerificationChallenge;
@@ -501,18 +508,18 @@ export interface MfaChallengeData {
501
508
  /** The reason the user is required to perform MFA. */
502
509
  reason?: MfaReasonWithLiterals;
503
510
  }
504
- export interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
511
+ interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
505
512
  pushData?: PushChallengeData;
506
513
  webauthnData?: WebAuthnChallengeData;
507
514
  /** @maxLength 200 */
508
515
  hint?: string | null;
509
516
  }
510
517
  /** @oneof */
511
- export interface VerificationChallengeFactorChallengeDataOneOf {
518
+ interface VerificationChallengeFactorChallengeDataOneOf {
512
519
  pushData?: PushChallengeData;
513
520
  webauthnData?: WebAuthnChallengeData;
514
521
  }
515
- export interface PushChallengeData {
522
+ interface PushChallengeData {
516
523
  /**
517
524
  * This should be tied to a specific push notification.
518
525
  * It will be sent in subsequent requests to verify the factor.
@@ -520,7 +527,7 @@ export interface PushChallengeData {
520
527
  */
521
528
  transactionId?: string;
522
529
  }
523
- export interface WebAuthnChallengeData {
530
+ interface WebAuthnChallengeData {
524
531
  /**
525
532
  * A unique identifier for this challenge that will be used to correlate
526
533
  * the authentication response with this challenge.
@@ -563,9 +570,9 @@ export interface WebAuthnChallengeData {
563
570
  */
564
571
  extensions?: AuthenticationExtensionInputs;
565
572
  }
566
- export interface PublicKeyCredentialDescriptor {
573
+ interface PublicKeyCredentialDescriptor {
567
574
  /** The credential ID */
568
- id?: Uint8Array;
575
+ _id?: Uint8Array;
569
576
  /**
570
577
  * An optional hint as to the transports used by the credential
571
578
  * Examples include "usb", "nfc", "ble", "internal", "hybrid"
@@ -574,7 +581,7 @@ export interface PublicKeyCredentialDescriptor {
574
581
  */
575
582
  transports?: string[];
576
583
  }
577
- export declare enum UserVerificationRequirement {
584
+ declare enum UserVerificationRequirement {
578
585
  /** Default unspecified value */
579
586
  USER_VERIFICATION_UNSPECIFIED = "USER_VERIFICATION_UNSPECIFIED",
580
587
  /**
@@ -588,8 +595,8 @@ export declare enum UserVerificationRequirement {
588
595
  USER_VERIFICATION_DISCOURAGED = "USER_VERIFICATION_DISCOURAGED"
589
596
  }
590
597
  /** @enumType */
591
- export type UserVerificationRequirementWithLiterals = UserVerificationRequirement | 'USER_VERIFICATION_UNSPECIFIED' | 'USER_VERIFICATION_REQUIRED' | 'USER_VERIFICATION_PREFERRED' | 'USER_VERIFICATION_DISCOURAGED';
592
- export interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
598
+ type UserVerificationRequirementWithLiterals = UserVerificationRequirement | 'USER_VERIFICATION_UNSPECIFIED' | 'USER_VERIFICATION_REQUIRED' | 'USER_VERIFICATION_PREFERRED' | 'USER_VERIFICATION_DISCOURAGED';
599
+ interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
593
600
  /** Read existing large blob data from the authenticator */
594
601
  largeBlobRead?: boolean;
595
602
  /** Write data to the authenticator's large blob storage */
@@ -609,13 +616,13 @@ export interface AuthenticationExtensionInputs extends AuthenticationExtensionIn
609
616
  uvm?: boolean;
610
617
  }
611
618
  /** @oneof */
612
- export interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
619
+ interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
613
620
  /** Read existing large blob data from the authenticator */
614
621
  largeBlobRead?: boolean;
615
622
  /** Write data to the authenticator's large blob storage */
616
623
  largeBlobWrite?: Uint8Array;
617
624
  }
618
- export interface LoginV2Request {
625
+ interface LoginV2Request {
619
626
  /** Identifier of identity logging in. */
620
627
  loginId: LoginId;
621
628
  /** Password of the identity logging in. */
@@ -625,13 +632,13 @@ export interface LoginV2Request {
625
632
  /** Additional data that's relevant for the flow. */
626
633
  clientMetaData?: Record<string, any> | null;
627
634
  }
628
- export interface ChangePasswordRequest {
635
+ interface ChangePasswordRequest {
629
636
  /** The new password to set for the logged in user */
630
637
  newPassword: string;
631
638
  }
632
- export interface ChangePasswordResponse {
639
+ interface ChangePasswordResponse {
633
640
  }
634
- export interface LoginWithIdpConnectionRequest {
641
+ interface LoginWithIdpConnectionRequest {
635
642
  /**
636
643
  * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData
637
644
  * @format GUID
@@ -655,24 +662,24 @@ export interface LoginWithIdpConnectionRequest {
655
662
  visitorId?: string | null;
656
663
  bsi?: string | null;
657
664
  }
658
- export declare enum TenantType {
665
+ declare enum TenantType {
659
666
  UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
660
667
  ACCOUNT = "ACCOUNT",
661
668
  SITE = "SITE",
662
669
  ROOT = "ROOT"
663
670
  }
664
671
  /** @enumType */
665
- export type TenantTypeWithLiterals = TenantType | 'UNKNOWN_TENANT_TYPE' | 'ACCOUNT' | 'SITE' | 'ROOT';
666
- export interface RawHttpResponse {
672
+ type TenantTypeWithLiterals = TenantType | 'UNKNOWN_TENANT_TYPE' | 'ACCOUNT' | 'SITE' | 'ROOT';
673
+ interface RawHttpResponse {
667
674
  body?: Uint8Array;
668
675
  statusCode?: number | null;
669
676
  headers?: HeadersEntry[];
670
677
  }
671
- export interface HeadersEntry {
678
+ interface HeadersEntry {
672
679
  key?: string;
673
680
  value?: string;
674
681
  }
675
- export interface RawHttpRequest {
682
+ interface RawHttpRequest {
676
683
  body?: Uint8Array;
677
684
  pathParams?: PathParametersEntry[];
678
685
  queryParams?: QueryParametersEntry[];
@@ -681,21 +688,21 @@ export interface RawHttpRequest {
681
688
  rawPath?: string;
682
689
  rawQuery?: string;
683
690
  }
684
- export interface PathParametersEntry {
691
+ interface PathParametersEntry {
685
692
  key?: string;
686
693
  value?: string;
687
694
  }
688
- export interface QueryParametersEntry {
695
+ interface QueryParametersEntry {
689
696
  key?: string;
690
697
  value?: string;
691
698
  }
692
- export interface LoginCallbackRequest {
699
+ interface LoginCallbackRequest {
693
700
  /** state that that received on the redirect */
694
701
  state?: string;
695
702
  /** session token */
696
703
  sessionToken?: string;
697
704
  }
698
- export interface LoginWithIdpConnectionTokenParamsRequest {
705
+ interface LoginWithIdpConnectionTokenParamsRequest {
699
706
  /**
700
707
  * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData)
701
708
  * @format GUID
@@ -704,7 +711,7 @@ export interface LoginWithIdpConnectionTokenParamsRequest {
704
711
  /** A set of fields that are required for the connection to be able to identify and authenticate the user */
705
712
  tokenParams?: Record<string, string>;
706
713
  }
707
- export interface SignOnRequest {
714
+ interface SignOnRequest {
708
715
  /** the identifier of the identity */
709
716
  loginId: LoginId;
710
717
  /** profile of the identity */
@@ -714,14 +721,14 @@ export interface SignOnRequest {
714
721
  /** when false will create a new contact instead of merging the existing contact into the identity */
715
722
  mergeExistingContact?: boolean;
716
723
  }
717
- export interface SignOnResponse {
724
+ interface SignOnResponse {
718
725
  /** session token for the requested identity */
719
726
  sessionToken?: string;
720
727
  /** The Identity of the provided login_id */
721
728
  identity?: Identity;
722
729
  }
723
730
  /** logout request payload */
724
- export interface LogoutRequest {
731
+ interface LogoutRequest {
725
732
  /**
726
733
  * redirect after logout
727
734
  * @format WEB_URL
@@ -733,7 +740,7 @@ export interface LogoutRequest {
733
740
  */
734
741
  clientId?: string | null;
735
742
  }
736
- export interface VerifyRequest extends VerifyRequestFactorDataOneOf {
743
+ interface VerifyRequest extends VerifyRequestFactorDataOneOf {
737
744
  smsData?: SmsVerifyData;
738
745
  callData?: CallVerifyData;
739
746
  emailData?: ExternalEmailVerifyData;
@@ -749,7 +756,7 @@ export interface VerifyRequest extends VerifyRequestFactorDataOneOf {
749
756
  rememberThisDevice?: boolean;
750
757
  }
751
758
  /** @oneof */
752
- export interface VerifyRequestFactorDataOneOf {
759
+ interface VerifyRequestFactorDataOneOf {
753
760
  smsData?: SmsVerifyData;
754
761
  callData?: CallVerifyData;
755
762
  emailData?: ExternalEmailVerifyData;
@@ -757,39 +764,39 @@ export interface VerifyRequestFactorDataOneOf {
757
764
  pushData?: PushVerifyData;
758
765
  webauthnData?: WebAuthnVerifyData;
759
766
  }
760
- export interface SmsVerifyData {
767
+ interface SmsVerifyData {
761
768
  /**
762
769
  * @minLength 1
763
770
  * @maxLength 100
764
771
  */
765
772
  code?: string | null;
766
773
  }
767
- export interface CallVerifyData {
774
+ interface CallVerifyData {
768
775
  /**
769
776
  * @minLength 1
770
777
  * @maxLength 100
771
778
  */
772
779
  code?: string | null;
773
780
  }
774
- export interface ExternalEmailVerifyData {
781
+ interface ExternalEmailVerifyData {
775
782
  /**
776
783
  * @minLength 1
777
784
  * @maxLength 100
778
785
  */
779
786
  code?: string | null;
780
787
  }
781
- export interface TotpVerifyData {
788
+ interface TotpVerifyData {
782
789
  /**
783
790
  * @minLength 1
784
791
  * @maxLength 100
785
792
  */
786
793
  code?: string | null;
787
794
  }
788
- export interface PushVerifyData {
795
+ interface PushVerifyData {
789
796
  /** @maxLength 36 */
790
797
  transactionId?: string | null;
791
798
  }
792
- export interface WebAuthnVerifyData {
799
+ interface WebAuthnVerifyData {
793
800
  /**
794
801
  * The challenge_id from the WebAuthnChallengeData that was returned in the previous
795
802
  * verification response. This will always be present when completing the WebAuthn authentication
@@ -812,3 +819,72 @@ export interface WebAuthnVerifyData {
812
819
  */
813
820
  credential?: string | null;
814
821
  }
822
+ interface RegisterV2Options {
823
+ /** Password of the registering member. */
824
+ password?: string;
825
+ /** Profile information of registering member. */
826
+ profile?: IdentityProfile;
827
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
828
+ captchaTokens?: CaptchaToken[];
829
+ /** Additional data that's relevant for the flow. */
830
+ clientMetaData?: Record<string, any> | null;
831
+ }
832
+ interface LoginV2Options {
833
+ /** Password of the identity logging in. */
834
+ password?: string;
835
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
836
+ captchaTokens?: CaptchaToken[];
837
+ /** Additional data that's relevant for the flow. */
838
+ clientMetaData?: Record<string, any> | null;
839
+ }
840
+ interface LoginCallbackOptions {
841
+ /** state that that received on the redirect */
842
+ state?: string;
843
+ /** session token */
844
+ sessionToken?: string;
845
+ }
846
+ interface SignOnOptions {
847
+ /** profile of the identity */
848
+ profile?: IdentityProfile;
849
+ /** when true will mark the email of the identity as verified */
850
+ verifyEmail?: boolean;
851
+ /** when false will create a new contact instead of merging the existing contact into the identity */
852
+ mergeExistingContact?: boolean;
853
+ }
854
+ interface LogoutOptions {
855
+ /**
856
+ * redirect after logout
857
+ * @format WEB_URL
858
+ */
859
+ postLogoutRedirectUri?: string | null;
860
+ /**
861
+ * caller identifier
862
+ * @format GUID
863
+ */
864
+ clientId?: string | null;
865
+ }
866
+ interface VerifyOptions extends VerifyOptionsFactorDataOneOf {
867
+ /**
868
+ * TODO: is this a reasonable maxLength?
869
+ * @maxLength 1000
870
+ */
871
+ stateToken?: string;
872
+ rememberThisDevice?: boolean;
873
+ smsData?: SmsVerifyData;
874
+ callData?: CallVerifyData;
875
+ emailData?: ExternalEmailVerifyData;
876
+ totpData?: TotpVerifyData;
877
+ pushData?: PushVerifyData;
878
+ webauthnData?: WebAuthnVerifyData;
879
+ }
880
+ /** @oneof */
881
+ interface VerifyOptionsFactorDataOneOf {
882
+ smsData?: SmsVerifyData;
883
+ callData?: CallVerifyData;
884
+ emailData?: ExternalEmailVerifyData;
885
+ totpData?: TotpVerifyData;
886
+ pushData?: PushVerifyData;
887
+ webauthnData?: WebAuthnVerifyData;
888
+ }
889
+
890
+ export { type RequireMfaData as $, AddressTag as A, type StateMachineResponseStateDataOneOf as B, type CustomField as C, type Identity as D, EmailTag as E, type FactorTypeWithLiterals as F, type Connection as G, type ConnectionTypeOneOf as H, type IdentityProfile as I, type IdpConnection as J, type AuthenticatorConnection as K, type LoginId as L, MfaReason as M, type Metadata as N, type Email as O, PrivacyStatus as P, type StatusV2 as Q, type RegisterV2Options as R, type StateMachineResponse as S, TenantType as T, UserVerificationRequirement as U, type VerifyOptions as V, type Factor as W, type CustomValue as X, type CustomValueValueOneOf as Y, type ListValue as Z, type MapValue as _, type LoginV2Options as a, type V1Factor as a0, type MfaChallengeData as a1, type VerificationChallenge as a2, type VerificationChallengeFactorChallengeDataOneOf as a3, type PushChallengeData as a4, type WebAuthnChallengeData as a5, type PublicKeyCredentialDescriptor as a6, type AuthenticationExtensionInputs as a7, type AuthenticationExtensionInputsLargeBlobOperationOneOf as a8, type LoginV2Request as a9, type ChangePasswordRequest as aa, type ChangePasswordResponse as ab, type LoginWithIdpConnectionRequest as ac, type HeadersEntry as ad, type RawHttpRequest as ae, type PathParametersEntry as af, type QueryParametersEntry as ag, type LoginCallbackRequest as ah, type LoginWithIdpConnectionTokenParamsRequest as ai, type SignOnRequest as aj, type LogoutRequest as ak, type VerifyRequest as al, type VerifyRequestFactorDataOneOf as am, type SmsVerifyData as an, type CallVerifyData as ao, type ExternalEmailVerifyData as ap, type TotpVerifyData as aq, type PushVerifyData as ar, type WebAuthnVerifyData as as, type VerifyOptionsFactorDataOneOf as at, type LoginCallbackOptions as b, type RawHttpResponse as c, type SignOnOptions as d, type SignOnResponse as e, type LogoutOptions as f, PhoneTag as g, StateType as h, StatusName as i, Reason as j, FactorType as k, Status as l, FactorStatus as m, type Authentication as n, type RegisterV2Request as o, type LoginIdTypeOneOf as p, type V1CustomValue as q, type V1CustomValueValueOneOf as r, type V1ListValue as s, type V1MapValue as t, type SecondaryEmail as u, type Phone as v, type AddressWrapper as w, type Address as x, type CaptchaToken as y, type CaptchaTokenTokenOneOf as z };