@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,753 +1,686 @@
|
|
|
1
1
|
export = UserApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {
|
|
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
|
|
38
|
-
* @property {
|
|
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} [
|
|
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} [
|
|
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
|
|
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
|
|
31
|
+
* @typedef EditMobileRequestSchema
|
|
65
32
|
* @property {string} [country_code]
|
|
66
33
|
* @property {string} [phone]
|
|
67
34
|
*/
|
|
68
35
|
/**
|
|
69
36
|
* @typedef EditProfileRequestSchema
|
|
70
|
-
* @property {
|
|
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} [
|
|
46
|
+
* @property {string} [android_hash]
|
|
80
47
|
* @property {string} [sender]
|
|
48
|
+
* @property {string} [register_token]
|
|
81
49
|
*/
|
|
82
50
|
/**
|
|
83
|
-
* @typedef
|
|
84
|
-
* @property {
|
|
51
|
+
* @typedef EditProfileMobileSchema
|
|
52
|
+
* @property {string} [phone]
|
|
53
|
+
* @property {string} [country_code]
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* @typedef SendEmailOtpRequestSchema
|
|
85
57
|
* @property {string} [email]
|
|
86
|
-
* @property {
|
|
87
|
-
* @property {
|
|
58
|
+
* @property {string} [action]
|
|
59
|
+
* @property {string} [token]
|
|
60
|
+
* @property {string} [register_token]
|
|
88
61
|
*/
|
|
89
62
|
/**
|
|
90
|
-
* @typedef
|
|
91
|
-
* @property {
|
|
63
|
+
* @typedef SendEmailForgotOtpRequestSchema
|
|
64
|
+
* @property {string} [email]
|
|
65
|
+
* @property {string} [action]
|
|
66
|
+
* @property {string} [token]
|
|
92
67
|
*/
|
|
93
68
|
/**
|
|
94
|
-
* @typedef
|
|
95
|
-
* @property {string} [
|
|
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
|
|
99
|
-
* @property {string} [
|
|
100
|
-
* @property {string} [
|
|
101
|
-
* @property {string} [text_color]
|
|
76
|
+
* @typedef VerifyEmailForgotOtpRequestSchema
|
|
77
|
+
* @property {string} [email]
|
|
78
|
+
* @property {string} [otp]
|
|
102
79
|
*/
|
|
103
80
|
/**
|
|
104
|
-
* @typedef
|
|
105
|
-
* @property {string} [
|
|
106
|
-
* @property {string} [
|
|
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
|
|
120
|
-
* @property {string} [
|
|
121
|
-
* @property {string} [mobile]
|
|
125
|
+
* @typedef TokenRequestBodySchema
|
|
126
|
+
* @property {string} [token]
|
|
122
127
|
*/
|
|
123
128
|
/**
|
|
124
|
-
* @typedef
|
|
125
|
-
* @property {string} [
|
|
129
|
+
* @typedef ForgotPasswordRequestSchema
|
|
130
|
+
* @property {string} [code]
|
|
131
|
+
* @property {string} [password]
|
|
126
132
|
*/
|
|
127
133
|
/**
|
|
128
|
-
* @typedef
|
|
129
|
-
* @property {
|
|
134
|
+
* @typedef CodeRequestBodySchema
|
|
135
|
+
* @property {string} [code]
|
|
130
136
|
*/
|
|
131
137
|
/**
|
|
132
|
-
* @typedef
|
|
133
|
-
* @property {
|
|
134
|
-
* @property {boolean} [password]
|
|
138
|
+
* @typedef SendResetPasswordEmailRequestSchema
|
|
139
|
+
* @property {string} [email]
|
|
135
140
|
*/
|
|
136
141
|
/**
|
|
137
|
-
* @typedef
|
|
138
|
-
* @property {string} [
|
|
139
|
-
* @property {string} [
|
|
140
|
-
* @property {UserSchema} [user]
|
|
142
|
+
* @typedef SendResetPasswordMobileRequestSchema
|
|
143
|
+
* @property {string} [country_code]
|
|
144
|
+
* @property {string} [mobile]
|
|
141
145
|
*/
|
|
142
146
|
/**
|
|
143
|
-
* @typedef
|
|
144
|
-
* @property {
|
|
147
|
+
* @typedef PasswordLoginRequestSchema
|
|
148
|
+
* @property {string} [password]
|
|
149
|
+
* @property {string} [username]
|
|
145
150
|
*/
|
|
146
151
|
/**
|
|
147
|
-
* @typedef
|
|
148
|
-
* @property {
|
|
149
|
-
* @property {string} [
|
|
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
|
|
153
|
-
* @property {boolean} [
|
|
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
|
|
167
|
-
* @property {
|
|
168
|
-
* @property {string} [full_name]
|
|
169
|
-
* @property {string} [last_name]
|
|
171
|
+
* @typedef UserObjectSchema
|
|
172
|
+
* @property {UserSchema} [user]
|
|
170
173
|
*/
|
|
171
174
|
/**
|
|
172
|
-
* @typedef
|
|
173
|
-
* @property {
|
|
174
|
-
* @property {
|
|
175
|
-
* @property {
|
|
175
|
+
* @typedef AuthSuccess
|
|
176
|
+
* @property {string} [register_token]
|
|
177
|
+
* @property {boolean} [user_exists]
|
|
178
|
+
* @property {UserSchema} [user]
|
|
176
179
|
*/
|
|
177
180
|
/**
|
|
178
|
-
* @typedef
|
|
179
|
-
* @property {
|
|
180
|
-
* @property {number} [expiry]
|
|
181
|
-
* @property {string} [refresh_token]
|
|
181
|
+
* @typedef UserExistsResponse
|
|
182
|
+
* @property {boolean} [user_exists]
|
|
182
183
|
*/
|
|
183
184
|
/**
|
|
184
|
-
* @typedef
|
|
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} [
|
|
187
|
-
* @property {string} [
|
|
188
|
-
* @property {
|
|
189
|
-
* @property {
|
|
190
|
-
* @property {
|
|
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
|
|
194
|
-
* @property {
|
|
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
|
|
205
|
-
* @property {
|
|
206
|
-
* @property {string} [
|
|
219
|
+
* @typedef LoginSuccess
|
|
220
|
+
* @property {UserSchema} [user]
|
|
221
|
+
* @property {string} [request_id]
|
|
222
|
+
* @property {string} [register_token]
|
|
207
223
|
*/
|
|
208
224
|
/**
|
|
209
|
-
* @typedef
|
|
210
|
-
* @property {boolean} [
|
|
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
|
|
218
|
-
* @property {
|
|
219
|
-
* @property {
|
|
229
|
+
* @typedef VerifyOtpSuccess
|
|
230
|
+
* @property {UserSchema} [user]
|
|
231
|
+
* @property {boolean} [user_exists]
|
|
232
|
+
* @property {string} [register_token]
|
|
220
233
|
*/
|
|
221
234
|
/**
|
|
222
|
-
* @typedef
|
|
223
|
-
* @property {boolean} [
|
|
224
|
-
* @property {string} [
|
|
235
|
+
* @typedef VerifyForgotOtpSuccess
|
|
236
|
+
* @property {boolean} [success]
|
|
237
|
+
* @property {string} [forgot_token]
|
|
225
238
|
*/
|
|
226
239
|
/**
|
|
227
|
-
* @typedef
|
|
228
|
-
* @property {string} [
|
|
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
|
|
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 {
|
|
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} [
|
|
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
|
|
290
|
-
* @property {
|
|
291
|
-
* @property {RegisterRequiredFieldsMobile} [mobile]
|
|
260
|
+
* @typedef VerifyEmailSuccess
|
|
261
|
+
* @property {string} [message]
|
|
292
262
|
*/
|
|
293
263
|
/**
|
|
294
|
-
* @typedef
|
|
295
|
-
* @property {
|
|
296
|
-
* @property {string} [level]
|
|
264
|
+
* @typedef HasPasswordSuccess
|
|
265
|
+
* @property {number} [result]
|
|
297
266
|
*/
|
|
298
267
|
/**
|
|
299
|
-
* @typedef
|
|
300
|
-
* @property {boolean} [
|
|
301
|
-
* @property {string} [level]
|
|
268
|
+
* @typedef LogoutSuccess
|
|
269
|
+
* @property {boolean} [logout]
|
|
302
270
|
*/
|
|
303
271
|
/**
|
|
304
|
-
* @typedef
|
|
305
|
-
* @property {
|
|
306
|
-
* @property {PlatformMobile} [mobile]
|
|
272
|
+
* @typedef DeleteUserSuccess
|
|
273
|
+
* @property {boolean} [success]
|
|
307
274
|
*/
|
|
308
275
|
/**
|
|
309
|
-
* @typedef
|
|
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
|
|
314
|
-
* @property {
|
|
287
|
+
* @typedef EmailOtpSuccess
|
|
288
|
+
* @property {boolean} [success]
|
|
289
|
+
* @property {string} [resend_email_token]
|
|
315
290
|
*/
|
|
316
291
|
/**
|
|
317
|
-
* @typedef
|
|
318
|
-
* @property {string} [
|
|
319
|
-
* @property {string} [email]
|
|
320
|
-
* @property {string} [token]
|
|
292
|
+
* @typedef SessionListSuccess
|
|
293
|
+
* @property {string[]} [sessions]
|
|
321
294
|
*/
|
|
322
295
|
/**
|
|
323
|
-
* @typedef
|
|
324
|
-
* @property {
|
|
325
|
-
* @property {
|
|
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
|
|
301
|
+
* @typedef VerifyEmailOTPSuccess
|
|
302
|
+
* @property {UserSchema} [user]
|
|
331
303
|
* @property {boolean} [verify_email_link]
|
|
332
304
|
*/
|
|
333
305
|
/**
|
|
334
|
-
* @typedef
|
|
335
|
-
* @property {
|
|
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
|
|
343
|
-
* @property {
|
|
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
|
|
352
|
-
* @property {
|
|
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
|
|
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
|
|
362
|
-
* @property {string} [
|
|
363
|
-
* @property {
|
|
364
|
-
* @property {string} [
|
|
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
|
|
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
|
|
382
|
-
* @property {string} [
|
|
383
|
-
* @property {string} [mobile]
|
|
344
|
+
* @typedef OAuthRequestAppleSchemaOauth
|
|
345
|
+
* @property {string} [identity_token]
|
|
384
346
|
*/
|
|
385
347
|
/**
|
|
386
|
-
* @typedef
|
|
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 {
|
|
389
|
-
* @property {
|
|
390
|
-
* @property {boolean} [
|
|
391
|
-
* @property {
|
|
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
|
|
395
|
-
* @property {
|
|
396
|
-
* @property {
|
|
397
|
-
* @property {string} [type]
|
|
383
|
+
* @typedef LookAndFeel
|
|
384
|
+
* @property {string} [card_position]
|
|
385
|
+
* @property {string} [background_color]
|
|
398
386
|
*/
|
|
399
387
|
/**
|
|
400
|
-
* @typedef
|
|
401
|
-
* @property {
|
|
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
|
|
412
|
-
* @property {
|
|
413
|
-
* @property {
|
|
414
|
-
* @property {Google} [google]
|
|
404
|
+
* @typedef RequiredFields
|
|
405
|
+
* @property {PlatformEmail} [email]
|
|
406
|
+
* @property {PlatformMobile} [mobile]
|
|
415
407
|
*/
|
|
416
408
|
/**
|
|
417
|
-
* @typedef
|
|
418
|
-
* @property {
|
|
409
|
+
* @typedef PlatformEmail
|
|
410
|
+
* @property {boolean} [is_required]
|
|
411
|
+
* @property {string} [level]
|
|
419
412
|
*/
|
|
420
413
|
/**
|
|
421
|
-
* @typedef
|
|
422
|
-
* @property {
|
|
423
|
-
* @property {string} [
|
|
414
|
+
* @typedef PlatformMobile
|
|
415
|
+
* @property {boolean} [is_required]
|
|
416
|
+
* @property {string} [level]
|
|
424
417
|
*/
|
|
425
418
|
/**
|
|
426
|
-
* @typedef
|
|
427
|
-
* @property {
|
|
419
|
+
* @typedef RegisterRequiredFields
|
|
420
|
+
* @property {RegisterRequiredFieldsEmail} [email]
|
|
421
|
+
* @property {RegisterRequiredFieldsMobile} [mobile]
|
|
428
422
|
*/
|
|
429
423
|
/**
|
|
430
|
-
* @typedef
|
|
431
|
-
* @property {
|
|
424
|
+
* @typedef RegisterRequiredFieldsEmail
|
|
425
|
+
* @property {boolean} [is_required]
|
|
426
|
+
* @property {string} [level]
|
|
432
427
|
*/
|
|
433
428
|
/**
|
|
434
|
-
* @typedef
|
|
435
|
-
* @property {boolean} [
|
|
429
|
+
* @typedef RegisterRequiredFieldsMobile
|
|
430
|
+
* @property {boolean} [is_required]
|
|
431
|
+
* @property {string} [level]
|
|
436
432
|
*/
|
|
437
433
|
/**
|
|
438
|
-
* @typedef
|
|
439
|
-
* @property {
|
|
434
|
+
* @typedef FlashCard
|
|
435
|
+
* @property {string} [text]
|
|
436
|
+
* @property {string} [text_color]
|
|
437
|
+
* @property {string} [background_color]
|
|
440
438
|
*/
|
|
441
439
|
/**
|
|
442
|
-
* @typedef
|
|
443
|
-
* @property {
|
|
444
|
-
* @property {
|
|
445
|
-
* @property {
|
|
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
|
|
462
|
-
* @property {string} [
|
|
463
|
-
* @property {string} [
|
|
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
|
|
467
|
-
* @property {string} [
|
|
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
|
|
474
|
-
* @property {
|
|
475
|
-
* @property {boolean} [verify_email_link]
|
|
456
|
+
* @typedef Facebook
|
|
457
|
+
* @property {string} [app_id]
|
|
476
458
|
*/
|
|
477
459
|
/**
|
|
478
|
-
* @typedef
|
|
479
|
-
* @property {string} [
|
|
460
|
+
* @typedef Accountkit
|
|
461
|
+
* @property {string} [app_id]
|
|
480
462
|
*/
|
|
481
463
|
/**
|
|
482
|
-
* @typedef
|
|
483
|
-
* @property {string} [
|
|
484
|
-
* @property {boolean} [success]
|
|
464
|
+
* @typedef Google
|
|
465
|
+
* @property {string} [app_id]
|
|
485
466
|
*/
|
|
486
467
|
/**
|
|
487
|
-
* @typedef
|
|
488
|
-
* @property {
|
|
489
|
-
* @property {string} [
|
|
468
|
+
* @typedef SessionExpiry
|
|
469
|
+
* @property {number} [duration]
|
|
470
|
+
* @property {string} [type]
|
|
471
|
+
* @property {boolean} [is_rolling]
|
|
490
472
|
*/
|
|
491
473
|
/**
|
|
492
|
-
* @typedef
|
|
493
|
-
* @property {
|
|
494
|
-
* @property {
|
|
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
|
|
498
|
-
* @property {
|
|
499
|
-
* @property {
|
|
500
|
-
* @property {
|
|
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
|
|
504
|
-
* @property {
|
|
505
|
-
* @property {
|
|
506
|
-
* @property {
|
|
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 {
|
|
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 {
|
|
514
|
-
declare function
|
|
515
|
-
type
|
|
516
|
-
|
|
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 {
|
|
558
|
-
declare function
|
|
559
|
-
type
|
|
560
|
-
|
|
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
|
-
|
|
525
|
+
user_id?: string;
|
|
568
526
|
reason?: string;
|
|
569
527
|
reason_id?: string;
|
|
570
528
|
request_id?: string;
|
|
571
|
-
|
|
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 {
|
|
584
|
-
declare function
|
|
585
|
-
type
|
|
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 {
|
|
590
|
-
declare function
|
|
591
|
-
type
|
|
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
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
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
|
-
|
|
566
|
+
android_hash?: string;
|
|
608
567
|
sender?: string;
|
|
568
|
+
register_token?: string;
|
|
609
569
|
};
|
|
610
|
-
/** @returns {
|
|
611
|
-
declare function
|
|
612
|
-
type
|
|
613
|
-
|
|
614
|
-
|
|
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 {
|
|
629
|
-
declare function
|
|
630
|
-
type
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
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 {
|
|
636
|
-
declare function
|
|
637
|
-
type
|
|
638
|
-
|
|
639
|
-
|
|
584
|
+
/** @returns {SendEmailForgotOtpRequestSchema} */
|
|
585
|
+
declare function SendEmailForgotOtpRequestSchema(): SendEmailForgotOtpRequestSchema;
|
|
586
|
+
type SendEmailForgotOtpRequestSchema = {
|
|
587
|
+
email?: string;
|
|
588
|
+
action?: string;
|
|
589
|
+
token?: string;
|
|
640
590
|
};
|
|
641
|
-
/** @returns {
|
|
642
|
-
declare function
|
|
643
|
-
type
|
|
591
|
+
/** @returns {VerifyEmailOtpRequestSchema} */
|
|
592
|
+
declare function VerifyEmailOtpRequestSchema(): VerifyEmailOtpRequestSchema;
|
|
593
|
+
type VerifyEmailOtpRequestSchema = {
|
|
644
594
|
email?: string;
|
|
645
|
-
|
|
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 {
|
|
653
|
-
declare function
|
|
654
|
-
type
|
|
655
|
-
|
|
656
|
-
|
|
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 {
|
|
675
|
-
declare function
|
|
676
|
-
type
|
|
677
|
-
register_token?: string;
|
|
605
|
+
/** @returns {VerifyOtpRequestSchema} */
|
|
606
|
+
declare function VerifyOtpRequestSchema(): VerifyOtpRequestSchema;
|
|
607
|
+
type VerifyOtpRequestSchema = {
|
|
678
608
|
request_id?: string;
|
|
679
|
-
|
|
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 {
|
|
687
|
-
declare function
|
|
688
|
-
type
|
|
689
|
-
|
|
690
|
-
|
|
612
|
+
/** @returns {VerifyMobileForgotOtpRequestSchema} */
|
|
613
|
+
declare function VerifyMobileForgotOtpRequestSchema(): VerifyMobileForgotOtpRequestSchema;
|
|
614
|
+
type VerifyMobileForgotOtpRequestSchema = {
|
|
615
|
+
request_id?: string;
|
|
616
|
+
otp?: string;
|
|
691
617
|
};
|
|
692
|
-
/** @returns {
|
|
693
|
-
declare function
|
|
694
|
-
type
|
|
695
|
-
|
|
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 {
|
|
698
|
-
declare function
|
|
699
|
-
type
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
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 {
|
|
705
|
-
declare function
|
|
706
|
-
type
|
|
707
|
-
|
|
641
|
+
/** @returns {UpdatePasswordRequestSchema} */
|
|
642
|
+
declare function UpdatePasswordRequestSchema(): UpdatePasswordRequestSchema;
|
|
643
|
+
type UpdatePasswordRequestSchema = {
|
|
644
|
+
old_password?: string;
|
|
645
|
+
new_password?: string;
|
|
708
646
|
};
|
|
709
|
-
/** @returns {
|
|
710
|
-
declare function
|
|
711
|
-
type
|
|
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 {
|
|
717
|
-
declare function
|
|
718
|
-
type
|
|
719
|
-
|
|
720
|
-
oauth2?: OAuthRequestSchemaOauth2;
|
|
721
|
-
profile?: OAuthRequestSchemaProfile;
|
|
658
|
+
/** @returns {TokenRequestBodySchema} */
|
|
659
|
+
declare function TokenRequestBodySchema(): TokenRequestBodySchema;
|
|
660
|
+
type TokenRequestBodySchema = {
|
|
661
|
+
token?: string;
|
|
722
662
|
};
|
|
723
|
-
/** @returns {
|
|
724
|
-
declare function
|
|
725
|
-
type
|
|
726
|
-
|
|
727
|
-
|
|
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 {
|
|
731
|
-
declare function
|
|
732
|
-
type
|
|
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 {
|
|
741
|
-
declare function
|
|
742
|
-
type
|
|
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 {
|
|
759
|
-
declare function
|
|
760
|
-
type
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
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 {
|
|
768
|
-
declare function
|
|
769
|
-
type
|
|
770
|
-
|
|
771
|
-
|
|
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 {
|
|
774
|
-
declare function
|
|
775
|
-
type
|
|
776
|
-
|
|
777
|
-
|
|
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 {
|
|
780
|
-
declare function
|
|
781
|
-
type
|
|
782
|
-
|
|
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 {
|
|
809
|
-
declare function
|
|
810
|
-
type
|
|
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
|
-
|
|
817
|
-
|
|
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
|
-
|
|
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 {
|
|
845
|
-
declare function
|
|
846
|
-
type
|
|
847
|
-
|
|
848
|
-
|
|
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 {
|
|
879
|
-
declare function
|
|
880
|
-
type
|
|
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
|
-
|
|
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 {
|
|
894
|
-
declare function
|
|
895
|
-
type
|
|
896
|
-
|
|
816
|
+
/** @returns {VerifyEmailSuccess} */
|
|
817
|
+
declare function VerifyEmailSuccess(): VerifyEmailSuccess;
|
|
818
|
+
type VerifyEmailSuccess = {
|
|
819
|
+
message?: string;
|
|
897
820
|
};
|
|
898
|
-
/** @returns {
|
|
899
|
-
declare function
|
|
900
|
-
type
|
|
901
|
-
|
|
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 {
|
|
908
|
-
declare function
|
|
909
|
-
type
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
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
|
-
|
|
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 {
|
|
923
|
-
declare function
|
|
924
|
-
type
|
|
925
|
-
|
|
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 {
|
|
930
|
-
declare function
|
|
931
|
-
type
|
|
932
|
-
|
|
933
|
-
email?: string;
|
|
881
|
+
/** @returns {APIError} */
|
|
882
|
+
declare function APIError(): APIError;
|
|
883
|
+
type APIError = {
|
|
884
|
+
code?: string;
|
|
934
885
|
message?: string;
|
|
935
|
-
|
|
936
|
-
|
|
886
|
+
/**
|
|
887
|
+
* - Error code description link
|
|
888
|
+
*/
|
|
889
|
+
info?: string;
|
|
937
890
|
request_id?: string;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
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 {
|
|
947
|
-
declare function
|
|
948
|
-
type
|
|
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 {
|
|
952
|
-
declare function
|
|
953
|
-
type
|
|
954
|
-
|
|
955
|
-
|
|
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 {
|
|
958
|
-
declare function
|
|
959
|
-
type
|
|
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
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
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 {
|
|
967
|
-
declare function
|
|
968
|
-
type
|
|
969
|
-
|
|
970
|
-
|
|
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 {
|
|
974
|
-
declare function
|
|
975
|
-
type
|
|
976
|
-
|
|
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 {
|
|
994
|
-
declare function
|
|
995
|
-
type
|
|
996
|
-
|
|
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 {
|
|
999
|
-
declare function
|
|
1000
|
-
type
|
|
1001
|
-
|
|
1002
|
-
old_password?: string;
|
|
1042
|
+
/** @returns {DeleteAccountConsent} */
|
|
1043
|
+
declare function DeleteAccountConsent(): DeleteAccountConsent;
|
|
1044
|
+
type DeleteAccountConsent = {
|
|
1045
|
+
consent_text?: string;
|
|
1003
1046
|
};
|
|
1004
|
-
/** @returns {
|
|
1005
|
-
declare function
|
|
1006
|
-
type
|
|
1007
|
-
|
|
1047
|
+
/** @returns {Facebook} */
|
|
1048
|
+
declare function Facebook(): Facebook;
|
|
1049
|
+
type Facebook = {
|
|
1050
|
+
app_id?: string;
|
|
1008
1051
|
};
|
|
1009
|
-
/** @returns {
|
|
1010
|
-
declare function
|
|
1011
|
-
type
|
|
1012
|
-
|
|
1052
|
+
/** @returns {Accountkit} */
|
|
1053
|
+
declare function Accountkit(): Accountkit;
|
|
1054
|
+
type Accountkit = {
|
|
1055
|
+
app_id?: string;
|
|
1013
1056
|
};
|
|
1014
|
-
/** @returns {
|
|
1015
|
-
declare function
|
|
1016
|
-
type
|
|
1017
|
-
|
|
1057
|
+
/** @returns {Google} */
|
|
1058
|
+
declare function Google(): Google;
|
|
1059
|
+
type Google = {
|
|
1060
|
+
app_id?: string;
|
|
1018
1061
|
};
|
|
1019
|
-
/** @returns {
|
|
1020
|
-
declare function
|
|
1021
|
-
type
|
|
1022
|
-
|
|
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
|
-
|
|
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 {
|
|
1045
|
-
declare function
|
|
1046
|
-
type
|
|
1047
|
-
|
|
1048
|
-
|
|
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 {
|
|
1051
|
-
declare function
|
|
1052
|
-
type
|
|
1053
|
-
|
|
1098
|
+
/** @returns {Email} */
|
|
1099
|
+
declare function Email(): Email;
|
|
1100
|
+
type Email = {
|
|
1101
|
+
primary?: boolean;
|
|
1102
|
+
verified?: boolean;
|
|
1054
1103
|
email?: string;
|
|
1055
|
-
|
|
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
|
};
|