@wix/identity 1.0.74 → 1.0.75
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/context.d.ts +4 -0
- package/build/cjs/{index.typings.js → context.js} +5 -5
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -4
- package/build/cjs/meta.js +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +4 -0
- package/build/es/context.js +5 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +4 -4
- package/build/es/index.js +4 -4
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +4 -4
- package/build/es/meta.js +4 -4
- package/build/es/meta.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +15 -8
- package/build/cjs/index.typings.d.ts +0 -4
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.http.d.ts +0 -28
- package/build/cjs/src/iam-authentication-v1-authentication.http.js +0 -408
- package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.meta.d.ts +0 -21
- package/build/cjs/src/iam-authentication-v1-authentication.meta.js +0 -199
- package/build/cjs/src/iam-authentication-v1-authentication.meta.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +0 -16
- package/build/cjs/src/iam-authentication-v1-authentication.public.js +0 -70
- package/build/cjs/src/iam-authentication-v1-authentication.public.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.types.d.ts +0 -669
- package/build/cjs/src/iam-authentication-v1-authentication.types.js +0 -78
- package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +0 -790
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +0 -780
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +0 -13
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +0 -109
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.meta.d.ts +0 -15
- package/build/cjs/src/iam-recovery-v1-recovery.meta.js +0 -85
- package/build/cjs/src/iam-recovery-v1-recovery.meta.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +0 -10
- package/build/cjs/src/iam-recovery-v1-recovery.public.js +0 -33
- package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +0 -431
- package/build/cjs/src/iam-recovery-v1-recovery.types.js +0 -72
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +0 -475
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +0 -335
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +0 -22
- package/build/cjs/src/iam-verification-v1-start-response.http.js +0 -132
- package/build/cjs/src/iam-verification-v1-start-response.http.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.meta.d.ts +0 -15
- package/build/cjs/src/iam-verification-v1-start-response.meta.js +0 -85
- package/build/cjs/src/iam-verification-v1-start-response.meta.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +0 -10
- package/build/cjs/src/iam-verification-v1-start-response.public.js +0 -33
- package/build/cjs/src/iam-verification-v1-start-response.public.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +0 -398
- package/build/cjs/src/iam-verification-v1-start-response.types.js +0 -70
- package/build/cjs/src/iam-verification-v1-start-response.types.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +0 -448
- package/build/cjs/src/iam-verification-v1-start-response.universal.js +0 -341
- package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.d.ts +0 -14
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +0 -154
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.d.ts +0 -17
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js +0 -123
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +0 -11
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.js +0 -36
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +0 -206
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.js +0 -3
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +0 -319
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +0 -357
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -4
- package/build/es/index.typings.js +0 -5
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.http.d.ts +0 -28
- package/build/es/src/iam-authentication-v1-authentication.http.js +0 -396
- package/build/es/src/iam-authentication-v1-authentication.http.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.meta.d.ts +0 -21
- package/build/es/src/iam-authentication-v1-authentication.meta.js +0 -164
- package/build/es/src/iam-authentication-v1-authentication.meta.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.public.d.ts +0 -16
- package/build/es/src/iam-authentication-v1-authentication.public.js +0 -49
- package/build/es/src/iam-authentication-v1-authentication.public.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.types.d.ts +0 -669
- package/build/es/src/iam-authentication-v1-authentication.types.js +0 -75
- package/build/es/src/iam-authentication-v1-authentication.types.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +0 -790
- package/build/es/src/iam-authentication-v1-authentication.universal.js +0 -745
- package/build/es/src/iam-authentication-v1-authentication.universal.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.http.d.ts +0 -13
- package/build/es/src/iam-recovery-v1-recovery.http.js +0 -103
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.meta.d.ts +0 -15
- package/build/es/src/iam-recovery-v1-recovery.meta.js +0 -56
- package/build/es/src/iam-recovery-v1-recovery.meta.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +0 -10
- package/build/es/src/iam-recovery-v1-recovery.public.js +0 -19
- package/build/es/src/iam-recovery-v1-recovery.public.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +0 -431
- package/build/es/src/iam-recovery-v1-recovery.types.js +0 -69
- package/build/es/src/iam-recovery-v1-recovery.types.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +0 -475
- package/build/es/src/iam-recovery-v1-recovery.universal.js +0 -306
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.http.d.ts +0 -22
- package/build/es/src/iam-verification-v1-start-response.http.js +0 -126
- package/build/es/src/iam-verification-v1-start-response.http.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.meta.d.ts +0 -15
- package/build/es/src/iam-verification-v1-start-response.meta.js +0 -56
- package/build/es/src/iam-verification-v1-start-response.meta.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.public.d.ts +0 -10
- package/build/es/src/iam-verification-v1-start-response.public.js +0 -19
- package/build/es/src/iam-verification-v1-start-response.public.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.types.d.ts +0 -398
- package/build/es/src/iam-verification-v1-start-response.types.js +0 -67
- package/build/es/src/iam-verification-v1-start-response.types.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.universal.d.ts +0 -448
- package/build/es/src/iam-verification-v1-start-response.universal.js +0 -312
- package/build/es/src/iam-verification-v1-start-response.universal.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.http.d.ts +0 -14
- package/build/es/src/identity-oauth-v1-refresh-token.http.js +0 -146
- package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.meta.d.ts +0 -17
- package/build/es/src/identity-oauth-v1-refresh-token.meta.js +0 -92
- package/build/es/src/identity-oauth-v1-refresh-token.meta.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +0 -11
- package/build/es/src/identity-oauth-v1-refresh-token.public.js +0 -28
- package/build/es/src/identity-oauth-v1-refresh-token.public.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +0 -206
- package/build/es/src/identity-oauth-v1-refresh-token.types.js +0 -2
- package/build/es/src/identity-oauth-v1-refresh-token.types.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +0 -319
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js +0 -326
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +0 -1
|
@@ -1,669 +0,0 @@
|
|
|
1
|
-
export interface Authentication {
|
|
2
|
-
}
|
|
3
|
-
export interface RegisterRequest {
|
|
4
|
-
identity: Identity;
|
|
5
|
-
/** TODO: when this becomes required, it will make more sense for it to be a `string` */
|
|
6
|
-
authenticatorId?: string | null;
|
|
7
|
-
inputs?: Record<string, string>;
|
|
8
|
-
captchaTokens?: CaptchaToken[];
|
|
9
|
-
}
|
|
10
|
-
export interface Identity {
|
|
11
|
-
/** Identity ID */
|
|
12
|
-
id?: string | null;
|
|
13
|
-
/** Identifiers */
|
|
14
|
-
identifiers?: Identifier[];
|
|
15
|
-
/**
|
|
16
|
-
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
17
|
-
* For an update operation to succeed, you MUST pass the latest revision.
|
|
18
|
-
*/
|
|
19
|
-
revision?: string | null;
|
|
20
|
-
/**
|
|
21
|
-
* The time this identity was created.
|
|
22
|
-
* @readonly
|
|
23
|
-
*/
|
|
24
|
-
createdDate?: Date;
|
|
25
|
-
/**
|
|
26
|
-
* The time this identity was last updated.
|
|
27
|
-
* @readonly
|
|
28
|
-
*/
|
|
29
|
-
updatedDate?: Date;
|
|
30
|
-
/** The identity configured connections to authenticate with. */
|
|
31
|
-
connections?: Connection[];
|
|
32
|
-
/** Identity profile. */
|
|
33
|
-
identityProfile?: IdentityProfile;
|
|
34
|
-
/**
|
|
35
|
-
* Additional information about the identity that can impact user access.
|
|
36
|
-
* This data cannot be set.
|
|
37
|
-
*/
|
|
38
|
-
metadata?: Metadata;
|
|
39
|
-
/** Identity email address. */
|
|
40
|
-
email?: Email;
|
|
41
|
-
/** Identity's current status. */
|
|
42
|
-
status?: StatusV2;
|
|
43
|
-
}
|
|
44
|
-
export interface Identifier extends IdentifierValueOneOf {
|
|
45
|
-
email?: string;
|
|
46
|
-
userName?: string;
|
|
47
|
-
}
|
|
48
|
-
/** @oneof */
|
|
49
|
-
export interface IdentifierValueOneOf {
|
|
50
|
-
email?: string;
|
|
51
|
-
userName?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface Connection extends ConnectionTypeOneOf {
|
|
54
|
-
/** IDP connection. */
|
|
55
|
-
idpConnection?: IdpConnection;
|
|
56
|
-
/** Authenticator connection. */
|
|
57
|
-
authenticatorConnection?: AuthenticatorConnection;
|
|
58
|
-
}
|
|
59
|
-
/** @oneof */
|
|
60
|
-
export interface ConnectionTypeOneOf {
|
|
61
|
-
/** IDP connection. */
|
|
62
|
-
idpConnection?: IdpConnection;
|
|
63
|
-
/** Authenticator connection. */
|
|
64
|
-
authenticatorConnection?: AuthenticatorConnection;
|
|
65
|
-
}
|
|
66
|
-
export interface IdpConnection {
|
|
67
|
-
/** IDP connection ID. */
|
|
68
|
-
idpConnectionId?: string;
|
|
69
|
-
/** IDP user ID. */
|
|
70
|
-
idpUserId?: string;
|
|
71
|
-
}
|
|
72
|
-
export interface AuthenticatorConnection {
|
|
73
|
-
/** Authenticator connection ID. */
|
|
74
|
-
authenticatorConnectionId?: string;
|
|
75
|
-
/** Whether re-enrollment is required. */
|
|
76
|
-
reEnrollmentRequired?: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface IdentityProfile {
|
|
79
|
-
/** Profile first name. */
|
|
80
|
-
firstName?: string | null;
|
|
81
|
-
/** Profile last name. */
|
|
82
|
-
lastName?: string | null;
|
|
83
|
-
/** Profile nickname. */
|
|
84
|
-
nickname?: string | null;
|
|
85
|
-
/** Profile picture URL. */
|
|
86
|
-
picture?: string | null;
|
|
87
|
-
/** Deprecated. Use `secondaryEmails` instead. */
|
|
88
|
-
emails?: string[];
|
|
89
|
-
/** Deprecated. Use `phonesV2` instead. */
|
|
90
|
-
phones?: string[];
|
|
91
|
-
/** List of profile labels. */
|
|
92
|
-
labels?: string[];
|
|
93
|
-
/** Profile language. */
|
|
94
|
-
language?: string | null;
|
|
95
|
-
/** Profile privacy status. */
|
|
96
|
-
privacyStatus?: PrivacyStatus;
|
|
97
|
-
/**
|
|
98
|
-
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
99
|
-
* are used to store additional information about your site or app's contacts.
|
|
100
|
-
*/
|
|
101
|
-
customFields?: CustomField[];
|
|
102
|
-
/** List of profile email addresses. */
|
|
103
|
-
secondaryEmails?: SecondaryEmail[];
|
|
104
|
-
/** List of profile phone numbers. */
|
|
105
|
-
phonesV2?: Phone[];
|
|
106
|
-
/** List of profile physical addresses. */
|
|
107
|
-
addresses?: AddressWrapper[];
|
|
108
|
-
/** Company name. */
|
|
109
|
-
company?: string | null;
|
|
110
|
-
/** Position within company. */
|
|
111
|
-
position?: string | null;
|
|
112
|
-
/** Profile birthdate. */
|
|
113
|
-
birthdate?: string | null;
|
|
114
|
-
}
|
|
115
|
-
export declare enum PrivacyStatus {
|
|
116
|
-
UNDEFINED = "UNDEFINED",
|
|
117
|
-
PUBLIC = "PUBLIC",
|
|
118
|
-
PRIVATE = "PRIVATE"
|
|
119
|
-
}
|
|
120
|
-
export interface CustomField {
|
|
121
|
-
/**
|
|
122
|
-
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
123
|
-
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
124
|
-
* with the `custom.` prefix removed.
|
|
125
|
-
*/
|
|
126
|
-
name?: string;
|
|
127
|
-
/** Custom field value. */
|
|
128
|
-
value?: CustomValue;
|
|
129
|
-
}
|
|
130
|
-
export interface CustomValue extends CustomValueValueOneOf {
|
|
131
|
-
/** String value. */
|
|
132
|
-
strValue?: string;
|
|
133
|
-
/** Number value. */
|
|
134
|
-
numValue?: number;
|
|
135
|
-
/** Date value. */
|
|
136
|
-
dateValue?: Date;
|
|
137
|
-
/** List value. */
|
|
138
|
-
listValue?: ListValue;
|
|
139
|
-
/** Map value. */
|
|
140
|
-
mapValue?: MapValue;
|
|
141
|
-
}
|
|
142
|
-
/** @oneof */
|
|
143
|
-
export interface CustomValueValueOneOf {
|
|
144
|
-
/** String value. */
|
|
145
|
-
strValue?: string;
|
|
146
|
-
/** Number value. */
|
|
147
|
-
numValue?: number;
|
|
148
|
-
/** Date value. */
|
|
149
|
-
dateValue?: Date;
|
|
150
|
-
/** List value. */
|
|
151
|
-
listValue?: ListValue;
|
|
152
|
-
/** Map value. */
|
|
153
|
-
mapValue?: MapValue;
|
|
154
|
-
}
|
|
155
|
-
export interface ListValue {
|
|
156
|
-
/** Custom value. */
|
|
157
|
-
value?: CustomValue[];
|
|
158
|
-
}
|
|
159
|
-
export interface MapValue {
|
|
160
|
-
/** Mapped custom value. */
|
|
161
|
-
value?: Record<string, CustomValue>;
|
|
162
|
-
}
|
|
163
|
-
export interface SecondaryEmail {
|
|
164
|
-
/** Email address. */
|
|
165
|
-
email?: string;
|
|
166
|
-
/** Email tag. */
|
|
167
|
-
tag?: EmailTag;
|
|
168
|
-
}
|
|
169
|
-
export declare enum EmailTag {
|
|
170
|
-
UNTAGGED = "UNTAGGED",
|
|
171
|
-
MAIN = "MAIN",
|
|
172
|
-
HOME = "HOME",
|
|
173
|
-
WORK = "WORK"
|
|
174
|
-
}
|
|
175
|
-
export interface Phone {
|
|
176
|
-
/** Phone country code. */
|
|
177
|
-
countryCode?: string | null;
|
|
178
|
-
/** Phone number. */
|
|
179
|
-
phone?: string;
|
|
180
|
-
/** Phone tag. */
|
|
181
|
-
tag?: PhoneTag;
|
|
182
|
-
}
|
|
183
|
-
export declare enum PhoneTag {
|
|
184
|
-
UNTAGGED = "UNTAGGED",
|
|
185
|
-
MAIN = "MAIN",
|
|
186
|
-
HOME = "HOME",
|
|
187
|
-
MOBILE = "MOBILE",
|
|
188
|
-
WORK = "WORK",
|
|
189
|
-
FAX = "FAX"
|
|
190
|
-
}
|
|
191
|
-
export interface AddressWrapper {
|
|
192
|
-
/** Address. */
|
|
193
|
-
address?: Address;
|
|
194
|
-
/** Address tag. */
|
|
195
|
-
tag?: AddressTag;
|
|
196
|
-
}
|
|
197
|
-
/** Physical address */
|
|
198
|
-
export interface Address {
|
|
199
|
-
/** Country code. */
|
|
200
|
-
country?: string | null;
|
|
201
|
-
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
202
|
-
subdivision?: string | null;
|
|
203
|
-
/** City name. */
|
|
204
|
-
city?: string | null;
|
|
205
|
-
/** Zip/postal code. */
|
|
206
|
-
postalCode?: string | null;
|
|
207
|
-
/** Main address line, usually street and number as free text. */
|
|
208
|
-
addressLine?: string | null;
|
|
209
|
-
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
210
|
-
addressLine2?: string | null;
|
|
211
|
-
}
|
|
212
|
-
export declare enum AddressTag {
|
|
213
|
-
UNTAGGED = "UNTAGGED",
|
|
214
|
-
HOME = "HOME",
|
|
215
|
-
WORK = "WORK",
|
|
216
|
-
BILLING = "BILLING",
|
|
217
|
-
SHIPPING = "SHIPPING"
|
|
218
|
-
}
|
|
219
|
-
export interface Metadata {
|
|
220
|
-
/**
|
|
221
|
-
* represents general tags such as "isOwner", "isContributor"
|
|
222
|
-
* @readonly
|
|
223
|
-
*/
|
|
224
|
-
tags?: string[];
|
|
225
|
-
}
|
|
226
|
-
export interface Email {
|
|
227
|
-
address?: string;
|
|
228
|
-
isVerified?: boolean;
|
|
229
|
-
}
|
|
230
|
-
export interface StatusV2 {
|
|
231
|
-
name?: StatusName;
|
|
232
|
-
reasons?: Reason[];
|
|
233
|
-
}
|
|
234
|
-
export declare enum StatusName {
|
|
235
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
236
|
-
PENDING = "PENDING",
|
|
237
|
-
ACTIVE = "ACTIVE",
|
|
238
|
-
DELETED = "DELETED",
|
|
239
|
-
BLOCKED = "BLOCKED",
|
|
240
|
-
OFFLINE = "OFFLINE"
|
|
241
|
-
}
|
|
242
|
-
export declare enum Reason {
|
|
243
|
-
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
244
|
-
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
245
|
-
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
246
|
-
}
|
|
247
|
-
export interface CaptchaToken extends CaptchaTokenTokenOneOf {
|
|
248
|
-
Recaptcha?: string;
|
|
249
|
-
InvisibleRecaptcha?: string;
|
|
250
|
-
}
|
|
251
|
-
/** @oneof */
|
|
252
|
-
export interface CaptchaTokenTokenOneOf {
|
|
253
|
-
Recaptcha?: string;
|
|
254
|
-
InvisibleRecaptcha?: string;
|
|
255
|
-
}
|
|
256
|
-
export interface LoginResponse {
|
|
257
|
-
state?: State;
|
|
258
|
-
sessionToken?: string | null;
|
|
259
|
-
identity?: Identity;
|
|
260
|
-
connection?: Connection;
|
|
261
|
-
additionalData?: Record<string, CustomValue>;
|
|
262
|
-
}
|
|
263
|
-
export interface State {
|
|
264
|
-
status?: StateStatus;
|
|
265
|
-
stateToken?: string | null;
|
|
266
|
-
}
|
|
267
|
-
export declare enum StateStatus {
|
|
268
|
-
DONE = "DONE",
|
|
269
|
-
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
270
|
-
STATUS_CHECK = "STATUS_CHECK"
|
|
271
|
-
}
|
|
272
|
-
export interface LoginRequest {
|
|
273
|
-
identifier: Identifier;
|
|
274
|
-
/** TODO: when this becomes required, it will make more sense for it to be a `string` */
|
|
275
|
-
authenticatorId?: string | null;
|
|
276
|
-
inputs?: Record<string, string>;
|
|
277
|
-
captchaTokens?: CaptchaToken[];
|
|
278
|
-
/** the identifier of the identity */
|
|
279
|
-
loginId?: LoginId;
|
|
280
|
-
}
|
|
281
|
-
export interface LoginId extends LoginIdTypeOneOf {
|
|
282
|
-
/** Login email address. */
|
|
283
|
-
email?: string;
|
|
284
|
-
}
|
|
285
|
-
/** @oneof */
|
|
286
|
-
export interface LoginIdTypeOneOf {
|
|
287
|
-
/** Login email address. */
|
|
288
|
-
email?: string;
|
|
289
|
-
}
|
|
290
|
-
export interface SuccessfulLoginEvent {
|
|
291
|
-
identity?: Identity;
|
|
292
|
-
}
|
|
293
|
-
export interface RegisterV2Request {
|
|
294
|
-
/** Identifier of registering member. */
|
|
295
|
-
loginId: LoginId;
|
|
296
|
-
/** Password of registering member. */
|
|
297
|
-
password?: string;
|
|
298
|
-
/** Profile information of registering member. */
|
|
299
|
-
profile?: IdentityProfile;
|
|
300
|
-
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
301
|
-
captchaTokens?: CaptchaToken[];
|
|
302
|
-
}
|
|
303
|
-
export interface StateMachineResponse {
|
|
304
|
-
/** The current state of the login or registration process. */
|
|
305
|
-
state?: StateType;
|
|
306
|
-
/** If state is `SUCCESS`, a session token. */
|
|
307
|
-
sessionToken?: string | null;
|
|
308
|
-
/** A token representing the current state of the login or registration process. */
|
|
309
|
-
stateToken?: string | null;
|
|
310
|
-
/** Identing of the current member. */
|
|
311
|
-
identity?: Identity;
|
|
312
|
-
/** additional_data = 5; //TBD */
|
|
313
|
-
additionalData?: Record<string, CommonCustomValue>;
|
|
314
|
-
}
|
|
315
|
-
export declare enum StateType {
|
|
316
|
-
/** Initial unknown state. */
|
|
317
|
-
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
318
|
-
/** The operation completed successfully. */
|
|
319
|
-
SUCCESS = "SUCCESS",
|
|
320
|
-
/** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
|
|
321
|
-
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
322
|
-
/**
|
|
323
|
-
* State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
|
|
324
|
-
* https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
|
|
325
|
-
*/
|
|
326
|
-
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
327
|
-
/** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
|
|
328
|
-
STATUS_CHECK = "STATUS_CHECK"
|
|
329
|
-
}
|
|
330
|
-
export interface CommonCustomValue extends CommonCustomValueValueOneOf {
|
|
331
|
-
/** String value. */
|
|
332
|
-
strValue?: string;
|
|
333
|
-
/** Number value. */
|
|
334
|
-
numValue?: number;
|
|
335
|
-
/** Date value. */
|
|
336
|
-
dateValue?: Date;
|
|
337
|
-
/** List value. */
|
|
338
|
-
listValue?: CommonListValue;
|
|
339
|
-
/** Map value. */
|
|
340
|
-
mapValue?: CommonMapValue;
|
|
341
|
-
}
|
|
342
|
-
/** @oneof */
|
|
343
|
-
export interface CommonCustomValueValueOneOf {
|
|
344
|
-
/** String value. */
|
|
345
|
-
strValue?: string;
|
|
346
|
-
/** Number value. */
|
|
347
|
-
numValue?: number;
|
|
348
|
-
/** Date value. */
|
|
349
|
-
dateValue?: Date;
|
|
350
|
-
/** List value. */
|
|
351
|
-
listValue?: CommonListValue;
|
|
352
|
-
/** Map value. */
|
|
353
|
-
mapValue?: CommonMapValue;
|
|
354
|
-
}
|
|
355
|
-
export interface CommonListValue {
|
|
356
|
-
/** Custom value. */
|
|
357
|
-
value?: CommonCustomValue[];
|
|
358
|
-
}
|
|
359
|
-
export interface CommonMapValue {
|
|
360
|
-
/** Mapped custom value. */
|
|
361
|
-
value?: Record<string, CommonCustomValue>;
|
|
362
|
-
}
|
|
363
|
-
export interface LoginV2Request {
|
|
364
|
-
/** Identifier of member logging in. */
|
|
365
|
-
loginId: LoginId;
|
|
366
|
-
/** Password of the member logging in. */
|
|
367
|
-
password?: string;
|
|
368
|
-
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
369
|
-
captchaTokens?: CaptchaToken[];
|
|
370
|
-
}
|
|
371
|
-
export interface ChangePasswordRequest {
|
|
372
|
-
/** The new password to set for the logged in user */
|
|
373
|
-
newPassword: string;
|
|
374
|
-
}
|
|
375
|
-
export interface ChangePasswordResponse {
|
|
376
|
-
}
|
|
377
|
-
export interface LoginWithIdpConnectionRequest {
|
|
378
|
-
/** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
|
|
379
|
-
idpConnectionId?: string;
|
|
380
|
-
/** The id of the tenant the caller wants to login into */
|
|
381
|
-
tenantId?: string;
|
|
382
|
-
/** The type of the tenant the caller wants to login into */
|
|
383
|
-
tenantType?: TenantType;
|
|
384
|
-
customPayload?: Record<string, string>;
|
|
385
|
-
/**
|
|
386
|
-
* This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
|
|
387
|
-
* The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
|
|
388
|
-
* Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
|
|
389
|
-
*/
|
|
390
|
-
sessionId?: string;
|
|
391
|
-
encryptionKey?: string;
|
|
392
|
-
visitorId?: string | null;
|
|
393
|
-
bsi?: string | null;
|
|
394
|
-
}
|
|
395
|
-
export declare enum TenantType {
|
|
396
|
-
UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
|
|
397
|
-
ACCOUNT = "ACCOUNT",
|
|
398
|
-
SITE = "SITE",
|
|
399
|
-
ROOT = "ROOT"
|
|
400
|
-
}
|
|
401
|
-
export interface RawHttpResponse {
|
|
402
|
-
body?: Uint8Array;
|
|
403
|
-
statusCode?: number | null;
|
|
404
|
-
headers?: HeadersEntry[];
|
|
405
|
-
}
|
|
406
|
-
export interface HeadersEntry {
|
|
407
|
-
key?: string;
|
|
408
|
-
value?: string;
|
|
409
|
-
}
|
|
410
|
-
export interface RawHttpRequest {
|
|
411
|
-
body?: Uint8Array;
|
|
412
|
-
pathParams?: PathParametersEntry[];
|
|
413
|
-
queryParams?: QueryParametersEntry[];
|
|
414
|
-
headers?: HeadersEntry[];
|
|
415
|
-
method?: string;
|
|
416
|
-
rawPath?: string;
|
|
417
|
-
rawQuery?: string;
|
|
418
|
-
}
|
|
419
|
-
export interface PathParametersEntry {
|
|
420
|
-
key?: string;
|
|
421
|
-
value?: string;
|
|
422
|
-
}
|
|
423
|
-
export interface QueryParametersEntry {
|
|
424
|
-
key?: string;
|
|
425
|
-
value?: string;
|
|
426
|
-
}
|
|
427
|
-
export interface LoginCallbackRequest {
|
|
428
|
-
/** state that that received on the redirect */
|
|
429
|
-
state?: string;
|
|
430
|
-
/** session token */
|
|
431
|
-
sessionToken?: string;
|
|
432
|
-
}
|
|
433
|
-
export interface LoginWithIdpConnectionTokenParamsRequest {
|
|
434
|
-
/** The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData */
|
|
435
|
-
idpConnectionId?: string;
|
|
436
|
-
/** A set of fields that are required for the connection to be able to identify and authenticate the user */
|
|
437
|
-
tokenParams?: Record<string, string>;
|
|
438
|
-
}
|
|
439
|
-
export interface ProceedToNextStateRequest {
|
|
440
|
-
/** State token received from the previous step in the registration or login process. */
|
|
441
|
-
stateToken?: string;
|
|
442
|
-
}
|
|
443
|
-
export interface SignOnRequest {
|
|
444
|
-
/** the identifier of the identity */
|
|
445
|
-
loginId: LoginId;
|
|
446
|
-
/** profile of the identity */
|
|
447
|
-
profile?: IdentityProfile;
|
|
448
|
-
/** when true will mark the email of the identity as verified */
|
|
449
|
-
verifyEmail?: boolean;
|
|
450
|
-
/** when false will create a new contact instead of merging the existing contact into the identity */
|
|
451
|
-
mergeExistingContact?: boolean;
|
|
452
|
-
}
|
|
453
|
-
export interface SignOnResponse {
|
|
454
|
-
/** session token for the requested identity */
|
|
455
|
-
sessionToken?: string;
|
|
456
|
-
/** The Identity of the provided login_id */
|
|
457
|
-
identity?: Identity;
|
|
458
|
-
}
|
|
459
|
-
/** logout request payload */
|
|
460
|
-
export interface LogoutRequest {
|
|
461
|
-
/** redirect after logout */
|
|
462
|
-
postLogoutRedirectUri?: string | null;
|
|
463
|
-
/** caller identifier */
|
|
464
|
-
clientId?: string | null;
|
|
465
|
-
}
|
|
466
|
-
export interface LoginResponseNonNullableFields {
|
|
467
|
-
state?: {
|
|
468
|
-
status: StateStatus;
|
|
469
|
-
};
|
|
470
|
-
identity?: {
|
|
471
|
-
identifiers: {
|
|
472
|
-
email: string;
|
|
473
|
-
userName: string;
|
|
474
|
-
}[];
|
|
475
|
-
connections: {
|
|
476
|
-
idpConnection?: {
|
|
477
|
-
idpConnectionId: string;
|
|
478
|
-
idpUserId: string;
|
|
479
|
-
};
|
|
480
|
-
authenticatorConnection?: {
|
|
481
|
-
authenticatorConnectionId: string;
|
|
482
|
-
reEnrollmentRequired: boolean;
|
|
483
|
-
};
|
|
484
|
-
}[];
|
|
485
|
-
identityProfile?: {
|
|
486
|
-
emails: string[];
|
|
487
|
-
phones: string[];
|
|
488
|
-
labels: string[];
|
|
489
|
-
privacyStatus: PrivacyStatus;
|
|
490
|
-
customFields: {
|
|
491
|
-
name: string;
|
|
492
|
-
value?: {
|
|
493
|
-
strValue: string;
|
|
494
|
-
numValue: number;
|
|
495
|
-
listValue?: {
|
|
496
|
-
value: NonNullable<NonNullable<NonNullable<NonNullable<LoginResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
}[];
|
|
500
|
-
secondaryEmails: {
|
|
501
|
-
email: string;
|
|
502
|
-
tag: EmailTag;
|
|
503
|
-
}[];
|
|
504
|
-
phonesV2: {
|
|
505
|
-
phone: string;
|
|
506
|
-
tag: PhoneTag;
|
|
507
|
-
}[];
|
|
508
|
-
addresses: {
|
|
509
|
-
tag: AddressTag;
|
|
510
|
-
}[];
|
|
511
|
-
};
|
|
512
|
-
metadata?: {
|
|
513
|
-
tags: string[];
|
|
514
|
-
};
|
|
515
|
-
email?: {
|
|
516
|
-
address: string;
|
|
517
|
-
isVerified: boolean;
|
|
518
|
-
};
|
|
519
|
-
status?: {
|
|
520
|
-
name: StatusName;
|
|
521
|
-
reasons: Reason[];
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
connection?: {
|
|
525
|
-
idpConnection?: {
|
|
526
|
-
idpConnectionId: string;
|
|
527
|
-
idpUserId: string;
|
|
528
|
-
};
|
|
529
|
-
authenticatorConnection?: {
|
|
530
|
-
authenticatorConnectionId: string;
|
|
531
|
-
reEnrollmentRequired: boolean;
|
|
532
|
-
};
|
|
533
|
-
};
|
|
534
|
-
additionalData?: {
|
|
535
|
-
strValue: string;
|
|
536
|
-
numValue: number;
|
|
537
|
-
listValue?: {
|
|
538
|
-
value: NonNullable<LoginResponseNonNullableFields>['additionalData'][];
|
|
539
|
-
};
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
export interface StateMachineResponseNonNullableFields {
|
|
543
|
-
state: StateType;
|
|
544
|
-
identity?: {
|
|
545
|
-
identifiers: {
|
|
546
|
-
email: string;
|
|
547
|
-
userName: string;
|
|
548
|
-
}[];
|
|
549
|
-
connections: {
|
|
550
|
-
idpConnection?: {
|
|
551
|
-
idpConnectionId: string;
|
|
552
|
-
idpUserId: string;
|
|
553
|
-
};
|
|
554
|
-
authenticatorConnection?: {
|
|
555
|
-
authenticatorConnectionId: string;
|
|
556
|
-
reEnrollmentRequired: boolean;
|
|
557
|
-
};
|
|
558
|
-
}[];
|
|
559
|
-
identityProfile?: {
|
|
560
|
-
emails: string[];
|
|
561
|
-
phones: string[];
|
|
562
|
-
labels: string[];
|
|
563
|
-
privacyStatus: PrivacyStatus;
|
|
564
|
-
customFields: {
|
|
565
|
-
name: string;
|
|
566
|
-
value?: {
|
|
567
|
-
strValue: string;
|
|
568
|
-
numValue: number;
|
|
569
|
-
listValue?: {
|
|
570
|
-
value: NonNullable<NonNullable<NonNullable<NonNullable<StateMachineResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
}[];
|
|
574
|
-
secondaryEmails: {
|
|
575
|
-
email: string;
|
|
576
|
-
tag: EmailTag;
|
|
577
|
-
}[];
|
|
578
|
-
phonesV2: {
|
|
579
|
-
phone: string;
|
|
580
|
-
tag: PhoneTag;
|
|
581
|
-
}[];
|
|
582
|
-
addresses: {
|
|
583
|
-
tag: AddressTag;
|
|
584
|
-
}[];
|
|
585
|
-
};
|
|
586
|
-
metadata?: {
|
|
587
|
-
tags: string[];
|
|
588
|
-
};
|
|
589
|
-
email?: {
|
|
590
|
-
address: string;
|
|
591
|
-
isVerified: boolean;
|
|
592
|
-
};
|
|
593
|
-
status?: {
|
|
594
|
-
name: StatusName;
|
|
595
|
-
reasons: Reason[];
|
|
596
|
-
};
|
|
597
|
-
};
|
|
598
|
-
additionalData?: {
|
|
599
|
-
strValue: string;
|
|
600
|
-
numValue: number;
|
|
601
|
-
listValue?: {
|
|
602
|
-
value: NonNullable<StateMachineResponseNonNullableFields>['additionalData'][];
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
export interface SignOnResponseNonNullableFields {
|
|
607
|
-
sessionToken: string;
|
|
608
|
-
identity?: {
|
|
609
|
-
identifiers: {
|
|
610
|
-
email: string;
|
|
611
|
-
userName: string;
|
|
612
|
-
}[];
|
|
613
|
-
connections: {
|
|
614
|
-
idpConnection?: {
|
|
615
|
-
idpConnectionId: string;
|
|
616
|
-
idpUserId: string;
|
|
617
|
-
};
|
|
618
|
-
authenticatorConnection?: {
|
|
619
|
-
authenticatorConnectionId: string;
|
|
620
|
-
reEnrollmentRequired: boolean;
|
|
621
|
-
};
|
|
622
|
-
}[];
|
|
623
|
-
identityProfile?: {
|
|
624
|
-
emails: string[];
|
|
625
|
-
phones: string[];
|
|
626
|
-
labels: string[];
|
|
627
|
-
privacyStatus: PrivacyStatus;
|
|
628
|
-
customFields: {
|
|
629
|
-
name: string;
|
|
630
|
-
value?: {
|
|
631
|
-
strValue: string;
|
|
632
|
-
numValue: number;
|
|
633
|
-
listValue?: {
|
|
634
|
-
value: NonNullable<NonNullable<NonNullable<NonNullable<SignOnResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
}[];
|
|
638
|
-
secondaryEmails: {
|
|
639
|
-
email: string;
|
|
640
|
-
tag: EmailTag;
|
|
641
|
-
}[];
|
|
642
|
-
phonesV2: {
|
|
643
|
-
phone: string;
|
|
644
|
-
tag: PhoneTag;
|
|
645
|
-
}[];
|
|
646
|
-
addresses: {
|
|
647
|
-
tag: AddressTag;
|
|
648
|
-
}[];
|
|
649
|
-
};
|
|
650
|
-
metadata?: {
|
|
651
|
-
tags: string[];
|
|
652
|
-
};
|
|
653
|
-
email?: {
|
|
654
|
-
address: string;
|
|
655
|
-
isVerified: boolean;
|
|
656
|
-
};
|
|
657
|
-
status?: {
|
|
658
|
-
name: StatusName;
|
|
659
|
-
reasons: Reason[];
|
|
660
|
-
};
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
export interface RawHttpResponseNonNullableFields {
|
|
664
|
-
body: Uint8Array;
|
|
665
|
-
headers: {
|
|
666
|
-
key: string;
|
|
667
|
-
value: string;
|
|
668
|
-
}[];
|
|
669
|
-
}
|