@wix/auto_sdk_identity_authentication 1.0.0
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/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +25 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +334 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +161 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +60 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts +659 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +106 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +773 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +441 -0
- package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +11 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +324 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +128 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +39 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.types.d.ts +659 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +103 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +773 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +408 -0
- package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +25 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +334 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +161 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +60 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts +659 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +106 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +773 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +441 -0
- package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +11 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +324 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +128 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +39 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.d.ts +659 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +103 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +773 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +408 -0
- package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts
ADDED
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
export interface Authentication {
|
|
2
|
+
}
|
|
3
|
+
export 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
|
+
export interface LoginId extends LoginIdTypeOneOf {
|
|
16
|
+
/** Login email address. */
|
|
17
|
+
email?: string;
|
|
18
|
+
}
|
|
19
|
+
/** @oneof */
|
|
20
|
+
export interface LoginIdTypeOneOf {
|
|
21
|
+
/** Login email address. */
|
|
22
|
+
email?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IdentityProfile {
|
|
25
|
+
/** Profile first name. */
|
|
26
|
+
firstName?: string | null;
|
|
27
|
+
/** Profile last name. */
|
|
28
|
+
lastName?: string | null;
|
|
29
|
+
/** Profile nickname. */
|
|
30
|
+
nickname?: string | null;
|
|
31
|
+
/** Profile picture URL. */
|
|
32
|
+
picture?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Deprecated. Use `secondaryEmails` instead.
|
|
35
|
+
* @deprecated Deprecated. Use `secondaryEmails` instead.
|
|
36
|
+
* @replacedBy secondary_emails
|
|
37
|
+
* @targetRemovalDate 2023-11-01
|
|
38
|
+
*/
|
|
39
|
+
emails?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Deprecated. Use `phonesV2` instead.
|
|
42
|
+
* @deprecated Deprecated. Use `phonesV2` instead.
|
|
43
|
+
* @replacedBy phones_v2
|
|
44
|
+
* @targetRemovalDate 2023-11-01
|
|
45
|
+
*/
|
|
46
|
+
phones?: string[];
|
|
47
|
+
/** List of profile labels. */
|
|
48
|
+
labels?: string[];
|
|
49
|
+
/** Profile language. */
|
|
50
|
+
language?: string | null;
|
|
51
|
+
/** Profile privacy status. */
|
|
52
|
+
privacyStatus?: PrivacyStatus;
|
|
53
|
+
/**
|
|
54
|
+
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
55
|
+
* are used to store additional information about your site or app's contacts.
|
|
56
|
+
*/
|
|
57
|
+
customFields?: CustomField[];
|
|
58
|
+
/** List of profile email addresses. */
|
|
59
|
+
secondaryEmails?: SecondaryEmail[];
|
|
60
|
+
/** List of profile phone numbers. */
|
|
61
|
+
phonesV2?: Phone[];
|
|
62
|
+
/** List of profile physical addresses. */
|
|
63
|
+
addresses?: AddressWrapper[];
|
|
64
|
+
/** Company name. */
|
|
65
|
+
company?: string | null;
|
|
66
|
+
/** Position within company. */
|
|
67
|
+
position?: string | null;
|
|
68
|
+
/** Profile birthdate in `YYYY-MM-DD` format. */
|
|
69
|
+
birthdate?: string | null;
|
|
70
|
+
/** Profile slug. */
|
|
71
|
+
slug?: string | null;
|
|
72
|
+
}
|
|
73
|
+
export declare enum PrivacyStatus {
|
|
74
|
+
/** No defined privacy status. */
|
|
75
|
+
UNDEFINED = "UNDEFINED",
|
|
76
|
+
/** Profile details, such as profile name and profile picture, are visible to other members. */
|
|
77
|
+
PUBLIC = "PUBLIC",
|
|
78
|
+
/** Profile details aren't visible to other members. */
|
|
79
|
+
PRIVATE = "PRIVATE"
|
|
80
|
+
}
|
|
81
|
+
export interface CustomField {
|
|
82
|
+
/**
|
|
83
|
+
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
84
|
+
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
85
|
+
* with the `custom.` prefix removed.
|
|
86
|
+
*/
|
|
87
|
+
name?: string;
|
|
88
|
+
/** Custom field value. */
|
|
89
|
+
value?: V1CustomValue;
|
|
90
|
+
}
|
|
91
|
+
export interface V1CustomValue extends V1CustomValueValueOneOf {
|
|
92
|
+
/** String value. */
|
|
93
|
+
strValue?: string;
|
|
94
|
+
/** Number value. */
|
|
95
|
+
numValue?: number;
|
|
96
|
+
/** Date value. */
|
|
97
|
+
dateValue?: Date | null;
|
|
98
|
+
/** Array of values. */
|
|
99
|
+
listValue?: V1ListValue;
|
|
100
|
+
/** Map of values. */
|
|
101
|
+
mapValue?: V1MapValue;
|
|
102
|
+
}
|
|
103
|
+
/** @oneof */
|
|
104
|
+
export interface V1CustomValueValueOneOf {
|
|
105
|
+
/** String value. */
|
|
106
|
+
strValue?: string;
|
|
107
|
+
/** Number value. */
|
|
108
|
+
numValue?: number;
|
|
109
|
+
/** Date value. */
|
|
110
|
+
dateValue?: Date | null;
|
|
111
|
+
/** Array of values. */
|
|
112
|
+
listValue?: V1ListValue;
|
|
113
|
+
/** Map of values. */
|
|
114
|
+
mapValue?: V1MapValue;
|
|
115
|
+
}
|
|
116
|
+
export interface V1ListValue {
|
|
117
|
+
/** Custom value. */
|
|
118
|
+
value?: V1CustomValue[];
|
|
119
|
+
}
|
|
120
|
+
export interface V1MapValue {
|
|
121
|
+
/** Mapped custom value. */
|
|
122
|
+
value?: Record<string, V1CustomValue>;
|
|
123
|
+
}
|
|
124
|
+
export interface SecondaryEmail {
|
|
125
|
+
/** Email address. */
|
|
126
|
+
email?: string;
|
|
127
|
+
/** Email tag. */
|
|
128
|
+
tag?: EmailTag;
|
|
129
|
+
}
|
|
130
|
+
export declare enum EmailTag {
|
|
131
|
+
UNTAGGED = "UNTAGGED",
|
|
132
|
+
MAIN = "MAIN",
|
|
133
|
+
HOME = "HOME",
|
|
134
|
+
WORK = "WORK"
|
|
135
|
+
}
|
|
136
|
+
export interface Phone {
|
|
137
|
+
/** Phone country code. */
|
|
138
|
+
countryCode?: string | null;
|
|
139
|
+
/** Phone number. */
|
|
140
|
+
phone?: string;
|
|
141
|
+
/** Phone tag. */
|
|
142
|
+
tag?: PhoneTag;
|
|
143
|
+
}
|
|
144
|
+
export declare enum PhoneTag {
|
|
145
|
+
UNTAGGED = "UNTAGGED",
|
|
146
|
+
MAIN = "MAIN",
|
|
147
|
+
HOME = "HOME",
|
|
148
|
+
MOBILE = "MOBILE",
|
|
149
|
+
WORK = "WORK",
|
|
150
|
+
FAX = "FAX"
|
|
151
|
+
}
|
|
152
|
+
export interface AddressWrapper {
|
|
153
|
+
/** Address. */
|
|
154
|
+
address?: Address;
|
|
155
|
+
/** Address tag. */
|
|
156
|
+
tag?: AddressTag;
|
|
157
|
+
}
|
|
158
|
+
/** Physical address */
|
|
159
|
+
export interface Address {
|
|
160
|
+
/** Country code. */
|
|
161
|
+
country?: string | null;
|
|
162
|
+
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
163
|
+
subdivision?: string | null;
|
|
164
|
+
/** City name. */
|
|
165
|
+
city?: string | null;
|
|
166
|
+
/** Zip/postal code. */
|
|
167
|
+
postalCode?: string | null;
|
|
168
|
+
/** Main address line, usually street and number as free text. */
|
|
169
|
+
addressLine1?: string | null;
|
|
170
|
+
/** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */
|
|
171
|
+
addressLine2?: string | null;
|
|
172
|
+
}
|
|
173
|
+
export declare enum AddressTag {
|
|
174
|
+
UNTAGGED = "UNTAGGED",
|
|
175
|
+
HOME = "HOME",
|
|
176
|
+
WORK = "WORK",
|
|
177
|
+
BILLING = "BILLING",
|
|
178
|
+
SHIPPING = "SHIPPING"
|
|
179
|
+
}
|
|
180
|
+
export interface CaptchaToken extends CaptchaTokenTokenOneOf {
|
|
181
|
+
Recaptcha?: string;
|
|
182
|
+
InvisibleRecaptcha?: string;
|
|
183
|
+
NoCaptcha?: string;
|
|
184
|
+
}
|
|
185
|
+
/** @oneof */
|
|
186
|
+
export interface CaptchaTokenTokenOneOf {
|
|
187
|
+
Recaptcha?: string;
|
|
188
|
+
InvisibleRecaptcha?: string;
|
|
189
|
+
NoCaptcha?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
|
|
192
|
+
/** Current state of the login or registration process. */
|
|
193
|
+
state?: StateType;
|
|
194
|
+
/** Session token. If `state` is not `SUCCESS`, this field is undefined. */
|
|
195
|
+
sessionToken?: string | null;
|
|
196
|
+
/** Token that represents the current state of the login or registration process. */
|
|
197
|
+
stateToken?: string | null;
|
|
198
|
+
/** Identity of the current member. */
|
|
199
|
+
identity?: Identity;
|
|
200
|
+
/** Additional data relevant to the login or registration process. */
|
|
201
|
+
additionalData?: Record<string, CustomValue>;
|
|
202
|
+
}
|
|
203
|
+
/** @oneof */
|
|
204
|
+
export interface StateMachineResponseStateDataOneOf {
|
|
205
|
+
}
|
|
206
|
+
export declare enum StateType {
|
|
207
|
+
/** Initial unknown state. */
|
|
208
|
+
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
209
|
+
/** Login completed successfully. */
|
|
210
|
+
SUCCESS = "SUCCESS",
|
|
211
|
+
/** Indicates that the member needs the owner to approve their registration. */
|
|
212
|
+
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
213
|
+
/** Indicates that the member needs to verify their email. */
|
|
214
|
+
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
215
|
+
/** Indicates that the `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
|
|
216
|
+
STATUS_CHECK = "STATUS_CHECK"
|
|
217
|
+
}
|
|
218
|
+
export interface Identity {
|
|
219
|
+
/** Identity ID. */
|
|
220
|
+
_id?: string | null;
|
|
221
|
+
/**
|
|
222
|
+
* Revision number, which increments by 1 each time the identity is updated.
|
|
223
|
+
* To prevent conflicting changes,
|
|
224
|
+
* the current revision must be passed when updating the identity.
|
|
225
|
+
*
|
|
226
|
+
* Ignored when creating an identity.
|
|
227
|
+
*/
|
|
228
|
+
revision?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Date and time the identity was created.
|
|
231
|
+
* @readonly
|
|
232
|
+
*/
|
|
233
|
+
_createdDate?: Date | null;
|
|
234
|
+
/**
|
|
235
|
+
* Date and time the identity was updated.
|
|
236
|
+
* @readonly
|
|
237
|
+
*/
|
|
238
|
+
_updatedDate?: Date | null;
|
|
239
|
+
/** The identity configured connections to authenticate with. */
|
|
240
|
+
connections?: Connection[];
|
|
241
|
+
/** Identity profile. */
|
|
242
|
+
identityProfile?: IdentityProfile;
|
|
243
|
+
/**
|
|
244
|
+
* Additional information about the identity that can impact user access.
|
|
245
|
+
* This data cannot be set.
|
|
246
|
+
*/
|
|
247
|
+
metadata?: Metadata;
|
|
248
|
+
/** Identity email address. */
|
|
249
|
+
email?: Email;
|
|
250
|
+
/** Identity's current status. */
|
|
251
|
+
status?: StatusV2;
|
|
252
|
+
/** Custom attributes. */
|
|
253
|
+
customAttributes?: Record<string, any> | null;
|
|
254
|
+
/**
|
|
255
|
+
* Identity verification factors.
|
|
256
|
+
* @readonly
|
|
257
|
+
*/
|
|
258
|
+
factors?: Factor[];
|
|
259
|
+
}
|
|
260
|
+
export interface Connection extends ConnectionTypeOneOf {
|
|
261
|
+
/** IDP connection. */
|
|
262
|
+
idpConnection?: IdpConnection;
|
|
263
|
+
/** Authenticator connection. */
|
|
264
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
265
|
+
}
|
|
266
|
+
/** @oneof */
|
|
267
|
+
export interface ConnectionTypeOneOf {
|
|
268
|
+
/** IDP connection. */
|
|
269
|
+
idpConnection?: IdpConnection;
|
|
270
|
+
/** Authenticator connection. */
|
|
271
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
272
|
+
}
|
|
273
|
+
export interface IdpConnection {
|
|
274
|
+
/** IDP connection ID. */
|
|
275
|
+
idpConnectionId?: string;
|
|
276
|
+
/** IDP user ID. */
|
|
277
|
+
idpUserId?: string;
|
|
278
|
+
}
|
|
279
|
+
export interface AuthenticatorConnection {
|
|
280
|
+
/** Authenticator connection ID. */
|
|
281
|
+
authenticatorConnectionId?: string;
|
|
282
|
+
/** Whether re-enrollment is required. */
|
|
283
|
+
reEnrollmentRequired?: boolean;
|
|
284
|
+
}
|
|
285
|
+
export interface Metadata {
|
|
286
|
+
/**
|
|
287
|
+
* General tags. For example, `"isOwner"`.
|
|
288
|
+
* @readonly
|
|
289
|
+
*/
|
|
290
|
+
tags?: string[];
|
|
291
|
+
}
|
|
292
|
+
export interface Email {
|
|
293
|
+
/** Email address. */
|
|
294
|
+
address?: string;
|
|
295
|
+
/** Whether the email address is verified. */
|
|
296
|
+
isVerified?: boolean;
|
|
297
|
+
}
|
|
298
|
+
export interface StatusV2 {
|
|
299
|
+
name?: StatusName;
|
|
300
|
+
reasons?: Reason[];
|
|
301
|
+
}
|
|
302
|
+
export declare enum StatusName {
|
|
303
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
304
|
+
PENDING = "PENDING",
|
|
305
|
+
ACTIVE = "ACTIVE",
|
|
306
|
+
DELETED = "DELETED",
|
|
307
|
+
BLOCKED = "BLOCKED",
|
|
308
|
+
OFFLINE = "OFFLINE"
|
|
309
|
+
}
|
|
310
|
+
export declare enum Reason {
|
|
311
|
+
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
312
|
+
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
313
|
+
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
314
|
+
}
|
|
315
|
+
export interface Factor {
|
|
316
|
+
/** Factor ID. */
|
|
317
|
+
factorId?: string;
|
|
318
|
+
/** Factor type. */
|
|
319
|
+
type?: FactorType;
|
|
320
|
+
/** Factor status. */
|
|
321
|
+
status?: Status;
|
|
322
|
+
}
|
|
323
|
+
export declare enum FactorType {
|
|
324
|
+
/** Unknown factor type. */
|
|
325
|
+
UNKNOWN_FACTOR_TYPE = "UNKNOWN_FACTOR_TYPE",
|
|
326
|
+
/** Requires a password. */
|
|
327
|
+
PASSWORD = "PASSWORD",
|
|
328
|
+
/** Requires a code sent via SMS. */
|
|
329
|
+
SMS = "SMS",
|
|
330
|
+
/** Requires a code sent by phone call. */
|
|
331
|
+
CALL = "CALL",
|
|
332
|
+
/** Requires a code sent by email. */
|
|
333
|
+
EMAIL = "EMAIL",
|
|
334
|
+
/** Requires authentication via an authenticator app. */
|
|
335
|
+
TOTP = "TOTP",
|
|
336
|
+
/** Requires authentication via a push notification. */
|
|
337
|
+
PUSH = "PUSH"
|
|
338
|
+
}
|
|
339
|
+
export declare enum Status {
|
|
340
|
+
/** Factor requires activation. */
|
|
341
|
+
INACTIVE = "INACTIVE",
|
|
342
|
+
/** Factor is active and can be used for authentication. */
|
|
343
|
+
ACTIVE = "ACTIVE",
|
|
344
|
+
/** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */
|
|
345
|
+
REQUIRE_REENROLL = "REQUIRE_REENROLL"
|
|
346
|
+
}
|
|
347
|
+
export interface CustomValue extends CustomValueValueOneOf {
|
|
348
|
+
/** String value. */
|
|
349
|
+
strValue?: string;
|
|
350
|
+
/** Number value. */
|
|
351
|
+
numValue?: number;
|
|
352
|
+
/** Date value. */
|
|
353
|
+
dateValue?: Date | null;
|
|
354
|
+
/** List value. */
|
|
355
|
+
listValue?: ListValue;
|
|
356
|
+
/** Map value. */
|
|
357
|
+
mapValue?: MapValue;
|
|
358
|
+
}
|
|
359
|
+
/** @oneof */
|
|
360
|
+
export interface CustomValueValueOneOf {
|
|
361
|
+
/** String value. */
|
|
362
|
+
strValue?: string;
|
|
363
|
+
/** Number value. */
|
|
364
|
+
numValue?: number;
|
|
365
|
+
/** Date value. */
|
|
366
|
+
dateValue?: Date | null;
|
|
367
|
+
/** List value. */
|
|
368
|
+
listValue?: ListValue;
|
|
369
|
+
/** Map value. */
|
|
370
|
+
mapValue?: MapValue;
|
|
371
|
+
}
|
|
372
|
+
export interface ListValue {
|
|
373
|
+
/** Custom value. */
|
|
374
|
+
value?: CustomValue[];
|
|
375
|
+
}
|
|
376
|
+
export interface MapValue {
|
|
377
|
+
/** Mapped custom value. */
|
|
378
|
+
value?: Record<string, CustomValue>;
|
|
379
|
+
}
|
|
380
|
+
export interface RequireMfaData {
|
|
381
|
+
/** The factors available for the user to perform the required MFA. */
|
|
382
|
+
availableFactors?: V1Factor[];
|
|
383
|
+
/** The reason the user is required to perform MFA. */
|
|
384
|
+
reason?: MfaReason;
|
|
385
|
+
}
|
|
386
|
+
export interface V1Factor {
|
|
387
|
+
/** Type of verification factor. */
|
|
388
|
+
factorType?: FactorType;
|
|
389
|
+
}
|
|
390
|
+
export declare enum MfaReason {
|
|
391
|
+
UNKNOWN_MFA_REASON = "UNKNOWN_MFA_REASON",
|
|
392
|
+
/** Mfa is required due to user settings */
|
|
393
|
+
USER_SETTINGS = "USER_SETTINGS",
|
|
394
|
+
/** Mfa is required due to high risk login */
|
|
395
|
+
HIGH_RISK_LOGIN = "HIGH_RISK_LOGIN"
|
|
396
|
+
}
|
|
397
|
+
export interface MfaChallengeData {
|
|
398
|
+
/** Type of verifation factor. */
|
|
399
|
+
factorType?: FactorType;
|
|
400
|
+
verificationChallengeData?: VerificationChallenge;
|
|
401
|
+
/** Factors types the member can choose from to verify themselves. */
|
|
402
|
+
availableFactors?: V1Factor[];
|
|
403
|
+
}
|
|
404
|
+
export interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
|
|
405
|
+
pushData?: PushChallengeData;
|
|
406
|
+
hint?: string | null;
|
|
407
|
+
}
|
|
408
|
+
/** @oneof */
|
|
409
|
+
export interface VerificationChallengeFactorChallengeDataOneOf {
|
|
410
|
+
pushData?: PushChallengeData;
|
|
411
|
+
}
|
|
412
|
+
export interface PushChallengeData {
|
|
413
|
+
/**
|
|
414
|
+
* This should be tied to a specific push notification.
|
|
415
|
+
* It will be sent in subsequent requests to verify the factor.
|
|
416
|
+
*/
|
|
417
|
+
transactionId?: string;
|
|
418
|
+
}
|
|
419
|
+
export interface LoginV2Request {
|
|
420
|
+
/** Identifier of identity logging in. */
|
|
421
|
+
loginId: LoginId;
|
|
422
|
+
/** Password of the identity logging in. */
|
|
423
|
+
password?: string;
|
|
424
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
425
|
+
captchaTokens?: CaptchaToken[];
|
|
426
|
+
/** Additional data that's relevant for the flow. */
|
|
427
|
+
clientMetaData?: Record<string, any> | null;
|
|
428
|
+
}
|
|
429
|
+
export interface ChangePasswordRequest {
|
|
430
|
+
/** The new password to set for the logged in user */
|
|
431
|
+
newPassword: string;
|
|
432
|
+
}
|
|
433
|
+
export interface ChangePasswordResponse {
|
|
434
|
+
}
|
|
435
|
+
export interface LoginWithIdpConnectionRequest {
|
|
436
|
+
/** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
|
|
437
|
+
idpConnectionId?: string;
|
|
438
|
+
/** The id of the tenant the caller wants to login into */
|
|
439
|
+
tenantId?: string;
|
|
440
|
+
/** The type of the tenant the caller wants to login into */
|
|
441
|
+
tenantType?: TenantType;
|
|
442
|
+
customPayload?: Record<string, string>;
|
|
443
|
+
/**
|
|
444
|
+
* This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
|
|
445
|
+
* The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
|
|
446
|
+
* Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
|
|
447
|
+
*/
|
|
448
|
+
sessionId?: string;
|
|
449
|
+
encryptionKey?: string;
|
|
450
|
+
visitorId?: string | null;
|
|
451
|
+
bsi?: string | null;
|
|
452
|
+
}
|
|
453
|
+
export declare enum TenantType {
|
|
454
|
+
UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
|
|
455
|
+
ACCOUNT = "ACCOUNT",
|
|
456
|
+
SITE = "SITE",
|
|
457
|
+
ROOT = "ROOT"
|
|
458
|
+
}
|
|
459
|
+
export interface RawHttpResponse {
|
|
460
|
+
body?: Uint8Array;
|
|
461
|
+
statusCode?: number | null;
|
|
462
|
+
headers?: HeadersEntry[];
|
|
463
|
+
}
|
|
464
|
+
export interface HeadersEntry {
|
|
465
|
+
key?: string;
|
|
466
|
+
value?: string;
|
|
467
|
+
}
|
|
468
|
+
export interface RawHttpRequest {
|
|
469
|
+
body?: Uint8Array;
|
|
470
|
+
pathParams?: PathParametersEntry[];
|
|
471
|
+
queryParams?: QueryParametersEntry[];
|
|
472
|
+
headers?: HeadersEntry[];
|
|
473
|
+
method?: string;
|
|
474
|
+
rawPath?: string;
|
|
475
|
+
rawQuery?: string;
|
|
476
|
+
}
|
|
477
|
+
export interface PathParametersEntry {
|
|
478
|
+
key?: string;
|
|
479
|
+
value?: string;
|
|
480
|
+
}
|
|
481
|
+
export interface QueryParametersEntry {
|
|
482
|
+
key?: string;
|
|
483
|
+
value?: string;
|
|
484
|
+
}
|
|
485
|
+
export interface LoginCallbackRequest {
|
|
486
|
+
/** state that that received on the redirect */
|
|
487
|
+
state?: string;
|
|
488
|
+
/** session token */
|
|
489
|
+
sessionToken?: string;
|
|
490
|
+
}
|
|
491
|
+
export interface LoginWithIdpConnectionTokenParamsRequest {
|
|
492
|
+
/** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData) */
|
|
493
|
+
idpConnectionId?: string;
|
|
494
|
+
/** A set of fields that are required for the connection to be able to identify and authenticate the user */
|
|
495
|
+
tokenParams?: Record<string, string>;
|
|
496
|
+
}
|
|
497
|
+
export interface SignOnRequest {
|
|
498
|
+
/** the identifier of the identity */
|
|
499
|
+
loginId: LoginId;
|
|
500
|
+
/** profile of the identity */
|
|
501
|
+
profile?: IdentityProfile;
|
|
502
|
+
/** when true will mark the email of the identity as verified */
|
|
503
|
+
verifyEmail?: boolean;
|
|
504
|
+
/** when false will create a new contact instead of merging the existing contact into the identity */
|
|
505
|
+
mergeExistingContact?: boolean;
|
|
506
|
+
}
|
|
507
|
+
export interface SignOnResponse {
|
|
508
|
+
/** session token for the requested identity */
|
|
509
|
+
sessionToken?: string;
|
|
510
|
+
/** The Identity of the provided login_id */
|
|
511
|
+
identity?: Identity;
|
|
512
|
+
}
|
|
513
|
+
/** logout request payload */
|
|
514
|
+
export interface LogoutRequest {
|
|
515
|
+
/** redirect after logout */
|
|
516
|
+
postLogoutRedirectUri?: string | null;
|
|
517
|
+
/** caller identifier */
|
|
518
|
+
clientId?: string | null;
|
|
519
|
+
}
|
|
520
|
+
export interface VerifyRequest extends VerifyRequestFactorDataOneOf {
|
|
521
|
+
smsData?: SmsVerifyData;
|
|
522
|
+
callData?: CallVerifyData;
|
|
523
|
+
emailData?: ExternalEmailVerifyData;
|
|
524
|
+
totpData?: TotpVerifyData;
|
|
525
|
+
pushData?: PushVerifyData;
|
|
526
|
+
/** TODO: is this a reasonable maxLength? */
|
|
527
|
+
stateToken?: string;
|
|
528
|
+
factorType: FactorType;
|
|
529
|
+
rememberThisDevice?: boolean;
|
|
530
|
+
}
|
|
531
|
+
/** @oneof */
|
|
532
|
+
export interface VerifyRequestFactorDataOneOf {
|
|
533
|
+
smsData?: SmsVerifyData;
|
|
534
|
+
callData?: CallVerifyData;
|
|
535
|
+
emailData?: ExternalEmailVerifyData;
|
|
536
|
+
totpData?: TotpVerifyData;
|
|
537
|
+
pushData?: PushVerifyData;
|
|
538
|
+
}
|
|
539
|
+
export interface SmsVerifyData {
|
|
540
|
+
code?: string | null;
|
|
541
|
+
}
|
|
542
|
+
export interface CallVerifyData {
|
|
543
|
+
code?: string | null;
|
|
544
|
+
}
|
|
545
|
+
export interface ExternalEmailVerifyData {
|
|
546
|
+
code?: string | null;
|
|
547
|
+
}
|
|
548
|
+
export interface TotpVerifyData {
|
|
549
|
+
code?: string | null;
|
|
550
|
+
}
|
|
551
|
+
export interface PushVerifyData {
|
|
552
|
+
transactionId?: string | null;
|
|
553
|
+
}
|
|
554
|
+
interface V1FactorNonNullableFields {
|
|
555
|
+
factorType: FactorType;
|
|
556
|
+
}
|
|
557
|
+
interface RequireMfaDataNonNullableFields {
|
|
558
|
+
availableFactors: V1FactorNonNullableFields[];
|
|
559
|
+
reason: MfaReason;
|
|
560
|
+
}
|
|
561
|
+
interface PushChallengeDataNonNullableFields {
|
|
562
|
+
transactionId: string;
|
|
563
|
+
}
|
|
564
|
+
interface VerificationChallengeNonNullableFields {
|
|
565
|
+
pushData?: PushChallengeDataNonNullableFields;
|
|
566
|
+
}
|
|
567
|
+
interface MfaChallengeDataNonNullableFields {
|
|
568
|
+
factorType: FactorType;
|
|
569
|
+
verificationChallengeData?: VerificationChallengeNonNullableFields;
|
|
570
|
+
availableFactors: V1FactorNonNullableFields[];
|
|
571
|
+
}
|
|
572
|
+
interface IdpConnectionNonNullableFields {
|
|
573
|
+
idpConnectionId: string;
|
|
574
|
+
idpUserId: string;
|
|
575
|
+
}
|
|
576
|
+
interface AuthenticatorConnectionNonNullableFields {
|
|
577
|
+
authenticatorConnectionId: string;
|
|
578
|
+
reEnrollmentRequired: boolean;
|
|
579
|
+
}
|
|
580
|
+
interface ConnectionNonNullableFields {
|
|
581
|
+
idpConnection?: IdpConnectionNonNullableFields;
|
|
582
|
+
authenticatorConnection?: AuthenticatorConnectionNonNullableFields;
|
|
583
|
+
}
|
|
584
|
+
interface V1ListValueNonNullableFields {
|
|
585
|
+
value: V1CustomValueNonNullableFields[];
|
|
586
|
+
}
|
|
587
|
+
interface V1CustomValueNonNullableFields {
|
|
588
|
+
strValue: string;
|
|
589
|
+
numValue: number;
|
|
590
|
+
listValue?: V1ListValueNonNullableFields;
|
|
591
|
+
}
|
|
592
|
+
interface CustomFieldNonNullableFields {
|
|
593
|
+
name: string;
|
|
594
|
+
value?: V1CustomValueNonNullableFields;
|
|
595
|
+
}
|
|
596
|
+
interface SecondaryEmailNonNullableFields {
|
|
597
|
+
email: string;
|
|
598
|
+
tag: EmailTag;
|
|
599
|
+
}
|
|
600
|
+
interface PhoneNonNullableFields {
|
|
601
|
+
phone: string;
|
|
602
|
+
tag: PhoneTag;
|
|
603
|
+
}
|
|
604
|
+
interface AddressWrapperNonNullableFields {
|
|
605
|
+
tag: AddressTag;
|
|
606
|
+
}
|
|
607
|
+
interface IdentityProfileNonNullableFields {
|
|
608
|
+
emails: string[];
|
|
609
|
+
phones: string[];
|
|
610
|
+
labels: string[];
|
|
611
|
+
privacyStatus: PrivacyStatus;
|
|
612
|
+
customFields: CustomFieldNonNullableFields[];
|
|
613
|
+
secondaryEmails: SecondaryEmailNonNullableFields[];
|
|
614
|
+
phonesV2: PhoneNonNullableFields[];
|
|
615
|
+
addresses: AddressWrapperNonNullableFields[];
|
|
616
|
+
}
|
|
617
|
+
interface MetadataNonNullableFields {
|
|
618
|
+
tags: string[];
|
|
619
|
+
}
|
|
620
|
+
interface EmailNonNullableFields {
|
|
621
|
+
address: string;
|
|
622
|
+
isVerified: boolean;
|
|
623
|
+
}
|
|
624
|
+
interface StatusV2NonNullableFields {
|
|
625
|
+
name: StatusName;
|
|
626
|
+
reasons: Reason[];
|
|
627
|
+
}
|
|
628
|
+
interface FactorNonNullableFields {
|
|
629
|
+
factorId: string;
|
|
630
|
+
type: FactorType;
|
|
631
|
+
status: Status;
|
|
632
|
+
}
|
|
633
|
+
interface IdentityNonNullableFields {
|
|
634
|
+
connections: ConnectionNonNullableFields[];
|
|
635
|
+
identityProfile?: IdentityProfileNonNullableFields;
|
|
636
|
+
metadata?: MetadataNonNullableFields;
|
|
637
|
+
email?: EmailNonNullableFields;
|
|
638
|
+
status?: StatusV2NonNullableFields;
|
|
639
|
+
factors: FactorNonNullableFields[];
|
|
640
|
+
}
|
|
641
|
+
export interface StateMachineResponseNonNullableFields {
|
|
642
|
+
requireMfaData?: RequireMfaDataNonNullableFields;
|
|
643
|
+
mfaChallengeData?: MfaChallengeDataNonNullableFields;
|
|
644
|
+
state: StateType;
|
|
645
|
+
identity?: IdentityNonNullableFields;
|
|
646
|
+
}
|
|
647
|
+
interface HeadersEntryNonNullableFields {
|
|
648
|
+
key: string;
|
|
649
|
+
value: string;
|
|
650
|
+
}
|
|
651
|
+
export interface RawHttpResponseNonNullableFields {
|
|
652
|
+
body: Uint8Array;
|
|
653
|
+
headers: HeadersEntryNonNullableFields[];
|
|
654
|
+
}
|
|
655
|
+
export interface SignOnResponseNonNullableFields {
|
|
656
|
+
sessionToken: string;
|
|
657
|
+
identity?: IdentityNonNullableFields;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Registers a new member.
|
|
661
|
+
*
|
|
662
|
+
* Typically, after a successful registration, you generate and use member tokens for the
|
|
663
|
+
* registered member so that subsequent API calls are called as part of a member session.
|
|
664
|
+
* Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).
|
|
665
|
+
*
|
|
666
|
+
* If the email used to register the member already exists as a contact email, the registering
|
|
667
|
+
* member need to verify the email address using a code that is sent to the address.
|
|
668
|
+
* @param loginId - Identifier of the registering member.
|
|
669
|
+
* @public
|
|
670
|
+
* @requiredField loginId
|
|
671
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.RegisterV2
|
|
672
|
+
*/
|
|
673
|
+
export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
674
|
+
export interface RegisterV2Options {
|
|
675
|
+
/** Password of the registering member. */
|
|
676
|
+
password?: string;
|
|
677
|
+
/** Profile information of registering member. */
|
|
678
|
+
profile?: IdentityProfile;
|
|
679
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
680
|
+
captchaTokens?: CaptchaToken[];
|
|
681
|
+
/** Additional data that's relevant for the flow. */
|
|
682
|
+
clientMetaData?: Record<string, any> | null;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* Logs in an existing member.
|
|
686
|
+
*
|
|
687
|
+
* Typically, after a successful login, you generate and use member tokens for the
|
|
688
|
+
* logged-in member so that subsequent API calls are called as part of a member session.
|
|
689
|
+
* Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).
|
|
690
|
+
* @param loginId - Identifier of identity logging in.
|
|
691
|
+
* @public
|
|
692
|
+
* @requiredField loginId
|
|
693
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.LoginV2
|
|
694
|
+
*/
|
|
695
|
+
export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
696
|
+
export interface LoginV2Options {
|
|
697
|
+
/** Password of the identity logging in. */
|
|
698
|
+
password?: string;
|
|
699
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
700
|
+
captchaTokens?: CaptchaToken[];
|
|
701
|
+
/** Additional data that's relevant for the flow. */
|
|
702
|
+
clientMetaData?: Record<string, any> | null;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Changes the password of a logged in user.
|
|
706
|
+
* @param newPassword - The new password to set for the logged in user
|
|
707
|
+
* @public
|
|
708
|
+
* @documentationMaturity preview
|
|
709
|
+
* @requiredField newPassword
|
|
710
|
+
* @permissionId IAM.CHANGE_PASSWORD
|
|
711
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.ChangePassword
|
|
712
|
+
*/
|
|
713
|
+
export declare function changePassword(newPassword: string): Promise<void>;
|
|
714
|
+
/** @public
|
|
715
|
+
* @documentationMaturity preview
|
|
716
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.LoginCallback
|
|
717
|
+
*/
|
|
718
|
+
export declare function loginCallback(options?: LoginCallbackOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
719
|
+
export interface LoginCallbackOptions {
|
|
720
|
+
/** state that that received on the redirect */
|
|
721
|
+
state?: string;
|
|
722
|
+
/** session token */
|
|
723
|
+
sessionToken?: string;
|
|
724
|
+
}
|
|
725
|
+
/** @param loginId - the identifier of the identity
|
|
726
|
+
* @public
|
|
727
|
+
* @documentationMaturity preview
|
|
728
|
+
* @requiredField loginId
|
|
729
|
+
* @permissionId IAM.AUTHENTICAITON_SIGN_ON
|
|
730
|
+
* @permissionScope Manage Members Authentication
|
|
731
|
+
* @permissionScopeId SCOPE.DC-IDENTITY.MANAGE_AUTHENTICATION
|
|
732
|
+
* @applicableIdentity APP
|
|
733
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.SignOn
|
|
734
|
+
*/
|
|
735
|
+
export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<SignOnResponse & SignOnResponseNonNullableFields>;
|
|
736
|
+
export interface SignOnOptions {
|
|
737
|
+
/** profile of the identity */
|
|
738
|
+
profile?: IdentityProfile;
|
|
739
|
+
/** when true will mark the email of the identity as verified */
|
|
740
|
+
verifyEmail?: boolean;
|
|
741
|
+
/** when false will create a new contact instead of merging the existing contact into the identity */
|
|
742
|
+
mergeExistingContact?: boolean;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Logs out a member.
|
|
746
|
+
* @public
|
|
747
|
+
* @documentationMaturity preview
|
|
748
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.Logout
|
|
749
|
+
*/
|
|
750
|
+
export declare function logout(options?: LogoutOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
751
|
+
export interface LogoutOptions {
|
|
752
|
+
/** redirect after logout */
|
|
753
|
+
postLogoutRedirectUri?: string | null;
|
|
754
|
+
/** caller identifier */
|
|
755
|
+
clientId?: string | null;
|
|
756
|
+
}
|
|
757
|
+
/** @public
|
|
758
|
+
* @documentationMaturity preview
|
|
759
|
+
* @requiredField factorType
|
|
760
|
+
* @fqn wix.iam.authentication.v1.AuthenticationService.Verify
|
|
761
|
+
*/
|
|
762
|
+
export declare function verify(factorType: FactorType, options?: VerifyOptions): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
763
|
+
export interface VerifyOptions extends VerifyRequestFactorDataOneOf {
|
|
764
|
+
/** TODO: is this a reasonable maxLength? */
|
|
765
|
+
stateToken?: string;
|
|
766
|
+
rememberThisDevice?: boolean;
|
|
767
|
+
smsData?: SmsVerifyData;
|
|
768
|
+
callData?: CallVerifyData;
|
|
769
|
+
emailData?: ExternalEmailVerifyData;
|
|
770
|
+
totpData?: TotpVerifyData;
|
|
771
|
+
pushData?: PushVerifyData;
|
|
772
|
+
}
|
|
773
|
+
export {};
|