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