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