@wix/identity 1.0.49 → 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 +18 -3
- package/build/cjs/src/iam-authentication-v1-authentication.http.js +34 -13
- package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +3 -3
- package/build/cjs/src/iam-authentication-v1-authentication.public.js +4 -4
- package/build/cjs/src/iam-authentication-v1-authentication.public.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.types.d.ts +91 -21
- package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +118 -34
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +26 -13
- 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 +18 -3
- package/build/es/src/iam-authentication-v1-authentication.http.js +32 -11
- package/build/es/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.public.d.ts +3 -3
- package/build/es/src/iam-authentication-v1-authentication.public.js +3 -3
- package/build/es/src/iam-authentication-v1-authentication.public.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.types.d.ts +91 -21
- package/build/es/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +118 -34
- package/build/es/src/iam-authentication-v1-authentication.universal.js +24 -11
- 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
|
@@ -24,19 +24,19 @@ export interface VerifyRequest {
|
|
|
24
24
|
export interface VerifyResponse {
|
|
25
25
|
}
|
|
26
26
|
export interface VerifyDuringAuthenticationRequest {
|
|
27
|
-
/**
|
|
27
|
+
/** The code to verify. */
|
|
28
28
|
code: string;
|
|
29
|
-
/**
|
|
29
|
+
/** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
|
|
30
30
|
stateToken: string;
|
|
31
31
|
}
|
|
32
32
|
export interface StateMachineResponse {
|
|
33
|
-
/** The current state */
|
|
33
|
+
/** The current state of the login or registration process. */
|
|
34
34
|
state?: StateType;
|
|
35
|
-
/**
|
|
35
|
+
/** If state is `SUCCESS`, a session token. */
|
|
36
36
|
sessionToken?: string | null;
|
|
37
|
-
/**
|
|
37
|
+
/** A token representing the current state of the login or registration process. */
|
|
38
38
|
stateToken?: string | null;
|
|
39
|
-
/**
|
|
39
|
+
/** Identing of the current member. */
|
|
40
40
|
identity?: Identity;
|
|
41
41
|
}
|
|
42
42
|
export declare enum StateType {
|
|
@@ -49,25 +49,35 @@ export declare enum StateType {
|
|
|
49
49
|
export interface Identity {
|
|
50
50
|
/** Identity ID */
|
|
51
51
|
id?: string | null;
|
|
52
|
+
/** Identifiers */
|
|
52
53
|
identifiers?: Identifier[];
|
|
53
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
56
|
+
* For an update operation to succeed, you MUST pass the latest revision.
|
|
57
|
+
*/
|
|
54
58
|
revision?: string | null;
|
|
55
59
|
/**
|
|
56
|
-
*
|
|
60
|
+
* The time this identity was created.
|
|
57
61
|
* @readonly
|
|
58
62
|
*/
|
|
59
63
|
createdDate?: Date;
|
|
60
64
|
/**
|
|
61
|
-
*
|
|
65
|
+
* The time this identity was last updated.
|
|
62
66
|
* @readonly
|
|
63
67
|
*/
|
|
64
68
|
updatedDate?: Date;
|
|
65
|
-
/**
|
|
69
|
+
/** The identity configured connections to authenticate with. */
|
|
66
70
|
connections?: Connection[];
|
|
71
|
+
/** Identity profile. */
|
|
67
72
|
identityProfile?: IdentityProfile;
|
|
68
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Additional information about the identity that can impact user access.
|
|
75
|
+
* This data cannot be set.
|
|
76
|
+
*/
|
|
69
77
|
metadata?: Metadata;
|
|
78
|
+
/** Identity email address. */
|
|
70
79
|
email?: Email;
|
|
80
|
+
/** Identity's current status. */
|
|
71
81
|
status?: StatusV2;
|
|
72
82
|
}
|
|
73
83
|
export interface Identifier extends IdentifierValueOneOf {
|
|
@@ -80,39 +90,65 @@ export interface IdentifierValueOneOf {
|
|
|
80
90
|
userName?: string;
|
|
81
91
|
}
|
|
82
92
|
export interface Connection extends ConnectionTypeOneOf {
|
|
93
|
+
/** IDP connection. */
|
|
83
94
|
idpConnection?: IdpConnection;
|
|
95
|
+
/** Authenticator connection. */
|
|
84
96
|
authenticatorConnection?: AuthenticatorConnection;
|
|
85
97
|
}
|
|
86
98
|
/** @oneof */
|
|
87
99
|
export interface ConnectionTypeOneOf {
|
|
100
|
+
/** IDP connection. */
|
|
88
101
|
idpConnection?: IdpConnection;
|
|
102
|
+
/** Authenticator connection. */
|
|
89
103
|
authenticatorConnection?: AuthenticatorConnection;
|
|
90
104
|
}
|
|
91
105
|
export interface IdpConnection {
|
|
106
|
+
/** IDP connection ID. */
|
|
92
107
|
idpConnectionId?: string;
|
|
108
|
+
/** IDP user ID. */
|
|
93
109
|
idpUserId?: string;
|
|
94
110
|
}
|
|
95
111
|
export interface AuthenticatorConnection {
|
|
112
|
+
/** Authenticator connection ID. */
|
|
96
113
|
authenticatorConnectionId?: string;
|
|
114
|
+
/** Whether re-enrollment is required. */
|
|
97
115
|
reEnrollmentRequired?: boolean;
|
|
98
116
|
}
|
|
99
117
|
export interface IdentityProfile {
|
|
118
|
+
/** Profile first name. */
|
|
100
119
|
firstName?: string | null;
|
|
120
|
+
/** Profile last name. */
|
|
101
121
|
lastName?: string | null;
|
|
122
|
+
/** Profile nickname. */
|
|
102
123
|
nickname?: string | null;
|
|
124
|
+
/** Profile picture URL. */
|
|
103
125
|
picture?: string | null;
|
|
126
|
+
/** Deprecated. Use `secondaryEmails` instead. */
|
|
104
127
|
emails?: string[];
|
|
128
|
+
/** Deprecated. Use `phonesV2` instead. */
|
|
105
129
|
phones?: string[];
|
|
130
|
+
/** List of profile labels. */
|
|
106
131
|
labels?: string[];
|
|
132
|
+
/** Profile language. */
|
|
107
133
|
language?: string | null;
|
|
134
|
+
/** Profile privacy status. */
|
|
108
135
|
privacyStatus?: PrivacyStatus;
|
|
109
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
138
|
+
* are used to store additional information about your site or app's contacts.
|
|
139
|
+
*/
|
|
110
140
|
customFields?: CustomField[];
|
|
141
|
+
/** List of profile email addresses. */
|
|
111
142
|
secondaryEmails?: SecondaryEmail[];
|
|
143
|
+
/** List of profile phone numbers. */
|
|
112
144
|
phonesV2?: Phone[];
|
|
145
|
+
/** List of profile physical addresses. */
|
|
113
146
|
addresses?: AddressWrapper[];
|
|
147
|
+
/** Company name. */
|
|
114
148
|
company?: string | null;
|
|
149
|
+
/** Position within company. */
|
|
115
150
|
position?: string | null;
|
|
151
|
+
/** Profile birthdate. */
|
|
116
152
|
birthdate?: string | null;
|
|
117
153
|
}
|
|
118
154
|
export declare enum PrivacyStatus {
|
|
@@ -121,32 +157,52 @@ export declare enum PrivacyStatus {
|
|
|
121
157
|
PRIVATE = "PRIVATE"
|
|
122
158
|
}
|
|
123
159
|
export interface CustomField {
|
|
160
|
+
/**
|
|
161
|
+
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
162
|
+
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
163
|
+
* with the `custom.` prefix removed.
|
|
164
|
+
*/
|
|
124
165
|
name?: string;
|
|
166
|
+
/** Custom field value. */
|
|
125
167
|
value?: CustomValue;
|
|
126
168
|
}
|
|
127
169
|
export interface CustomValue extends CustomValueValueOneOf {
|
|
170
|
+
/** String value. */
|
|
128
171
|
strValue?: string;
|
|
172
|
+
/** Number value. */
|
|
129
173
|
numValue?: number;
|
|
174
|
+
/** Date value. */
|
|
130
175
|
dateValue?: Date;
|
|
176
|
+
/** List value. */
|
|
131
177
|
listValue?: ListValue;
|
|
178
|
+
/** Map value. */
|
|
132
179
|
mapValue?: MapValue;
|
|
133
180
|
}
|
|
134
181
|
/** @oneof */
|
|
135
182
|
export interface CustomValueValueOneOf {
|
|
183
|
+
/** String value. */
|
|
136
184
|
strValue?: string;
|
|
185
|
+
/** Number value. */
|
|
137
186
|
numValue?: number;
|
|
187
|
+
/** Date value. */
|
|
138
188
|
dateValue?: Date;
|
|
189
|
+
/** List value. */
|
|
139
190
|
listValue?: ListValue;
|
|
191
|
+
/** Map value. */
|
|
140
192
|
mapValue?: MapValue;
|
|
141
193
|
}
|
|
142
194
|
export interface ListValue {
|
|
195
|
+
/** Custom value. */
|
|
143
196
|
value?: CustomValue[];
|
|
144
197
|
}
|
|
145
198
|
export interface MapValue {
|
|
199
|
+
/** Mapped custom value. */
|
|
146
200
|
value?: Record<string, CustomValue>;
|
|
147
201
|
}
|
|
148
202
|
export interface SecondaryEmail {
|
|
203
|
+
/** Email address. */
|
|
149
204
|
email?: string;
|
|
205
|
+
/** Email tag. */
|
|
150
206
|
tag?: EmailTag;
|
|
151
207
|
}
|
|
152
208
|
export declare enum EmailTag {
|
|
@@ -156,8 +212,11 @@ export declare enum EmailTag {
|
|
|
156
212
|
WORK = "WORK"
|
|
157
213
|
}
|
|
158
214
|
export interface Phone {
|
|
215
|
+
/** Phone country code. */
|
|
159
216
|
countryCode?: string | null;
|
|
217
|
+
/** Phone number. */
|
|
160
218
|
phone?: string;
|
|
219
|
+
/** Phone tag. */
|
|
161
220
|
tag?: PhoneTag;
|
|
162
221
|
}
|
|
163
222
|
export declare enum PhoneTag {
|
|
@@ -169,7 +228,9 @@ export declare enum PhoneTag {
|
|
|
169
228
|
FAX = "FAX"
|
|
170
229
|
}
|
|
171
230
|
export interface AddressWrapper {
|
|
231
|
+
/** Address. */
|
|
172
232
|
address?: Address;
|
|
233
|
+
/** Address tag. */
|
|
173
234
|
tag?: AddressTag;
|
|
174
235
|
}
|
|
175
236
|
/** Physical address */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-verification-v1-start-response.types.js","sourceRoot":"","sources":["../../../src/iam-verification-v1-start-response.types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,yBAAe,CAAA;AACjB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AA6BD,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;
|
|
1
|
+
{"version":3,"file":"iam-verification-v1-start-response.types.js","sourceRoot":"","sources":["../../../src/iam-verification-v1-start-response.types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,yBAAe,CAAA;AACjB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AA6BD,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;AAmHD,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"}
|
|
@@ -30,19 +30,19 @@ export interface VerifyRequest {
|
|
|
30
30
|
export interface VerifyResponse {
|
|
31
31
|
}
|
|
32
32
|
export interface VerifyDuringAuthenticationRequest {
|
|
33
|
-
/**
|
|
33
|
+
/** The code to verify. */
|
|
34
34
|
code: string;
|
|
35
|
-
/**
|
|
35
|
+
/** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
|
|
36
36
|
stateToken: string;
|
|
37
37
|
}
|
|
38
38
|
export interface StateMachineResponse {
|
|
39
|
-
/** The current state */
|
|
39
|
+
/** The current state of the login or registration process. */
|
|
40
40
|
state?: StateType;
|
|
41
|
-
/**
|
|
41
|
+
/** If state is `SUCCESS`, a session token. */
|
|
42
42
|
sessionToken?: string | null;
|
|
43
|
-
/**
|
|
43
|
+
/** A token representing the current state of the login or registration process. */
|
|
44
44
|
stateToken?: string | null;
|
|
45
|
-
/**
|
|
45
|
+
/** Identing of the current member. */
|
|
46
46
|
identity?: Identity;
|
|
47
47
|
}
|
|
48
48
|
export declare enum StateType {
|
|
@@ -55,25 +55,35 @@ export declare enum StateType {
|
|
|
55
55
|
export interface Identity {
|
|
56
56
|
/** Identity ID */
|
|
57
57
|
_id?: string | null;
|
|
58
|
+
/** Identifiers */
|
|
58
59
|
identifiers?: Identifier[];
|
|
59
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
62
|
+
* For an update operation to succeed, you MUST pass the latest revision.
|
|
63
|
+
*/
|
|
60
64
|
revision?: string | null;
|
|
61
65
|
/**
|
|
62
|
-
*
|
|
66
|
+
* The time this identity was created.
|
|
63
67
|
* @readonly
|
|
64
68
|
*/
|
|
65
69
|
_createdDate?: Date;
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* The time this identity was last updated.
|
|
68
72
|
* @readonly
|
|
69
73
|
*/
|
|
70
74
|
_updatedDate?: Date;
|
|
71
|
-
/**
|
|
75
|
+
/** The identity configured connections to authenticate with. */
|
|
72
76
|
connections?: Connection[];
|
|
77
|
+
/** Identity profile. */
|
|
73
78
|
identityProfile?: IdentityProfile;
|
|
74
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Additional information about the identity that can impact user access.
|
|
81
|
+
* This data cannot be set.
|
|
82
|
+
*/
|
|
75
83
|
metadata?: Metadata;
|
|
84
|
+
/** Identity email address. */
|
|
76
85
|
email?: Email;
|
|
86
|
+
/** Identity's current status. */
|
|
77
87
|
status?: StatusV2;
|
|
78
88
|
}
|
|
79
89
|
export interface Identifier extends IdentifierValueOneOf {
|
|
@@ -86,39 +96,65 @@ export interface IdentifierValueOneOf {
|
|
|
86
96
|
userName?: string;
|
|
87
97
|
}
|
|
88
98
|
export interface Connection extends ConnectionTypeOneOf {
|
|
99
|
+
/** IDP connection. */
|
|
89
100
|
idpConnection?: IdpConnection;
|
|
101
|
+
/** Authenticator connection. */
|
|
90
102
|
authenticatorConnection?: AuthenticatorConnection;
|
|
91
103
|
}
|
|
92
104
|
/** @oneof */
|
|
93
105
|
export interface ConnectionTypeOneOf {
|
|
106
|
+
/** IDP connection. */
|
|
94
107
|
idpConnection?: IdpConnection;
|
|
108
|
+
/** Authenticator connection. */
|
|
95
109
|
authenticatorConnection?: AuthenticatorConnection;
|
|
96
110
|
}
|
|
97
111
|
export interface IdpConnection {
|
|
112
|
+
/** IDP connection ID. */
|
|
98
113
|
idpConnectionId?: string;
|
|
114
|
+
/** IDP user ID. */
|
|
99
115
|
idpUserId?: string;
|
|
100
116
|
}
|
|
101
117
|
export interface AuthenticatorConnection {
|
|
118
|
+
/** Authenticator connection ID. */
|
|
102
119
|
authenticatorConnectionId?: string;
|
|
120
|
+
/** Whether re-enrollment is required. */
|
|
103
121
|
reEnrollmentRequired?: boolean;
|
|
104
122
|
}
|
|
105
123
|
export interface IdentityProfile {
|
|
124
|
+
/** Profile first name. */
|
|
106
125
|
firstName?: string | null;
|
|
126
|
+
/** Profile last name. */
|
|
107
127
|
lastName?: string | null;
|
|
128
|
+
/** Profile nickname. */
|
|
108
129
|
nickname?: string | null;
|
|
130
|
+
/** Profile picture URL. */
|
|
109
131
|
picture?: string | null;
|
|
132
|
+
/** Deprecated. Use `secondaryEmails` instead. */
|
|
110
133
|
emails?: string[];
|
|
134
|
+
/** Deprecated. Use `phonesV2` instead. */
|
|
111
135
|
phones?: string[];
|
|
136
|
+
/** List of profile labels. */
|
|
112
137
|
labels?: string[];
|
|
138
|
+
/** Profile language. */
|
|
113
139
|
language?: string | null;
|
|
140
|
+
/** Profile privacy status. */
|
|
114
141
|
privacyStatus?: PrivacyStatus;
|
|
115
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
144
|
+
* are used to store additional information about your site or app's contacts.
|
|
145
|
+
*/
|
|
116
146
|
customFields?: CustomField[];
|
|
147
|
+
/** List of profile email addresses. */
|
|
117
148
|
secondaryEmails?: SecondaryEmail[];
|
|
149
|
+
/** List of profile phone numbers. */
|
|
118
150
|
phonesV2?: Phone[];
|
|
151
|
+
/** List of profile physical addresses. */
|
|
119
152
|
addresses?: AddressWrapper[];
|
|
153
|
+
/** Company name. */
|
|
120
154
|
company?: string | null;
|
|
155
|
+
/** Position within company. */
|
|
121
156
|
position?: string | null;
|
|
157
|
+
/** Profile birthdate. */
|
|
122
158
|
birthdate?: string | null;
|
|
123
159
|
}
|
|
124
160
|
export declare enum PrivacyStatus {
|
|
@@ -127,32 +163,52 @@ export declare enum PrivacyStatus {
|
|
|
127
163
|
PRIVATE = "PRIVATE"
|
|
128
164
|
}
|
|
129
165
|
export interface CustomField {
|
|
166
|
+
/**
|
|
167
|
+
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
168
|
+
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
169
|
+
* with the `custom.` prefix removed.
|
|
170
|
+
*/
|
|
130
171
|
name?: string;
|
|
172
|
+
/** Custom field value. */
|
|
131
173
|
value?: CustomValue;
|
|
132
174
|
}
|
|
133
175
|
export interface CustomValue extends CustomValueValueOneOf {
|
|
176
|
+
/** String value. */
|
|
134
177
|
strValue?: string;
|
|
178
|
+
/** Number value. */
|
|
135
179
|
numValue?: number;
|
|
180
|
+
/** Date value. */
|
|
136
181
|
dateValue?: Date;
|
|
182
|
+
/** List value. */
|
|
137
183
|
listValue?: ListValue;
|
|
184
|
+
/** Map value. */
|
|
138
185
|
mapValue?: MapValue;
|
|
139
186
|
}
|
|
140
187
|
/** @oneof */
|
|
141
188
|
export interface CustomValueValueOneOf {
|
|
189
|
+
/** String value. */
|
|
142
190
|
strValue?: string;
|
|
191
|
+
/** Number value. */
|
|
143
192
|
numValue?: number;
|
|
193
|
+
/** Date value. */
|
|
144
194
|
dateValue?: Date;
|
|
195
|
+
/** List value. */
|
|
145
196
|
listValue?: ListValue;
|
|
197
|
+
/** Map value. */
|
|
146
198
|
mapValue?: MapValue;
|
|
147
199
|
}
|
|
148
200
|
export interface ListValue {
|
|
201
|
+
/** Custom value. */
|
|
149
202
|
value?: CustomValue[];
|
|
150
203
|
}
|
|
151
204
|
export interface MapValue {
|
|
205
|
+
/** Mapped custom value. */
|
|
152
206
|
value?: Record<string, CustomValue>;
|
|
153
207
|
}
|
|
154
208
|
export interface SecondaryEmail {
|
|
209
|
+
/** Email address. */
|
|
155
210
|
email?: string;
|
|
211
|
+
/** Email tag. */
|
|
156
212
|
tag?: EmailTag;
|
|
157
213
|
}
|
|
158
214
|
export declare enum EmailTag {
|
|
@@ -162,8 +218,11 @@ export declare enum EmailTag {
|
|
|
162
218
|
WORK = "WORK"
|
|
163
219
|
}
|
|
164
220
|
export interface Phone {
|
|
221
|
+
/** Phone country code. */
|
|
165
222
|
countryCode?: string | null;
|
|
223
|
+
/** Phone number. */
|
|
166
224
|
phone?: string;
|
|
225
|
+
/** Phone tag. */
|
|
167
226
|
tag?: PhoneTag;
|
|
168
227
|
}
|
|
169
228
|
export declare enum PhoneTag {
|
|
@@ -175,7 +234,9 @@ export declare enum PhoneTag {
|
|
|
175
234
|
FAX = "FAX"
|
|
176
235
|
}
|
|
177
236
|
export interface AddressWrapper {
|
|
237
|
+
/** Address. */
|
|
178
238
|
address?: Address;
|
|
239
|
+
/** Address tag. */
|
|
179
240
|
tag?: AddressTag;
|
|
180
241
|
}
|
|
181
242
|
/** Physical address */
|
|
@@ -244,10 +305,14 @@ export interface StartOptions {
|
|
|
244
305
|
target?: Target;
|
|
245
306
|
}
|
|
246
307
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
308
|
+
* Continues the registration process when a member is required to verify an email address
|
|
309
|
+
* using a verification code received by email.
|
|
310
|
+
*
|
|
311
|
+
* Email verification is required when the registering member is already listed as a contact.
|
|
312
|
+
*
|
|
313
|
+
* Typically, after a sucessful verification, you generate and use member tokens for the
|
|
314
|
+
* registered member so that subsequent API calls are called as part of a member session.
|
|
315
|
+
* @param code - The code to verify.
|
|
251
316
|
* @public
|
|
252
317
|
* @documentationMaturity preview
|
|
253
318
|
* @requiredField code
|
|
@@ -256,6 +321,6 @@ export interface StartOptions {
|
|
|
256
321
|
*/
|
|
257
322
|
export declare function verifyDuringAuthentication(code: string, options: VerifyDuringAuthenticationOptions): Promise<StateMachineResponse>;
|
|
258
323
|
export interface VerifyDuringAuthenticationOptions {
|
|
259
|
-
/**
|
|
324
|
+
/** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
|
|
260
325
|
stateToken: string;
|
|
261
326
|
}
|
|
@@ -148,10 +148,14 @@ export function start(options) {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
151
|
+
* Continues the registration process when a member is required to verify an email address
|
|
152
|
+
* using a verification code received by email.
|
|
153
|
+
*
|
|
154
|
+
* Email verification is required when the registering member is already listed as a contact.
|
|
155
|
+
*
|
|
156
|
+
* Typically, after a sucessful verification, you generate and use member tokens for the
|
|
157
|
+
* registered member so that subsequent API calls are called as part of a member session.
|
|
158
|
+
* @param code - The code to verify.
|
|
155
159
|
* @public
|
|
156
160
|
* @documentationMaturity preview
|
|
157
161
|
* @requiredField code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-verification-v1-start-response.universal.js","sourceRoot":"","sources":["../../../src/iam-verification-v1-start-response.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,2CAA2C,MAAM,2CAA2C,CAAC;AAEzG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAiB5B,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,yBAAe,CAAA;AACjB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AA6BD,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;
|
|
1
|
+
{"version":3,"file":"iam-verification-v1-start-response.universal.js","sourceRoot":"","sources":["../../../src/iam-verification-v1-start-response.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,2CAA2C,MAAM,2CAA2C,CAAC;AAEzG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,S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ACX,2CAA2C,CAAC,0BAA0B,CACpE,OAAO,CACR,CAAC;QAEJ,KAAK,CACH,sDAAsD,SAAS,CAAC,OAAO,CAAC,EAAE,CAC3E,CAAC;QAEF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,MAAM;gBACN,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/identity",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "f819c8755758e6134921c0b411ea4ed73b6a0173701fbe78916a58f1"
|
|
37
37
|
}
|