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

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