@wix/auto_sdk_identity_authentication 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +174 -80
  2. package/build/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +174 -80
  3. package/build/index.d.mts +71 -0
  4. package/build/index.d.ts +71 -0
  5. package/build/index.js +859 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +816 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +174 -80
  10. package/build/internal/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +174 -80
  11. package/build/internal/index.d.mts +71 -0
  12. package/build/internal/index.d.ts +71 -0
  13. package/build/internal/index.js +859 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +816 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +600 -0
  18. package/build/internal/meta.d.ts +600 -0
  19. package/build/internal/meta.js +518 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +485 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +600 -0
  24. package/build/meta.d.ts +600 -0
  25. package/build/meta.js +518 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +485 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  40. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -27
  41. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  42. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  43. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -376
  44. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  45. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  46. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  47. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  48. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  49. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -62
  50. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  51. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -131
  52. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  53. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  54. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -466
  55. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  67. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  68. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  69. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  70. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -366
  71. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  72. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  73. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  74. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  75. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  76. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  77. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  78. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -128
  79. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  80. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  81. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -433
  82. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  93. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -27
  94. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  95. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  96. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -376
  97. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  98. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  99. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  100. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  101. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  102. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -62
  103. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  104. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -131
  105. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  106. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  107. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -466
  108. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  119. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  120. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  121. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  122. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -366
  123. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  124. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  125. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  126. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  127. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  128. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  129. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  130. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -128
  131. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  132. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -895
  133. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -433
  134. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
