@wix/identity 1.0.50 → 1.0.51
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/src/iam-authentication-v1-authentication.http.d.ts +16 -1
- package/build/cjs/src/iam-authentication-v1-authentication.http.js +16 -1
- package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.types.d.ts +87 -17
- package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +111 -25
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +18 -3
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +4 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +4 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +76 -15
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +81 -19
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +3 -2
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +7 -3
- package/build/cjs/src/iam-verification-v1-start-response.http.js +7 -3
- package/build/cjs/src/iam-verification-v1-start-response.http.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +73 -12
- package/build/cjs/src/iam-verification-v1-start-response.types.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +82 -17
- package/build/cjs/src/iam-verification-v1-start-response.universal.js +8 -4
- package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.http.d.ts +16 -1
- package/build/es/src/iam-authentication-v1-authentication.http.js +16 -1
- package/build/es/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.public.d.ts +1 -1
- package/build/es/src/iam-authentication-v1-authentication.types.d.ts +87 -17
- package/build/es/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +111 -25
- package/build/es/src/iam-authentication-v1-authentication.universal.js +18 -3
- package/build/es/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.http.d.ts +4 -1
- package/build/es/src/iam-recovery-v1-recovery.http.js +4 -1
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +76 -15
- package/build/es/src/iam-recovery-v1-recovery.types.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +81 -19
- package/build/es/src/iam-recovery-v1-recovery.universal.js +3 -2
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.http.d.ts +7 -3
- package/build/es/src/iam-verification-v1-start-response.http.js +7 -3
- package/build/es/src/iam-verification-v1-start-response.http.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.types.d.ts +73 -12
- package/build/es/src/iam-verification-v1-start-response.types.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.universal.d.ts +82 -17
- package/build/es/src/iam-verification-v1-start-response.universal.js +8 -4
- package/build/es/src/iam-verification-v1-start-response.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,25 +10,35 @@ export interface RegisterRequest {
|
|
|
10
10
|
export interface Identity {
|
|
11
11
|
/** Identity ID */
|
|
12
12
|
id?: string | null;
|
|
13
|
+
/** Identifiers */
|
|
13
14
|
identifiers?: Identifier[];
|
|
14
|
-
/**
|
|
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
|
+
*/
|
|
15
19
|
revision?: string | null;
|
|
16
20
|
/**
|
|
17
|
-
*
|
|
21
|
+
* The time this identity was created.
|
|
18
22
|
* @readonly
|
|
19
23
|
*/
|
|
20
24
|
createdDate?: Date;
|
|
21
25
|
/**
|
|
22
|
-
*
|
|
26
|
+
* The time this identity was last updated.
|
|
23
27
|
* @readonly
|
|
24
28
|
*/
|
|
25
29
|
updatedDate?: Date;
|
|
26
|
-
/**
|
|
30
|
+
/** The identity configured connections to authenticate with. */
|
|
27
31
|
connections?: Connection[];
|
|
32
|
+
/** Identity profile. */
|
|
28
33
|
identityProfile?: IdentityProfile;
|
|
29
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Additional information about the identity that can impact user access.
|
|
36
|
+
* This data cannot be set.
|
|
37
|
+
*/
|
|
30
38
|
metadata?: Metadata;
|
|
39
|
+
/** Identity email address. */
|
|
31
40
|
email?: Email;
|
|
41
|
+
/** Identity's current status. */
|
|
32
42
|
status?: StatusV2;
|
|
33
43
|
}
|
|
34
44
|
export interface Identifier extends IdentifierValueOneOf {
|
|
@@ -41,39 +51,65 @@ export interface IdentifierValueOneOf {
|
|
|
41
51
|
userName?: string;
|
|
42
52
|
}
|
|
43
53
|
export interface Connection extends ConnectionTypeOneOf {
|
|
54
|
+
/** IDP connection. */
|
|
44
55
|
idpConnection?: IdpConnection;
|
|
56
|
+
/** Authenticator connection. */
|
|
45
57
|
authenticatorConnection?: AuthenticatorConnection;
|
|
46
58
|
}
|
|
47
59
|
/** @oneof */
|
|
48
60
|
export interface ConnectionTypeOneOf {
|
|
61
|
+
/** IDP connection. */
|
|
49
62
|
idpConnection?: IdpConnection;
|
|
63
|
+
/** Authenticator connection. */
|
|
50
64
|
authenticatorConnection?: AuthenticatorConnection;
|
|
51
65
|
}
|
|
52
66
|
export interface IdpConnection {
|
|
67
|
+
/** IDP connection ID. */
|
|
53
68
|
idpConnectionId?: string;
|
|
69
|
+
/** IDP user ID. */
|
|
54
70
|
idpUserId?: string;
|
|
55
71
|
}
|
|
56
72
|
export interface AuthenticatorConnection {
|
|
73
|
+
/** Authenticator connection ID. */
|
|
57
74
|
authenticatorConnectionId?: string;
|
|
75
|
+
/** Whether re-enrollment is required. */
|
|
58
76
|
reEnrollmentRequired?: boolean;
|
|
59
77
|
}
|
|
60
78
|
export interface IdentityProfile {
|
|
79
|
+
/** Profile first name. */
|
|
61
80
|
firstName?: string | null;
|
|
81
|
+
/** Profile last name. */
|
|
62
82
|
lastName?: string | null;
|
|
83
|
+
/** Profile nickname. */
|
|
63
84
|
nickname?: string | null;
|
|
85
|
+
/** Profile picture URL. */
|
|
64
86
|
picture?: string | null;
|
|
87
|
+
/** Deprecated. Use `secondaryEmails` instead. */
|
|
65
88
|
emails?: string[];
|
|
89
|
+
/** Deprecated. Use `phonesV2` instead. */
|
|
66
90
|
phones?: string[];
|
|
91
|
+
/** List of profile labels. */
|
|
67
92
|
labels?: string[];
|
|
93
|
+
/** Profile language. */
|
|
68
94
|
language?: string | null;
|
|
95
|
+
/** Profile privacy status. */
|
|
69
96
|
privacyStatus?: PrivacyStatus;
|
|
70
|
-
/**
|
|
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
|
+
*/
|
|
71
101
|
customFields?: CustomField[];
|
|
102
|
+
/** List of profile email addresses. */
|
|
72
103
|
secondaryEmails?: SecondaryEmail[];
|
|
104
|
+
/** List of profile phone numbers. */
|
|
73
105
|
phonesV2?: Phone[];
|
|
106
|
+
/** List of profile physical addresses. */
|
|
74
107
|
addresses?: AddressWrapper[];
|
|
108
|
+
/** Company name. */
|
|
75
109
|
company?: string | null;
|
|
110
|
+
/** Position within company. */
|
|
76
111
|
position?: string | null;
|
|
112
|
+
/** Profile birthdate. */
|
|
77
113
|
birthdate?: string | null;
|
|
78
114
|
}
|
|
79
115
|
export declare enum PrivacyStatus {
|
|
@@ -82,32 +118,52 @@ export declare enum PrivacyStatus {
|
|
|
82
118
|
PRIVATE = "PRIVATE"
|
|
83
119
|
}
|
|
84
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
|
+
*/
|
|
85
126
|
name?: string;
|
|
127
|
+
/** Custom field value. */
|
|
86
128
|
value?: CustomValue;
|
|
87
129
|
}
|
|
88
130
|
export interface CustomValue extends CustomValueValueOneOf {
|
|
131
|
+
/** String value. */
|
|
89
132
|
strValue?: string;
|
|
133
|
+
/** Number value. */
|
|
90
134
|
numValue?: number;
|
|
135
|
+
/** Date value. */
|
|
91
136
|
dateValue?: Date;
|
|
137
|
+
/** List value. */
|
|
92
138
|
listValue?: ListValue;
|
|
139
|
+
/** Map value. */
|
|
93
140
|
mapValue?: MapValue;
|
|
94
141
|
}
|
|
95
142
|
/** @oneof */
|
|
96
143
|
export interface CustomValueValueOneOf {
|
|
144
|
+
/** String value. */
|
|
97
145
|
strValue?: string;
|
|
146
|
+
/** Number value. */
|
|
98
147
|
numValue?: number;
|
|
148
|
+
/** Date value. */
|
|
99
149
|
dateValue?: Date;
|
|
150
|
+
/** List value. */
|
|
100
151
|
listValue?: ListValue;
|
|
152
|
+
/** Map value. */
|
|
101
153
|
mapValue?: MapValue;
|
|
102
154
|
}
|
|
103
155
|
export interface ListValue {
|
|
156
|
+
/** Custom value. */
|
|
104
157
|
value?: CustomValue[];
|
|
105
158
|
}
|
|
106
159
|
export interface MapValue {
|
|
160
|
+
/** Mapped custom value. */
|
|
107
161
|
value?: Record<string, CustomValue>;
|
|
108
162
|
}
|
|
109
163
|
export interface SecondaryEmail {
|
|
164
|
+
/** Email address. */
|
|
110
165
|
email?: string;
|
|
166
|
+
/** Email tag. */
|
|
111
167
|
tag?: EmailTag;
|
|
112
168
|
}
|
|
113
169
|
export declare enum EmailTag {
|
|
@@ -117,8 +173,11 @@ export declare enum EmailTag {
|
|
|
117
173
|
WORK = "WORK"
|
|
118
174
|
}
|
|
119
175
|
export interface Phone {
|
|
176
|
+
/** Phone country code. */
|
|
120
177
|
countryCode?: string | null;
|
|
178
|
+
/** Phone number. */
|
|
121
179
|
phone?: string;
|
|
180
|
+
/** Phone tag. */
|
|
122
181
|
tag?: PhoneTag;
|
|
123
182
|
}
|
|
124
183
|
export declare enum PhoneTag {
|
|
@@ -130,7 +189,9 @@ export declare enum PhoneTag {
|
|
|
130
189
|
FAX = "FAX"
|
|
131
190
|
}
|
|
132
191
|
export interface AddressWrapper {
|
|
192
|
+
/** Address. */
|
|
133
193
|
address?: Address;
|
|
194
|
+
/** Address tag. */
|
|
134
195
|
tag?: AddressTag;
|
|
135
196
|
}
|
|
136
197
|
/** Physical address */
|
|
@@ -217,33 +278,35 @@ export interface LoginRequest {
|
|
|
217
278
|
loginId?: LoginId;
|
|
218
279
|
}
|
|
219
280
|
export interface LoginId extends LoginIdTypeOneOf {
|
|
281
|
+
/** Login email address. */
|
|
220
282
|
email?: string;
|
|
221
283
|
}
|
|
222
284
|
/** @oneof */
|
|
223
285
|
export interface LoginIdTypeOneOf {
|
|
286
|
+
/** Login email address. */
|
|
224
287
|
email?: string;
|
|
225
288
|
}
|
|
226
289
|
export interface SuccessfulLoginEvent {
|
|
227
290
|
identity?: Identity;
|
|
228
291
|
}
|
|
229
292
|
export interface RegisterV2Request {
|
|
230
|
-
/**
|
|
293
|
+
/** Identifier of registering member. */
|
|
231
294
|
loginId: LoginId;
|
|
232
|
-
/**
|
|
295
|
+
/** Password of registering member. */
|
|
233
296
|
password?: string;
|
|
234
|
-
/**
|
|
297
|
+
/** Profile information of registering member. */
|
|
235
298
|
profile?: IdentityProfile;
|
|
236
|
-
/**
|
|
299
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
237
300
|
captchaTokens?: CaptchaToken[];
|
|
238
301
|
}
|
|
239
302
|
export interface StateMachineResponse {
|
|
240
|
-
/** The current state */
|
|
303
|
+
/** The current state of the login or registration process. */
|
|
241
304
|
state?: StateType;
|
|
242
|
-
/**
|
|
305
|
+
/** If state is `SUCCESS`, a session token. */
|
|
243
306
|
sessionToken?: string | null;
|
|
244
|
-
/**
|
|
307
|
+
/** A token representing the current state of the login or registration process. */
|
|
245
308
|
stateToken?: string | null;
|
|
246
|
-
/**
|
|
309
|
+
/** Identing of the current member. */
|
|
247
310
|
identity?: Identity;
|
|
248
311
|
}
|
|
249
312
|
export declare enum StateType {
|
|
@@ -254,11 +317,11 @@ export declare enum StateType {
|
|
|
254
317
|
STATUS_CHECK = "STATUS_CHECK"
|
|
255
318
|
}
|
|
256
319
|
export interface LoginV2Request {
|
|
257
|
-
/**
|
|
320
|
+
/** Identifier of member logging in. */
|
|
258
321
|
loginId: LoginId;
|
|
259
|
-
/**
|
|
322
|
+
/** Password of the member logging in. */
|
|
260
323
|
password?: string;
|
|
261
|
-
/**
|
|
324
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
262
325
|
captchaTokens?: CaptchaToken[];
|
|
263
326
|
}
|
|
264
327
|
export interface LoginWithIdpConnectionRequest {
|
|
@@ -309,7 +372,14 @@ export interface QueryParametersEntry {
|
|
|
309
372
|
key?: string;
|
|
310
373
|
value?: string;
|
|
311
374
|
}
|
|
375
|
+
export interface LoginCallbackRequest {
|
|
376
|
+
/** state that that received on the redirect */
|
|
377
|
+
state?: string;
|
|
378
|
+
/** session token */
|
|
379
|
+
sessionToken?: string;
|
|
380
|
+
}
|
|
312
381
|
export interface ProceedToNextStateRequest {
|
|
382
|
+
/** State token received from the previous step in the registration or login process. */
|
|
313
383
|
stateToken?: string;
|
|
314
384
|
}
|
|
315
385
|
export interface SignOnRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-authentication-v1-authentication.types.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iam-authentication-v1-authentication.types.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.types.ts"],"names":[],"mappings":"AA2HA,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAyDD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAWD,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAyBD,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;AACvB,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAoBD,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACrB,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAED,MAAM,CAAN,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,6EAAmE,CAAA;IACnE,qFAA2E,CAAA;AAC7E,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB;AA0BD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,gEAAiD,CAAA;IACjD,4CAA6B,CAAA;AAC/B,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAiDD,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,4CAA+B,CAAA;IAC/B,gCAAmB,CAAA;IACnB,8DAAiD,CAAA;IACjD,sEAAyD,CAAA;IACzD,0CAA6B,CAAA;AAC/B,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AA4BD,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
|
|
@@ -16,25 +16,35 @@ export interface RegisterRequest {
|
|
|
16
16
|
export interface Identity {
|
|
17
17
|
/** Identity ID */
|
|
18
18
|
_id?: string | null;
|
|
19
|
+
/** Identifiers */
|
|
19
20
|
identifiers?: Identifier[];
|
|
20
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
23
|
+
* For an update operation to succeed, you MUST pass the latest revision.
|
|
24
|
+
*/
|
|
21
25
|
revision?: string | null;
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* The time this identity was created.
|
|
24
28
|
* @readonly
|
|
25
29
|
*/
|
|
26
30
|
_createdDate?: Date;
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* The time this identity was last updated.
|
|
29
33
|
* @readonly
|
|
30
34
|
*/
|
|
31
35
|
_updatedDate?: Date;
|
|
32
|
-
/**
|
|
36
|
+
/** The identity configured connections to authenticate with. */
|
|
33
37
|
connections?: Connection[];
|
|
38
|
+
/** Identity profile. */
|
|
34
39
|
identityProfile?: IdentityProfile;
|
|
35
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Additional information about the identity that can impact user access.
|
|
42
|
+
* This data cannot be set.
|
|
43
|
+
*/
|
|
36
44
|
metadata?: Metadata;
|
|
45
|
+
/** Identity email address. */
|
|
37
46
|
email?: Email;
|
|
47
|
+
/** Identity's current status. */
|
|
38
48
|
status?: StatusV2;
|
|
39
49
|
}
|
|
40
50
|
export interface Identifier extends IdentifierValueOneOf {
|
|
@@ -47,39 +57,65 @@ export interface IdentifierValueOneOf {
|
|
|
47
57
|
userName?: string;
|
|
48
58
|
}
|
|
49
59
|
export interface Connection extends ConnectionTypeOneOf {
|
|
60
|
+
/** IDP connection. */
|
|
50
61
|
idpConnection?: IdpConnection;
|
|
62
|
+
/** Authenticator connection. */
|
|
51
63
|
authenticatorConnection?: AuthenticatorConnection;
|
|
52
64
|
}
|
|
53
65
|
/** @oneof */
|
|
54
66
|
export interface ConnectionTypeOneOf {
|
|
67
|
+
/** IDP connection. */
|
|
55
68
|
idpConnection?: IdpConnection;
|
|
69
|
+
/** Authenticator connection. */
|
|
56
70
|
authenticatorConnection?: AuthenticatorConnection;
|
|
57
71
|
}
|
|
58
72
|
export interface IdpConnection {
|
|
73
|
+
/** IDP connection ID. */
|
|
59
74
|
idpConnectionId?: string;
|
|
75
|
+
/** IDP user ID. */
|
|
60
76
|
idpUserId?: string;
|
|
61
77
|
}
|
|
62
78
|
export interface AuthenticatorConnection {
|
|
79
|
+
/** Authenticator connection ID. */
|
|
63
80
|
authenticatorConnectionId?: string;
|
|
81
|
+
/** Whether re-enrollment is required. */
|
|
64
82
|
reEnrollmentRequired?: boolean;
|
|
65
83
|
}
|
|
66
84
|
export interface IdentityProfile {
|
|
85
|
+
/** Profile first name. */
|
|
67
86
|
firstName?: string | null;
|
|
87
|
+
/** Profile last name. */
|
|
68
88
|
lastName?: string | null;
|
|
89
|
+
/** Profile nickname. */
|
|
69
90
|
nickname?: string | null;
|
|
91
|
+
/** Profile picture URL. */
|
|
70
92
|
picture?: string | null;
|
|
93
|
+
/** Deprecated. Use `secondaryEmails` instead. */
|
|
71
94
|
emails?: string[];
|
|
95
|
+
/** Deprecated. Use `phonesV2` instead. */
|
|
72
96
|
phones?: string[];
|
|
97
|
+
/** List of profile labels. */
|
|
73
98
|
labels?: string[];
|
|
99
|
+
/** Profile language. */
|
|
74
100
|
language?: string | null;
|
|
101
|
+
/** Profile privacy status. */
|
|
75
102
|
privacyStatus?: PrivacyStatus;
|
|
76
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
105
|
+
* are used to store additional information about your site or app's contacts.
|
|
106
|
+
*/
|
|
77
107
|
customFields?: CustomField[];
|
|
108
|
+
/** List of profile email addresses. */
|
|
78
109
|
secondaryEmails?: SecondaryEmail[];
|
|
110
|
+
/** List of profile phone numbers. */
|
|
79
111
|
phonesV2?: Phone[];
|
|
112
|
+
/** List of profile physical addresses. */
|
|
80
113
|
addresses?: AddressWrapper[];
|
|
114
|
+
/** Company name. */
|
|
81
115
|
company?: string | null;
|
|
116
|
+
/** Position within company. */
|
|
82
117
|
position?: string | null;
|
|
118
|
+
/** Profile birthdate. */
|
|
83
119
|
birthdate?: string | null;
|
|
84
120
|
}
|
|
85
121
|
export declare enum PrivacyStatus {
|
|
@@ -88,32 +124,52 @@ export declare enum PrivacyStatus {
|
|
|
88
124
|
PRIVATE = "PRIVATE"
|
|
89
125
|
}
|
|
90
126
|
export interface CustomField {
|
|
127
|
+
/**
|
|
128
|
+
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
129
|
+
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
130
|
+
* with the `custom.` prefix removed.
|
|
131
|
+
*/
|
|
91
132
|
name?: string;
|
|
133
|
+
/** Custom field value. */
|
|
92
134
|
value?: CustomValue;
|
|
93
135
|
}
|
|
94
136
|
export interface CustomValue extends CustomValueValueOneOf {
|
|
137
|
+
/** String value. */
|
|
95
138
|
strValue?: string;
|
|
139
|
+
/** Number value. */
|
|
96
140
|
numValue?: number;
|
|
141
|
+
/** Date value. */
|
|
97
142
|
dateValue?: Date;
|
|
143
|
+
/** List value. */
|
|
98
144
|
listValue?: ListValue;
|
|
145
|
+
/** Map value. */
|
|
99
146
|
mapValue?: MapValue;
|
|
100
147
|
}
|
|
101
148
|
/** @oneof */
|
|
102
149
|
export interface CustomValueValueOneOf {
|
|
150
|
+
/** String value. */
|
|
103
151
|
strValue?: string;
|
|
152
|
+
/** Number value. */
|
|
104
153
|
numValue?: number;
|
|
154
|
+
/** Date value. */
|
|
105
155
|
dateValue?: Date;
|
|
156
|
+
/** List value. */
|
|
106
157
|
listValue?: ListValue;
|
|
158
|
+
/** Map value. */
|
|
107
159
|
mapValue?: MapValue;
|
|
108
160
|
}
|
|
109
161
|
export interface ListValue {
|
|
162
|
+
/** Custom value. */
|
|
110
163
|
value?: CustomValue[];
|
|
111
164
|
}
|
|
112
165
|
export interface MapValue {
|
|
166
|
+
/** Mapped custom value. */
|
|
113
167
|
value?: Record<string, CustomValue>;
|
|
114
168
|
}
|
|
115
169
|
export interface SecondaryEmail {
|
|
170
|
+
/** Email address. */
|
|
116
171
|
email?: string;
|
|
172
|
+
/** Email tag. */
|
|
117
173
|
tag?: EmailTag;
|
|
118
174
|
}
|
|
119
175
|
export declare enum EmailTag {
|
|
@@ -123,8 +179,11 @@ export declare enum EmailTag {
|
|
|
123
179
|
WORK = "WORK"
|
|
124
180
|
}
|
|
125
181
|
export interface Phone {
|
|
182
|
+
/** Phone country code. */
|
|
126
183
|
countryCode?: string | null;
|
|
184
|
+
/** Phone number. */
|
|
127
185
|
phone?: string;
|
|
186
|
+
/** Phone tag. */
|
|
128
187
|
tag?: PhoneTag;
|
|
129
188
|
}
|
|
130
189
|
export declare enum PhoneTag {
|
|
@@ -136,7 +195,9 @@ export declare enum PhoneTag {
|
|
|
136
195
|
FAX = "FAX"
|
|
137
196
|
}
|
|
138
197
|
export interface AddressWrapper {
|
|
198
|
+
/** Address. */
|
|
139
199
|
address?: Address;
|
|
200
|
+
/** Address tag. */
|
|
140
201
|
tag?: AddressTag;
|
|
141
202
|
}
|
|
142
203
|
/** Physical address */
|
|
@@ -223,33 +284,35 @@ export interface LoginRequest {
|
|
|
223
284
|
loginId?: LoginId;
|
|
224
285
|
}
|
|
225
286
|
export interface LoginId extends LoginIdTypeOneOf {
|
|
287
|
+
/** Login email address. */
|
|
226
288
|
email?: string;
|
|
227
289
|
}
|
|
228
290
|
/** @oneof */
|
|
229
291
|
export interface LoginIdTypeOneOf {
|
|
292
|
+
/** Login email address. */
|
|
230
293
|
email?: string;
|
|
231
294
|
}
|
|
232
295
|
export interface SuccessfulLoginEvent {
|
|
233
296
|
identity?: Identity;
|
|
234
297
|
}
|
|
235
298
|
export interface RegisterV2Request {
|
|
236
|
-
/**
|
|
299
|
+
/** Identifier of registering member. */
|
|
237
300
|
loginId: LoginId;
|
|
238
|
-
/**
|
|
301
|
+
/** Password of registering member. */
|
|
239
302
|
password?: string;
|
|
240
|
-
/**
|
|
303
|
+
/** Profile information of registering member. */
|
|
241
304
|
profile?: IdentityProfile;
|
|
242
|
-
/**
|
|
305
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
243
306
|
captchaTokens?: CaptchaToken[];
|
|
244
307
|
}
|
|
245
308
|
export interface StateMachineResponse {
|
|
246
|
-
/** The current state */
|
|
309
|
+
/** The current state of the login or registration process. */
|
|
247
310
|
state?: StateType;
|
|
248
|
-
/**
|
|
311
|
+
/** If state is `SUCCESS`, a session token. */
|
|
249
312
|
sessionToken?: string | null;
|
|
250
|
-
/**
|
|
313
|
+
/** A token representing the current state of the login or registration process. */
|
|
251
314
|
stateToken?: string | null;
|
|
252
|
-
/**
|
|
315
|
+
/** Identing of the current member. */
|
|
253
316
|
identity?: Identity;
|
|
254
317
|
}
|
|
255
318
|
export declare enum StateType {
|
|
@@ -260,11 +323,11 @@ export declare enum StateType {
|
|
|
260
323
|
STATUS_CHECK = "STATUS_CHECK"
|
|
261
324
|
}
|
|
262
325
|
export interface LoginV2Request {
|
|
263
|
-
/**
|
|
326
|
+
/** Identifier of member logging in. */
|
|
264
327
|
loginId: LoginId;
|
|
265
|
-
/**
|
|
328
|
+
/** Password of the member logging in. */
|
|
266
329
|
password?: string;
|
|
267
|
-
/**
|
|
330
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
268
331
|
captchaTokens?: CaptchaToken[];
|
|
269
332
|
}
|
|
270
333
|
export interface LoginWithIdpConnectionRequest {
|
|
@@ -315,7 +378,14 @@ export interface QueryParametersEntry {
|
|
|
315
378
|
key?: string;
|
|
316
379
|
value?: string;
|
|
317
380
|
}
|
|
381
|
+
export interface LoginCallbackRequest {
|
|
382
|
+
/** state that that received on the redirect */
|
|
383
|
+
state?: string;
|
|
384
|
+
/** session token */
|
|
385
|
+
sessionToken?: string;
|
|
386
|
+
}
|
|
318
387
|
export interface ProceedToNextStateRequest {
|
|
388
|
+
/** State token received from the previous step in the registration or login process. */
|
|
319
389
|
stateToken?: string;
|
|
320
390
|
}
|
|
321
391
|
export interface SignOnRequest {
|
|
@@ -363,30 +433,43 @@ export interface LoginOptions {
|
|
|
363
433
|
/** the identifier of the identity */
|
|
364
434
|
loginId?: LoginId;
|
|
365
435
|
}
|
|
366
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* Registers a new member.
|
|
438
|
+
*
|
|
439
|
+
* Typically, after a sucessful registration, you generate and use member tokens for the
|
|
440
|
+
* registered member so that subsequent API calls are called as part of a member session.
|
|
441
|
+
*
|
|
442
|
+
* If the email used to register the member already exists as a contact email, the registering
|
|
443
|
+
* member need to verify the email address using a code that is sent to the address.
|
|
444
|
+
* @param loginId - Identifier of registering member.
|
|
367
445
|
* @public
|
|
368
446
|
* @documentationMaturity preview
|
|
369
447
|
* @requiredField loginId
|
|
370
448
|
*/
|
|
371
449
|
export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<StateMachineResponse>;
|
|
372
450
|
export interface RegisterV2Options {
|
|
373
|
-
/**
|
|
451
|
+
/** Password of registering member. */
|
|
374
452
|
password?: string;
|
|
375
|
-
/**
|
|
453
|
+
/** Profile information of registering member. */
|
|
376
454
|
profile?: IdentityProfile;
|
|
377
|
-
/**
|
|
455
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
378
456
|
captchaTokens?: CaptchaToken[];
|
|
379
457
|
}
|
|
380
|
-
/**
|
|
458
|
+
/**
|
|
459
|
+
* Logs in an existing user.
|
|
460
|
+
*
|
|
461
|
+
* Typically, after a sucessful login, you generate and use member tokens for the
|
|
462
|
+
* logged-in member so that subsequent API calls are called as part of a member session.
|
|
463
|
+
* @param loginId - Identifier of member logging in.
|
|
381
464
|
* @public
|
|
382
465
|
* @documentationMaturity preview
|
|
383
466
|
* @requiredField loginId
|
|
384
467
|
*/
|
|
385
468
|
export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<StateMachineResponse>;
|
|
386
469
|
export interface LoginV2Options {
|
|
387
|
-
/**
|
|
470
|
+
/** Password of the member logging in. */
|
|
388
471
|
password?: string;
|
|
389
|
-
/**
|
|
472
|
+
/** CAPTCHA tokens, when CAPTCHA setting is on. */
|
|
390
473
|
captchaTokens?: CaptchaToken[];
|
|
391
474
|
}
|
|
392
475
|
/** @public
|
|
@@ -394,12 +477,15 @@ export interface LoginV2Options {
|
|
|
394
477
|
*/
|
|
395
478
|
export declare function proceedToNextState(options?: ProceedToNextStateOptions): Promise<LoginResponse>;
|
|
396
479
|
export interface ProceedToNextStateOptions {
|
|
480
|
+
/** State token received from the previous step in the registration or login process. */
|
|
397
481
|
stateToken?: string;
|
|
398
482
|
}
|
|
399
483
|
/** @param loginId - the identifier of the identity
|
|
400
484
|
* @public
|
|
401
485
|
* @documentationMaturity preview
|
|
402
486
|
* @requiredField loginId
|
|
487
|
+
* @permissionScope IAM.AUTHENTICAITON_SIGN_ON
|
|
488
|
+
* @applicableIdentity APP
|
|
403
489
|
*/
|
|
404
490
|
export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<SignOnResponse>;
|
|
405
491
|
export interface SignOnOptions {
|
|
@@ -411,7 +497,7 @@ export interface SignOnOptions {
|
|
|
411
497
|
mergeExistingContact?: boolean;
|
|
412
498
|
}
|
|
413
499
|
/**
|
|
414
|
-
*
|
|
500
|
+
* Logs out a member.
|
|
415
501
|
* @public
|
|
416
502
|
* @documentationMaturity preview
|
|
417
503
|
*/
|
|
@@ -244,7 +244,15 @@ export function login(identifier, options) {
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* Registers a new member.
|
|
249
|
+
*
|
|
250
|
+
* Typically, after a sucessful registration, you generate and use member tokens for the
|
|
251
|
+
* registered member so that subsequent API calls are called as part of a member session.
|
|
252
|
+
*
|
|
253
|
+
* If the email used to register the member already exists as a contact email, the registering
|
|
254
|
+
* member need to verify the email address using a code that is sent to the address.
|
|
255
|
+
* @param loginId - Identifier of registering member.
|
|
248
256
|
* @public
|
|
249
257
|
* @documentationMaturity preview
|
|
250
258
|
* @requiredField loginId
|
|
@@ -313,7 +321,12 @@ export function registerV2(loginId, options) {
|
|
|
313
321
|
}
|
|
314
322
|
});
|
|
315
323
|
}
|
|
316
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Logs in an existing user.
|
|
326
|
+
*
|
|
327
|
+
* Typically, after a sucessful login, you generate and use member tokens for the
|
|
328
|
+
* logged-in member so that subsequent API calls are called as part of a member session.
|
|
329
|
+
* @param loginId - Identifier of member logging in.
|
|
317
330
|
* @public
|
|
318
331
|
* @documentationMaturity preview
|
|
319
332
|
* @requiredField loginId
|
|
@@ -432,6 +445,8 @@ export function proceedToNextState(options) {
|
|
|
432
445
|
* @public
|
|
433
446
|
* @documentationMaturity preview
|
|
434
447
|
* @requiredField loginId
|
|
448
|
+
* @permissionScope IAM.AUTHENTICAITON_SIGN_ON
|
|
449
|
+
* @applicableIdentity APP
|
|
435
450
|
*/
|
|
436
451
|
export function signOn(loginId, options) {
|
|
437
452
|
var _a, _b, _c;
|
|
@@ -490,7 +505,7 @@ export function signOn(loginId, options) {
|
|
|
490
505
|
});
|
|
491
506
|
}
|
|
492
507
|
/**
|
|
493
|
-
*
|
|
508
|
+
* Logs out a member.
|
|
494
509
|
* @public
|
|
495
510
|
* @documentationMaturity preview
|
|
496
511
|
*/
|