@gofynd/fdk-client-javascript 1.0.3 → 1.0.4

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 (175) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.js +29 -28
  12. package/sdk/application/Cart/CartApplicationModel.js +3 -1
  13. package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +1 -1
  15. package/sdk/application/Common/CommonApplicationClient.js +5 -4
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
  18. package/sdk/application/Content/ContentApplicationClient.js +26 -25
  19. package/sdk/application/Content/ContentApplicationModel.js +1 -0
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
  21. package/sdk/application/Lead/LeadApplicationClient.js +10 -9
  22. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
  24. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
  25. package/sdk/application/Order/OrderApplicationClient.js +15 -14
  26. package/sdk/application/Order/OrderApplicationModel.js +9 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
  28. package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
  29. package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
  31. package/sdk/application/Share/ShareApplicationClient.js +10 -9
  32. package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
  33. package/sdk/application/User/UserApplicationClient.js +38 -37
  34. package/sdk/common/AxiosHelper.js +17 -6
  35. package/sdk/constructUrl.d.ts +5 -0
  36. package/sdk/constructUrl.js +13 -0
  37. package/sdk/index.d.ts +3 -0
  38. package/sdk/index.js +5 -0
  39. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
  40. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  41. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  42. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  43. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
  44. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
  45. package/sdk/platform/Billing/BillingPlatformClient.js +3 -2
  46. package/sdk/platform/Billing/BillingPlatformValidator.js +1 -0
  47. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
  48. package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
  49. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  50. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
  51. package/sdk/platform/Cart/CartPlatformModel.js +7 -3
  52. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  55. package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +7 -7
  57. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
  58. package/sdk/platform/Common/CommonPlatformClient.js +7 -18
  59. package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
  60. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
  61. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
  62. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  63. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
  65. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
  67. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
  69. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
  70. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -62
  72. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +0 -1
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -7
  74. package/sdk/platform/Content/ContentPlatformModel.js +1 -0
  75. package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
  76. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
  79. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
  81. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
  82. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
  83. package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
  84. package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
  85. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
  86. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
  88. package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
  89. package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
  90. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
  91. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  92. package/sdk/platform/Order/OrderPlatformClient.js +16 -3
  93. package/sdk/platform/Order/OrderPlatformModel.js +1 -0
  94. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  95. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  96. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  97. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
  98. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
  99. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
  100. package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
  101. package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
  102. package/sdk/platform/PlatformClient.d.ts +13 -9
  103. package/sdk/platform/PlatformClient.js +13 -9
  104. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +4 -4
  105. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +36 -17
  106. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +1 -1
  107. package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
  108. package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
  109. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
  110. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
  111. package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
  112. package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
  113. package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
  114. package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
  115. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
  116. package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
  117. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  118. package/.github/workflows/on_create_release.yml +0 -23
  119. package/.github/workflows/on_merge_main.yml +0 -38
  120. package/.github/workflows/on_pull_request.yml +0 -35
  121. package/.prettierrc +0 -5
  122. package/documentation/application/CART.md +0 -8771
  123. package/documentation/application/CATALOG.md +0 -8690
  124. package/documentation/application/COMMON.md +0 -325
  125. package/documentation/application/COMMUNICATION.md +0 -387
  126. package/documentation/application/CONFIGURATION.md +0 -2212
  127. package/documentation/application/CONTENT.md +0 -2629
  128. package/documentation/application/FILESTORAGE.md +0 -442
  129. package/documentation/application/LEAD.md +0 -1549
  130. package/documentation/application/LOGISTIC.md +0 -689
  131. package/documentation/application/ORDER.md +0 -2937
  132. package/documentation/application/PAYMENT.md +0 -4475
  133. package/documentation/application/POSCART.md +0 -9375
  134. package/documentation/application/README.md +0 -21
  135. package/documentation/application/REWARDS.md +0 -554
  136. package/documentation/application/SHARE.md +0 -635
  137. package/documentation/application/THEME.md +0 -5517
  138. package/documentation/application/USER.md +0 -3798
  139. package/documentation/platform/ANALYTICS.md +0 -1012
  140. package/documentation/platform/AUDITTRAIL.md +0 -493
  141. package/documentation/platform/BILLING.md +0 -1889
  142. package/documentation/platform/CART.md +0 -4711
  143. package/documentation/platform/CATALOG.md +0 -20522
  144. package/documentation/platform/COMMON.md +0 -325
  145. package/documentation/platform/COMMUNICATION.md +0 -4970
  146. package/documentation/platform/COMPANYPROFILE.md +0 -1646
  147. package/documentation/platform/CONFIGURATION.md +0 -6316
  148. package/documentation/platform/CONTENT.md +0 -8364
  149. package/documentation/platform/DISCOUNT.md +0 -767
  150. package/documentation/platform/FILESTORAGE.md +0 -945
  151. package/documentation/platform/INVENTORY.md +0 -1136
  152. package/documentation/platform/LEAD.md +0 -4394
  153. package/documentation/platform/ORDER.md +0 -6525
  154. package/documentation/platform/PARTNER.md +0 -193
  155. package/documentation/platform/PAYMENT.md +0 -3138
  156. package/documentation/platform/README.md +0 -27
  157. package/documentation/platform/REWARDS.md +0 -919
  158. package/documentation/platform/SHARE.md +0 -513
  159. package/documentation/platform/THEME.md +0 -35446
  160. package/documentation/platform/USER.md +0 -2174
  161. package/documentation/platform/WEBHOOK.md +0 -485
  162. package/documentation/public/CONFIGURATION.md +0 -325
  163. package/documentation/public/INVENTORY.md +0 -508
  164. package/documentation/public/WEBHOOK.md +0 -246
  165. package/jest.config.d.ts +0 -4
  166. package/jest.config.js +0 -6
  167. package/tests/application/catalog.spec.js +0 -54
  168. package/tests/common/action-url.spec.js +0 -35
  169. package/tests/common/schema/action-url.json +0 -178
  170. package/tests/common/schema/url-action.json +0 -683
  171. package/tests/common/url-action.spec.js +0 -48
  172. package/tests/helpers/cookie.helper.js +0 -31
  173. package/tests/helpers/oauth.helper.js +0 -43
  174. package/tests/platform/catalog.spec.js +0 -49
  175. package/tests/public/location.spec.js +0 -39