@@ -0,0 +1,600 @@
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
+ /** 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?: PrivacyStatus;
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
+ }
97
+ declare enum PrivacyStatus {
98
+ /** No defined privacy status. */
99
+ UNDEFINED = "UNDEFINED",
100
+ /** Profile details, such as profile name and profile picture, are visible to other members. */
101
+ PUBLIC = "PUBLIC",
102
+ /** Profile details aren't visible to other members. */
103
+ PRIVATE = "PRIVATE"
104
+ }
105
+ interface CustomField {
106
+ /**
107
+ * Custom field name. The name must match one of the key properties of the objects returned by
108
+ * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
109
+ * with the `custom.` prefix removed.
110
+ */
111
+ name?: string;
112
+ /** Custom field value. */
113
+ value?: V1CustomValue;
114
+ }
115
+ interface V1CustomValue extends V1CustomValueValueOneOf {
116
+ /** String value. */
117
+ strValue?: string;
118
+ /** Number value. */
119
+ numValue?: number;
120
+ /** Date value. */
121
+ dateValue?: Date | null;
122
+ /** Array of values. */
123
+ listValue?: V1ListValue;
124
+ /** Map of values. */
125
+ mapValue?: V1MapValue;
126
+ }
127
+ /** @oneof */
128
+ interface V1CustomValueValueOneOf {
129
+ /** String value. */
130
+ strValue?: string;
131
+ /** Number value. */
132
+ numValue?: number;
133
+ /** Date value. */
134
+ dateValue?: Date | null;
135
+ /** Array of values. */
136
+ listValue?: V1ListValue;
137
+ /** Map of values. */
138
+ mapValue?: V1MapValue;
139
+ }
140
+ interface V1ListValue {
141
+ /** Custom value. */
142
+ value?: V1CustomValue[];
143
+ }
144
+ interface V1MapValue {
145
+ /** Mapped custom value. */
146
+ value?: Record<string, V1CustomValue>;
147
+ }
148
+ interface SecondaryEmail {
149
+ /**
150
+ * Email address.
151
+ * @format EMAIL
152
+ */
153
+ email?: string;
154
+ /** Email tag. */
155
+ tag?: EmailTag;
156
+ }
157
+ declare enum EmailTag {
158
+ UNTAGGED = "UNTAGGED",
159
+ MAIN = "MAIN",
160
+ HOME = "HOME",
161
+ WORK = "WORK"
162
+ }
163
+ interface Phone {
164
+ /**
165
+ * Phone country code.
166
+ * @format COUNTRY
167
+ */
168
+ countryCode?: string | null;
169
+ /**
170
+ * Phone number.
171
+ * @format PHONE
172
+ */
173
+ phone?: string;
174
+ /** Phone tag. */
175
+ tag?: PhoneTag;
176
+ }
177
+ declare enum PhoneTag {
178
+ UNTAGGED = "UNTAGGED",
179
+ MAIN = "MAIN",
180
+ HOME = "HOME",
181
+ MOBILE = "MOBILE",
182
+ WORK = "WORK",
183
+ FAX = "FAX"
184
+ }
185
+ interface AddressWrapper {
186
+ /** Address. */
187
+ address?: Address;
188
+ /** Address tag. */
189
+ tag?: AddressTag;
190
+ }
191
+ /** Physical address */
192
+ interface Address {
193
+ /**
194
+ * Country code.
195
+ * @format COUNTRY
196
+ */
197
+ country?: string | null;
198
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
199
+ subdivision?: string | null;
200
+ /** City name. */
201
+ city?: string | null;
202
+ /** Zip/postal code. */
203
+ postalCode?: string | null;
204
+ /** Main address line, usually street and number as free text. */
205
+ addressLine?: string | null;
206
+ /** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */
207
+ addressLine2?: string | null;
208
+ }
209
+ declare enum AddressTag {
210
+ UNTAGGED = "UNTAGGED",
211
+ HOME = "HOME",
212
+ WORK = "WORK",
213
+ BILLING = "BILLING",
214
+ SHIPPING = "SHIPPING"
215
+ }
216
+ interface CaptchaToken extends CaptchaTokenTokenOneOf {
217
+ /** @maxLength 5000 */
218
+ Recaptcha?: string;
219
+ /** @maxLength 5000 */
220
+ InvisibleRecaptcha?: string;
221
+ /** @maxLength 5000 */
222
+ NoCaptcha?: string;
223
+ }
224
+ /** @oneof */
225
+ interface CaptchaTokenTokenOneOf {
226
+ /** @maxLength 5000 */
227
+ Recaptcha?: string;
228
+ /** @maxLength 5000 */
229
+ InvisibleRecaptcha?: string;
230
+ /** @maxLength 5000 */
231
+ NoCaptcha?: string;
232
+ }
233
+ interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
234
+ /** Current state of the login or registration process. */
235
+ state?: StateType;
236
+ /** Session token. If `state` is not `SUCCESS`, this field is undefined. */
237
+ sessionToken?: string | null;
238
+ /** Token that represents the current state of the login or registration process. */
239
+ stateToken?: string | null;
240
+ /** Identity of the current member. */
241
+ identity?: Identity;
242
+ /** Additional data relevant to the login or registration process. */
243
+ additionalData?: Record<string, CustomValue>;
244
+ }
245
+ /** @oneof */
246
+ interface StateMachineResponseStateDataOneOf {
247
+ }
248
+ declare enum StateType {
249
+ /** Initial unknown state. */
250
+ UNKNOWN_STATE = "UNKNOWN_STATE",
251
+ /** Login completed successfully. */
252
+ SUCCESS = "SUCCESS",
253
+ /** Indicates that the member needs the owner to approve their registration. */
254
+ REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
255
+ /** Indicates that the member needs to verify their email. */
256
+ REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
257
+ /** Indicates that the `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
258
+ STATUS_CHECK = "STATUS_CHECK"
259
+ }
260
+ interface Identity {
261
+ /**
262
+ * Identity ID.
263
+ * @format GUID
264
+ */
265
+ id?: string | null;
266
+ /**
267
+ * Revision number, which increments by 1 each time the identity is updated.
268
+ * To prevent conflicting changes,
269
+ * the current revision must be passed when updating the identity.
270
+ *
271
+ * Ignored when creating an identity.
272
+ */
273
+ revision?: string | null;
274
+ /**
275
+ * Date and time the identity was created.
276
+ * @readonly
277
+ */
278
+ createdDate?: Date | null;
279
+ /**
280
+ * Date and time the identity was updated.
281
+ * @readonly
282
+ */
283
+ updatedDate?: Date | null;
284
+ /** The identity configured connections to authenticate with. */
285
+ connections?: Connection[];
286
+ /** Identity profile. */
287
+ identityProfile?: IdentityProfile;
288
+ /**
289
+ * Additional information about the identity that can impact user access.
290
+ * This data cannot be set.
291
+ */
292
+ metadata?: Metadata;
293
+ /** Identity email address. */
294
+ email?: Email;
295
+ /** Identity's current status. */
296
+ status?: StatusV2;
297
+ /** Custom attributes. */
298
+ customAttributes?: Record<string, any> | null;
299
+ /**
300
+ * Identity verification factors.
301
+ * @maxSize 10
302
+ * @readonly
303
+ */
304
+ factors?: Factor[];
305
+ }
306
+ interface Connection extends ConnectionTypeOneOf {
307
+ /** IDP connection. */
308
+ idpConnection?: IdpConnection;
309
+ /** Authenticator connection. */
310
+ authenticatorConnection?: AuthenticatorConnection;
311
+ }
312
+ /** @oneof */
313
+ interface ConnectionTypeOneOf {
314
+ /** IDP connection. */
315
+ idpConnection?: IdpConnection;
316
+ /** Authenticator connection. */
317
+ authenticatorConnection?: AuthenticatorConnection;
318
+ }
319
+ interface IdpConnection {
320
+ /**
321
+ * IDP connection ID.
322
+ * @format GUID
323
+ */
324
+ idpConnectionId?: string;
325
+ /** IDP user ID. */
326
+ idpUserId?: string;
327
+ }
328
+ interface AuthenticatorConnection {
329
+ /**
330
+ * Authenticator connection ID.
331
+ * @format GUID
332
+ */
333
+ authenticatorConnectionId?: string;
334
+ /** Whether re-enrollment is required. */
335
+ reEnrollmentRequired?: boolean;
336
+ }
337
+ interface Metadata {
338
+ /**
339
+ * General tags. For example, `"isOwner"`.
340
+ * @readonly
341
+ */
342
+ tags?: string[];
343
+ }
344
+ interface Email {
345
+ /**
346
+ * Email address.
347
+ * @format EMAIL
348
+ */
349
+ address?: string;
350
+ /** Whether the email address is verified. */
351
+ isVerified?: boolean;
352
+ }
353
+ interface StatusV2 {
354
+ name?: StatusName;
355
+ reasons?: Reason[];
356
+ }
357
+ declare enum StatusName {
358
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
359
+ PENDING = "PENDING",
360
+ ACTIVE = "ACTIVE",
361
+ DELETED = "DELETED",
362
+ BLOCKED = "BLOCKED",
363
+ OFFLINE = "OFFLINE"
364
+ }
365
+ declare enum Reason {
366
+ UNKNOWN_REASON = "UNKNOWN_REASON",
367
+ PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
368
+ PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
369
+ }
370
+ interface Factor {
371
+ /**
372
+ * Factor ID.
373
+ * @format GUID
374
+ */
375
+ factorId?: string;
376
+ /** Factor type. */
377
+ type?: FactorType;
378
+ /** Factor status. */
379
+ status?: Status;
380
+ }
381
+ declare enum FactorType {
382
+ /** Unknown factor type. */
383
+ UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
384
+ /** Requires a password. */
385
+ PASSWORD = "PASSWORD",
386
+ /** Requires a code sent via SMS. */
387
+ SMS = "SMS",
388
+ /** Requires a code sent by phone call. */
389
+ CALL = "CALL",
390
+ /** Requires a code sent by email. */
391
+ EMAIL = "EMAIL",
392
+ /** Requires authentication via an authenticator app. */
393
+ TOTP = "TOTP",
394
+ /** Requires authentication via a push notification. */
395
+ PUSH = "PUSH",
396
+ /** Requires authentication via WebAuthn/passkey. */
397
+ WEBAUTHN = "WEBAUTHN"
398
+ }
399
+ declare enum Status {
400
+ /** Factor requires activation. */
401
+ INACTIVE = "INACTIVE",
402
+ /** Factor is active and can be used for authentication. */
403
+ ACTIVE = "ACTIVE",
404
+ /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
405
+ REQUIRE_REENROLL = "REQUIRE_REENROLL"
406
+ }
407
+ interface CustomValue extends CustomValueValueOneOf {
408
+ /** String value. */
409
+ strValue?: string;
410
+ /** Number value. */
411
+ numValue?: number;
412
+ /** Date value. */
413
+ dateValue?: Date | null;
414
+ /** List value. */
415
+ listValue?: ListValue;
416
+ /** Map value. */
417
+ mapValue?: MapValue;
418
+ }
419
+ /** @oneof */
420
+ interface CustomValueValueOneOf {
421
+ /** String value. */
422
+ strValue?: string;
423
+ /** Number value. */
424
+ numValue?: number;
425
+ /** Date value. */
426
+ dateValue?: Date | null;
427
+ /** List value. */
428
+ listValue?: ListValue;
429
+ /** Map value. */
430
+ mapValue?: MapValue;
431
+ }
432
+ interface ListValue {
433
+ /** Custom value. */
434
+ value?: CustomValue[];
435
+ }
436
+ interface MapValue {
437
+ /** Mapped custom value. */
438
+ value?: Record<string, CustomValue>;
439
+ }
440
+ interface LoginV2Request {
441
+ /** Identifier of identity logging in. */
442
+ loginId: LoginId;
443
+ /** Password of the identity logging in. */
444
+ password?: string;
445
+ /** CAPTCHA tokens, when CAPTCHA setting is on. */
446
+ captchaTokens?: CaptchaToken[];
447
+ /** Additional data that's relevant for the flow. */
448
+ clientMetaData?: Record<string, any> | null;
449
+ }
450
+ interface ChangePasswordRequest {
451
+ /** The new password to set for the logged in user */
452
+ newPassword: string;
453
+ }
454
+ interface ChangePasswordResponse {
455
+ }
456
+ interface RawHttpResponse {
457
+ body?: Uint8Array;
458
+ statusCode?: number | null;
459
+ headers?: HeadersEntry[];
460
+ }
461
+ interface HeadersEntry {
462
+ key?: string;
463
+ value?: string;
464
+ }
465
+ interface LoginCallbackRequest {
466
+ /** state that that received on the redirect */
467
+ state?: string;
468
+ /** session token */
469
+ sessionToken?: string;
470
+ }
471
+ interface SignOnRequest {
472
+ /** the identifier of the identity */
473
+ loginId: LoginId;
474
+ /** profile of the identity */
475
+ profile?: IdentityProfile;
476
+ /** when true will mark the email of the identity as verified */
477
+ verifyEmail?: boolean;
478
+ /** when false will create a new contact instead of merging the existing contact into the identity */
479
+ mergeExistingContact?: boolean;
480
+ }
481
+ interface SignOnResponse {
482
+ /** session token for the requested identity */
483
+ sessionToken?: string;
484
+ /** The Identity of the provided login_id */
485
+ identity?: Identity;
486
+ }
487
+ /** logout request payload */
488
+ interface LogoutRequest {
489
+ /**
490
+ * redirect after logout
491
+ * @format WEB_URL
492
+ */
493
+ postLogoutRedirectUri?: string | null;
494
+ /**
495
+ * caller identifier
496
+ * @format GUID
497
+ */
498
+ clientId?: string | null;
499
+ }
500
+ interface VerifyRequest extends VerifyRequestFactorDataOneOf {
501
+ smsData?: SmsVerifyData;
502
+ callData?: CallVerifyData;
503
+ emailData?: ExternalEmailVerifyData;
504
+ totpData?: TotpVerifyData;
505
+ pushData?: PushVerifyData;
506
+ webauthnData?: WebAuthnVerifyData;
507
+ /**
508
+ * TODO: is this a reasonable maxLength?
509
+ * @maxLength 1000
510
+ */
511
+ stateToken?: string;
512
+ factorType: FactorType;
513
+ rememberThisDevice?: boolean;
514
+ }
515
+ /** @oneof */
516
+ interface VerifyRequestFactorDataOneOf {
517
+ smsData?: SmsVerifyData;
518
+ callData?: CallVerifyData;
519
+ emailData?: ExternalEmailVerifyData;
520
+ totpData?: TotpVerifyData;
521
+ pushData?: PushVerifyData;
522
+ webauthnData?: WebAuthnVerifyData;
523
+ }
524
+ interface SmsVerifyData {
525
+ /**
526
+ * @minLength 1
527
+ * @maxLength 100
528
+ */
529
+ code?: string | null;
530
+ }
531
+ interface CallVerifyData {
532
+ /**
533
+ * @minLength 1
534
+ * @maxLength 100
535
+ */
536
+ code?: string | null;
537
+ }
538
+ interface ExternalEmailVerifyData {
539
+ /**
540
+ * @minLength 1
541
+ * @maxLength 100
542
+ */
543
+ code?: string | null;
544
+ }
545
+ interface TotpVerifyData {
546
+ /**
547
+ * @minLength 1
548
+ * @maxLength 100
549
+ */
550
+ code?: string | null;
551
+ }
552
+ interface PushVerifyData {
553
+ /** @maxLength 36 */
554
+ transactionId?: string | null;
555
+ }
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 };