@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -1,8 +1,19 @@
1
1
  export = UserPlatformModel;
2
2
  /**
3
- * @typedef SuccessMessageResponse
3
+ * @typedef SuccessMessage
4
4
  * @property {string} [success]
5
5
  */
6
+ /**
7
+ * @typedef UserAttributeDefinitionList
8
+ * @property {UserAttributeDefinition[]} [items] - Array of user attribute
9
+ * definition objects.
10
+ * @property {PaginationSchema} [page]
11
+ */
12
+ /**
13
+ * @typedef UserAttributeDefinitionsResponseSchema
14
+ * @property {UserAttribute[]} [items]
15
+ * @property {PaginationSchema} [page]
16
+ */
6
17
  /**
7
18
  * @typedef UserAttributeDefinition
8
19
  * @property {string} [_id] - The unique identifier for the attribute definition.
@@ -11,7 +22,14 @@ export = UserPlatformModel;
11
22
  * @property {string} [description] - The description of the attribute.
12
23
  * @property {string} [application_id] - The application ID.
13
24
  * @property {string} [type] - The attribute type.
14
- * @property {boolean} [multi_value] - Whether the attribute supports multiple values.
25
+ * @property {string} [icon] - Optional icon representation for this attribute.
26
+ * Defaults to an empty string.
27
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
28
+ * attribute should be visible.
29
+ * @property {AttributeMaskingProperties} [masking]
30
+ * @property {AttributeRegistrationProperties} [registration]
31
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
32
+ * multiple values.
15
33
  * @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
16
34
  * @property {boolean} [encrypted] - Whether the attribute is encrypted.
17
35
  * @property {boolean} [pinned] - Whether the attribute is pinned.
@@ -21,16 +39,24 @@ export = UserPlatformModel;
21
39
  * @property {string} [created_at] - The creation date of the attribute.
22
40
  * @property {string} [modified_at] - The modification date of the attribute.
23
41
  * @property {number} [__v] - The version number of the attribute.
42
+ * @property {string[]} [options] - List of possible values for the attribute
24
43
  */
25
44
  /**
26
- * @typedef UserAttributeDefinitionResponse
45
+ * @typedef UserAttributeDefinitionDetails
27
46
  * @property {string} [_id] - The unique identifier for the attribute definition.
28
47
  * @property {string} [name] - The attribute name.
29
48
  * @property {string} [slug] - The attribute key.
30
49
  * @property {string} [description] - The description of the attribute.
31
50
  * @property {string} [application_id] - The application ID.
32
51
  * @property {string} [type] - The attribute type.
33
- * @property {boolean} [multi_value] - Whether the attribute supports multiple values.
52
+ * @property {string} [icon] - Optional icon representation for this attribute.
53
+ * Defaults to an empty string.
54
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
55
+ * attribute should be visible.
56
+ * @property {AttributeMaskingProperties} [masking]
57
+ * @property {AttributeRegistrationProperties} [registration]
58
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
59
+ * multiple values.
34
60
  * @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
35
61
  * @property {boolean} [encrypted] - Whether the attribute is encrypted.
36
62
  * @property {boolean} [pinned] - Whether the attribute is pinned.
@@ -43,25 +69,63 @@ export = UserPlatformModel;
43
69
  * @property {string} [modified_at] - The last modification date of the
44
70
  * attribute definition.
45
71
  */
72
+ /**
73
+ * @typedef AttributeMaskingProperties
74
+ * @property {boolean} [enabled] - Indicates if PII masking is editable for this
75
+ * attribute.
76
+ * @property {string} [type] - Indicates the PII masking options available
77
+ * default or others
78
+ */
79
+ /**
80
+ * @typedef AttributeRegistrationProperties
81
+ * @property {boolean} [enabled] - Indicates if an attribute is editable when
82
+ * customer registers for a storefront.
83
+ * @property {string} [type] - Indicates if this attribute is mandatory or
84
+ * optional when customer registers for a storefront.
85
+ */
46
86
  /**
47
87
  * @typedef UserAttributeDefinitionValidation
48
88
  * @property {string} [type] - The type of validation.
49
89
  * @property {Object} [value] - The validation value.
50
90
  */
51
91
  /**
52
- * @typedef UserAttributeResponse
92
+ * @typedef BulkUserAttribute
93
+ * @property {boolean} [success] - This describes the status of the API response
94
+ * @property {UserAttribute[]} [attributes]
95
+ */
96
+ /**
97
+ * @typedef UserAttribute
53
98
  * @property {string} [_id] - The unique identifier for the attribute definition.
54
99
  * @property {string} [name] - The name of user attribute definition.
55
100
  * @property {string} [user_id] - The unique identifier for the user.
56
101
  * @property {string} [application_id] - The application ID.
102
+ * @property {string} [user_attribute_definition_id] - The unique id of the
103
+ * attribute definition.
104
+ * @property {string} [created_at] - The time when attribute value is created
105
+ * for a user in ISO format.
106
+ * @property {string} [updated_at] - The time when attribute value is updated
107
+ * for a user in ISO format.
57
108
  * @property {string} [type] - The attribute type.
58
- * @property {boolean} [customer_overriden] - Whether the attribute is customer-editable.
109
+ * @property {boolean} [customer_overridden] - Whether the attribute is customer-editable.
59
110
  * @property {Object} [attribute]
60
111
  * @property {string} [updated_by]
61
112
  */
62
113
  /**
63
- * @typedef CreateUserAttributeRequest
64
- * @property {boolean} [customer_overriden]
114
+ * @typedef CreateBulkUserAttribute
115
+ * @property {BulkUserAttributeRequestBody[]} attributes - This is an array of
116
+ * objects containing id of attribute definitions and the respective values to
117
+ * created or updated
118
+ */
119
+ /**
120
+ * @typedef BulkUserAttributeRequestBody
121
+ * @property {string} definition_id - Theis is an unique id of user attribute definition
122
+ * @property {Object} value - Attribute values to be create or updated. Can be a
123
+ * single value or an array of values. Types supported: string, number, array
124
+ * of string, or array of number.
125
+ */
126
+ /**
127
+ * @typedef CreateUserAttribute
128
+ * @property {boolean} [customer_overridden]
65
129
  * @property {Object} [attribute]
66
130
  */
67
131
  /**
@@ -69,8 +133,15 @@ export = UserPlatformModel;
69
133
  * @property {string} [name]
70
134
  * @property {string} [slug]
71
135
  * @property {string} [description]
72
- * @property {string} [type]
73
- * @property {boolean} [multi_value]
136
+ * @property {string} [type] - The attribute type.
137
+ * @property {string} [icon] - Optional icon representation for this attribute.
138
+ * Defaults to an empty string.
139
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
140
+ * attribute should be visible.
141
+ * @property {AttributeMaskingProperties} [masking]
142
+ * @property {AttributeRegistrationProperties} [registration]
143
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
144
+ * multiple values.
74
145
  * @property {boolean} [customer_editable]
75
146
  * @property {boolean} [encrypted]
76
147
  * @property {boolean} [pinned]
@@ -78,6 +149,64 @@ export = UserPlatformModel;
78
149
  * @property {string} [default_value]
79
150
  * @property {Object[]} [validations]
80
151
  */