@@ -1,3798 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Application docs](./README.md)
7
-
8
- ## User Methods
9
- Authentication Service
10
-
11
- * [addEmail](#addemail)
12
- * [addMobileNumber](#addmobilenumber)
13
- * [deleteEmail](#deleteemail)
14
- * [deleteMobileNumber](#deletemobilenumber)
15
- * [deleteUser](#deleteuser)
16
- * [forgotPassword](#forgotpassword)
17
- * [getListOfActiveSessions](#getlistofactivesessions)
18
- * [getLoggedInUser](#getloggedinuser)
19
- * [getPlatformConfig](#getplatformconfig)
20
- * [hasPassword](#haspassword)
21
- * [loginWithAppleIOS](#loginwithappleios)
22
- * [loginWithEmailAndPassword](#loginwithemailandpassword)
23
- * [loginWithFacebook](#loginwithfacebook)
24
- * [loginWithGoogle](#loginwithgoogle)
25
- * [loginWithGoogleAndroid](#loginwithgoogleandroid)
26
- * [loginWithGoogleIOS](#loginwithgoogleios)
27
- * [loginWithOTP](#loginwithotp)
28
- * [loginWithToken](#loginwithtoken)
29
- * [logout](#logout)
30
- * [registerWithForm](#registerwithform)
31
- * [sendOTPOnEmail](#sendotponemail)
32
- * [sendOTPOnMobile](#sendotponmobile)
33
- * [sendResetPasswordEmail](#sendresetpasswordemail)
34
- * [sendResetPasswordMobile](#sendresetpasswordmobile)
35
- * [sendResetToken](#sendresettoken)
36
- * [sendVerificationLinkToEmail](#sendverificationlinktoemail)
37
- * [sendVerificationLinkToMobile](#sendverificationlinktomobile)
38
- * [setEmailAsPrimary](#setemailasprimary)
39
- * [setMobileNumberAsPrimary](#setmobilenumberasprimary)
40
- * [updatePassword](#updatepassword)
41
- * [updateProfile](#updateprofile)
42
- * [verifyEmail](#verifyemail)
43
- * [verifyEmailOTP](#verifyemailotp)
44
- * [verifyMobile](#verifymobile)
45
- * [verifyMobileOTP](#verifymobileotp)
46
-
47
-
48
-
49
- ## Methods with example and description
50
-
51
-
52
-
53
-
54
- ### addEmail
55
- Add email to profile
56
-
57
-
58
-
59
- ```javascript
60
- // Promise
61
- const promise = user.addEmail({ body : value,
62
- platform : value });
63
-
64
- // Async/Await
65
- const data = await user.addEmail({ body : value,
66
- platform : value });
67
- ```
68
-
69
-
70
-
71
-
72
-
73
- | Argument | Type | Required | Description |
74
- | --------- | ----- | -------- | ----------- |
75
- | platform | string | no | ID of the application |
76
- | body | [EditEmailRequestSchema](#EditEmailRequestSchema) | yes | Request body |
77
-
78
-
79
- Use this API to add a new email address to a profile
80
-
81
- *Returned Response:*
82
-
83
-
84
-
85
-
86
- [VerifyEmailOTPSuccess](#VerifyEmailOTPSuccess)
87
-
88
- Success. Returns a JSON object with user details. Refer `VerifyEmailOTPSuccess` for more details.
89
-
90
-
91
-
92
-
93
- <details>
94
- <summary><i>&nbsp; Examples:</i></summary>
95
-
96
-
97
- <details>
98
- <summary><i>&nbsp; default</i></summary>
99
-
100
- ```json
101
- {
102
- "value": {
103
- "verify_email_link": true,
104
- "user": {
105
- "debug": {
106
- "source": "deadlock",
107
- "platform": "000000000000000000000001"
108
- },
109
- "gender": "male",
110
- "account_type": "user",
111
- "active": true,
112
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
113
- "has_old_password_hash": false,
114
- "_id": "5e68af49cfa09bf7233022f1",
115
- "first_name": "Akash",
116
- "last_name": "Mane",
117
- "username": "akashmane_gofynd_com_10039",
118
- "phone_numbers": [
119
- {
120
- "active": true,
121
- "primary": true,
122
- "verified": true,
123
- "phone": "8652523958",
124
- "country_code": 91
125
- }
126
- ],
127
- "emails": [
128
- {
129
- "active": true,
130
- "primary": true,
131
- "verified": true,
132
- "email": "akashmane@gofynd.com"
133
- },
134
- {
135
- "active": true,
136
- "primary": false,
137
- "verified": true,
138
- "email": "akashmane@fynd.com"
139
- },
140
- {
141
- "active": true,
142
- "primary": false,
143
- "verified": true,
144
- "email": "akashmane@uniket.store"
145
- }
146
- ],
147
- "created_at": "2020-03-11T09:28:41.982Z",
148
- "updated_at": "2021-02-04T10:10:44.981Z"
149
- }
150
- }
151
- }
152
- ```
153
- </details>
154
-
155
- </details>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
- ---
166
-
167
-
168
- ### addMobileNumber
169
- Add mobile number to profile
170
-
171
-
172
-
173
- ```javascript
174
- // Promise
175
- const promise = user.addMobileNumber({ body : value,
176
- platform : value });
177
-
178
- // Async/Await
179
- const data = await user.addMobileNumber({ body : value,
180
- platform : value });
181
- ```
182
-
183
-
184
-
185
-
186
-
187
- | Argument | Type | Required | Description |
188
- | --------- | ----- | -------- | ----------- |
189
- | platform | string | no | ID of the application |
190
- | body | [EditMobileRequestSchema](#EditMobileRequestSchema) | yes | Request body |
191
-
192
-
193
- Use this API to add a new mobile number to a profile.
194
-
195
- *Returned Response:*
196
-
197
-
198
-
199
-
200
- [VerifyMobileOTPSuccess](#VerifyMobileOTPSuccess)
201
-
202
- Success. Check the example shown below or refer `VerifyMobileOTPSuccess` for more details.
203
-
204
-
205
-
206
-
207
- <details>
208
- <summary><i>&nbsp; Examples:</i></summary>
209
-
210
-
211
- <details>
212
- <summary><i>&nbsp; default</i></summary>
213
-
214
- ```json
215
- {
216
- "value": {
217
- "verify_mobile_link": true,
218
- "user": {
219
- "debug": {
220
- "source": "deadlock",
221
- "platform": "000000000000000000000001"
222
- },
223
- "gender": "male",
224
- "account_type": "user",
225
- "active": true,
226
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
227
- "has_old_password_hash": false,
228
- "_id": "5e68af49cfa09bf7233022f1",
229
- "first_name": "Akash",
230
- "last_name": "Mane",
231
- "username": "akashmane_gofynd_com_10039",
232
- "phone_numbers": [
233
- {
234
- "active": true,
235
- "primary": true,
236
- "verified": true,
237
- "phone": "8652523958",
238
- "country_code": 91
239
- }
240
- ],
241
- "emails": [
242
- {
243
- "active": true,
244
- "primary": true,
245
- "verified": true,
246
- "email": "akashmane@gofynd.com"
247
- },
248
- {
249
- "active": true,
250
- "primary": false,
251
- "verified": true,
252
- "email": "akashmane@fynd.com"
253
- },
254
- {
255
- "active": true,
256
- "primary": false,
257
- "verified": true,
258
- "email": "akashmane@uniket.store"
259
- }
260
- ],
261
- "created_at": "2020-03-11T09:28:41.982Z",
262
- "updated_at": "2021-02-04T10:10:44.981Z"
263
- }
264
- }
265
- }
266
- ```
267
- </details>
268
-
269
- </details>
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
- ---
280
-
281
-
282
- ### deleteEmail
283
- Delete email from profile
284
-
285
-
286
-
287
- ```javascript
288
- // Promise
289
- const promise = user.deleteEmail({ active : value,
290
- primary : value,
291
- verified : value,
292
- email : value,
293
- platform : value });
294
-
295
- // Async/Await
296
- const data = await user.deleteEmail({ active : value,
297
- primary : value,
298
- verified : value,
299
- email : value,
300
- platform : value });
301
- ```
302
-
303
-
304
-
305
-
306
-
307
- | Argument | Type | Required | Description |
308
- | --------- | ----- | -------- | ----------- |
309
- | platform | string | no | ID of the application |
310
- | active | boolean | yes | This is a boolean value to check if email ID is active 1. True - Email ID is active 2.False - Email ID is inactive |
311
- | primary | boolean | yes | This is a boolean value to check if email ID is primary (main email ID) 1. True - Email ID is primary 2.False - Email ID is not primary |
312
- | verified | boolean | yes | This is a boolean value to check if email ID is verified 1. True - Email ID is verified 2.False - Email ID is not verified yet |
313
- | email | string | yes | The email ID to delete |
314
-
315
-
316
-
317
- Use this API to delete an email address from a profile
318
-
319
- *Returned Response:*
320
-
321
-
322
-
323
-
324
- [LoginSuccess](#LoginSuccess)
325
-
326
- Success. Returns a JSON object with user details. Refer `LoginSuccess` for more details.
327
-
328
-
329
-
330
-
331
- <details>
332
- <summary><i>&nbsp; Examples:</i></summary>
333
-
334
-
335
- <details>
336
- <summary><i>&nbsp; default</i></summary>
337
-
338
- ```json
339
- {
340
- "value": {
341
- "user": {
342
- "debug": {
343
- "source": "deadlock",
344
- "platform": "000000000000000000000001"
345
- },
346
- "gender": "male",
347
- "account_type": "user",
348
- "active": true,
349
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
350
- "has_old_password_hash": false,
351
- "_id": "5e68af49cfa09bf7233022f1",
352
- "first_name": "Akash",
353
- "last_name": "Mane",
354
- "username": "akashmane_gofynd_com_10039",
355
- "phone_numbers": [
356
- {
357
- "active": true,
358
- "primary": true,
359
- "verified": true,
360
- "phone": "8652523958",
361
- "country_code": 91
362
- }
363
- ],
364
- "emails": [
365
- {
366
- "active": true,
367
- "primary": true,
368
- "verified": true,
369
- "email": "akashmane@gofynd.com"
370
- },
371
- {
372
- "active": true,
373
- "primary": false,
374
- "verified": true,
375
- "email": "akashmane@fynd.com"
376
- },
377
- {
378
- "active": true,
379
- "primary": false,
380
- "verified": true,
381
- "email": "akashmane@uniket.store"
382
- }
383
- ],
384
- "created_at": "2020-03-11T09:28:41.982Z",
385
- "updated_at": "2021-02-04T10:10:44.981Z"
386
- }
387
- }
388
- }
389
- ```
390
- </details>
391
-
392
- </details>
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
- ---
403
-
404
-
405
- ### deleteMobileNumber
406
- Delete mobile number from profile
407
-
408
-
409
-
410
- ```javascript
411
- // Promise
412
- const promise = user.deleteMobileNumber({ active : value,
413
- primary : value,
414
- verified : value,
415
- countryCode : value,
416
- phone : value,
417
- platform : value });
418
-
419
- // Async/Await
420
- const data = await user.deleteMobileNumber({ active : value,
421
- primary : value,
422
- verified : value,
423
- countryCode : value,
424
- phone : value,
425
- platform : value });
426
- ```
427
-
428
-
429
-
430
-
431
-
432
- | Argument | Type | Required | Description |
433
- | --------- | ----- | -------- | ----------- |
434
- | platform | string | no | ID of the application |
435
- | active | boolean | yes | This is a boolean value to check if mobile number is active 1.True - Number is active 2. False - Number is inactive |
436
- | primary | boolean | yes | This is a boolean value to check if mobile number is primary number (main number) 1. True - Number is primary 2. False - Number is not primary |
437
- | verified | boolean | yes | This is a boolean value to check if mobile number is verified 1. True - Number is verified 2.False - Number is not verified yet |
438
- | countryCode | string | yes | Country code of the phone number, e.g. 91 |
439
- | phone | string | yes | Phone number |
440
-
441
-
442
-
443
- Use this API to delete a mobile number from a profile.
444
-
445
- *Returned Response:*
446
-
447
-
448
-
449
-
450
- [LoginSuccess](#LoginSuccess)
451
-
452
- Success. Check the example shown below or refer `LoginSuccess` for more details.
453
-
454
-
455
-
456
-
457
- <details>
458
- <summary><i>&nbsp; Examples:</i></summary>
459
-
460
-
461
- <details>
462
- <summary><i>&nbsp; default</i></summary>
463
-
464
- ```json
465
- {
466
- "value": {
467
- "user": {
468
- "debug": {
469
- "source": "deadlock",
470
- "platform": "000000000000000000000001"
471
- },
472
- "gender": "male",
473
- "account_type": "user",
474
- "active": true,
475
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
476
- "has_old_password_hash": false,
477
- "_id": "5e68af49cfa09bf7233022f1",
478
- "first_name": "Akash",
479
- "last_name": "Mane",
480
- "username": "akashmane_gofynd_com_10039",
481
- "phone_numbers": [
482
- {
483
- "active": true,
484
- "primary": true,
485
- "verified": true,
486
- "phone": "8652523958",
487
- "country_code": 91
488
- }
489
- ],
490
- "emails": [
491
- {
492
- "active": true,
493
- "primary": true,
494
- "verified": true,
495
- "email": "akashmane@gofynd.com"
496
- },
497
- {
498
- "active": true,
499
- "primary": false,
500
- "verified": true,
501
- "email": "akashmane@fynd.com"
502
- },
503
- {
504
- "active": true,
505
- "primary": false,
506
- "verified": true,
507
- "email": "akashmane@uniket.store"
508
- }
509
- ],
510
- "created_at": "2020-03-11T09:28:41.982Z",
511
- "updated_at": "2021-02-04T10:10:44.981Z"
512
- }
513
- }
514
- }
515
- ```
516
- </details>
517
-
518
- </details>
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
- ---
529
-
530
-
531
- ### deleteUser
532
- verify otp and delete user
533
-
534
-
535
-
536
- ```javascript
537
- // Promise
538
- const promise = user.deleteUser({ body : value });
539
-
540
- // Async/Await
541
- const data = await user.deleteUser({ body : value });
542
- ```
543
-
544
-
545
-
546
-
547
-
548
- | Argument | Type | Required | Description |
549
- | --------- | ----- | -------- | ----------- |
550
- | body | [DeleteApplicationUserRequestSchema](#DeleteApplicationUserRequestSchema) | yes | Request body |
551
-
552
-
553
- verify otp and delete user
554
-
555
- *Returned Response:*
556
-
557
-
558
-
559
-
560
- [DeleteUserSuccess](#DeleteUserSuccess)
561
-
562
- Success. Returns a success message. Refer `DeleteUserSuccess` for more details.
563
-
564
-
565
-
566
-
567
- <details>
568
- <summary><i>&nbsp; Example:</i></summary>
569
-
570
- ```json
571
- {
572
- "success": true
573
- }
574
- ```
575
- </details>
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
- ---
586
-
587
-
588
- ### forgotPassword
589
- Forgot Password
590
-
591
-
592
-
593
- ```javascript
594
- // Promise
595
- const promise = user.forgotPassword({ body : value });
596
-
597
- // Async/Await
598
- const data = await user.forgotPassword({ body : value });
599
- ```
600
-
601
-
602
-
603
-
604
-
605
- | Argument | Type | Required | Description |
606
- | --------- | ----- | -------- | ----------- |
607
- | body | [ForgotPasswordRequestSchema](#ForgotPasswordRequestSchema) | yes | Request body |
608
-
609
-
610
- Use this API to reset a password using the code sent on email or SMS.
611
-
612
- *Returned Response:*
613
-
614
-
615
-
616
-
617
- [LoginSuccess](#LoginSuccess)
618
-
619
- Success. Check the example shown below or refer `LoginSuccess` for more details.
620
-
621
-
622
-
623
-
624
- <details>
625
- <summary><i>&nbsp; Examples:</i></summary>
626
-
627
-
628
- <details>
629
- <summary><i>&nbsp; Success</i></summary>
630
-
631
- ```json
632
- {
633
- "value": {
634
- "user": {
635
- "debug": {
636
- "source": "deadlock",
637
- "platform": "000000000000000000000001"
638
- },
639
- "gender": "male",
640
- "account_type": "user",
641
- "active": true,
642
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
643
- "has_old_password_hash": false,
644
- "_id": "5e68af49cfa09bf7233022f1",
645
- "first_name": "Akash",
646
- "last_name": "Mane",
647
- "username": "akashmane_gofynd_com_10039",
648
- "phone_numbers": [
649
- {
650
- "active": true,
651
- "primary": true,
652
- "verified": true,
653
- "phone": "8652523958",
654
- "country_code": 91
655
- }
656
- ],
657
- "emails": [
658
- {
659
- "active": true,
660
- "primary": true,
661
- "verified": true,
662
- "email": "akashmane@gofynd.com"
663
- },
664
- {
665
- "active": true,
666
- "primary": false,
667
- "verified": true,
668
- "email": "akashmane@fynd.com"
669
- },
670
- {
671
- "active": true,
672
- "primary": false,
673
- "verified": true,
674
- "email": "akashmane@uniket.store"
675
- }
676
- ],
677
- "created_at": "2020-03-11T09:28:41.982Z",
678
- "updated_at": "2021-02-04T10:10:44.981Z"
679
- }
680
- }
681
- }
682
- ```
683
- </details>
684
-
685
- </details>
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
- ---
696
-
697
-
698
- ### getListOfActiveSessions
699
- Get list of sessions
700
-
701
-
702
-
703
- ```javascript
704
- // Promise
705
- const promise = user.getListOfActiveSessions();
706
-
707
- // Async/Await
708
- const data = await user.getListOfActiveSessions();
709
- ```
710
-
711
-
712
-
713
-
714
-
715
-
716
- Use this API to retrieve all active sessions of a user.
717
-
718
- *Returned Response:*
719
-
720
-
721
-
722
-
723
- [SessionListSuccess](#SessionListSuccess)
724
-
725
- Success. Returns a JSON object containing an array of sessions. Refer `SessionListSuccess` for more details.
726
-
727
-
728
-
729
-
730
- <details>
731
- <summary><i>&nbsp; Example:</i></summary>
732
-
733
- ```json
734
- {
735
- "sessions": [
736
- "session_1",
737
- "session_2"
738
- ]
739
- }
740
- ```
741
- </details>
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
- ---
752
-
753
-
754
- ### getLoggedInUser
755
- Get logged in user
756
-
757
-
758
-
759
- ```javascript
760
- // Promise
761
- const promise = user.getLoggedInUser();
762
-
763
- // Async/Await
764
- const data = await user.getLoggedInUser();
765
- ```
766
-
767
-
768
-
769
-
770
-
771
-
772
- Use this API to get the details of a logged in user.
773
-
774
- *Returned Response:*
775
-
776
-
777
-
778
-
779
- [UserObjectSchema](#UserObjectSchema)
780
-
781
- Success. Returns a JSON object with user details. Refer `UserObjectSchema` for more details.
782
-
783
-
784
-
785
-
786
- <details>
787
- <summary><i>&nbsp; Examples:</i></summary>
788
-
789
-
790
- <details>
791
- <summary><i>&nbsp; default</i></summary>
792
-
793
- ```json
794
- {
795
- "value": {
796
- "user": {
797
- "debug": {
798
- "source": "deadlock",
799
- "platform": "000000000000000000000001"
800
- },
801
- "gender": "male",
802
- "account_type": "user",
803
- "active": true,
804
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
805
- "has_old_password_hash": false,
806
- "_id": "5e68af49cfa09bf7233022f1",
807
- "first_name": "Akash",
808
- "last_name": "Mane",
809
- "username": "akashmane_gofynd_com_10039",
810
- "phone_numbers": [
811
- {
812
- "active": true,
813
- "primary": true,
814
- "verified": true,
815
- "phone": "8652523958",
816
- "country_code": 91
817
- }
818
- ],
819
- "emails": [
820
- {
821
- "active": true,
822
- "primary": true,
823
- "verified": true,
824
- "email": "akashmane@gofynd.com"
825
- },
826
- {
827
- "active": true,
828
- "primary": false,
829
- "verified": true,
830
- "email": "akashmane@fynd.com"
831
- },
832
- {
833
- "active": true,
834
- "primary": false,
835
- "verified": true,
836
- "email": "akashmane@uniket.store"
837
- }
838
- ],
839
- "created_at": "2020-03-11T09:28:41.982Z",
840
- "updated_at": "2021-02-04T10:10:44.981Z"
841
- }
842
- }
843
- }
844
- ```
845
- </details>
846
-
847
- </details>
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
-
856
-
857
- ---
858
-
859
-
860
- ### getPlatformConfig
861
- Get platform configurations
862
-
863
-
864
-
865
- ```javascript
866
- // Promise
867
- const promise = user.getPlatformConfig({ name : value });
868
-
869
- // Async/Await
870
- const data = await user.getPlatformConfig({ name : value });
871
- ```
872
-
873
-
874
-
875
-
876
-
877
- | Argument | Type | Required | Description |
878
- | --------- | ----- | -------- | ----------- |
879
- | name | string | no | Name of the application, e.g. Fynd |
880
-
881
-
882
-
883
- Use this API to get all the platform configurations such as mobile image, desktop image, social logins, and all other text.
884
-
885
- *Returned Response:*
886
-
887
-
888
-
889
-
890
- [PlatformSchema](#PlatformSchema)
891
-
892
- Success. Returns a JSON object containing the all the platform configurations. Refer `PlatformSchema` for more details.
893
-
894
-
895
-
896
-
897
- <details>
898
- <summary><i>&nbsp; Example:</i></summary>
899
-
900
- ```json
901
- {
902
- "active": true,
903
- "mobile_image": null,
904
- "desktop_image": null,
905
- "social": {
906
- "facebook": true,
907
- "google": true,
908
- "account_kit": true
909
- },
910
- "flash_card": {
911
- "text": "",
912
- "text_color": "#FFFFFF",
913
- "background_color": "#EF5350"
914
- },
915
- "register": true,
916
- "forgot_password": true,
917
- "login": {
918
- "password": true,
919
- "otp": true
920
- },
921
- "skip_captcha": false,
922
- "display": "Fynd",
923
- "subtext": "Login to Fynd",
924
- "name": "Fynd",
925
- "meta": {},
926
- "required_fields": {
927
- "email": {
928
- "is_required": false,
929
- "level": "hard"
930
- },
931
- "mobile": {
932
- "is_required": true,
933
- "level": "hard"
934
- }
935
- },
936
- "register_required_fields": {
937
- "email": {
938
- "is_required": false,
939
- "level": "hard"
940
- },
941
- "mobile": {
942
- "is_required": true,
943
- "level": "hard"
944
- }
945
- },
946
- "skip_login": false,
947
- "look_and_feel": {
948
- "background_color": "#F5F5F5",
949
- "card_position": "center"
950
- },
951
- "social_tokens": {
952
- "google": {
953
- "appId": "token_123"
954
- },
955
- "facebook": {
956
- "appId": "2033146826724884"
957
- },
958
- "account_kit": {
959
- "appId": "548529975557631"
960
- }
961
- },
962
- "delete_account_reasons": [
963
- {
964
- "reason_text": "test",
965
- "reason_id": "123",
966
- "show_text_area": true
967
- }
968
- ],
969
- "delete_account_day": 7,
970
- "delete_account_consent": {
971
- "consent_text": ""
972
- },
973
- "session_config": {
974
- "duration": "30",
975
- "type": "Days",
976
- "is_rolling": false
977
- },
978
- "_id": "5e04a5e5220bc15839ad9bc0",
979
- "created_at": "2019-12-26T12:21:57.878Z",
980
- "updated_at": "2020-08-13T14:31:09.878Z",
981
- "__v": 0
982
- }
983
- ```
984
- </details>
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
- ---
995
-
996
-
997
- ### hasPassword
998
- Check password
999
-
1000
-
1001
-
1002
- ```javascript
1003
- // Promise
1004
- const promise = user.hasPassword();
1005
-
1006
- // Async/Await
1007
- const data = await user.hasPassword();
1008
- ```
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
- Use this API to check if user has created a password for login.
1016
-
1017
- *Returned Response:*
1018
-
1019
-
1020
-
1021
-
1022
- [HasPasswordSuccess](#HasPasswordSuccess)
1023
-
1024
- Success. Returns a boolean value. Check the example shown below or refer `HasPasswordSuccess` for more details.
1025
-
1026
-
1027
-
1028
-
1029
- <details>
1030
- <summary><i>&nbsp; Example:</i></summary>
1031
-
1032
- ```json
1033
-
1034
- ```
1035
- </details>
1036
-
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
- ---
1046
-
1047
-
1048
- ### loginWithAppleIOS
1049
- Login or Register using Apple on iOS
1050
-
1051
-
1052
-
1053
- ```javascript
1054
- // Promise
1055
- const promise = user.loginWithAppleIOS({ body : value,
1056
- platform : value });
1057
-
1058
- // Async/Await
1059
- const data = await user.loginWithAppleIOS({ body : value,
1060
- platform : value });
1061
- ```
1062
-
1063
-
1064
-
1065
-
1066
-
1067
- | Argument | Type | Required | Description |
1068
- | --------- | ----- | -------- | ----------- |
1069
- | platform | string | no | ID of the application |
1070
- | body | [OAuthRequestAppleSchema](#OAuthRequestAppleSchema) | yes | Request body |
1071
-
1072
-
1073
- Use this API to login or register in iOS app using Apple Account credentials.
1074
-
1075
- *Returned Response:*
1076
-
1077
-
1078
-
1079
-
1080
- [AuthSuccess](#AuthSuccess)
1081
-
1082
- Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
1083
-
1084
-
1085
-
1086
-
1087
- <details>
1088
- <summary><i>&nbsp; Examples:</i></summary>
1089
-
1090
-
1091
- <details>
1092
- <summary><i>&nbsp; Success</i></summary>
1093
-
1094
- ```json
1095
- {
1096
- "value": {
1097
- "user_exists": false,
1098
- "user": {
1099
- "emails": [
1100
- {
1101
- "email": "www.akash24@gmail.com",
1102
- "verified": true,
1103
- "primary": true,
1104
- "active": true
1105
- }
1106
- ],
1107
- "phone_numbers": [],
1108
- "first_name": "Akash",
1109
- "last_name": "Mane",
1110
- "debug": {
1111
- "platform": "Fynd"
1112
- },
1113
- "active": true
1114
- },
1115
- "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
1116
- }
1117
- }
1118
- ```
1119
- </details>
1120
-
1121
- </details>
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
- ---
1132
-
1133
-
1134
- ### loginWithEmailAndPassword
1135
- Login or Register with password
1136
-
1137
-
1138
-
1139
- ```javascript
1140
- // Promise
1141
- const promise = user.loginWithEmailAndPassword({ body : value });
1142
-
1143
- // Async/Await
1144
- const data = await user.loginWithEmailAndPassword({ body : value });
1145
- ```
1146
-
1147
-
1148
-
1149
-
1150
-
1151
- | Argument | Type | Required | Description |
1152
- | --------- | ----- | -------- | ----------- |
1153
- | body | [PasswordLoginRequestSchema](#PasswordLoginRequestSchema) | yes | Request body |
1154
-
1155
-
1156
- Use this API to login or register using an email address and password.
1157
-
1158
- *Returned Response:*
1159
-
1160
-
1161
-
1162
-
1163
- [LoginSuccess](#LoginSuccess)
1164
-
1165
- Success. Check the example shown below or refer `LoginSuccess` for more details.
1166
-
1167
-
1168
-
1169
-
1170
- <details>
1171
- <summary><i>&nbsp; Examples:</i></summary>
1172
-
1173
-
1174
- <details>
1175
- <summary><i>&nbsp; Success</i></summary>
1176
-
1177
- ```json
1178
- {
1179
- "value": {
1180
- "user": {
1181
- "debug": {
1182
- "source": "deadlock",
1183
- "platform": "000000000000000000000001"
1184
- },
1185
- "gender": "male",
1186
- "account_type": "user",
1187
- "active": true,
1188
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
1189
- "has_old_password_hash": false,
1190
- "_id": "5e68af49cfa09bf7233022f1",
1191
- "first_name": "Akash",
1192
- "last_name": "Mane",
1193
- "username": "akashmane_gofynd_com_10039",
1194
- "phone_numbers": [
1195
- {
1196
- "active": true,
1197
- "primary": true,
1198
- "verified": true,
1199
- "phone": "8652523958",
1200
- "country_code": 91
1201
- }
1202
- ],
1203
- "emails": [
1204
- {
1205
- "active": true,
1206
- "primary": true,
1207
- "verified": true,
1208
- "email": "akashmane@gofynd.com"
1209
- },
1210
- {
1211
- "active": true,
1212
- "primary": false,
1213
- "verified": true,
1214
- "email": "akashmane@fynd.com"
1215
- },
1216
- {
1217
- "active": true,
1218
- "primary": false,
1219
- "verified": true,
1220
- "email": "akashmane@uniket.store"
1221
- }
1222
- ],
1223
- "created_at": "2020-03-11T09:28:41.982Z",
1224
- "updated_at": "2021-02-04T10:10:44.981Z"
1225
- }
1226
- }
1227
- }
1228
- ```
1229
- </details>
1230
-
1231
- </details>
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
-
1241
- ---
1242
-
1243
-
1244
- ### loginWithFacebook
1245
- Login or Register using Facebook
1246
-
1247
-
1248
-
1249
- ```javascript
1250
- // Promise
1251
- const promise = user.loginWithFacebook({ body : value,
1252
- platform : value });
1253
-
1254
- // Async/Await
1255
- const data = await user.loginWithFacebook({ body : value,
1256
- platform : value });
1257
- ```
1258
-
1259
-
1260
-
1261
-
1262
-
1263
- | Argument | Type | Required | Description |
1264
- | --------- | ----- | -------- | ----------- |
1265
- | platform | string | no | ID of the application |
1266
- | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
1267
-
1268
-
1269
- Use this API to login or register using Facebook credentials.
1270
-
1271
- *Returned Response:*
1272
-
1273
-
1274
-
1275
-
1276
- [AuthSuccess](#AuthSuccess)
1277
-
1278
- Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
1279
-
1280
-
1281
-
1282
-
1283
- <details>
1284
- <summary><i>&nbsp; Examples:</i></summary>
1285
-
1286
-
1287
- <details>
1288
- <summary><i>&nbsp; Success</i></summary>
1289
-
1290
- ```json
1291
- {
1292
- "value": {
1293
- "user_exists": false,
1294
- "user": {
1295
- "emails": [
1296
- {
1297
- "email": "www.akash24@gmail.com",
1298
- "verified": true,
1299
- "primary": true,
1300
- "active": true
1301
- }
1302
- ],
1303
- "phone_numbers": [],
1304
- "first_name": "Akash",
1305
- "last_name": "Mane",
1306
- "debug": {
1307
- "platform": "Fynd"
1308
- },
1309
- "active": true
1310
- },
1311
- "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
1312
- }
1313
- }
1314
- ```
1315
- </details>
1316
-
1317
- </details>
1318
-
1319
-
1320
-
1321
-
1322
-
1323
-
1324
-
1325
-
1326
-
1327
- ---
1328
-
1329
-
1330
- ### loginWithGoogle
1331
- Login or Register using Google
1332
-
1333
-
1334
-
1335
- ```javascript
1336
- // Promise
1337
- const promise = user.loginWithGoogle({ body : value,
1338
- platform : value });
1339
-
1340
- // Async/Await
1341
- const data = await user.loginWithGoogle({ body : value,
1342
- platform : value });
1343
- ```
1344
-
1345
-
1346
-
1347
-
1348
-
1349
- | Argument | Type | Required | Description |
1350
- | --------- | ----- | -------- | ----------- |
1351
- | platform | string | no | ID of the application |
1352
- | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
1353
-
1354
-
1355
- Use this API to login or register using Google Account credentials.
1356
-
1357
- *Returned Response:*
1358
-
1359
-
1360
-
1361
-
1362
- [AuthSuccess](#AuthSuccess)
1363
-
1364
- Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
1365
-
1366
-
1367
-
1368
-
1369
- <details>
1370
- <summary><i>&nbsp; Examples:</i></summary>
1371
-
1372
-
1373
- <details>
1374
- <summary><i>&nbsp; Success</i></summary>
1375
-
1376
- ```json
1377
- {
1378
- "value": {
1379
- "user_exists": false,
1380
- "user": {
1381
- "emails": [
1382
- {
1383
- "email": "www.akash24@gmail.com",
1384
- "verified": true,
1385
- "primary": true,
1386
- "active": true
1387
- }
1388
- ],
1389
- "phone_numbers": [],
1390
- "first_name": "Akash",
1391
- "last_name": "Mane",
1392
- "debug": {
1393
- "platform": "Fynd"
1394
- },
1395
- "active": true
1396
- },
1397
- "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
1398
- }
1399
- }
1400
- ```
1401
- </details>
1402
-
1403
- </details>
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
-
1413
- ---
1414
-
1415
-
1416
- ### loginWithGoogleAndroid
1417
- Login or Register using Google on Android
1418
-
1419
-
1420
-
1421
- ```javascript
1422
- // Promise
1423
- const promise = user.loginWithGoogleAndroid({ body : value,
1424
- platform : value });
1425
-
1426
- // Async/Await
1427
- const data = await user.loginWithGoogleAndroid({ body : value,
1428
- platform : value });
1429
- ```
1430
-
1431
-
1432
-
1433
-
1434
-
1435
- | Argument | Type | Required | Description |
1436
- | --------- | ----- | -------- | ----------- |
1437
- | platform | string | no | ID of the application |
1438
- | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
1439
-
1440
-
1441
- Use this API to login or register in Android app using Google Account credentials.
1442
-
1443
- *Returned Response:*
1444
-
1445
-
1446
-
1447
-
1448
- [AuthSuccess](#AuthSuccess)
1449
-
1450
- Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
1451
-
1452
-
1453
-
1454
-
1455
- <details>
1456
- <summary><i>&nbsp; Examples:</i></summary>
1457
-
1458
-
1459
- <details>
1460
- <summary><i>&nbsp; Success</i></summary>
1461
-
1462
- ```json
1463
- {
1464
- "value": {
1465
- "user_exists": false,
1466
- "user": {
1467
- "emails": [
1468
- {
1469
- "email": "www.akash24@gmail.com",
1470
- "verified": true,
1471
- "primary": true,
1472
- "active": true
1473
- }
1474
- ],
1475
- "phone_numbers": [],
1476
- "first_name": "Akash",
1477
- "last_name": "Mane",
1478
- "debug": {
1479
- "platform": "Fynd"
1480
- },
1481
- "active": true
1482
- },
1483
- "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
1484
- }
1485
- }
1486
- ```
1487
- </details>
1488
-
1489
- </details>
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
- ---
1500
-
1501
-
1502
- ### loginWithGoogleIOS
1503
- Login or Register using Google on iOS
1504
-
1505
-
1506
-
1507
- ```javascript
1508
- // Promise
1509
- const promise = user.loginWithGoogleIOS({ body : value,
1510
- platform : value });
1511
-
1512
- // Async/Await
1513
- const data = await user.loginWithGoogleIOS({ body : value,
1514
- platform : value });
1515
- ```
1516
-
1517
-
1518
-
1519
-
1520
-
1521
- | Argument | Type | Required | Description |
1522
- | --------- | ----- | -------- | ----------- |
1523
- | platform | string | no | ID of the application |
1524
- | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
1525
-
1526
-
1527
- Use this API to login or register in iOS app using Google Account credentials.
1528
-
1529
- *Returned Response:*
1530
-
1531
-
1532
-
1533
-
1534
- [AuthSuccess](#AuthSuccess)
1535
-
1536
- Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
1537
-
1538
-
1539
-
1540
-
1541
- <details>
1542
- <summary><i>&nbsp; Examples:</i></summary>
1543
-
1544
-
1545
- <details>
1546
- <summary><i>&nbsp; Success</i></summary>
1547
-
1548
- ```json
1549
- {
1550
- "value": {
1551
- "user_exists": false,
1552
- "user": {
1553
- "emails": [
1554
- {
1555
- "email": "www.akash24@gmail.com",
1556
- "verified": true,
1557
- "primary": true,
1558
- "active": true
1559
- }
1560
- ],
1561
- "phone_numbers": [],
1562
- "first_name": "Akash",
1563
- "last_name": "Mane",
1564
- "debug": {
1565
- "platform": "Fynd"
1566
- },
1567
- "active": true
1568
- },
1569
- "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
1570
- }
1571
- }
1572
- ```
1573
- </details>
1574
-
1575
- </details>
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
- ---
1586
-
1587
-
1588
- ### loginWithOTP
1589
- Login or Register with OTP
1590
-
1591
-
1592
-
1593
- ```javascript
1594
- // Promise
1595
- const promise = user.loginWithOTP({ body : value,
1596
- platform : value });
1597
-
1598
- // Async/Await
1599
- const data = await user.loginWithOTP({ body : value,
1600
- platform : value });
1601
- ```
1602
-
1603
-
1604
-
1605
-
1606
-
1607
- | Argument | Type | Required | Description |
1608
- | --------- | ----- | -------- | ----------- |
1609
- | platform | string | no | ID of the application |
1610
- | body | [SendOtpRequestSchema](#SendOtpRequestSchema) | yes | Request body |
1611
-
1612
-
1613
- Use this API to login or register with a One-time Password (OTP) sent via Email or SMS.
1614
-
1615
- *Returned Response:*
1616
-
1617
-
1618
-
1619
-
1620
- [SendOtpResponse](#SendOtpResponse)
1621
-
1622
- Success. Check the example shown below or refer `SendOtpResponse` for more details.
1623
-
1624
-
1625
-
1626
-
1627
- <details>
1628
- <summary><i>&nbsp; Examples:</i></summary>
1629
-
1630
-
1631
- <details>
1632
- <summary><i>&nbsp; Success</i></summary>
1633
-
1634
- ```json
1635
- {
1636
- "value": {
1637
- "success": true,
1638
- "request_id": "01503005aeab87cbed93d40f46cc2749",
1639
- "message": "OTP sent",
1640
- "mobile": "8652523958",
1641
- "country_code": "91",
1642
- "resend_timer": 30,
1643
- "resendToken": "58e72ca0-66ae-11eb-98b1-77d61363826e"
1644
- }
1645
- }
1646
- ```
1647
- </details>
1648
-
1649
- </details>
1650
-
1651
-
1652
-
1653
-
1654
-
1655
-
1656
-
1657
-
1658
-
1659
- ---
1660
-
1661
-
1662
- ### loginWithToken
1663
- Login or Register with token
1664
-
1665
-
1666
-
1667
- ```javascript
1668
- // Promise
1669
- const promise = user.loginWithToken({ body : value });
1670
-
1671
- // Async/Await
1672
- const data = await user.loginWithToken({ body : value });
1673
- ```
1674
-
1675
-
1676
-
1677
-
1678
-
1679
- | Argument | Type | Required | Description |
1680
- | --------- | ----- | -------- | ----------- |
1681
- | body | [TokenRequestBodySchema](#TokenRequestBodySchema) | yes | Request body |
1682
-
1683
-
1684
- Use this API to login or register using a token for authentication.
1685
-
1686
- *Returned Response:*
1687
-
1688
-
1689
-
1690
-
1691
- [LoginSuccess](#LoginSuccess)
1692
-
1693
- Success. Check the example shown below or refer `LoginSuccess` for more details.
1694
-
1695
-
1696
-
1697
-
1698
- <details>
1699
- <summary><i>&nbsp; Examples:</i></summary>
1700
-
1701
-
1702
- <details>
1703
- <summary><i>&nbsp; Success</i></summary>
1704
-
1705
- ```json
1706
- {
1707
- "value": {
1708
- "user": {
1709
- "debug": {
1710
- "source": "deadlock",
1711
- "platform": "000000000000000000000001"
1712
- },
1713
- "gender": "male",
1714
- "account_type": "user",
1715
- "active": true,
1716
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
1717
- "has_old_password_hash": false,
1718
- "_id": "5e68af49cfa09bf7233022f1",
1719
- "first_name": "Akash",
1720
- "last_name": "Mane",
1721
- "username": "akashmane_gofynd_com_10039",
1722
- "phone_numbers": [
1723
- {
1724
- "active": true,
1725
- "primary": true,
1726
- "verified": true,
1727
- "phone": "8652523958",
1728
- "country_code": 91
1729
- }
1730
- ],
1731
- "emails": [
1732
- {
1733
- "active": true,
1734
- "primary": true,
1735
- "verified": true,
1736
- "email": "akashmane@gofynd.com"
1737
- },
1738
- {
1739
- "active": true,
1740
- "primary": false,
1741
- "verified": true,
1742
- "email": "akashmane@fynd.com"
1743
- },
1744
- {
1745
- "active": true,
1746
- "primary": false,
1747
- "verified": true,
1748
- "email": "akashmane@uniket.store"
1749
- }
1750
- ],
1751
- "created_at": "2020-03-11T09:28:41.982Z",
1752
- "updated_at": "2021-02-04T10:10:44.981Z"
1753
- }
1754
- }
1755
- }
1756
- ```
1757
- </details>
1758
-
1759
- </details>
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
- ---
1770
-
1771
-
1772
- ### logout
1773
- Logs out currently logged in user
1774
-
1775
-
1776
-
1777
- ```javascript
1778
- // Promise
1779
- const promise = user.logout();
1780
-
1781
- // Async/Await
1782
- const data = await user.logout();
1783
- ```
1784
-
1785
-
1786
-
1787
-
1788
-
1789
-
1790
- Use this API to check to logout a user from the app.
1791
-
1792
- *Returned Response:*
1793
-
1794
-
1795
-
1796
-
1797
- [LogoutSuccess](#LogoutSuccess)
1798
-
1799
- Success. Returns a success message as shown below. Refer `LogoutSuccess` for more details.
1800
-
1801
-
1802
-
1803
-
1804
- <details>
1805
- <summary><i>&nbsp; Example:</i></summary>
1806
-
1807
- ```json
1808
-
1809
- ```
1810
- </details>
1811
-
1812
-
1813
-
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
- ---
1821
-
1822
-
1823
- ### registerWithForm
1824
- Registration using a form
1825
-
1826
-
1827
-
1828
- ```javascript
1829
- // Promise
1830
- const promise = user.registerWithForm({ body : value,
1831
- platform : value });
1832
-
1833
- // Async/Await
1834
- const data = await user.registerWithForm({ body : value,
1835
- platform : value });
1836
- ```
1837
-
1838
-
1839
-
1840
-
1841
-
1842
- | Argument | Type | Required | Description |
1843
- | --------- | ----- | -------- | ----------- |
1844
- | platform | string | no | ID of the application |
1845
- | body | [FormRegisterRequestSchema](#FormRegisterRequestSchema) | yes | Request body |
1846
-
1847
-
1848
- Use this API to perform user registration by sending form data in the request body.
1849
-
1850
- *Returned Response:*
1851
-
1852
-
1853
-
1854
-
1855
- [RegisterFormSuccess](#RegisterFormSuccess)
1856
-
1857
- Success. Check the example shown below or refer `RegisterFormSuccess` for more details.
1858
-
1859
-
1860
-
1861
-
1862
- <details>
1863
- <summary><i>&nbsp; Example:</i></summary>
1864
-
1865
- ```json
1866
- {
1867
- "success": true,
1868
- "request_id": "ebc059191393681cdfb805b5424bddad",
1869
- "message": "OTP sent",
1870
- "mobile": "7400448798",
1871
- "country_code": "91",
1872
- "resend_timer": 30,
1873
- "resend_token": "5197ff90-66e2-11eb-9399-0312fbf2c2a6",
1874
- "verify_mobile_otp": true,
1875
- "register_token": "276e718a-d406-4a4b-83f7-cb6cb72b99ff",
1876
- "userExists": false
1877
- }
1878
- ```
1879
- </details>
1880
-
1881
-
1882
-
1883
-
1884
-
1885
-
1886
-
1887
-
1888
-
1889
- ---
1890
-
1891
-
1892
- ### sendOTPOnEmail
1893
- Send OTP on email
1894
-
1895
-
1896
-
1897
- ```javascript
1898
- // Promise
1899
- const promise = user.sendOTPOnEmail({ body : value,
1900
- platform : value });
1901
-
1902
- // Async/Await
1903
- const data = await user.sendOTPOnEmail({ body : value,
1904
- platform : value });
1905
- ```
1906
-
1907
-
1908
-
1909
-
1910
-
1911
- | Argument | Type | Required | Description |
1912
- | --------- | ----- | -------- | ----------- |
1913
- | platform | string | no | ID of the application |
1914
- | body | [SendEmailOtpRequestSchema](#SendEmailOtpRequestSchema) | yes | Request body |
1915
-
1916
-
1917
- Use this API to send an OTP to an email ID.
1918
-
1919
- *Returned Response:*
1920
-
1921
-
1922
-
1923
-
1924
- [EmailOtpSuccess](#EmailOtpSuccess)
1925
-
1926
- Success. Returns a JSON object as shown below. Refer `EmailOtpSuccess` for more details.
1927
-
1928
-
1929
-
1930
-
1931
- <details>
1932
- <summary><i>&nbsp; Example:</i></summary>
1933
-
1934
- ```json
1935
- {
1936
- "success": true
1937
- }
1938
- ```
1939
- </details>
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
- ---
1950
-
1951
-
1952
- ### sendOTPOnMobile
1953
- Send OTP on mobile
1954
-
1955
-
1956
-
1957
- ```javascript
1958
- // Promise
1959
- const promise = user.sendOTPOnMobile({ body : value,
1960
- platform : value });
1961
-
1962
- // Async/Await
1963
- const data = await user.sendOTPOnMobile({ body : value,
1964
- platform : value });
1965
- ```
1966
-
1967
-
1968
-
1969
-
1970
-
1971
- | Argument | Type | Required | Description |
1972
- | --------- | ----- | -------- | ----------- |
1973
- | platform | string | no | ID of the application |
1974
- | body | [SendMobileOtpRequestSchema](#SendMobileOtpRequestSchema) | yes | Request body |
1975
-
1976
-
1977
- Use this API to send an OTP to a mobile number.
1978
-
1979
- *Returned Response:*
1980
-
1981
-
1982
-
1983
-
1984
- [OtpSuccess](#OtpSuccess)
1985
-
1986
- Success. Returns a JSON object as shown below. Refer `OtpSuccess` for more details.
1987
-
1988
-
1989
-
1990
-
1991
- <details>
1992
- <summary><i>&nbsp; Example:</i></summary>
1993
-
1994
- ```json
1995
- {
1996
- "success": true,
1997
- "request_id": "01503005aeab87cbed93d40f46cc2749",
1998
- "message": "OTP sent",
1999
- "mobile": "8652523958",
2000
- "country_code": "91",
2001
- "resend_timer": 30,
2002
- "resend_token": "18fc3d60-66e5-11eb-9399-0312fbf2c2a6"
2003
- }
2004
- ```
2005
- </details>
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
-
2014
-
2015
- ---
2016
-
2017
-
2018
- ### sendResetPasswordEmail
2019
- Reset Password
2020
-
2021
-
2022
-
2023
- ```javascript
2024
- // Promise
2025
- const promise = user.sendResetPasswordEmail({ body : value,
2026
- platform : value });
2027
-
2028
- // Async/Await
2029
- const data = await user.sendResetPasswordEmail({ body : value,
2030
- platform : value });
2031
- ```
2032
-
2033
-
2034
-
2035
-
2036
-
2037
- | Argument | Type | Required | Description |
2038
- | --------- | ----- | -------- | ----------- |
2039
- | platform | string | no | ID of the application |
2040
- | body | [SendResetPasswordEmailRequestSchema](#SendResetPasswordEmailRequestSchema) | yes | Request body |
2041
-
2042
-
2043
- Use this API to reset a password using the link sent on email.
2044
-
2045
- *Returned Response:*
2046
-
2047
-
2048
-
2049
-
2050
- [ResetPasswordSuccess](#ResetPasswordSuccess)
2051
-
2052
- Success. Check the example shown below or refer `ResetPasswordSuccess` for more details.
2053
-
2054
-
2055
-
2056
-
2057
- <details>
2058
- <summary><i>&nbsp; Example:</i></summary>
2059
-
2060
- ```json
2061
- {
2062
- "status": "sent"
2063
- }
2064
- ```
2065
- </details>
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
-
2073
-
2074
-
2075
- ---
2076
-
2077
-
2078
- ### sendResetPasswordMobile
2079
- Reset Password
2080
-
2081
-
2082
-
2083
- ```javascript
2084
- // Promise
2085
- const promise = user.sendResetPasswordMobile({ body : value,
2086
- platform : value });
2087
-
2088
- // Async/Await
2089
- const data = await user.sendResetPasswordMobile({ body : value,
2090
- platform : value });
2091
- ```
2092
-
2093
-
2094
-
2095
-
2096
-
2097
- | Argument | Type | Required | Description |
2098
- | --------- | ----- | -------- | ----------- |
2099
- | platform | string | no | ID of the application |
2100
- | body | [SendResetPasswordMobileRequestSchema](#SendResetPasswordMobileRequestSchema) | yes | Request body |
2101
-
2102
-
2103
- Use this API to reset a password using the link sent on mobile.
2104
-
2105
- *Returned Response:*
2106
-
2107
-
2108
-
2109
-
2110
- [ResetPasswordSuccess](#ResetPasswordSuccess)
2111
-
2112
- Success. Check the example shown below or refer `ResetPasswordSuccess` for more details.
2113
-
2114
-
2115
-
2116
-
2117
- <details>
2118
- <summary><i>&nbsp; Example:</i></summary>
2119
-
2120
- ```json
2121
- {
2122
- "status": "sent"
2123
- }
2124
- ```
2125
- </details>
2126
-
2127
-
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
- ---
2136
-
2137
-
2138
- ### sendResetToken
2139
- Reset Password using token
2140
-
2141
-
2142
-
2143
- ```javascript
2144
- // Promise
2145
- const promise = user.sendResetToken({ body : value });
2146
-
2147
- // Async/Await
2148
- const data = await user.sendResetToken({ body : value });
2149
- ```
2150
-
2151
-
2152
-
2153
-
2154
-
2155
- | Argument | Type | Required | Description |
2156
- | --------- | ----- | -------- | ----------- |
2157
- | body | [CodeRequestBodySchema](#CodeRequestBodySchema) | yes | Request body |
2158
-
2159
-
2160
- Use this API to send code to reset password.
2161
-
2162
- *Returned Response:*
2163
-
2164
-
2165
-
2166
-
2167
- [ResetPasswordSuccess](#ResetPasswordSuccess)
2168
-
2169
- Success. Check the example shown below or refer `ResetPasswordSuccess` for more details.
2170
-
2171
-
2172
-
2173
-
2174
- <details>
2175
- <summary><i>&nbsp; Example:</i></summary>
2176
-
2177
- ```json
2178
- {
2179
- "status": "success"
2180
- }
2181
- ```
2182
- </details>
2183
-
2184
-
2185
-
2186
-
2187
-
2188
-
2189
-
2190
-
2191
-
2192
- ---
2193
-
2194
-
2195
- ### sendVerificationLinkToEmail
2196
- Send verification link to email
2197
-
2198
-
2199
-
2200
- ```javascript
2201
- // Promise
2202
- const promise = user.sendVerificationLinkToEmail({ body : value,
2203
- platform : value });
2204
-
2205
- // Async/Await
2206
- const data = await user.sendVerificationLinkToEmail({ body : value,
2207
- platform : value });
2208
- ```
2209
-
2210
-
2211
-
2212
-
2213
-
2214
- | Argument | Type | Required | Description |
2215
- | --------- | ----- | -------- | ----------- |
2216
- | platform | string | no | ID of the application |
2217
- | body | [EditEmailRequestSchema](#EditEmailRequestSchema) | yes | Request body |
2218
-
2219
-
2220
- Use this API to send verification link to an email address.
2221
-
2222
- *Returned Response:*
2223
-
2224
-
2225
-
2226
-
2227
- [SendEmailVerifyLinkSuccess](#SendEmailVerifyLinkSuccess)
2228
-
2229
- Request body must contain an email ID. Refer `EditEmailRequestSchema` for more details.
2230
-
2231
-
2232
-
2233
-
2234
- <details>
2235
- <summary><i>&nbsp; Example:</i></summary>
2236
-
2237
- ```json
2238
-
2239
- ```
2240
- </details>
2241
-
2242
-
2243
-
2244
-
2245
-
2246
-
2247
-
2248
-
2249
-
2250
- ---
2251
-
2252
-
2253
- ### sendVerificationLinkToMobile
2254
- Send verification link to mobile
2255
-
2256
-
2257
-
2258
- ```javascript
2259
- // Promise
2260
- const promise = user.sendVerificationLinkToMobile({ body : value,
2261
- platform : value });
2262
-
2263
- // Async/Await
2264
- const data = await user.sendVerificationLinkToMobile({ body : value,
2265
- platform : value });
2266
- ```
2267
-
2268
-
2269
-
2270
-
2271
-
2272
- | Argument | Type | Required | Description |
2273
- | --------- | ----- | -------- | ----------- |
2274
- | platform | string | no | ID of the application |
2275
- | body | [SendVerificationLinkMobileRequestSchema](#SendVerificationLinkMobileRequestSchema) | yes | Request body |
2276
-
2277
-
2278
- Use this API to send a verification link to a mobile number
2279
-
2280
- *Returned Response:*
2281
-
2282
-
2283
-
2284
-
2285
- [SendMobileVerifyLinkSuccess](#SendMobileVerifyLinkSuccess)
2286
-
2287
- Success. Check the example shown below or refer `SendMobileVerifyLinkSuccess` for more details.
2288
-
2289
-
2290
-
2291
-
2292
- <details>
2293
- <summary><i>&nbsp; Examples:</i></summary>
2294
-
2295
-
2296
- <details>
2297
- <summary><i>&nbsp; default</i></summary>
2298
-
2299
- ```json
2300
- {
2301
- "value": {
2302
- "verify_mobile_link": true,
2303
- "user": {
2304
- "debug": {
2305
- "source": "deadlock",
2306
- "platform": "000000000000000000000001"
2307
- },
2308
- "gender": "male",
2309
- "account_type": "user",
2310
- "active": true,
2311
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2312
- "has_old_password_hash": false,
2313
- "_id": "5e68af49cfa09bf7233022f1",
2314
- "first_name": "Akash",
2315
- "last_name": "Mane",
2316
- "username": "akashmane_gofynd_com_10039",
2317
- "phone_numbers": [
2318
- {
2319
- "active": true,
2320
- "primary": true,
2321
- "verified": true,
2322
- "phone": "8652523958",
2323
- "country_code": 91
2324
- }
2325
- ],
2326
- "emails": [
2327
- {
2328
- "active": true,
2329
- "primary": true,
2330
- "verified": true,
2331
- "email": "akashmane@gofynd.com"
2332
- },
2333
- {
2334
- "active": true,
2335
- "primary": false,
2336
- "verified": true,
2337
- "email": "akashmane@fynd.com"
2338
- },
2339
- {
2340
- "active": true,
2341
- "primary": false,
2342
- "verified": true,
2343
- "email": "akashmane@uniket.store"
2344
- }
2345
- ],
2346
- "created_at": "2020-03-11T09:28:41.982Z",
2347
- "updated_at": "2021-02-04T10:10:44.981Z"
2348
- }
2349
- }
2350
- }
2351
- ```
2352
- </details>
2353
-
2354
- </details>
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
-
2362
-
2363
-
2364
- ---
2365
-
2366
-
2367
- ### setEmailAsPrimary
2368
- Set email as primary
2369
-
2370
-
2371
-
2372
- ```javascript
2373
- // Promise
2374
- const promise = user.setEmailAsPrimary({ body : value });
2375
-
2376
- // Async/Await
2377
- const data = await user.setEmailAsPrimary({ body : value });
2378
- ```
2379
-
2380
-
2381
-
2382
-
2383
-
2384
- | Argument | Type | Required | Description |
2385
- | --------- | ----- | -------- | ----------- |
2386
- | body | [EditEmailRequestSchema](#EditEmailRequestSchema) | yes | Request body |
2387
-
2388
-
2389
- Use this API to set an email address as primary. Primary email ID is a email address used for all future communications.
2390
-
2391
- *Returned Response:*
2392
-
2393
-
2394
-
2395
-
2396
- [LoginSuccess](#LoginSuccess)
2397
-
2398
- Success. Returns a JSON object with user details. Refer `LoginSuccess` for more details.
2399
-
2400
-
2401
-
2402
-
2403
- <details>
2404
- <summary><i>&nbsp; Examples:</i></summary>
2405
-
2406
-
2407
- <details>
2408
- <summary><i>&nbsp; default</i></summary>
2409
-
2410
- ```json
2411
- {
2412
- "value": {
2413
- "user": {
2414
- "debug": {
2415
- "source": "deadlock",
2416
- "platform": "000000000000000000000001"
2417
- },
2418
- "gender": "male",
2419
- "account_type": "user",
2420
- "active": true,
2421
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2422
- "has_old_password_hash": false,
2423
- "_id": "5e68af49cfa09bf7233022f1",
2424
- "first_name": "Akash",
2425
- "last_name": "Mane",
2426
- "username": "akashmane_gofynd_com_10039",
2427
- "phone_numbers": [
2428
- {
2429
- "active": true,
2430
- "primary": true,
2431
- "verified": true,
2432
- "phone": "8652523958",
2433
- "country_code": 91
2434
- }
2435
- ],
2436
- "emails": [
2437
- {
2438
- "active": true,
2439
- "primary": true,
2440
- "verified": true,
2441
- "email": "akashmane@gofynd.com"
2442
- },
2443
- {
2444
- "active": true,
2445
- "primary": false,
2446
- "verified": true,
2447
- "email": "akashmane@fynd.com"
2448
- },
2449
- {
2450
- "active": true,
2451
- "primary": false,
2452
- "verified": true,
2453
- "email": "akashmane@uniket.store"
2454
- }
2455
- ],
2456
- "created_at": "2020-03-11T09:28:41.982Z",
2457
- "updated_at": "2021-02-04T10:10:44.981Z"
2458
- }
2459
- }
2460
- }
2461
- ```
2462
- </details>
2463
-
2464
- </details>
2465
-
2466
-
2467
-
2468
-
2469
-
2470
-
2471
-
2472
-
2473
-
2474
- ---
2475
-
2476
-
2477
- ### setMobileNumberAsPrimary
2478
- Set mobile as primary
2479
-
2480
-
2481
-
2482
- ```javascript
2483
- // Promise
2484
- const promise = user.setMobileNumberAsPrimary({ body : value });
2485
-
2486
- // Async/Await
2487
- const data = await user.setMobileNumberAsPrimary({ body : value });
2488
- ```
2489
-
2490
-
2491
-
2492
-
2493
-
2494
- | Argument | Type | Required | Description |
2495
- | --------- | ----- | -------- | ----------- |
2496
- | body | [SendVerificationLinkMobileRequestSchema](#SendVerificationLinkMobileRequestSchema) | yes | Request body |
2497
-
2498
-
2499
- Use this API to set a mobile number as primary. Primary number is a verified number used for all future communications.
2500
-
2501
- *Returned Response:*
2502
-
2503
-
2504
-
2505
-
2506
- [LoginSuccess](#LoginSuccess)
2507
-
2508
- Success. Check the example shown below or refer `LoginSuccess` for more details.
2509
-
2510
-
2511
-
2512
-
2513
- <details>
2514
- <summary><i>&nbsp; Examples:</i></summary>
2515
-
2516
-
2517
- <details>
2518
- <summary><i>&nbsp; default</i></summary>
2519
-
2520
- ```json
2521
- {
2522
- "value": {
2523
- "user": {
2524
- "debug": {
2525
- "source": "deadlock",
2526
- "platform": "000000000000000000000001"
2527
- },
2528
- "gender": "male",
2529
- "account_type": "user",
2530
- "active": true,
2531
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2532
- "has_old_password_hash": false,
2533
- "_id": "5e68af49cfa09bf7233022f1",
2534
- "first_name": "Akash",
2535
- "last_name": "Mane",
2536
- "username": "akashmane_gofynd_com_10039",
2537
- "phone_numbers": [
2538
- {
2539
- "active": true,
2540
- "primary": true,
2541
- "verified": true,
2542
- "phone": "8652523958",
2543
- "country_code": 91
2544
- }
2545
- ],
2546
- "emails": [
2547
- {
2548
- "active": true,
2549
- "primary": true,
2550
- "verified": true,
2551
- "email": "akashmane@gofynd.com"
2552
- },
2553
- {
2554
- "active": true,
2555
- "primary": false,
2556
- "verified": true,
2557
- "email": "akashmane@fynd.com"
2558
- },
2559
- {
2560
- "active": true,
2561
- "primary": false,
2562
- "verified": true,
2563
- "email": "akashmane@uniket.store"
2564
- }
2565
- ],
2566
- "created_at": "2020-03-11T09:28:41.982Z",
2567
- "updated_at": "2021-02-04T10:10:44.981Z"
2568
- }
2569
- }
2570
- }
2571
- ```
2572
- </details>
2573
-
2574
- </details>
2575
-
2576
-
2577
-
2578
-
2579
-
2580
-
2581
-
2582
-
2583
-
2584
- ---
2585
-
2586
-
2587
- ### updatePassword
2588
- Update user password
2589
-
2590
-
2591
-
2592
- ```javascript
2593
- // Promise
2594
- const promise = user.updatePassword({ body : value });
2595
-
2596
- // Async/Await
2597
- const data = await user.updatePassword({ body : value });
2598
- ```
2599
-
2600
-
2601
-
2602
-
2603
-
2604
- | Argument | Type | Required | Description |
2605
- | --------- | ----- | -------- | ----------- |
2606
- | body | [UpdatePasswordRequestSchema](#UpdatePasswordRequestSchema) | yes | Request body |
2607
-
2608
-
2609
- Use this API to update the password.
2610
-
2611
- *Returned Response:*
2612
-
2613
-
2614
-
2615
-
2616
- [VerifyEmailSuccess](#VerifyEmailSuccess)
2617
-
2618
- Success. Returns a success message. Refer `VerifyEmailSuccess` for more details.
2619
-
2620
-
2621
-
2622
-
2623
- <details>
2624
- <summary><i>&nbsp; Example:</i></summary>
2625
-
2626
- ```json
2627
- {
2628
- "message": "success"
2629
- }
2630
- ```
2631
- </details>
2632
-
2633
-
2634
-
2635
-
2636
-
2637
-
2638
-
2639
-
2640
-
2641
- ---
2642
-
2643
-
2644
- ### updateProfile
2645
- Edit Profile Details
2646
-
2647
-
2648
-
2649
- ```javascript
2650
- // Promise
2651
- const promise = user.updateProfile({ body : value,
2652
- platform : value });
2653
-
2654
- // Async/Await
2655
- const data = await user.updateProfile({ body : value,
2656
- platform : value });
2657
- ```
2658
-
2659
-
2660
-
2661
-
2662
-
2663
- | Argument | Type | Required | Description |
2664
- | --------- | ----- | -------- | ----------- |
2665
- | platform | string | no | ID of the application |
2666
- | body | [EditProfileRequestSchema](#EditProfileRequestSchema) | yes | Request body |
2667
-
2668
-
2669
- Use this API to update details in the user profile. Details can be first name, last name, gender, email, phone number, or profile picture.
2670
-
2671
- *Returned Response:*
2672
-
2673
-
2674
-
2675
-
2676
- [ProfileEditSuccess](#ProfileEditSuccess)
2677
-
2678
- Success. Check the example shown below or refer `LoginSuccess` for more details.
2679
-
2680
-
2681
-
2682
-
2683
- <details>
2684
- <summary><i>&nbsp; Examples:</i></summary>
2685
-
2686
-
2687
- <details>
2688
- <summary><i>&nbsp; default</i></summary>
2689
-
2690
- ```json
2691
- {
2692
- "value": {
2693
- "user": {
2694
- "debug": {
2695
- "source": "deadlock",
2696
- "platform": "000000000000000000000001"
2697
- },
2698
- "gender": "male",
2699
- "account_type": "user",
2700
- "active": true,
2701
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2702
- "has_old_password_hash": false,
2703
- "_id": "5e68af49cfa09bf7233022f1",
2704
- "first_name": "Akash",
2705
- "last_name": "Mane",
2706
- "username": "akashmane_gofynd_com_10039",
2707
- "phone_numbers": [
2708
- {
2709
- "active": true,
2710
- "primary": true,
2711
- "verified": true,
2712
- "phone": "8652523958",
2713
- "country_code": 91
2714
- }
2715
- ],
2716
- "emails": [
2717
- {
2718
- "active": true,
2719
- "primary": true,
2720
- "verified": true,
2721
- "email": "akashmane@gofynd.com"
2722
- },
2723
- {
2724
- "active": true,
2725
- "primary": false,
2726
- "verified": true,
2727
- "email": "akashmane@fynd.com"
2728
- },
2729
- {
2730
- "active": true,
2731
- "primary": false,
2732
- "verified": true,
2733
- "email": "akashmane@uniket.store"
2734
- }
2735
- ],
2736
- "created_at": "2020-03-11T09:28:41.982Z",
2737
- "updated_at": "2021-02-04T10:10:44.981Z"
2738
- }
2739
- }
2740
- }
2741
- ```
2742
- </details>
2743
-
2744
- </details>
2745
-
2746
-
2747
-
2748
-
2749
-
2750
-
2751
-
2752
-
2753
-
2754
- ---
2755
-
2756
-
2757
- ### verifyEmail
2758
- Verify email
2759
-
2760
-
2761
-
2762
- ```javascript
2763
- // Promise
2764
- const promise = user.verifyEmail({ body : value });
2765
-
2766
- // Async/Await
2767
- const data = await user.verifyEmail({ body : value });
2768
- ```
2769
-
2770
-
2771
-
2772
-
2773
-
2774
- | Argument | Type | Required | Description |
2775
- | --------- | ----- | -------- | ----------- |
2776
- | body | [CodeRequestBodySchema](#CodeRequestBodySchema) | yes | Request body |
2777
-
2778
-
2779
- Use this API to send a verification code to verify an email.
2780
-
2781
- *Returned Response:*
2782
-
2783
-
2784
-
2785
-
2786
- [VerifyEmailSuccess](#VerifyEmailSuccess)
2787
-
2788
- Success. Check the example shown below or refer `VerifyEmailSuccess` for more details.
2789
-
2790
-
2791
-
2792
-
2793
- <details>
2794
- <summary><i>&nbsp; Example:</i></summary>
2795
-
2796
- ```json
2797
- {
2798
- "message": "verified"
2799
- }
2800
- ```
2801
- </details>
2802
-
2803
-
2804
-
2805
-
2806
-
2807
-
2808
-
2809
-
2810
-
2811
- ---
2812
-
2813
-
2814
- ### verifyEmailOTP
2815
- Verify OTP on email
2816
-
2817
-
2818
-
2819
- ```javascript
2820
- // Promise
2821
- const promise = user.verifyEmailOTP({ body : value,
2822
- platform : value });
2823
-
2824
- // Async/Await
2825
- const data = await user.verifyEmailOTP({ body : value,
2826
- platform : value });
2827
- ```
2828
-
2829
-
2830
-
2831
-
2832
-
2833
- | Argument | Type | Required | Description |
2834
- | --------- | ----- | -------- | ----------- |
2835
- | platform | string | no | ID of the application |
2836
- | body | [VerifyEmailOtpRequestSchema](#VerifyEmailOtpRequestSchema) | yes | Request body |
2837
-
2838
-
2839
- Use this API to verify the OTP received on an email ID.
2840
-
2841
- *Returned Response:*
2842
-
2843
-
2844
-
2845
-
2846
- [VerifyOtpSuccess](#VerifyOtpSuccess)
2847
-
2848
- Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more details.
2849
-
2850
-
2851
-
2852
-
2853
- <details>
2854
- <summary><i>&nbsp; Examples:</i></summary>
2855
-
2856
-
2857
- <details>
2858
- <summary><i>&nbsp; default</i></summary>
2859
-
2860
- ```json
2861
- {
2862
- "value": {
2863
- "verify_mobile_link": true,
2864
- "user": {
2865
- "debug": {
2866
- "source": "deadlock",
2867
- "platform": "000000000000000000000001"
2868
- },
2869
- "gender": "male",
2870
- "account_type": "user",
2871
- "active": true,
2872
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2873
- "has_old_password_hash": false,
2874
- "_id": "5e68af49cfa09bf7233022f1",
2875
- "first_name": "Akash",
2876
- "last_name": "Mane",
2877
- "username": "akashmane_gofynd_com_10039",
2878
- "phone_numbers": [
2879
- {
2880
- "active": true,
2881
- "primary": true,
2882
- "verified": true,
2883
- "phone": "8652523958",
2884
- "country_code": 91
2885
- }
2886
- ],
2887
- "emails": [
2888
- {
2889
- "active": true,
2890
- "primary": true,
2891
- "verified": true,
2892
- "email": "akashmane@gofynd.com"
2893
- },
2894
- {
2895
- "active": true,
2896
- "primary": false,
2897
- "verified": true,
2898
- "email": "akashmane@fynd.com"
2899
- },
2900
- {
2901
- "active": true,
2902
- "primary": false,
2903
- "verified": true,
2904
- "email": "akashmane@uniket.store"
2905
- }
2906
- ],
2907
- "created_at": "2020-03-11T09:28:41.982Z",
2908
- "updated_at": "2021-02-04T10:10:44.981Z"
2909
- }
2910
- }
2911
- }
2912
- ```
2913
- </details>
2914
-
2915
- </details>
2916
-
2917
-
2918
-
2919
-
2920
-
2921
-
2922
-
2923
-
2924
-
2925
- ---
2926
-
2927
-
2928
- ### verifyMobile
2929
- Verify mobile
2930
-
2931
-
2932
-
2933
- ```javascript
2934
- // Promise
2935
- const promise = user.verifyMobile({ body : value });
2936
-
2937
- // Async/Await
2938
- const data = await user.verifyMobile({ body : value });
2939
- ```
2940
-
2941
-
2942
-
2943
-
2944
-
2945
- | Argument | Type | Required | Description |
2946
- | --------- | ----- | -------- | ----------- |
2947
- | body | [CodeRequestBodySchema](#CodeRequestBodySchema) | yes | Request body |
2948
-
2949
-
2950
- Use this API to send a verification code to verify a mobile number.
2951
-
2952
- *Returned Response:*
2953
-
2954
-
2955
-
2956
-
2957
- [VerifyEmailSuccess](#VerifyEmailSuccess)
2958
-
2959
- Success. Check the example shown below or refer `VerifyEmailSuccess` for more details.
2960
-
2961
-
2962
-
2963
-
2964
- <details>
2965
- <summary><i>&nbsp; Example:</i></summary>
2966
-
2967
- ```json
2968
- {
2969
- "message": "verified"
2970
- }
2971
- ```
2972
- </details>
2973
-
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
- ---
2983
-
2984
-
2985
- ### verifyMobileOTP
2986
- Verify OTP on mobile
2987
-
2988
-
2989
-
2990
- ```javascript
2991
- // Promise
2992
- const promise = user.verifyMobileOTP({ body : value,
2993
- platform : value });
2994
-
2995
- // Async/Await
2996
- const data = await user.verifyMobileOTP({ body : value,
2997
- platform : value });
2998
- ```
2999
-
3000
-
3001
-
3002
-
3003
-
3004
- | Argument | Type | Required | Description |
3005
- | --------- | ----- | -------- | ----------- |
3006
- | platform | string | no | ID of the application |
3007
- | body | [VerifyOtpRequestSchema](#VerifyOtpRequestSchema) | yes | Request body |
3008
-
3009
-
3010
- Use this API to verify the OTP received on a mobile number.
3011
-
3012
- *Returned Response:*
3013
-
3014
-
3015
-
3016
-
3017
- [VerifyOtpSuccess](#VerifyOtpSuccess)
3018
-
3019
- Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more details.
3020
-
3021
-
3022
-
3023
-
3024
- <details>
3025
- <summary><i>&nbsp; Examples:</i></summary>
3026
-
3027
-
3028
- <details>
3029
- <summary><i>&nbsp; default</i></summary>
3030
-
3031
- ```json
3032
- {
3033
- "value": {
3034
- "verify_mobile_link": true,
3035
- "user": {
3036
- "debug": {
3037
- "source": "deadlock",
3038
- "platform": "000000000000000000000001"
3039
- },
3040
- "gender": "male",
3041
- "account_type": "user",
3042
- "active": true,
3043
- "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
3044
- "has_old_password_hash": false,
3045
- "_id": "5e68af49cfa09bf7233022f1",
3046
- "first_name": "Akash",
3047
- "last_name": "Mane",
3048
- "username": "akashmane_gofynd_com_10039",
3049
- "phone_numbers": [
3050
- {
3051
- "active": true,
3052
- "primary": true,
3053
- "verified": true,
3054
- "phone": "8652523958",
3055
- "country_code": 91
3056
- }
3057
- ],
3058
- "emails": [
3059
- {
3060
- "active": true,
3061
- "primary": true,
3062
- "verified": true,
3063
- "email": "akashmane@gofynd.com"
3064
- },
3065
- {
3066
- "active": true,
3067
- "primary": false,
3068
- "verified": true,
3069
- "email": "akashmane@fynd.com"
3070
- },
3071
- {
3072
- "active": true,
3073
- "primary": false,
3074
- "verified": true,
3075
- "email": "akashmane@uniket.store"
3076
- }
3077
- ],
3078
- "created_at": "2020-03-11T09:28:41.982Z",
3079
- "updated_at": "2021-02-04T10:10:44.981Z"
3080
- }
3081
- }
3082
- }
3083
- ```
3084
- </details>
3085
-
3086
- </details>
3087
-
3088
-
3089
-
3090
-
3091
-
3092
-
3093
-
3094
-
3095
-
3096
- ---
3097
-
3098
-
3099
-
3100
- ### Schemas
3101
-
3102
-
3103
- #### [Accountkit](#Accountkit)
3104
-
3105
- | Properties | Type | Nullable | Description |
3106
- | ---------- | ---- | -------- | ----------- || app_id | string | no | |
3107
-
3108
- ---
3109
-
3110
- #### [ArchiveUserRequestSchema](#ArchiveUserRequestSchema)
3111
-
3112
- | Properties | Type | Nullable | Description |
3113
- | ---------- | ---- | -------- | ----------- || user_id | string | no | |
3114
-
3115
- ---
3116
-
3117
- #### [ArchiveUserSuccess](#ArchiveUserSuccess)
3118
-
3119
- | Properties | Type | Nullable | Description |
3120
- | ---------- | ---- | -------- | ----------- || success | boolean | no | |
3121
-
3122
- ---
3123
-
3124
- #### [AuthenticationApiErrorSchema](#AuthenticationApiErrorSchema)
3125
-
3126
- | Properties | Type | Nullable | Description |
3127
- | ---------- | ---- | -------- | ----------- || message | string | no | |
3128
-
3129
- ---
3130
-
3131
- #### [AuthenticationInternalServerErrorSchema](#AuthenticationInternalServerErrorSchema)
3132
-
3133
- | Properties | Type | Nullable | Description |
3134
- | ---------- | ---- | -------- | ----------- || message | string | no | |
3135
-
3136
- ---
3137
-
3138
- #### [AuthSuccess](#AuthSuccess)
3139
-
3140
- | Properties | Type | Nullable | Description |
3141
- | ---------- | ---- | -------- | ----------- || register_token | string | no | || user | [UserSchema](#UserSchema) | no | || user_exists | boolean | no | |
3142
-
3143
- ---
3144
-
3145
- #### [AuthSuccessUser](#AuthSuccessUser)
3146
-
3147
- | Properties | Type | Nullable | Description |
3148
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || debug | [AuthSuccessUserDebug](#AuthSuccessUserDebug) | no | || emails | [AuthSuccessUserEmails](#AuthSuccessUserEmails) | no | || first_name | string | no | || last_name | string | no | |
3149
-
3150
- ---
3151
-
3152
- #### [AuthSuccessUserDebug](#AuthSuccessUserDebug)
3153
-
3154
- | Properties | Type | Nullable | Description |
3155
- | ---------- | ---- | -------- | ----------- || platform | string | no | |
3156
-
3157
- ---
3158
-
3159
- #### [AuthSuccessUserEmails](#AuthSuccessUserEmails)
3160
-
3161
- | Properties | Type | Nullable | Description |
3162
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || email | string | no | || primary | boolean | no | || verified | boolean | no | |
3163
-
3164
- ---
3165
-
3166
- #### [BlockUserRequestSchema](#BlockUserRequestSchema)
3167
-
3168
- | Properties | Type | Nullable | Description |
3169
- | ---------- | ---- | -------- | ----------- || reason | string | no | || status | boolean | no | || user_id | [string] | no | |
3170
-
3171
- ---
3172
-
3173
- #### [BlockUserSuccess](#BlockUserSuccess)
3174
-
3175
- | Properties | Type | Nullable | Description |
3176
- | ---------- | ---- | -------- | ----------- || success | boolean | no | |
3177
-
3178
- ---
3179
-
3180
- #### [CodeRequestBodySchema](#CodeRequestBodySchema)
3181
-
3182
- | Properties | Type | Nullable | Description |
3183
- | ---------- | ---- | -------- | ----------- || code | string | no | |
3184
-
3185
- ---
3186
-
3187
- #### [CreateUserGroupSchema](#CreateUserGroupSchema)
3188
-
3189
- | Properties | Type | Nullable | Description |
3190
- | ---------- | ---- | -------- | ----------- || description | string | yes | || file_url | string | yes | || name | string | yes | |
3191
-
3192
- ---
3193
-
3194
- #### [CreateUserRequestSchema](#CreateUserRequestSchema)
3195
-
3196
- | Properties | Type | Nullable | Description |
3197
- | ---------- | ---- | -------- | ----------- || email | string | no | || first_name | string | no | || gender | string | no | || last_name | string | no | || meta | string | no | || phone_number | string | yes | || username | string | yes | |
3198
-
3199
- ---
3200
-
3201
- #### [CreateUserResponseSchema](#CreateUserResponseSchema)
3202
-
3203
- | Properties | Type | Nullable | Description |
3204
- | ---------- | ---- | -------- | ----------- || user | [UserSchema](#UserSchema) | no | |
3205
-
3206
- ---
3207
-
3208
- #### [CreateUserSessionRequestSchema](#CreateUserSessionRequestSchema)
3209
-
3210
- | Properties | Type | Nullable | Description |
3211
- | ---------- | ---- | -------- | ----------- || domain | string | no | || max_age | number | no | || user_id | string | no | |
3212
-
3213
- ---
3214
-
3215
- #### [CreateUserSessionResponseSchema](#CreateUserSessionResponseSchema)
3216
-
3217
- | Properties | Type | Nullable | Description |
3218
- | ---------- | ---- | -------- | ----------- || cookie | string | no | || domain | string | no | || http_only | boolean | no | || max_age | number | no | || secure | boolean | no | |
3219
-
3220
- ---
3221
-
3222
- #### [CustomerListResponseSchema](#CustomerListResponseSchema)
3223
-
3224
- | Properties | Type | Nullable | Description |
3225
- | ---------- | ---- | -------- | ----------- || items | [[UserSchema](#UserSchema)] | no | || page | [PaginationSchema](#PaginationSchema) | no | |
3226
-
3227
- ---
3228
-
3229
- #### [DeleteAccountConsent](#DeleteAccountConsent)
3230
-
3231
- | Properties | Type | Nullable | Description |
3232
- | ---------- | ---- | -------- | ----------- || consent_text | string | no | |
3233
-
3234
- ---
3235
-
3236
- #### [DeleteAccountReasons](#DeleteAccountReasons)
3237
-
3238
- | Properties | Type | Nullable | Description |
3239
- | ---------- | ---- | -------- | ----------- || reason_id | string | no | || reason_text | string | no | || show_text_area | boolean | no | |
3240
-
3241
- ---
3242
-
3243
- #### [DeleteApplicationUserRequestSchema](#DeleteApplicationUserRequestSchema)
3244
-
3245
- | Properties | Type | Nullable | Description |
3246
- | ---------- | ---- | -------- | ----------- || otp | string | no | || reason | string | no | || reason_id | string | no | || request_id | string | no | || user_id | string | no | |
3247
-
3248
- ---
3249
-
3250
- #### [DeleteUserSuccess](#DeleteUserSuccess)
3251
-
3252
- | Properties | Type | Nullable | Description |
3253
- | ---------- | ---- | -------- | ----------- || success | boolean | no | |
3254
-
3255
- ---
3256
-
3257
- #### [EditEmailRequestSchema](#EditEmailRequestSchema)
3258
-
3259
- | Properties | Type | Nullable | Description |
3260
- | ---------- | ---- | -------- | ----------- || email | string | no | |
3261
-
3262
- ---
3263
-
3264
- #### [EditMobileRequestSchema](#EditMobileRequestSchema)
3265
-
3266
- | Properties | Type | Nullable | Description |
3267
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || phone | string | no | |
3268
-
3269
- ---
3270
-
3271
- #### [EditProfileMobileSchema](#EditProfileMobileSchema)
3272
-
3273
- | Properties | Type | Nullable | Description |
3274
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || phone | string | no | |
3275
-
3276
- ---
3277
-
3278
- #### [EditProfileRequestSchema](#EditProfileRequestSchema)
3279
-
3280
- | Properties | Type | Nullable | Description |
3281
- | ---------- | ---- | -------- | ----------- || android_hash | string | no | || country_code | string | no | || dob | string | no | || email | string | no | || first_name | string | no | || gender | string | no | || last_name | string | no | || mobile | [EditProfileMobileSchema](#EditProfileMobileSchema) | no | || profile_pic_url | string | no | || register_token | string | no | || sender | string | no | |
3282
-
3283
- ---
3284
-
3285
- #### [Email](#Email)
3286
-
3287
- | Properties | Type | Nullable | Description |
3288
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || email | string | no | || primary | boolean | no | || verified | boolean | no | |
3289
-
3290
- ---
3291
-
3292
- #### [EmailOtpSuccess](#EmailOtpSuccess)
3293
-
3294
- | Properties | Type | Nullable | Description |
3295
- | ---------- | ---- | -------- | ----------- || success | boolean | no | |
3296
-
3297
- ---
3298
-
3299
- #### [Facebook](#Facebook)
3300
-
3301
- | Properties | Type | Nullable | Description |
3302
- | ---------- | ---- | -------- | ----------- || app_id | string | no | |
3303
-
3304
- ---
3305
-
3306
- #### [FlashCard](#FlashCard)
3307
-
3308
- | Properties | Type | Nullable | Description |
3309
- | ---------- | ---- | -------- | ----------- || background_color | string | no | || text | string | no | || text_color | string | no | |
3310
-
3311
- ---
3312
-
3313
- #### [ForgotPasswordRequestSchema](#ForgotPasswordRequestSchema)
3314
-
3315
- | Properties | Type | Nullable | Description |
3316
- | ---------- | ---- | -------- | ----------- || code | string | no | || password | string | no | |
3317
-
3318
- ---
3319
-
3320
- #### [FormRegisterRequestSchema](#FormRegisterRequestSchema)
3321
-
3322
- | Properties | Type | Nullable | Description |
3323
- | ---------- | ---- | -------- | ----------- || email | string | no | || first_name | string | no | || gender | string | no | || last_name | string | no | || password | string | no | || phone | [FormRegisterRequestSchemaPhone](#FormRegisterRequestSchemaPhone) | no | || register_token | string | no | |
3324
-
3325
- ---
3326
-
3327
- #### [FormRegisterRequestSchemaPhone](#FormRegisterRequestSchemaPhone)
3328
-
3329
- | Properties | Type | Nullable | Description |
3330
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || mobile | string | no | |
3331
-
3332
- ---
3333
-
3334
- #### [Google](#Google)
3335
-
3336
- | Properties | Type | Nullable | Description |
3337
- | ---------- | ---- | -------- | ----------- || app_id | string | no | |
3338
-
3339
- ---
3340
-
3341
- #### [HasPasswordSuccess](#HasPasswordSuccess)
3342
-
3343
- | Properties | Type | Nullable | Description |
3344
- | ---------- | ---- | -------- | ----------- || result | boolean | no | |
3345
-
3346
- ---
3347
-
3348
- #### [Login](#Login)
3349
-
3350
- | Properties | Type | Nullable | Description |
3351
- | ---------- | ---- | -------- | ----------- || otp | boolean | no | || password | boolean | no | |
3352
-
3353
- ---
3354
-
3355
- #### [LoginSuccess](#LoginSuccess)
3356
-
3357
- | Properties | Type | Nullable | Description |
3358
- | ---------- | ---- | -------- | ----------- || register_token | string | no | || request_id | string | no | || user | [UserSchema](#UserSchema) | no | |
3359
-
3360
- ---
3361
-
3362
- #### [LogoutSuccess](#LogoutSuccess)
3363
-
3364
- | Properties | Type | Nullable | Description |
3365
- | ---------- | ---- | -------- | ----------- || logout | boolean | no | |
3366
-
3367
- ---
3368
-
3369
- #### [LookAndFeel](#LookAndFeel)
3370
-
3371
- | Properties | Type | Nullable | Description |
3372
- | ---------- | ---- | -------- | ----------- || background_color | string | no | || card_position | string | no | |
3373
-
3374
- ---
3375
-
3376
- #### [MetaSchema](#MetaSchema)
3377
-
3378
- | Properties | Type | Nullable | Description |
3379
- | ---------- | ---- | -------- | ----------- || fynd_default | boolean | no | |
3380
-
3381
- ---
3382
-
3383
- #### [NotFoundSchema](#NotFoundSchema)
3384
-
3385
- | Properties | Type | Nullable | Description |
3386
- | ---------- | ---- | -------- | ----------- || message | string | no | |
3387
-
3388
- ---
3389
-
3390
- #### [OAuthRequestAppleSchema](#OAuthRequestAppleSchema)
3391
-
3392
- | Properties | Type | Nullable | Description |
3393
- | ---------- | ---- | -------- | ----------- || oauth | [OAuthRequestAppleSchemaOauth](#OAuthRequestAppleSchemaOauth) | no | || profile | [OAuthRequestAppleSchemaProfile](#OAuthRequestAppleSchemaProfile) | no | || user_identifier | string | no | |
3394
-
3395
- ---
3396
-
3397
- #### [OAuthRequestAppleSchemaOauth](#OAuthRequestAppleSchemaOauth)
3398
-
3399
- | Properties | Type | Nullable | Description |
3400
- | ---------- | ---- | -------- | ----------- || identity_token | string | no | |
3401
-
3402
- ---
3403
-
3404
- #### [OAuthRequestAppleSchemaProfile](#OAuthRequestAppleSchemaProfile)
3405
-
3406
- | Properties | Type | Nullable | Description |
3407
- | ---------- | ---- | -------- | ----------- || first_name | string | no | || full_name | string | no | || last_name | string | no | |
3408
-
3409
- ---
3410
-
3411
- #### [OAuthRequestSchema](#OAuthRequestSchema)
3412
-
3413
- | Properties | Type | Nullable | Description |
3414
- | ---------- | ---- | -------- | ----------- || is_signed_in | boolean | no | || oauth2 | [OAuthRequestSchemaOauth2](#OAuthRequestSchemaOauth2) | no | || profile | [OAuthRequestSchemaProfile](#OAuthRequestSchemaProfile) | no | |
3415
-
3416
- ---
3417
-
3418
- #### [OAuthRequestSchemaOauth2](#OAuthRequestSchemaOauth2)
3419
-
3420
- | Properties | Type | Nullable | Description |
3421
- | ---------- | ---- | -------- | ----------- || access_token | string | no | || expiry | number | no | || refresh_token | string | no | |
3422
-
3423
- ---
3424
-
3425
- #### [OAuthRequestSchemaProfile](#OAuthRequestSchemaProfile)
3426
-
3427
- | Properties | Type | Nullable | Description |
3428
- | ---------- | ---- | -------- | ----------- || email | string | no | || first_name | string | no | || full_name | string | no | || id | string | no | || image | string | no | || last_name | string | no | |
3429
-
3430
- ---
3431
-
3432
- #### [OtpSuccess](#OtpSuccess)
3433
-
3434
- | Properties | Type | Nullable | Description |
3435
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || message | string | no | || mobile | string | no | || register_token | string | no | || request_id | string | no | || resend_timer | number | no | || resend_token | string | no | || success | boolean | no | |
3436
-
3437
- ---
3438
-
3439
- #### [PaginationSchema](#PaginationSchema)
3440
-
3441
- | Properties | Type | Nullable | Description |
3442
- | ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || item_total | number | no | || size | number | no | || type | string | no | |
3443
-
3444
- ---
3445
-
3446
- #### [PasswordLoginRequestSchema](#PasswordLoginRequestSchema)
3447
-
3448
- | Properties | Type | Nullable | Description |
3449
- | ---------- | ---- | -------- | ----------- || captcha_code | string | no | || password | string | no | || username | string | no | |
3450
-
3451
- ---
3452
-
3453
- #### [PhoneNumber](#PhoneNumber)
3454
-
3455
- | Properties | Type | Nullable | Description |
3456
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || country_code | number | no | || phone | string | no | || primary | boolean | no | || verified | boolean | no | |
3457
-
3458
- ---
3459
-
3460
- #### [PlatformEmail](#PlatformEmail)
3461
-
3462
- | Properties | Type | Nullable | Description |
3463
- | ---------- | ---- | -------- | ----------- || is_required | boolean | no | || level | string | no | |
3464
-
3465
- ---
3466
-
3467
- #### [PlatformMobile](#PlatformMobile)
3468
-
3469
- | Properties | Type | Nullable | Description |
3470
- | ---------- | ---- | -------- | ----------- || is_required | boolean | no | || level | string | no | |
3471
-
3472
- ---
3473
-
3474
- #### [PlatformSchema](#PlatformSchema)
3475
-
3476
- | Properties | Type | Nullable | Description |
3477
- | ---------- | ---- | -------- | ----------- || _id | string | no | || active | boolean | no | || created_at | string | no | || delete_account_consent | string | no | || delete_account_day | number | no | || delete_account_reasons | [[DeleteAccountReasons](#DeleteAccountReasons)] | no | || desktop_image | string | no | || display | string | no | || flash_card | [FlashCard](#FlashCard) | no | || forgot_password | boolean | no | || login | [Login](#Login) | no | || look_and_feel | [LookAndFeel](#LookAndFeel) | no | || meta | [MetaSchema](#MetaSchema) | no | || mobile_image | string | no | || name | string | no | || register | boolean | no | || register_required_fields | [RegisterRequiredFields](#RegisterRequiredFields) | no | || required_fields | [RequiredFields](#RequiredFields) | no | || session_config | string | no | || skip_captcha | boolean | no | || skip_login | boolean | no | || social | [Social](#Social) | no | || social_tokens | [SocialTokens](#SocialTokens) | no | || subtext | string | no | || updated_at | string | no | |
3478
-
3479
- ---
3480
-
3481
- #### [ProfileEditSuccess](#ProfileEditSuccess)
3482
-
3483
- | Properties | Type | Nullable | Description |
3484
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || email | string | no | || message | string | no | || mobile | string | no | || register_token | string | no | || request_id | string | no | || resend_email_token | string | no | || resend_timer | number | no | || resend_token | string | no | || success | boolean | no | || user | [UserSchema](#UserSchema) | no | || user_exists | boolean | no | || verify_email_link | boolean | no | || verify_email_otp | boolean | no | || verify_mobile_otp | boolean | no | |
3485
-
3486
- ---
3487
-
3488
- #### [ProfileEditSuccessSchema](#ProfileEditSuccessSchema)
3489
-
3490
- | Properties | Type | Nullable | Description |
3491
- | ---------- | ---- | -------- | ----------- || email | string | no | || register_token | string | no | || user | string | no | || user_exists | boolean | no | || verify_email_link | boolean | no | || verify_email_otp | boolean | no | || verify_mobile_otp | boolean | no | |
3492
-
3493
- ---
3494
-
3495
- #### [RegisterFormSuccess](#RegisterFormSuccess)
3496
-
3497
- | Properties | Type | Nullable | Description |
3498
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || email | string | no | || message | string | no | || mobile | string | no | || register_token | string | no | || request_id | string | no | || resend_email_token | string | no | || resend_timer | number | no | || resend_token | string | no | || success | boolean | no | || user_exists | boolean | no | || verify_email_otp | boolean | no | || verify_mobile_otp | boolean | no | |
3499
-
3500
- ---
3501
-
3502
- #### [RegisterRequiredFields](#RegisterRequiredFields)
3503
-
3504
- | Properties | Type | Nullable | Description |
3505
- | ---------- | ---- | -------- | ----------- || email | [RegisterRequiredFieldsEmail](#RegisterRequiredFieldsEmail) | no | || mobile | [RegisterRequiredFieldsMobile](#RegisterRequiredFieldsMobile) | no | |
3506
-
3507
- ---
3508
-
3509
- #### [RegisterRequiredFieldsEmail](#RegisterRequiredFieldsEmail)
3510
-
3511
- | Properties | Type | Nullable | Description |
3512
- | ---------- | ---- | -------- | ----------- || is_required | boolean | no | || level | string | no | |
3513
-
3514
- ---
3515
-
3516
- #### [RegisterRequiredFieldsMobile](#RegisterRequiredFieldsMobile)
3517
-
3518
- | Properties | Type | Nullable | Description |
3519
- | ---------- | ---- | -------- | ----------- || is_required | boolean | no | || level | string | no | |
3520
-
3521
- ---
3522
-
3523
- #### [RequiredFields](#RequiredFields)
3524
-
3525
- | Properties | Type | Nullable | Description |
3526
- | ---------- | ---- | -------- | ----------- || email | [PlatformEmail](#PlatformEmail) | no | || mobile | [PlatformMobile](#PlatformMobile) | no | |
3527
-
3528
- ---
3529
-
3530
- #### [ResetPasswordSuccess](#ResetPasswordSuccess)
3531
-
3532
- | Properties | Type | Nullable | Description |
3533
- | ---------- | ---- | -------- | ----------- || status | string | no | |
3534
-
3535
- ---
3536
-
3537
- #### [SendEmailOtpRequestSchema](#SendEmailOtpRequestSchema)
3538
-
3539
- | Properties | Type | Nullable | Description |
3540
- | ---------- | ---- | -------- | ----------- || action | string | no | || email | string | no | || register_token | string | no | || token | string | no | |
3541
-
3542
- ---
3543
-
3544
- #### [SendEmailVerifyLinkSuccess](#SendEmailVerifyLinkSuccess)
3545
-
3546
- | Properties | Type | Nullable | Description |
3547
- | ---------- | ---- | -------- | ----------- || verify_email_link | boolean | no | |
3548
-
3549
- ---
3550
-
3551
- #### [SendMobileOtpRequestSchema](#SendMobileOtpRequestSchema)
3552
-
3553
- | Properties | Type | Nullable | Description |
3554
- | ---------- | ---- | -------- | ----------- || action | string | no | || android_hash | string | no | || captcha_code | string | no | || country_code | string | no | || force | string | no | || mobile | string | no | || token | string | no | |
3555
-
3556
- ---
3557
-
3558
- #### [SendMobileVerifyLinkSuccess](#SendMobileVerifyLinkSuccess)
3559
-
3560
- | Properties | Type | Nullable | Description |
3561
- | ---------- | ---- | -------- | ----------- || verify_mobile_link | boolean | no | |
3562
-
3563
- ---
3564
-
3565
- #### [SendOtpRequestSchema](#SendOtpRequestSchema)
3566
-
3567
- | Properties | Type | Nullable | Description |
3568
- | ---------- | ---- | -------- | ----------- || android_hash | string | no | || captcha_code | string | no | || country_code | string | no | || mobile | string | no | |
3569
-
3570
- ---
3571
-
3572
- #### [SendOtpResponse](#SendOtpResponse)
3573
-
3574
- | Properties | Type | Nullable | Description |
3575
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || email | string | no | || message | string | no | || mobile | string | no | || register_token | string | no | || request_id | string | no | || resend_email_token | string | no | || resend_timer | number | no | || resend_token | string | no | || success | boolean | no | || user_exists | boolean | no | || verify_email_otp | boolean | no | || verify_mobile_otp | boolean | no | |
3576
-
3577
- ---
3578
-
3579
- #### [SendResetPasswordEmailRequestSchema](#SendResetPasswordEmailRequestSchema)
3580
-
3581
- | Properties | Type | Nullable | Description |
3582
- | ---------- | ---- | -------- | ----------- || captcha_code | string | no | || email | string | no | |
3583
-
3584
- ---
3585
-
3586
- #### [SendResetPasswordMobileRequestSchema](#SendResetPasswordMobileRequestSchema)
3587
-
3588
- | Properties | Type | Nullable | Description |
3589
- | ---------- | ---- | -------- | ----------- || captcha_code | string | no | || country_code | string | no | || mobile | string | no | |
3590
-
3591
- ---
3592
-
3593
- #### [SendVerificationLinkMobileRequestSchema](#SendVerificationLinkMobileRequestSchema)
3594
-
3595
- | Properties | Type | Nullable | Description |
3596
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || country_code | string | no | || phone | string | no | || primary | boolean | no | || verified | boolean | no | |
3597
-
3598
- ---
3599
-
3600
- #### [SessionDeleteResponseSchema](#SessionDeleteResponseSchema)
3601
-
3602
- | Properties | Type | Nullable | Description |
3603
- | ---------- | ---- | -------- | ----------- || items | [string] | no | |
3604
-
3605
- ---
3606
-
3607
- #### [SessionExpiry](#SessionExpiry)
3608
-
3609
- | Properties | Type | Nullable | Description |
3610
- | ---------- | ---- | -------- | ----------- || duration | number | no | || is_rolling | boolean | no | || type | string | no | |
3611
-
3612
- ---
3613
-
3614
- #### [SessionListResponseInfo](#SessionListResponseInfo)
3615
-
3616
- | Properties | Type | Nullable | Description |
3617
- | ---------- | ---- | -------- | ----------- || domain | string | no | || expire_in | string | no | || ip | string | no | || session_id | string | no | || user_agent | string | no | |
3618
-
3619
- ---
3620
-
3621
- #### [SessionListResponseSchema](#SessionListResponseSchema)
3622
-
3623
- | Properties | Type | Nullable | Description |
3624
- | ---------- | ---- | -------- | ----------- || items | [[SessionListResponseInfo](#SessionListResponseInfo)] | no | |
3625
-
3626
- ---
3627
-
3628
- #### [SessionListSuccess](#SessionListSuccess)
3629
-
3630
- | Properties | Type | Nullable | Description |
3631
- | ---------- | ---- | -------- | ----------- || sessions | [string] | no | |
3632
-
3633
- ---
3634
-
3635
- #### [Social](#Social)
3636
-
3637
- | Properties | Type | Nullable | Description |
3638
- | ---------- | ---- | -------- | ----------- || account_kit | boolean | no | || apple | boolean | no | || facebook | boolean | no | || google | boolean | no | |
3639
-
3640
- ---
3641
-
3642
- #### [SocialTokens](#SocialTokens)
3643
-
3644
- | Properties | Type | Nullable | Description |
3645
- | ---------- | ---- | -------- | ----------- || account_kit | [Accountkit](#Accountkit) | no | || facebook | [Facebook](#Facebook) | no | || google | [Google](#Google) | no | |
3646
-
3647
- ---
3648
-
3649
- #### [TokenRequestBodySchema](#TokenRequestBodySchema)
3650
-
3651
- | Properties | Type | Nullable | Description |
3652
- | ---------- | ---- | -------- | ----------- || token | string | no | |
3653
-
3654
- ---
3655
-
3656
- #### [UnauthenticatedSchema](#UnauthenticatedSchema)
3657
-
3658
- | Properties | Type | Nullable | Description |
3659
- | ---------- | ---- | -------- | ----------- || authenticated | boolean | no | |
3660
-
3661
- ---
3662
-
3663
- #### [UnauthorizedSchema](#UnauthorizedSchema)
3664
-
3665
- | Properties | Type | Nullable | Description |
3666
- | ---------- | ---- | -------- | ----------- || message | string | no | |
3667
-
3668
- ---
3669
-
3670
- #### [UnDeleteUserRequestSchema](#UnDeleteUserRequestSchema)
3671
-
3672
- | Properties | Type | Nullable | Description |
3673
- | ---------- | ---- | -------- | ----------- || reason | string | no | || reason_id | string | no | || user_id | string | no | |
3674
-
3675
- ---
3676
-
3677
- #### [UnDeleteUserSuccess](#UnDeleteUserSuccess)
3678
-
3679
- | Properties | Type | Nullable | Description |
3680
- | ---------- | ---- | -------- | ----------- || success | boolean | no | |
3681
-
3682
- ---
3683
-
3684
- #### [UpdatePasswordRequestSchema](#UpdatePasswordRequestSchema)
3685
-
3686
- | Properties | Type | Nullable | Description |
3687
- | ---------- | ---- | -------- | ----------- || new_password | string | no | || old_password | string | no | |
3688
-
3689
- ---
3690
-
3691
- #### [UpdateUserGroupSchema](#UpdateUserGroupSchema)
3692
-
3693
- | Properties | Type | Nullable | Description |
3694
- | ---------- | ---- | -------- | ----------- || description | string | no | || file_url | string | no | || name | string | no | |
3695
-
3696
- ---
3697
-
3698
- #### [UpdateUserRequestSchema](#UpdateUserRequestSchema)
3699
-
3700
- | Properties | Type | Nullable | Description |
3701
- | ---------- | ---- | -------- | ----------- || emails | [[UserEmails](#UserEmails)] | no | || external_id | string | no | || first_name | string | no | || gender | string | no | || last_name | string | no | || meta | string | no | || phone_numbers | [[UserPhoneNumbers](#UserPhoneNumbers)] | no | |
3702
-
3703
- ---
3704
-
3705
- #### [UserEmails](#UserEmails)
3706
-
3707
- | Properties | Type | Nullable | Description |
3708
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || email | string | no | || primary | boolean | no | || verified | boolean | no | |
3709
-
3710
- ---
3711
-
3712
- #### [UserGroupListResponseSchema](#UserGroupListResponseSchema)
3713
-
3714
- | Properties | Type | Nullable | Description |
3715
- | ---------- | ---- | -------- | ----------- || items | [[UserGroupResponseSchema](#UserGroupResponseSchema)] | no | || page | [PaginationSchema](#PaginationSchema) | no | |
3716
-
3717
- ---
3718
-
3719
- #### [UserGroupResponseSchema](#UserGroupResponseSchema)
3720
-
3721
- | Properties | Type | Nullable | Description |
3722
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || application_id | string | no | || created_at | string | no | || description | string | no | || file_url | string | no | || modified_at | string | no | || name | string | no | || status | string | no | || uid | number | no | |
3723
-
3724
- ---
3725
-
3726
- #### [UserObjectSchema](#UserObjectSchema)
3727
-
3728
- | Properties | Type | Nullable | Description |
3729
- | ---------- | ---- | -------- | ----------- || user | [UserSchema](#UserSchema) | no | |
3730
-
3731
- ---
3732
-
3733
- #### [UserPhoneNumbers](#UserPhoneNumbers)
3734
-
3735
- | Properties | Type | Nullable | Description |
3736
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || country_code | string | no | || phone | string | no | || primary | boolean | no | || verified | boolean | no | |
3737
-
3738
- ---
3739
-
3740
- #### [UserSchema](#UserSchema)
3741
-
3742
- | Properties | Type | Nullable | Description |
3743
- | ---------- | ---- | -------- | ----------- || _id | string | no | || account_type | string | no | || active | boolean | no | || application_id | string | no | || created_at | string | no | || dob | string | no | || emails | [[Email](#Email)] | no | || first_name | string | no | || gender | string | no | || last_name | string | no | || meta | string | no | || phone_numbers | [[PhoneNumber](#PhoneNumber)] | no | || profile_pic_url | string | no | || updated_at | string | no | || user_id | string | no | || username | string | no | |
3744
-
3745
- ---
3746
-
3747
- #### [UserSearchResponseSchema](#UserSearchResponseSchema)
3748
-
3749
- | Properties | Type | Nullable | Description |
3750
- | ---------- | ---- | -------- | ----------- || users | [[UserSchema](#UserSchema)] | no | |
3751
-
3752
- ---
3753
-
3754
- #### [VerifyEmailOtpRequestSchema](#VerifyEmailOtpRequestSchema)
3755
-
3756
- | Properties | Type | Nullable | Description |
3757
- | ---------- | ---- | -------- | ----------- || action | string | no | || email | string | no | || otp | string | no | || register_token | string | no | |
3758
-
3759
- ---
3760
-
3761
- #### [VerifyEmailOTPSuccess](#VerifyEmailOTPSuccess)
3762
-
3763
- | Properties | Type | Nullable | Description |
3764
- | ---------- | ---- | -------- | ----------- || user | [UserSchema](#UserSchema) | no | || verify_email_link | boolean | no | |
3765
-
3766
- ---
3767
-
3768
- #### [VerifyEmailSuccess](#VerifyEmailSuccess)
3769
-
3770
- | Properties | Type | Nullable | Description |
3771
- | ---------- | ---- | -------- | ----------- || message | string | no | |
3772
-
3773
- ---
3774
-
3775
- #### [VerifyMobileOTPSuccess](#VerifyMobileOTPSuccess)
3776
-
3777
- | Properties | Type | Nullable | Description |
3778
- | ---------- | ---- | -------- | ----------- || user | [UserSchema](#UserSchema) | no | || verify_mobile_link | boolean | no | |
3779
-
3780
- ---
3781
-
3782
- #### [VerifyOtpRequestSchema](#VerifyOtpRequestSchema)
3783
-
3784
- | Properties | Type | Nullable | Description |
3785
- | ---------- | ---- | -------- | ----------- || otp | string | no | || register_token | string | no | || request_id | string | no | |
3786
-
3787
- ---
3788
-
3789
- #### [VerifyOtpSuccess](#VerifyOtpSuccess)
3790
-
3791
- | Properties | Type | Nullable | Description |
3792
- | ---------- | ---- | -------- | ----------- || register_token | string | no | || user | [UserSchema](#UserSchema) | no | || user_exists | boolean | no | |
3793
-
3794
- ---
3795
-
3796
-
3797
-
3798
-