@wix/identity 1.0.50 → 1.0.52
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 +10 -2
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +34 -2
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +3 -2
- package/build/cjs/src/iam-recovery-v1-recovery.public.js +7 -1
- package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +86 -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 +106 -19
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +63 -3
- 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 +10 -2
- package/build/es/src/iam-recovery-v1-recovery.http.js +32 -1
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +3 -2
- package/build/es/src/iam-recovery-v1-recovery.public.js +6 -1
- package/build/es/src/iam-recovery-v1-recovery.public.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +86 -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 +106 -19
- package/build/es/src/iam-recovery-v1-recovery.universal.js +61 -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
|
@@ -33,21 +33,31 @@ export declare enum TenantType {
|
|
|
33
33
|
ROOT = "ROOT"
|
|
34
34
|
}
|
|
35
35
|
export interface SendRecoveryEmailRequest {
|
|
36
|
-
/**
|
|
36
|
+
/** Email address associated with the account to recover. */
|
|
37
37
|
email: string;
|
|
38
|
-
/**
|
|
38
|
+
/** Language of the email to be sent. Defaults to the language specified in the member's profile. */
|
|
39
39
|
language?: string | null;
|
|
40
|
-
/** Where to redirect after a successful recovery
|
|
40
|
+
/** Where to redirect to after a successful recovery. */
|
|
41
41
|
redirect?: Redirect;
|
|
42
42
|
}
|
|
43
43
|
export interface Redirect {
|
|
44
|
-
/** The
|
|
44
|
+
/** The URL to redirect to after a successful recovery. */
|
|
45
45
|
url?: string;
|
|
46
|
-
/**
|
|
46
|
+
/** Caller identifier. */
|
|
47
47
|
clientId?: string | null;
|
|
48
48
|
}
|
|
49
49
|
export interface SendRecoveryEmailResponse {
|
|
50
50
|
}
|
|
51
|
+
export interface SendActivationEmailRequest {
|
|
52
|
+
/** Id of the activating user */
|
|
53
|
+
identityId: string;
|
|
54
|
+
/** language of the email - if not received will fallback to the identity language */
|
|
55
|
+
language?: string | null;
|
|
56
|
+
/** Where to redirect after a successful activation process */
|
|
57
|
+
redirect?: Redirect;
|
|
58
|
+
}
|
|
59
|
+
export interface SendActivationEmailResponse {
|
|
60
|
+
}
|
|
51
61
|
export interface RecoverRequest {
|
|
52
62
|
/** recovery token */
|
|
53
63
|
recoveryToken: string;
|
|
@@ -55,13 +65,13 @@ export interface RecoverRequest {
|
|
|
55
65
|
password?: string | null;
|
|
56
66
|
}
|
|
57
67
|
export interface StateMachineResponse {
|
|
58
|
-
/** The current state */
|
|
68
|
+
/** The current state of the login or registration process. */
|
|
59
69
|
state?: StateType;
|
|
60
|
-
/**
|
|
70
|
+
/** If state is `SUCCESS`, a session token. */
|
|
61
71
|
sessionToken?: string | null;
|
|
62
|
-
/**
|
|
72
|
+
/** A token representing the current state of the login or registration process. */
|
|
63
73
|
stateToken?: string | null;
|
|
64
|
-
/**
|
|
74
|
+
/** Identing of the current member. */
|
|
65
75
|
identity?: Identity;
|
|
66
76
|
}
|
|
67
77
|
export declare enum StateType {
|
|
@@ -74,25 +84,35 @@ export declare enum StateType {
|
|
|
74
84
|
export interface Identity {
|
|
75
85
|
/** Identity ID */
|
|
76
86
|
id?: string | null;
|
|
87
|
+
/** Identifiers */
|
|
77
88
|
identifiers?: Identifier[];
|
|
78
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
91
|
+
* For an update operation to succeed, you MUST pass the latest revision.
|
|
92
|
+
*/
|
|
79
93
|
revision?: string | null;
|
|
80
94
|
/**
|
|
81
|
-
*
|
|
95
|
+
* The time this identity was created.
|
|
82
96
|
* @readonly
|
|
83
97
|
*/
|
|
84
98
|
createdDate?: Date;
|
|
85
99
|
/**
|
|
86
|
-
*
|
|
100
|
+
* The time this identity was last updated.
|
|
87
101
|
* @readonly
|
|
88
102
|
*/
|
|
89
103
|
updatedDate?: Date;
|
|
90
|
-
/**
|
|
104
|
+
/** The identity configured connections to authenticate with. */
|
|
91
105
|
connections?: Connection[];
|
|
106
|
+
/** Identity profile. */
|
|
92
107
|
identityProfile?: IdentityProfile;
|
|
93
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Additional information about the identity that can impact user access.
|
|
110
|
+
* This data cannot be set.
|
|
111
|
+
*/
|
|
94
112
|
metadata?: Metadata;
|
|
113
|
+
/** Identity email address. */
|
|
95
114
|
email?: Email;
|
|
115
|
+
/** Identity's current status. */
|
|
96
116
|
status?: StatusV2;
|
|
97
117
|
}
|
|
98
118
|
export interface Identifier extends IdentifierValueOneOf {
|
|
@@ -105,39 +125,65 @@ export interface IdentifierValueOneOf {
|
|
|
105
125
|
userName?: string;
|
|
106
126
|
}
|
|
107
127
|
export interface Connection extends ConnectionTypeOneOf {
|
|
128
|
+
/** IDP connection. */
|
|
108
129
|
idpConnection?: IdpConnection;
|
|
130
|
+
/** Authenticator connection. */
|
|
109
131
|
authenticatorConnection?: AuthenticatorConnection;
|
|
110
132
|
}
|
|
111
133
|
/** @oneof */
|
|
112
134
|
export interface ConnectionTypeOneOf {
|
|
135
|
+
/** IDP connection. */
|
|
113
136
|
idpConnection?: IdpConnection;
|
|
137
|
+
/** Authenticator connection. */
|
|
114
138
|
authenticatorConnection?: AuthenticatorConnection;
|
|
115
139
|
}
|
|
116
140
|
export interface IdpConnection {
|
|
141
|
+
/** IDP connection ID. */
|
|
117
142
|
idpConnectionId?: string;
|
|
143
|
+
/** IDP user ID. */
|
|
118
144
|
idpUserId?: string;
|
|
119
145
|
}
|
|
120
146
|
export interface AuthenticatorConnection {
|
|
147
|
+
/** Authenticator connection ID. */
|
|
121
148
|
authenticatorConnectionId?: string;
|
|
149
|
+
/** Whether re-enrollment is required. */
|
|
122
150
|
reEnrollmentRequired?: boolean;
|
|
123
151
|
}
|
|
124
152
|
export interface IdentityProfile {
|
|
153
|
+
/** Profile first name. */
|
|
125
154
|
firstName?: string | null;
|
|
155
|
+
/** Profile last name. */
|
|
126
156
|
lastName?: string | null;
|
|
157
|
+
/** Profile nickname. */
|
|
127
158
|
nickname?: string | null;
|
|
159
|
+
/** Profile picture URL. */
|
|
128
160
|
picture?: string | null;
|
|
161
|
+
/** Deprecated. Use `secondaryEmails` instead. */
|
|
129
162
|
emails?: string[];
|
|
163
|
+
/** Deprecated. Use `phonesV2` instead. */
|
|
130
164
|
phones?: string[];
|
|
165
|
+
/** List of profile labels. */
|
|
131
166
|
labels?: string[];
|
|
167
|
+
/** Profile language. */
|
|
132
168
|
language?: string | null;
|
|
169
|
+
/** Profile privacy status. */
|
|
133
170
|
privacyStatus?: PrivacyStatus;
|
|
134
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
173
|
+
* are used to store additional information about your site or app's contacts.
|
|
174
|
+
*/
|
|
135
175
|
customFields?: CustomField[];
|
|
176
|
+
/** List of profile email addresses. */
|
|
136
177
|
secondaryEmails?: SecondaryEmail[];
|
|
178
|
+
/** List of profile phone numbers. */
|
|
137
179
|
phonesV2?: Phone[];
|
|
180
|
+
/** List of profile physical addresses. */
|
|
138
181
|
addresses?: AddressWrapper[];
|
|
182
|
+
/** Company name. */
|
|
139
183
|
company?: string | null;
|
|
184
|
+
/** Position within company. */
|
|
140
185
|
position?: string | null;
|
|
186
|
+
/** Profile birthdate. */
|
|
141
187
|
birthdate?: string | null;
|
|
142
188
|
}
|
|
143
189
|
export declare enum PrivacyStatus {
|
|
@@ -146,32 +192,52 @@ export declare enum PrivacyStatus {
|
|
|
146
192
|
PRIVATE = "PRIVATE"
|
|
147
193
|
}
|
|
148
194
|
export interface CustomField {
|
|
195
|
+
/**
|
|
196
|
+
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
197
|
+
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
198
|
+
* with the `custom.` prefix removed.
|
|
199
|
+
*/
|
|
149
200
|
name?: string;
|
|
201
|
+
/** Custom field value. */
|
|
150
202
|
value?: CustomValue;
|
|
151
203
|
}
|
|
152
204
|
export interface CustomValue extends CustomValueValueOneOf {
|
|
205
|
+
/** String value. */
|
|
153
206
|
strValue?: string;
|
|
207
|
+
/** Number value. */
|
|
154
208
|
numValue?: number;
|
|
209
|
+
/** Date value. */
|
|
155
210
|
dateValue?: Date;
|
|
211
|
+
/** List value. */
|
|
156
212
|
listValue?: ListValue;
|
|
213
|
+
/** Map value. */
|
|
157
214
|
mapValue?: MapValue;
|
|
158
215
|
}
|
|
159
216
|
/** @oneof */
|
|
160
217
|
export interface CustomValueValueOneOf {
|
|
218
|
+
/** String value. */
|
|
161
219
|
strValue?: string;
|
|
220
|
+
/** Number value. */
|
|
162
221
|
numValue?: number;
|
|
222
|
+
/** Date value. */
|
|
163
223
|
dateValue?: Date;
|
|
224
|
+
/** List value. */
|
|
164
225
|
listValue?: ListValue;
|
|
226
|
+
/** Map value. */
|
|
165
227
|
mapValue?: MapValue;
|
|
166
228
|
}
|
|
167
229
|
export interface ListValue {
|
|
230
|
+
/** Custom value. */
|
|
168
231
|
value?: CustomValue[];
|
|
169
232
|
}
|
|
170
233
|
export interface MapValue {
|
|
234
|
+
/** Mapped custom value. */
|
|
171
235
|
value?: Record<string, CustomValue>;
|
|
172
236
|
}
|
|
173
237
|
export interface SecondaryEmail {
|
|
238
|
+
/** Email address. */
|
|
174
239
|
email?: string;
|
|
240
|
+
/** Email tag. */
|
|
175
241
|
tag?: EmailTag;
|
|
176
242
|
}
|
|
177
243
|
export declare enum EmailTag {
|
|
@@ -181,8 +247,11 @@ export declare enum EmailTag {
|
|
|
181
247
|
WORK = "WORK"
|
|
182
248
|
}
|
|
183
249
|
export interface Phone {
|
|
250
|
+
/** Phone country code. */
|
|
184
251
|
countryCode?: string | null;
|
|
252
|
+
/** Phone number. */
|
|
185
253
|
phone?: string;
|
|
254
|
+
/** Phone tag. */
|
|
186
255
|
tag?: PhoneTag;
|
|
187
256
|
}
|
|
188
257
|
export declare enum PhoneTag {
|
|
@@ -194,7 +263,9 @@ export declare enum PhoneTag {
|
|
|
194
263
|
FAX = "FAX"
|
|
195
264
|
}
|
|
196
265
|
export interface AddressWrapper {
|
|
266
|
+
/** Address. */
|
|
197
267
|
address?: Address;
|
|
268
|
+
/** Address tag. */
|
|
198
269
|
tag?: AddressTag;
|
|
199
270
|
}
|
|
200
271
|
/** Physical address */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-recovery-v1-recovery.types.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.types.ts"],"names":[],"mappings":";;;AA6BA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;
|
|
1
|
+
{"version":3,"file":"iam-recovery-v1-recovery.types.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.types.ts"],"names":[],"mappings":";;;AA6BA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAiDD,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,GAAT,iBAAS,KAAT,iBAAS,QAMpB;AAmHD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAyDD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAWD,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,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;AAyBD,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;AACvB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAoBD,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACrB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,6EAAmE,CAAA;IACnE,qFAA2E,CAAA;AAC7E,CAAC,EAJW,MAAM,GAAN,cAAM,KAAN,cAAM,QAIjB"}
|
|
@@ -39,21 +39,31 @@ export declare enum TenantType {
|
|
|
39
39
|
ROOT = "ROOT"
|
|
40
40
|
}
|
|
41
41
|
export interface SendRecoveryEmailRequest {
|
|
42
|
-
/**
|
|
42
|
+
/** Email address associated with the account to recover. */
|
|
43
43
|
email: string;
|
|
44
|
-
/**
|
|
44
|
+
/** Language of the email to be sent. Defaults to the language specified in the member's profile. */
|
|
45
45
|
language?: string | null;
|
|
46
|
-
/** Where to redirect after a successful recovery
|
|
46
|
+
/** Where to redirect to after a successful recovery. */
|
|
47
47
|
redirect?: Redirect;
|
|
48
48
|
}
|
|
49
49
|
export interface Redirect {
|
|
50
|
-
/** The
|
|
50
|
+
/** The URL to redirect to after a successful recovery. */
|
|
51
51
|
url?: string;
|
|
52
|
-
/**
|
|
52
|
+
/** Caller identifier. */
|
|
53
53
|
clientId?: string | null;
|
|
54
54
|
}
|
|
55
55
|
export interface SendRecoveryEmailResponse {
|
|
56
56
|
}
|
|
57
|
+
export interface SendActivationEmailRequest {
|
|
58
|
+
/** Id of the activating user */
|
|
59
|
+
identityId: string;
|
|
60
|
+
/** language of the email - if not received will fallback to the identity language */
|
|
61
|
+
language?: string | null;
|
|
62
|
+
/** Where to redirect after a successful activation process */
|
|
63
|
+
redirect?: Redirect;
|
|
64
|
+
}
|
|
65
|
+
export interface SendActivationEmailResponse {
|
|
66
|
+
}
|
|
57
67
|
export interface RecoverRequest {
|
|
58
68
|
/** recovery token */
|
|
59
69
|
recoveryToken: string;
|
|
@@ -61,13 +71,13 @@ export interface RecoverRequest {
|
|
|
61
71
|
password?: string | null;
|
|
62
72
|
}
|
|
63
73
|
export interface StateMachineResponse {
|
|
64
|
-
/** The current state */
|
|
74
|
+
/** The current state of the login or registration process. */
|
|
65
75
|
state?: StateType;
|
|
66
|
-
/**
|
|
76
|
+
/** If state is `SUCCESS`, a session token. */
|
|
67
77
|
sessionToken?: string | null;
|
|
68
|
-
/**
|
|
78
|
+
/** A token representing the current state of the login or registration process. */
|
|
69
79
|
stateToken?: string | null;
|
|
70
|
-
/**
|
|
80
|
+
/** Identing of the current member. */
|
|
71
81
|
identity?: Identity;
|
|
72
82
|
}
|
|
73
83
|
export declare enum StateType {
|
|
@@ -80,25 +90,35 @@ export declare enum StateType {
|
|
|
80
90
|
export interface Identity {
|
|
81
91
|
/** Identity ID */
|
|
82
92
|
_id?: string | null;
|
|
93
|
+
/** Identifiers */
|
|
83
94
|
identifiers?: Identifier[];
|
|
84
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
97
|
+
* For an update operation to succeed, you MUST pass the latest revision.
|
|
98
|
+
*/
|
|
85
99
|
revision?: string | null;
|
|
86
100
|
/**
|
|
87
|
-
*
|
|
101
|
+
* The time this identity was created.
|
|
88
102
|
* @readonly
|
|
89
103
|
*/
|
|
90
104
|
_createdDate?: Date;
|
|
91
105
|
/**
|
|
92
|
-
*
|
|
106
|
+
* The time this identity was last updated.
|
|
93
107
|
* @readonly
|
|
94
108
|
*/
|
|
95
109
|
_updatedDate?: Date;
|
|
96
|
-
/**
|
|
110
|
+
/** The identity configured connections to authenticate with. */
|
|
97
111
|
connections?: Connection[];
|
|
112
|
+
/** Identity profile. */
|
|
98
113
|
identityProfile?: IdentityProfile;
|
|
99
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Additional information about the identity that can impact user access.
|
|
116
|
+
* This data cannot be set.
|
|
117
|
+
*/
|
|
100
118
|
metadata?: Metadata;
|
|
119
|
+
/** Identity email address. */
|
|
101
120
|
email?: Email;
|
|
121
|
+
/** Identity's current status. */
|
|
102
122
|
status?: StatusV2;
|
|
103
123
|
}
|
|
104
124
|
export interface Identifier extends IdentifierValueOneOf {
|
|
@@ -111,39 +131,65 @@ export interface IdentifierValueOneOf {
|
|
|
111
131
|
userName?: string;
|
|
112
132
|
}
|
|
113
133
|
export interface Connection extends ConnectionTypeOneOf {
|
|
134
|
+
/** IDP connection. */
|
|
114
135
|
idpConnection?: IdpConnection;
|
|
136
|
+
/** Authenticator connection. */
|
|
115
137
|
authenticatorConnection?: AuthenticatorConnection;
|
|
116
138
|
}
|
|
117
139
|
/** @oneof */
|
|
118
140
|
export interface ConnectionTypeOneOf {
|
|
141
|
+
/** IDP connection. */
|
|
119
142
|
idpConnection?: IdpConnection;
|
|
143
|
+
/** Authenticator connection. */
|
|
120
144
|
authenticatorConnection?: AuthenticatorConnection;
|
|
121
145
|
}
|
|
122
146
|
export interface IdpConnection {
|
|
147
|
+
/** IDP connection ID. */
|
|
123
148
|
idpConnectionId?: string;
|
|
149
|
+
/** IDP user ID. */
|
|
124
150
|
idpUserId?: string;
|
|
125
151
|
}
|
|
126
152
|
export interface AuthenticatorConnection {
|
|
153
|
+
/** Authenticator connection ID. */
|
|
127
154
|
authenticatorConnectionId?: string;
|
|
155
|
+
/** Whether re-enrollment is required. */
|
|
128
156
|
reEnrollmentRequired?: boolean;
|
|
129
157
|
}
|
|
130
158
|
export interface IdentityProfile {
|
|
159
|
+
/** Profile first name. */
|
|
131
160
|
firstName?: string | null;
|
|
161
|
+
/** Profile last name. */
|
|
132
162
|
lastName?: string | null;
|
|
163
|
+
/** Profile nickname. */
|
|
133
164
|
nickname?: string | null;
|
|
165
|
+
/** Profile picture URL. */
|
|
134
166
|
picture?: string | null;
|
|
167
|
+
/** Deprecated. Use `secondaryEmails` instead. */
|
|
135
168
|
emails?: string[];
|
|
169
|
+
/** Deprecated. Use `phonesV2` instead. */
|
|
136
170
|
phones?: string[];
|
|
171
|
+
/** List of profile labels. */
|
|
137
172
|
labels?: string[];
|
|
173
|
+
/** Profile language. */
|
|
138
174
|
language?: string | null;
|
|
175
|
+
/** Profile privacy status. */
|
|
139
176
|
privacyStatus?: PrivacyStatus;
|
|
140
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
179
|
+
* are used to store additional information about your site or app's contacts.
|
|
180
|
+
*/
|
|
141
181
|
customFields?: CustomField[];
|
|
182
|
+
/** List of profile email addresses. */
|
|
142
183
|
secondaryEmails?: SecondaryEmail[];
|
|
184
|
+
/** List of profile phone numbers. */
|
|
143
185
|
phonesV2?: Phone[];
|
|
186
|
+
/** List of profile physical addresses. */
|
|
144
187
|
addresses?: AddressWrapper[];
|
|
188
|
+
/** Company name. */
|
|
145
189
|
company?: string | null;
|
|
190
|
+
/** Position within company. */
|
|
146
191
|
position?: string | null;
|
|
192
|
+
/** Profile birthdate. */
|
|
147
193
|
birthdate?: string | null;
|
|
148
194
|
}
|
|
149
195
|
export declare enum PrivacyStatus {
|
|
@@ -152,32 +198,52 @@ export declare enum PrivacyStatus {
|
|
|
152
198
|
PRIVATE = "PRIVATE"
|
|
153
199
|
}
|
|
154
200
|
export interface CustomField {
|
|
201
|
+
/**
|
|
202
|
+
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
203
|
+
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
204
|
+
* with the `custom.` prefix removed.
|
|
205
|
+
*/
|
|
155
206
|
name?: string;
|
|
207
|
+
/** Custom field value. */
|
|
156
208
|
value?: CustomValue;
|
|
157
209
|
}
|
|
158
210
|
export interface CustomValue extends CustomValueValueOneOf {
|
|
211
|
+
/** String value. */
|
|
159
212
|
strValue?: string;
|
|
213
|
+
/** Number value. */
|
|
160
214
|
numValue?: number;
|
|
215
|
+
/** Date value. */
|
|
161
216
|
dateValue?: Date;
|
|
217
|
+
/** List value. */
|
|
162
218
|
listValue?: ListValue;
|
|
219
|
+
/** Map value. */
|
|
163
220
|
mapValue?: MapValue;
|
|
164
221
|
}
|
|
165
222
|
/** @oneof */
|
|
166
223
|
export interface CustomValueValueOneOf {
|
|
224
|
+
/** String value. */
|
|
167
225
|
strValue?: string;
|
|
226
|
+
/** Number value. */
|
|
168
227
|
numValue?: number;
|
|
228
|
+
/** Date value. */
|
|
169
229
|
dateValue?: Date;
|
|
230
|
+
/** List value. */
|
|
170
231
|
listValue?: ListValue;
|
|
232
|
+
/** Map value. */
|
|
171
233
|
mapValue?: MapValue;
|
|
172
234
|
}
|
|
173
235
|
export interface ListValue {
|
|
236
|
+
/** Custom value. */
|
|
174
237
|
value?: CustomValue[];
|
|
175
238
|
}
|
|
176
239
|
export interface MapValue {
|
|
240
|
+
/** Mapped custom value. */
|
|
177
241
|
value?: Record<string, CustomValue>;
|
|
178
242
|
}
|
|
179
243
|
export interface SecondaryEmail {
|
|
244
|
+
/** Email address. */
|
|
180
245
|
email?: string;
|
|
246
|
+
/** Email tag. */
|
|
181
247
|
tag?: EmailTag;
|
|
182
248
|
}
|
|
183
249
|
export declare enum EmailTag {
|
|
@@ -187,8 +253,11 @@ export declare enum EmailTag {
|
|
|
187
253
|
WORK = "WORK"
|
|
188
254
|
}
|
|
189
255
|
export interface Phone {
|
|
256
|
+
/** Phone country code. */
|
|
190
257
|
countryCode?: string | null;
|
|
258
|
+
/** Phone number. */
|
|
191
259
|
phone?: string;
|
|
260
|
+
/** Phone tag. */
|
|
192
261
|
tag?: PhoneTag;
|
|
193
262
|
}
|
|
194
263
|
export declare enum PhoneTag {
|
|
@@ -200,7 +269,9 @@ export declare enum PhoneTag {
|
|
|
200
269
|
FAX = "FAX"
|
|
201
270
|
}
|
|
202
271
|
export interface AddressWrapper {
|
|
272
|
+
/** Address. */
|
|
203
273
|
address?: Address;
|
|
274
|
+
/** Address tag. */
|
|
204
275
|
tag?: AddressTag;
|
|
205
276
|
}
|
|
206
277
|
/** Physical address */
|
|
@@ -253,17 +324,33 @@ export declare enum Reason {
|
|
|
253
324
|
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
254
325
|
}
|
|
255
326
|
/**
|
|
256
|
-
* Sends an
|
|
257
|
-
*
|
|
327
|
+
* Sends a member an email containing a customized link to a Wix-managed page
|
|
328
|
+
* where the member can set a new password for their account.
|
|
329
|
+
* @param email - Email address associated with the account to recover.
|
|
258
330
|
* @public
|
|
259
331
|
* @documentationMaturity preview
|
|
260
332
|
* @requiredField email
|
|
261
333
|
*/
|
|
262
334
|
export declare function sendRecoveryEmail(email: string, options?: SendRecoveryEmailOptions): Promise<void>;
|
|
263
335
|
export interface SendRecoveryEmailOptions {
|
|
264
|
-
/**
|
|
336
|
+
/** Language of the email to be sent. Defaults to the language specified in the member's profile. */
|
|
337
|
+
language?: string | null;
|
|
338
|
+
/** Where to redirect to after a successful recovery. */
|
|
339
|
+
redirect?: Redirect;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Sends an activation email with an activation token
|
|
343
|
+
* making the transition from initial contact to a site member
|
|
344
|
+
* @param identityId - Id of the activating user
|
|
345
|
+
* @public
|
|
346
|
+
* @documentationMaturity preview
|
|
347
|
+
* @requiredField identityId
|
|
348
|
+
*/
|
|
349
|
+
export declare function sendActivationEmail(identityId: string, options?: SendActivationEmailOptions): Promise<void>;
|
|
350
|
+
export interface SendActivationEmailOptions {
|
|
351
|
+
/** language of the email - if not received will fallback to the identity language */
|
|
265
352
|
language?: string | null;
|
|
266
|
-
/** Where to redirect after a successful
|
|
353
|
+
/** Where to redirect after a successful activation process */
|
|
267
354
|
redirect?: Redirect;
|
|
268
355
|
}
|
|
269
356
|
/** @param recoveryToken - recovery token
|
|
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.recover = exports.sendRecoveryEmail = exports.Reason = exports.StatusName = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.PrivacyStatus = exports.StateType = exports.TenantType = exports.__debug = void 0;
|
|
31
|
+
exports.recover = exports.sendActivationEmail = exports.sendRecoveryEmail = exports.Reason = exports.StatusName = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.PrivacyStatus = exports.StateType = exports.TenantType = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
33
|
const ambassadorWixIamRecoveryV1Recovery = __importStar(require("./iam-recovery-v1-recovery.http"));
|
|
34
34
|
let __verbose = false;
|
|
@@ -116,12 +116,15 @@ const _identityProfile = {
|
|
|
116
116
|
const _listValue = { value: '_customValue' };
|
|
117
117
|
const _mapValue = { value: 'Map#_customValue' };
|
|
118
118
|
const _recoverRequest = {};
|
|
119
|
+
const _sendActivationEmailRequest = {};
|
|
120
|
+
const _sendActivationEmailResponse = {};
|
|
119
121
|
const _sendRecoveryEmailRequest = {};
|
|
120
122
|
const _sendRecoveryEmailResponse = {};
|
|
121
123
|
const _stateMachineResponse = { identity: '_identity' };
|
|
122
124
|
/**
|
|
123
|
-
* Sends an
|
|
124
|
-
*
|
|
125
|
+
* Sends a member an email containing a customized link to a Wix-managed page
|
|
126
|
+
* where the member can set a new password for their account.
|
|
127
|
+
* @param email - Email address associated with the account to recover.
|
|
125
128
|
* @public
|
|
126
129
|
* @documentationMaturity preview
|
|
127
130
|
* @requiredField email
|
|
@@ -175,6 +178,63 @@ function sendRecoveryEmail(email, options) {
|
|
|
175
178
|
});
|
|
176
179
|
}
|
|
177
180
|
exports.sendRecoveryEmail = sendRecoveryEmail;
|
|
181
|
+
/**
|
|
182
|
+
* Sends an activation email with an activation token
|
|
183
|
+
* making the transition from initial contact to a site member
|
|
184
|
+
* @param identityId - Id of the activating user
|
|
185
|
+
* @public
|
|
186
|
+
* @documentationMaturity preview
|
|
187
|
+
* @requiredField identityId
|
|
188
|
+
*/
|
|
189
|
+
function sendActivationEmail(identityId, options) {
|
|
190
|
+
var _a, _b, _c;
|
|
191
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
192
|
+
const requestTransformation = {
|
|
193
|
+
identityId: '$[0]',
|
|
194
|
+
language: '$[1].language',
|
|
195
|
+
redirect: '$[1].redirect',
|
|
196
|
+
};
|
|
197
|
+
const responseTransformation = '$';
|
|
198
|
+
// @ts-ignore
|
|
199
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
200
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
201
|
+
rootSchema: _sendActivationEmailRequest,
|
|
202
|
+
depSchemas: {},
|
|
203
|
+
fqdnTransformation: {
|
|
204
|
+
paths: [],
|
|
205
|
+
transformation: _fromVeloEntity,
|
|
206
|
+
},
|
|
207
|
+
customTransformation: requestTransformation,
|
|
208
|
+
});
|
|
209
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
210
|
+
rootSchema: _sendActivationEmailResponse,
|
|
211
|
+
depSchemas: {},
|
|
212
|
+
fqdnTransformation: {
|
|
213
|
+
paths: [],
|
|
214
|
+
transformation: _toVeloEntity,
|
|
215
|
+
},
|
|
216
|
+
customTransformation: responseTransformation,
|
|
217
|
+
});
|
|
218
|
+
const payload = toAmbassadorRequest([identityId, options]);
|
|
219
|
+
const reqOpts = ambassadorWixIamRecoveryV1Recovery.sendActivationEmail(payload);
|
|
220
|
+
__log(`"SendActivationEmail" sending request with: ${__inspect(reqOpts)}`);
|
|
221
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
222
|
+
try {
|
|
223
|
+
const result = yield httpClient.request(reqOpts);
|
|
224
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
225
|
+
return fromJSON(result.data);
|
|
226
|
+
}
|
|
227
|
+
catch (err) {
|
|
228
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
229
|
+
'identityId',
|
|
230
|
+
'options',
|
|
231
|
+
]);
|
|
232
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
233
|
+
throw transformedError;
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
exports.sendActivationEmail = sendActivationEmail;
|
|
178
238
|
/** @param recoveryToken - recovery token
|
|
179
239
|
* @public
|
|
180
240
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-recovery-v1-recovery.universal.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,oGAAsF;AAEtF,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;AAEY,QAAA,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;AA+B5B,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;
|
|
1
|
+
{"version":3,"file":"iam-recovery-v1-recovery.universal.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,oGAAsF;AAEtF,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;AAEY,QAAA,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;AA+B5B,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAiDD,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,GAAT,iBAAS,KAAT,iBAAS,QAMpB;AAmHD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,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AAW,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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,eAAe;gBACf,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;AAjED,0BAiEC"}
|
|
@@ -6,8 +6,12 @@ import { StateMachineResponse, StartRequest, StartResponse, VerifyDuringAuthenti
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function start(payload: StartRequest): RequestOptionsFactory<StartResponse>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* Continues the registration process when a member is required to verify an email address
|
|
10
|
+
* using a verification code received by email.
|
|
11
|
+
*
|
|
12
|
+
* Email verification is required when the registering member is already listed as a contact.
|
|
13
|
+
*
|
|
14
|
+
* Typically, after a sucessful verification, you generate and use member tokens for the
|
|
15
|
+
* registered member so that subsequent API calls are called as part of a member session.
|
|
12
16
|
*/
|
|
13
17
|
export declare function verifyDuringAuthentication(payload: VerifyDuringAuthenticationRequest): RequestOptionsFactory<StateMachineResponse>;
|