152
+ /**
153
+ * @typedef CreateStoreFrontUsersPayload
154
+ * @property {string} absolute_url - A valid URL linking to the file containing
155
+ * user data to be imported.
156
+ * @property {string} file_format - The format of the file containing the user's
157
+ * data. Supported formats are CSV and XLSX.
158
+ * @property {string} relative_url - A valid relative path to the file within
159
+ * the storage system. This path should not include the base URL or domain and
160
+ * must conform to the storage structure
161
+ */
162
+ /**
163
+ * @typedef BulkUserExportSchema
164
+ * @property {string} file_format - The format of the file in which you want to
165
+ * export data. Supported formats are CSV and XLSX.
166
+ */
167
+ /**
168
+ * @typedef BulkActionModel
169
+ * @property {string} _id - The Job ID associated with an Import or Export Job
170
+ * @property {string} file_name - The name of the file
171
+ * @property {string} file_format - The format of the uploaded file (e.g., CSV, XLSX).
172
+ * @property {string} action_type - The type of bulk action being performed
173
+ * (e.g., import, export).
174
+ * @property {CreatedBySchema} created_by
175
+ * @property {BulkActionCountSchema} [count]
176
+ * @property {string} [status] - The current status of the bulk action.
177
+ * @property {BulkActionLinkSchema} [links]
178
+ * @property {string} application_id - The unique identifier of the associated
179
+ * application.
180
+ * @property {string} company_id - The unique identifier of the company
181
+ * associated with the bulk action.
182
+ * @property {string} [created_at] - The timestamp when the bulk action was created.
183
+ * @property {string} [updated_at] - The timestamp when the bulk action was last updated.
184
+ */
185
+ /**
186
+ * @typedef CreatedBySchema
187
+ * @property {string} name - The name of the user who initiated the operation.
188
+ * @property {string} user_id - A unique identifier for the user who initiated
189
+ * the operation.
190
+ */
191
+ /**
192
+ * @typedef BulkActionLinkSchema
193
+ * @property {FileLinks} [file]
194
+ * @property {FileLinks} [error]
195
+ */
196
+ /**
197
+ * @typedef FileLinks
198
+ * @property {string} [absolute_url] - The full URL of the file, including the
199
+ * domain and protocol, allowing direct access to the file from any location.
200
+ * @property {string} [relative_url] - The relative path to the file within the
201
+ * storage system, excluding the base URL or domain. This path is specific to
202
+ * the storage structure.
203
+ */
204
+ /**
205
+ * @typedef BulkActionCountSchema
206
+ * @property {number} [total] - The total number of items to be processed.
207
+ * @property {number} [success] - The number of successfully processed items.
208
+ * @property {number} [error] - The number of items that failed to process.
209
+ */
81
210
  /**
82
211
  * @typedef BlockUserRequestSchema
83
212
  * @property {boolean} [status]
@@ -115,13 +244,19 @@ export = UserPlatformModel;
115
244
  * @property {UserSearchSchema[]} [items]
116
245
  * @property {PaginationSchema} [page]
117
246
  */
247
+ /**
248
+ * @typedef BulkActionPaginationSchema
249
+ * @property {BulkActionModel[]} [items] - Array of Bulk Action Documents
250
+ * @property {PaginationSchema} [page]
251
+ */
118
252
  /**
119
253
  * @typedef PaginationSchema
120
- * @property {number} [size]
121
- * @property {number} [item_total]
122
- * @property {boolean} [has_next]
123
- * @property {string} [type]
124
- * @property {number} [current]
254
+ * @property {number} [size] - The number of items per page.
255
+ * @property {number} [total] - The total number of items across all pages.
256
+ * @property {number} [item_total] - The total number of items across all pages.
257
+ * @property {boolean} [has_next] - Indicates whether there are more pages to retrieve.
258
+ * @property {string} [type] - The type of pagination used (eg Number).
259
+ * @property {number} [current] - The current page number.
125
260
  */
126
261
  /**
127
262
  * @typedef SessionListResponseSchema
@@ -192,9 +327,86 @@ export = UserPlatformModel;
192
327
  */
