@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10

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 (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,670 +1,590 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef Accountkit
5
- * @property {string} [app_id]
4
+ * @typedef DeleteApplicationUserRequestSchema
5
+ * @property {string} [user_id]
6
+ * @property {string} [reason]
7
+ * @property {string} [reason_id]
8
+ * @property {string} [request_id]
9
+ * @property {string} [otp]
6
10
  */
7
11
 
8
12
  /**
9
- * @typedef APIError
10
- * @property {string} [code]
11
- * @property {string} [info] - Error code description link
12
- * @property {string} [message]
13
- * @property {Object} [meta]
14
- * @property {string} [request_id]
13
+ * @typedef EditEmailRequestSchema
14
+ * @property {string} [email]
15
15
  */
16
16
 
17
17
  /**
18
- * @typedef AuthenticationApiErrorSchema
19
- * @property {string} [message]
18
+ * @typedef SendVerificationLinkMobileRequestSchema
19
+ * @property {boolean} [verified]
20
+ * @property {boolean} [active]
21
+ * @property {string} [country_code]
22
+ * @property {string} [phone]
23
+ * @property {boolean} [primary]
20
24
  */
21
25
 
22
26
  /**
23
- * @typedef AuthenticationInternalServerErrorSchema
24
- * @property {string} [message]
27
+ * @typedef EditMobileRequestSchema
28
+ * @property {string} [country_code]
29
+ * @property {string} [phone]
25
30
  */
26
31
 
27
32
  /**
28
- * @typedef AuthSuccess
33
+ * @typedef EditProfileRequestSchema
34
+ * @property {string} [first_name]
35
+ * @property {string} [last_name]
36
+ * @property {EditProfileMobileSchema} [mobile]
37
+ * @property {string} [country_code]
38
+ * @property {string} [email]
39
+ * @property {string} [gender]
40
+ * @property {string} [dob]
41
+ * @property {string} [profile_pic_url]
42
+ * @property {string} [android_hash]
43
+ * @property {string} [sender]
29
44
  * @property {string} [register_token]
30
- * @property {UserSchema} [user]
31
- * @property {boolean} [user_exists]
32
45
  */
33
46
 
34
47
  /**
35
- * @typedef CodeRequestBodySchema
36
- * @property {string} [code]
48
+ * @typedef EditProfileMobileSchema
49
+ * @property {string} [phone]
50
+ * @property {string} [country_code]
37
51
  */
38
52
 
39
53
  /**
40
- * @typedef DeleteAccountConsent
41
- * @property {string} [consent_text]
54
+ * @typedef SendEmailOtpRequestSchema
55
+ * @property {string} [email]
56
+ * @property {string} [action]
57
+ * @property {string} [token]
58
+ * @property {string} [register_token]
59
+ * @property {string} [captcha_code]
42
60
  */
43
61
 
44
62
  /**
45
- * @typedef DeleteAccountReasons
46
- * @property {string} [reason_id]
47
- * @property {string} [reason_text]
48
- * @property {boolean} [show_text_area]
63
+ * @typedef SendEmailForgotOtpRequestSchema
64
+ * @property {string} [email]
65
+ * @property {string} [action]
66
+ * @property {string} [token]
49
67
  */
50
68
 
51
69
  /**
52
- * @typedef DeleteApplicationUserRequestSchema
70
+ * @typedef VerifyEmailOtpRequestSchema
71
+ * @property {string} [email]
72
+ * @property {string} [action]
73
+ * @property {string} [register_token]
53
74
  * @property {string} [otp]
54
- * @property {string} [reason]
55
- * @property {string} [reason_id]
56
- * @property {string} [request_id]
57
- * @property {string} [user_id]
58
75
  */
59
76
 
60
77
  /**
61
- * @typedef DeleteUserSuccess
62
- * @property {boolean} [success]
78
+ * @typedef VerifyEmailForgotOtpRequestSchema
79
+ * @property {string} [email]
80
+ * @property {string} [otp]
63
81
  */
64
82
 
65
83
  /**
66
- * @typedef EditEmailRequestSchema
67
- * @property {string} [email]
84
+ * @typedef VerifyOtpRequestSchema
85
+ * @property {string} [request_id]
86
+ * @property {string} [register_token]
87
+ * @property {string} [otp]
68
88
  */
69
89
 
70
90
  /**
71
- * @typedef EditMobileRequestSchema
72
- * @property {string} [country_code]
73
- * @property {string} [phone]
91
+ * @typedef VerifyMobileForgotOtpRequestSchema
92
+ * @property {string} [request_id]
93
+ * @property {string} [otp]
74
94
  */
75
95
 
76
96
  /**
77
- * @typedef EditProfileMobileSchema
97
+ * @typedef SendMobileOtpRequestSchema
98
+ * @property {string} [mobile]
78
99
  * @property {string} [country_code]
79
- * @property {string} [phone]
100
+ * @property {string} [action]
101
+ * @property {string} [token]
102
+ * @property {string} [android_hash]
103
+ * @property {string} [force]
104
+ * @property {string} [captcha_code]
80
105
  */
81
106
 
82
107
  /**
83
- * @typedef EditProfileRequestSchema
84
- * @property {string} [android_hash]
108
+ * @typedef SendMobileForgotOtpRequestSchema
109
+ * @property {string} [mobile]
85
110
  * @property {string} [country_code]
86
- * @property {string} [dob]
87
- * @property {string} [email]
111
+ * @property {string} [action]
112
+ * @property {string} [token]
113
+ * @property {string} [android_hash]
114
+ */
115
+
116
+ /**
117
+ * @typedef UpdatePasswordRequestSchema
118
+ * @property {string} [old_password]
119
+ * @property {string} [new_password]
120
+ */
121
+
122
+ /**
123
+ * @typedef FormRegisterRequestSchema
88
124
  * @property {string} [first_name]
89
- * @property {string} [gender]
90
125
  * @property {string} [last_name]
91
- * @property {EditProfileMobileSchema} [mobile]
92
- * @property {string} [profile_pic_url]
126
+ * @property {string} [gender]
127
+ * @property {string} [email]
128
+ * @property {string} [password]
129
+ * @property {FormRegisterRequestSchemaPhone} [phone]
93
130
  * @property {string} [register_token]
94
- * @property {string} [sender]
95
131
  */
96
132
 
97
133
  /**
98
- * @typedef Email
99
- * @property {boolean} [active]
100
- * @property {string} [email]
101
- * @property {boolean} [primary]
102
- * @property {boolean} [verified]
134
+ * @typedef TokenRequestBodySchema
135
+ * @property {string} [token]
103
136
  */
104
137
 
105
138
  /**
106
- * @typedef EmailOtpSuccess
107
- * @property {boolean} [success]
139
+ * @typedef ForgotPasswordRequestSchema
140
+ * @property {string} [code]
141
+ * @property {string} [password]
108
142
  */
109
143
 
110
144
  /**
111
- * @typedef Facebook
112
- * @property {string} [app_id]
145
+ * @typedef CodeRequestBodySchema
146
+ * @property {string} [code]
113
147
  */
114
148
 
115
149
  /**
116
- * @typedef FlashCard
117
- * @property {string} [background_color]
118
- * @property {string} [text]
119
- * @property {string} [text_color]
150
+ * @typedef SendResetPasswordEmailRequestSchema
151
+ * @property {string} [email]
152
+ * @property {string} [captcha_code]
120
153
  */
121
154
 
122
155
  /**
123
- * @typedef ForgotPasswordRequestSchema
124
- * @property {string} [code]
125
- * @property {string} [password]
156
+ * @typedef SendResetPasswordMobileRequestSchema
157
+ * @property {string} [country_code]
158
+ * @property {string} [mobile]
159
+ * @property {string} [captcha_code]
126
160
  */
127
161
 
128
162
  /**
129
- * @typedef FormRegisterRequestSchema
130
- * @property {string} [email]
131
- * @property {string} [first_name]
132
- * @property {string} [gender]
133
- * @property {string} [last_name]
163
+ * @typedef PasswordLoginRequestSchema
164
+ * @property {string} [captcha_code]
134
165
  * @property {string} [password]
135
- * @property {FormRegisterRequestSchemaPhone} [phone]
136
- * @property {string} [register_token]
166
+ * @property {string} [username]
137
167
  */
138
168
 
139
169
  /**
140
- * @typedef FormRegisterRequestSchemaPhone
170
+ * @typedef SendOtpRequestSchema
141
171
  * @property {string} [country_code]
172
+ * @property {string} [captcha_code]
142
173
  * @property {string} [mobile]
174
+ * @property {string} [android_hash]
143
175
  */
144
176
 
145
177
  /**
146
- * @typedef Google
147
- * @property {string} [app_id]
178
+ * @typedef OAuthRequestSchema
179
+ * @property {boolean} [is_signed_in]
180
+ * @property {OAuthRequestSchemaOauth2} [oauth2]
181
+ * @property {OAuthRequestSchemaProfile} [profile]
148
182
  */
149
183
 
150
184
  /**
151
- * @typedef HasPasswordSuccess
152
- * @property {boolean} [result]
185
+ * @typedef OAuthRequestAppleSchema
186
+ * @property {string} [user_identifier]
187
+ * @property {OAuthRequestAppleSchemaOauth} [oauth]
188
+ * @property {OAuthRequestAppleSchemaProfile} [profile]
153
189
  */
154
190
 
155
191
  /**
156
- * @typedef Login
157
- * @property {boolean} [otp]
158
- * @property {boolean} [password]
192
+ * @typedef UserObjectSchema
193
+ * @property {UserSchema} [user]
159
194
  */
160
195
 
161
196
  /**
162
- * @typedef LoginSuccess
197
+ * @typedef AuthSuccess
163
198
  * @property {string} [register_token]
164
- * @property {string} [request_id]
199
+ * @property {boolean} [user_exists]
165
200
  * @property {UserSchema} [user]
166
201
  */
167
202
 
168
203
  /**
169
- * @typedef LogoutSuccess
170
- * @property {boolean} [logout]
204
+ * @typedef SendOtpResponse
205
+ * @property {number} [resend_timer]
206
+ * @property {string} [resend_token]
207
+ * @property {boolean} [success]
208
+ * @property {string} [request_id]
209
+ * @property {string} [message]
210
+ * @property {string} [mobile]
211
+ * @property {string} [country_code]
212
+ * @property {string} [email]
213
+ * @property {string} [resend_email_token]
214
+ * @property {string} [register_token]
215
+ * @property {boolean} [verify_email_otp]
216
+ * @property {boolean} [verify_mobile_otp]
217
+ * @property {boolean} [user_exists]
171
218
  */
172
219
 
173
220
  /**
174
- * @typedef LookAndFeel
175
- * @property {string} [background_color]
176
- * @property {string} [card_position]
221
+ * @typedef ProfileEditSuccess
222
+ * @property {UserSchema} [user]
223
+ * @property {string} [register_token]
224
+ * @property {string} [resend_email_token]
225
+ * @property {boolean} [user_exists]
226
+ * @property {boolean} [verify_email_link]
227
+ * @property {boolean} [verify_email_otp]
228
+ * @property {boolean} [verify_mobile_otp]
229
+ * @property {string} [email]
230
+ * @property {string} [request_id]
231
+ * @property {string} [country_code]
232
+ * @property {string} [mobile]
233
+ * @property {boolean} [success]
234
+ * @property {string} [message]
235
+ * @property {number} [resend_timer]
236
+ * @property {string} [resend_token]
177
237
  */
178
238
 
179
239
  /**
180
- * @typedef MetaSchema
181
- * @property {boolean} [fynd_default]
240
+ * @typedef LoginSuccess
241
+ * @property {UserSchema} [user]
242
+ * @property {string} [request_id]
243
+ * @property {string} [register_token]
182
244
  */
183
245
 
184
246
  /**
185
- * @typedef OAuthRequestAppleSchema
186
- * @property {OAuthRequestAppleSchemaOauth} [oauth]
187
- * @property {OAuthRequestAppleSchemaProfile} [profile]
188
- * @property {string} [user_identifier]
247
+ * @typedef ResetForgotPasswordSuccess
248
+ * @property {boolean} [success]
189
249
  */
190
250
 
191
251
  /**
192
- * @typedef OAuthRequestAppleSchemaOauth
193
- * @property {string} [identity_token]
252
+ * @typedef VerifyOtpSuccess
253
+ * @property {UserSchema} [user]
254
+ * @property {boolean} [user_exists]
255
+ * @property {string} [register_token]
194
256
  */
195
257
 
196
258
  /**
197
- * @typedef OAuthRequestAppleSchemaProfile
198
- * @property {string} [first_name]
199
- * @property {string} [full_name]
200
- * @property {string} [last_name]
259
+ * @typedef VerifyForgotOtpSuccess
260
+ * @property {boolean} [success]
261
+ * @property {string} [forgot_token]
201
262
  */
202
263
 
203
264
  /**
204
- * @typedef OAuthRequestSchema
205
- * @property {boolean} [is_signed_in]
206
- * @property {OAuthRequestSchemaOauth2} [oauth2]
207
- * @property {OAuthRequestSchemaProfile} [profile]
265
+ * @typedef ResetPasswordSuccess
266
+ * @property {string} [status]
208
267
  */
209
268
 
210
269
  /**
211
- * @typedef OAuthRequestSchemaOauth2
212
- * @property {string} [access_token]
213
- * @property {number} [expiry]
214
- * @property {string} [refresh_token]
215
- */
216
-
217
- /**
218
- * @typedef OAuthRequestSchemaProfile
270
+ * @typedef RegisterFormSuccess
219
271
  * @property {string} [email]
220
- * @property {string} [first_name]
221
- * @property {string} [full_name]
222
- * @property {string} [id]
223
- * @property {string} [image]
224
- * @property {string} [last_name]
225
- */
226
-
227
- /**
228
- * @typedef OtpSuccess
229
- * @property {string} [country_code]
230
- * @property {string} [message]
231
- * @property {string} [mobile]
232
- * @property {string} [register_token]
233
- * @property {string} [request_id]
234
272
  * @property {number} [resend_timer]
235
273
  * @property {string} [resend_token]
274
+ * @property {string} [resend_email_token]
275
+ * @property {string} [register_token]
236
276
  * @property {boolean} [success]
277
+ * @property {string} [request_id]
278
+ * @property {string} [message]
279
+ * @property {string} [mobile]
280
+ * @property {string} [country_code]
281
+ * @property {boolean} [verify_email_otp]
282
+ * @property {boolean} [verify_mobile_otp]
283
+ * @property {boolean} [user_exists]
237
284
  */
238
285
 
239
286
  /**
240
- * @typedef PasswordLoginRequestSchema
241
- * @property {string} [password]
242
- * @property {string} [username]
243
- */
244
-
245
- /**
246
- * @typedef PhoneNumber
247
- * @property {boolean} [active]
248
- * @property {number} [country_code]
249
- * @property {string} [phone]
250
- * @property {boolean} [primary]
251
- * @property {boolean} [verified]
287
+ * @typedef VerifyEmailSuccess
288
+ * @property {string} [message]
252
289
  */
253
290
 
254
291
  /**
255
- * @typedef PlatformEmail
256
- * @property {boolean} [is_required]
257
- * @property {string} [level]
292
+ * @typedef HasPasswordSuccess
293
+ * @property {boolean} [result]
258
294
  */
259
295
 
260
296
  /**
261
- * @typedef PlatformMobile
262
- * @property {boolean} [is_required]
263
- * @property {string} [level]
297
+ * @typedef LogoutSuccess
298
+ * @property {boolean} [logout]
264
299
  */
265
300
 
266
301
  /**
267
- * @typedef PlatformSchema
268
- * @property {string} [_id]
269
- * @property {boolean} [active]
270
- * @property {string} [created_at]
271
- * @property {Object} [delete_account_consent]
272
- * @property {number} [delete_account_day]
273
- * @property {DeleteAccountReasons[]} [delete_account_reasons]
274
- * @property {string} [desktop_image]
275
- * @property {string} [display]
276
- * @property {FlashCard} [flash_card]
277
- * @property {boolean} [forgot_password]
278
- * @property {Login} [login]
279
- * @property {LookAndFeel} [look_and_feel]
280
- * @property {MetaSchema} [meta]
281
- * @property {string} [mobile_image]
282
- * @property {string} [name]
283
- * @property {boolean} [register]
284
- * @property {RegisterRequiredFields} [register_required_fields]
285
- * @property {RequiredFields} [required_fields]
286
- * @property {Object} [session_config]
287
- * @property {boolean} [skip_captcha]
288
- * @property {boolean} [skip_login]
289
- * @property {Social} [social]
290
- * @property {SocialTokens} [social_tokens]
291
- * @property {string} [subtext]
292
- * @property {string} [updated_at]
302
+ * @typedef DeleteUserSuccess
303
+ * @property {boolean} [success]
293
304
  */
294
305
 
295
306
  /**
296
- * @typedef ProfileEditSuccess
297
- * @property {string} [country_code]
298
- * @property {string} [email]
299
- * @property {string} [message]
300
- * @property {string} [mobile]
301
- * @property {string} [register_token]
302
- * @property {string} [request_id]
303
- * @property {string} [resend_email_token]
307
+ * @typedef OtpSuccess
304
308
  * @property {number} [resend_timer]
305
309
  * @property {string} [resend_token]
310
+ * @property {string} [register_token]
306
311
  * @property {boolean} [success]
307
- * @property {UserSchema} [user]
308
- * @property {boolean} [user_exists]
309
- * @property {boolean} [verify_email_link]
310
- * @property {boolean} [verify_email_otp]
311
- * @property {boolean} [verify_mobile_otp]
312
- */
313
-
314
- /**
315
- * @typedef RegisterFormSuccess
316
- * @property {string} [country_code]
317
- * @property {string} [email]
312
+ * @property {string} [request_id]
318
313
  * @property {string} [message]
319
314
  * @property {string} [mobile]
320
- * @property {string} [register_token]
321
- * @property {string} [request_id]
322
- * @property {string} [resend_email_token]
323
- * @property {number} [resend_timer]
324
- * @property {string} [resend_token]
325
- * @property {boolean} [success]
326
- * @property {boolean} [user_exists]
327
- * @property {boolean} [verify_email_otp]
328
- * @property {boolean} [verify_mobile_otp]
329
- */
330
-
331
- /**
332
- * @typedef RegisterRequiredFields
333
- * @property {RegisterRequiredFieldsEmail} [email]
334
- * @property {RegisterRequiredFieldsMobile} [mobile]
315
+ * @property {string} [country_code]
335
316
  */
336
317
 
337
318
  /**
338
- * @typedef RegisterRequiredFieldsEmail
339
- * @property {boolean} [is_required]
340
- * @property {string} [level]
319
+ * @typedef EmailOtpSuccess
320
+ * @property {boolean} [success]
341
321
  */
342
322
 
343
323
  /**
344
- * @typedef RegisterRequiredFieldsMobile
345
- * @property {boolean} [is_required]
346
- * @property {string} [level]
324
+ * @typedef SessionListSuccess
325
+ * @property {string[]} [sessions]
347
326
  */
348
327
 
349
328
  /**
350
- * @typedef RequiredFields
351
- * @property {PlatformEmail} [email]
352
- * @property {PlatformMobile} [mobile]
329
+ * @typedef VerifyMobileOTPSuccess
330
+ * @property {UserSchema} [user]
331
+ * @property {boolean} [verify_mobile_link]
353
332
  */
354
333
 
355
334
  /**
356
- * @typedef ResetForgotPasswordSuccess
357
- * @property {boolean} [success]
335
+ * @typedef VerifyEmailOTPSuccess
336
+ * @property {UserSchema} [user]
337
+ * @property {boolean} [verify_email_link]
358
338
  */
359
339
 
360
340
  /**
361
- * @typedef ResetPasswordSuccess
362
- * @property {string} [status]
341
+ * @typedef SendMobileVerifyLinkSuccess
342
+ * @property {boolean} [verify_mobile_link]
363
343
  */
364
344
 
365
345
  /**
366
- * @typedef SendEmailForgotOtpRequestSchema
367
- * @property {string} [action]
368
- * @property {string} [email]
369
- * @property {string} [token]
346
+ * @typedef SendEmailVerifyLinkSuccess
347
+ * @property {boolean} [verify_email_link]
370
348
  */
371
349
 
372
350
  /**
373
- * @typedef SendEmailOtpRequestSchema
374
- * @property {string} [action]
375
- * @property {string} [email]
376
- * @property {string} [register_token]
377
- * @property {string} [token]
351
+ * @typedef AuthenticationInternalServerErrorSchema
352
+ * @property {string} [message]
378
353
  */
379
354
 
380
355
  /**
381
- * @typedef SendEmailVerifyLinkSuccess
382
- * @property {boolean} [verify_email_link]
356
+ * @typedef AuthenticationApiErrorSchema
357
+ * @property {string} [message]
383
358
  */
384
359
 
385
360
  /**
386
- * @typedef SendMobileForgotOtpRequestSchema
387
- * @property {string} [action]
388
- * @property {string} [android_hash]
389
- * @property {string} [country_code]
390
- * @property {string} [mobile]
391
- * @property {string} [token]
361
+ * @typedef APIError
362
+ * @property {string} [code]
363
+ * @property {string} [message]
364
+ * @property {string} [info] - Error code description link
365
+ * @property {string} [request_id]
366
+ * @property {Object} [meta]
392
367
  */
393
368
 
394
369
  /**
395
- * @typedef SendMobileOtpRequestSchema
396
- * @property {string} [action]
397
- * @property {string} [android_hash]
370
+ * @typedef FormRegisterRequestSchemaPhone
398
371
  * @property {string} [country_code]
399
- * @property {string} [force]
400
372
  * @property {string} [mobile]
401
- * @property {string} [token]
402
373
  */
403
374
 
404
375
  /**
405
- * @typedef SendMobileVerifyLinkSuccess
406
- * @property {boolean} [verify_mobile_link]
376
+ * @typedef OAuthRequestSchemaOauth2
377
+ * @property {string} [access_token]
378
+ * @property {number} [expiry]
379
+ * @property {string} [refresh_token]
407
380
  */
408
381
 
409
382
  /**
410
- * @typedef SendOtpRequestSchema
411
- * @property {string} [android_hash]
412
- * @property {string} [country_code]
413
- * @property {string} [mobile]
383
+ * @typedef OAuthRequestSchemaProfile
384
+ * @property {string} [last_name]
385
+ * @property {string} [image]
386
+ * @property {string} [id]
387
+ * @property {string} [email]
388
+ * @property {string} [full_name]
389
+ * @property {string} [first_name]
414
390
  */
415
391
 
416
392
  /**
417
- * @typedef SendOtpResponse
418
- * @property {string} [country_code]
419
- * @property {string} [email]
420
- * @property {string} [message]
421
- * @property {string} [mobile]
422
- * @property {string} [register_token]
423
- * @property {string} [request_id]
424
- * @property {string} [resend_email_token]
425
- * @property {number} [resend_timer]
426
- * @property {string} [resend_token]
427
- * @property {boolean} [success]
428
- * @property {boolean} [user_exists]
429
- * @property {boolean} [verify_email_otp]
430
- * @property {boolean} [verify_mobile_otp]
393
+ * @typedef OAuthRequestAppleSchemaOauth
394
+ * @property {string} [identity_token]
431
395
  */
432
396
 
433
397
  /**
434
- * @typedef SendResetPasswordEmailRequestSchema
435
- * @property {string} [email]
398
+ * @typedef OAuthRequestAppleSchemaProfile
399
+ * @property {string} [last_name]
400
+ * @property {string} [full_name]
401
+ * @property {string} [first_name]
436
402
  */
437
403
 
438
404
  /**
439
- * @typedef SendResetPasswordMobileRequestSchema
440
- * @property {string} [country_code]
441
- * @property {string} [mobile]
405
+ * @typedef PlatformSchema
406
+ * @property {string} [display]
407
+ * @property {LookAndFeel} [look_and_feel]
408
+ * @property {string} [updated_at]
409
+ * @property {boolean} [active]
410
+ * @property {boolean} [forgot_password]
411
+ * @property {Login} [login]
412
+ * @property {boolean} [skip_captcha]
413
+ * @property {string} [name]
414
+ * @property {MetaSchema} [meta]
415
+ * @property {string} [_id]
416
+ * @property {Social} [social]
417
+ * @property {RequiredFields} [required_fields]
418
+ * @property {RegisterRequiredFields} [register_required_fields]
419
+ * @property {boolean} [skip_login]
420
+ * @property {FlashCard} [flash_card]
421
+ * @property {string} [subtext]
422
+ * @property {SocialTokens} [social_tokens]
423
+ * @property {string} [created_at]
424
+ * @property {boolean} [register]
425
+ * @property {string} [mobile_image]
426
+ * @property {string} [desktop_image]
427
+ * @property {number} [delete_account_day]
428
+ * @property {DeleteAccountReasons[]} [delete_account_reasons]
429
+ * @property {Object} [delete_account_consent]
430
+ * @property {Object} [session_config]
442
431
  */
443
432
 
444
433
  /**
445
- * @typedef SendVerificationLinkMobileRequestSchema
446
- * @property {boolean} [active]
447
- * @property {string} [country_code]
448
- * @property {string} [phone]
449
- * @property {boolean} [primary]
450
- * @property {boolean} [verified]
434
+ * @typedef LookAndFeel
435
+ * @property {string} [card_position]
436
+ * @property {string} [background_color]
451
437
  */
452
438
 
453
439
  /**
454
- * @typedef SessionExpiry
455
- * @property {number} [duration]
456
- * @property {boolean} [is_rolling]
457
- * @property {string} [type]
440
+ * @typedef Login
441
+ * @property {boolean} [password]
442
+ * @property {boolean} [otp]
458
443
  */
459
444
 
460
445
  /**
461
- * @typedef SessionListSuccess
462
- * @property {string[]} [sessions]
446
+ * @typedef MetaSchema
447
+ * @property {boolean} [fynd_default]
463
448
  */
464
449
 
465
450
  /**
466
451
  * @typedef Social
467
452
  * @property {boolean} [account_kit]
468
- * @property {boolean} [apple]
469
453
  * @property {boolean} [facebook]
470
454
  * @property {boolean} [google]
455
+ * @property {boolean} [apple]
471
456
  */
472
457
 
473
458
  /**
474
- * @typedef SocialTokens
475
- * @property {Accountkit} [account_kit]
476
- * @property {Facebook} [facebook]
477
- * @property {Google} [google]
478
- */
479
-
480
- /**
481
- * @typedef TokenRequestBodySchema
482
- * @property {string} [token]
483
- */
484
-
485
- /**
486
- * @typedef UpdatePasswordRequestSchema
487
- * @property {string} [new_password]
488
- * @property {string} [old_password]
459
+ * @typedef RequiredFields
460
+ * @property {PlatformEmail} [email]
461
+ * @property {PlatformMobile} [mobile]
489
462
  */
490
463
 
491
464
  /**
492
- * @typedef UpdateUserAttributesRequest
493
- * @property {Object} [attributes]
465
+ * @typedef PlatformEmail
466
+ * @property {boolean} [is_required]
467
+ * @property {string} [level]
494
468
  */
495
469
 
496
470
  /**
497
- * @typedef UserAttributes
498
- * @property {Object} [attributes]
471
+ * @typedef PlatformMobile
472
+ * @property {boolean} [is_required]
473
+ * @property {string} [level]
499
474
  */
500
475
 
501
476
  /**
502
- * @typedef UserExistsResponse
503
- * @property {boolean} [user_exists]
477
+ * @typedef RegisterRequiredFields
478
+ * @property {RegisterRequiredFieldsEmail} [email]
479
+ * @property {RegisterRequiredFieldsMobile} [mobile]
504
480
  */
505
481
 
506
482
  /**
507
- * @typedef UserObjectSchema
508
- * @property {UserSchema} [user]
483
+ * @typedef RegisterRequiredFieldsEmail
484
+ * @property {boolean} [is_required]
485
+ * @property {string} [level]
509
486
  */
510
487
 
511
488
  /**
512
- * @typedef UserSchema
513
- * @property {string} [_id]
514
- * @property {string} [account_type]
515
- * @property {boolean} [active]
516
- * @property {string} [application_id]
517
- * @property {string} [created_at]
518
- * @property {string} [dob]
519
- * @property {Email[]} [emails]
520
- * @property {string} [first_name]
521
- * @property {string} [gender]
522
- * @property {string} [last_name]
523
- * @property {Object} [meta]
524
- * @property {PhoneNumber[]} [phone_numbers]
525
- * @property {string} [profile_pic_url]
526
- * @property {string} [updated_at]
527
- * @property {string} [user_id]
528
- * @property {string} [username]
489
+ * @typedef RegisterRequiredFieldsMobile
490
+ * @property {boolean} [is_required]
491
+ * @property {string} [level]
529
492
  */
530
493
 
531
494
  /**
532
- * @typedef VerifyEmailForgotOtpRequestSchema
533
- * @property {string} [email]
534
- * @property {string} [otp]
495
+ * @typedef FlashCard
496
+ * @property {string} [text]
497
+ * @property {string} [text_color]
498
+ * @property {string} [background_color]
535
499
  */
536
500
 
537
501
  /**
538
- * @typedef VerifyEmailOtpRequestSchema
539
- * @property {string} [action]
540
- * @property {string} [email]
541
- * @property {string} [otp]
542
- * @property {string} [register_token]
502
+ * @typedef SocialTokens
503
+ * @property {Facebook} [facebook]
504
+ * @property {Accountkit} [account_kit]
505
+ * @property {Google} [google]
543
506
  */
544
507
 
545
508
  /**
546
- * @typedef VerifyEmailOTPSuccess
547
- * @property {UserSchema} [user]
548
- * @property {boolean} [verify_email_link]
509
+ * @typedef DeleteAccountReasons
510
+ * @property {string} [reason_text]
511
+ * @property {string} [reason_id]
512
+ * @property {boolean} [show_text_area]
549
513
  */
550
514
 
551
515
  /**
552
- * @typedef VerifyEmailSuccess
553
- * @property {string} [message]
516
+ * @typedef DeleteAccountConsent
517
+ * @property {string} [consent_text]
554
518
  */
555
519
 
556
520
  /**
557
- * @typedef VerifyForgotOtpSuccess
558
- * @property {string} [forgot_token]
559
- * @property {boolean} [success]
521
+ * @typedef Facebook
522
+ * @property {string} [app_id]
560
523
  */
561
524
 
562
525
  /**
563
- * @typedef VerifyMobileForgotOtpRequestSchema
564
- * @property {string} [otp]
565
- * @property {string} [request_id]
526
+ * @typedef Accountkit
527
+ * @property {string} [app_id]
566
528
  */
567
529
 
568
530
  /**
569
- * @typedef VerifyMobileOTPSuccess
570
- * @property {UserSchema} [user]
571
- * @property {boolean} [verify_mobile_link]
531
+ * @typedef Google
532
+ * @property {string} [app_id]
572
533
  */
573
534
 
574
535
  /**
575
- * @typedef VerifyOtpRequestSchema
576
- * @property {string} [otp]
577
- * @property {string} [register_token]
578
- * @property {string} [request_id]
536
+ * @typedef SessionExpiry
537
+ * @property {number} [duration]
538
+ * @property {string} [type]
539
+ * @property {boolean} [is_rolling]
579
540
  */
580
541
 
581
542
  /**
582
- * @typedef VerifyOtpSuccess
583
- * @property {string} [register_token]
584
- * @property {UserSchema} [user]
585
- * @property {boolean} [user_exists]
586
- */
587
-
588
- class UserApplicationModel {
589
- /** @returns {Accountkit} */
590
- static Accountkit() {
591
- return Joi.object({
592
- app_id: Joi.string().allow(""),
593
- });
594
- }
595
-
596
- /** @returns {APIError} */
597
- static APIError() {
598
- return Joi.object({
599
- code: Joi.string().allow(""),
600
- info: Joi.string().allow(""),
601
- message: Joi.string().allow(""),
602
- meta: Joi.any(),
603
- request_id: Joi.string().allow(""),
604
- });
605
- }
606
-
607
- /** @returns {AuthenticationApiErrorSchema} */
608
- static AuthenticationApiErrorSchema() {
609
- return Joi.object({
610
- message: Joi.string().allow(""),
611
- });
612
- }
613
-
614
- /** @returns {AuthenticationInternalServerErrorSchema} */
615
- static AuthenticationInternalServerErrorSchema() {
616
- return Joi.object({
617
- message: Joi.string().allow(""),
618
- });
619
- }
620
-
621
- /** @returns {AuthSuccess} */
622
- static AuthSuccess() {
623
- return Joi.object({
624
- register_token: Joi.string().allow(""),
625
- user: UserApplicationModel.UserSchema(),
626
- user_exists: Joi.boolean(),
627
- });
628
- }
629
-
630
- /** @returns {CodeRequestBodySchema} */
631
- static CodeRequestBodySchema() {
632
- return Joi.object({
633
- code: Joi.string().allow(""),
634
- });
635
- }
543
+ * @typedef UserSchema
544
+ * @property {string} [application_id]
545
+ * @property {string} [user_id]
546
+ * @property {string} [first_name]
547
+ * @property {Object} [meta]
548
+ * @property {string} [last_name]
549
+ * @property {PhoneNumber[]} [phone_numbers]
550
+ * @property {Email[]} [emails]
551
+ * @property {string} [gender]
552
+ * @property {string} [dob]
553
+ * @property {boolean} [active]
554
+ * @property {string} [profile_pic_url]
555
+ * @property {string} [username]
556
+ * @property {string} [account_type]
557
+ * @property {string} [_id]
558
+ * @property {string} [created_at]
559
+ * @property {string} [updated_at]
560
+ */
636
561
 
637
- /** @returns {DeleteAccountConsent} */
638
- static DeleteAccountConsent() {
639
- return Joi.object({
640
- consent_text: Joi.string().allow(""),
641
- });
642
- }
562
+ /**
563
+ * @typedef PhoneNumber
564
+ * @property {boolean} [active]
565
+ * @property {boolean} [primary]
566
+ * @property {boolean} [verified]
567
+ * @property {string} [phone]
568
+ * @property {number} [country_code]
569
+ */
643
570
 
644
- /** @returns {DeleteAccountReasons} */
645
- static DeleteAccountReasons() {
646
- return Joi.object({
647
- reason_id: Joi.string().allow(""),
648
- reason_text: Joi.string().allow(""),
649
- show_text_area: Joi.boolean(),
650
- });
651
- }
571
+ /**
572
+ * @typedef Email
573
+ * @property {boolean} [primary]
574
+ * @property {boolean} [verified]
575
+ * @property {string} [email]
576
+ * @property {boolean} [active]
577
+ */
652
578
 
579
+ class UserApplicationModel {
653
580
  /** @returns {DeleteApplicationUserRequestSchema} */
654
581
  static DeleteApplicationUserRequestSchema() {
655
582
  return Joi.object({
656
- otp: Joi.string().allow(""),
583
+ user_id: Joi.string().allow(""),
657
584
  reason: Joi.string().allow(""),
658
585
  reason_id: Joi.string().allow(""),
659
586
  request_id: Joi.string().allow(""),
660
- user_id: Joi.string().allow(""),
661
- });
662
- }
663
-
664
- /** @returns {DeleteUserSuccess} */
665
- static DeleteUserSuccess() {
666
- return Joi.object({
667
- success: Joi.boolean(),
587
+ otp: Joi.string().allow(""),
668
588
  });
669
589
  }
670
590
 
@@ -675,16 +595,19 @@ class UserApplicationModel {
675
595
  });
676
596
  }
677
597
 
678
- /** @returns {EditMobileRequestSchema} */
679
- static EditMobileRequestSchema() {
598
+ /** @returns {SendVerificationLinkMobileRequestSchema} */
599
+ static SendVerificationLinkMobileRequestSchema() {
680
600
  return Joi.object({
601
+ verified: Joi.boolean(),
602
+ active: Joi.boolean(),
681
603
  country_code: Joi.string().allow(""),
682
604
  phone: Joi.string().allow(""),
605
+ primary: Joi.boolean(),
683
606
  });
684
607
  }
685
608
 
686
- /** @returns {EditProfileMobileSchema} */
687
- static EditProfileMobileSchema() {
609
+ /** @returns {EditMobileRequestSchema} */
610
+ static EditMobileRequestSchema() {
688
611
  return Joi.object({
689
612
  country_code: Joi.string().allow(""),
690
613
  phone: Joi.string().allow(""),
@@ -694,157 +617,183 @@ class UserApplicationModel {
694
617
  /** @returns {EditProfileRequestSchema} */
695
618
  static EditProfileRequestSchema() {
696
619
  return Joi.object({
697
- android_hash: Joi.string().allow(""),
698
- country_code: Joi.string().allow(""),
699
- dob: Joi.string().allow(""),
700
- email: Joi.string().allow(""),
701
620
  first_name: Joi.string().allow(""),
702
- gender: Joi.string().allow(""),
703
621
  last_name: Joi.string().allow(""),
704
622
  mobile: UserApplicationModel.EditProfileMobileSchema(),
623
+ country_code: Joi.string().allow(""),
624
+ email: Joi.string().allow(""),
625
+ gender: Joi.string().allow(""),
626
+ dob: Joi.string().allow(""),
705
627
  profile_pic_url: Joi.string().allow(""),
706
- register_token: Joi.string().allow(""),
628
+ android_hash: Joi.string().allow(""),
707
629
  sender: Joi.string().allow(""),
630
+ register_token: Joi.string().allow(""),
708
631
  });
709
632
  }
710
633
 
711
- /** @returns {Email} */
712
- static Email() {
634
+ /** @returns {EditProfileMobileSchema} */
635
+ static EditProfileMobileSchema() {
713
636
  return Joi.object({
714
- active: Joi.boolean(),
715
- email: Joi.string().allow(""),
716
- primary: Joi.boolean(),
717
- verified: Joi.boolean(),
637
+ phone: Joi.string().allow(""),
638
+ country_code: Joi.string().allow(""),
718
639
  });
719
640
  }
720
641
 
721
- /** @returns {EmailOtpSuccess} */
722
- static EmailOtpSuccess() {
642
+ /** @returns {SendEmailOtpRequestSchema} */
643
+ static SendEmailOtpRequestSchema() {
723
644
  return Joi.object({
724
- success: Joi.boolean(),
645
+ email: Joi.string().allow(""),
646
+ action: Joi.string().allow(""),
647
+ token: Joi.string().allow(""),
648
+ register_token: Joi.string().allow(""),
649
+ captcha_code: Joi.string().allow(""),
725
650
  });
726
651
  }
727
652
 
728
- /** @returns {Facebook} */
729
- static Facebook() {
653
+ /** @returns {SendEmailForgotOtpRequestSchema} */
654
+ static SendEmailForgotOtpRequestSchema() {
730
655
  return Joi.object({
731
- app_id: Joi.string().allow(""),
656
+ email: Joi.string().allow(""),
657
+ action: Joi.string().allow(""),
658
+ token: Joi.string().allow(""),
732
659
  });
733
660
  }
734
661
 
735
- /** @returns {FlashCard} */
736
- static FlashCard() {
662
+ /** @returns {VerifyEmailOtpRequestSchema} */
663
+ static VerifyEmailOtpRequestSchema() {
737
664
  return Joi.object({
738
- background_color: Joi.string().allow(""),
739
- text: Joi.string().allow(""),
740
- text_color: Joi.string().allow(""),
665
+ email: Joi.string().allow(""),
666
+ action: Joi.string().allow(""),
667
+ register_token: Joi.string().allow(""),
668
+ otp: Joi.string().allow(""),
741
669
  });
742
670
  }
743
671
 
744
- /** @returns {ForgotPasswordRequestSchema} */
745
- static ForgotPasswordRequestSchema() {
672
+ /** @returns {VerifyEmailForgotOtpRequestSchema} */
673
+ static VerifyEmailForgotOtpRequestSchema() {
746
674
  return Joi.object({
747
- code: Joi.string().allow(""),
748
- password: Joi.string().allow(""),
675
+ email: Joi.string().allow(""),
676
+ otp: Joi.string().allow(""),
749
677
  });
750
678
  }
751
679
 
752
- /** @returns {FormRegisterRequestSchema} */
753
- static FormRegisterRequestSchema() {
680
+ /** @returns {VerifyOtpRequestSchema} */
681
+ static VerifyOtpRequestSchema() {
754
682
  return Joi.object({
755
- email: Joi.string().allow(""),
756
- first_name: Joi.string().allow(""),
757
- gender: Joi.string().allow(""),
758
- last_name: Joi.string().allow(""),
759
- password: Joi.string().allow(""),
760
- phone: UserApplicationModel.FormRegisterRequestSchemaPhone(),
683
+ request_id: Joi.string().allow(""),
761
684
  register_token: Joi.string().allow(""),
685
+ otp: Joi.string().allow(""),
762
686
  });
763
687
  }
764
688
 
765
- /** @returns {FormRegisterRequestSchemaPhone} */
766
- static FormRegisterRequestSchemaPhone() {
689
+ /** @returns {VerifyMobileForgotOtpRequestSchema} */
690
+ static VerifyMobileForgotOtpRequestSchema() {
767
691
  return Joi.object({
768
- country_code: Joi.string().allow(""),
769
- mobile: Joi.string().allow(""),
692
+ request_id: Joi.string().allow(""),
693
+ otp: Joi.string().allow(""),
770
694
  });
771
695
  }
772
696
 
773
- /** @returns {Google} */
774
- static Google() {
697
+ /** @returns {SendMobileOtpRequestSchema} */
698
+ static SendMobileOtpRequestSchema() {
775
699
  return Joi.object({
776
- app_id: Joi.string().allow(""),
700
+ mobile: Joi.string().allow(""),
701
+ country_code: Joi.string().allow(""),
702
+ action: Joi.string().allow(""),
703
+ token: Joi.string().allow(""),
704
+ android_hash: Joi.string().allow(""),
705
+ force: Joi.string().allow(""),
706
+ captcha_code: Joi.string().allow(""),
777
707
  });
778
708
  }
779
709
 
780
- /** @returns {HasPasswordSuccess} */
781
- static HasPasswordSuccess() {
710
+ /** @returns {SendMobileForgotOtpRequestSchema} */
711
+ static SendMobileForgotOtpRequestSchema() {
782
712
  return Joi.object({
783
- result: Joi.boolean(),
713
+ mobile: Joi.string().allow(""),
714
+ country_code: Joi.string().allow(""),
715
+ action: Joi.string().allow(""),
716
+ token: Joi.string().allow(""),
717
+ android_hash: Joi.string().allow(""),
784
718
  });
785
719
  }
786
720
 
787
- /** @returns {Login} */
788
- static Login() {
721
+ /** @returns {UpdatePasswordRequestSchema} */
722
+ static UpdatePasswordRequestSchema() {
789
723
  return Joi.object({
790
- otp: Joi.boolean(),
791
- password: Joi.boolean(),
724
+ old_password: Joi.string().allow(""),
725
+ new_password: Joi.string().allow(""),
792
726
  });
793
727
  }
794
728
 
795
- /** @returns {LoginSuccess} */
796
- static LoginSuccess() {
729
+ /** @returns {FormRegisterRequestSchema} */
730
+ static FormRegisterRequestSchema() {
797
731
  return Joi.object({
732
+ first_name: Joi.string().allow(""),
733
+ last_name: Joi.string().allow(""),
734
+ gender: Joi.string().allow(""),
735
+ email: Joi.string().allow(""),
736
+ password: Joi.string().allow(""),
737
+ phone: UserApplicationModel.FormRegisterRequestSchemaPhone(),
798
738
  register_token: Joi.string().allow(""),
799
- request_id: Joi.string().allow(""),
800
- user: UserApplicationModel.UserSchema(),
801
739
  });
802
740
  }
803
741
 
804
- /** @returns {LogoutSuccess} */
805
- static LogoutSuccess() {
742
+ /** @returns {TokenRequestBodySchema} */
743
+ static TokenRequestBodySchema() {
806
744
  return Joi.object({
807
- logout: Joi.boolean(),
745
+ token: Joi.string().allow(""),
808
746
  });
809
747
  }
810
748
 
811
- /** @returns {LookAndFeel} */
812
- static LookAndFeel() {
749
+ /** @returns {ForgotPasswordRequestSchema} */
750
+ static ForgotPasswordRequestSchema() {
813
751
  return Joi.object({
814
- background_color: Joi.string().allow(""),
815
- card_position: Joi.string().allow(""),
752
+ code: Joi.string().allow(""),
753
+ password: Joi.string().allow(""),
816
754
  });
817
755
  }
818
756
 
819
- /** @returns {MetaSchema} */
820
- static MetaSchema() {
757
+ /** @returns {CodeRequestBodySchema} */
758
+ static CodeRequestBodySchema() {
821
759
  return Joi.object({
822
- fynd_default: Joi.boolean(),
760
+ code: Joi.string().allow(""),
823
761
  });
824
762
  }
825
763
 
826
- /** @returns {OAuthRequestAppleSchema} */
827
- static OAuthRequestAppleSchema() {
764
+ /** @returns {SendResetPasswordEmailRequestSchema} */
765
+ static SendResetPasswordEmailRequestSchema() {
828
766
  return Joi.object({
829
- oauth: UserApplicationModel.OAuthRequestAppleSchemaOauth(),
830
- profile: UserApplicationModel.OAuthRequestAppleSchemaProfile(),
831
- user_identifier: Joi.string().allow(""),
767
+ email: Joi.string().allow(""),
768
+ captcha_code: Joi.string().allow(""),
832
769
  });
833
770
  }
834
771
 
835
- /** @returns {OAuthRequestAppleSchemaOauth} */
836
- static OAuthRequestAppleSchemaOauth() {
772
+ /** @returns {SendResetPasswordMobileRequestSchema} */
773
+ static SendResetPasswordMobileRequestSchema() {
837
774
  return Joi.object({
838
- identity_token: Joi.string().allow(""),
775
+ country_code: Joi.string().allow(""),
776
+ mobile: Joi.string().allow(""),
777
+ captcha_code: Joi.string().allow(""),
839
778
  });
840
779
  }
841
780
 
842
- /** @returns {OAuthRequestAppleSchemaProfile} */
843
- static OAuthRequestAppleSchemaProfile() {
781
+ /** @returns {PasswordLoginRequestSchema} */
782
+ static PasswordLoginRequestSchema() {
844
783
  return Joi.object({
845
- first_name: Joi.string().allow(""),
846
- full_name: Joi.string().allow(""),
847
- last_name: Joi.string().allow(""),
784
+ captcha_code: Joi.string().allow(""),
785
+ password: Joi.string().allow(""),
786
+ username: Joi.string().allow(""),
787
+ });
788
+ }
789
+
790
+ /** @returns {SendOtpRequestSchema} */
791
+ static SendOtpRequestSchema() {
792
+ return Joi.object({
793
+ country_code: Joi.string().allow(""),
794
+ captcha_code: Joi.string().allow(""),
795
+ mobile: Joi.string().allow(""),
796
+ android_hash: Joi.string().allow(""),
848
797
  });
849
798
  }
850
799
 
@@ -857,211 +806,206 @@ class UserApplicationModel {
857
806
  });
858
807
  }
859
808
 
860
- /** @returns {OAuthRequestSchemaOauth2} */
861
- static OAuthRequestSchemaOauth2() {
809
+ /** @returns {OAuthRequestAppleSchema} */
810
+ static OAuthRequestAppleSchema() {
862
811
  return Joi.object({
863
- access_token: Joi.string().allow(""),
864
- expiry: Joi.number(),
865
- refresh_token: Joi.string().allow(""),
812
+ user_identifier: Joi.string().allow(""),
813
+ oauth: UserApplicationModel.OAuthRequestAppleSchemaOauth(),
814
+ profile: UserApplicationModel.OAuthRequestAppleSchemaProfile(),
866
815
  });
867
816
  }
868
817
 
869
- /** @returns {OAuthRequestSchemaProfile} */
870
- static OAuthRequestSchemaProfile() {
818
+ /** @returns {UserObjectSchema} */
819
+ static UserObjectSchema() {
871
820
  return Joi.object({
872
- email: Joi.string().allow(""),
873
- first_name: Joi.string().allow(""),
874
- full_name: Joi.string().allow(""),
875
- id: Joi.string().allow(""),
876
- image: Joi.string().allow(""),
877
- last_name: Joi.string().allow(""),
821
+ user: UserApplicationModel.UserSchema(),
822
+ });
823
+ }
824
+
825
+ /** @returns {AuthSuccess} */
826
+ static AuthSuccess() {
827
+ return Joi.object({
828
+ register_token: Joi.string().allow(""),
829
+ user_exists: Joi.boolean(),
830
+ user: UserApplicationModel.UserSchema(),
878
831
  });
879
832
  }
880
833
 
881
- /** @returns {OtpSuccess} */
882
- static OtpSuccess() {
834
+ /** @returns {SendOtpResponse} */
835
+ static SendOtpResponse() {
883
836
  return Joi.object({
884
- country_code: Joi.string().allow(""),
837
+ resend_timer: Joi.number(),
838
+ resend_token: Joi.string().allow(""),
839
+ success: Joi.boolean(),
840
+ request_id: Joi.string().allow(""),
885
841
  message: Joi.string().allow(""),
886
842
  mobile: Joi.string().allow(""),
843
+ country_code: Joi.string().allow(""),
844
+ email: Joi.string().allow(""),
845
+ resend_email_token: Joi.string().allow(""),
846
+ register_token: Joi.string().allow(""),
847
+ verify_email_otp: Joi.boolean(),
848
+ verify_mobile_otp: Joi.boolean(),
849
+ user_exists: Joi.boolean(),
850
+ });
851
+ }
852
+
853
+ /** @returns {ProfileEditSuccess} */
854
+ static ProfileEditSuccess() {
855
+ return Joi.object({
856
+ user: UserApplicationModel.UserSchema(),
887
857
  register_token: Joi.string().allow(""),
858
+ resend_email_token: Joi.string().allow(""),
859
+ user_exists: Joi.boolean(),
860
+ verify_email_link: Joi.boolean(),
861
+ verify_email_otp: Joi.boolean(),
862
+ verify_mobile_otp: Joi.boolean(),
863
+ email: Joi.string().allow(""),
888
864
  request_id: Joi.string().allow(""),
865
+ country_code: Joi.string().allow(""),
866
+ mobile: Joi.string().allow(""),
867
+ success: Joi.boolean(),
868
+ message: Joi.string().allow(""),
889
869
  resend_timer: Joi.number(),
890
870
  resend_token: Joi.string().allow(""),
891
- success: Joi.boolean(),
892
871
  });
893
872
  }
894
873
 
895
- /** @returns {PasswordLoginRequestSchema} */
896
- static PasswordLoginRequestSchema() {
874
+ /** @returns {LoginSuccess} */
875
+ static LoginSuccess() {
897
876
  return Joi.object({
898
- password: Joi.string().allow(""),
899
- username: Joi.string().allow(""),
877
+ user: UserApplicationModel.UserSchema(),
878
+ request_id: Joi.string().allow(""),
879
+ register_token: Joi.string().allow(""),
900
880
  });
901
881
  }
902
882
 
903
- /** @returns {PhoneNumber} */
904
- static PhoneNumber() {
883
+ /** @returns {ResetForgotPasswordSuccess} */
884
+ static ResetForgotPasswordSuccess() {
905
885
  return Joi.object({
906
- active: Joi.boolean(),
907
- country_code: Joi.number(),
908
- phone: Joi.string().allow(""),
909
- primary: Joi.boolean(),
910
- verified: Joi.boolean(),
886
+ success: Joi.boolean(),
911
887
  });
912
888
  }
913
889
 
914
- /** @returns {PlatformEmail} */
915
- static PlatformEmail() {
890
+ /** @returns {VerifyOtpSuccess} */
891
+ static VerifyOtpSuccess() {
916
892
  return Joi.object({
917
- is_required: Joi.boolean(),
918
- level: Joi.string().allow(""),
893
+ user: UserApplicationModel.UserSchema(),
894
+ user_exists: Joi.boolean(),
895
+ register_token: Joi.string().allow(""),
919
896
  });
920
897
  }
921
898
 
922
- /** @returns {PlatformMobile} */
923
- static PlatformMobile() {
899
+ /** @returns {VerifyForgotOtpSuccess} */
900
+ static VerifyForgotOtpSuccess() {
924
901
  return Joi.object({
925
- is_required: Joi.boolean(),
926
- level: Joi.string().allow(""),
902
+ success: Joi.boolean(),
903
+ forgot_token: Joi.string().allow(""),
927
904
  });
928
905
  }
929
906
 
930
- /** @returns {PlatformSchema} */
931
- static PlatformSchema() {
907
+ /** @returns {ResetPasswordSuccess} */
908
+ static ResetPasswordSuccess() {
932
909
  return Joi.object({
933
- _id: Joi.string().allow(""),
934
- active: Joi.boolean(),
935
- created_at: Joi.string().allow(""),
936
- delete_account_consent: Joi.any(),
937
- delete_account_day: Joi.number(),
938
- delete_account_reasons: Joi.array().items(
939
- UserApplicationModel.DeleteAccountReasons()
940
- ),
941
- desktop_image: Joi.string().allow(""),
942
- display: Joi.string().allow(""),
943
- flash_card: UserApplicationModel.FlashCard(),
944
- forgot_password: Joi.boolean(),
945
- login: UserApplicationModel.Login(),
946
- look_and_feel: UserApplicationModel.LookAndFeel(),
947
- meta: UserApplicationModel.MetaSchema(),
948
- mobile_image: Joi.string().allow(""),
949
- name: Joi.string().allow(""),
950
- register: Joi.boolean(),
951
- register_required_fields: UserApplicationModel.RegisterRequiredFields(),
952
- required_fields: UserApplicationModel.RequiredFields(),
953
- session_config: Joi.any(),
954
- skip_captcha: Joi.boolean(),
955
- skip_login: Joi.boolean(),
956
- social: UserApplicationModel.Social(),
957
- social_tokens: UserApplicationModel.SocialTokens(),
958
- subtext: Joi.string().allow(""),
959
- updated_at: Joi.string().allow(""),
910
+ status: Joi.string().allow(""),
960
911
  });
961
912
  }
962
913
 
963
- /** @returns {ProfileEditSuccess} */
964
- static ProfileEditSuccess() {
914
+ /** @returns {RegisterFormSuccess} */
915
+ static RegisterFormSuccess() {
965
916
  return Joi.object({
966
- country_code: Joi.string().allow(""),
967
917
  email: Joi.string().allow(""),
968
- message: Joi.string().allow(""),
969
- mobile: Joi.string().allow(""),
970
- register_token: Joi.string().allow(""),
971
- request_id: Joi.string().allow(""),
972
- resend_email_token: Joi.string().allow(""),
973
918
  resend_timer: Joi.number(),
974
919
  resend_token: Joi.string().allow(""),
920
+ resend_email_token: Joi.string().allow(""),
921
+ register_token: Joi.string().allow(""),
975
922
  success: Joi.boolean(),
976
- user: UserApplicationModel.UserSchema(),
977
- user_exists: Joi.boolean(),
978
- verify_email_link: Joi.boolean(),
923
+ request_id: Joi.string().allow(""),
924
+ message: Joi.string().allow(""),
925
+ mobile: Joi.string().allow(""),
926
+ country_code: Joi.string().allow(""),
979
927
  verify_email_otp: Joi.boolean(),
980
928
  verify_mobile_otp: Joi.boolean(),
929
+ user_exists: Joi.boolean(),
981
930
  });
982
931
  }
983
932
 
984
- /** @returns {RegisterFormSuccess} */
985
- static RegisterFormSuccess() {
933
+ /** @returns {VerifyEmailSuccess} */
934
+ static VerifyEmailSuccess() {
986
935
  return Joi.object({
987
- country_code: Joi.string().allow(""),
988
- email: Joi.string().allow(""),
989
936
  message: Joi.string().allow(""),
990
- mobile: Joi.string().allow(""),
991
- register_token: Joi.string().allow(""),
992
- request_id: Joi.string().allow(""),
993
- resend_email_token: Joi.string().allow(""),
994
- resend_timer: Joi.number(),
995
- resend_token: Joi.string().allow(""),
996
- success: Joi.boolean(),
997
- user_exists: Joi.boolean(),
998
- verify_email_otp: Joi.boolean(),
999
- verify_mobile_otp: Joi.boolean(),
1000
937
  });
1001
938
  }
1002
939
 
1003
- /** @returns {RegisterRequiredFields} */
1004
- static RegisterRequiredFields() {
940
+ /** @returns {HasPasswordSuccess} */
941
+ static HasPasswordSuccess() {
1005
942
  return Joi.object({
1006
- email: UserApplicationModel.RegisterRequiredFieldsEmail(),
1007
- mobile: UserApplicationModel.RegisterRequiredFieldsMobile(),
943
+ result: Joi.boolean(),
1008
944
  });
1009
945
  }
1010
946
 
1011
- /** @returns {RegisterRequiredFieldsEmail} */
1012
- static RegisterRequiredFieldsEmail() {
947
+ /** @returns {LogoutSuccess} */
948
+ static LogoutSuccess() {
1013
949
  return Joi.object({
1014
- is_required: Joi.boolean(),
1015
- level: Joi.string().allow(""),
950
+ logout: Joi.boolean(),
1016
951
  });
1017
952
  }
1018
953
 
1019
- /** @returns {RegisterRequiredFieldsMobile} */
1020
- static RegisterRequiredFieldsMobile() {
954
+ /** @returns {DeleteUserSuccess} */
955
+ static DeleteUserSuccess() {
1021
956
  return Joi.object({
1022
- is_required: Joi.boolean(),
1023
- level: Joi.string().allow(""),
957
+ success: Joi.boolean(),
1024
958
  });
1025
959
  }
1026
960
 
1027
- /** @returns {RequiredFields} */
1028
- static RequiredFields() {
961
+ /** @returns {OtpSuccess} */
962
+ static OtpSuccess() {
1029
963
  return Joi.object({
1030
- email: UserApplicationModel.PlatformEmail(),
1031
- mobile: UserApplicationModel.PlatformMobile(),
964
+ resend_timer: Joi.number(),
965
+ resend_token: Joi.string().allow(""),
966
+ register_token: Joi.string().allow(""),
967
+ success: Joi.boolean(),
968
+ request_id: Joi.string().allow(""),
969
+ message: Joi.string().allow(""),
970
+ mobile: Joi.string().allow(""),
971
+ country_code: Joi.string().allow(""),
1032
972
  });
1033
973
  }
1034
974
 
1035
- /** @returns {ResetForgotPasswordSuccess} */
1036
- static ResetForgotPasswordSuccess() {
975
+ /** @returns {EmailOtpSuccess} */
976
+ static EmailOtpSuccess() {
1037
977
  return Joi.object({
1038
978
  success: Joi.boolean(),
1039
979
  });
1040
980
  }
1041
981
 
1042
- /** @returns {ResetPasswordSuccess} */
1043
- static ResetPasswordSuccess() {
982
+ /** @returns {SessionListSuccess} */
983
+ static SessionListSuccess() {
1044
984
  return Joi.object({
1045
- status: Joi.string().allow(""),
985
+ sessions: Joi.array().items(Joi.string().allow("")),
1046
986
  });
1047
987
  }
1048
988
 
1049
- /** @returns {SendEmailForgotOtpRequestSchema} */
1050
- static SendEmailForgotOtpRequestSchema() {
989
+ /** @returns {VerifyMobileOTPSuccess} */
990
+ static VerifyMobileOTPSuccess() {
1051
991
  return Joi.object({
1052
- action: Joi.string().allow(""),
1053
- email: Joi.string().allow(""),
1054
- token: Joi.string().allow(""),
992
+ user: UserApplicationModel.UserSchema(),
993
+ verify_mobile_link: Joi.boolean(),
1055
994
  });
1056
995
  }
1057
996
 
1058
- /** @returns {SendEmailOtpRequestSchema} */
1059
- static SendEmailOtpRequestSchema() {
997
+ /** @returns {VerifyEmailOTPSuccess} */
998
+ static VerifyEmailOTPSuccess() {
1060
999
  return Joi.object({
1061
- action: Joi.string().allow(""),
1062
- email: Joi.string().allow(""),
1063
- register_token: Joi.string().allow(""),
1064
- token: Joi.string().allow(""),
1000
+ user: UserApplicationModel.UserSchema(),
1001
+ verify_email_link: Joi.boolean(),
1002
+ });
1003
+ }
1004
+
1005
+ /** @returns {SendMobileVerifyLinkSuccess} */
1006
+ static SendMobileVerifyLinkSuccess() {
1007
+ return Joi.object({
1008
+ verify_mobile_link: Joi.boolean(),
1065
1009
  });
1066
1010
  }
1067
1011
 
@@ -1072,103 +1016,129 @@ class UserApplicationModel {
1072
1016
  });
1073
1017
  }
1074
1018
 
1075
- /** @returns {SendMobileForgotOtpRequestSchema} */
1076
- static SendMobileForgotOtpRequestSchema() {
1019
+ /** @returns {AuthenticationInternalServerErrorSchema} */
1020
+ static AuthenticationInternalServerErrorSchema() {
1077
1021
  return Joi.object({
1078
- action: Joi.string().allow(""),
1079
- android_hash: Joi.string().allow(""),
1080
- country_code: Joi.string().allow(""),
1081
- mobile: Joi.string().allow(""),
1082
- token: Joi.string().allow(""),
1022
+ message: Joi.string().allow(""),
1083
1023
  });
1084
1024
  }
1085
1025
 
1086
- /** @returns {SendMobileOtpRequestSchema} */
1087
- static SendMobileOtpRequestSchema() {
1026
+ /** @returns {AuthenticationApiErrorSchema} */
1027
+ static AuthenticationApiErrorSchema() {
1088
1028
  return Joi.object({
1089
- action: Joi.string().allow(""),
1090
- android_hash: Joi.string().allow(""),
1091
- country_code: Joi.string().allow(""),
1092
- force: Joi.string().allow(""),
1093
- mobile: Joi.string().allow(""),
1094
- token: Joi.string().allow(""),
1029
+ message: Joi.string().allow(""),
1095
1030
  });
1096
1031
  }
1097
1032
 
1098
- /** @returns {SendMobileVerifyLinkSuccess} */
1099
- static SendMobileVerifyLinkSuccess() {
1033
+ /** @returns {APIError} */
1034
+ static APIError() {
1100
1035
  return Joi.object({
1101
- verify_mobile_link: Joi.boolean(),
1036
+ code: Joi.string().allow(""),
1037
+ message: Joi.string().allow(""),
1038
+ info: Joi.string().allow(""),
1039
+ request_id: Joi.string().allow(""),
1040
+ meta: Joi.any(),
1102
1041
  });
1103
1042
  }
1104
1043
 
1105
- /** @returns {SendOtpRequestSchema} */
1106
- static SendOtpRequestSchema() {
1044
+ /** @returns {FormRegisterRequestSchemaPhone} */
1045
+ static FormRegisterRequestSchemaPhone() {
1107
1046
  return Joi.object({
1108
- android_hash: Joi.string().allow(""),
1109
1047
  country_code: Joi.string().allow(""),
1110
1048
  mobile: Joi.string().allow(""),
1111
1049
  });
1112
1050
  }
1113
1051
 
1114
- /** @returns {SendOtpResponse} */
1115
- static SendOtpResponse() {
1052
+ /** @returns {OAuthRequestSchemaOauth2} */
1053
+ static OAuthRequestSchemaOauth2() {
1054
+ return Joi.object({
1055
+ access_token: Joi.string().allow(""),
1056
+ expiry: Joi.number(),
1057
+ refresh_token: Joi.string().allow(""),
1058
+ });
1059
+ }
1060
+
1061
+ /** @returns {OAuthRequestSchemaProfile} */
1062
+ static OAuthRequestSchemaProfile() {
1116
1063
  return Joi.object({
1117
- country_code: Joi.string().allow(""),
1064
+ last_name: Joi.string().allow(""),
1065
+ image: Joi.string().allow(""),
1066
+ id: Joi.string().allow(""),
1118
1067
  email: Joi.string().allow(""),
1119
- message: Joi.string().allow(""),
1120
- mobile: Joi.string().allow(""),
1121
- register_token: Joi.string().allow(""),
1122
- request_id: Joi.string().allow(""),
1123
- resend_email_token: Joi.string().allow(""),
1124
- resend_timer: Joi.number(),
1125
- resend_token: Joi.string().allow(""),
1126
- success: Joi.boolean(),
1127
- user_exists: Joi.boolean(),
1128
- verify_email_otp: Joi.boolean(),
1129
- verify_mobile_otp: Joi.boolean(),
1068
+ full_name: Joi.string().allow(""),
1069
+ first_name: Joi.string().allow(""),
1130
1070
  });
1131
1071
  }
1132
1072
 
1133
- /** @returns {SendResetPasswordEmailRequestSchema} */
1134
- static SendResetPasswordEmailRequestSchema() {
1073
+ /** @returns {OAuthRequestAppleSchemaOauth} */
1074
+ static OAuthRequestAppleSchemaOauth() {
1135
1075
  return Joi.object({
1136
- email: Joi.string().allow(""),
1076
+ identity_token: Joi.string().allow(""),
1137
1077
  });
1138
1078
  }
1139
1079
 
1140
- /** @returns {SendResetPasswordMobileRequestSchema} */
1141
- static SendResetPasswordMobileRequestSchema() {
1080
+ /** @returns {OAuthRequestAppleSchemaProfile} */
1081
+ static OAuthRequestAppleSchemaProfile() {
1142
1082
  return Joi.object({
1143
- country_code: Joi.string().allow(""),
1144
- mobile: Joi.string().allow(""),
1083
+ last_name: Joi.string().allow(""),
1084
+ full_name: Joi.string().allow(""),
1085
+ first_name: Joi.string().allow(""),
1145
1086
  });
1146
1087
  }
1147
1088
 
1148
- /** @returns {SendVerificationLinkMobileRequestSchema} */
1149
- static SendVerificationLinkMobileRequestSchema() {
1089
+ /** @returns {PlatformSchema} */
1090
+ static PlatformSchema() {
1150
1091
  return Joi.object({
1092
+ display: Joi.string().allow(""),
1093
+ look_and_feel: UserApplicationModel.LookAndFeel(),
1094
+ updated_at: Joi.string().allow(""),
1151
1095
  active: Joi.boolean(),
1152
- country_code: Joi.string().allow(""),
1153
- phone: Joi.string().allow(""),
1154
- primary: Joi.boolean(),
1155
- verified: Joi.boolean(),
1096
+ forgot_password: Joi.boolean(),
1097
+ login: UserApplicationModel.Login(),
1098
+ skip_captcha: Joi.boolean(),
1099
+ name: Joi.string().allow(""),
1100
+ meta: UserApplicationModel.MetaSchema(),
1101
+ _id: Joi.string().allow(""),
1102
+ social: UserApplicationModel.Social(),
1103
+ required_fields: UserApplicationModel.RequiredFields(),
1104
+ register_required_fields: UserApplicationModel.RegisterRequiredFields(),
1105
+ skip_login: Joi.boolean(),
1106
+ flash_card: UserApplicationModel.FlashCard(),
1107
+ subtext: Joi.string().allow(""),
1108
+ social_tokens: UserApplicationModel.SocialTokens(),
1109
+ created_at: Joi.string().allow(""),
1110
+ register: Joi.boolean(),
1111
+ mobile_image: Joi.string().allow(""),
1112
+ desktop_image: Joi.string().allow(""),
1113
+ delete_account_day: Joi.number(),
1114
+ delete_account_reasons: Joi.array().items(
1115
+ UserApplicationModel.DeleteAccountReasons()
1116
+ ),
1117
+ delete_account_consent: Joi.any(),
1118
+ session_config: Joi.any(),
1156
1119
  });
1157
1120
  }
1158
1121
 
1159
- /** @returns {SessionExpiry} */
1160
- static SessionExpiry() {
1122
+ /** @returns {LookAndFeel} */
1123
+ static LookAndFeel() {
1161
1124
  return Joi.object({
1162
- duration: Joi.number(),
1163
- is_rolling: Joi.boolean(),
1164
- type: Joi.string().allow(""),
1125
+ card_position: Joi.string().allow(""),
1126
+ background_color: Joi.string().allow(""),
1165
1127
  });
1166
1128
  }
1167
1129
 
1168
- /** @returns {SessionListSuccess} */
1169
- static SessionListSuccess() {
1130
+ /** @returns {Login} */
1131
+ static Login() {
1170
1132
  return Joi.object({
1171
- sessions: Joi.array().items(Joi.string().allow("")),
1133
+ password: Joi.boolean(),
1134
+ otp: Joi.boolean(),
1135
+ });
1136
+ }
1137
+
1138
+ /** @returns {MetaSchema} */
1139
+ static MetaSchema() {
1140
+ return Joi.object({
1141
+ fynd_default: Joi.boolean(),
1172
1142
  });
1173
1143
  }
1174
1144
 
@@ -1176,158 +1146,164 @@ class UserApplicationModel {
1176
1146
  static Social() {
1177
1147
  return Joi.object({
1178
1148
  account_kit: Joi.boolean(),
1179
- apple: Joi.boolean(),
1180
1149
  facebook: Joi.boolean(),
1181
1150
  google: Joi.boolean(),
1151
+ apple: Joi.boolean(),
1182
1152
  });
1183
1153
  }
1184
1154
 
1185
- /** @returns {SocialTokens} */
1186
- static SocialTokens() {
1155
+ /** @returns {RequiredFields} */
1156
+ static RequiredFields() {
1187
1157
  return Joi.object({
1188
- account_kit: UserApplicationModel.Accountkit(),
1189
- facebook: UserApplicationModel.Facebook(),
1190
- google: UserApplicationModel.Google(),
1158
+ email: UserApplicationModel.PlatformEmail(),
1159
+ mobile: UserApplicationModel.PlatformMobile(),
1191
1160
  });
1192
1161
  }
1193
1162
 
1194
- /** @returns {TokenRequestBodySchema} */
1195
- static TokenRequestBodySchema() {
1163
+ /** @returns {PlatformEmail} */
1164
+ static PlatformEmail() {
1196
1165
  return Joi.object({
1197
- token: Joi.string().allow(""),
1166
+ is_required: Joi.boolean(),
1167
+ level: Joi.string().allow(""),
1198
1168
  });
1199
1169
  }
1200
1170
 
1201
- /** @returns {UpdatePasswordRequestSchema} */
1202
- static UpdatePasswordRequestSchema() {
1171
+ /** @returns {PlatformMobile} */
1172
+ static PlatformMobile() {
1203
1173
  return Joi.object({
1204
- new_password: Joi.string().allow(""),
1205
- old_password: Joi.string().allow(""),
1174
+ is_required: Joi.boolean(),
1175
+ level: Joi.string().allow(""),
1206
1176
  });
1207
1177
  }
1208
1178
 
1209
- /** @returns {UpdateUserAttributesRequest} */
1210
- static UpdateUserAttributesRequest() {
1179
+ /** @returns {RegisterRequiredFields} */
1180
+ static RegisterRequiredFields() {
1211
1181
  return Joi.object({
1212
- attributes: Joi.any(),
1182
+ email: UserApplicationModel.RegisterRequiredFieldsEmail(),
1183
+ mobile: UserApplicationModel.RegisterRequiredFieldsMobile(),
1213
1184
  });
1214
1185
  }
1215
1186
 
1216
- /** @returns {UserAttributes} */
1217
- static UserAttributes() {
1187
+ /** @returns {RegisterRequiredFieldsEmail} */
1188
+ static RegisterRequiredFieldsEmail() {
1218
1189
  return Joi.object({
1219
- attributes: Joi.any(),
1190
+ is_required: Joi.boolean(),
1191
+ level: Joi.string().allow(""),
1220
1192
  });
1221
1193
  }
1222
1194
 
1223
- /** @returns {UserExistsResponse} */
1224
- static UserExistsResponse() {
1195
+ /** @returns {RegisterRequiredFieldsMobile} */
1196
+ static RegisterRequiredFieldsMobile() {
1225
1197
  return Joi.object({
1226
- user_exists: Joi.boolean(),
1198
+ is_required: Joi.boolean(),
1199
+ level: Joi.string().allow(""),
1227
1200
  });
1228
1201
  }
1229
1202
 
1230
- /** @returns {UserObjectSchema} */
1231
- static UserObjectSchema() {
1203
+ /** @returns {FlashCard} */
1204
+ static FlashCard() {
1232
1205
  return Joi.object({
1233
- user: UserApplicationModel.UserSchema(),
1206
+ text: Joi.string().allow(""),
1207
+ text_color: Joi.string().allow(""),
1208
+ background_color: Joi.string().allow(""),
1234
1209
  });
1235
1210
  }
1236
1211
 
1237
- /** @returns {UserSchema} */
1238
- static UserSchema() {
1212
+ /** @returns {SocialTokens} */
1213
+ static SocialTokens() {
1239
1214
  return Joi.object({
1240
- _id: Joi.string().allow(""),
1241
- account_type: Joi.string().allow(""),
1242
- active: Joi.boolean(),
1243
- application_id: Joi.string().allow(""),
1244
- created_at: Joi.string().allow(""),
1245
- dob: Joi.string().allow(""),
1246
- emails: Joi.array().items(UserApplicationModel.Email()),
1247
- first_name: Joi.string().allow(""),
1248
- gender: Joi.string().allow(""),
1249
- last_name: Joi.string().allow(""),
1250
- meta: Joi.any(),
1251
- phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()),
1252
- profile_pic_url: Joi.string().allow(""),
1253
- updated_at: Joi.string().allow(""),
1254
- user_id: Joi.string().allow(""),
1255
- username: Joi.string().allow(""),
1215
+ facebook: UserApplicationModel.Facebook(),
1216
+ account_kit: UserApplicationModel.Accountkit(),
1217
+ google: UserApplicationModel.Google(),
1256
1218
  });
1257
1219
  }
1258
1220
 
1259
- /** @returns {VerifyEmailForgotOtpRequestSchema} */
1260
- static VerifyEmailForgotOtpRequestSchema() {
1221
+ /** @returns {DeleteAccountReasons} */
1222
+ static DeleteAccountReasons() {
1261
1223
  return Joi.object({
1262
- email: Joi.string().allow(""),
1263
- otp: Joi.string().allow(""),
1224
+ reason_text: Joi.string().allow(""),
1225
+ reason_id: Joi.string().allow(""),
1226
+ show_text_area: Joi.boolean(),
1264
1227
  });
1265
1228
  }
1266
1229
 
1267
- /** @returns {VerifyEmailOtpRequestSchema} */
1268
- static VerifyEmailOtpRequestSchema() {
1230
+ /** @returns {DeleteAccountConsent} */
1231
+ static DeleteAccountConsent() {
1269
1232
  return Joi.object({
1270
- action: Joi.string().allow(""),
1271
- email: Joi.string().allow(""),
1272
- otp: Joi.string().allow(""),
1273
- register_token: Joi.string().allow(""),
1233
+ consent_text: Joi.string().allow(""),
1274
1234
  });
1275
1235
  }
1276
1236
 
1277
- /** @returns {VerifyEmailOTPSuccess} */
1278
- static VerifyEmailOTPSuccess() {
1237
+ /** @returns {Facebook} */
1238
+ static Facebook() {
1279
1239
  return Joi.object({
1280
- user: UserApplicationModel.UserSchema(),
1281
- verify_email_link: Joi.boolean(),
1240
+ app_id: Joi.string().allow(""),
1282
1241
  });
1283
1242
  }
1284
1243
 
1285
- /** @returns {VerifyEmailSuccess} */
1286
- static VerifyEmailSuccess() {
1244
+ /** @returns {Accountkit} */
1245
+ static Accountkit() {
1287
1246
  return Joi.object({
1288
- message: Joi.string().allow(""),
1247
+ app_id: Joi.string().allow(""),
1289
1248
  });
1290
1249
  }
1291
1250
 
1292
- /** @returns {VerifyForgotOtpSuccess} */
1293
- static VerifyForgotOtpSuccess() {
1251
+ /** @returns {Google} */
1252
+ static Google() {
1294
1253
  return Joi.object({
1295
- forgot_token: Joi.string().allow(""),
1296
- success: Joi.boolean(),
1254
+ app_id: Joi.string().allow(""),
1297
1255
  });
1298
1256
  }
1299
1257
 
1300
- /** @returns {VerifyMobileForgotOtpRequestSchema} */
1301
- static VerifyMobileForgotOtpRequestSchema() {
1258
+ /** @returns {SessionExpiry} */
1259
+ static SessionExpiry() {
1302
1260
  return Joi.object({
1303
- otp: Joi.string().allow(""),
1304
- request_id: Joi.string().allow(""),
1261
+ duration: Joi.number(),
1262
+ type: Joi.string().allow(""),
1263
+ is_rolling: Joi.boolean(),
1305
1264
  });
1306
1265
  }
1307
1266
 
1308
- /** @returns {VerifyMobileOTPSuccess} */
1309
- static VerifyMobileOTPSuccess() {
1267
+ /** @returns {UserSchema} */
1268
+ static UserSchema() {
1310
1269
  return Joi.object({
1311
- user: UserApplicationModel.UserSchema(),
1312
- verify_mobile_link: Joi.boolean(),
1270
+ application_id: Joi.string().allow(""),
1271
+ user_id: Joi.string().allow(""),
1272
+ first_name: Joi.string().allow(""),
1273
+ meta: Joi.any(),
1274
+ last_name: Joi.string().allow(""),
1275
+ phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()),
1276
+ emails: Joi.array().items(UserApplicationModel.Email()),
1277
+ gender: Joi.string().allow(""),
1278
+ dob: Joi.string().allow(""),
1279
+ active: Joi.boolean(),
1280
+ profile_pic_url: Joi.string().allow(""),
1281
+ username: Joi.string().allow(""),
1282
+ account_type: Joi.string().allow(""),
1283
+ _id: Joi.string().allow(""),
1284
+ created_at: Joi.string().allow(""),
1285
+ updated_at: Joi.string().allow(""),
1313
1286
  });
1314
1287
  }
1315
1288
 
1316
- /** @returns {VerifyOtpRequestSchema} */
1317
- static VerifyOtpRequestSchema() {
1289
+ /** @returns {PhoneNumber} */
1290
+ static PhoneNumber() {
1318
1291
  return Joi.object({
1319
- otp: Joi.string().allow(""),
1320
- register_token: Joi.string().allow(""),
1321
- request_id: Joi.string().allow(""),
1292
+ active: Joi.boolean(),
1293
+ primary: Joi.boolean(),
1294
+ verified: Joi.boolean(),
1295
+ phone: Joi.string().allow(""),
1296
+ country_code: Joi.number(),
1322
1297
  });
1323
1298
  }
1324
1299
 
1325
- /** @returns {VerifyOtpSuccess} */
1326
- static VerifyOtpSuccess() {
1300
+ /** @returns {Email} */
1301
+ static Email() {
1327
1302
  return Joi.object({
1328
- register_token: Joi.string().allow(""),
1329
- user: UserApplicationModel.UserSchema(),
1330
- user_exists: Joi.boolean(),
1303
+ primary: Joi.boolean(),
1304
+ verified: Joi.boolean(),
1305
+ email: Joi.string().allow(""),
1306
+ active: Joi.boolean(),
1331
1307
  });
1332
1308
  }
1333
1309
  }