@wix/identity 1.0.74 → 1.0.76

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