193
328
  /**
194
329
  * @typedef ConditionsSchema
195
- * @property {string} [user_attribute_definition_id]
196
- * @property {string} [type]
197
- * @property {string} [value]
330
+ * @property {string} [user_attribute_definition_id] - ID of the user attribute
331
+ * definition used in the condition
332
+ * @property {string} [type] - Type of condition to apply on the attribute value.
333
+ * @property {Object} [value] - Value of the condition
334
+ * @property {boolean} [ignore_year] - Indicates if the year should be ignored
335
+ * for the condition
336
+ */
337
+ /**
338
+ * @typedef DeleteBulkUserAttribute
339
+ * @property {string[]} [definition_ids] - List of user attribute definition IDs
340
+ * for which the corresponding values should be deleted.
341
+ */
342
+ /**
343
+ * @typedef UserAttributeFilter
344
+ * @property {UserAttributeFilterQuery} [query]
345
+ */
346
+ /**
347
+ * @typedef UserAttributeFilterQuery
348
+ * @property {string} type - Logical condition type to apply between multiple
349
+ * attribute filters.
350
+ * @property {number} limit - Number of results to return per page.
351
+ * @property {number} page - Page number to fetch.
352
+ * @property {string} [email] - Filter users by their exact email address.
353
+ * @property {boolean} [has_email] - Apply a filter to retrieve users who have a
354
+ * valid email address specified in their profile.
355
+ * @property {boolean} [has_phone] - Apply a filter to retrieve users who have a
356
+ * valid phone number specified in their profile.
357
+ * @property {string} [phone] - Filter users by their exact phone number.
358
+ * @property {string[]} [definition_ids] - List of user attribute definition IDs
359
+ * to fetch attributes values available for each user.
360
+ * @property {UserAttributeFilterRequestConditions[]} conditions - List of
361
+ * filtering conditions to apply on user attributes.
362
+ */
363
+ /**
364
+ * @typedef UserAttributeFilterRequestConditions
365
+ * @property {string} definition_id - ID of the user attribute definition to filter on.
366
+ * @property {string} type - Filter operation to apply on the attribute value.
367
+ * Supported operations include:
368
+ *
369
+ * - `eq`: Equal to - `ne`: Not equal to - `gt`: Greater than (or is after for
370
+ * dates) - `lt`: Less than (or is before for dates) - `gte`: Greater than
371
+ * or equal to - `lte`: Less than or equal to - `cnt`: Contains (for
372
+ * strings) - `nct`: Does not contain (for strings) - `is`: Matches
373
+ * exactly (for strings) - `nis`: Does not match exactly (for strings) -
374
+ * `sw`: Starts with (for strings) - `ew`: Ends with (for strings) -
375
+ * `btw`: Between two values (for date and datetime types) - `in`: Value
376
+ * exists in given list - `nin`: Value does not exist in given list
377
+ *
378
+ * @property {Object} value - Values to be used in filtering the attribute. Can
379
+ * be a single value or an array of values. Types supported: string, number,
380
+ * array of string, or array of number.
381
+ */
382
+ /**
383
+ * @typedef UserAttributeFiltered
384
+ * @property {UserAttributeFilteredList[]} [items] - List of user objects that
385
+ * match the filter criteria.
386
+ * @property {PaginationSchema} [page]
387
+ */
388
+ /**
389
+ * @typedef UserAttributeFilteredList
390
+ * @property {string} [_id] - Unique ID of the user.
391
+ * @property {string} [username] - Generated username for the user.
392
+ * @property {UserPhoneNumbers[]} [phone_numbers] - List of phone numbers
393
+ * associated with the user.
394
+ * @property {UserEmails[]} [emails] - List of emails associated with the user.
395
+ * @property {string} [gender] - Gender of the user.
396
+ * @property {boolean} [active] - Whether the user account is active.
397
+ * @property {boolean} [archive] - Whether the user account is archived.
398
+ * @property {string} [status] - Status of the user account.
399
+ * @property {UserAttribute[]} [attributes]
400
+ * @property {string} [first_name] - First name of the user.
401
+ * @property {string} [last_name] - Last name of the user.
402
+ * @property {string} [account_type] - Type of user account.
403
+ * @property {string} [profile_pic_url] - URL to user's profile picture.
404
+ * @property {boolean} [has_old_password_hash] - Whether user has legacy password format.
405
+ * @property {string} [user_id] - Unique user ID.
406
+ * @property {string} [application_id] - Application ID associated with the user.
407
+ * @property {boolean} [is_encrypted] - Whether the user data is encrypted.
408
+ * @property {string} [created_at] - Timestamp of user creation.
409
+ * @property {string} [updated_at] - Timestamp of last update.
198
410
  */
199
411
  /**
200
412
  * @typedef CreateUserGroup
@@ -206,15 +418,17 @@ export = UserPlatformModel;
206
418
  */
207
419
  /**
208
420
  * @typedef CreateUserRequestSchema
209
- * @property {string} phone_number
421
+ * @property {string} [phone_number]
210
422
  * @property {string} [email]
211
423
  * @property {string} [first_name]
212
424
  * @property {string} [last_name]
213
425
  * @property {string} [gender]
214
- * @property {string} username
426
+ * @property {string} [username]
215
427
  * @property {Object} [meta]
216
428
  * @property {string} [external_id]
217
429
  * @property {string} [rr_id]
430
+ * @property {string} [dob] - User's date of birth in ISO date
431
+ * format("1990-01-01T00:00:00.000Z").
218
432
  */
219
433
  /**
220
434
  * @typedef CreateUserResponseSchema
@@ -324,6 +538,7 @@ export = UserPlatformModel;
324
538
  * @property {Facebook} [facebook]
325
539
  * @property {Accountkit} [account_kit]
326
540
  * @property {Google} [google]
541
+ * @property {Apple} [apple]
327
542
  */
328
543
  /**
329
544
  * @typedef DeleteAccountReasons
@@ -335,6 +550,19 @@ export = UserPlatformModel;
335
550
  * @typedef DeleteAccountConsent
336
551
  * @property {string} [consent_text]
337
552
  */
553
+ /**
554
+ * @typedef GetUserTimeline
555
+ * @property {string} [delete_on] - Denotes the date on which the user will be deleted
556
+ * @property {UserTimeline[]} [timeline] - List of user timeline events
557
+ */
558
+ /**
559
+ * @typedef UserTimeline
560
+ * @property {string} [date] - Denotes the date at which this event occured
561
+ * @property {string} [title] - Title of the timeline event
562
+ * @property {string} [type] - Type of the event, indicating its status
563
+ * @property {boolean} [visible] - Indicates whether the event should be shown on the UI
564
+ * @property {string} [sub_title] - Additional information about the event
565
+ */
338
566
  /**
339
567
  * @typedef Facebook
340
568
  * @property {string} [app_id]
@@ -350,6 +578,11 @@ export = UserPlatformModel;
350
578
  * @property {string} [app_id]
351
579
  * @property {string} [app_secret]
352
580
  */
581
+ /**
582
+ * @typedef Apple
583
+ * @property {string} [app_id]
584
+ * @property {string} [redirect_uri]
585
+ */
353
586
  /**
354
587
  * @typedef SessionExpiry
355
588
  * @property {number} [duration]
@@ -380,7 +613,7 @@ export = UserPlatformModel;
380
613
  */
381
614
  /**
382
615
  * @typedef UserGroupUpdateData
383
- * @property {string} [user_id] - Must be valid mongodb objectid of existing user
616
+ * @property {string} [user_id] - Must be valid ID of existing user
384
617
  * @property {string} [phone_number] - Phone number of registered user
385
618
  * @property {string} [email] - Email of registered user
386
619
  * @property {string} action
@@ -389,6 +622,8 @@ export = UserPlatformModel;
389
622
  * @typedef UpdateUserRequestSchema
390
623
  * @property {string} [first_name]
391
624
  * @property {string} [last_name]
625
+ * @property {string} [dob] - User's date of birth in ISO date
626
+ * format("1990-01-01T00:00:00.000Z").
392
627
  * @property {string} [gender]
393
628
  * @property {string} [external_id]
394
629
  * @property {string} [rr_id]
@@ -421,7 +656,8 @@ export = UserPlatformModel;
421
656
  * @property {PhoneNumber[]} [phone_numbers]
422
657
  * @property {Email[]} [emails]
423
658
  * @property {string} [gender]
424
- * @property {string} [dob]
659
+ * @property {string} [dob] - User's date of birth in ISO date
660
+ * format("1990-01-01T00:00:00.000Z").
425
661
  * @property {boolean} [active]
426
662
  * @property {string} [profile_pic_url]
427
663
  * @property {string} [username]
@@ -431,6 +667,7 @@ export = UserPlatformModel;
431
667
  * @property {string} [updated_at]
432
668
  * @property {string} [external_id]
433
669
  * @property {string} [rr_id]
670
+ * @property {UserConsent} [consent]
434
671
  */
