@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +828 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  38. package/sdk/application/User/UserApplicationClient.js +4 -7
  39. package/sdk/application/User/UserApplicationModel.d.ts +769 -764
  40. package/sdk/application/User/UserApplicationModel.js +731 -741
  41. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  44. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  47. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  48. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  49. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  50. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  52. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  53. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  54. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  56. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
  58. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
  61. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
  62. package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
  63. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  64. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  65. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  66. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  71. package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
  72. package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
  73. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  74. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  75. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
  76. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  79. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
  81. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
  82. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
  83. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  84. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  85. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  86. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  87. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  88. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  89. package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
  90. package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
  91. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  92. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  93. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
  94. package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
  95. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  96. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  102. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  103. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  104. package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
  105. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  106. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  107. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  108. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  109. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  110. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  111. package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
  112. package/sdk/platform/User/UserPlatformModel.js +731 -661
  113. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  114. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  115. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  116. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  117. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  118. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  119. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  120. package/sdk/public/Content/ContentPublicModel.js +28 -28
  121. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  122. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  123. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  124. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  125. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  126. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -1,753 +1,686 @@
1
1
  export = UserApplicationModel;
2
2
  /**
3
- * @typedef Accountkit
4
- * @property {string} [app_id]
5
- */
6
- /**
7
- * @typedef APIError
8
- * @property {string} [code]
9
- * @property {string} [info] - Error code description link
10
- * @property {string} [message]
11
- * @property {Object} [meta]
12
- * @property {string} [request_id]
13
- */
14
- /**
15
- * @typedef AuthenticationApiErrorSchema
16
- * @property {string} [message]
17
- */
18
- /**
19
- * @typedef AuthenticationInternalServerErrorSchema
20
- * @property {string} [message]
21
- */
22
- /**
23
- * @typedef AuthSuccess
24
- * @property {string} [register_token]
25
- * @property {UserSchema} [user]
26
- * @property {boolean} [user_exists]
27
- */
28
- /**
29
- * @typedef CodeRequestBodySchema
30
- * @property {string} [code]
31
- */
32
- /**
33
- * @typedef DeleteAccountConsent
34
- * @property {string} [consent_text]
3
+ * @typedef UpdateUserAttributesRequest
4
+ * @property {Object} [attributes]
35
5
  */
36
6
  /**
37
- * @typedef DeleteAccountReasons
38
- * @property {string} [reason_id]
39
- * @property {string} [reason_text]
40
- * @property {boolean} [show_text_area]
7
+ * @typedef UserAttributes
8
+ * @property {Object} [attributes]
41
9
  */
42
10
  /**
43
11
  * @typedef DeleteApplicationUserRequestSchema
44
- * @property {string} [otp]
12
+ * @property {string} [user_id]
45
13
  * @property {string} [reason]
46
14
  * @property {string} [reason_id]
47
15
  * @property {string} [request_id]
48
- * @property {string} [user_id]
49
- */
50
- /**
51
- * @typedef DeleteUserSuccess
52
- * @property {boolean} [success]
16
+ * @property {string} [otp]
53
17
  */
54
18
  /**
55
19
  * @typedef EditEmailRequestSchema
56
20
  * @property {string} [email]
57
21
  */
58
22
  /**
59
- * @typedef EditMobileRequestSchema
23
+ * @typedef SendVerificationLinkMobileRequestSchema
24
+ * @property {boolean} [verified]
25
+ * @property {boolean} [active]
60
26
  * @property {string} [country_code]
61
27
  * @property {string} [phone]
28
+ * @property {boolean} [primary]
62
29
  */
63
30
  /**
64
- * @typedef EditProfileMobileSchema
31
+ * @typedef EditMobileRequestSchema
65
32
  * @property {string} [country_code]
66
33
  * @property {string} [phone]
67
34
  */
68
35
  /**
69
36
  * @typedef EditProfileRequestSchema
70
- * @property {string} [android_hash]
71
- * @property {string} [country_code]
72
- * @property {string} [dob]
73
- * @property {string} [email]
37
+ * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
74
38
  * @property {string} [first_name]
75
- * @property {string} [gender]
76
39
  * @property {string} [last_name]
77
40
  * @property {EditProfileMobileSchema} [mobile]
41
+ * @property {string} [country_code]
42
+ * @property {string} [email]
43
+ * @property {string} [gender]
44
+ * @property {string} [dob]
78
45
  * @property {string} [profile_pic_url]
79
- * @property {string} [register_token]
46
+ * @property {string} [android_hash]
80
47
  * @property {string} [sender]
48
+ * @property {string} [register_token]
81
49
  */
82
50
  /**
83
- * @typedef Email
84
- * @property {boolean} [active]
51
+ * @typedef EditProfileMobileSchema
52
+ * @property {string} [phone]
53
+ * @property {string} [country_code]
54
+ */
55
+ /**
56
+ * @typedef SendEmailOtpRequestSchema
85
57
  * @property {string} [email]
86
- * @property {boolean} [primary]
87
- * @property {boolean} [verified]
58
+ * @property {string} [action]
59
+ * @property {string} [token]
60
+ * @property {string} [register_token]
88
61
  */
89
62
  /**
90
- * @typedef EmailOtpSuccess
91
- * @property {boolean} [success]
63
+ * @typedef SendEmailForgotOtpRequestSchema
64
+ * @property {string} [email]
65
+ * @property {string} [action]
66
+ * @property {string} [token]
92
67
  */
93
68
  /**
94
- * @typedef Facebook
95
- * @property {string} [app_id]
69
+ * @typedef VerifyEmailOtpRequestSchema
70
+ * @property {string} [email]
71
+ * @property {string} [action]
72
+ * @property {string} [register_token]
73
+ * @property {string} [otp]
96
74
  */
97
75
  /**
98
- * @typedef FlashCard
99
- * @property {string} [background_color]
100
- * @property {string} [text]
101
- * @property {string} [text_color]
76
+ * @typedef VerifyEmailForgotOtpRequestSchema
77
+ * @property {string} [email]
78
+ * @property {string} [otp]
102
79
  */
103
80
  /**
104
- * @typedef ForgotPasswordRequestSchema
105
- * @property {string} [code]
106
- * @property {string} [password]
81
+ * @typedef VerifyOtpRequestSchema
82
+ * @property {string} [request_id]
83
+ * @property {string} [register_token]
84
+ * @property {string} [otp]
85
+ */
86
+ /**
87
+ * @typedef VerifyMobileForgotOtpRequestSchema
88
+ * @property {string} [request_id]
89
+ * @property {string} [otp]
90
+ */
91
+ /**
92
+ * @typedef SendMobileOtpRequestSchema
93
+ * @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]
100
+ */
101
+ /**
102
+ * @typedef SendMobileForgotOtpRequestSchema
103
+ * @property {string} [mobile]
104
+ * @property {string} [country_code]
105
+ * @property {string} [action]
106
+ * @property {string} [token]
107
+ * @property {string} [android_hash]
108
+ */
109
+ /**
110
+ * @typedef UpdatePasswordRequestSchema
111
+ * @property {string} [old_password]
112
+ * @property {string} [new_password]
107
113
  */
108
114
  /**
109
115
  * @typedef FormRegisterRequestSchema
110
- * @property {string} [email]
111
116
  * @property {string} [first_name]
112
- * @property {string} [gender]
113
117
  * @property {string} [last_name]
118
+ * @property {string} [gender]
119
+ * @property {string} [email]
114
120
  * @property {string} [password]
115
121
  * @property {FormRegisterRequestSchemaPhone} [phone]
116
122
  * @property {string} [register_token]
117
123
  */
118
124
  /**
119
- * @typedef FormRegisterRequestSchemaPhone
120
- * @property {string} [country_code]
121
- * @property {string} [mobile]
125
+ * @typedef TokenRequestBodySchema
126
+ * @property {string} [token]
122
127
  */
123
128
  /**
124
- * @typedef Google
125
- * @property {string} [app_id]
129
+ * @typedef ForgotPasswordRequestSchema
130
+ * @property {string} [code]
131
+ * @property {string} [password]
126
132
  */
127
133
  /**
128
- * @typedef HasPasswordSuccess
129
- * @property {boolean} [result]
134
+ * @typedef CodeRequestBodySchema
135
+ * @property {string} [code]
130
136
  */
131
137
  /**
132
- * @typedef Login
133
- * @property {boolean} [otp]
134
- * @property {boolean} [password]
138
+ * @typedef SendResetPasswordEmailRequestSchema
139
+ * @property {string} [email]
135
140
  */
136
141
  /**
137
- * @typedef LoginSuccess
138
- * @property {string} [register_token]
139
- * @property {string} [request_id]
140
- * @property {UserSchema} [user]
142
+ * @typedef SendResetPasswordMobileRequestSchema
143
+ * @property {string} [country_code]
144
+ * @property {string} [mobile]
141
145
  */
142
146
  /**
143
- * @typedef LogoutSuccess
144
- * @property {boolean} [logout]
147
+ * @typedef PasswordLoginRequestSchema
148
+ * @property {string} [password]
149
+ * @property {string} [username]
145
150
  */
146
151
  /**
147
- * @typedef LookAndFeel
148
- * @property {string} [background_color]
149
- * @property {string} [card_position]
152
+ * @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]
150
157
  */
151
158
  /**
152
- * @typedef MetaSchema
153
- * @property {boolean} [fynd_default]
159
+ * @typedef OAuthRequestSchema
160
+ * @property {boolean} [is_signed_in]
161
+ * @property {OAuthRequestSchemaOauth2} [oauth2]
162
+ * @property {OAuthRequestSchemaProfile} [profile]
154
163
  */
