@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
@@ -0,0 +1,635 @@
1
+ import { o as RegisterV2Request$1, S as StateMachineResponse$1, a9 as LoginV2Request$1, aa as ChangePasswordRequest$1, ab as ChangePasswordResponse$1, ah as LoginCallbackRequest$1, c as RawHttpResponse$1, aj as SignOnRequest$1, e as SignOnResponse$1, ak as LogoutRequest$1, al as VerifyRequest$1 } from './iam-authentication-v1-authentication-authentication.universal-D-41C26U.mjs';
2
+
3
+ interface RegisterV2Request {
4
+ /** Identifier of the registering member. */
5
+ loginId: LoginId;
6
+ /** Password of the registering member. */
7
+ password?: string;
8
+ /** Profile information of registering member. */
9
+ profile?: IdentityProfile;
10
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
11
+ captchaTokens?: CaptchaToken[];
12
+ /** Additional data that's relevant for the flow. */
13
+ clientMetaData?: Record<string, any> | null;
14
+ }
15
+ interface LoginId extends LoginIdTypeOneOf {
16
+ /**
17
+ * Login email address.
18
+ * @format EMAIL
19
+ */
20
+ email?: string;
21
+ }
22
+ /** @oneof */
23
+ interface LoginIdTypeOneOf {
24
+ /**
25
+ * Login email address.
26
+ * @format EMAIL
27
+ */
28
+ email?: string;
29
+ }
30
+ interface IdentityProfile {
31
+ /** Profile first name. */
32
+ firstName?: string | null;
33
+ /** Profile last name. */
34
+ lastName?: string | null;
35
+ /** Profile nickname. */
36
+ nickname?: string | null;
37
+ /** Profile picture URL. */
38
+ picture?: string | null;
39
+ /**
40
+ * Deprecated. Use `secondaryEmails` instead.
41
+ * @deprecated Deprecated. Use `secondaryEmails` instead.
42
+ * @replacedBy secondary_emails
43
+ * @targetRemovalDate 2023-11-01
44
+ */
45
+ emails?: string[];
46
+ /**
47
+ * Deprecated. Use `phonesV2` instead.
48
+ * @deprecated Deprecated. Use `phonesV2` instead.
49
+ * @replacedBy phones_v2
50
+ * @targetRemovalDate 2023-11-01
51
+ */
52
+ phones?: string[];
53
+ /**
54
+ * List of profile labels.
55
+ * @maxSize 2000
56
+ */
57
+ labels?: string[];
58
+ /**
59
+ * Profile language.
60
+ * @format LANGUAGE
61
+ */
62
+ language?: string | null;
63
+ /** Profile privacy status. */
64
+ privacyStatus?: PrivacyStatusWithLiterals;
65
+ /**
66
+ * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
67
+ * are used to store additional information about your site or app's contacts.
68
+ */
69
+ customFields?: CustomField[];
70
+ /** List of profile email addresses. */
71
+ secondaryEmails?: SecondaryEmail[];
72
+ /** List of profile phone numbers. */
73
+ phonesV2?: Phone[];
74
+ /** List of profile physical addresses. */
75
+ addresses?: AddressWrapper[];
76
+ /**
77
+ * Company name.
78
+ * @maxLength 1000
79
+ */
80
+ company?: string | null;
81
+ /**
82
+ * Position within company.
83
+ * @maxLength 1000
84
+ */
85
+ position?: string | null;
86
+ /**
87
+ * Profile birthdate in `YYYY-MM-DD` format.
88
+ * @format LOCAL_DATE
89
+ */
90
+ birthdate?: string | null;
91
+ /**
92
+ * Profile slug.
93
+ * @maxLength 255
94
+ */
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;
103
+ }
104
+ declare enum PrivacyStatus {
105
+ /** No defined privacy status. */
106
+ UNDEFINED = "UNDEFINED",
107
+ /** Profile details, such as profile name and profile picture, are visible to other members. */
108
+ PUBLIC = "PUBLIC",
109
+ /** Profile details aren't visible to other members. */
110
+ PRIVATE = "PRIVATE"
111
+ }
112
+ /** @enumType */
113
+ type PrivacyStatusWithLiterals = PrivacyStatus | 'UNDEFINED' | 'PUBLIC' | 'PRIVATE';
114
+ interface CustomField {
115
+ /**
116
+ * Custom field name. The name must match one of the key properties of the objects returned by
117
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
118
+ * with the `custom.` prefix removed.
119
+ */
120
+ name?: string;
121
+ /** Custom field value. */
122
+ value?: V1CustomValue;
123
+ }
124
+ interface V1CustomValue extends V1CustomValueValueOneOf {
125
+ /** String value. */
126
+ strValue?: string;
127
+ /** Number value. */
128
+ numValue?: number;
129
+ /** Date value. */
130
+ dateValue?: Date | null;
131
+ /** Array of values. */
132
+ listValue?: V1ListValue;
133
+ /** Map of values. */
134
+ mapValue?: V1MapValue;
135
+ }
136
+ /** @oneof */
137
+ interface V1CustomValueValueOneOf {
138
+ /** String value. */
139
+ strValue?: string;
140
+ /** Number value. */
141
+ numValue?: number;
142
+ /** Date value. */
143
+ dateValue?: Date | null;
144
+ /** Array of values. */
145
+ listValue?: V1ListValue;
146
+ /** Map of values. */
147
+ mapValue?: V1MapValue;
148
+ }
149
+ interface V1ListValue {
150
+ /** Custom value. */
151
+ value?: V1CustomValue[];
152
+ }
153
+ interface V1MapValue {
154
+ /** Mapped custom value. */
155
+ value?: Record<string, V1CustomValue>;
156
+ }
157
+ interface SecondaryEmail {
158
+ /**
159
+ * Email address.
160
+ * @format EMAIL
161
+ */
162
+ email?: string;
163
+ /** Email tag. */
164
+ tag?: EmailTagWithLiterals;
165
+ }
166
+ declare enum EmailTag {
167
+ UNTAGGED = "UNTAGGED",
168
+ MAIN = "MAIN",
169
+ HOME = "HOME",
170
+ WORK = "WORK"
171
+ }
172
+ /** @enumType */
173
+ type EmailTagWithLiterals = EmailTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'WORK';
174
+ interface Phone {
175
+ /**
176
+ * Phone country code.
177
+ * @format COUNTRY
178
+ */
179
+ countryCode?: string | null;
180
+ /**
181
+ * Phone number.
182
+ * @format PHONE
183
+ */
184
+ phone?: string;
185
+ /** Phone tag. */
186
+ tag?: PhoneTagWithLiterals;
187
+ }
188
+ declare enum PhoneTag {
189
+ UNTAGGED = "UNTAGGED",
190
+ MAIN = "MAIN",
191
+ HOME = "HOME",
192
+ MOBILE = "MOBILE",
193
+ WORK = "WORK",
194
+ FAX = "FAX"
195
+ }
196
+ /** @enumType */
197
+ type PhoneTagWithLiterals = PhoneTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
198
+ interface AddressWrapper {
199
+ /** Address. */
200
+ address?: Address;
201
+ /** Address tag. */
202
+ tag?: AddressTagWithLiterals;
203
+ }
204
+ /** Physical address */
205
+ interface Address {
206
+ /**
207
+ * Country code.
208
+ * @format COUNTRY
209
+ */
210
+ country?: string | null;
211
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
212
+ subdivision?: string | null;
213
+ /** City name. */
214
+ city?: string | null;
215
+ /** Zip/postal code. */
216
+ postalCode?: string | null;
217
+ /** Main address line, usually street and number as free text. */
218
+ addressLine?: string | null;
219
+ /** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */
220
+ addressLine2?: string | null;
221
+ /**
222
+ * Street name.
223
+ * @maxLength 1000
224
+ */
225
+ streetName?: string | null;
226
+ /**
227
+ * Street number.
228
+ * @maxLength 1000
229
+ */
230
+ streetNumber?: string | null;
231
+ }
232
+ declare enum AddressTag {
233
+ UNTAGGED = "UNTAGGED",
234
+ HOME = "HOME",
235
+ WORK = "WORK",
236
+ BILLING = "BILLING",
237
+ SHIPPING = "SHIPPING"
238
+ }
239
+ /** @enumType */
240
+ type AddressTagWithLiterals = AddressTag | 'UNTAGGED' | 'HOME' | 'WORK' | 'BILLING' | 'SHIPPING';
241
+ interface CaptchaToken extends CaptchaTokenTokenOneOf {
242
+ /** @maxLength 5000 */
243
+ Recaptcha?: string;
244
+ /** @maxLength 5000 */
245
+ InvisibleRecaptcha?: string;
246
+ /** @maxLength 5000 */
247
+ NoCaptcha?: string;
248
+ }
249
+ /** @oneof */
250
+ interface CaptchaTokenTokenOneOf {
251
+ /** @maxLength 5000 */
252
+ Recaptcha?: string;
253
+ /** @maxLength 5000 */
254
+ InvisibleRecaptcha?: string;
255
+ /** @maxLength 5000 */
256
+ NoCaptcha?: string;
257
+ }
258
+ interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
259
+ /** Current state of the login or registration process. */
260
+ state?: StateTypeWithLiterals;
261
+ /** Session token. If `state` is not `SUCCESS`, this field is undefined. */
262
+ sessionToken?: string | null;
263
+ /** Token that represents the current state of the login or registration process. */
264
+ stateToken?: string | null;
265
+ /** Identity of the current member. */
266
+ identity?: Identity;
267
+ /** Additional data relevant to the login or registration process. */
268
+ additionalData?: Record<string, CustomValue>;
269
+ }
270
+ /** @oneof */
271
+ interface StateMachineResponseStateDataOneOf {
272
+ }
273
+ declare enum StateType {
274
+ /** Initial unknown state. */
275
+ UNKNOWN_STATE = "UNKNOWN_STATE",
276
+ /** Login completed successfully. */
277
+ SUCCESS = "SUCCESS",
278
+ /** Indicates that the member needs the owner to approve their registration. */
279
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
280
+ /** Indicates that the member needs to verify their email. */
281
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
282
+ /** Indicates that the `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
283
+ STATUS_CHECK = "STATUS_CHECK"
284
+ }
285
+ /** @enumType */
286
+ type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK';
287
+ interface Identity {
288
+ /**
289
+ * Identity ID.
290
+ * @format GUID
291
+ */
292
+ id?: string | null;
293
+ /**
294
+ * Revision number, which increments by 1 each time the identity is updated.
295
+ * To prevent conflicting changes,
296
+ * the current revision must be passed when updating the identity.
297
+ *
298
+ * Ignored when creating an identity.
299
+ */
300
+ revision?: string | null;
301
+ /**
302
+ * Date and time the identity was created.
303
+ * @readonly
304
+ */
305
+ createdDate?: Date | null;
306
+ /**
307
+ * Date and time the identity was updated.
308
+ * @readonly
309
+ */
310
+ updatedDate?: Date | null;
311
+ /** The identity configured connections to authenticate with. */
312
+ connections?: Connection[];
313
+ /** Identity profile. */
314
+ identityProfile?: IdentityProfile;
315
+ /**
316
+ * Additional information about the identity that can impact user access.
317
+ * This data cannot be set.
318
+ */
319
+ metadata?: Metadata;
320
+ /** Identity email address. */
321
+ email?: Email;
322
+ /** Identity's current status. */
323
+ status?: StatusV2;
324
+ /** Custom attributes. */
325
+ customAttributes?: Record<string, any> | null;
326
+ /**
327
+ * Identity verification factors.
328
+ * @maxSize 10
329
+ * @readonly
330
+ */
331
+ factors?: Factor[];
332
+ }
333
+ interface Connection extends ConnectionTypeOneOf {
334
+ /** IDP connection. */
335
+ idpConnection?: IdpConnection;
336
+ /** Authenticator connection. */
337
+ authenticatorConnection?: AuthenticatorConnection;
338
+ }
339
+ /** @oneof */
340
+ interface ConnectionTypeOneOf {
341
+ /** IDP connection. */
342
+ idpConnection?: IdpConnection;
343
+ /** Authenticator connection. */
344
+ authenticatorConnection?: AuthenticatorConnection;
345
+ }
346
+ interface IdpConnection {
347
+ /**
348
+ * IDP connection ID.
349
+ * @format GUID
350
+ */
351
+ idpConnectionId?: string;
352
+ /** IDP user ID. */
353
+ idpUserId?: string;
354
+ }
355
+ interface AuthenticatorConnection {
356
+ /**
357
+ * Authenticator connection ID.
358
+ * @format GUID
359
+ */
360
+ authenticatorConnectionId?: string;
361
+ /** Whether re-enrollment is required. */
362
+ reEnrollmentRequired?: boolean;
363
+ }
364
+ interface Metadata {
365
+ /**
366
+ * General tags. For example, `"isOwner"`.
367
+ * @readonly
368
+ */
369
+ tags?: string[];
370
+ }
371
+ interface Email {
372
+ /**
373
+ * Email address.
374
+ * @format EMAIL
375
+ */
376
+ address?: string;
377
+ /** Whether the email address is verified. */
378
+ isVerified?: boolean;
379
+ }
380
+ interface StatusV2 {
381
+ name?: StatusNameWithLiterals;
382
+ reasons?: ReasonWithLiterals[];
383
+ }
384
+ declare enum StatusName {
385
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
386
+ PENDING = "PENDING",
387
+ ACTIVE = "ACTIVE",
388
+ DELETED = "DELETED",
389
+ BLOCKED = "BLOCKED",
390
+ OFFLINE = "OFFLINE"
391
+ }
392
+ /** @enumType */
393
+ type StatusNameWithLiterals = StatusName | 'UNKNOWN_STATUS' | 'PENDING' | 'ACTIVE' | 'DELETED' | 'BLOCKED' | 'OFFLINE';
394
+ declare enum Reason {
395
+ UNKNOWN_REASON = "UNKNOWN_REASON",
396
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
397
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
398
+ }
399
+ /** @enumType */
400
+ type ReasonWithLiterals = Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED';
401
+ interface Factor {
402
+ /**
403
+ * Factor ID.
404
+ * @format GUID
405
+ */
406
+ factorId?: string;
407
+ /** Factor type. */
408
+ type?: FactorTypeWithLiterals;
409
+ /** Factor status. */
410
+ status?: StatusWithLiterals;
411
+ }
412
+ declare enum FactorType {
413
+ /** Unknown factor type. */
414
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
415
+ /** Requires a password. */
416
+ PASSWORD = "PASSWORD",
417
+ /** Requires a code sent via SMS. */
418
+ SMS = "SMS",
419
+ /** Requires a code sent by phone call. */
420
+ CALL = "CALL",
421
+ /** Requires a code sent by email. */
422
+ EMAIL = "EMAIL",
423
+ /** Requires authentication via an authenticator app. */
424
+ TOTP = "TOTP",
425
+ /** Requires authentication via a push notification. */
426
+ PUSH = "PUSH",
427
+ /** Requires authentication via WebAuthn/passkey. */
428
+ WEBAUTHN = "WEBAUTHN"
429
+ }
430
+ /** @enumType */
431
+ type FactorTypeWithLiterals = FactorType | 'UNKNOWN_FACTOR_TYPE' | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN';
432
+ declare enum Status {
433
+ /** Factor requires activation. */
434
+ INACTIVE = "INACTIVE",
435
+ /** Factor is active and can be used for authentication. */
436
+ ACTIVE = "ACTIVE",
437
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
438
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
439
+ }
440
+ /** @enumType */
441
+ type StatusWithLiterals = Status | 'INACTIVE' | 'ACTIVE' | 'REQUIRE_REENROLL';
442
+ interface CustomValue extends CustomValueValueOneOf {
443
+ /** String value. */
444
+ strValue?: string;
445
+ /** Number value. */
446
+ numValue?: number;
447
+ /** Date value. */
448
+ dateValue?: Date | null;
449
+ /** List value. */
450
+ listValue?: ListValue;
451
+ /** Map value. */
452
+ mapValue?: MapValue;
453
+ }
454
+ /** @oneof */
455
+ interface CustomValueValueOneOf {
456
+ /** String value. */
457
+ strValue?: string;
458
+ /** Number value. */
459
+ numValue?: number;
460
+ /** Date value. */
461
+ dateValue?: Date | null;
462
+ /** List value. */
463
+ listValue?: ListValue;
464
+ /** Map value. */
465
+ mapValue?: MapValue;
466
+ }
467
+ interface ListValue {
468
+ /** Custom value. */
469
+ value?: CustomValue[];
470
+ }
471
+ interface MapValue {
472
+ /** Mapped custom value. */
473
+ value?: Record<string, CustomValue>;
474
+ }
475
+ interface LoginV2Request {
476
+ /** Identifier of identity logging in. */
477
+ loginId: LoginId;
478
+ /** Password of the identity logging in. */
479
+ password?: string;
480
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
481
+ captchaTokens?: CaptchaToken[];
482
+ /** Additional data that's relevant for the flow. */
483
+ clientMetaData?: Record<string, any> | null;
484
+ }
485
+ interface ChangePasswordRequest {
486
+ /** The new password to set for the logged in user */
487
+ newPassword: string;
488
+ }
489
+ interface ChangePasswordResponse {
490
+ }
491
+ interface RawHttpResponse {
492
+ body?: Uint8Array;
493
+ statusCode?: number | null;
494
+ headers?: HeadersEntry[];
495
+ }
496
+ interface HeadersEntry {
497
+ key?: string;
498
+ value?: string;
499
+ }
500
+ interface LoginCallbackRequest {
501
+ /** state that that received on the redirect */
502
+ state?: string;
503
+ /** session token */
504
+ sessionToken?: string;
505
+ }
506
+ interface SignOnRequest {
507
+ /** the identifier of the identity */
508
+ loginId: LoginId;
509
+ /** profile of the identity */
510
+ profile?: IdentityProfile;
511
+ /** when true will mark the email of the identity as verified */
512
+ verifyEmail?: boolean;
513
+ /** when false will create a new contact instead of merging the existing contact into the identity */
514
+ mergeExistingContact?: boolean;
515
+ }
516
+ interface SignOnResponse {
517
+ /** session token for the requested identity */
518
+ sessionToken?: string;
519
+ /** The Identity of the provided login_id */
520
+ identity?: Identity;
521
+ }
522
+ /** logout request payload */
523
+ interface LogoutRequest {
524
+ /**
525
+ * redirect after logout
526
+ * @format WEB_URL
527
+ */
528
+ postLogoutRedirectUri?: string | null;
529
+ /**
530
+ * caller identifier
531
+ * @format GUID
532
+ */
533
+ clientId?: string | null;
534
+ }
535
+ interface VerifyRequest extends VerifyRequestFactorDataOneOf {
536
+ smsData?: SmsVerifyData;
537
+ callData?: CallVerifyData;
538
+ emailData?: ExternalEmailVerifyData;
539
+ totpData?: TotpVerifyData;
540
+ pushData?: PushVerifyData;
541
+ webauthnData?: WebAuthnVerifyData;
542
+ /**
543
+ * TODO: is this a reasonable maxLength?
544
+ * @maxLength 1000
545
+ */
546
+ stateToken?: string;
547
+ factorType: FactorTypeWithLiterals;
548
+ rememberThisDevice?: boolean;
549
+ }
550
+ /** @oneof */
551
+ interface VerifyRequestFactorDataOneOf {
552
+ smsData?: SmsVerifyData;
553
+ callData?: CallVerifyData;
554
+ emailData?: ExternalEmailVerifyData;
555
+ totpData?: TotpVerifyData;
556
+ pushData?: PushVerifyData;
557
+ webauthnData?: WebAuthnVerifyData;
558
+ }
559
+ interface SmsVerifyData {
560
+ /**
561
+ * @minLength 1
562
+ * @maxLength 100
563
+ */
564
+ code?: string | null;
565
+ }
566
+ interface CallVerifyData {
567
+ /**
568
+ * @minLength 1
569
+ * @maxLength 100
570
+ */
571
+ code?: string | null;
572
+ }
573
+ interface ExternalEmailVerifyData {
574
+ /**
575
+ * @minLength 1
576
+ * @maxLength 100
577
+ */
578
+ code?: string | null;
579
+ }
580
+ interface TotpVerifyData {
581
+ /**
582
+ * @minLength 1
583
+ * @maxLength 100
584
+ */
585
+ code?: string | null;
586
+ }
587
+ interface PushVerifyData {
588
+ /** @maxLength 36 */
589
+ transactionId?: string | null;
590
+ }
591
+ interface WebAuthnVerifyData {
592
+ /**
593
+ * The challenge_id from the WebAuthnChallengeData that was returned in the previous
594
+ * verification response. This will always be present when completing the WebAuthn authentication
595
+ * ceremony with the credential data from the client.
596
+ * @format GUID
597
+ */
598
+ challengeId?: string | null;
599
+ /**
600
+ * If this field is present, this is a request to complete the WebAuthn authentication
601
+ * with the credential data from the client.
602
+ *
603
+ * The credential contains a JSON string representation of a WebAuthn PublicKeyCredential
604
+ * object returned by the browser during authentication, serialized as per the WebAuthn specification.
605
+ * The SPI implementation should use this to verify the authentication assertion.
606
+ *
607
+ * Any standards-compliant WebAuthn server library should be able to process this serialized format.
608
+ * For details on the serialization format, refer to the W3C WebAuthn specification:
609
+ * https://www.w3.org/TR/webauthn-3/#dom-publickeycredential-tojson
610
+ * @maxLength 3000
611
+ */
612
+ credential?: string | null;
613
+ }
614
+
615
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
616
+ getUrl: (context: any) => string;
617
+ httpMethod: K;
618
+ path: string;
619
+ pathParams: M;
620
+ __requestType: T;
621
+ __originalRequestType: S;
622
+ __responseType: Q;
623
+ __originalResponseType: R;
624
+ };
625
+ declare function registerV2(): __PublicMethodMetaInfo<'POST', {}, RegisterV2Request$1, RegisterV2Request, StateMachineResponse$1, StateMachineResponse>;
626
+ declare function loginV2(): __PublicMethodMetaInfo<'POST', {}, LoginV2Request$1, LoginV2Request, StateMachineResponse$1, StateMachineResponse>;
627
+ declare function changePassword(): __PublicMethodMetaInfo<'POST', {}, ChangePasswordRequest$1, ChangePasswordRequest, ChangePasswordResponse$1, ChangePasswordResponse>;
628
+ declare function loginCallback(): __PublicMethodMetaInfo<'GET', {}, LoginCallbackRequest$1, LoginCallbackRequest, RawHttpResponse$1, RawHttpResponse>;
629
+ declare function signOn(): __PublicMethodMetaInfo<'POST', {}, SignOnRequest$1, SignOnRequest, SignOnResponse$1, SignOnResponse>;
630
+ declare function logout(): __PublicMethodMetaInfo<'GET', {}, LogoutRequest$1, LogoutRequest, RawHttpResponse$1, RawHttpResponse>;
631
+ declare function verify(): __PublicMethodMetaInfo<'POST', {
632
+ factorType: string;
633
+ }, VerifyRequest$1, VerifyRequest, StateMachineResponse$1, StateMachineResponse>;
634
+
635
+ export { type __PublicMethodMetaInfo, changePassword, loginCallback, loginV2, logout, registerV2, signOn, verify };