@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9

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 (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  111. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
  113. package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/PublicClient.d.ts +0 -4
  175. package/sdk/public/PublicClient.js +0 -8
  176. package/sdk/public/index.d.ts +0 -2
  177. package/sdk/public/index.js +0 -4
  178. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
  179. package/sdk/public/Billing/BillingPublicClient.js +0 -269
  180. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
  181. package/sdk/public/Billing/BillingPublicModel.js +0 -395
  182. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
  183. package/sdk/public/Billing/BillingPublicValidator.js +0 -38
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -1,169 +1,172 @@
1
1
  export = UserApplicationModel;
2
2
  /**
3
3
  * @typedef UpdateUserAttributesRequest
4
- * @property {Object} [attributes]
4
+ * @property {Object} [attributes] - Describes the request structure to update
5
+ * the user attribute.
5
6
  */
6
7
  /**
7
8
  * @typedef UserAttributes
8
- * @property {Object} [attributes]
9
+ * @property {Object} [attributes] - Describes the structure of user attribute.
9
10
  */
10
11
  /**
11
12
  * @typedef DeleteApplicationUserRequestSchema
12
- * @property {string} [user_id]
13
- * @property {string} [reason]
14
- * @property {string} [reason_id]
15
- * @property {string} [request_id]
16
- * @property {string} [otp]
13
+ * @property {string} [user_id] - User id for the application user.
14
+ * @property {string} [reason] - Reason to delete the application user.
15
+ * @property {string} [reason_id] - Reason id of request to delete the application user .
16
+ * @property {string} [request_id] - ID of request to delete the application user .
17
+ * @property {string} [otp] - OTP to verify the delete application user request.
17
18
  */
18
19
  /**
19
20
  * @typedef EditEmailRequestSchema
20
- * @property {string} [email]
21
+ * @property {string} [email] - Email of the user.
21
22
  */
22
23
  /**
23
24
  * @typedef SendVerificationLinkMobileRequestSchema
24
- * @property {boolean} [verified]
25
- * @property {boolean} [active]
26
- * @property {string} [country_code]
27
- * @property {string} [phone]
28
- * @property {boolean} [primary]
25
+ * @property {boolean} [verified] - Boolean to specify if the phone number is
26
+ * verified or not.
27
+ * @property {boolean} [active] - Boolean to specify if the phone number is active or not.
28
+ * @property {string} [country_code] - Country code for the phone number.
29
+ * @property {string} [phone] - Phone number.
30
+ * @property {boolean} [primary] - Boolean to specify if the phone number is
31
+ * primary or not.
29
32
  */
30
33
  /**
31
34
  * @typedef EditMobileRequestSchema
32
- * @property {string} [country_code]
33
- * @property {string} [phone]
35
+ * @property {string} [country_code] - Country code for the phone number.
36
+ * @property {string} [phone] - Phone number of user.
34
37
  */
35
38
  /**
36
39
  * @typedef EditProfileRequestSchema
37
40
  * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
38
- * @property {string} [first_name]
39
- * @property {string} [last_name]
41
+ * @property {string} [first_name] - First name of the application user.
42
+ * @property {string} [last_name] - Last name of the application user.
40
43
  * @property {EditProfileMobileSchema} [mobile]
41
- * @property {string} [country_code]
42
- * @property {string} [email]
43
- * @property {string} [gender]
44
- * @property {string} [dob]
45
- * @property {string} [profile_pic_url]
46
- * @property {string} [android_hash]
47
- * @property {string} [sender]
48
- * @property {string} [register_token]
44
+ * @property {string} [country_code] - Country code for the phone number.
45
+ * @property {string} [email] - Email id of user.
46
+ * @property {string} [gender] - Gender of user.
47
+ * @property {string} [dob] - Date of birth of user.
48
+ * @property {string} [profile_pic_url] - Profile picture of user.
49
+ * @property {string} [android_hash] - Unique hash value.
50
+ * @property {string} [sender] - Identity of the sender.
51
+ * @property {string} [register_token] - Unique temporary registration of the user.
49
52
  */
50
53
  /**
51
54
  * @typedef EditProfileMobileSchema
52
- * @property {string} [phone]
53
- * @property {string} [country_code]
55
+ * @property {string} [phone] - Phone number of user.
56
+ * @property {string} [country_code] - Country code for the phone number.
54
57
  */
55
58
  /**
56
59
  * @typedef SendEmailOtpRequestSchema
57
- * @property {string} [email]
58
- * @property {string} [action]
59
- * @property {string} [token]
60
- * @property {string} [register_token]
60
+ * @property {string} [email] - Email of a user to send email OTP.
61
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
62
+ * @property {string} [token] - Token to validate the request.
63
+ * @property {string} [register_token] - Unique temporary registration of the user.
61
64
  */
62
65
  /**
63
66
  * @typedef SendEmailForgotOtpRequestSchema
64
- * @property {string} [email]
65
- * @property {string} [action]
66
- * @property {string} [token]
67
+ * @property {string} [email] - Email of a user to send email OTP.
68
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
69
+ * @property {string} [token] - Token to validate the request.
67
70
  */
68
71
  /**
69
72
  * @typedef VerifyEmailOtpRequestSchema
70
- * @property {string} [email]
71
- * @property {string} [action]
72
- * @property {string} [register_token]
73
- * @property {string} [otp]
73
+ * @property {string} [email] - Email of a user to verify OTP.
74
+ * @property {string} [action] - Action to verify the send or resent OTP.
75
+ * @property {string} [register_token] - Unique temporary registration of the user.
76
+ * @property {string} [otp] - OTP for verification.
74
77
  */
75
78
  /**
76
79
  * @typedef VerifyEmailForgotOtpRequestSchema
77
- * @property {string} [email]
78
- * @property {string} [otp]
80
+ * @property {string} [email] - Email id of user.
81
+ * @property {string} [otp] - OTP for verification.
79
82
  */
80
83
  /**
81
84
  * @typedef VerifyOtpRequestSchema
82
- * @property {string} [request_id]
83
- * @property {string} [register_token]
84
- * @property {string} [otp]
85
+ * @property {string} [request_id] - Unique request id for the OTP sent to mobile number.
86
+ * @property {string} [register_token] - Unique temporary registration of the user.
87
+ * @property {string} [otp] - OTP for verification.
85
88
  */
86
89
  /**
87
90
  * @typedef VerifyMobileForgotOtpRequestSchema
88
- * @property {string} [request_id]
89
- * @property {string} [otp]
91
+ * @property {string} [request_id] - Unique request id for the OTP.
92
+ * @property {string} [otp] - OTP for verification.
90
93
  */
91
94
  /**
92
95
  * @typedef SendMobileOtpRequestSchema
93
96
  * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
94
- * @property {string} [mobile]
95
- * @property {string} [country_code]
96
- * @property {string} [action]
97
- * @property {string} [token]
98
- * @property {string} [android_hash]
99
- * @property {string} [force]
97
+ * @property {string} [mobile] - Mobile number of user.
98
+ * @property {string} [country_code] - Country code for the phone number.
99
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
100
+ * @property {string} [token] - Token to validate the request.
101
+ * @property {string} [android_hash] - Unique hash value.
102
+ * @property {string} [force] - Force verify the OTP.
100
103
  */
101
104
  /**
102
105
  * @typedef SendMobileForgotOtpRequestSchema
103
- * @property {string} [mobile]
104
- * @property {string} [country_code]
105
- * @property {string} [action]
106
- * @property {string} [token]
107
- * @property {string} [android_hash]
106
+ * @property {string} [mobile] - Phone number of user.
107
+ * @property {string} [country_code] - Country code for the phone number.
108
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
109
+ * @property {string} [token] - Token to validate the request.
110
+ * @property {string} [android_hash] - Unique hash value.
108
111
  */
109
112
  /**
110
113
  * @typedef UpdatePasswordRequestSchema
111
- * @property {string} [old_password]
112
- * @property {string} [new_password]
114
+ * @property {string} [old_password] - Old password.
115
+ * @property {string} [new_password] - New password.
113
116
  */
114
117
  /**
115
118
  * @typedef FormRegisterRequestSchema
116
- * @property {string} [first_name]
117
- * @property {string} [last_name]
118
- * @property {string} [gender]
119
- * @property {string} [email]
120
- * @property {string} [password]
119
+ * @property {string} [first_name] - First name of the application user.
120
+ * @property {string} [last_name] - Last name of the application user.
121
+ * @property {string} [gender] - Gender of user.
122
+ * @property {string} [email] - Email of user.
123
+ * @property {string} [password] - Password of user.
121
124
  * @property {FormRegisterRequestSchemaPhone} [phone]
122
- * @property {string} [register_token]
125
+ * @property {string} [register_token] - Unique registration token of user.
123
126
  */
124
127
  /**
125
128
  * @typedef TokenRequestBodySchema
126
- * @property {string} [token]
129
+ * @property {string} [token] - Unique token.
127
130
  */
128
131
  /**
129
132
  * @typedef ForgotPasswordRequestSchema
130
- * @property {string} [code]
131
- * @property {string} [password]
133
+ * @property {string} [code] - Unique code to verify request.
134
+ * @property {string} [password] - Password of user.
132
135
  */
133
136
  /**
134
137
  * @typedef CodeRequestBodySchema
135
- * @property {string} [code]
138
+ * @property {string} [code] - Unique code to verify request.
136
139
  */
137
140
  /**
138
141
  * @typedef SendResetPasswordEmailRequestSchema
139
- * @property {string} [email]
142
+ * @property {string} [email] - Email id of user.
140
143
  */
141
144
  /**
142
145
  * @typedef SendResetPasswordMobileRequestSchema
143
- * @property {string} [country_code]
144
- * @property {string} [mobile]
146
+ * @property {string} [country_code] - Country code for the phone number.
147
+ * @property {string} [mobile] - Phone number of user.
145
148
  */
146
149
  /**
147
150
  * @typedef PasswordLoginRequestSchema
148
- * @property {string} [password]
149
- * @property {string} [username]
151
+ * @property {string} [password] - Password of user.
152
+ * @property {string} [username] - Username of user.
150
153
  */
151
154
  /**
152
155
  * @typedef SendOtpRequestSchema
153
- * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
154
- * @property {string} [country_code]
155
- * @property {string} [mobile]
156
- * @property {string} [android_hash]
156
+ * @property {boolean} [encrypt_otp] - Eet to true if you want to encrypt the OTP.
157
+ * @property {string} [country_code] - Country code for the phone number.
158
+ * @property {string} [mobile] - Phone number.
159
+ * @property {string} [android_hash] - Unique hash value.
157
160
  */
158
161
  /**
159
162
  * @typedef OAuthRequestSchema
160
- * @property {boolean} [is_signed_in]
163
+ * @property {boolean} [is_signed_in] - Boolean to specify if the user is signed in .
161
164
  * @property {OAuthRequestSchemaOauth2} [oauth2]
162
165
  * @property {OAuthRequestSchemaProfile} [profile]
163
166
  */
164
167
  /**
165
168
  * @typedef OAuthRequestAppleSchema
166
- * @property {string} [user_identifier]
169
+ * @property {string} [user_identifier] - Unique user identifier.
167
170
  * @property {OAuthRequestAppleSchemaOauth} [oauth]
168
171
  * @property {OAuthRequestAppleSchemaProfile} [profile]
169
172
  */
@@ -173,232 +176,271 @@ export = UserApplicationModel;
173
176
  */
174
177
  /**
175
178
  * @typedef AuthSuccess
176
- * @property {string} [register_token]
177
- * @property {boolean} [user_exists]
179
+ * @property {string} [register_token] - Unique registration token for user.
180
+ * @property {boolean} [user_exists] - Boolean which specifies if user is registered.
178
181
  * @property {UserSchema} [user]
179
182
  */
180
183
  /**
181
184
  * @typedef UserExistsResponse
182
- * @property {boolean} [user_exists]
185
+ * @property {boolean} [user_exists] - Boolean which specifies if user is
186
+ * registered or not.
183
187
  */
184
188
  /**
185
189
  * @typedef SendOtpResponse
186
- * @property {number} [resend_timer]
187
- * @property {string} [resend_token]
188
- * @property {boolean} [success]
189
- * @property {string} [request_id]
190
- * @property {string} [message]
191
- * @property {string} [mobile]
192
- * @property {string} [country_code]
193
- * @property {string} [email]
194
- * @property {string} [resend_email_token]
195
- * @property {string} [register_token]
196
- * @property {boolean} [verify_email_otp]
197
- * @property {boolean} [verify_mobile_otp]
198
- * @property {boolean} [user_exists]
190
+ * @property {number} [resend_timer] - Time after which opt can be resent.
191
+ * @property {string} [resend_token] - Unique token to identify the OTP send
192
+ * request and resend the token.
193
+ * @property {boolean} [success] - Specify if the OTP is successfully sent.
194
+ * @property {string} [request_id] - Unique request id for the OTP.
195
+ * @property {string} [message] - Message to specify the OTP send status. Eg.
196
+ * OTP sent, failed to send OTP etc.
197
+ * @property {string} [mobile] - Phone number of user.
198
+ * @property {string} [country_code] - Country code for the phone number.
199
+ * @property {string} [email] - Email id of user.
200
+ * @property {string} [resend_email_token] - Unique token to identify the OTP
201
+ * send request and resend the token on email.
202
+ * @property {string} [register_token] - Unique registration token for user.
203
+ * @property {boolean} [verify_email_otp] - If email OTP verification is
204
+ * mandatory for registration.
205
+ * @property {boolean} [verify_mobile_otp] - If mobile OTP verification is
206
+ * mandatory for registration.
207
+ * @property {boolean} [user_exists] - If user is registered or not.
199
208
  */
200
209
  /**
201
210
  * @typedef ProfileEditSuccess
202
211
  * @property {UserSchema} [user]
203
- * @property {string} [register_token]
204
- * @property {string} [resend_email_token]
205
- * @property {boolean} [user_exists]
206
- * @property {boolean} [verify_email_link]
207
- * @property {boolean} [verify_email_otp]
208
- * @property {boolean} [verify_mobile_otp]
209
- * @property {string} [email]
210
- * @property {string} [request_id]
211
- * @property {string} [country_code]
212
- * @property {string} [mobile]
213
- * @property {boolean} [success]
214
- * @property {string} [message]
215
- * @property {number} [resend_timer]
216
- * @property {string} [resend_token]
212
+ * @property {string} [register_token] - Unique registration token for user.
213
+ * @property {string} [resend_email_token] - Unique token to identify the
214
+ * request for OTP verification in case of unverified email.
215
+ * @property {boolean} [user_exists] - If user is registered or not.
216
+ * @property {boolean} [verify_email_link] - Whether to send a link to verify
217
+ * the registered email id of the user.
218
+ * @property {boolean} [verify_email_otp] - Whether to send a OTP to verify the
219
+ * registered email id of the user.
220
+ * @property {boolean} [verify_mobile_otp] - Whether to send a OTP to verify the
221
+ * registered phone of the user.
222
+ * @property {string} [email] - Email id of user.
223
+ * @property {string} [request_id] - A random uuid string used to track the request.
224
+ * @property {string} [country_code] - The country specific prefix for the phone number.
225
+ * @property {string} [mobile] - The user's mobile number without the country code.
226
+ * @property {boolean} [success] - Whether the operation was successful.
227
+ * @property {string} [message] - Information about the operation's result.
228
+ * @property {number} [resend_timer] - Time in seconds before an request can be resent.
229
+ * @property {string} [resend_token] - A token used to authorize the resending of request.
217
230
  */
218
231
  /**
219
232
  * @typedef LoginSuccess
220
233
  * @property {UserSchema} [user]
221
- * @property {string} [request_id]
222
- * @property {string} [register_token]
234
+ * @property {string} [request_id] - A random uuid string used to track the send
235
+ * OTP response.
236
+ * @property {string} [register_token] - A token used for registration purposes.
223
237
  */
224
238
  /**
225
239
  * @typedef ResetForgotPasswordSuccess
226
- * @property {boolean} [success]
240
+ * @property {boolean} [success] - Whether the password reset operation was successful.
227
241
  */
228
242
  /**
229
243
  * @typedef VerifyOtpSuccess
230
244
  * @property {UserSchema} [user]
231
- * @property {boolean} [user_exists]
232
- * @property {string} [register_token]
245
+ * @property {boolean} [user_exists] - Whether the user already exists.
246
+ * @property {string} [register_token] - A token used for registration purposes.
233
247
  */
234
248
  /**
235
249
  * @typedef VerifyForgotOtpSuccess
236
- * @property {boolean} [success]
237
- * @property {string} [forgot_token]
250
+ * @property {boolean} [success] - Whether the OTP verification was successful.
251
+ * @property {string} [forgot_token] - A token used for resetting the forgotten password.
238
252
  */
239
253
  /**
240
254
  * @typedef ResetPasswordSuccess
241
- * @property {string} [status]
255
+ * @property {string} [status] - Status of the password reset operation.
242
256
  */
243
257
  /**
244
258
  * @typedef RegisterFormSuccess
245
- * @property {string} [email]
246
- * @property {number} [resend_timer]
247
- * @property {string} [resend_token]
248
- * @property {string} [resend_email_token]
249
- * @property {string} [register_token]
250
- * @property {boolean} [success]
251
- * @property {string} [request_id]
252
- * @property {string} [message]
253
- * @property {string} [mobile]
254
- * @property {string} [country_code]
255
- * @property {boolean} [verify_email_otp]
256
- * @property {boolean} [verify_mobile_otp]
257
- * @property {boolean} [user_exists]
259
+ * @property {string} [email] - The email address provided during registration.
260
+ * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
261
+ * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
262
+ * @property {string} [resend_email_token] - A token used to authorize the
263
+ * resending of an OTP via email.
264
+ * @property {string} [register_token] - A token used for completing the
265
+ * registration process.
266
+ * @property {boolean} [success] - A boolean value indicating whether the
267
+ * registration operation was successful.
268
+ * @property {string} [request_id] - A random uuid string used to track the
269
+ * registration response.
270
+ * @property {string} [message] - A string containing additional information
271
+ * about the operation's result.
272
+ * @property {string} [mobile] - The user's phone mobile without the country code.
273
+ * @property {string} [country_code] - The country specific prefix for the phone number.
274
+ * @property {boolean} [verify_email_otp] - Whether email OTP verification is required.
275
+ * @property {boolean} [verify_mobile_otp] - Whether mobile OTP verification is required.
276
+ * @property {boolean} [user_exists] - Whether the user already exists.
258
277
  */
259
278
  /**
260
279
  * @typedef VerifyEmailSuccess
261
- * @property {string} [message]
280
+ * @property {string} [message] - Result of the email verification process.
262
281
  */
263
282
  /**
264
283
  * @typedef HasPasswordSuccess
265
- * @property {number} [result]
284
+ * @property {number} [result] - An integer value indicating whether the user
285
+ * has set a password (1 for true, 0 for false).
266
286
  */
267
287
  /**
268
288
  * @typedef LogoutSuccess
269
- * @property {boolean} [logout]
289
+ * @property {boolean} [logout] - Whether the logout operation was successful.
270
290
  */
271
291
  /**
272
292
  * @typedef DeleteUserSuccess
273
- * @property {boolean} [success]
293
+ * @property {boolean} [success] - Whether the user deletion operation was successful.
274
294
  */
275
295
  /**
276
296
  * @typedef OtpSuccess
277
- * @property {number} [resend_timer]
278
- * @property {string} [resend_token]
279
- * @property {string} [register_token]
280
- * @property {boolean} [success]
281
- * @property {string} [request_id]
282
- * @property {string} [message]
283
- * @property {string} [mobile]
284
- * @property {string} [country_code]
297
+ * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
298
+ * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
299
+ * @property {string} [register_token] - A token used for completing the
300
+ * registration process.
301
+ * @property {boolean} [success] - Whether the OTP send operation was successful.
302
+ * @property {string} [request_id] - A random uuid string used to track the OTP
303
+ * send response.
304
+ * @property {string} [message] - Additional information about the operation's result.
305
+ * @property {string} [mobile] - The user's mobile number without the country code.
306
+ * @property {string} [country_code] - The country specific prefix for the phone number.
285
307
  */
286
308
  /**
287
309
  * @typedef EmailOtpSuccess
288
- * @property {boolean} [success]
289
- * @property {string} [resend_email_token]
310
+ * @property {boolean} [success] - Whether the OTP send operation was successful.
311
+ * @property {string} [resend_email_token] - A token used to authorize the
312
+ * resending of an OTP via email.
290
313
  */
291
314
  /**
292
315
  * @typedef SessionListSuccess
293
- * @property {string[]} [sessions]
316
+ * @property {string[]} [sessions] - An array of active session identifiers.
294
317
  */
295
318
  /**
296
319
  * @typedef VerifyMobileOTPSuccess
297
320
  * @property {UserSchema} [user]
298
- * @property {boolean} [verify_mobile_link]
321
+ * @property {boolean} [verify_mobile_link] - Whether the mobile number
322
+ * verification link was successful.
299
323
  */
300
324
  /**
301
325
  * @typedef VerifyEmailOTPSuccess
302
326
  * @property {UserSchema} [user]
303
- * @property {boolean} [verify_email_link]
327
+ * @property {boolean} [verify_email_link] - Whether the email verification link
328
+ * was successful.
304
329
  */
305
330
  /**
306
331
  * @typedef SendMobileVerifyLinkSuccess
307
- * @property {boolean} [verify_mobile_link]
332
+ * @property {boolean} [verify_mobile_link] - Whether the mobile verification
333
+ * link was successfully sent.
308
334
  */
309
335
  /**
310
336
  * @typedef SendEmailVerifyLinkSuccess
311
- * @property {boolean} [verify_email_link]
337
+ * @property {boolean} [verify_email_link] - Whether the email verification link
338
+ * was successfully sent.
312
339
  */
313
340
  /**
314
341
  * @typedef APIError
315
- * @property {string} [code]
316
- * @property {string} [message]
317
- * @property {string} [info] - Error code description link
318
- * @property {string} [request_id]
319
- * @property {string} [error]
320
- * @property {Object} [meta]
321
- * @property {boolean} [authenticated]
342
+ * @property {string} [code] - The error code representing the type of error.
343
+ * @property {string} [message] - A descriptive message providing more details
344
+ * about the error.
345
+ * @property {string} [info] - A link to the error code description.
346
+ * @property {string} [request_id] - A random uuid string used to track the api request.
347
+ * @property {string} [error] - The error message or stack trace.
348
+ * @property {Object} [meta] - Additional metadata associated with the error.
349
+ * @property {boolean} [authenticated] - Whether the user is authenticated.
322
350
  */
323
351
  /**
324
352
  * @typedef FormRegisterRequestSchemaPhone
325
- * @property {string} [country_code]
326
- * @property {string} [mobile]
353
+ * @property {string} [country_code] - Country code for mobile number.
354
+ * @property {string} [mobile] - The user's mobile number without the country code.
327
355
  */
328
356
  /**
329
357
  * @typedef OAuthRequestSchemaOauth2
330
- * @property {string} [access_token]
331
- * @property {number} [expiry]
332
- * @property {string} [refresh_token]
358
+ * @property {string} [access_token] - The access token issued by the oauth2 provider.
359
+ * @property {number} [expiry] - The expiry time of the access token in
360
+ * milliseconds since epoch.
361
+ * @property {string} [refresh_token] - The refresh token issued by the oauth2 provider.
333
362
  */
334
363
  /**
335
364
  * @typedef OAuthRequestSchemaProfile
336
- * @property {string} [last_name]
337
- * @property {string} [image]
338
- * @property {string} [id]
339
- * @property {string} [email]
340
- * @property {string} [full_name]
341
- * @property {string} [first_name]
365
+ * @property {string} [last_name] - The last name of the user.
366
+ * @property {string} [image] - The url of the user's profile picture.
367
+ * @property {string} [id] - The unique identifier of the user.
368
+ * @property {string} [email] - The email address of the user.
369
+ * @property {string} [full_name] - The full name of the user.
370
+ * @property {string} [first_name] - The first name of the user.
342
371
  */
343
372
  /**
344
373
  * @typedef OAuthRequestAppleSchemaOauth
345
- * @property {string} [identity_token]
374
+ * @property {string} [identity_token] - The identity token issued by apple.
346
375
  */
347
376
  /**
348
377
  * @typedef OAuthRequestAppleSchemaProfile
349
- * @property {string} [last_name]
350
- * @property {string} [full_name]
351
- * @property {string} [first_name]
378
+ * @property {string} [last_name] - The last name of the user.
379
+ * @property {string} [full_name] - The full name of the user.
380
+ * @property {string} [first_name] - The first name of the user.
352
381
  */
353
382
  /**
354
383
  * @typedef PlatformSchema
355
- * @property {string} [display]
384
+ * @property {string} [display] - The display name of the platform.
356
385
  * @property {LookAndFeel} [look_and_feel]
357
- * @property {string} [updated_at]
358
- * @property {boolean} [active]
359
- * @property {boolean} [forgot_password]
386
+ * @property {string} [updated_at] - The date and time when the configuration
387
+ * was last updated.
388
+ * @property {boolean} [active] - Is the application config active or not .
389
+ * @property {boolean} [forgot_password] - Forgot password option to be given or
390
+ * not to application user.
360
391
  * @property {Login} [login]
361
- * @property {boolean} [skip_captcha]
362
- * @property {string} [name]
392
+ * @property {boolean} [skip_captcha] - Skip the captcha or not .
393
+ * @property {string} [name] - Name of the application.
363
394
  * @property {MetaSchema} [meta]
364
- * @property {string} [_id]
395
+ * @property {string} [_id] - Unique document id of the platform config.
365
396
  * @property {Social} [social]
366
397
  * @property {RequiredFields} [required_fields]
367
398
  * @property {RegisterRequiredFields} [register_required_fields]
368
- * @property {boolean} [skip_login]
399
+ * @property {boolean} [skip_login] - Whether to skip the login or not .
369
400
  * @property {FlashCard} [flash_card]
370
- * @property {string} [subtext]
401
+ * @property {string} [subtext] - Text to be shown at the top of the flash card
402
+ * like login to fynd, login to tira.
371
403
  * @property {SocialTokens} [social_tokens]
372
- * @property {string} [created_at]
373
- * @property {boolean} [register]
374
- * @property {string} [mobile_image]
375
- * @property {string} [desktop_image]
376
- * @property {number} [delete_account_day]
377
- * @property {DeleteAccountReasons[]} [delete_account_reasons]
404
+ * @property {string} [created_at] - When was the application platform config
405
+ * document was created.
406
+ * @property {boolean} [register] - Whether to show the registration page on
407
+ * landing page or not.
408
+ * @property {string} [mobile_image] - Image to be shown on registration page
409
+ * for mobile devices.
410
+ * @property {string} [desktop_image] - Image to be shown on registration page
411
+ * for desktop devices.
412
+ * @property {number} [delete_account_day] - Number of days after which the user
413
+ * account will be deleted.
414
+ * @property {DeleteAccountReasons[]} [delete_account_reasons] - List of reasons
415
+ * you can set to ask user when account is being deleted from application.
378
416
  * @property {DeleteAccountConsent} [delete_account_consent]
379
417
  * @property {SessionExpiry} [session_config]
380
- * @property {number} [__v]
418
+ * @property {number} [__v] - Version of the document.
381
419
  */
382
420
  /**
383
421
  * @typedef LookAndFeel
384
- * @property {string} [card_position]
385
- * @property {string} [background_color]
422
+ * @property {string} [card_position] - Position of the card eg right, left,
423
+ * top-right etc.
424
+ * @property {string} [background_color] - Background colour of the card.
386
425
  */
387
426
  /**
388
427
  * @typedef Login
389
- * @property {boolean} [password]
390
- * @property {boolean} [otp]
428
+ * @property {boolean} [password] - Application is providing login with password or not.
429
+ * @property {boolean} [otp] - Application is providing login with OTP or not.
391
430
  */
392
431
  /**
393
432
  * @typedef MetaSchema
394
- * @property {boolean} [fynd_default]
433
+ * @property {boolean} [fynd_default] - One of the custom field that you are
434
+ * storing in meta.
395
435
  */
396
436
  /**
397
437
  * @typedef Social
398
- * @property {boolean} [account_kit]
399
- * @property {boolean} [facebook]
400
- * @property {boolean} [google]
401
- * @property {boolean} [apple]
438
+ * @property {boolean} [account_kit] - Is accountkit social login active for
439
+ * application or not.
440
+ * @property {boolean} [facebook] - Is facebook social login active for
441
+ * application or not .
442
+ * @property {boolean} [google] - Is google social login active for application or not .
443
+ * @property {boolean} [apple] - Is apple social login active for application or not.
402
444
  */
403
445
  /**
404
446
  * @typedef RequiredFields
@@ -407,13 +449,17 @@ export = UserApplicationModel;
407
449
  */
408
450
  /**
409
451
  * @typedef PlatformEmail
410
- * @property {boolean} [is_required]
411
- * @property {string} [level]
452
+ * @property {boolean} [is_required] - Is email mandatory for user to register
453
+ * on a application or not.
454
+ * @property {string} [level] - Level of email mandatory hard is mandatory and
455
+ * soft is optional.
412
456
  */
413
457
  /**
414
458
  * @typedef PlatformMobile
415
- * @property {boolean} [is_required]
416
- * @property {string} [level]
459
+ * @property {boolean} [is_required] - Is mobile mandatory for user to register
460
+ * on a application or not.
461
+ * @property {string} [level] - Level of mobile mandatory hard is mandatory and
462
+ * soft is optional.
417
463
  */
418
464
  /**
419
465
  * @typedef RegisterRequiredFields
@@ -422,19 +468,24 @@ export = UserApplicationModel;
422
468
  */
423
469
  /**
424
470
  * @typedef RegisterRequiredFieldsEmail
425
- * @property {boolean} [is_required]
426
- * @property {string} [level]
471
+ * @property {boolean} [is_required] - Is email mandatory for user to register
472
+ * on a application or not.
473
+ * @property {string} [level] - Level of email mandatory hard is mandatory and
474
+ * soft is optional.
427
475
  */
428
476
  /**
429
477
  * @typedef RegisterRequiredFieldsMobile
430
- * @property {boolean} [is_required]
431
- * @property {string} [level]
478
+ * @property {boolean} [is_required] - Is mobile mandatory for user to register
479
+ * on a application or not.
480
+ * @property {string} [level] - Level of mobile mandatory hard is mandatory and
481
+ * soft is optional.
432
482
  */
433
483
  /**
434
484
  * @typedef FlashCard
435
- * @property {string} [text]
436
- * @property {string} [text_color]
437
- * @property {string} [background_color]
485
+ * @property {string} [text] - Text to be shown in the flash card.
486
+ * @property {string} [text_color] - Text colour for the text in the flash card.
487
+ * @property {string} [background_color] - Background colour of the text to be
488
+ * shown on the flash card.
438
489
  */
439
490
  /**
440
491
  * @typedef SocialTokens
@@ -444,67 +495,70 @@ export = UserApplicationModel;
444
495
  */
445
496
  /**
446
497
  * @typedef DeleteAccountReasons
447
- * @property {string} [reason_text]
448
- * @property {string} [reason_id]
449
- * @property {boolean} [show_text_area]
498
+ * @property {string} [reason_text] - Text of the reason to be shown to user.
499
+ * @property {string} [reason_id] - Unique id of the reason .
500
+ * @property {boolean} [show_text_area] - A boolean whether to show text area or not.
450
501
  */
451
502
  /**
452
503
  * @typedef DeleteAccountConsent
453
- * @property {string} [consent_text]
504
+ * @property {string} [consent_text] - Consent text to be shown to user.
454
505
  */
455
506
  /**
456
507
  * @typedef Facebook
457
- * @property {string} [app_id]
508
+ * @property {string} [app_id] - App id of the credentials facebook.
458
509
  */
459
510
  /**
460
511
  * @typedef Accountkit
461
- * @property {string} [app_id]
512
+ * @property {string} [app_id] - App id of the credentials account kit.
462
513
  */
463
514
  /**
464
515
  * @typedef Google
465
- * @property {string} [app_id]
516
+ * @property {string} [app_id] - App id of the credentials google.
466
517
  */
467
518
  /**
468
519
  * @typedef SessionExpiry
469
- * @property {number} [duration]
470
- * @property {string} [type]
471
- * @property {boolean} [is_rolling]
520
+ * @property {number} [duration] - Number of days or hours based on type till
521
+ * which the session can be rolled back.
522
+ * @property {string} [type] - Days or hours the type of time for session rollback.
523
+ * @property {boolean} [is_rolling] - Whether session needs to be rollback or not.
472
524
  */
473
525
  /**
474
526
  * @typedef UserSchema
475
- * @property {string} [application_id]
476
- * @property {string} [user_id]
477
- * @property {string} [first_name]
478
- * @property {Object} [meta]
479
- * @property {string} [last_name]
480
- * @property {PhoneNumber[]} [phone_numbers]
481
- * @property {Email[]} [emails]
482
- * @property {string} [gender]
483
- * @property {string} [dob]
484
- * @property {boolean} [active]
485
- * @property {string} [profile_pic_url]
486
- * @property {string} [username]
487
- * @property {string} [account_type]
488
- * @property {string} [_id]
489
- * @property {string} [created_at]
490
- * @property {string} [updated_at]
491
- * @property {string} [external_id]
492
- * @property {string} [rr_id]
527
+ * @property {string} [application_id] - Application id of the user.
528
+ * @property {string} [user_id] - Unique id of the user.
529
+ * @property {string} [first_name] - First name of the user.
530
+ * @property {Object} [meta] - Metadata of the user, used to store details about the user
531
+ * @property {string} [last_name] - Last name of the user
532
+ * @property {PhoneNumber[]} [phone_numbers] - List of phone numbers of the user.
533
+ * @property {Email[]} [emails] - List of email addresses of the user.
534
+ * @property {string} [gender] - Gender of the user.
535
+ * @property {string} [dob] - Date of birth of the user.
536
+ * @property {boolean} [active] - Is the user active.
537
+ * @property {string} [profile_pic_url] - URL of the profile picture of the user.
538
+ * @property {string} [username] - Unique username of the user.
539
+ * @property {string} [account_type] - Type of user (user, programmatic (created
540
+ * by system))
541
+ * @property {string} [_id] - Unique id of the user.
542
+ * @property {string} [created_at] - Date and time of user creation.
543
+ * @property {string} [updated_at] - Date and time of user update.
544
+ * @property {string} [external_id] - Unique id referencing any user external
545
+ * documents (jio).
546
+ * @property {string} [rr_id] - Unique id referencing any user external documents.
493
547
  */
494
548
  /**
495
549
  * @typedef PhoneNumber
496
- * @property {string} [phone] - Phone number
497
- * @property {number} [country_code] - Country code
498
- * @property {boolean} [active] - Is the phone number active
499
- * @property {boolean} [primary] - Is it a primary phone number
500
- * @property {boolean} [verified] - Is the phone number verified
550
+ * @property {string} [phone] - Phone number of the user.
551
+ * @property {number} [country_code] - Country code for mobile number.
552
+ * @property {boolean} [active] - Is the phone number active.
553
+ * @property {boolean} [primary] - Is it a primary phone number.
554
+ * @property {boolean} [verified] - Is the phone number verified.
501
555
  */
502
556
  /**
503
557
  * @typedef Email
504
- * @property {string} [email] - Email address
505
- * @property {boolean} [active] - Is the email active
506
- * @property {boolean} [primary] - Is it a primary email
507
- * @property {boolean} [verified] - Is the email verified
558
+ * @property {string} [email] - Email address.
559
+ * @property {boolean} [active] - Is the email active.
560
+ * @property {boolean} [primary] - Is it a primary email.
561
+ * @property {boolean} [verified] - Is the email verified.
508
562
  */
509
563
  declare class UserApplicationModel {
510
564
  }
@@ -514,40 +568,88 @@ declare namespace UserApplicationModel {
514
568
  /** @returns {UpdateUserAttributesRequest} */
515
569
  declare function UpdateUserAttributesRequest(): UpdateUserAttributesRequest;
516
570
  type UpdateUserAttributesRequest = {
571
+ /**
572
+ * - Describes the request structure to update
573
+ * the user attribute.
574
+ */
517
575
  attributes?: any;
518
576
  };
519
577
  /** @returns {UserAttributes} */
520
578
  declare function UserAttributes(): UserAttributes;
521
579
  type UserAttributes = {
580
+ /**
581
+ * - Describes the structure of user attribute.
582
+ */
522
583
  attributes?: any;
523
584
  };
524
585
  /** @returns {DeleteApplicationUserRequestSchema} */
525
586
  declare function DeleteApplicationUserRequestSchema(): DeleteApplicationUserRequestSchema;
526
587
  type DeleteApplicationUserRequestSchema = {
588
+ /**
589
+ * - User id for the application user.
590
+ */
527
591
  user_id?: string;
592
+ /**
593
+ * - Reason to delete the application user.
594
+ */
528
595
  reason?: string;
596
+ /**
597
+ * - Reason id of request to delete the application user .
598
+ */
529
599
  reason_id?: string;
600
+ /**
601
+ * - ID of request to delete the application user .
602
+ */
530
603
  request_id?: string;
604
+ /**
605
+ * - OTP to verify the delete application user request.
606
+ */
531
607
  otp?: string;
532
608
  };
533
609
  /** @returns {EditEmailRequestSchema} */
534
610
  declare function EditEmailRequestSchema(): EditEmailRequestSchema;
535
611
  type EditEmailRequestSchema = {
612
+ /**
613
+ * - Email of the user.
614
+ */
536
615
  email?: string;
537
616
  };
538
617
  /** @returns {SendVerificationLinkMobileRequestSchema} */
539
618
  declare function SendVerificationLinkMobileRequestSchema(): SendVerificationLinkMobileRequestSchema;
540
619
  type SendVerificationLinkMobileRequestSchema = {
620
+ /**
621
+ * - Boolean to specify if the phone number is
622
+ * verified or not.
623
+ */
541
624
  verified?: boolean;
625
+ /**
626
+ * - Boolean to specify if the phone number is active or not.
627
+ */
542
628
  active?: boolean;
629
+ /**
630
+ * - Country code for the phone number.
631
+ */
543
632
  country_code?: string;
633
+ /**
634
+ * - Phone number.
635
+ */
544
636
  phone?: string;
637
+ /**
638
+ * - Boolean to specify if the phone number is
639
+ * primary or not.
640
+ */
545
641
  primary?: boolean;
546
642
  };
547
643
  /** @returns {EditMobileRequestSchema} */
548
644
  declare function EditMobileRequestSchema(): EditMobileRequestSchema;
549
645
  type EditMobileRequestSchema = {
646
+ /**
647
+ * - Country code for the phone number.
648
+ */
550
649
  country_code?: string;
650
+ /**
651
+ * - Phone number of user.
652
+ */
551
653
  phone?: string;
552
654
  };
553
655
  /** @returns {EditProfileRequestSchema} */
@@ -557,64 +659,154 @@ type EditProfileRequestSchema = {
557
659
  * - Set to true if you want to encrypt the OTP.
558
660
  */
559
661
  encrypt_otp?: boolean;
662
+ /**
663
+ * - First name of the application user.
664
+ */
560
665
  first_name?: string;
666
+ /**
667
+ * - Last name of the application user.
668
+ */
561
669
  last_name?: string;
562
670
  mobile?: EditProfileMobileSchema;
671
+ /**
672
+ * - Country code for the phone number.
673
+ */
563
674
  country_code?: string;
675
+ /**
676
+ * - Email id of user.
677
+ */
564
678
  email?: string;
679
+ /**
680
+ * - Gender of user.
681
+ */
565
682
  gender?: string;
683
+ /**
684
+ * - Date of birth of user.
685
+ */
566
686
  dob?: string;
687
+ /**
688
+ * - Profile picture of user.
689
+ */
567
690
  profile_pic_url?: string;
691
+ /**
692
+ * - Unique hash value.
693
+ */
568
694
  android_hash?: string;
695
+ /**
696
+ * - Identity of the sender.
697
+ */
569
698
  sender?: string;
699
+ /**
700
+ * - Unique temporary registration of the user.
701
+ */
570
702
  register_token?: string;
571
703
  };
572
704
  /** @returns {EditProfileMobileSchema} */
573
705
  declare function EditProfileMobileSchema(): EditProfileMobileSchema;
574
706
  type EditProfileMobileSchema = {
707
+ /**
708
+ * - Phone number of user.
709
+ */
575
710
  phone?: string;
711
+ /**
712
+ * - Country code for the phone number.
713
+ */
576
714
  country_code?: string;
577
715
  };
578
716
  /** @returns {SendEmailOtpRequestSchema} */
579
717
  declare function SendEmailOtpRequestSchema(): SendEmailOtpRequestSchema;
580
718
  type SendEmailOtpRequestSchema = {
719
+ /**
720
+ * - Email of a user to send email OTP.
721
+ */
581
722
  email?: string;
723
+ /**
724
+ * - Action to specify if to send or resent the OTP.
725
+ */
582
726
  action?: string;
727
+ /**
728
+ * - Token to validate the request.
729
+ */
583
730
  token?: string;
731
+ /**
732
+ * - Unique temporary registration of the user.
733
+ */
584
734
  register_token?: string;
585
735
  };
586
736
  /** @returns {SendEmailForgotOtpRequestSchema} */
587
737
  declare function SendEmailForgotOtpRequestSchema(): SendEmailForgotOtpRequestSchema;
588
738
  type SendEmailForgotOtpRequestSchema = {
739
+ /**
740
+ * - Email of a user to send email OTP.
741
+ */
589
742
  email?: string;
743
+ /**
744
+ * - Action to specify if to send or resent the OTP.
745
+ */
590
746
  action?: string;
747
+ /**
748
+ * - Token to validate the request.
749
+ */
591
750
  token?: string;
592
751
  };
593
752
  /** @returns {VerifyEmailOtpRequestSchema} */
594
753
  declare function VerifyEmailOtpRequestSchema(): VerifyEmailOtpRequestSchema;
595
754
  type VerifyEmailOtpRequestSchema = {
755
+ /**
756
+ * - Email of a user to verify OTP.
757
+ */
596
758
  email?: string;
759
+ /**
760
+ * - Action to verify the send or resent OTP.
761
+ */
597
762
  action?: string;
763
+ /**
764
+ * - Unique temporary registration of the user.
765
+ */
598
766
  register_token?: string;
767
+ /**
768
+ * - OTP for verification.
769
+ */
599
770
  otp?: string;
600
771
  };
601
772
  /** @returns {VerifyEmailForgotOtpRequestSchema} */
602
773
  declare function VerifyEmailForgotOtpRequestSchema(): VerifyEmailForgotOtpRequestSchema;
603
774
  type VerifyEmailForgotOtpRequestSchema = {
775
+ /**
776
+ * - Email id of user.
777
+ */
604
778
  email?: string;
779
+ /**
780
+ * - OTP for verification.
781
+ */
605
782
  otp?: string;
606
783
  };
607
784
  /** @returns {VerifyOtpRequestSchema} */
608
785
  declare function VerifyOtpRequestSchema(): VerifyOtpRequestSchema;
609
786
  type VerifyOtpRequestSchema = {
787
+ /**
788
+ * - Unique request id for the OTP sent to mobile number.
789
+ */
610
790
  request_id?: string;
791
+ /**
792
+ * - Unique temporary registration of the user.
793
+ */
611
794
  register_token?: string;
795
+ /**
796
+ * - OTP for verification.
797
+ */
612
798
  otp?: string;
613
799
  };
614
800
  /** @returns {VerifyMobileForgotOtpRequestSchema} */
615
801
  declare function VerifyMobileForgotOtpRequestSchema(): VerifyMobileForgotOtpRequestSchema;
616
802
  type VerifyMobileForgotOtpRequestSchema = {
803
+ /**
804
+ * - Unique request id for the OTP.
805
+ */
617
806
  request_id?: string;
807
+ /**
808
+ * - OTP for verification.
809
+ */
618
810
  otp?: string;
619
811
  };
620
812
  /** @returns {SendMobileOtpRequestSchema} */
@@ -624,86 +816,182 @@ type SendMobileOtpRequestSchema = {
624
816
  * - Set to true if you want to encrypt the OTP.
625
817
  */
626
818
  encrypt_otp?: boolean;
819
+ /**
820
+ * - Mobile number of user.
821
+ */
627
822
  mobile?: string;
823
+ /**
824
+ * - Country code for the phone number.
825
+ */
628
826
  country_code?: string;
827
+ /**
828
+ * - Action to specify if to send or resent the OTP.
829
+ */
629
830
  action?: string;
831
+ /**
832
+ * - Token to validate the request.
833
+ */
630
834
  token?: string;
835
+ /**
836
+ * - Unique hash value.
837
+ */
631
838
  android_hash?: string;
839
+ /**
840
+ * - Force verify the OTP.
841
+ */
632
842
  force?: string;
633
843
  };
634
844
  /** @returns {SendMobileForgotOtpRequestSchema} */
635
845
  declare function SendMobileForgotOtpRequestSchema(): SendMobileForgotOtpRequestSchema;
636
846
  type SendMobileForgotOtpRequestSchema = {
847
+ /**
848
+ * - Phone number of user.
849
+ */
637
850
  mobile?: string;
851
+ /**
852
+ * - Country code for the phone number.
853
+ */
638
854
  country_code?: string;
855
+ /**
856
+ * - Action to specify if to send or resent the OTP.
857
+ */
639
858
  action?: string;
859
+ /**
860
+ * - Token to validate the request.
861
+ */
640
862
  token?: string;
863
+ /**
864
+ * - Unique hash value.
865
+ */
641
866
  android_hash?: string;
642
867
  };
643
868
  /** @returns {UpdatePasswordRequestSchema} */
644
869
  declare function UpdatePasswordRequestSchema(): UpdatePasswordRequestSchema;
645
870
  type UpdatePasswordRequestSchema = {
871
+ /**
872
+ * - Old password.
873
+ */
646
874
  old_password?: string;
875
+ /**
876
+ * - New password.
877
+ */
647
878
  new_password?: string;
648
879
  };
649
880
  /** @returns {FormRegisterRequestSchema} */
650
881
  declare function FormRegisterRequestSchema(): FormRegisterRequestSchema;
651
882
  type FormRegisterRequestSchema = {
883
+ /**
884
+ * - First name of the application user.
885
+ */
652
886
  first_name?: string;
887
+ /**
888
+ * - Last name of the application user.
889
+ */
653
890
  last_name?: string;
891
+ /**
892
+ * - Gender of user.
893
+ */
654
894
  gender?: string;
895
+ /**
896
+ * - Email of user.
897
+ */
655
898
  email?: string;
899
+ /**
900
+ * - Password of user.
901
+ */
656
902
  password?: string;
657
903
  phone?: FormRegisterRequestSchemaPhone;
904
+ /**
905
+ * - Unique registration token of user.
906
+ */
658
907
  register_token?: string;
659
908
  };
660
909
  /** @returns {TokenRequestBodySchema} */
661
910
  declare function TokenRequestBodySchema(): TokenRequestBodySchema;
662
911
  type TokenRequestBodySchema = {
912
+ /**
913
+ * - Unique token.
914
+ */
663
915
  token?: string;
664
916
  };
665
917
  /** @returns {ForgotPasswordRequestSchema} */
666
918
  declare function ForgotPasswordRequestSchema(): ForgotPasswordRequestSchema;
667
919
  type ForgotPasswordRequestSchema = {
920
+ /**
921
+ * - Unique code to verify request.
922
+ */
668
923
  code?: string;
924
+ /**
925
+ * - Password of user.
926
+ */
669
927
  password?: string;
670
928
  };
671
929
  /** @returns {CodeRequestBodySchema} */
672
930
  declare function CodeRequestBodySchema(): CodeRequestBodySchema;
673
931
  type CodeRequestBodySchema = {
932
+ /**
933
+ * - Unique code to verify request.
934
+ */
674
935
  code?: string;
675
936
  };
676
937
  /** @returns {SendResetPasswordEmailRequestSchema} */
677
938
  declare function SendResetPasswordEmailRequestSchema(): SendResetPasswordEmailRequestSchema;
678
939
  type SendResetPasswordEmailRequestSchema = {
940
+ /**
941
+ * - Email id of user.
942
+ */
679
943
  email?: string;
680
944
  };
681
945
  /** @returns {SendResetPasswordMobileRequestSchema} */
682
946
  declare function SendResetPasswordMobileRequestSchema(): SendResetPasswordMobileRequestSchema;
683
947
  type SendResetPasswordMobileRequestSchema = {
948
+ /**
949
+ * - Country code for the phone number.
950
+ */
684
951
  country_code?: string;
952
+ /**
953
+ * - Phone number of user.
954
+ */
685
955
  mobile?: string;
686
956
  };
687
957
  /** @returns {PasswordLoginRequestSchema} */
688
958
  declare function PasswordLoginRequestSchema(): PasswordLoginRequestSchema;
689
959
  type PasswordLoginRequestSchema = {
960
+ /**
961
+ * - Password of user.
962
+ */
690
963
  password?: string;
964
+ /**
965
+ * - Username of user.
966
+ */
691
967
  username?: string;
692
968
  };
693
969
  /** @returns {SendOtpRequestSchema} */
694
970
  declare function SendOtpRequestSchema(): SendOtpRequestSchema;
695
971
  type SendOtpRequestSchema = {
696
972
  /**
697
- * - Set to true if you want to encrypt the OTP.
973
+ * - Eet to true if you want to encrypt the OTP.
698
974
  */
699
975
  encrypt_otp?: boolean;
976
+ /**
977
+ * - Country code for the phone number.
978
+ */
700
979
  country_code?: string;
980
+ /**
981
+ * - Phone number.
982
+ */
701
983
  mobile?: string;
984
+ /**
985
+ * - Unique hash value.
986
+ */
702
987
  android_hash?: string;
703
988
  };
704
989
  /** @returns {OAuthRequestSchema} */
705
990
  declare function OAuthRequestSchema(): OAuthRequestSchema;
706
991
  type OAuthRequestSchema = {
992
+ /**
993
+ * - Boolean to specify if the user is signed in .
994
+ */
707
995
  is_signed_in?: boolean;
708
996
  oauth2?: OAuthRequestSchemaOauth2;
709
997
  profile?: OAuthRequestSchemaProfile;
@@ -711,6 +999,9 @@ type OAuthRequestSchema = {
711
999
  /** @returns {OAuthRequestAppleSchema} */
712
1000
  declare function OAuthRequestAppleSchema(): OAuthRequestAppleSchema;
713
1001
  type OAuthRequestAppleSchema = {
1002
+ /**
1003
+ * - Unique user identifier.
1004
+ */
714
1005
  user_identifier?: string;
715
1006
  oauth?: OAuthRequestAppleSchemaOauth;
716
1007
  profile?: OAuthRequestAppleSchemaProfile;
@@ -723,265 +1014,652 @@ type UserObjectSchema = {
723
1014
  /** @returns {AuthSuccess} */
724
1015
  declare function AuthSuccess(): AuthSuccess;
725
1016
  type AuthSuccess = {
1017
+ /**
1018
+ * - Unique registration token for user.
1019
+ */
726
1020
  register_token?: string;
1021
+ /**
1022
+ * - Boolean which specifies if user is registered.
1023
+ */
727
1024
  user_exists?: boolean;
728
1025
  user?: UserSchema;
729
1026
  };
730
1027
  /** @returns {UserExistsResponse} */
731
1028
  declare function UserExistsResponse(): UserExistsResponse;
732
1029
  type UserExistsResponse = {
1030
+ /**
1031
+ * - Boolean which specifies if user is
1032
+ * registered or not.
1033
+ */
733
1034
  user_exists?: boolean;
734
1035
  };
735
1036
  /** @returns {SendOtpResponse} */
736
1037
  declare function SendOtpResponse(): SendOtpResponse;
737
1038
  type SendOtpResponse = {
1039
+ /**
1040
+ * - Time after which opt can be resent.
1041
+ */
738
1042
  resend_timer?: number;
1043
+ /**
1044
+ * - Unique token to identify the OTP send
1045
+ * request and resend the token.
1046
+ */
739
1047
  resend_token?: string;
1048
+ /**
1049
+ * - Specify if the OTP is successfully sent.
1050
+ */
740
1051
  success?: boolean;
1052
+ /**
1053
+ * - Unique request id for the OTP.
1054
+ */
741
1055
  request_id?: string;
1056
+ /**
1057
+ * - Message to specify the OTP send status. Eg.
1058
+ * OTP sent, failed to send OTP etc.
1059
+ */
742
1060
  message?: string;
1061
+ /**
1062
+ * - Phone number of user.
1063
+ */
743
1064
  mobile?: string;
1065
+ /**
1066
+ * - Country code for the phone number.
1067
+ */
744
1068
  country_code?: string;
1069
+ /**
1070
+ * - Email id of user.
1071
+ */
745
1072
  email?: string;
1073
+ /**
1074
+ * - Unique token to identify the OTP
1075
+ * send request and resend the token on email.
1076
+ */
746
1077
  resend_email_token?: string;
1078
+ /**
1079
+ * - Unique registration token for user.
1080
+ */
747
1081
  register_token?: string;
1082
+ /**
1083
+ * - If email OTP verification is
1084
+ * mandatory for registration.
1085
+ */
748
1086
  verify_email_otp?: boolean;
1087
+ /**
1088
+ * - If mobile OTP verification is
1089
+ * mandatory for registration.
1090
+ */
749
1091
  verify_mobile_otp?: boolean;
1092
+ /**
1093
+ * - If user is registered or not.
1094
+ */
750
1095
  user_exists?: boolean;
751
1096
  };
752
1097
  /** @returns {ProfileEditSuccess} */
753
1098
  declare function ProfileEditSuccess(): ProfileEditSuccess;
754
1099
  type ProfileEditSuccess = {
755
1100
  user?: UserSchema;
1101
+ /**
1102
+ * - Unique registration token for user.
1103
+ */
756
1104
  register_token?: string;
1105
+ /**
1106
+ * - Unique token to identify the
1107
+ * request for OTP verification in case of unverified email.
1108
+ */
757
1109
  resend_email_token?: string;
1110
+ /**
1111
+ * - If user is registered or not.
1112
+ */
758
1113
  user_exists?: boolean;
1114
+ /**
1115
+ * - Whether to send a link to verify
1116
+ * the registered email id of the user.
1117
+ */
759
1118
  verify_email_link?: boolean;
1119
+ /**
1120
+ * - Whether to send a OTP to verify the
1121
+ * registered email id of the user.
1122
+ */
760
1123
  verify_email_otp?: boolean;
1124
+ /**
1125
+ * - Whether to send a OTP to verify the
1126
+ * registered phone of the user.
1127
+ */
761
1128
  verify_mobile_otp?: boolean;
1129
+ /**
1130
+ * - Email id of user.
1131
+ */
762
1132
  email?: string;
1133
+ /**
1134
+ * - A random uuid string used to track the request.
1135
+ */
763
1136
  request_id?: string;
1137
+ /**
1138
+ * - The country specific prefix for the phone number.
1139
+ */
764
1140
  country_code?: string;
1141
+ /**
1142
+ * - The user's mobile number without the country code.
1143
+ */
765
1144
  mobile?: string;
1145
+ /**
1146
+ * - Whether the operation was successful.
1147
+ */
766
1148
  success?: boolean;
1149
+ /**
1150
+ * - Information about the operation's result.
1151
+ */
767
1152
  message?: string;
1153
+ /**
1154
+ * - Time in seconds before an request can be resent.
1155
+ */
768
1156
  resend_timer?: number;
1157
+ /**
1158
+ * - A token used to authorize the resending of request.
1159
+ */
769
1160
  resend_token?: string;
770
1161
  };
771
1162
  /** @returns {LoginSuccess} */
772
1163
  declare function LoginSuccess(): LoginSuccess;
773
1164
  type LoginSuccess = {
774
1165
  user?: UserSchema;
1166
+ /**
1167
+ * - A random uuid string used to track the send
1168
+ * OTP response.
1169
+ */
775
1170
  request_id?: string;
1171
+ /**
1172
+ * - A token used for registration purposes.
1173
+ */
776
1174
  register_token?: string;
777
1175
  };
778
1176
  /** @returns {ResetForgotPasswordSuccess} */
779
1177
  declare function ResetForgotPasswordSuccess(): ResetForgotPasswordSuccess;
780
1178
  type ResetForgotPasswordSuccess = {
1179
+ /**
1180
+ * - Whether the password reset operation was successful.
1181
+ */
781
1182
  success?: boolean;
782
1183
  };
783
1184
  /** @returns {VerifyOtpSuccess} */
784
1185
  declare function VerifyOtpSuccess(): VerifyOtpSuccess;
785
1186
  type VerifyOtpSuccess = {
786
1187
  user?: UserSchema;
1188
+ /**
1189
+ * - Whether the user already exists.
1190
+ */
787
1191
  user_exists?: boolean;
1192
+ /**
1193
+ * - A token used for registration purposes.
1194
+ */
788
1195
  register_token?: string;
789
1196
  };
790
1197
  /** @returns {VerifyForgotOtpSuccess} */
791
1198
  declare function VerifyForgotOtpSuccess(): VerifyForgotOtpSuccess;
792
1199
  type VerifyForgotOtpSuccess = {
1200
+ /**
1201
+ * - Whether the OTP verification was successful.
1202
+ */
793
1203
  success?: boolean;
1204
+ /**
1205
+ * - A token used for resetting the forgotten password.
1206
+ */
794
1207
  forgot_token?: string;
795
1208
  };
796
1209
  /** @returns {ResetPasswordSuccess} */
797
1210
  declare function ResetPasswordSuccess(): ResetPasswordSuccess;
798
1211
  type ResetPasswordSuccess = {
1212
+ /**
1213
+ * - Status of the password reset operation.
1214
+ */
799
1215
  status?: string;
800
1216
  };
801
1217
  /** @returns {RegisterFormSuccess} */
802
1218
  declare function RegisterFormSuccess(): RegisterFormSuccess;
803
1219
  type RegisterFormSuccess = {
1220
+ /**
1221
+ * - The email address provided during registration.
1222
+ */
804
1223
  email?: string;
1224
+ /**
1225
+ * - The time in seconds before an OTP can be resent.
1226
+ */
805
1227
  resend_timer?: number;
1228
+ /**
1229
+ * - A token used to authorize the resending of an OTP.
1230
+ */
806
1231
  resend_token?: string;
1232
+ /**
1233
+ * - A token used to authorize the
1234
+ * resending of an OTP via email.
1235
+ */
807
1236
  resend_email_token?: string;
1237
+ /**
1238
+ * - A token used for completing the
1239
+ * registration process.
1240
+ */
808
1241
  register_token?: string;
1242
+ /**
1243
+ * - A boolean value indicating whether the
1244
+ * registration operation was successful.
1245
+ */
809
1246
  success?: boolean;
1247
+ /**
1248
+ * - A random uuid string used to track the
1249
+ * registration response.
1250
+ */
810
1251
  request_id?: string;
1252
+ /**
1253
+ * - A string containing additional information
1254
+ * about the operation's result.
1255
+ */
811
1256
  message?: string;
1257
+ /**
1258
+ * - The user's phone mobile without the country code.
1259
+ */
812
1260
  mobile?: string;
1261
+ /**
1262
+ * - The country specific prefix for the phone number.
1263
+ */
813
1264
  country_code?: string;
1265
+ /**
1266
+ * - Whether email OTP verification is required.
1267
+ */
814
1268
  verify_email_otp?: boolean;
1269
+ /**
1270
+ * - Whether mobile OTP verification is required.
1271
+ */
815
1272
  verify_mobile_otp?: boolean;
1273
+ /**
1274
+ * - Whether the user already exists.
1275
+ */
816
1276
  user_exists?: boolean;
817
1277
  };
818
1278
  /** @returns {VerifyEmailSuccess} */
819
1279
  declare function VerifyEmailSuccess(): VerifyEmailSuccess;
820
1280
  type VerifyEmailSuccess = {
1281
+ /**
1282
+ * - Result of the email verification process.
1283
+ */
821
1284
  message?: string;
822
1285
  };
823
1286
  /** @returns {HasPasswordSuccess} */
824
1287
  declare function HasPasswordSuccess(): HasPasswordSuccess;
825
1288
  type HasPasswordSuccess = {
1289
+ /**
1290
+ * - An integer value indicating whether the user
1291
+ * has set a password (1 for true, 0 for false).
1292
+ */
826
1293
  result?: number;
827
1294
  };
828
1295
  /** @returns {LogoutSuccess} */
829
1296
  declare function LogoutSuccess(): LogoutSuccess;
830
1297
  type LogoutSuccess = {
1298
+ /**
1299
+ * - Whether the logout operation was successful.
1300
+ */
831
1301
  logout?: boolean;
832
1302
  };
833
1303
  /** @returns {DeleteUserSuccess} */
834
1304
  declare function DeleteUserSuccess(): DeleteUserSuccess;
835
1305
  type DeleteUserSuccess = {
1306
+ /**
1307
+ * - Whether the user deletion operation was successful.
1308
+ */
836
1309
  success?: boolean;
837
1310
  };
838
1311
  /** @returns {OtpSuccess} */
839
1312
  declare function OtpSuccess(): OtpSuccess;
840
1313
  type OtpSuccess = {
1314
+ /**
1315
+ * - The time in seconds before an OTP can be resent.
1316
+ */
841
1317
  resend_timer?: number;
1318
+ /**
1319
+ * - A token used to authorize the resending of an OTP.
1320
+ */
842
1321
  resend_token?: string;
1322
+ /**
1323
+ * - A token used for completing the
1324
+ * registration process.
1325
+ */
843
1326
  register_token?: string;
1327
+ /**
1328
+ * - Whether the OTP send operation was successful.
1329
+ */
844
1330
  success?: boolean;
1331
+ /**
1332
+ * - A random uuid string used to track the OTP
1333
+ * send response.
1334
+ */
845
1335
  request_id?: string;
1336
+ /**
1337
+ * - Additional information about the operation's result.
1338
+ */
846
1339
  message?: string;
1340
+ /**
1341
+ * - The user's mobile number without the country code.
1342
+ */
847
1343
  mobile?: string;
1344
+ /**
1345
+ * - The country specific prefix for the phone number.
1346
+ */
848
1347
  country_code?: string;
849
1348
  };
850
1349
  /** @returns {EmailOtpSuccess} */
851
1350
  declare function EmailOtpSuccess(): EmailOtpSuccess;
852
1351
  type EmailOtpSuccess = {
1352
+ /**
1353
+ * - Whether the OTP send operation was successful.
1354
+ */
853
1355
  success?: boolean;
1356
+ /**
1357
+ * - A token used to authorize the
1358
+ * resending of an OTP via email.
1359
+ */
854
1360
  resend_email_token?: string;
855
1361
  };
856
1362
  /** @returns {SessionListSuccess} */
857
1363
  declare function SessionListSuccess(): SessionListSuccess;
858
1364
  type SessionListSuccess = {
1365
+ /**
1366
+ * - An array of active session identifiers.
1367
+ */
859
1368
  sessions?: string[];
860
1369
  };
861
1370
  /** @returns {VerifyMobileOTPSuccess} */
862
1371
  declare function VerifyMobileOTPSuccess(): VerifyMobileOTPSuccess;
863
1372
  type VerifyMobileOTPSuccess = {
864
1373
  user?: UserSchema;
1374
+ /**
1375
+ * - Whether the mobile number
1376
+ * verification link was successful.
1377
+ */
865
1378
  verify_mobile_link?: boolean;
866
1379
  };
867
1380
  /** @returns {VerifyEmailOTPSuccess} */
868
1381
  declare function VerifyEmailOTPSuccess(): VerifyEmailOTPSuccess;
869
1382
  type VerifyEmailOTPSuccess = {
870
1383
  user?: UserSchema;
1384
+ /**
1385
+ * - Whether the email verification link
1386
+ * was successful.
1387
+ */
871
1388
  verify_email_link?: boolean;
872
1389
  };
873
1390
  /** @returns {SendMobileVerifyLinkSuccess} */
874
1391
  declare function SendMobileVerifyLinkSuccess(): SendMobileVerifyLinkSuccess;
875
1392
  type SendMobileVerifyLinkSuccess = {
1393
+ /**
1394
+ * - Whether the mobile verification
1395
+ * link was successfully sent.
1396
+ */
876
1397
  verify_mobile_link?: boolean;
877
1398
  };
878
1399
  /** @returns {SendEmailVerifyLinkSuccess} */
879
1400
  declare function SendEmailVerifyLinkSuccess(): SendEmailVerifyLinkSuccess;
880
1401
  type SendEmailVerifyLinkSuccess = {
1402
+ /**
1403
+ * - Whether the email verification link
1404
+ * was successfully sent.
1405
+ */
881
1406
  verify_email_link?: boolean;
882
1407
  };
883
1408
  /** @returns {APIError} */
884
1409
  declare function APIError(): APIError;
885
1410
  type APIError = {
1411
+ /**
1412
+ * - The error code representing the type of error.
1413
+ */
886
1414
  code?: string;
1415
+ /**
1416
+ * - A descriptive message providing more details
1417
+ * about the error.
1418
+ */
887
1419
  message?: string;
888
1420
  /**
889
- * - Error code description link
1421
+ * - A link to the error code description.
890
1422
  */
891
1423
  info?: string;
1424
+ /**
1425
+ * - A random uuid string used to track the api request.
1426
+ */
892
1427
  request_id?: string;
1428
+ /**
1429
+ * - The error message or stack trace.
1430
+ */
893
1431
  error?: string;
1432
+ /**
1433
+ * - Additional metadata associated with the error.
1434
+ */
894
1435
  meta?: any;
1436
+ /**
1437
+ * - Whether the user is authenticated.
1438
+ */
895
1439
  authenticated?: boolean;
896
1440
  };
897
1441
  /** @returns {FormRegisterRequestSchemaPhone} */
898
1442
  declare function FormRegisterRequestSchemaPhone(): FormRegisterRequestSchemaPhone;
899
1443
  type FormRegisterRequestSchemaPhone = {
1444
+ /**
1445
+ * - Country code for mobile number.
1446
+ */
900
1447
  country_code?: string;
1448
+ /**
1449
+ * - The user's mobile number without the country code.
1450
+ */
901
1451
  mobile?: string;
902
1452
  };
903
1453
  /** @returns {OAuthRequestSchemaOauth2} */
904
1454
  declare function OAuthRequestSchemaOauth2(): OAuthRequestSchemaOauth2;
905
1455
  type OAuthRequestSchemaOauth2 = {
1456
+ /**
1457
+ * - The access token issued by the oauth2 provider.
1458
+ */
906
1459
  access_token?: string;
1460
+ /**
1461
+ * - The expiry time of the access token in
1462
+ * milliseconds since epoch.
1463
+ */
907
1464
  expiry?: number;
1465
+ /**
1466
+ * - The refresh token issued by the oauth2 provider.
1467
+ */
908
1468
  refresh_token?: string;
909
1469
  };
910
1470
  /** @returns {OAuthRequestSchemaProfile} */
911
1471
  declare function OAuthRequestSchemaProfile(): OAuthRequestSchemaProfile;
912
1472
  type OAuthRequestSchemaProfile = {
1473
+ /**
1474
+ * - The last name of the user.
1475
+ */
913
1476
  last_name?: string;
1477
+ /**
1478
+ * - The url of the user's profile picture.
1479
+ */
914
1480
  image?: string;
1481
+ /**
1482
+ * - The unique identifier of the user.
1483
+ */
915
1484
  id?: string;
1485
+ /**
1486
+ * - The email address of the user.
1487
+ */
916
1488
  email?: string;
1489
+ /**
1490
+ * - The full name of the user.
1491
+ */
917
1492
  full_name?: string;
1493
+ /**
1494
+ * - The first name of the user.
1495
+ */
918
1496
  first_name?: string;
919
1497
  };
920
1498
  /** @returns {OAuthRequestAppleSchemaOauth} */
921
1499
  declare function OAuthRequestAppleSchemaOauth(): OAuthRequestAppleSchemaOauth;
922
1500
  type OAuthRequestAppleSchemaOauth = {
1501
+ /**
1502
+ * - The identity token issued by apple.
1503
+ */
923
1504
  identity_token?: string;
924
1505
  };
925
1506
  /** @returns {OAuthRequestAppleSchemaProfile} */
926
1507
  declare function OAuthRequestAppleSchemaProfile(): OAuthRequestAppleSchemaProfile;
927
1508
  type OAuthRequestAppleSchemaProfile = {
1509
+ /**
1510
+ * - The last name of the user.
1511
+ */
928
1512
  last_name?: string;
1513
+ /**
1514
+ * - The full name of the user.
1515
+ */
929
1516
  full_name?: string;
1517
+ /**
1518
+ * - The first name of the user.
1519
+ */
930
1520
  first_name?: string;
931
1521
  };
932
1522
  /** @returns {PlatformSchema} */
933
1523
  declare function PlatformSchema(): PlatformSchema;
934
1524
  type PlatformSchema = {
1525
+ /**
1526
+ * - The display name of the platform.
1527
+ */
935
1528
  display?: string;
936
1529
  look_and_feel?: LookAndFeel;
1530
+ /**
1531
+ * - The date and time when the configuration
1532
+ * was last updated.
1533
+ */
937
1534
  updated_at?: string;
1535
+ /**
1536
+ * - Is the application config active or not .
1537
+ */
938
1538
  active?: boolean;
1539
+ /**
1540
+ * - Forgot password option to be given or
1541
+ * not to application user.
1542
+ */
939
1543
  forgot_password?: boolean;
940
1544
  login?: Login;
1545
+ /**
1546
+ * - Skip the captcha or not .
1547
+ */
941
1548
  skip_captcha?: boolean;
1549
+ /**
1550
+ * - Name of the application.
1551
+ */
942
1552
  name?: string;
943
1553
  meta?: MetaSchema;
1554
+ /**
1555
+ * - Unique document id of the platform config.
1556
+ */
944
1557
  _id?: string;
945
1558
  social?: Social;
946
1559
  required_fields?: RequiredFields;
947
1560
  register_required_fields?: RegisterRequiredFields;
1561
+ /**
1562
+ * - Whether to skip the login or not .
1563
+ */
948
1564
  skip_login?: boolean;
949
1565
  flash_card?: FlashCard;
1566
+ /**
1567
+ * - Text to be shown at the top of the flash card
1568
+ * like login to fynd, login to tira.
1569
+ */
950
1570
  subtext?: string;
951
1571
  social_tokens?: SocialTokens;
1572
+ /**
1573
+ * - When was the application platform config
1574
+ * document was created.
1575
+ */
952
1576
  created_at?: string;
1577
+ /**
1578
+ * - Whether to show the registration page on
1579
+ * landing page or not.
1580
+ */
953
1581
  register?: boolean;
1582
+ /**
1583
+ * - Image to be shown on registration page
1584
+ * for mobile devices.
1585
+ */
954
1586
  mobile_image?: string;
1587
+ /**
1588
+ * - Image to be shown on registration page
1589
+ * for desktop devices.
1590
+ */
955
1591
  desktop_image?: string;
1592
+ /**
1593
+ * - Number of days after which the user
1594
+ * account will be deleted.
1595
+ */
956
1596
  delete_account_day?: number;
1597
+ /**
1598
+ * - List of reasons
1599
+ * you can set to ask user when account is being deleted from application.
1600
+ */
957
1601
  delete_account_reasons?: DeleteAccountReasons[];
958
1602
  delete_account_consent?: DeleteAccountConsent;
959
1603
  session_config?: SessionExpiry;
1604
+ /**
1605
+ * - Version of the document.
1606
+ */
960
1607
  __v?: number;
961
1608
  };
962
1609
  /** @returns {LookAndFeel} */
963
1610
  declare function LookAndFeel(): LookAndFeel;
964
1611
  type LookAndFeel = {
1612
+ /**
1613
+ * - Position of the card eg right, left,
1614
+ * top-right etc.
1615
+ */
965
1616
  card_position?: string;
1617
+ /**
1618
+ * - Background colour of the card.
1619
+ */
966
1620
  background_color?: string;
967
1621
  };
968
1622
  /** @returns {Login} */
969
1623
  declare function Login(): Login;
970
1624
  type Login = {
1625
+ /**
1626
+ * - Application is providing login with password or not.
1627
+ */
971
1628
  password?: boolean;
1629
+ /**
1630
+ * - Application is providing login with OTP or not.
1631
+ */
972
1632
  otp?: boolean;
973
1633
  };
974
1634
  /** @returns {MetaSchema} */
975
1635
  declare function MetaSchema(): MetaSchema;
976
1636
  type MetaSchema = {
1637
+ /**
1638
+ * - One of the custom field that you are
1639
+ * storing in meta.
1640
+ */
977
1641
  fynd_default?: boolean;
978
1642
  };
979
1643
  /** @returns {Social} */
980
1644
  declare function Social(): Social;
981
1645
  type Social = {
1646
+ /**
1647
+ * - Is accountkit social login active for
1648
+ * application or not.
1649
+ */
982
1650
  account_kit?: boolean;
1651
+ /**
1652
+ * - Is facebook social login active for
1653
+ * application or not .
1654
+ */
983
1655
  facebook?: boolean;
1656
+ /**
1657
+ * - Is google social login active for application or not .
1658
+ */
984
1659
  google?: boolean;
1660
+ /**
1661
+ * - Is apple social login active for application or not.
1662
+ */
985
1663
  apple?: boolean;
986
1664
  };
987
1665
  /** @returns {RequiredFields} */
@@ -993,13 +1671,29 @@ type RequiredFields = {
993
1671
  /** @returns {PlatformEmail} */
994
1672
  declare function PlatformEmail(): PlatformEmail;
995
1673
  type PlatformEmail = {
1674
+ /**
1675
+ * - Is email mandatory for user to register
1676
+ * on a application or not.
1677
+ */
996
1678
  is_required?: boolean;
1679
+ /**
1680
+ * - Level of email mandatory hard is mandatory and
1681
+ * soft is optional.
1682
+ */
997
1683
  level?: string;
998
1684
  };
999
1685
  /** @returns {PlatformMobile} */
1000
1686
  declare function PlatformMobile(): PlatformMobile;
1001
1687
  type PlatformMobile = {
1688
+ /**
1689
+ * - Is mobile mandatory for user to register
1690
+ * on a application or not.
1691
+ */
1002
1692
  is_required?: boolean;
1693
+ /**
1694
+ * - Level of mobile mandatory hard is mandatory and
1695
+ * soft is optional.
1696
+ */
1003
1697
  level?: string;
1004
1698
  };
1005
1699
  /** @returns {RegisterRequiredFields} */
@@ -1011,20 +1705,46 @@ type RegisterRequiredFields = {
1011
1705
  /** @returns {RegisterRequiredFieldsEmail} */
1012
1706
  declare function RegisterRequiredFieldsEmail(): RegisterRequiredFieldsEmail;
1013
1707
  type RegisterRequiredFieldsEmail = {
1708
+ /**
1709
+ * - Is email mandatory for user to register
1710
+ * on a application or not.
1711
+ */
1014
1712
  is_required?: boolean;
1713
+ /**
1714
+ * - Level of email mandatory hard is mandatory and
1715
+ * soft is optional.
1716
+ */
1015
1717
  level?: string;
1016
1718
  };
1017
1719
  /** @returns {RegisterRequiredFieldsMobile} */
1018
1720
  declare function RegisterRequiredFieldsMobile(): RegisterRequiredFieldsMobile;
1019
1721
  type RegisterRequiredFieldsMobile = {
1722
+ /**
1723
+ * - Is mobile mandatory for user to register
1724
+ * on a application or not.
1725
+ */
1020
1726
  is_required?: boolean;
1727
+ /**
1728
+ * - Level of mobile mandatory hard is mandatory and
1729
+ * soft is optional.
1730
+ */
1021
1731
  level?: string;
1022
1732
  };
1023
1733
  /** @returns {FlashCard} */
1024
1734
  declare function FlashCard(): FlashCard;
1025
1735
  type FlashCard = {
1736
+ /**
1737
+ * - Text to be shown in the flash card.
1738
+ */
1026
1739
  text?: string;
1740
+ /**
1741
+ * - Text colour for the text in the flash card.
1742
+ */
1027
1743
  text_color?: string;
1744
+ /**
1745
+ * - Background colour of the text to be
1746
+ * shown on the flash card.
1747
+ */
1028
1748
  background_color?: string;
1029
1749
  };
1030
1750
  /** @returns {SocialTokens} */
@@ -1037,80 +1757,167 @@ type SocialTokens = {
1037
1757
  /** @returns {DeleteAccountReasons} */
1038
1758
  declare function DeleteAccountReasons(): DeleteAccountReasons;
1039
1759
  type DeleteAccountReasons = {
1760
+ /**
1761
+ * - Text of the reason to be shown to user.
1762
+ */
1040
1763
  reason_text?: string;
1764
+ /**
1765
+ * - Unique id of the reason .
1766
+ */
1041
1767
  reason_id?: string;
1768
+ /**
1769
+ * - A boolean whether to show text area or not.
1770
+ */
1042
1771
  show_text_area?: boolean;
1043
1772
  };
1044
1773
  /** @returns {DeleteAccountConsent} */
1045
1774
  declare function DeleteAccountConsent(): DeleteAccountConsent;
1046
1775
  type DeleteAccountConsent = {
1776
+ /**
1777
+ * - Consent text to be shown to user.
1778
+ */
1047
1779
  consent_text?: string;
1048
1780
  };
1049
1781
  /** @returns {Facebook} */
1050
1782
  declare function Facebook(): Facebook;
1051
1783
  type Facebook = {
1784
+ /**
1785
+ * - App id of the credentials facebook.
1786
+ */
1052
1787
  app_id?: string;
1053
1788
  };
1054
1789
  /** @returns {Accountkit} */
1055
1790
  declare function Accountkit(): Accountkit;
1056
1791
  type Accountkit = {
1792
+ /**
1793
+ * - App id of the credentials account kit.
1794
+ */
1057
1795
  app_id?: string;
1058
1796
  };
1059
1797
  /** @returns {Google} */
1060
1798
  declare function Google(): Google;
1061
1799
  type Google = {
1800
+ /**
1801
+ * - App id of the credentials google.
1802
+ */
1062
1803
  app_id?: string;
1063
1804
  };
1064
1805
  /** @returns {SessionExpiry} */
1065
1806
  declare function SessionExpiry(): SessionExpiry;
1066
1807
  type SessionExpiry = {
1808
+ /**
1809
+ * - Number of days or hours based on type till
1810
+ * which the session can be rolled back.
1811
+ */
1067
1812
  duration?: number;
1813
+ /**
1814
+ * - Days or hours the type of time for session rollback.
1815
+ */
1068
1816
  type?: string;
1817
+ /**
1818
+ * - Whether session needs to be rollback or not.
1819
+ */
1069
1820
  is_rolling?: boolean;
1070
1821
  };
1071
1822
  /** @returns {UserSchema} */
1072
1823
  declare function UserSchema(): UserSchema;
1073
1824
  type UserSchema = {
1825
+ /**
1826
+ * - Application id of the user.
1827
+ */
1074
1828
  application_id?: string;
1829
+ /**
1830
+ * - Unique id of the user.
1831
+ */
1075
1832
  user_id?: string;
1833
+ /**
1834
+ * - First name of the user.
1835
+ */
1076
1836
  first_name?: string;
1837
+ /**
1838
+ * - Metadata of the user, used to store details about the user
1839
+ */
1077
1840
  meta?: any;
1841
+ /**
1842
+ * - Last name of the user
1843
+ */
1078
1844
  last_name?: string;
1845
+ /**
1846
+ * - List of phone numbers of the user.
1847
+ */
1079
1848
  phone_numbers?: PhoneNumber[];
1849
+ /**
1850
+ * - List of email addresses of the user.
1851
+ */
1080
1852
  emails?: Email[];
1853
+ /**
1854
+ * - Gender of the user.
1855
+ */
1081
1856
  gender?: string;
1857
+ /**
1858
+ * - Date of birth of the user.
1859
+ */
1082
1860
  dob?: string;
1861
+ /**
1862
+ * - Is the user active.
1863
+ */
1083
1864
  active?: boolean;
1865
+ /**
1866
+ * - URL of the profile picture of the user.
1867
+ */
1084
1868
  profile_pic_url?: string;
1869
+ /**
1870
+ * - Unique username of the user.
1871
+ */
1085
1872
  username?: string;
1873
+ /**
1874
+ * - Type of user (user, programmatic (created
1875
+ * by system))
1876
+ */
1086
1877
  account_type?: string;
1878
+ /**
1879
+ * - Unique id of the user.
1880
+ */
1087
1881
  _id?: string;
1882
+ /**
1883
+ * - Date and time of user creation.
1884
+ */
1088
1885
  created_at?: string;
1886
+ /**
1887
+ * - Date and time of user update.
1888
+ */
1089
1889
  updated_at?: string;
1890
+ /**
1891
+ * - Unique id referencing any user external
1892
+ * documents (jio).
1893
+ */
1090
1894
  external_id?: string;
1895
+ /**
1896
+ * - Unique id referencing any user external documents.
1897
+ */
1091
1898
  rr_id?: string;
1092
1899
  };
1093
1900
  /** @returns {PhoneNumber} */
1094
1901
  declare function PhoneNumber(): PhoneNumber;
1095
1902
  type PhoneNumber = {
1096
1903
  /**
1097
- * - Phone number
1904
+ * - Phone number of the user.
1098
1905
  */
1099
1906
  phone?: string;
1100
1907
  /**
1101
- * - Country code
1908
+ * - Country code for mobile number.
1102
1909
  */
1103
1910
  country_code?: number;
1104
1911
  /**
1105
- * - Is the phone number active
1912
+ * - Is the phone number active.
1106
1913
  */
1107
1914
  active?: boolean;
1108
1915
  /**
1109
- * - Is it a primary phone number
1916
+ * - Is it a primary phone number.
1110
1917
  */
1111
1918
  primary?: boolean;
1112
1919
  /**
1113
- * - Is the phone number verified
1920
+ * - Is the phone number verified.
1114
1921
  */
1115
1922
  verified?: boolean;
1116
1923
  };
@@ -1118,19 +1925,19 @@ type PhoneNumber = {
1118
1925
  declare function Email(): Email;
1119
1926
  type Email = {
1120
1927
  /**
1121
- * - Email address
1928
+ * - Email address.
1122
1929
  */
1123
1930
  email?: string;
1124
1931
  /**
1125
- * - Is the email active
1932
+ * - Is the email active.
1126
1933
  */
1127
1934
  active?: boolean;
1128
1935
  /**
1129
- * - Is it a primary email
1936
+ * - Is it a primary email.
1130
1937
  */
1131
1938
  primary?: boolean;
1132
1939
  /**
1133
- * - Is the email verified
1940
+ * - Is the email verified.
1134
1941
  */
1135
1942
  verified?: boolean;
1136
1943
  };