155
164
  /**
156
165
  * @typedef OAuthRequestAppleSchema
166
+ * @property {string} [user_identifier]
157
167
  * @property {OAuthRequestAppleSchemaOauth} [oauth]
158
168
  * @property {OAuthRequestAppleSchemaProfile} [profile]
159
- * @property {string} [user_identifier]
160
- */
161
- /**
162
- * @typedef OAuthRequestAppleSchemaOauth
163
- * @property {string} [identity_token]
164
169
  */
165
170
  /**
166
- * @typedef OAuthRequestAppleSchemaProfile
167
- * @property {string} [first_name]
168
- * @property {string} [full_name]
169
- * @property {string} [last_name]
171
+ * @typedef UserObjectSchema
172
+ * @property {UserSchema} [user]
170
173
  */
171
174
  /**
172
- * @typedef OAuthRequestSchema
173
- * @property {boolean} [is_signed_in]
174
- * @property {OAuthRequestSchemaOauth2} [oauth2]
175
- * @property {OAuthRequestSchemaProfile} [profile]
175
+ * @typedef AuthSuccess
176
+ * @property {string} [register_token]
177
+ * @property {boolean} [user_exists]
178
+ * @property {UserSchema} [user]
176
179
  */
177
180
  /**
178
- * @typedef OAuthRequestSchemaOauth2
179
- * @property {string} [access_token]
180
- * @property {number} [expiry]
181
- * @property {string} [refresh_token]
181
+ * @typedef UserExistsResponse
182
+ * @property {boolean} [user_exists]
182
183
  */
183
184
  /**
184
- * @typedef OAuthRequestSchemaProfile
185
+ * @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]
185
193
  * @property {string} [email]
186
- * @property {string} [first_name]
187
- * @property {string} [full_name]
188
- * @property {string} [id]
189
- * @property {string} [image]
190
- * @property {string} [last_name]
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]
191
199
  */
192
200
  /**
193
- * @typedef OtpSuccess
194
- * @property {string} [country_code]
195
- * @property {string} [message]
196
- * @property {string} [mobile]
201
+ * @typedef ProfileEditSuccess
202
+ * @property {UserSchema} [user]
197
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]
198
210
  * @property {string} [request_id]
211
+ * @property {string} [country_code]
212
+ * @property {string} [mobile]
213
+ * @property {boolean} [success]
214
+ * @property {string} [message]
199
215
  * @property {number} [resend_timer]
200
216
  * @property {string} [resend_token]
201
- * @property {boolean} [success]
202
217
  */
203
218
  /**
204
- * @typedef PasswordLoginRequestSchema
205
- * @property {string} [password]
206
- * @property {string} [username]
219
+ * @typedef LoginSuccess
220
+ * @property {UserSchema} [user]
221
+ * @property {string} [request_id]
222
+ * @property {string} [register_token]
207
223
  */
208
224
  /**
209
- * @typedef PhoneNumber
210
- * @property {boolean} [active]
211
- * @property {number} [country_code]
212
- * @property {string} [phone]
213
- * @property {boolean} [primary]
214
- * @property {boolean} [verified]
225
+ * @typedef ResetForgotPasswordSuccess
226
+ * @property {boolean} [success]
215
227
  */
216
228
  /**
217
- * @typedef PlatformEmail
218
- * @property {boolean} [is_required]
219
- * @property {string} [level]
229
+ * @typedef VerifyOtpSuccess
230
+ * @property {UserSchema} [user]
231
+ * @property {boolean} [user_exists]
232
+ * @property {string} [register_token]
220
233
  */
221
234
  /**
222
- * @typedef PlatformMobile
223
- * @property {boolean} [is_required]
224
- * @property {string} [level]
235
+ * @typedef VerifyForgotOtpSuccess
236
+ * @property {boolean} [success]
237
+ * @property {string} [forgot_token]
225
238
  */
226
239
  /**
227
- * @typedef PlatformSchema
228
- * @property {string} [_id]
229
- * @property {boolean} [active]
230
- * @property {string} [created_at]
231
- * @property {Object} [delete_account_consent]
232
- * @property {number} [delete_account_day]
233
- * @property {DeleteAccountReasons[]} [delete_account_reasons]
234
- * @property {string} [desktop_image]
235
- * @property {string} [display]
236
- * @property {FlashCard} [flash_card]
237
- * @property {boolean} [forgot_password]
238
- * @property {Login} [login]
239
- * @property {LookAndFeel} [look_and_feel]
240
- * @property {MetaSchema} [meta]
241
- * @property {string} [mobile_image]
242
- * @property {string} [name]
243
- * @property {boolean} [register]
244
- * @property {RegisterRequiredFields} [register_required_fields]
245
- * @property {RequiredFields} [required_fields]
246
- * @property {Object} [session_config]
247
- * @property {boolean} [skip_captcha]
248
- * @property {boolean} [skip_login]
249
- * @property {Social} [social]
250
- * @property {SocialTokens} [social_tokens]
251
- * @property {string} [subtext]
252
- * @property {string} [updated_at]
240
+ * @typedef ResetPasswordSuccess
241
+ * @property {string} [status]
253
242
  */
254
243
  /**
255
- * @typedef ProfileEditSuccess
256
- * @property {string} [country_code]
244
+ * @typedef RegisterFormSuccess
257
245
  * @property {string} [email]
258
- * @property {string} [message]
259
- * @property {string} [mobile]
260
- * @property {string} [register_token]
261
- * @property {string} [request_id]
262
- * @property {string} [resend_email_token]
263
246
  * @property {number} [resend_timer]
264
247
  * @property {string} [resend_token]
248
+ * @property {string} [resend_email_token]
249
+ * @property {string} [register_token]
265
250
  * @property {boolean} [success]
266
- * @property {UserSchema} [user]
267
- * @property {boolean} [user_exists]
268
- * @property {boolean} [verify_email_link]
269
- * @property {boolean} [verify_email_otp]
270
- * @property {boolean} [verify_mobile_otp]
271
- */
272
- /**
273
- * @typedef RegisterFormSuccess
274
- * @property {string} [country_code]
275
- * @property {string} [email]
251
+ * @property {string} [request_id]
276
252
  * @property {string} [message]
277
253
  * @property {string} [mobile]
278
- * @property {string} [register_token]
279
- * @property {string} [request_id]
280
- * @property {string} [resend_email_token]
281
- * @property {number} [resend_timer]
282
- * @property {string} [resend_token]
283
- * @property {boolean} [success]
284
- * @property {boolean} [user_exists]
254
+ * @property {string} [country_code]
285
255
  * @property {boolean} [verify_email_otp]
286
256
  * @property {boolean} [verify_mobile_otp]
257
+ * @property {boolean} [user_exists]
287
258
  */
288
259
  /**
289
- * @typedef RegisterRequiredFields
290
- * @property {RegisterRequiredFieldsEmail} [email]
291
- * @property {RegisterRequiredFieldsMobile} [mobile]
260
+ * @typedef VerifyEmailSuccess
261
+ * @property {string} [message]
292
262
  */
293
263
  /**
294
- * @typedef RegisterRequiredFieldsEmail
295
- * @property {boolean} [is_required]
296
- * @property {string} [level]
264
+ * @typedef HasPasswordSuccess
265
+ * @property {number} [result]
297
266
  */
298
267
  /**
299
- * @typedef RegisterRequiredFieldsMobile
300
- * @property {boolean} [is_required]
301
- * @property {string} [level]
268
+ * @typedef LogoutSuccess
269
+ * @property {boolean} [logout]
302
270
  */
303
271
  /**
304
- * @typedef RequiredFields
305
- * @property {PlatformEmail} [email]
306
- * @property {PlatformMobile} [mobile]
272
+ * @typedef DeleteUserSuccess
273
+ * @property {boolean} [success]
307
274
  */
308
275
  /**
309
- * @typedef ResetForgotPasswordSuccess
276
+ * @typedef OtpSuccess
277
+ * @property {number} [resend_timer]
278
+ * @property {string} [resend_token]
279
+ * @property {string} [register_token]
310
280
  * @property {boolean} [success]
281
+ * @property {string} [request_id]
282
+ * @property {string} [message]
283
+ * @property {string} [mobile]
284
+ * @property {string} [country_code]
311
285
  */
312
286
  /**
313
- * @typedef ResetPasswordSuccess
314
- * @property {string} [status]
287
+ * @typedef EmailOtpSuccess
288
+ * @property {boolean} [success]
289
+ * @property {string} [resend_email_token]
315
290
  */
316
291
  /**
317
- * @typedef SendEmailForgotOtpRequestSchema
318
- * @property {string} [action]
319
- * @property {string} [email]
320
- * @property {string} [token]
292
+ * @typedef SessionListSuccess
293
+ * @property {string[]} [sessions]
321
294
  */
322
295
  /**
323
- * @typedef SendEmailOtpRequestSchema
324
- * @property {string} [action]
325
- * @property {string} [email]
326
- * @property {string} [register_token]
327
- * @property {string} [token]
296
+ * @typedef VerifyMobileOTPSuccess
297
+ * @property {UserSchema} [user]
298
+ * @property {boolean} [verify_mobile_link]
328
299
  */
329
300
  /**
330
- * @typedef SendEmailVerifyLinkSuccess
301
+ * @typedef VerifyEmailOTPSuccess
302
+ * @property {UserSchema} [user]
331
303
  * @property {boolean} [verify_email_link]
332
304
  */
