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