@wix/identity 1.0.74 → 1.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +4 -0
- package/build/cjs/{index.typings.js → context.js} +5 -5
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -4
- package/build/cjs/meta.js +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +4 -0
- package/build/es/context.js +5 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +4 -4
- package/build/es/index.js +4 -4
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +4 -4
- package/build/es/meta.js +4 -4
- package/build/es/meta.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +15 -8
- package/build/cjs/index.typings.d.ts +0 -4
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.http.d.ts +0 -28
- package/build/cjs/src/iam-authentication-v1-authentication.http.js +0 -408
- package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.meta.d.ts +0 -21
- package/build/cjs/src/iam-authentication-v1-authentication.meta.js +0 -199
- package/build/cjs/src/iam-authentication-v1-authentication.meta.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +0 -16
- package/build/cjs/src/iam-authentication-v1-authentication.public.js +0 -70
- package/build/cjs/src/iam-authentication-v1-authentication.public.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.types.d.ts +0 -669
- package/build/cjs/src/iam-authentication-v1-authentication.types.js +0 -78
- package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +0 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +0 -790
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +0 -780
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +0 -13
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +0 -109
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.meta.d.ts +0 -15
- package/build/cjs/src/iam-recovery-v1-recovery.meta.js +0 -85
- package/build/cjs/src/iam-recovery-v1-recovery.meta.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +0 -10
- package/build/cjs/src/iam-recovery-v1-recovery.public.js +0 -33
- package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +0 -431
- package/build/cjs/src/iam-recovery-v1-recovery.types.js +0 -72
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +0 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +0 -475
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +0 -335
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +0 -22
- package/build/cjs/src/iam-verification-v1-start-response.http.js +0 -132
- package/build/cjs/src/iam-verification-v1-start-response.http.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.meta.d.ts +0 -15
- package/build/cjs/src/iam-verification-v1-start-response.meta.js +0 -85
- package/build/cjs/src/iam-verification-v1-start-response.meta.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +0 -10
- package/build/cjs/src/iam-verification-v1-start-response.public.js +0 -33
- package/build/cjs/src/iam-verification-v1-start-response.public.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +0 -398
- package/build/cjs/src/iam-verification-v1-start-response.types.js +0 -70
- package/build/cjs/src/iam-verification-v1-start-response.types.js.map +0 -1
- package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +0 -448
- package/build/cjs/src/iam-verification-v1-start-response.universal.js +0 -341
- package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.d.ts +0 -14
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +0 -154
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.d.ts +0 -17
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js +0 -123
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +0 -11
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.js +0 -36
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +0 -206
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.js +0 -3
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +0 -319
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +0 -357
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -4
- package/build/es/index.typings.js +0 -5
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.http.d.ts +0 -28
- package/build/es/src/iam-authentication-v1-authentication.http.js +0 -396
- package/build/es/src/iam-authentication-v1-authentication.http.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.meta.d.ts +0 -21
- package/build/es/src/iam-authentication-v1-authentication.meta.js +0 -164
- package/build/es/src/iam-authentication-v1-authentication.meta.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.public.d.ts +0 -16
- package/build/es/src/iam-authentication-v1-authentication.public.js +0 -49
- package/build/es/src/iam-authentication-v1-authentication.public.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.types.d.ts +0 -669
- package/build/es/src/iam-authentication-v1-authentication.types.js +0 -75
- package/build/es/src/iam-authentication-v1-authentication.types.js.map +0 -1
- package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +0 -790
- package/build/es/src/iam-authentication-v1-authentication.universal.js +0 -745
- package/build/es/src/iam-authentication-v1-authentication.universal.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.http.d.ts +0 -13
- package/build/es/src/iam-recovery-v1-recovery.http.js +0 -103
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.meta.d.ts +0 -15
- package/build/es/src/iam-recovery-v1-recovery.meta.js +0 -56
- package/build/es/src/iam-recovery-v1-recovery.meta.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +0 -10
- package/build/es/src/iam-recovery-v1-recovery.public.js +0 -19
- package/build/es/src/iam-recovery-v1-recovery.public.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +0 -431
- package/build/es/src/iam-recovery-v1-recovery.types.js +0 -69
- package/build/es/src/iam-recovery-v1-recovery.types.js.map +0 -1
- package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +0 -475
- package/build/es/src/iam-recovery-v1-recovery.universal.js +0 -306
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.http.d.ts +0 -22
- package/build/es/src/iam-verification-v1-start-response.http.js +0 -126
- package/build/es/src/iam-verification-v1-start-response.http.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.meta.d.ts +0 -15
- package/build/es/src/iam-verification-v1-start-response.meta.js +0 -56
- package/build/es/src/iam-verification-v1-start-response.meta.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.public.d.ts +0 -10
- package/build/es/src/iam-verification-v1-start-response.public.js +0 -19
- package/build/es/src/iam-verification-v1-start-response.public.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.types.d.ts +0 -398
- package/build/es/src/iam-verification-v1-start-response.types.js +0 -67
- package/build/es/src/iam-verification-v1-start-response.types.js.map +0 -1
- package/build/es/src/iam-verification-v1-start-response.universal.d.ts +0 -448
- package/build/es/src/iam-verification-v1-start-response.universal.js +0 -312
- package/build/es/src/iam-verification-v1-start-response.universal.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.http.d.ts +0 -14
- package/build/es/src/identity-oauth-v1-refresh-token.http.js +0 -146
- package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.meta.d.ts +0 -17
- package/build/es/src/identity-oauth-v1-refresh-token.meta.js +0 -92
- package/build/es/src/identity-oauth-v1-refresh-token.meta.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +0 -11
- package/build/es/src/identity-oauth-v1-refresh-token.public.js +0 -28
- package/build/es/src/identity-oauth-v1-refresh-token.public.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +0 -206
- package/build/es/src/identity-oauth-v1-refresh-token.types.js +0 -2
- package/build/es/src/identity-oauth-v1-refresh-token.types.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +0 -319
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js +0 -326
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +0 -1
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
export interface StartResponse {
|
|
2
|
-
/** the identifier of the verification process */
|
|
3
|
-
verificationId?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface StartRequest {
|
|
6
|
-
/**
|
|
7
|
-
* an identity_Id.
|
|
8
|
-
* If not provided - currently, an exception is thrown. In the future the identity from identity response will be taken.
|
|
9
|
-
*/
|
|
10
|
-
identityId?: string | null;
|
|
11
|
-
/** the delivery target */
|
|
12
|
-
target?: Target;
|
|
13
|
-
}
|
|
14
|
-
export declare enum Target {
|
|
15
|
-
UNKNOWN_TARGET = "UNKNOWN_TARGET",
|
|
16
|
-
EMAIL = "EMAIL"
|
|
17
|
-
}
|
|
18
|
-
export interface VerifyRequest {
|
|
19
|
-
/** the code to verify */
|
|
20
|
-
code?: string;
|
|
21
|
-
/** the identifier of the verification process */
|
|
22
|
-
verificationId?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface VerifyResponse {
|
|
25
|
-
}
|
|
26
|
-
export interface VerifyDuringAuthenticationRequest {
|
|
27
|
-
/** The code to verify. */
|
|
28
|
-
code: string;
|
|
29
|
-
/** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
|
|
30
|
-
stateToken: string;
|
|
31
|
-
}
|
|
32
|
-
export interface StateMachineResponse {
|
|
33
|
-
/** The current state of the login or registration process. */
|
|
34
|
-
state?: StateType;
|
|
35
|
-
/** If state is `SUCCESS`, a session token. */
|
|
36
|
-
sessionToken?: string | null;
|
|
37
|
-
/** A token representing the current state of the login or registration process. */
|
|
38
|
-
stateToken?: string | null;
|
|
39
|
-
/** Identing of the current member. */
|
|
40
|
-
identity?: Identity;
|
|
41
|
-
/** additional_data = 5; //TBD */
|
|
42
|
-
additionalData?: Record<string, CommonCustomValue>;
|
|
43
|
-
}
|
|
44
|
-
export declare enum StateType {
|
|
45
|
-
/** Initial unknown state. */
|
|
46
|
-
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
47
|
-
/** The operation completed successfully. */
|
|
48
|
-
SUCCESS = "SUCCESS",
|
|
49
|
-
/** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
|
|
50
|
-
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
51
|
-
/**
|
|
52
|
-
* State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
|
|
53
|
-
* https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
|
|
54
|
-
*/
|
|
55
|
-
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
56
|
-
/** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
|
|
57
|
-
STATUS_CHECK = "STATUS_CHECK"
|
|
58
|
-
}
|
|
59
|
-
export interface Identity {
|
|
60
|
-
/** Identity ID */
|
|
61
|
-
id?: string | null;
|
|
62
|
-
/** Identifiers */
|
|
63
|
-
identifiers?: Identifier[];
|
|
64
|
-
/**
|
|
65
|
-
* Represents the current state of an item. Each time the item is modified, its `revision` changes.
|
|
66
|
-
* For an update operation to succeed, you MUST pass the latest revision.
|
|
67
|
-
*/
|
|
68
|
-
revision?: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* The time this identity was created.
|
|
71
|
-
* @readonly
|
|
72
|
-
*/
|
|
73
|
-
createdDate?: Date;
|
|
74
|
-
/**
|
|
75
|
-
* The time this identity was last updated.
|
|
76
|
-
* @readonly
|
|
77
|
-
*/
|
|
78
|
-
updatedDate?: Date;
|
|
79
|
-
/** The identity configured connections to authenticate with. */
|
|
80
|
-
connections?: Connection[];
|
|
81
|
-
/** Identity profile. */
|
|
82
|
-
identityProfile?: IdentityProfile;
|
|
83
|
-
/**
|
|
84
|
-
* Additional information about the identity that can impact user access.
|
|
85
|
-
* This data cannot be set.
|
|
86
|
-
*/
|
|
87
|
-
metadata?: Metadata;
|
|
88
|
-
/** Identity email address. */
|
|
89
|
-
email?: Email;
|
|
90
|
-
/** Identity's current status. */
|
|
91
|
-
status?: StatusV2;
|
|
92
|
-
}
|
|
93
|
-
export interface Identifier extends IdentifierValueOneOf {
|
|
94
|
-
email?: string;
|
|
95
|
-
userName?: string;
|
|
96
|
-
}
|
|
97
|
-
/** @oneof */
|
|
98
|
-
export interface IdentifierValueOneOf {
|
|
99
|
-
email?: string;
|
|
100
|
-
userName?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface Connection extends ConnectionTypeOneOf {
|
|
103
|
-
/** IDP connection. */
|
|
104
|
-
idpConnection?: IdpConnection;
|
|
105
|
-
/** Authenticator connection. */
|
|
106
|
-
authenticatorConnection?: AuthenticatorConnection;
|
|
107
|
-
}
|
|
108
|
-
/** @oneof */
|
|
109
|
-
export interface ConnectionTypeOneOf {
|
|
110
|
-
/** IDP connection. */
|
|
111
|
-
idpConnection?: IdpConnection;
|
|
112
|
-
/** Authenticator connection. */
|
|
113
|
-
authenticatorConnection?: AuthenticatorConnection;
|
|
114
|
-
}
|
|
115
|
-
export interface IdpConnection {
|
|
116
|
-
/** IDP connection ID. */
|
|
117
|
-
idpConnectionId?: string;
|
|
118
|
-
/** IDP user ID. */
|
|
119
|
-
idpUserId?: string;
|
|
120
|
-
}
|
|
121
|
-
export interface AuthenticatorConnection {
|
|
122
|
-
/** Authenticator connection ID. */
|
|
123
|
-
authenticatorConnectionId?: string;
|
|
124
|
-
/** Whether re-enrollment is required. */
|
|
125
|
-
reEnrollmentRequired?: boolean;
|
|
126
|
-
}
|
|
127
|
-
export interface IdentityProfile {
|
|
128
|
-
/** Profile first name. */
|
|
129
|
-
firstName?: string | null;
|
|
130
|
-
/** Profile last name. */
|
|
131
|
-
lastName?: string | null;
|
|
132
|
-
/** Profile nickname. */
|
|
133
|
-
nickname?: string | null;
|
|
134
|
-
/** Profile picture URL. */
|
|
135
|
-
picture?: string | null;
|
|
136
|
-
/** Deprecated. Use `secondaryEmails` instead. */
|
|
137
|
-
emails?: string[];
|
|
138
|
-
/** Deprecated. Use `phonesV2` instead. */
|
|
139
|
-
phones?: string[];
|
|
140
|
-
/** List of profile labels. */
|
|
141
|
-
labels?: string[];
|
|
142
|
-
/** Profile language. */
|
|
143
|
-
language?: string | null;
|
|
144
|
-
/** Profile privacy status. */
|
|
145
|
-
privacyStatus?: PrivacyStatus;
|
|
146
|
-
/**
|
|
147
|
-
* Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
148
|
-
* are used to store additional information about your site or app's contacts.
|
|
149
|
-
*/
|
|
150
|
-
customFields?: CustomField[];
|
|
151
|
-
/** List of profile email addresses. */
|
|
152
|
-
secondaryEmails?: SecondaryEmail[];
|
|
153
|
-
/** List of profile phone numbers. */
|
|
154
|
-
phonesV2?: Phone[];
|
|
155
|
-
/** List of profile physical addresses. */
|
|
156
|
-
addresses?: AddressWrapper[];
|
|
157
|
-
/** Company name. */
|
|
158
|
-
company?: string | null;
|
|
159
|
-
/** Position within company. */
|
|
160
|
-
position?: string | null;
|
|
161
|
-
/** Profile birthdate. */
|
|
162
|
-
birthdate?: string | null;
|
|
163
|
-
}
|
|
164
|
-
export declare enum PrivacyStatus {
|
|
165
|
-
UNDEFINED = "UNDEFINED",
|
|
166
|
-
PUBLIC = "PUBLIC",
|
|
167
|
-
PRIVATE = "PRIVATE"
|
|
168
|
-
}
|
|
169
|
-
export interface CustomField {
|
|
170
|
-
/**
|
|
171
|
-
* Custom field name. The name must match one of the key properties of the objects returned by
|
|
172
|
-
* [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
|
|
173
|
-
* with the `custom.` prefix removed.
|
|
174
|
-
*/
|
|
175
|
-
name?: string;
|
|
176
|
-
/** Custom field value. */
|
|
177
|
-
value?: CustomValue;
|
|
178
|
-
}
|
|
179
|
-
export interface CustomValue extends CustomValueValueOneOf {
|
|
180
|
-
/** String value. */
|
|
181
|
-
strValue?: string;
|
|
182
|
-
/** Number value. */
|
|
183
|
-
numValue?: number;
|
|
184
|
-
/** Date value. */
|
|
185
|
-
dateValue?: Date;
|
|
186
|
-
/** List value. */
|
|
187
|
-
listValue?: ListValue;
|
|
188
|
-
/** Map value. */
|
|
189
|
-
mapValue?: MapValue;
|
|
190
|
-
}
|
|
191
|
-
/** @oneof */
|
|
192
|
-
export interface CustomValueValueOneOf {
|
|
193
|
-
/** String value. */
|
|
194
|
-
strValue?: string;
|
|
195
|
-
/** Number value. */
|
|
196
|
-
numValue?: number;
|
|
197
|
-
/** Date value. */
|
|
198
|
-
dateValue?: Date;
|
|
199
|
-
/** List value. */
|
|
200
|
-
listValue?: ListValue;
|
|
201
|
-
/** Map value. */
|
|
202
|
-
mapValue?: MapValue;
|
|
203
|
-
}
|
|
204
|
-
export interface ListValue {
|
|
205
|
-
/** Custom value. */
|
|
206
|
-
value?: CustomValue[];
|
|
207
|
-
}
|
|
208
|
-
export interface MapValue {
|
|
209
|
-
/** Mapped custom value. */
|
|
210
|
-
value?: Record<string, CustomValue>;
|
|
211
|
-
}
|
|
212
|
-
export interface SecondaryEmail {
|
|
213
|
-
/** Email address. */
|
|
214
|
-
email?: string;
|
|
215
|
-
/** Email tag. */
|
|
216
|
-
tag?: EmailTag;
|
|
217
|
-
}
|
|
218
|
-
export declare enum EmailTag {
|
|
219
|
-
UNTAGGED = "UNTAGGED",
|
|
220
|
-
MAIN = "MAIN",
|
|
221
|
-
HOME = "HOME",
|
|
222
|
-
WORK = "WORK"
|
|
223
|
-
}
|
|
224
|
-
export interface Phone {
|
|
225
|
-
/** Phone country code. */
|
|
226
|
-
countryCode?: string | null;
|
|
227
|
-
/** Phone number. */
|
|
228
|
-
phone?: string;
|
|
229
|
-
/** Phone tag. */
|
|
230
|
-
tag?: PhoneTag;
|
|
231
|
-
}
|
|
232
|
-
export declare enum PhoneTag {
|
|
233
|
-
UNTAGGED = "UNTAGGED",
|
|
234
|
-
MAIN = "MAIN",
|
|
235
|
-
HOME = "HOME",
|
|
236
|
-
MOBILE = "MOBILE",
|
|
237
|
-
WORK = "WORK",
|
|
238
|
-
FAX = "FAX"
|
|
239
|
-
}
|
|
240
|
-
export interface AddressWrapper {
|
|
241
|
-
/** Address. */
|
|
242
|
-
address?: Address;
|
|
243
|
-
/** Address tag. */
|
|
244
|
-
tag?: AddressTag;
|
|
245
|
-
}
|
|
246
|
-
/** Physical address */
|
|
247
|
-
export interface Address {
|
|
248
|
-
/** Country code. */
|
|
249
|
-
country?: string | null;
|
|
250
|
-
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
251
|
-
subdivision?: string | null;
|
|
252
|
-
/** City name. */
|
|
253
|
-
city?: string | null;
|
|
254
|
-
/** Zip/postal code. */
|
|
255
|
-
postalCode?: string | null;
|
|
256
|
-
/** Main address line, usually street and number as free text. */
|
|
257
|
-
addressLine?: string | null;
|
|
258
|
-
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
259
|
-
addressLine2?: string | null;
|
|
260
|
-
}
|
|
261
|
-
export declare enum AddressTag {
|
|
262
|
-
UNTAGGED = "UNTAGGED",
|
|
263
|
-
HOME = "HOME",
|
|
264
|
-
WORK = "WORK",
|
|
265
|
-
BILLING = "BILLING",
|
|
266
|
-
SHIPPING = "SHIPPING"
|
|
267
|
-
}
|
|
268
|
-
export interface Metadata {
|
|
269
|
-
/**
|
|
270
|
-
* represents general tags such as "isOwner", "isContributor"
|
|
271
|
-
* @readonly
|
|
272
|
-
*/
|
|
273
|
-
tags?: string[];
|
|
274
|
-
}
|
|
275
|
-
export interface Email {
|
|
276
|
-
address?: string;
|
|
277
|
-
isVerified?: boolean;
|
|
278
|
-
}
|
|
279
|
-
export interface StatusV2 {
|
|
280
|
-
name?: StatusName;
|
|
281
|
-
reasons?: Reason[];
|
|
282
|
-
}
|
|
283
|
-
export declare enum StatusName {
|
|
284
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
285
|
-
PENDING = "PENDING",
|
|
286
|
-
ACTIVE = "ACTIVE",
|
|
287
|
-
DELETED = "DELETED",
|
|
288
|
-
BLOCKED = "BLOCKED",
|
|
289
|
-
OFFLINE = "OFFLINE"
|
|
290
|
-
}
|
|
291
|
-
export declare enum Reason {
|
|
292
|
-
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
293
|
-
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
294
|
-
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
295
|
-
}
|
|
296
|
-
export interface CommonCustomValue extends CommonCustomValueValueOneOf {
|
|
297
|
-
/** String value. */
|
|
298
|
-
strValue?: string;
|
|
299
|
-
/** Number value. */
|
|
300
|
-
numValue?: number;
|
|
301
|
-
/** Date value. */
|
|
302
|
-
dateValue?: Date;
|
|
303
|
-
/** List value. */
|
|
304
|
-
listValue?: CommonListValue;
|
|
305
|
-
/** Map value. */
|
|
306
|
-
mapValue?: CommonMapValue;
|
|
307
|
-
}
|
|
308
|
-
/** @oneof */
|
|
309
|
-
export interface CommonCustomValueValueOneOf {
|
|
310
|
-
/** String value. */
|
|
311
|
-
strValue?: string;
|
|
312
|
-
/** Number value. */
|
|
313
|
-
numValue?: number;
|
|
314
|
-
/** Date value. */
|
|
315
|
-
dateValue?: Date;
|
|
316
|
-
/** List value. */
|
|
317
|
-
listValue?: CommonListValue;
|
|
318
|
-
/** Map value. */
|
|
319
|
-
mapValue?: CommonMapValue;
|
|
320
|
-
}
|
|
321
|
-
export interface CommonListValue {
|
|
322
|
-
/** Custom value. */
|
|
323
|
-
value?: CommonCustomValue[];
|
|
324
|
-
}
|
|
325
|
-
export interface CommonMapValue {
|
|
326
|
-
/** Mapped custom value. */
|
|
327
|
-
value?: Record<string, CommonCustomValue>;
|
|
328
|
-
}
|
|
329
|
-
export interface ResendDuringAuthenticationRequest {
|
|
330
|
-
stateToken: string;
|
|
331
|
-
}
|
|
332
|
-
export interface StartResponseNonNullableFields {
|
|
333
|
-
verificationId: string;
|
|
334
|
-
}
|
|
335
|
-
export interface StateMachineResponseNonNullableFields {
|
|
336
|
-
state: StateType;
|
|
337
|
-
identity?: {
|
|
338
|
-
identifiers: {
|
|
339
|
-
email: string;
|
|
340
|
-
userName: string;
|
|
341
|
-
}[];
|
|
342
|
-
connections: {
|
|
343
|
-
idpConnection?: {
|
|
344
|
-
idpConnectionId: string;
|
|
345
|
-
idpUserId: string;
|
|
346
|
-
};
|
|
347
|
-
authenticatorConnection?: {
|
|
348
|
-
authenticatorConnectionId: string;
|
|
349
|
-
reEnrollmentRequired: boolean;
|
|
350
|
-
};
|
|
351
|
-
}[];
|
|
352
|
-
identityProfile?: {
|
|
353
|
-
emails: string[];
|
|
354
|
-
phones: string[];
|
|
355
|
-
labels: string[];
|
|
356
|
-
privacyStatus: PrivacyStatus;
|
|
357
|
-
customFields: {
|
|
358
|
-
name: string;
|
|
359
|
-
value?: {
|
|
360
|
-
strValue: string;
|
|
361
|
-
numValue: number;
|
|
362
|
-
listValue?: {
|
|
363
|
-
value: NonNullable<NonNullable<NonNullable<NonNullable<StateMachineResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
}[];
|
|
367
|
-
secondaryEmails: {
|
|
368
|
-
email: string;
|
|
369
|
-
tag: EmailTag;
|
|
370
|
-
}[];
|
|
371
|
-
phonesV2: {
|
|
372
|
-
phone: string;
|
|
373
|
-
tag: PhoneTag;
|
|
374
|
-
}[];
|
|
375
|
-
addresses: {
|
|
376
|
-
tag: AddressTag;
|
|
377
|
-
}[];
|
|
378
|
-
};
|
|
379
|
-
metadata?: {
|
|
380
|
-
tags: string[];
|
|
381
|
-
};
|
|
382
|
-
email?: {
|
|
383
|
-
address: string;
|
|
384
|
-
isVerified: boolean;
|
|
385
|
-
};
|
|
386
|
-
status?: {
|
|
387
|
-
name: StatusName;
|
|
388
|
-
reasons: Reason[];
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
additionalData?: {
|
|
392
|
-
strValue: string;
|
|
393
|
-
numValue: number;
|
|
394
|
-
listValue?: {
|
|
395
|
-
value: NonNullable<StateMachineResponseNonNullableFields>['additionalData'][];
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export var Target;
|
|
2
|
-
(function (Target) {
|
|
3
|
-
Target["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
4
|
-
Target["EMAIL"] = "EMAIL";
|
|
5
|
-
})(Target || (Target = {}));
|
|
6
|
-
export var StateType;
|
|
7
|
-
(function (StateType) {
|
|
8
|
-
/** Initial unknown state. */
|
|
9
|
-
StateType["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
10
|
-
/** The operation completed successfully. */
|
|
11
|
-
StateType["SUCCESS"] = "SUCCESS";
|
|
12
|
-
/** State that indicates that the member needs owner approval to proceed, available action in: OwnerApprovalStateHandler */
|
|
13
|
-
StateType["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
|
|
14
|
-
/**
|
|
15
|
-
* State that indicates a member waiting for verification, available action are: verifyDuringAuthentication or resendDuringAuthentication
|
|
16
|
-
* https://dev.wix.com/docs/rest/api-reference/auth-management/verification-v1/verify-during-authentication
|
|
17
|
-
*/
|
|
18
|
-
StateType["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
|
|
19
|
-
/** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
|
|
20
|
-
StateType["STATUS_CHECK"] = "STATUS_CHECK";
|
|
21
|
-
})(StateType || (StateType = {}));
|
|
22
|
-
export var PrivacyStatus;
|
|
23
|
-
(function (PrivacyStatus) {
|
|
24
|
-
PrivacyStatus["UNDEFINED"] = "UNDEFINED";
|
|
25
|
-
PrivacyStatus["PUBLIC"] = "PUBLIC";
|
|
26
|
-
PrivacyStatus["PRIVATE"] = "PRIVATE";
|
|
27
|
-
})(PrivacyStatus || (PrivacyStatus = {}));
|
|
28
|
-
export var EmailTag;
|
|
29
|
-
(function (EmailTag) {
|
|
30
|
-
EmailTag["UNTAGGED"] = "UNTAGGED";
|
|
31
|
-
EmailTag["MAIN"] = "MAIN";
|
|
32
|
-
EmailTag["HOME"] = "HOME";
|
|
33
|
-
EmailTag["WORK"] = "WORK";
|
|
34
|
-
})(EmailTag || (EmailTag = {}));
|
|
35
|
-
export var PhoneTag;
|
|
36
|
-
(function (PhoneTag) {
|
|
37
|
-
PhoneTag["UNTAGGED"] = "UNTAGGED";
|
|
38
|
-
PhoneTag["MAIN"] = "MAIN";
|
|
39
|
-
PhoneTag["HOME"] = "HOME";
|
|
40
|
-
PhoneTag["MOBILE"] = "MOBILE";
|
|
41
|
-
PhoneTag["WORK"] = "WORK";
|
|
42
|
-
PhoneTag["FAX"] = "FAX";
|
|
43
|
-
})(PhoneTag || (PhoneTag = {}));
|
|
44
|
-
export var AddressTag;
|
|
45
|
-
(function (AddressTag) {
|
|
46
|
-
AddressTag["UNTAGGED"] = "UNTAGGED";
|
|
47
|
-
AddressTag["HOME"] = "HOME";
|
|
48
|
-
AddressTag["WORK"] = "WORK";
|
|
49
|
-
AddressTag["BILLING"] = "BILLING";
|
|
50
|
-
AddressTag["SHIPPING"] = "SHIPPING";
|
|
51
|
-
})(AddressTag || (AddressTag = {}));
|
|
52
|
-
export var StatusName;
|
|
53
|
-
(function (StatusName) {
|
|
54
|
-
StatusName["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
55
|
-
StatusName["PENDING"] = "PENDING";
|
|
56
|
-
StatusName["ACTIVE"] = "ACTIVE";
|
|
57
|
-
StatusName["DELETED"] = "DELETED";
|
|
58
|
-
StatusName["BLOCKED"] = "BLOCKED";
|
|
59
|
-
StatusName["OFFLINE"] = "OFFLINE";
|
|
60
|
-
})(StatusName || (StatusName = {}));
|
|
61
|
-
export var Reason;
|
|
62
|
-
(function (Reason) {
|
|
63
|
-
Reason["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
64
|
-
Reason["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
|
|
65
|
-
Reason["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
|
|
66
|
-
})(Reason || (Reason = {}));
|
|
67
|
-
//# sourceMappingURL=iam-verification-v1-start-response.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AA+BD,MAAM,CAAN,IAAY,SAcX;AAdD,WAAY,SAAS;IACnB,6BAA6B;IAC7B,4CAA+B,CAAA;IAC/B,4CAA4C;IAC5C,gCAAmB,CAAA;IACnB,2HAA2H;IAC3H,8DAAiD,CAAA;IACjD;;;OAGG;IACH,sEAAyD,CAAA;IACzD,yGAAyG;IACzG,0CAA6B,CAAA;AAC/B,CAAC,EAdW,SAAS,KAAT,SAAS,QAcpB;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,UAOX;AAPD,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACrB,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAED,MAAM,CAAN,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,6EAAmE,CAAA;IACnE,qFAA2E,CAAA;AAC7E,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB"}
|