333
305
  /**
334
- * @typedef SendMobileForgotOtpRequestSchema
335
- * @property {string} [action]
336
- * @property {string} [android_hash]
337
- * @property {string} [country_code]
338
- * @property {string} [mobile]
339
- * @property {string} [token]
306
+ * @typedef SendMobileVerifyLinkSuccess
307
+ * @property {boolean} [verify_mobile_link]
340
308
  */
341
309
  /**
342
- * @typedef SendMobileOtpRequestSchema
343
- * @property {string} [action]
344
- * @property {string} [android_hash]
345
- * @property {string} [country_code]
346
- * @property {string} [force]
347
- * @property {string} [mobile]
348
- * @property {string} [token]
310
+ * @typedef SendEmailVerifyLinkSuccess
311
+ * @property {boolean} [verify_email_link]
349
312
  */
350
313
  /**
351
- * @typedef SendMobileVerifyLinkSuccess
352
- * @property {boolean} [verify_mobile_link]
314
+ * @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]
353
322
  */
354
323
  /**
355
- * @typedef SendOtpRequestSchema
356
- * @property {string} [android_hash]
324
+ * @typedef FormRegisterRequestSchemaPhone
357
325
  * @property {string} [country_code]
358
326
  * @property {string} [mobile]
359
327
  */
360
328
  /**
361
- * @typedef SendOtpResponse
362
- * @property {string} [country_code]
363
- * @property {string} [email]
364
- * @property {string} [message]
365
- * @property {string} [mobile]
366
- * @property {string} [register_token]
367
- * @property {string} [request_id]
368
- * @property {string} [resend_email_token]
369
- * @property {number} [resend_timer]
370
- * @property {string} [resend_token]
371
- * @property {boolean} [success]
372
- * @property {boolean} [user_exists]
373
- * @property {boolean} [verify_email_otp]
374
- * @property {boolean} [verify_mobile_otp]
329
+ * @typedef OAuthRequestSchemaOauth2
330
+ * @property {string} [access_token]
331
+ * @property {number} [expiry]
332
+ * @property {string} [refresh_token]
375
333
  */
376
334
  /**
377
- * @typedef SendResetPasswordEmailRequestSchema
335
+ * @typedef OAuthRequestSchemaProfile
336
+ * @property {string} [last_name]
337
+ * @property {string} [image]
338
+ * @property {string} [id]
378
339
  * @property {string} [email]
340
+ * @property {string} [full_name]
341
+ * @property {string} [first_name]
379
342
  */
380
343
  /**
381
- * @typedef SendResetPasswordMobileRequestSchema
382
- * @property {string} [country_code]
383
- * @property {string} [mobile]
344
+ * @typedef OAuthRequestAppleSchemaOauth
345
+ * @property {string} [identity_token]
384
346
  */
385
347
  /**
386
- * @typedef SendVerificationLinkMobileRequestSchema
348
+ * @typedef OAuthRequestAppleSchemaProfile
349
+ * @property {string} [last_name]
350
+ * @property {string} [full_name]
351
+ * @property {string} [first_name]
352
+ */
353
+ /**
354
+ * @typedef PlatformSchema
355
+ * @property {string} [display]
356
+ * @property {LookAndFeel} [look_and_feel]
357
+ * @property {string} [updated_at]
387
358
  * @property {boolean} [active]
388
- * @property {string} [country_code]
389
- * @property {string} [phone]
390
- * @property {boolean} [primary]
391
- * @property {boolean} [verified]
359
+ * @property {boolean} [forgot_password]
360
+ * @property {Login} [login]
361
+ * @property {boolean} [skip_captcha]
362
+ * @property {string} [name]
363
+ * @property {MetaSchema} [meta]
364
+ * @property {string} [_id]
365
+ * @property {Social} [social]
366
+ * @property {RequiredFields} [required_fields]
367
+ * @property {RegisterRequiredFields} [register_required_fields]
368
+ * @property {boolean} [skip_login]
369
+ * @property {FlashCard} [flash_card]
370
+ * @property {string} [subtext]
371
+ * @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]
378
+ * @property {DeleteAccountConsent} [delete_account_consent]
379
+ * @property {SessionExpiry} [session_config]
380
+ * @property {number} [__v]
392
381
  */
393
382
  /**
394
- * @typedef SessionExpiry
395
- * @property {number} [duration]
396
- * @property {boolean} [is_rolling]
397
- * @property {string} [type]
383
+ * @typedef LookAndFeel
384
+ * @property {string} [card_position]
385
+ * @property {string} [background_color]
398
386
  */
399
387
  /**
400
- * @typedef SessionListSuccess
401
- * @property {string[]} [sessions]
388
+ * @typedef Login
389
+ * @property {boolean} [password]
390
+ * @property {boolean} [otp]
391
+ */
392
+ /**
393
+ * @typedef MetaSchema
394
+ * @property {boolean} [fynd_default]
402
395
  */
403
396
  /**
404
397
  * @typedef Social
405
398
  * @property {boolean} [account_kit]
406
- * @property {boolean} [apple]
407
399
  * @property {boolean} [facebook]
408
400
  * @property {boolean} [google]
401
+ * @property {boolean} [apple]
409
402
  */
410
403
  /**
411
- * @typedef SocialTokens
412
- * @property {Accountkit} [account_kit]
413
- * @property {Facebook} [facebook]
414
- * @property {Google} [google]
404
+ * @typedef RequiredFields
405
+ * @property {PlatformEmail} [email]
406
+ * @property {PlatformMobile} [mobile]
415
407
  */
416
408
  /**
417
- * @typedef TokenRequestBodySchema
418
- * @property {string} [token]
409
+ * @typedef PlatformEmail
410
+ * @property {boolean} [is_required]
411
+ * @property {string} [level]
419
412
  */
420
413
  /**
421
- * @typedef UpdatePasswordRequestSchema
422
- * @property {string} [new_password]
423
- * @property {string} [old_password]
414
+ * @typedef PlatformMobile
415
+ * @property {boolean} [is_required]
416
+ * @property {string} [level]
424
417
  */
425
418
  /**
426
- * @typedef UpdateUserAttributesRequest
427
- * @property {Object} [attributes]
419
+ * @typedef RegisterRequiredFields
420
+ * @property {RegisterRequiredFieldsEmail} [email]
421
+ * @property {RegisterRequiredFieldsMobile} [mobile]
428
422
  */
429
423
  /**
430
- * @typedef UserAttributes
431
- * @property {Object} [attributes]
424
+ * @typedef RegisterRequiredFieldsEmail
425
+ * @property {boolean} [is_required]
426
+ * @property {string} [level]
432
427
  */
433
428
  /**
434
- * @typedef UserExistsResponse
435
- * @property {boolean} [user_exists]
429
+ * @typedef RegisterRequiredFieldsMobile
430
+ * @property {boolean} [is_required]
431
+ * @property {string} [level]
436
432
  */
437
433
  /**
438
- * @typedef UserObjectSchema
439
- * @property {UserSchema} [user]
434
+ * @typedef FlashCard
435
+ * @property {string} [text]
436
+ * @property {string} [text_color]
437
+ * @property {string} [background_color]
440
438
  */
441
439
  /**
442
- * @typedef UserSchema
443
- * @property {string} [_id]
444
- * @property {string} [account_type]
445
- * @property {boolean} [active]
446
- * @property {string} [application_id]
447
- * @property {string} [created_at]
448
- * @property {string} [dob]
449
- * @property {Email[]} [emails]
450
- * @property {string} [first_name]
451
- * @property {string} [gender]
452
- * @property {string} [last_name]
453
- * @property {Object} [meta]
454
- * @property {PhoneNumber[]} [phone_numbers]
455
- * @property {string} [profile_pic_url]
456
- * @property {string} [updated_at]
457
- * @property {string} [user_id]
458
- * @property {string} [username]
440
+ * @typedef SocialTokens
441
+ * @property {Facebook} [facebook]
442
+ * @property {Accountkit} [accountkit]
443
+ * @property {Google} [google]
459
444
  */
460
445
  /**
461
- * @typedef VerifyEmailForgotOtpRequestSchema
462
- * @property {string} [email]
463
- * @property {string} [otp]
446
+ * @typedef DeleteAccountReasons
447
+ * @property {string} [reason_text]
448
+ * @property {string} [reason_id]
449
+ * @property {boolean} [show_text_area]
464
450
  */
465
451
  /**
466
- * @typedef VerifyEmailOtpRequestSchema
467
- * @property {string} [action]
468
- * @property {string} [email]
469
- * @property {string} [otp]
470
- * @property {string} [register_token]
452
+ * @typedef DeleteAccountConsent
453
+ * @property {string} [consent_text]
471
454
  */
472
455
  /**
473
- * @typedef VerifyEmailOTPSuccess
474
- * @property {UserSchema} [user]
475
- * @property {boolean} [verify_email_link]
456
+ * @typedef Facebook
457
+ * @property {string} [app_id]
476
458
  */
477
459
  /**
478
- * @typedef VerifyEmailSuccess
479
- * @property {string} [message]
460
+ * @typedef Accountkit
461
+ * @property {string} [app_id]
480
462
  */
481
463
  /**
482
- * @typedef VerifyForgotOtpSuccess
483
- * @property {string} [forgot_token]
484
- * @property {boolean} [success]
464
+ * @typedef Google
465
+ * @property {string} [app_id]
485
466
  */
486
467
  /**
487
- * @typedef VerifyMobileForgotOtpRequestSchema
488
- * @property {string} [otp]
489
- * @property {string} [request_id]
468
+ * @typedef SessionExpiry
469
+ * @property {number} [duration]
470
+ * @property {string} [type]
471
+ * @property {boolean} [is_rolling]
490
472
  */