435
672
  /**
436
673
  * @typedef UserSearchSchema
@@ -442,7 +679,8 @@ export = UserPlatformModel;
442
679
  * @property {PhoneNumber[]} [phone_numbers]
443
680
  * @property {Email[]} [emails]
444
681
  * @property {string} [gender]
445
- * @property {string} [dob]
682
+ * @property {string} [dob] - User's date of birth in ISO date
683
+ * format("1990-01-01T00:00:00.000Z").
446
684
  * @property {boolean} [active]
447
685
  * @property {string} [profile_pic_url]
448
686
  * @property {string} [username]
@@ -454,6 +692,8 @@ export = UserPlatformModel;
454
692
  * @property {string} [rr_id]
455
693
  * @property {boolean} [archive]
456
694
  * @property {string} [status]
695
+ * @property {string} [deleted_on]
696
+ * @property {UserConsent} [consent]
457
697
  */
458
698
  /**
459
699
  * @typedef PhoneNumber
@@ -470,16 +710,47 @@ export = UserPlatformModel;
470
710
  * @property {boolean} [primary] - Is it a primary email.
471
711
  * @property {boolean} [verified] - Is the email verified.
472
712
  */
713
+ /**
714
+ * @typedef UserConsent
715
+ * @property {PrivacyPolicyConsentSchema} [privacy_policy]
716
+ */
717
+ /**
718
+ * @typedef DeleteUserGroupSuccess
719
+ * @property {string} id - ID of the user group that was deleted
720
+ * @property {boolean} success - Success indicating the user group was deleted
721
+ * successfully.
722
+ */
723
+ /**
724
+ * @typedef PrivacyPolicyConsentSchema
725
+ * @property {boolean} [value] - Whether the user has consented to the privacy policy
726
+ * @property {string} [updated_at] - When the consent was last updated
727
+ */
473
728
  declare class UserPlatformModel {
474
729
  }