491
473
  /**
492
- * @typedef VerifyMobileOTPSuccess
493
- * @property {UserSchema} [user]
494
- * @property {boolean} [verify_mobile_link]
474
+ * @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]
495
491
  */
496
492
  /**
497
- * @typedef VerifyOtpRequestSchema
498
- * @property {string} [otp]
499
- * @property {string} [register_token]
500
- * @property {string} [request_id]
493
+ * @typedef PhoneNumber
494
+ * @property {boolean} [active]
495
+ * @property {boolean} [primary]
496
+ * @property {boolean} [verified]
497
+ * @property {string} [phone]
498
+ * @property {number} [country_code]
501
499
  */
502
500
  /**
503
- * @typedef VerifyOtpSuccess
504
- * @property {string} [register_token]
505
- * @property {UserSchema} [user]
506
- * @property {boolean} [user_exists]
501
+ * @typedef Email
502
+ * @property {boolean} [primary]
503
+ * @property {boolean} [verified]
504
+ * @property {string} [email]
505
+ * @property {boolean} [active]
507
506
  */
508
507
  declare class UserApplicationModel {
509
508
  }
510
509
  declare namespace UserApplicationModel {
511
- export { Accountkit, APIError, AuthenticationApiErrorSchema, AuthenticationInternalServerErrorSchema, AuthSuccess, CodeRequestBodySchema, DeleteAccountConsent, DeleteAccountReasons, DeleteApplicationUserRequestSchema, DeleteUserSuccess, EditEmailRequestSchema, EditMobileRequestSchema, EditProfileMobileSchema, EditProfileRequestSchema, Email, EmailOtpSuccess, Facebook, FlashCard, ForgotPasswordRequestSchema, FormRegisterRequestSchema, FormRegisterRequestSchemaPhone, Google, HasPasswordSuccess, Login, LoginSuccess, LogoutSuccess, LookAndFeel, MetaSchema, OAuthRequestAppleSchema, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, OAuthRequestSchema, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OtpSuccess, PasswordLoginRequestSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, ProfileEditSuccess, RegisterFormSuccess, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, ResetForgotPasswordSuccess, ResetPasswordSuccess, SendEmailForgotOtpRequestSchema, SendEmailOtpRequestSchema, SendEmailVerifyLinkSuccess, SendMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileVerifyLinkSuccess, SendOtpRequestSchema, SendOtpResponse, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, SendVerificationLinkMobileRequestSchema, SessionExpiry, SessionListSuccess, Social, SocialTokens, TokenRequestBodySchema, UpdatePasswordRequestSchema, UpdateUserAttributesRequest, UserAttributes, UserExistsResponse, UserObjectSchema, UserSchema, VerifyEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailOTPSuccess, VerifyEmailSuccess, VerifyForgotOtpSuccess, VerifyMobileForgotOtpRequestSchema, VerifyMobileOTPSuccess, VerifyOtpRequestSchema, VerifyOtpSuccess };
510
+ export { UpdateUserAttributesRequest, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsResponse, SendOtpResponse, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, OtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
512
511
  }
513
- /** @returns {Accountkit} */
514
- declare function Accountkit(): Accountkit;
515
- type Accountkit = {
516
- app_id?: string;
517
- };
518
- /** @returns {APIError} */
519
- declare function APIError(): APIError;
520
- type APIError = {
521
- code?: string;
522
- /**
523
- * - Error code description link
524
- */
525
- info?: string;
526
- message?: string;
527
- meta?: any;
528
- request_id?: string;
529
- };
530
- /** @returns {AuthenticationApiErrorSchema} */
531
- declare function AuthenticationApiErrorSchema(): AuthenticationApiErrorSchema;
532
- type AuthenticationApiErrorSchema = {
533
- message?: string;
534
- };
535
- /** @returns {AuthenticationInternalServerErrorSchema} */
536
- declare function AuthenticationInternalServerErrorSchema(): AuthenticationInternalServerErrorSchema;
537
- type AuthenticationInternalServerErrorSchema = {
538
- message?: string;
539
- };
540
- /** @returns {AuthSuccess} */
541
- declare function AuthSuccess(): AuthSuccess;
542
- type AuthSuccess = {
543
- register_token?: string;
544
- user?: UserSchema;
545
- user_exists?: boolean;
546
- };
547
- /** @returns {CodeRequestBodySchema} */
548
- declare function CodeRequestBodySchema(): CodeRequestBodySchema;
549
- type CodeRequestBodySchema = {
550
- code?: string;
551
- };
552
- /** @returns {DeleteAccountConsent} */
553
- declare function DeleteAccountConsent(): DeleteAccountConsent;
554
- type DeleteAccountConsent = {
555
- consent_text?: string;
512
+ /** @returns {UpdateUserAttributesRequest} */
513
+ declare function UpdateUserAttributesRequest(): UpdateUserAttributesRequest;
514
+ type UpdateUserAttributesRequest = {
515
+ attributes?: any;
556
516
  };
557
- /** @returns {DeleteAccountReasons} */
558
- declare function DeleteAccountReasons(): DeleteAccountReasons;
559
- type DeleteAccountReasons = {
560
- reason_id?: string;
561
- reason_text?: string;
562
- show_text_area?: boolean;
517
+ /** @returns {UserAttributes} */
518
+ declare function UserAttributes(): UserAttributes;
519
+ type UserAttributes = {
520
+ attributes?: any;
563
521
  };
564
522
  /** @returns {DeleteApplicationUserRequestSchema} */
565
523
  declare function DeleteApplicationUserRequestSchema(): DeleteApplicationUserRequestSchema;
566
524
  type DeleteApplicationUserRequestSchema = {
567
- otp?: string;
525
+ user_id?: string;
568
526
  reason?: string;
569
527
  reason_id?: string;
570
528
  request_id?: string;
571
- user_id?: string;
572
- };
573
- /** @returns {DeleteUserSuccess} */
574
- declare function DeleteUserSuccess(): DeleteUserSuccess;
575
- type DeleteUserSuccess = {
576
- success?: boolean;
529
+ otp?: string;
577
530
  };
578
531
  /** @returns {EditEmailRequestSchema} */
579
532
  declare function EditEmailRequestSchema(): EditEmailRequestSchema;
580
533
  type EditEmailRequestSchema = {
581
534
  email?: string;
582
535
  };
583
- /** @returns {EditMobileRequestSchema} */
584
- declare function EditMobileRequestSchema(): EditMobileRequestSchema;
585
- type EditMobileRequestSchema = {
536
+ /** @returns {SendVerificationLinkMobileRequestSchema} */
537
+ declare function SendVerificationLinkMobileRequestSchema(): SendVerificationLinkMobileRequestSchema;
538
+ type SendVerificationLinkMobileRequestSchema = {
539
+ verified?: boolean;
540
+ active?: boolean;
586
541
  country_code?: string;
587
542
  phone?: string;
543
+ primary?: boolean;
588
544
  };
589
- /** @returns {EditProfileMobileSchema} */
590
- declare function EditProfileMobileSchema(): EditProfileMobileSchema;
591
- type EditProfileMobileSchema = {
545
+ /** @returns {EditMobileRequestSchema} */
546
+ declare function EditMobileRequestSchema(): EditMobileRequestSchema;
547
+ type EditMobileRequestSchema = {
592
548
  country_code?: string;
593
549
  phone?: string;
594
550
  };
595
551
  /** @returns {EditProfileRequestSchema} */
596
552
  declare function EditProfileRequestSchema(): EditProfileRequestSchema;
597
553
  type EditProfileRequestSchema = {
598
- android_hash?: string;
599
- country_code?: string;
600
- dob?: string;
601
- email?: string;
554
+ /**
555
+ * - Set to true if you want to encrypt the OTP.
556
+ */
557
+ encrypt_otp?: boolean;
602
558
  first_name?: string;
603
- gender?: string;
604
559
  last_name?: string;
605
560
  mobile?: EditProfileMobileSchema;
561
+ country_code?: string;
562
+ email?: string;
563
+ gender?: string;
564
+ dob?: string;
606
565
  profile_pic_url?: string;
607
- register_token?: string;
566
+ android_hash?: string;
608
567
  sender?: string;
568
+ register_token?: string;
609
569
  };
610
- /** @returns {Email} */
611
- declare function Email(): Email;
612
- type Email = {
613
- active?: boolean;
614
- email?: string;
615
- primary?: boolean;
616
- verified?: boolean;
617
- };
618
- /** @returns {EmailOtpSuccess} */
619
- declare function EmailOtpSuccess(): EmailOtpSuccess;
620
- type EmailOtpSuccess = {
621
- success?: boolean;
622
- };
623
- /** @returns {Facebook} */
624
- declare function Facebook(): Facebook;
625
- type Facebook = {
626
- app_id?: string;
570
+ /** @returns {EditProfileMobileSchema} */
571
+ declare function EditProfileMobileSchema(): EditProfileMobileSchema;
572
+ type EditProfileMobileSchema = {
573
+ phone?: string;
574
+ country_code?: string;
627
575
  };
628
- /** @returns {FlashCard} */
629
- declare function FlashCard(): FlashCard;
630
- type FlashCard = {
631
- background_color?: string;
632
- text?: string;
633
- text_color?: string;
576
+ /** @returns {SendEmailOtpRequestSchema} */
577
+ declare function SendEmailOtpRequestSchema(): SendEmailOtpRequestSchema;
578
+ type SendEmailOtpRequestSchema = {
579
+ email?: string;
580
+ action?: string;
581
+ token?: string;
582
+ register_token?: string;
634
583
  };
635
- /** @returns {ForgotPasswordRequestSchema} */
636
- declare function ForgotPasswordRequestSchema(): ForgotPasswordRequestSchema;
637
- type ForgotPasswordRequestSchema = {
638
- code?: string;
639
- password?: string;
584
+ /** @returns {SendEmailForgotOtpRequestSchema} */
585
+ declare function SendEmailForgotOtpRequestSchema(): SendEmailForgotOtpRequestSchema;
586
+ type SendEmailForgotOtpRequestSchema = {
587
+ email?: string;
588
+ action?: string;
589
+ token?: string;
640
590
  };
641
- /** @returns {FormRegisterRequestSchema} */
642
- declare function FormRegisterRequestSchema(): FormRegisterRequestSchema;
643
- type FormRegisterRequestSchema = {
591
+ /** @returns {VerifyEmailOtpRequestSchema} */
592
+ declare function VerifyEmailOtpRequestSchema(): VerifyEmailOtpRequestSchema;
593
+ type VerifyEmailOtpRequestSchema = {
644
594
  email?: string;
645
- first_name?: string;
646
- gender?: string;
647
- last_name?: string;
648
- password?: string;
649
- phone?: FormRegisterRequestSchemaPhone;
595
+ action?: string;
650
596
  register_token?: string;
597
+ otp?: string;
651
598
  };
652
- /** @returns {FormRegisterRequestSchemaPhone} */
653
- declare function FormRegisterRequestSchemaPhone(): FormRegisterRequestSchemaPhone;
654
- type FormRegisterRequestSchemaPhone = {
655
- country_code?: string;
656
- mobile?: string;
657
- };
658
- /** @returns {Google} */
659
- declare function Google(): Google;
660
- type Google = {
661
- app_id?: string;
662
- };
663
- /** @returns {HasPasswordSuccess} */
664
- declare function HasPasswordSuccess(): HasPasswordSuccess;
665
- type HasPasswordSuccess = {
666
- result?: boolean;
667
- };
668
- /** @returns {Login} */
669
- declare function Login(): Login;
670
- type Login = {
671
- otp?: boolean;
672
- password?: boolean;
599
+ /** @returns {VerifyEmailForgotOtpRequestSchema} */
600
+ declare function VerifyEmailForgotOtpRequestSchema(): VerifyEmailForgotOtpRequestSchema;
601
+ type VerifyEmailForgotOtpRequestSchema = {
602
+ email?: string;
603
+ otp?: string;
673
604
  };
674
- /** @returns {LoginSuccess} */
675
- declare function LoginSuccess(): LoginSuccess;
676
- type LoginSuccess = {
677
- register_token?: string;
605
+ /** @returns {VerifyOtpRequestSchema} */
606
+ declare function VerifyOtpRequestSchema(): VerifyOtpRequestSchema;
607
+ type VerifyOtpRequestSchema = {
678
608
  request_id?: string;
679
- user?: UserSchema;
680
- };
681
- /** @returns {LogoutSuccess} */
682
- declare function LogoutSuccess(): LogoutSuccess;
683
- type LogoutSuccess = {
684
- logout?: boolean;
609
+ register_token?: string;
610
+ otp?: string;
685
611
  };
686
- /** @returns {LookAndFeel} */
687
- declare function LookAndFeel(): LookAndFeel;
688
- type LookAndFeel = {
689
- background_color?: string;
690
- card_position?: string;
612
+ /** @returns {VerifyMobileForgotOtpRequestSchema} */
613
+ declare function VerifyMobileForgotOtpRequestSchema(): VerifyMobileForgotOtpRequestSchema;
614
+ type VerifyMobileForgotOtpRequestSchema = {
615
+ request_id?: string;
616
+ otp?: string;
691
617
  };
692
- /** @returns {MetaSchema} */
693
- declare function MetaSchema(): MetaSchema;
694
- type MetaSchema = {
695
- fynd_default?: boolean;
618
+ /** @returns {SendMobileOtpRequestSchema} */
619
+ declare function SendMobileOtpRequestSchema(): SendMobileOtpRequestSchema;
620
+ type SendMobileOtpRequestSchema = {
621
+ /**
622
+ * - Set to true if you want to encrypt the OTP.
623
+ */
624
+ encrypt_otp?: boolean;
625
+ mobile?: string;
626
+ country_code?: string;
627
+ action?: string;
628
+ token?: string;
629
+ android_hash?: string;
630
+ force?: string;
696
631
  };
697
- /** @returns {OAuthRequestAppleSchema} */
698
- declare function OAuthRequestAppleSchema(): OAuthRequestAppleSchema;
699
- type OAuthRequestAppleSchema = {
700
- oauth?: OAuthRequestAppleSchemaOauth;
701
- profile?: OAuthRequestAppleSchemaProfile;
702
- user_identifier?: string;
632
+ /** @returns {SendMobileForgotOtpRequestSchema} */
633
+ declare function SendMobileForgotOtpRequestSchema(): SendMobileForgotOtpRequestSchema;
634
+ type SendMobileForgotOtpRequestSchema = {
635
+ mobile?: string;
636
+ country_code?: string;
637
+ action?: string;
638
+ token?: string;
639
+ android_hash?: string;
703
640
  };
704
- /** @returns {OAuthRequestAppleSchemaOauth} */
705
- declare function OAuthRequestAppleSchemaOauth(): OAuthRequestAppleSchemaOauth;
706
- type OAuthRequestAppleSchemaOauth = {
707
- identity_token?: string;
641
+ /** @returns {UpdatePasswordRequestSchema} */
642
+ declare function UpdatePasswordRequestSchema(): UpdatePasswordRequestSchema;
643
+ type UpdatePasswordRequestSchema = {
644
+ old_password?: string;
645
+ new_password?: string;
708
646
  };
709
- /** @returns {OAuthRequestAppleSchemaProfile} */
710
- declare function OAuthRequestAppleSchemaProfile(): OAuthRequestAppleSchemaProfile;
711
- type OAuthRequestAppleSchemaProfile = {
647
+ /** @returns {FormRegisterRequestSchema} */
648
+ declare function FormRegisterRequestSchema(): FormRegisterRequestSchema;
649
+ type FormRegisterRequestSchema = {
712
650
  first_name?: string;
713
- full_name?: string;
714
651
  last_name?: string;
652
+ gender?: string;
653
+ email?: string;
654
+ password?: string;
655
+ phone?: FormRegisterRequestSchemaPhone;
656
+ register_token?: string;
715
657
  };
716
- /** @returns {OAuthRequestSchema} */
717
- declare function OAuthRequestSchema(): OAuthRequestSchema;
718
- type OAuthRequestSchema = {
719
- is_signed_in?: boolean;
720
- oauth2?: OAuthRequestSchemaOauth2;
721
- profile?: OAuthRequestSchemaProfile;
658
+ /** @returns {TokenRequestBodySchema} */
659
+ declare function TokenRequestBodySchema(): TokenRequestBodySchema;
660
+ type TokenRequestBodySchema = {
661
+ token?: string;
722
662
  };
723
- /** @returns {OAuthRequestSchemaOauth2} */
724
- declare function OAuthRequestSchemaOauth2(): OAuthRequestSchemaOauth2;
725
- type OAuthRequestSchemaOauth2 = {
726
- access_token?: string;
727
- expiry?: number;
728
- refresh_token?: string;
663
+ /** @returns {ForgotPasswordRequestSchema} */
664
+ declare function ForgotPasswordRequestSchema(): ForgotPasswordRequestSchema;
665
+ type ForgotPasswordRequestSchema = {
666
+ code?: string;
667
+ password?: string;
729
668
  };
730
- /** @returns {OAuthRequestSchemaProfile} */
731
- declare function OAuthRequestSchemaProfile(): OAuthRequestSchemaProfile;
732
- type OAuthRequestSchemaProfile = {
669
+ /** @returns {CodeRequestBodySchema} */
670
+ declare function CodeRequestBodySchema(): CodeRequestBodySchema;
671
+ type CodeRequestBodySchema = {
672
+ code?: string;
673
+ };
674
+ /** @returns {SendResetPasswordEmailRequestSchema} */
675
+ declare function SendResetPasswordEmailRequestSchema(): SendResetPasswordEmailRequestSchema;
676
+ type SendResetPasswordEmailRequestSchema = {
733
677
  email?: string;
734
- first_name?: string;
735
- full_name?: string;
736
- id?: string;
737
- image?: string;
738
- last_name?: string;
739
678
  };
740
- /** @returns {OtpSuccess} */
741
- declare function OtpSuccess(): OtpSuccess;
742
- type OtpSuccess = {
679
+ /** @returns {SendResetPasswordMobileRequestSchema} */
680
+ declare function SendResetPasswordMobileRequestSchema(): SendResetPasswordMobileRequestSchema;
681
+ type SendResetPasswordMobileRequestSchema = {
743
682
  country_code?: string;
744
- message?: string;
745
683
  mobile?: string;
746
- register_token?: string;
747
- request_id?: string;
748
- resend_timer?: number;
749
- resend_token?: string;
750
- success?: boolean;
751
684
  };
752
685
  /** @returns {PasswordLoginRequestSchema} */
753
686
  declare function PasswordLoginRequestSchema(): PasswordLoginRequestSchema;
@@ -755,346 +688,418 @@ type PasswordLoginRequestSchema = {
755
688
  password?: string;
756
689
  username?: string;
757
690
  };
758
- /** @returns {PhoneNumber} */
759
- declare function PhoneNumber(): PhoneNumber;
760
- type PhoneNumber = {
761
- active?: boolean;
762
- country_code?: number;
763
- phone?: string;
764
- primary?: boolean;
765
- verified?: boolean;
691
+ /** @returns {SendOtpRequestSchema} */
692
+ declare function SendOtpRequestSchema(): SendOtpRequestSchema;
693
+ type SendOtpRequestSchema = {
694
+ /**
695
+ * - Set to true if you want to encrypt the OTP.
696
+ */
697
+ encrypt_otp?: boolean;
698
+ country_code?: string;
699
+ mobile?: string;
700
+ android_hash?: string;
766
701
  };
767
- /** @returns {PlatformEmail} */
768
- declare function PlatformEmail(): PlatformEmail;
769
- type PlatformEmail = {
770
- is_required?: boolean;
771
- level?: string;
702
+ /** @returns {OAuthRequestSchema} */
703
+ declare function OAuthRequestSchema(): OAuthRequestSchema;
704
+ type OAuthRequestSchema = {
705
+ is_signed_in?: boolean;
706
+ oauth2?: OAuthRequestSchemaOauth2;
707
+ profile?: OAuthRequestSchemaProfile;
772
708
  };
773
- /** @returns {PlatformMobile} */
774
- declare function PlatformMobile(): PlatformMobile;
775
- type PlatformMobile = {
776
- is_required?: boolean;
777
- level?: string;
709
+ /** @returns {OAuthRequestAppleSchema} */
710
+ declare function OAuthRequestAppleSchema(): OAuthRequestAppleSchema;
711
+ type OAuthRequestAppleSchema = {
712
+ user_identifier?: string;
713
+ oauth?: OAuthRequestAppleSchemaOauth;
714
+ profile?: OAuthRequestAppleSchemaProfile;
778
715
  };
779
- /** @returns {PlatformSchema} */
780
- declare function PlatformSchema(): PlatformSchema;
781
- type PlatformSchema = {
782
- _id?: string;
783
- active?: boolean;
784
- created_at?: string;
785
- delete_account_consent?: any;
786
- delete_account_day?: number;
787
- delete_account_reasons?: DeleteAccountReasons[];
788
- desktop_image?: string;
789
- display?: string;
790
- flash_card?: FlashCard;
791
- forgot_password?: boolean;
792
- login?: Login;
793
- look_and_feel?: LookAndFeel;
794
- meta?: MetaSchema;
795
- mobile_image?: string;
796
- name?: string;
797
- register?: boolean;
798
- register_required_fields?: RegisterRequiredFields;
799
- required_fields?: RequiredFields;
800
- session_config?: any;
801
- skip_captcha?: boolean;
802
- skip_login?: boolean;
803
- social?: Social;
804
- social_tokens?: SocialTokens;
805
- subtext?: string;
806
- updated_at?: string;
716
+ /** @returns {UserObjectSchema} */
717
+ declare function UserObjectSchema(): UserObjectSchema;
718
+ type UserObjectSchema = {
719
+ user?: UserSchema;
807
720
  };
808
- /** @returns {ProfileEditSuccess} */
809
- declare function ProfileEditSuccess(): ProfileEditSuccess;
810
- type ProfileEditSuccess = {
811
- country_code?: string;
812
- email?: string;
813
- message?: string;
814
- mobile?: string;
721
+ /** @returns {AuthSuccess} */
722
+ declare function AuthSuccess(): AuthSuccess;
723
+ type AuthSuccess = {
815
724
  register_token?: string;
816
- request_id?: string;
817
- resend_email_token?: string;
725
+ user_exists?: boolean;
726
+ user?: UserSchema;
727
+ };
728
+ /** @returns {UserExistsResponse} */
729
+ declare function UserExistsResponse(): UserExistsResponse;
730
+ type UserExistsResponse = {
731
+ user_exists?: boolean;
732
+ };
733
+ /** @returns {SendOtpResponse} */
734
+ declare function SendOtpResponse(): SendOtpResponse;
735
+ type SendOtpResponse = {
818
736
  resend_timer?: number;
819
737
  resend_token?: string;
820
738
  success?: boolean;
739
+ request_id?: string;
740
+ message?: string;
741
+ mobile?: string;
742
+ country_code?: string;
743
+ email?: string;
744
+ resend_email_token?: string;
745
+ register_token?: string;
746
+ verify_email_otp?: boolean;
747
+ verify_mobile_otp?: boolean;
748
+ user_exists?: boolean;
749
+ };
750
+ /** @returns {ProfileEditSuccess} */
751
+ declare function ProfileEditSuccess(): ProfileEditSuccess;
752
+ type ProfileEditSuccess = {
821
753
  user?: UserSchema;
754
+ register_token?: string;
755
+ resend_email_token?: string;
822
756
  user_exists?: boolean;
823
757
  verify_email_link?: boolean;
824
758
  verify_email_otp?: boolean;
825
759
  verify_mobile_otp?: boolean;
826
- };
827
- /** @returns {RegisterFormSuccess} */
828
- declare function RegisterFormSuccess(): RegisterFormSuccess;
829
- type RegisterFormSuccess = {
830
- country_code?: string;
831
760
  email?: string;
832
- message?: string;
833
- mobile?: string;
834
- register_token?: string;
835
761
  request_id?: string;
836
- resend_email_token?: string;
762
+ country_code?: string;
763
+ mobile?: string;
764
+ success?: boolean;
765
+ message?: string;
837
766
  resend_timer?: number;
838
767
  resend_token?: string;
839
- success?: boolean;
840
- user_exists?: boolean;
841
- verify_email_otp?: boolean;
842
- verify_mobile_otp?: boolean;
843
768
  };
844
- /** @returns {RegisterRequiredFields} */
845
- declare function RegisterRequiredFields(): RegisterRequiredFields;
846
- type RegisterRequiredFields = {
847
- email?: RegisterRequiredFieldsEmail;
848
- mobile?: RegisterRequiredFieldsMobile;
849
- };
850
- /** @returns {RegisterRequiredFieldsEmail} */
851
- declare function RegisterRequiredFieldsEmail(): RegisterRequiredFieldsEmail;
852
- type RegisterRequiredFieldsEmail = {
853
- is_required?: boolean;
854
- level?: string;
855
- };
856
- /** @returns {RegisterRequiredFieldsMobile} */
857
- declare function RegisterRequiredFieldsMobile(): RegisterRequiredFieldsMobile;
858
- type RegisterRequiredFieldsMobile = {
859
- is_required?: boolean;
860
- level?: string;
861
- };
862
- /** @returns {RequiredFields} */
863
- declare function RequiredFields(): RequiredFields;
864
- type RequiredFields = {
865
- email?: PlatformEmail;
866
- mobile?: PlatformMobile;
769
+ /** @returns {LoginSuccess} */
770
+ declare function LoginSuccess(): LoginSuccess;
771
+ type LoginSuccess = {
772
+ user?: UserSchema;
773
+ request_id?: string;
774
+ register_token?: string;
867
775
  };
868
776
  /** @returns {ResetForgotPasswordSuccess} */
869
777
  declare function ResetForgotPasswordSuccess(): ResetForgotPasswordSuccess;
870
778
  type ResetForgotPasswordSuccess = {
871
779
  success?: boolean;
872
780
  };
781
+ /** @returns {VerifyOtpSuccess} */
782
+ declare function VerifyOtpSuccess(): VerifyOtpSuccess;
783
+ type VerifyOtpSuccess = {
784
+ user?: UserSchema;
785
+ user_exists?: boolean;
786
+ register_token?: string;
787
+ };
788
+ /** @returns {VerifyForgotOtpSuccess} */
789
+ declare function VerifyForgotOtpSuccess(): VerifyForgotOtpSuccess;
790
+ type VerifyForgotOtpSuccess = {
791
+ success?: boolean;
792
+ forgot_token?: string;
793
+ };
873
794
  /** @returns {ResetPasswordSuccess} */
874
795
  declare function ResetPasswordSuccess(): ResetPasswordSuccess;
875
796
  type ResetPasswordSuccess = {
876
797
  status?: string;
877
798
  };
878
- /** @returns {SendEmailForgotOtpRequestSchema} */
879
- declare function SendEmailForgotOtpRequestSchema(): SendEmailForgotOtpRequestSchema;
880
- type SendEmailForgotOtpRequestSchema = {
881
- action?: string;
882
- email?: string;
883
- token?: string;
884
- };
885
- /** @returns {SendEmailOtpRequestSchema} */
886
- declare function SendEmailOtpRequestSchema(): SendEmailOtpRequestSchema;
887
- type SendEmailOtpRequestSchema = {
888
- action?: string;
799
+ /** @returns {RegisterFormSuccess} */
800
+ declare function RegisterFormSuccess(): RegisterFormSuccess;
801
+ type RegisterFormSuccess = {
889
802
  email?: string;
803
+ resend_timer?: number;
804
+ resend_token?: string;
805
+ resend_email_token?: string;
890
806
  register_token?: string;
891
- token?: string;
807
+ success?: boolean;
808
+ request_id?: string;
809
+ message?: string;
810
+ mobile?: string;
811
+ country_code?: string;
812
+ verify_email_otp?: boolean;
813
+ verify_mobile_otp?: boolean;
814
+ user_exists?: boolean;
892
815
  };
893
- /** @returns {SendEmailVerifyLinkSuccess} */
894
- declare function SendEmailVerifyLinkSuccess(): SendEmailVerifyLinkSuccess;
895
- type SendEmailVerifyLinkSuccess = {
896
- verify_email_link?: boolean;
816
+ /** @returns {VerifyEmailSuccess} */
817
+ declare function VerifyEmailSuccess(): VerifyEmailSuccess;
818
+ type VerifyEmailSuccess = {
819
+ message?: string;
897
820
  };
898
- /** @returns {SendMobileForgotOtpRequestSchema} */
899
- declare function SendMobileForgotOtpRequestSchema(): SendMobileForgotOtpRequestSchema;
900
- type SendMobileForgotOtpRequestSchema = {
901
- action?: string;
902
- android_hash?: string;
903
- country_code?: string;
904
- mobile?: string;
905
- token?: string;
821
+ /** @returns {HasPasswordSuccess} */
822
+ declare function HasPasswordSuccess(): HasPasswordSuccess;
823
+ type HasPasswordSuccess = {
824
+ result?: number;
906
825
  };
907
- /** @returns {SendMobileOtpRequestSchema} */
908
- declare function SendMobileOtpRequestSchema(): SendMobileOtpRequestSchema;
909
- type SendMobileOtpRequestSchema = {
910
- action?: string;
911
- android_hash?: string;
912
- country_code?: string;
913
- force?: string;
826
+ /** @returns {LogoutSuccess} */
827
+ declare function LogoutSuccess(): LogoutSuccess;
828
+ type LogoutSuccess = {
829
+ logout?: boolean;
830
+ };
831
+ /** @returns {DeleteUserSuccess} */
832
+ declare function DeleteUserSuccess(): DeleteUserSuccess;
833
+ type DeleteUserSuccess = {
834
+ success?: boolean;
835
+ };
836
+ /** @returns {OtpSuccess} */
837
+ declare function OtpSuccess(): OtpSuccess;
838
+ type OtpSuccess = {
839
+ resend_timer?: number;
840
+ resend_token?: string;
841
+ register_token?: string;
842
+ success?: boolean;
843
+ request_id?: string;
844
+ message?: string;
914
845
  mobile?: string;
915
- token?: string;
846
+ country_code?: string;
847
+ };
848
+ /** @returns {EmailOtpSuccess} */
849
+ declare function EmailOtpSuccess(): EmailOtpSuccess;
850
+ type EmailOtpSuccess = {
851
+ success?: boolean;
852
+ resend_email_token?: string;
853
+ };
854
+ /** @returns {SessionListSuccess} */
855
+ declare function SessionListSuccess(): SessionListSuccess;
856
+ type SessionListSuccess = {
857
+ sessions?: string[];
858
+ };
859
+ /** @returns {VerifyMobileOTPSuccess} */
860
+ declare function VerifyMobileOTPSuccess(): VerifyMobileOTPSuccess;
861
+ type VerifyMobileOTPSuccess = {
862
+ user?: UserSchema;
863
+ verify_mobile_link?: boolean;
864
+ };
865
+ /** @returns {VerifyEmailOTPSuccess} */
866
+ declare function VerifyEmailOTPSuccess(): VerifyEmailOTPSuccess;
867
+ type VerifyEmailOTPSuccess = {
868
+ user?: UserSchema;
869
+ verify_email_link?: boolean;
916
870
  };
917
871
  /** @returns {SendMobileVerifyLinkSuccess} */
918
872
  declare function SendMobileVerifyLinkSuccess(): SendMobileVerifyLinkSuccess;
919
873
  type SendMobileVerifyLinkSuccess = {
920
874
  verify_mobile_link?: boolean;
921
875
  };
922
- /** @returns {SendOtpRequestSchema} */
923
- declare function SendOtpRequestSchema(): SendOtpRequestSchema;
924
- type SendOtpRequestSchema = {
925
- android_hash?: string;
926
- country_code?: string;
927
- mobile?: string;
876
+ /** @returns {SendEmailVerifyLinkSuccess} */
877
+ declare function SendEmailVerifyLinkSuccess(): SendEmailVerifyLinkSuccess;
878
+ type SendEmailVerifyLinkSuccess = {
879
+ verify_email_link?: boolean;
928
880
  };
929
- /** @returns {SendOtpResponse} */
930
- declare function SendOtpResponse(): SendOtpResponse;
931
- type SendOtpResponse = {
932
- country_code?: string;
933
- email?: string;
881
+ /** @returns {APIError} */
882
+ declare function APIError(): APIError;
883
+ type APIError = {
884
+ code?: string;
934
885
  message?: string;
935
- mobile?: string;
936
- register_token?: string;
886
+ /**
887
+ * - Error code description link
888
+ */
889
+ info?: string;
937
890
  request_id?: string;
938
- resend_email_token?: string;
939
- resend_timer?: number;
940
- resend_token?: string;
941
- success?: boolean;
942
- user_exists?: boolean;
943
- verify_email_otp?: boolean;
944
- verify_mobile_otp?: boolean;
891
+ error?: string;
892
+ meta?: any;
893
+ authenticated?: boolean;
945
894
  };
946
- /** @returns {SendResetPasswordEmailRequestSchema} */
947
- declare function SendResetPasswordEmailRequestSchema(): SendResetPasswordEmailRequestSchema;
948
- type SendResetPasswordEmailRequestSchema = {
895
+ /** @returns {FormRegisterRequestSchemaPhone} */
896
+ declare function FormRegisterRequestSchemaPhone(): FormRegisterRequestSchemaPhone;
897
+ type FormRegisterRequestSchemaPhone = {
898
+ country_code?: string;
899
+ mobile?: string;
900
+ };
901
+ /** @returns {OAuthRequestSchemaOauth2} */
902
+ declare function OAuthRequestSchemaOauth2(): OAuthRequestSchemaOauth2;
903
+ type OAuthRequestSchemaOauth2 = {
904
+ access_token?: string;
905
+ expiry?: number;
906
+ refresh_token?: string;
907
+ };
908
+ /** @returns {OAuthRequestSchemaProfile} */
909
+ declare function OAuthRequestSchemaProfile(): OAuthRequestSchemaProfile;
910
+ type OAuthRequestSchemaProfile = {
911
+ last_name?: string;
912
+ image?: string;
913
+ id?: string;
949
914
  email?: string;
915
+ full_name?: string;
916
+ first_name?: string;
917
+ };
918
+ /** @returns {OAuthRequestAppleSchemaOauth} */
919
+ declare function OAuthRequestAppleSchemaOauth(): OAuthRequestAppleSchemaOauth;
920
+ type OAuthRequestAppleSchemaOauth = {
921
+ identity_token?: string;
950
922
  };
951
- /** @returns {SendResetPasswordMobileRequestSchema} */
952
- declare function SendResetPasswordMobileRequestSchema(): SendResetPasswordMobileRequestSchema;
953
- type SendResetPasswordMobileRequestSchema = {
954
- country_code?: string;
955
- mobile?: string;
923
+ /** @returns {OAuthRequestAppleSchemaProfile} */
924
+ declare function OAuthRequestAppleSchemaProfile(): OAuthRequestAppleSchemaProfile;
925
+ type OAuthRequestAppleSchemaProfile = {
926
+ last_name?: string;
927
+ full_name?: string;
928
+ first_name?: string;
956
929
  };
957
- /** @returns {SendVerificationLinkMobileRequestSchema} */
958
- declare function SendVerificationLinkMobileRequestSchema(): SendVerificationLinkMobileRequestSchema;
959
- type SendVerificationLinkMobileRequestSchema = {
930
+ /** @returns {PlatformSchema} */
931
+ declare function PlatformSchema(): PlatformSchema;
932
+ type PlatformSchema = {
933
+ display?: string;
934
+ look_and_feel?: LookAndFeel;
935
+ updated_at?: string;
960
936
  active?: boolean;
961
- country_code?: string;
962
- phone?: string;
963
- primary?: boolean;
964
- verified?: boolean;
937
+ forgot_password?: boolean;
938
+ login?: Login;
939
+ skip_captcha?: boolean;
940
+ name?: string;
941
+ meta?: MetaSchema;
942
+ _id?: string;
943
+ social?: Social;
944
+ required_fields?: RequiredFields;
945
+ register_required_fields?: RegisterRequiredFields;
946
+ skip_login?: boolean;
947
+ flash_card?: FlashCard;
948
+ subtext?: string;
949
+ social_tokens?: SocialTokens;
950
+ created_at?: string;
951
+ register?: boolean;
952
+ mobile_image?: string;
953
+ desktop_image?: string;
954
+ delete_account_day?: number;
955
+ delete_account_reasons?: DeleteAccountReasons[];
956
+ delete_account_consent?: DeleteAccountConsent;
957
+ session_config?: SessionExpiry;
958
+ __v?: number;
965
959
  };
966
- /** @returns {SessionExpiry} */
967
- declare function SessionExpiry(): SessionExpiry;
968
- type SessionExpiry = {
969
- duration?: number;
970
- is_rolling?: boolean;
971
- type?: string;
960
+ /** @returns {LookAndFeel} */
961
+ declare function LookAndFeel(): LookAndFeel;
962
+ type LookAndFeel = {
963
+ card_position?: string;
964
+ background_color?: string;
972
965
  };
973
- /** @returns {SessionListSuccess} */
974
- declare function SessionListSuccess(): SessionListSuccess;
975
- type SessionListSuccess = {
976
- sessions?: string[];
966
+ /** @returns {Login} */
967
+ declare function Login(): Login;
968
+ type Login = {
969
+ password?: boolean;
970
+ otp?: boolean;
971
+ };
972
+ /** @returns {MetaSchema} */
973
+ declare function MetaSchema(): MetaSchema;
974
+ type MetaSchema = {
975
+ fynd_default?: boolean;
977
976
  };
978
977
  /** @returns {Social} */
979
978
  declare function Social(): Social;
980
979
  type Social = {
981
980
  account_kit?: boolean;
982
- apple?: boolean;
983
981
  facebook?: boolean;
984
982
  google?: boolean;
983
+ apple?: boolean;
984
+ };
985
+ /** @returns {RequiredFields} */
986
+ declare function RequiredFields(): RequiredFields;
987
+ type RequiredFields = {
988
+ email?: PlatformEmail;
989
+ mobile?: PlatformMobile;
990
+ };
991
+ /** @returns {PlatformEmail} */
992
+ declare function PlatformEmail(): PlatformEmail;
993
+ type PlatformEmail = {
994
+ is_required?: boolean;
995
+ level?: string;
996
+ };
997
+ /** @returns {PlatformMobile} */
998
+ declare function PlatformMobile(): PlatformMobile;
999
+ type PlatformMobile = {
1000
+ is_required?: boolean;
1001
+ level?: string;
1002
+ };
1003
+ /** @returns {RegisterRequiredFields} */
1004
+ declare function RegisterRequiredFields(): RegisterRequiredFields;
1005
+ type RegisterRequiredFields = {
1006
+ email?: RegisterRequiredFieldsEmail;
1007
+ mobile?: RegisterRequiredFieldsMobile;
1008
+ };
1009
+ /** @returns {RegisterRequiredFieldsEmail} */
1010
+ declare function RegisterRequiredFieldsEmail(): RegisterRequiredFieldsEmail;
1011
+ type RegisterRequiredFieldsEmail = {
1012
+ is_required?: boolean;
1013
+ level?: string;
1014
+ };
1015
+ /** @returns {RegisterRequiredFieldsMobile} */
1016
+ declare function RegisterRequiredFieldsMobile(): RegisterRequiredFieldsMobile;
1017
+ type RegisterRequiredFieldsMobile = {
1018
+ is_required?: boolean;
1019
+ level?: string;
1020
+ };
1021
+ /** @returns {FlashCard} */
1022
+ declare function FlashCard(): FlashCard;
1023
+ type FlashCard = {
1024
+ text?: string;
1025
+ text_color?: string;
1026
+ background_color?: string;
985
1027
  };
986
1028
  /** @returns {SocialTokens} */
987
1029
  declare function SocialTokens(): SocialTokens;
988
1030
  type SocialTokens = {
989
- account_kit?: Accountkit;
990
1031
  facebook?: Facebook;
1032
+ accountkit?: Accountkit;
991
1033
  google?: Google;
992
1034
  };
993
- /** @returns {TokenRequestBodySchema} */
994
- declare function TokenRequestBodySchema(): TokenRequestBodySchema;
995
- type TokenRequestBodySchema = {
996
- token?: string;
1035
+ /** @returns {DeleteAccountReasons} */
1036
+ declare function DeleteAccountReasons(): DeleteAccountReasons;
1037
+ type DeleteAccountReasons = {
1038
+ reason_text?: string;
1039
+ reason_id?: string;
1040
+ show_text_area?: boolean;
997
1041
  };
998
- /** @returns {UpdatePasswordRequestSchema} */
999
- declare function UpdatePasswordRequestSchema(): UpdatePasswordRequestSchema;
1000
- type UpdatePasswordRequestSchema = {
1001
- new_password?: string;
1002
- old_password?: string;
1042
+ /** @returns {DeleteAccountConsent} */
1043
+ declare function DeleteAccountConsent(): DeleteAccountConsent;
1044
+ type DeleteAccountConsent = {
1045
+ consent_text?: string;
1003
1046
  };
1004
- /** @returns {UpdateUserAttributesRequest} */
1005
- declare function UpdateUserAttributesRequest(): UpdateUserAttributesRequest;
1006
- type UpdateUserAttributesRequest = {
1007
- attributes?: any;
1047
+ /** @returns {Facebook} */
1048
+ declare function Facebook(): Facebook;
1049
+ type Facebook = {
1050
+ app_id?: string;
1008
1051
  };
1009
- /** @returns {UserAttributes} */
1010
- declare function UserAttributes(): UserAttributes;
1011
- type UserAttributes = {
1012
- attributes?: any;
1052
+ /** @returns {Accountkit} */
1053
+ declare function Accountkit(): Accountkit;
1054
+ type Accountkit = {
1055
+ app_id?: string;
1013
1056
  };
1014
- /** @returns {UserExistsResponse} */
1015
- declare function UserExistsResponse(): UserExistsResponse;
1016
- type UserExistsResponse = {
1017
- user_exists?: boolean;
1057
+ /** @returns {Google} */
1058
+ declare function Google(): Google;
1059
+ type Google = {
1060
+ app_id?: string;
1018
1061
  };
1019
- /** @returns {UserObjectSchema} */
1020
- declare function UserObjectSchema(): UserObjectSchema;
1021
- type UserObjectSchema = {
1022
- user?: UserSchema;
1062
+ /** @returns {SessionExpiry} */
1063
+ declare function SessionExpiry(): SessionExpiry;
1064
+ type SessionExpiry = {
1065
+ duration?: number;
1066
+ type?: string;
1067
+ is_rolling?: boolean;
1023
1068
  };
1024
1069
  /** @returns {UserSchema} */
1025
1070
  declare function UserSchema(): UserSchema;
1026
1071
  type UserSchema = {
1027
- _id?: string;
1028
- account_type?: string;
1029
- active?: boolean;
1030
1072
  application_id?: string;
1031
- created_at?: string;
1032
- dob?: string;
1033
- emails?: Email[];
1073
+ user_id?: string;
1034
1074
  first_name?: string;
1035
- gender?: string;
1036
- last_name?: string;
1037
1075
  meta?: any;
1076
+ last_name?: string;
1038
1077
  phone_numbers?: PhoneNumber[];
1078
+ emails?: Email[];
1079
+ gender?: string;
1080
+ dob?: string;
1081
+ active?: boolean;
1039
1082
  profile_pic_url?: string;
1040
- updated_at?: string;
1041
- user_id?: string;
1042
1083
  username?: string;
1084
+ account_type?: string;
1085
+ _id?: string;
1086
+ created_at?: string;
1087
+ updated_at?: string;
1043
1088
  };
1044
- /** @returns {VerifyEmailForgotOtpRequestSchema} */
1045
- declare function VerifyEmailForgotOtpRequestSchema(): VerifyEmailForgotOtpRequestSchema;
1046
- type VerifyEmailForgotOtpRequestSchema = {
1047
- email?: string;
1048
- otp?: string;
1089
+ /** @returns {PhoneNumber} */
1090
+ declare function PhoneNumber(): PhoneNumber;
1091
+ type PhoneNumber = {
1092
+ active?: boolean;
1093
+ primary?: boolean;
1094
+ verified?: boolean;
1095
+ phone?: string;
1096
+ country_code?: number;
1049
1097
  };
1050
- /** @returns {VerifyEmailOtpRequestSchema} */
1051
- declare function VerifyEmailOtpRequestSchema(): VerifyEmailOtpRequestSchema;
1052
- type VerifyEmailOtpRequestSchema = {
1053
- action?: string;
1098
+ /** @returns {Email} */
1099
+ declare function Email(): Email;
1100
+ type Email = {
1101
+ primary?: boolean;
1102
+ verified?: boolean;
1054
1103
  email?: string;
1055
- otp?: string;
1056
- register_token?: string;
1057
- };
1058
- /** @returns {VerifyEmailOTPSuccess} */
1059
- declare function VerifyEmailOTPSuccess(): VerifyEmailOTPSuccess;
1060
- type VerifyEmailOTPSuccess = {
1061
- user?: UserSchema;
1062
- verify_email_link?: boolean;
1063
- };
1064
- /** @returns {VerifyEmailSuccess} */
1065
- declare function VerifyEmailSuccess(): VerifyEmailSuccess;
1066
- type VerifyEmailSuccess = {
1067
- message?: string;
1068
- };
1069
- /** @returns {VerifyForgotOtpSuccess} */
1070
- declare function VerifyForgotOtpSuccess(): VerifyForgotOtpSuccess;
1071
- type VerifyForgotOtpSuccess = {
1072
- forgot_token?: string;
1073
- success?: boolean;
1074
- };
1075
- /** @returns {VerifyMobileForgotOtpRequestSchema} */
1076
- declare function VerifyMobileForgotOtpRequestSchema(): VerifyMobileForgotOtpRequestSchema;
1077
- type VerifyMobileForgotOtpRequestSchema = {
1078
- otp?: string;
1079
- request_id?: string;
1080
- };
1081
- /** @returns {VerifyMobileOTPSuccess} */
1082
- declare function VerifyMobileOTPSuccess(): VerifyMobileOTPSuccess;
1083
- type VerifyMobileOTPSuccess = {
1084
- user?: UserSchema;
1085
- verify_mobile_link?: boolean;
1086
- };
1087
- /** @returns {VerifyOtpRequestSchema} */
1088
- declare function VerifyOtpRequestSchema(): VerifyOtpRequestSchema;
1089
- type VerifyOtpRequestSchema = {
1090
- otp?: string;
1091
- register_token?: string;
1092
- request_id?: string;
1093
- };
1094
- /** @returns {VerifyOtpSuccess} */
1095
- declare function VerifyOtpSuccess(): VerifyOtpSuccess;
1096
- type VerifyOtpSuccess = {
1097
- register_token?: string;
1098
- user?: UserSchema;
1099
- user_exists?: boolean;
1104
+ active?: boolean;
1100
1105
  };