475
730
  declare namespace UserPlatformModel {
476
- export { SuccessMessageResponse, UserAttributeDefinition, UserAttributeDefinitionResponse, UserAttributeDefinitionValidation, UserAttributeResponse, CreateUserAttributeRequest, CreateUserAttributeDefinition, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
731
+ export { SuccessMessage, UserAttributeDefinitionList, UserAttributeDefinitionsResponseSchema, UserAttributeDefinition, UserAttributeDefinitionDetails, AttributeMaskingProperties, AttributeRegistrationProperties, UserAttributeDefinitionValidation, BulkUserAttribute, UserAttribute, CreateBulkUserAttribute, BulkUserAttributeRequestBody, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, DeleteBulkUserAttribute, UserAttributeFilter, UserAttributeFilterQuery, UserAttributeFilterRequestConditions, UserAttributeFiltered, UserAttributeFilteredList, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, Apple, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, DeleteUserGroupSuccess, PrivacyPolicyConsentSchema };
477
732
  }
478
- /** @returns {SuccessMessageResponse} */
479
- declare function SuccessMessageResponse(): SuccessMessageResponse;
480
- type SuccessMessageResponse = {
733
+ /** @returns {SuccessMessage} */
734
+ declare function SuccessMessage(): SuccessMessage;
735
+ type SuccessMessage = {
481
736
  success?: string;
482
737
  };
738
+ /** @returns {UserAttributeDefinitionList} */
739
+ declare function UserAttributeDefinitionList(): UserAttributeDefinitionList;
740
+ type UserAttributeDefinitionList = {
741
+ /**
742
+ * - Array of user attribute
743
+ * definition objects.
744
+ */
745
+ items?: UserAttributeDefinition[];
746
+ page?: PaginationSchema;
747
+ };
748
+ /** @returns {UserAttributeDefinitionsResponseSchema} */
749
+ declare function UserAttributeDefinitionsResponseSchema(): UserAttributeDefinitionsResponseSchema;
750
+ type UserAttributeDefinitionsResponseSchema = {
751
+ items?: UserAttribute[];
752
+ page?: PaginationSchema;
753
+ };
483
754
  /** @returns {UserAttributeDefinition} */
484
755
  declare function UserAttributeDefinition(): UserAttributeDefinition;
485
756
  type UserAttributeDefinition = {
@@ -508,9 +779,22 @@ type UserAttributeDefinition = {
508
779
  */
509
780
  type?: string;
510
781
  /**
511
- * - Whether the attribute supports multiple values.
782
+ * - Optional icon representation for this attribute.
783
+ * Defaults to an empty string.
512
784
  */
513
- multi_value?: boolean;
785
+ icon?: string;
786
+ /**
787
+ * - Ordering Channels where this
788
+ * attribute should be visible.
789
+ */
790
+ ordering_channels?: string[];
791
+ masking?: AttributeMaskingProperties;
792
+ registration?: AttributeRegistrationProperties;
793
+ /**
794
+ * - Indicates if this attribute can accept
795
+ * multiple values.
796
+ */
797
+ is_multi_value?: boolean;
514
798
  /**
515
799
  * - Whether the attribute is customer-editable.
516
800
  */
@@ -544,10 +828,14 @@ type UserAttributeDefinition = {
544
828
  * - The version number of the attribute.
545
829
  */
546
830
  __v?: number;
831
+ /**
832
+ * - List of possible values for the attribute
833
+ */
834
+ options?: string[];
547
835
  };
548
- /** @returns {UserAttributeDefinitionResponse} */
549
- declare function UserAttributeDefinitionResponse(): UserAttributeDefinitionResponse;
550
- type UserAttributeDefinitionResponse = {
836
+ /** @returns {UserAttributeDefinitionDetails} */
837
+ declare function UserAttributeDefinitionDetails(): UserAttributeDefinitionDetails;
838
+ type UserAttributeDefinitionDetails = {
551
839
  /**
552
840
  * - The unique identifier for the attribute definition.
553
841
  */
@@ -573,9 +861,22 @@ type UserAttributeDefinitionResponse = {
573
861
  */
574
862
  type?: string;
575
863
  /**
576
- * - Whether the attribute supports multiple values.
864
+ * - Optional icon representation for this attribute.
865
+ * Defaults to an empty string.
577
866
  */
578
- multi_value?: boolean;
867
+ icon?: string;
868
+ /**
869
+ * - Ordering Channels where this
870
+ * attribute should be visible.
871
+ */
872
+ ordering_channels?: string[];
873
+ masking?: AttributeMaskingProperties;
874
+ registration?: AttributeRegistrationProperties;
875
+ /**
876
+ * - Indicates if this attribute can accept
877
+ * multiple values.
878
+ */
879
+ is_multi_value?: boolean;
579
880
  /**
580
881
  * - Whether the attribute is customer-editable.
581
882
  */
@@ -615,6 +916,34 @@ type UserAttributeDefinitionResponse = {
615
916
  */
616
917
  modified_at?: string;
617
918
  };
919
+ /** @returns {AttributeMaskingProperties} */
920
+ declare function AttributeMaskingProperties(): AttributeMaskingProperties;
921
+ type AttributeMaskingProperties = {
922
+ /**
923
+ * - Indicates if PII masking is editable for this
924
+ * attribute.
925
+ */
926
+ enabled?: boolean;
927
+ /**
928
+ * - Indicates the PII masking options available
929
+ * default or others
930
+ */
931
+ type?: string;
932
+ };
933
+ /** @returns {AttributeRegistrationProperties} */
934
+ declare function AttributeRegistrationProperties(): AttributeRegistrationProperties;
935
+ type AttributeRegistrationProperties = {
936
+ /**
937
+ * - Indicates if an attribute is editable when
938
+ * customer registers for a storefront.
939
+ */
940
+ enabled?: boolean;
941
+ /**
942
+ * - Indicates if this attribute is mandatory or
943
+ * optional when customer registers for a storefront.
944
+ */
945
+ type?: string;
946
+ };
618
947
  /** @returns {UserAttributeDefinitionValidation} */
619
948
  declare function UserAttributeDefinitionValidation(): UserAttributeDefinitionValidation;
620
949
  type UserAttributeDefinitionValidation = {
@@ -627,9 +956,18 @@ type UserAttributeDefinitionValidation = {
627
956
  */
628
957
  value?: any;
629
958
  };
630
- /** @returns {UserAttributeResponse} */
631
- declare function UserAttributeResponse(): UserAttributeResponse;
632
- type UserAttributeResponse = {
959
+ /** @returns {BulkUserAttribute} */
960
+ declare function BulkUserAttribute(): BulkUserAttribute;
961
+ type BulkUserAttribute = {
962
+ /**
963
+ * - This describes the status of the API response
964
+ */
965
+ success?: boolean;
966
+ attributes?: UserAttribute[];
967
+ };
968
+ /** @returns {UserAttribute} */
969
+ declare function UserAttribute(): UserAttribute;
970
+ type UserAttribute = {
633
971
  /**
634
972
  * - The unique identifier for the attribute definition.
635
973
  */
@@ -646,6 +984,21 @@ type UserAttributeResponse = {
646
984
  * - The application ID.
647
985
  */
648
986
  application_id?: string;
987
+ /**
988
+ * - The unique id of the
989
+ * attribute definition.
990
+ */
991
+ user_attribute_definition_id?: string;
992
+ /**
993
+ * - The time when attribute value is created
994
+ * for a user in ISO format.
995
+ */
996
+ created_at?: string;
997
+ /**
998
+ * - The time when attribute value is updated
999
+ * for a user in ISO format.
1000
+ */
1001
+ updated_at?: string;
649
1002
  /**
650
1003
  * - The attribute type.
651
1004
  */
@@ -653,14 +1006,38 @@ type UserAttributeResponse = {
653
1006
  /**
654
1007
  * - Whether the attribute is customer-editable.
655
1008
  */
656
- customer_overriden?: boolean;
1009
+ customer_overridden?: boolean;
657
1010
  attribute?: any;
658
1011
  updated_by?: string;
659
1012
  };
660
- /** @returns {CreateUserAttributeRequest} */
661
- declare function CreateUserAttributeRequest(): CreateUserAttributeRequest;
662
- type CreateUserAttributeRequest = {
663
- customer_overriden?: boolean;
1013
+ /** @returns {CreateBulkUserAttribute} */
1014
+ declare function CreateBulkUserAttribute(): CreateBulkUserAttribute;
1015
+ type CreateBulkUserAttribute = {
1016
+ /**
1017
+ * - This is an array of
1018
+ * objects containing id of attribute definitions and the respective values to
1019
+ * created or updated
1020
+ */
1021
+ attributes: BulkUserAttributeRequestBody[];
1022
+ };
1023
+ /** @returns {BulkUserAttributeRequestBody} */
1024
+ declare function BulkUserAttributeRequestBody(): BulkUserAttributeRequestBody;
1025
+ type BulkUserAttributeRequestBody = {
1026
+ /**
1027
+ * - Theis is an unique id of user attribute definition
1028
+ */
1029
+ definition_id: string;
1030
+ /**
1031
+ * - Attribute values to be create or updated. Can be a
1032
+ * single value or an array of values. Types supported: string, number, array
1033
+ * of string, or array of number.
1034
+ */
1035
+ value: any;
1036
+ };
1037
+ /** @returns {CreateUserAttribute} */
1038
+ declare function CreateUserAttribute(): CreateUserAttribute;
1039
+ type CreateUserAttribute = {
1040
+ customer_overridden?: boolean;
664
1041
  attribute?: any;
665
1042
  };
666
1043
  /** @returns {CreateUserAttributeDefinition} */
@@ -669,8 +1046,27 @@ type CreateUserAttributeDefinition = {
669
1046
  name?: string;
670
1047
  slug?: string;
671
1048
  description?: string;
1049
+ /**
1050
+ * - The attribute type.
1051
+ */
672
1052
  type?: string;
673
- multi_value?: boolean;
1053
+ /**
1054
+ * - Optional icon representation for this attribute.
1055
+ * Defaults to an empty string.
1056
+ */
1057
+ icon?: string;
1058
+ /**
1059
+ * - Ordering Channels where this
1060
+ * attribute should be visible.
1061
+ */
1062
+ ordering_channels?: string[];
1063
+ masking?: AttributeMaskingProperties;
1064
+ registration?: AttributeRegistrationProperties;
1065
+ /**
1066
+ * - Indicates if this attribute can accept
1067
+ * multiple values.
1068
+ */
1069
+ is_multi_value?: boolean;
674
1070
  customer_editable?: boolean;
675
1071
  encrypted?: boolean;
676
1072
  pinned?: boolean;
@@ -678,6 +1074,131 @@ type CreateUserAttributeDefinition = {
678
1074
  default_value?: string;
679
1075
  validations?: any[];
680
1076
  };
1077
+ /** @returns {CreateStoreFrontUsersPayload} */
1078
+ declare function CreateStoreFrontUsersPayload(): CreateStoreFrontUsersPayload;
1079
+ type CreateStoreFrontUsersPayload = {
1080
+ /**
1081
+ * - A valid URL linking to the file containing
1082
+ * user data to be imported.
1083
+ */
1084
+ absolute_url: string;
1085
+ /**
1086
+ * - The format of the file containing the user's
1087
+ * data. Supported formats are CSV and XLSX.
1088
+ */
1089
+ file_format: string;
1090
+ /**
1091
+ * - A valid relative path to the file within
1092
+ * the storage system. This path should not include the base URL or domain and
1093
+ * must conform to the storage structure
1094
+ */
1095
+ relative_url: string;
1096
+ };
1097
+ /** @returns {BulkUserExportSchema} */
1098
+ declare function BulkUserExportSchema(): BulkUserExportSchema;
1099
+ type BulkUserExportSchema = {
1100
+ /**
1101
+ * - The format of the file in which you want to
1102
+ * export data. Supported formats are CSV and XLSX.
1103
+ */
1104
+ file_format: string;
1105
+ };
1106
+ /** @returns {BulkActionModel} */
1107
+ declare function BulkActionModel(): BulkActionModel;
1108
+ type BulkActionModel = {
1109
+ /**
1110
+ * - The Job ID associated with an Import or Export Job
1111
+ */
1112
+ _id: string;
1113
+ /**
1114
+ * - The name of the file
1115
+ */
1116
+ file_name: string;
1117
+ /**
1118
+ * - The format of the uploaded file (e.g., CSV, XLSX).
1119
+ */
1120
+ file_format: string;
1121
+ /**
1122
+ * - The type of bulk action being performed
1123
+ * (e.g., import, export).
1124
+ */
1125
+ action_type: string;
1126
+ created_by: CreatedBySchema;
1127
+ count?: BulkActionCountSchema;
1128
+ /**
1129
+ * - The current status of the bulk action.
1130
+ */
1131
+ status?: string;
1132
+ links?: BulkActionLinkSchema;
1133
+ /**
1134
+ * - The unique identifier of the associated
1135
+ * application.
1136
+ */
1137
+ application_id: string;
1138
+ /**
1139
+ * - The unique identifier of the company
1140
+ * associated with the bulk action.
1141
+ */
1142
+ company_id: string;
1143
+ /**
1144
+ * - The timestamp when the bulk action was created.
1145
+ */
1146
+ created_at?: string;
1147
+ /**
1148
+ * - The timestamp when the bulk action was last updated.
1149
+ */
1150
+ updated_at?: string;
1151
+ };
1152
+ /** @returns {CreatedBySchema} */
1153
+ declare function CreatedBySchema(): CreatedBySchema;
1154
+ type CreatedBySchema = {
1155
+ /**
1156
+ * - The name of the user who initiated the operation.
1157
+ */
1158
+ name: string;
1159
+ /**
1160
+ * - A unique identifier for the user who initiated
1161
+ * the operation.
1162
+ */
1163
+ user_id: string;
1164
+ };
1165
+ /** @returns {BulkActionLinkSchema} */
1166
+ declare function BulkActionLinkSchema(): BulkActionLinkSchema;
1167
+ type BulkActionLinkSchema = {
1168
+ file?: FileLinks;
1169
+ error?: FileLinks;
1170
+ };
1171
+ /** @returns {FileLinks} */
1172
+ declare function FileLinks(): FileLinks;
1173
+ type FileLinks = {
1174
+ /**
1175
+ * - The full URL of the file, including the
1176
+ * domain and protocol, allowing direct access to the file from any location.
1177
+ */
1178
+ absolute_url?: string;
1179
+ /**
1180
+ * - The relative path to the file within the
1181
+ * storage system, excluding the base URL or domain. This path is specific to
1182
+ * the storage structure.
1183
+ */
1184
+ relative_url?: string;
1185
+ };
1186
+ /** @returns {BulkActionCountSchema} */
1187
+ declare function BulkActionCountSchema(): BulkActionCountSchema;
1188
+ type BulkActionCountSchema = {
1189
+ /**
1190
+ * - The total number of items to be processed.
1191
+ */
1192
+ total?: number;
1193
+ /**
1194
+ * - The number of successfully processed items.
1195
+ */
1196
+ success?: number;
1197
+ /**
1198
+ * - The number of items that failed to process.
1199
+ */
1200
+ error?: number;
1201
+ };
681
1202
  /** @returns {BlockUserRequestSchema} */
682
1203
  declare function BlockUserRequestSchema(): BlockUserRequestSchema;
683
1204
  type BlockUserRequestSchema = {
@@ -723,13 +1244,41 @@ type CustomerListResponseSchema = {
723
1244
  items?: UserSearchSchema[];
724
1245
  page?: PaginationSchema;
725
1246
  };
1247
+ /** @returns {BulkActionPaginationSchema} */
1248
+ declare function BulkActionPaginationSchema(): BulkActionPaginationSchema;
1249
+ type BulkActionPaginationSchema = {
1250
+ /**
1251
+ * - Array of Bulk Action Documents
1252
+ */
1253
+ items?: BulkActionModel[];
1254
+ page?: PaginationSchema;
1255
+ };
726
1256
  /** @returns {PaginationSchema} */
727
1257
  declare function PaginationSchema(): PaginationSchema;
728
1258
  type PaginationSchema = {
1259
+ /**
1260
+ * - The number of items per page.
1261
+ */
729
1262
  size?: number;
1263
+ /**
1264
+ * - The total number of items across all pages.
1265
+ */
1266
+ total?: number;
1267
+ /**
1268
+ * - The total number of items across all pages.
1269
+ */
730
1270
  item_total?: number;
1271
+ /**
1272
+ * - Indicates whether there are more pages to retrieve.
1273
+ */
731
1274
  has_next?: boolean;
1275
+ /**
1276
+ * - The type of pagination used (eg Number).
1277
+ */
732
1278
  type?: string;
1279
+ /**
1280
+ * - The current page number.
1281
+ */
733
1282
  current?: number;
734
1283
  };
735
1284
  /** @returns {SessionListResponseSchema} */
@@ -814,9 +1363,199 @@ type UserGroupListResponseSchema = {
814
1363
  /** @returns {ConditionsSchema} */
815
1364
  declare function ConditionsSchema(): ConditionsSchema;
816
1365
  type ConditionsSchema = {
1366
+ /**
1367
+ * - ID of the user attribute
1368
+ * definition used in the condition
1369
+ */
817
1370
  user_attribute_definition_id?: string;
1371
+ /**
1372
+ * - Type of condition to apply on the attribute value.
1373
+ */
818
1374
  type?: string;
819
- value?: string;
1375
+ /**
1376
+ * - Value of the condition
1377
+ */
1378
+ value?: any;
1379
+ /**
1380
+ * - Indicates if the year should be ignored
1381
+ * for the condition
1382
+ */
1383
+ ignore_year?: boolean;
1384
+ };
1385
+ /** @returns {DeleteBulkUserAttribute} */
1386
+ declare function DeleteBulkUserAttribute(): DeleteBulkUserAttribute;
1387
+ type DeleteBulkUserAttribute = {
1388
+ /**
1389
+ * - List of user attribute definition IDs
1390
+ * for which the corresponding values should be deleted.
1391
+ */
1392
+ definition_ids?: string[];
1393
+ };
1394
+ /** @returns {UserAttributeFilter} */
1395
+ declare function UserAttributeFilter(): UserAttributeFilter;
1396
+ type UserAttributeFilter = {
1397
+ query?: UserAttributeFilterQuery;
1398
+ };
1399
+ /** @returns {UserAttributeFilterQuery} */
1400
+ declare function UserAttributeFilterQuery(): UserAttributeFilterQuery;
1401
+ type UserAttributeFilterQuery = {
1402
+ /**
1403
+ * - Logical condition type to apply between multiple
1404
+ * attribute filters.
1405
+ */
1406
+ type: string;
1407
+ /**
1408
+ * - Number of results to return per page.
1409
+ */
1410
+ limit: number;
1411
+ /**
1412
+ * - Page number to fetch.
1413
+ */
1414
+ page: number;
1415
+ /**
1416
+ * - Filter users by their exact email address.
1417
+ */
1418
+ email?: string;
1419
+ /**
1420
+ * - Apply a filter to retrieve users who have a
1421
+ * valid email address specified in their profile.
1422
+ */
1423
+ has_email?: boolean;
1424
+ /**
1425
+ * - Apply a filter to retrieve users who have a
1426
+ * valid phone number specified in their profile.
1427
+ */
1428
+ has_phone?: boolean;
1429
+ /**
1430
+ * - Filter users by their exact phone number.
1431
+ */
1432
+ phone?: string;
1433
+ /**
1434
+ * - List of user attribute definition IDs
1435
+ * to fetch attributes values available for each user.
1436
+ */
1437
+ definition_ids?: string[];
1438
+ /**
1439
+ * - List of
1440
+ * filtering conditions to apply on user attributes.
1441
+ */
1442
+ conditions: UserAttributeFilterRequestConditions[];
1443
+ };
1444
+ /** @returns {UserAttributeFilterRequestConditions} */
1445
+ declare function UserAttributeFilterRequestConditions(): UserAttributeFilterRequestConditions;
1446
+ type UserAttributeFilterRequestConditions = {
1447
+ /**
1448
+ * - ID of the user attribute definition to filter on.
1449
+ */
1450
+ definition_id: string;
1451
+ /**
1452
+ * - Filter operation to apply on the attribute value.
1453
+ * Supported operations include:
1454
+ *
1455
+ * - `eq`: Equal to - `ne`: Not equal to - `gt`: Greater than (or is after for
1456
+ * dates) - `lt`: Less than (or is before for dates) - `gte`: Greater than
1457
+ * or equal to - `lte`: Less than or equal to - `cnt`: Contains (for
1458
+ * strings) - `nct`: Does not contain (for strings) - `is`: Matches
1459
+ * exactly (for strings) - `nis`: Does not match exactly (for strings) -
1460
+ * `sw`: Starts with (for strings) - `ew`: Ends with (for strings) -
1461
+ * `btw`: Between two values (for date and datetime types) - `in`: Value
1462
+ * exists in given list - `nin`: Value does not exist in given list
1463
+ */
1464
+ type: string;
1465
+ /**
1466
+ * - Values to be used in filtering the attribute. Can
1467
+ * be a single value or an array of values. Types supported: string, number,
1468
+ * array of string, or array of number.
1469
+ */
1470
+ value: any;
1471
+ };
1472
+ /** @returns {UserAttributeFiltered} */
1473
+ declare function UserAttributeFiltered(): UserAttributeFiltered;
1474
+ type UserAttributeFiltered = {
1475
+ /**
1476
+ * - List of user objects that
1477
+ * match the filter criteria.
1478
+ */
1479
+ items?: UserAttributeFilteredList[];
1480
+ page?: PaginationSchema;
1481
+ };
1482
+ /** @returns {UserAttributeFilteredList} */
1483
+ declare function UserAttributeFilteredList(): UserAttributeFilteredList;
1484
+ type UserAttributeFilteredList = {
1485
+ /**
1486
+ * - Unique ID of the user.
1487
+ */
1488
+ _id?: string;
1489
+ /**
1490
+ * - Generated username for the user.
1491
+ */
1492
+ username?: string;
1493
+ /**
1494
+ * - List of phone numbers
1495
+ * associated with the user.
1496
+ */
1497
+ phone_numbers?: UserPhoneNumbers[];
1498
+ /**
1499
+ * - List of emails associated with the user.
1500
+ */
1501
+ emails?: UserEmails[];
1502
+ /**
1503
+ * - Gender of the user.
1504
+ */
1505
+ gender?: string;
1506
+ /**
1507
+ * - Whether the user account is active.
1508
+ */
1509
+ active?: boolean;
1510
+ /**
1511
+ * - Whether the user account is archived.
1512
+ */
1513
+ archive?: boolean;
1514
+ /**
1515
+ * - Status of the user account.
1516
+ */
1517
+ status?: string;
1518
+ attributes?: UserAttribute[];
1519
+ /**
1520
+ * - First name of the user.
1521
+ */
1522
+ first_name?: string;
1523
+ /**
1524
+ * - Last name of the user.
1525
+ */
1526
+ last_name?: string;
1527
+ /**
1528
+ * - Type of user account.
1529
+ */
1530
+ account_type?: string;
1531
+ /**
1532
+ * - URL to user's profile picture.
1533
+ */
1534
+ profile_pic_url?: string;
1535
+ /**
1536
+ * - Whether user has legacy password format.
1537
+ */
1538
+ has_old_password_hash?: boolean;
1539
+ /**
1540
+ * - Unique user ID.
1541
+ */
1542
+ user_id?: string;
1543
+ /**
1544
+ * - Application ID associated with the user.
1545
+ */
1546
+ application_id?: string;
1547
+ /**
1548
+ * - Whether the user data is encrypted.
1549
+ */
1550
+ is_encrypted?: boolean;
1551
+ /**
1552
+ * - Timestamp of user creation.
1553
+ */
1554
+ created_at?: string;
1555
+ /**
1556
+ * - Timestamp of last update.
1557
+ */
1558
+ updated_at?: string;
820
1559
  };
821
1560
  /** @returns {CreateUserGroup} */
822
1561
  declare function CreateUserGroup(): CreateUserGroup;
@@ -830,15 +1569,20 @@ type CreateUserGroup = {
830
1569
  /** @returns {CreateUserRequestSchema} */
831
1570
  declare function CreateUserRequestSchema(): CreateUserRequestSchema;
832
1571
  type CreateUserRequestSchema = {
833
- phone_number: string;
1572
+ phone_number?: string;
834
1573
  email?: string;
835
1574
  first_name?: string;
836
1575
  last_name?: string;
837
1576
  gender?: string;
838
- username: string;
1577
+ username?: string;
839
1578
  meta?: any;
840
1579
  external_id?: string;
841
1580
  rr_id?: string;
1581
+ /**
1582
+ * - User's date of birth in ISO date
1583
+ * format("1990-01-01T00:00:00.000Z").
1584
+ */
1585
+ dob?: string;
842
1586
  };
843
1587
  /** @returns {CreateUserResponseSchema} */
844
1588
  declare function CreateUserResponseSchema(): CreateUserResponseSchema;
@@ -964,6 +1708,7 @@ type SocialTokens = {
964
1708
  facebook?: Facebook;
965
1709
  account_kit?: Accountkit;
966
1710
  google?: Google;
1711
+ apple?: Apple;
967
1712
  };
968
1713
  /** @returns {DeleteAccountReasons} */
969
1714
  declare function DeleteAccountReasons(): DeleteAccountReasons;
@@ -977,6 +1722,42 @@ declare function DeleteAccountConsent(): DeleteAccountConsent;
977
1722
  type DeleteAccountConsent = {
978
1723
  consent_text?: string;
979
1724
  };
1725
+ /** @returns {GetUserTimeline} */
1726
+ declare function GetUserTimeline(): GetUserTimeline;
1727
+ type GetUserTimeline = {
1728
+ /**
1729
+ * - Denotes the date on which the user will be deleted
1730
+ */
1731
+ delete_on?: string;
1732
+ /**
1733
+ * - List of user timeline events
1734
+ */
1735
+ timeline?: UserTimeline[];
1736
+ };
1737
+ /** @returns {UserTimeline} */
1738
+ declare function UserTimeline(): UserTimeline;
1739
+ type UserTimeline = {
1740
+ /**
1741
+ * - Denotes the date at which this event occured
1742
+ */
1743
+ date?: string;
1744
+ /**
1745
+ * - Title of the timeline event
1746
+ */
1747
+ title?: string;
1748
+ /**
1749
+ * - Type of the event, indicating its status
1750
+ */
1751
+ type?: string;
1752
+ /**
1753
+ * - Indicates whether the event should be shown on the UI
1754
+ */
1755
+ visible?: boolean;
1756
+ /**
1757
+ * - Additional information about the event
1758
+ */
1759
+ sub_title?: string;
1760
+ };
980
1761
  /** @returns {Facebook} */
981
1762
  declare function Facebook(): Facebook;
982
1763
  type Facebook = {
@@ -995,6 +1776,12 @@ type Google = {
995
1776
  app_id?: string;
996
1777
  app_secret?: string;
997
1778
  };
1779
+ /** @returns {Apple} */
1780
+ declare function Apple(): Apple;
1781
+ type Apple = {
1782
+ app_id?: string;
1783
+ redirect_uri?: string;
1784
+ };
998
1785
  /** @returns {SessionExpiry} */
999
1786
  declare function SessionExpiry(): SessionExpiry;
1000
1787
  type SessionExpiry = {
@@ -1039,7 +1826,7 @@ type PartialUserGroupUpdateSchema = {
1039
1826
  declare function UserGroupUpdateData(): UserGroupUpdateData;
1040
1827
  type UserGroupUpdateData = {
1041
1828
  /**
1042
- * - Must be valid mongodb objectid of existing user
1829
+ * - Must be valid ID of existing user
1043
1830
  */
1044
1831
  user_id?: string;
1045
1832
  /**
@@ -1057,6 +1844,11 @@ declare function UpdateUserRequestSchema(): UpdateUserRequestSchema;
1057
1844
  type UpdateUserRequestSchema = {
1058
1845
  first_name?: string;
1059
1846
  last_name?: string;
1847
+ /**
1848
+ * - User's date of birth in ISO date
1849
+ * format("1990-01-01T00:00:00.000Z").
1850
+ */
1851
+ dob?: string;
1060
1852
  gender?: string;
1061
1853
  external_id?: string;
1062
1854
  rr_id?: string;
@@ -1092,6 +1884,10 @@ type UserSchema = {
1092
1884
  phone_numbers?: PhoneNumber[];
1093
1885
  emails?: Email[];
1094
1886
  gender?: string;
1887
+ /**
1888
+ * - User's date of birth in ISO date
1889
+ * format("1990-01-01T00:00:00.000Z").
1890
+ */
1095
1891
  dob?: string;
1096
1892
  active?: boolean;
1097
1893
  profile_pic_url?: string;
@@ -1102,6 +1898,7 @@ type UserSchema = {
1102
1898
  updated_at?: string;
1103
1899
  external_id?: string;
1104
1900
  rr_id?: string;
1901
+ consent?: UserConsent;
1105
1902
  };
1106
1903
  /** @returns {UserSearchSchema} */
1107
1904
  declare function UserSearchSchema(): UserSearchSchema;
@@ -1114,6 +1911,10 @@ type UserSearchSchema = {
1114
1911
  phone_numbers?: PhoneNumber[];
1115
1912
  emails?: Email[];
1116
1913
  gender?: string;
1914
+ /**
1915
+ * - User's date of birth in ISO date
1916
+ * format("1990-01-01T00:00:00.000Z").
1917
+ */
1117
1918
  dob?: string;
1118
1919
  active?: boolean;
1119
1920
  profile_pic_url?: string;
@@ -1126,6 +1927,8 @@ type UserSearchSchema = {
1126
1927
  rr_id?: string;
1127
1928
  archive?: boolean;
1128
1929
  status?: string;
1930
+ deleted_on?: string;
1931
+ consent?: UserConsent;
1129
1932
  };
1130
1933
  /** @returns {PhoneNumber} */
1131
1934
  declare function PhoneNumber(): PhoneNumber;
@@ -1171,3 +1974,33 @@ type Email = {
1171
1974
  */
1172
1975
  verified?: boolean;
1173
1976
  };
1977
+ /** @returns {UserConsent} */
1978
+ declare function UserConsent(): UserConsent;
1979
+ type UserConsent = {
1980
+ privacy_policy?: PrivacyPolicyConsentSchema;
1981
+ };
1982
+ /** @returns {DeleteUserGroupSuccess} */
1983
+ declare function DeleteUserGroupSuccess(): DeleteUserGroupSuccess;
1984
+ type DeleteUserGroupSuccess = {
1985
+ /**
1986
+ * - ID of the user group that was deleted
1987
+ */
1988
+ id: string;
1989
+ /**
1990
+ * - Success indicating the user group was deleted
1991
+ * successfully.
1992
+ */
1993
+ success: boolean;
1994
+ };
1995
+ /** @returns {PrivacyPolicyConsentSchema} */
1996
+ declare function PrivacyPolicyConsentSchema(): PrivacyPolicyConsentSchema;
1997
+ type PrivacyPolicyConsentSchema = {
1998
+ /**
1999
+ * - Whether the user has consented to the privacy policy
2000
+ */
2001
+ value?: boolean;
2002
+ /**
2003
+ * - When the consent was last updated
2004
+ */
2005
+ updated_at?: string;
2006
+ };