@oxyhq/services 5.4.2 → 5.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/README.md +14 -0
  2. package/lib/commonjs/assets/OxyLogo.svg +1 -0
  3. package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
  4. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  5. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  6. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  7. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  8. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  9. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  10. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  11. package/lib/commonjs/assets/assets/icons/OxyServices.tsx +67 -0
  12. package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
  13. package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
  14. package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  15. package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  16. package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  17. package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  18. package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  19. package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  20. package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  21. package/lib/commonjs/assets/icons/OxyServices.js +53 -0
  22. package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
  23. package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
  24. package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
  25. package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
  26. package/lib/commonjs/constants/version.js +28 -0
  27. package/lib/commonjs/constants/version.js.map +1 -0
  28. package/lib/commonjs/core/index.js +1660 -0
  29. package/lib/commonjs/core/index.js.map +1 -0
  30. package/lib/commonjs/index.js +160 -0
  31. package/lib/commonjs/index.js.map +1 -0
  32. package/lib/commonjs/lib/sonner.js +21 -0
  33. package/lib/commonjs/lib/sonner.js.map +1 -0
  34. package/lib/commonjs/models/interfaces.js +2 -0
  35. package/lib/commonjs/models/interfaces.js.map +1 -0
  36. package/lib/commonjs/models/secureSession.js +2 -0
  37. package/lib/commonjs/models/secureSession.js.map +1 -0
  38. package/lib/commonjs/node/createAuth.js +95 -0
  39. package/lib/commonjs/node/createAuth.js.map +1 -0
  40. package/lib/commonjs/node/index.js +63 -0
  41. package/lib/commonjs/node/index.js.map +1 -0
  42. package/lib/commonjs/package.json +1 -0
  43. package/lib/commonjs/ui/components/Avatar.js +98 -0
  44. package/lib/commonjs/ui/components/Avatar.js.map +1 -0
  45. package/lib/commonjs/ui/components/FollowButton.js +246 -0
  46. package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
  47. package/lib/commonjs/ui/components/FontLoader.js +181 -0
  48. package/lib/commonjs/ui/components/FontLoader.js.map +1 -0
  49. package/lib/commonjs/ui/components/GroupedItem.js +109 -0
  50. package/lib/commonjs/ui/components/GroupedItem.js.map +1 -0
  51. package/lib/commonjs/ui/components/GroupedSection.js +33 -0
  52. package/lib/commonjs/ui/components/GroupedSection.js.map +1 -0
  53. package/lib/commonjs/ui/components/OxyLogo.js +56 -0
  54. package/lib/commonjs/ui/components/OxyLogo.js.map +1 -0
  55. package/lib/commonjs/ui/components/OxyProvider.js +522 -0
  56. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
  57. package/lib/commonjs/ui/components/OxySignInButton.js +178 -0
  58. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
  59. package/lib/commonjs/ui/components/ProfileCard.js +124 -0
  60. package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
  61. package/lib/commonjs/ui/components/QuickActions.js +87 -0
  62. package/lib/commonjs/ui/components/QuickActions.js.map +1 -0
  63. package/lib/commonjs/ui/components/Section.js +36 -0
  64. package/lib/commonjs/ui/components/Section.js.map +1 -0
  65. package/lib/commonjs/ui/components/SectionTitle.js +35 -0
  66. package/lib/commonjs/ui/components/SectionTitle.js.map +1 -0
  67. package/lib/commonjs/ui/components/bottomSheet/index.js +37 -0
  68. package/lib/commonjs/ui/components/bottomSheet/index.js.map +1 -0
  69. package/lib/commonjs/ui/components/icon/OxyIcon.js +27 -0
  70. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
  71. package/lib/commonjs/ui/components/icon/index.js +14 -0
  72. package/lib/commonjs/ui/components/icon/index.js.map +1 -0
  73. package/lib/commonjs/ui/components/index.js +97 -0
  74. package/lib/commonjs/ui/components/index.js.map +1 -0
  75. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
  76. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
  77. package/lib/commonjs/ui/components/internal/TextField.js +576 -0
  78. package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
  79. package/lib/commonjs/ui/context/OxyContext.js +584 -0
  80. package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
  81. package/lib/commonjs/ui/index.js +136 -0
  82. package/lib/commonjs/ui/index.js.map +1 -0
  83. package/lib/commonjs/ui/navigation/OxyRouter.js +269 -0
  84. package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -0
  85. package/lib/commonjs/ui/navigation/types.js +6 -0
  86. package/lib/commonjs/ui/navigation/types.js.map +1 -0
  87. package/lib/commonjs/ui/screens/AccountCenterScreen.js +313 -0
  88. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -0
  89. package/lib/commonjs/ui/screens/AccountManagementDemo.js +299 -0
  90. package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -0
  91. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +855 -0
  92. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
  93. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +843 -0
  94. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
  95. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +788 -0
  96. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -0
  97. package/lib/commonjs/ui/screens/AppInfoScreen.js +664 -0
  98. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
  99. package/lib/commonjs/ui/screens/BillingManagementScreen.js +636 -0
  100. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +1 -0
  101. package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
  102. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
  103. package/lib/commonjs/ui/screens/FileManagementScreen.js +2515 -0
  104. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
  105. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +1620 -0
  106. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
  107. package/lib/commonjs/ui/screens/ProfileScreen.js +450 -0
  108. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
  109. package/lib/commonjs/ui/screens/SessionManagementScreen.js +449 -0
  110. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
  111. package/lib/commonjs/ui/screens/SignInScreen.js +882 -0
  112. package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -0
  113. package/lib/commonjs/ui/screens/SignUpScreen.js +1036 -0
  114. package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -0
  115. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +88 -0
  116. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
  117. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +364 -0
  118. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
  119. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +227 -0
  120. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
  121. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +148 -0
  122. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
  123. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +127 -0
  124. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
  125. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +105 -0
  126. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
  127. package/lib/commonjs/ui/store/index.js +52 -0
  128. package/lib/commonjs/ui/store/index.js.map +1 -0
  129. package/lib/commonjs/ui/styles/FONTS.md +126 -0
  130. package/lib/commonjs/ui/styles/fonts.js +84 -0
  131. package/lib/commonjs/ui/styles/fonts.js.map +1 -0
  132. package/lib/commonjs/ui/styles/index.js +28 -0
  133. package/lib/commonjs/ui/styles/index.js.map +1 -0
  134. package/lib/commonjs/ui/styles/theme.js +121 -0
  135. package/lib/commonjs/ui/styles/theme.js.map +1 -0
  136. package/lib/commonjs/utils/deviceManager.js +173 -0
  137. package/lib/commonjs/utils/deviceManager.js.map +1 -0
  138. package/lib/commonjs/utils/index.js +13 -0
  139. package/lib/commonjs/utils/index.js.map +1 -0
  140. package/lib/commonjs/utils/polyfills.js +42 -0
  141. package/lib/commonjs/utils/polyfills.js.map +1 -0
  142. package/lib/module/assets/OxyLogo.svg +1 -0
  143. package/lib/module/assets/assets/OxyLogo.svg +1 -0
  144. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  145. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  146. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  147. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  148. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  149. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  150. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  151. package/lib/module/assets/assets/icons/OxyServices.tsx +67 -0
  152. package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
  153. package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
  154. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  155. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  156. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  157. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  158. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  159. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  160. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  161. package/lib/module/assets/icons/OxyServices.js +46 -0
  162. package/lib/module/assets/icons/OxyServices.js.map +1 -0
  163. package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
  164. package/lib/module/assets/illustrations/HighFive.js +55 -0
  165. package/lib/module/assets/illustrations/HighFive.js.map +1 -0
  166. package/lib/module/constants/version.js +21 -0
  167. package/lib/module/constants/version.js.map +1 -0
  168. package/lib/module/core/index.js +1634 -0
  169. package/lib/module/core/index.js.map +1 -0
  170. package/lib/module/index.js +48 -0
  171. package/lib/module/index.js.map +1 -0
  172. package/lib/module/lib/sonner.js +16 -0
  173. package/lib/module/lib/sonner.js.map +1 -0
  174. package/lib/module/models/interfaces.js +2 -0
  175. package/lib/module/models/interfaces.js.map +1 -0
  176. package/lib/module/models/secureSession.js +2 -0
  177. package/lib/module/models/secureSession.js.map +1 -0
  178. package/lib/module/node/createAuth.js +90 -0
  179. package/lib/module/node/createAuth.js.map +1 -0
  180. package/lib/module/node/index.js +27 -0
  181. package/lib/module/node/index.js.map +1 -0
  182. package/lib/module/package.json +1 -0
  183. package/lib/module/ui/components/Avatar.js +93 -0
  184. package/lib/module/ui/components/Avatar.js.map +1 -0
  185. package/lib/module/ui/components/FollowButton.js +241 -0
  186. package/lib/module/ui/components/FollowButton.js.map +1 -0
  187. package/lib/module/ui/components/FontLoader.js +176 -0
  188. package/lib/module/ui/components/FontLoader.js.map +1 -0
  189. package/lib/module/ui/components/GroupedItem.js +104 -0
  190. package/lib/module/ui/components/GroupedItem.js.map +1 -0
  191. package/lib/module/ui/components/GroupedSection.js +28 -0
  192. package/lib/module/ui/components/GroupedSection.js.map +1 -0
  193. package/lib/module/ui/components/OxyLogo.js +49 -0
  194. package/lib/module/ui/components/OxyLogo.js.map +1 -0
  195. package/lib/module/ui/components/OxyProvider.js +516 -0
  196. package/lib/module/ui/components/OxyProvider.js.map +1 -0
  197. package/lib/module/ui/components/OxySignInButton.js +172 -0
  198. package/lib/module/ui/components/OxySignInButton.js.map +1 -0
  199. package/lib/module/ui/components/ProfileCard.js +119 -0
  200. package/lib/module/ui/components/ProfileCard.js.map +1 -0
  201. package/lib/module/ui/components/QuickActions.js +82 -0
  202. package/lib/module/ui/components/QuickActions.js.map +1 -0
  203. package/lib/module/ui/components/Section.js +31 -0
  204. package/lib/module/ui/components/Section.js.map +1 -0
  205. package/lib/module/ui/components/SectionTitle.js +30 -0
  206. package/lib/module/ui/components/SectionTitle.js.map +1 -0
  207. package/lib/module/ui/components/bottomSheet/index.js +5 -0
  208. package/lib/module/ui/components/bottomSheet/index.js.map +1 -0
  209. package/lib/module/ui/components/icon/OxyIcon.js +22 -0
  210. package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
  211. package/lib/module/ui/components/icon/index.js +4 -0
  212. package/lib/module/ui/components/icon/index.js.map +1 -0
  213. package/lib/module/ui/components/index.js +18 -0
  214. package/lib/module/ui/components/index.js.map +1 -0
  215. package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
  216. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
  217. package/lib/module/ui/components/internal/TextField.js +571 -0
  218. package/lib/module/ui/components/internal/TextField.js.map +1 -0
  219. package/lib/module/ui/context/OxyContext.js +579 -0
  220. package/lib/module/ui/context/OxyContext.js.map +1 -0
  221. package/lib/module/ui/index.js +26 -0
  222. package/lib/module/ui/index.js.map +1 -0
  223. package/lib/module/ui/navigation/OxyRouter.js +262 -0
  224. package/lib/module/ui/navigation/OxyRouter.js.map +1 -0
  225. package/lib/module/ui/navigation/types.js +4 -0
  226. package/lib/module/ui/navigation/types.js.map +1 -0
  227. package/lib/module/ui/screens/AccountCenterScreen.js +308 -0
  228. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -0
  229. package/lib/module/ui/screens/AccountManagementDemo.js +296 -0
  230. package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -0
  231. package/lib/module/ui/screens/AccountOverviewScreen.js +849 -0
  232. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -0
  233. package/lib/module/ui/screens/AccountSettingsScreen.js +837 -0
  234. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
  235. package/lib/module/ui/screens/AccountSwitcherScreen.js +782 -0
  236. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
  237. package/lib/module/ui/screens/AppInfoScreen.js +658 -0
  238. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
  239. package/lib/module/ui/screens/BillingManagementScreen.js +631 -0
  240. package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -0
  241. package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
  242. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
  243. package/lib/module/ui/screens/FileManagementScreen.js +2510 -0
  244. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
  245. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1615 -0
  246. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
  247. package/lib/module/ui/screens/ProfileScreen.js +444 -0
  248. package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
  249. package/lib/module/ui/screens/SessionManagementScreen.js +444 -0
  250. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -0
  251. package/lib/module/ui/screens/SignInScreen.js +876 -0
  252. package/lib/module/ui/screens/SignInScreen.js.map +1 -0
  253. package/lib/module/ui/screens/SignUpScreen.js +1030 -0
  254. package/lib/module/ui/screens/SignUpScreen.js.map +1 -0
  255. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +83 -0
  256. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
  257. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +358 -0
  258. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
  259. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +222 -0
  260. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
  261. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +142 -0
  262. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
  263. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +122 -0
  264. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
  265. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +100 -0
  266. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
  267. package/lib/module/ui/store/index.js +44 -0
  268. package/lib/module/ui/store/index.js.map +1 -0
  269. package/lib/module/ui/styles/FONTS.md +126 -0
  270. package/lib/module/ui/styles/fonts.js +81 -0
  271. package/lib/module/ui/styles/fonts.js.map +1 -0
  272. package/lib/module/ui/styles/index.js +5 -0
  273. package/lib/module/ui/styles/index.js.map +1 -0
  274. package/lib/module/ui/styles/theme.js +114 -0
  275. package/lib/module/ui/styles/theme.js.map +1 -0
  276. package/lib/module/utils/deviceManager.js +167 -0
  277. package/lib/module/utils/deviceManager.js.map +1 -0
  278. package/lib/module/utils/index.js +4 -0
  279. package/lib/module/utils/index.js.map +1 -0
  280. package/lib/module/utils/polyfills.js +36 -0
  281. package/lib/module/utils/polyfills.js.map +1 -0
  282. package/lib/typescript/assets/icons/OxyServices.d.ts +29 -0
  283. package/lib/typescript/assets/icons/OxyServices.d.ts.map +1 -0
  284. package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
  285. package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
  286. package/lib/typescript/constants/version.d.ts +14 -0
  287. package/lib/typescript/constants/version.d.ts.map +1 -0
  288. package/lib/typescript/core/index.d.ts +603 -0
  289. package/lib/typescript/core/index.d.ts.map +1 -0
  290. package/lib/typescript/index.d.ts +20 -0
  291. package/lib/typescript/index.d.ts.map +1 -0
  292. package/lib/typescript/lib/sonner.d.ts +6 -0
  293. package/lib/typescript/lib/sonner.d.ts.map +1 -0
  294. package/lib/typescript/models/interfaces.d.ts +179 -0
  295. package/lib/typescript/models/interfaces.d.ts.map +1 -0
  296. package/lib/typescript/models/secureSession.d.ts +27 -0
  297. package/lib/typescript/models/secureSession.d.ts.map +1 -0
  298. package/lib/typescript/node/createAuth.d.ts +7 -0
  299. package/lib/typescript/node/createAuth.d.ts.map +1 -0
  300. package/lib/typescript/node/index.d.ts +13 -0
  301. package/lib/typescript/node/index.d.ts.map +1 -0
  302. package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
  303. package/lib/typescript/types/express.d.ts +5 -0
  304. package/lib/typescript/types/react-redux.d.ts +5 -0
  305. package/lib/typescript/ui/components/Avatar.d.ts +62 -0
  306. package/lib/typescript/ui/components/Avatar.d.ts.map +1 -0
  307. package/lib/typescript/ui/components/FollowButton.d.ts +92 -0
  308. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -0
  309. package/lib/typescript/ui/components/FontLoader.d.ts +15 -0
  310. package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -0
  311. package/lib/typescript/ui/components/GroupedItem.d.ts +17 -0
  312. package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -0
  313. package/lib/typescript/ui/components/GroupedSection.d.ts +19 -0
  314. package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -0
  315. package/lib/typescript/ui/components/OxyLogo.d.ts +29 -0
  316. package/lib/typescript/ui/components/OxyLogo.d.ts.map +1 -0
  317. package/lib/typescript/ui/components/OxyProvider.d.ts +12 -0
  318. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -0
  319. package/lib/typescript/ui/components/OxySignInButton.d.ts +70 -0
  320. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -0
  321. package/lib/typescript/ui/components/ProfileCard.d.ts +20 -0
  322. package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -0
  323. package/lib/typescript/ui/components/QuickActions.d.ts +15 -0
  324. package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -0
  325. package/lib/typescript/ui/components/Section.d.ts +11 -0
  326. package/lib/typescript/ui/components/Section.d.ts.map +1 -0
  327. package/lib/typescript/ui/components/SectionTitle.d.ts +9 -0
  328. package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -0
  329. package/lib/typescript/ui/components/bottomSheet/index.d.ts +4 -0
  330. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +1 -0
  331. package/lib/typescript/ui/components/icon/OxyIcon.d.ts +10 -0
  332. package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -0
  333. package/lib/typescript/ui/components/icon/index.d.ts +3 -0
  334. package/lib/typescript/ui/components/icon/index.d.ts.map +1 -0
  335. package/lib/typescript/ui/components/index.d.ts +13 -0
  336. package/lib/typescript/ui/components/index.d.ts.map +1 -0
  337. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
  338. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
  339. package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
  340. package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
  341. package/lib/typescript/ui/context/OxyContext.d.ts +42 -0
  342. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -0
  343. package/lib/typescript/ui/index.d.ts +17 -0
  344. package/lib/typescript/ui/index.d.ts.map +1 -0
  345. package/lib/typescript/ui/navigation/OxyRouter.d.ts +5 -0
  346. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -0
  347. package/lib/typescript/ui/navigation/types.d.ts +116 -0
  348. package/lib/typescript/ui/navigation/types.d.ts.map +1 -0
  349. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +5 -0
  350. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -0
  351. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +8 -0
  352. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +1 -0
  353. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +5 -0
  354. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -0
  355. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +5 -0
  356. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
  357. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +5 -0
  358. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -0
  359. package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
  360. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
  361. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +5 -0
  362. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +1 -0
  363. package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
  364. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
  365. package/lib/typescript/ui/screens/FileManagementScreen.d.ts +8 -0
  366. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -0
  367. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
  368. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
  369. package/lib/typescript/ui/screens/ProfileScreen.d.ts +9 -0
  370. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -0
  371. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +5 -0
  372. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -0
  373. package/lib/typescript/ui/screens/SignInScreen.d.ts +5 -0
  374. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -0
  375. package/lib/typescript/ui/screens/SignUpScreen.d.ts +5 -0
  376. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -0
  377. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +5 -0
  378. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -0
  379. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +5 -0
  380. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -0
  381. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +5 -0
  382. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -0
  383. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +5 -0
  384. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -0
  385. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +5 -0
  386. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -0
  387. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +5 -0
  388. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -0
  389. package/lib/typescript/ui/store/index.d.ts +19 -0
  390. package/lib/typescript/ui/store/index.d.ts.map +1 -0
  391. package/lib/typescript/ui/styles/fonts.d.ts +21 -0
  392. package/lib/typescript/ui/styles/fonts.d.ts.map +1 -0
  393. package/lib/typescript/ui/styles/index.d.ts +3 -0
  394. package/lib/typescript/ui/styles/index.d.ts.map +1 -0
  395. package/lib/typescript/ui/styles/theme.d.ts +68 -0
  396. package/lib/typescript/ui/styles/theme.d.ts.map +1 -0
  397. package/lib/typescript/utils/deviceManager.d.ts +66 -0
  398. package/lib/typescript/utils/deviceManager.d.ts.map +1 -0
  399. package/lib/typescript/utils/index.d.ts +3 -0
  400. package/lib/typescript/utils/index.d.ts.map +1 -0
  401. package/lib/typescript/utils/polyfills.d.ts +6 -0
  402. package/lib/typescript/utils/polyfills.d.ts.map +1 -0
  403. package/package.json +7 -6
  404. package/src/assets/illustrations/HighFive.tsx +41 -0
  405. package/src/node/createAuth.ts +116 -0
  406. package/src/node/index.ts +4 -0
  407. package/src/types/expo-vector-icons.d.ts +3 -0
  408. package/src/types/express.d.ts +5 -0
  409. package/src/types/react-redux.d.ts +5 -0
  410. package/src/ui/components/OxyProvider.tsx +136 -135
  411. package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
  412. package/src/ui/components/internal/TextField.tsx +694 -0
  413. package/src/ui/index.ts +6 -2
  414. package/src/ui/navigation/OxyRouter.tsx +8 -3
  415. package/src/ui/screens/FeedbackScreen.tsx +1042 -0
  416. package/src/ui/screens/SignInScreen.tsx +179 -222
  417. package/src/ui/screens/SignUpScreen.tsx +772 -608
  418. package/src/ui/store/index.ts +51 -0
@@ -0,0 +1,603 @@
1
+ import { OxyConfig, User, LoginResponse, Notification, Wallet, Transaction, TransferFundsRequest, PurchaseRequest, WithdrawalRequest, TransactionResponse, KarmaRule, KarmaHistory, KarmaLeaderboardEntry, KarmaAwardRequest, ApiError, PaymentMethod, PaymentRequest, PaymentResponse, AnalyticsData, FollowerDetails, ContentViewer, FileMetadata, FileUploadResponse, FileListResponse, FileUpdateRequest, FileDeleteResponse, DeviceSession, DeviceSessionLogoutResponse, UpdateDeviceNameResponse } from '../models/interfaces';
2
+ import { SecureLoginResponse } from '../models/secureSession';
3
+ /**
4
+ * Default cloud URL for Oxy services, cloud is where the user files are. (e.g. images, videos, etc.). Not the API.
5
+ */
6
+ export declare const OXY_CLOUD_URL = "https://cloud.oxy.so";
7
+ export { DeviceManager, DeviceFingerprint, StoredDeviceInfo } from '../utils/deviceManager';
8
+ /**
9
+ * OxyServices - Client library for interacting with the Oxy API
10
+ */
11
+ export declare class OxyServices {
12
+ private client;
13
+ private accessToken;
14
+ private refreshToken;
15
+ private refreshPromise;
16
+ /**
17
+ * Creates a new instance of the OxyServices client
18
+ * @param config - Configuration for the client
19
+ */
20
+ constructor(config: OxyConfig);
21
+ /**
22
+ * Gets the base URL configured for this OxyServices instance
23
+ * @returns The base URL
24
+ */
25
+ getBaseURL(): string;
26
+ /**
27
+ * Gets the currently authenticated user ID from the token
28
+ * @returns The user ID or null if not authenticated
29
+ */
30
+ getCurrentUserId(): string | null;
31
+ /**
32
+ * Checks if the user is currently authenticated
33
+ * @returns Boolean indicating authentication status
34
+ */
35
+ isAuthenticated(): boolean;
36
+ /**
37
+ * Sets authentication tokens directly (useful for initializing from storage)
38
+ * @param accessToken - JWT access token
39
+ * @param refreshToken - Refresh token for getting new access tokens
40
+ */
41
+ setTokens(accessToken: string, refreshToken: string): void;
42
+ /**
43
+ * Clears all authentication tokens
44
+ */
45
+ clearTokens(): void;
46
+ /**
47
+ * Sign up a new user
48
+ * @param username - Desired username
49
+ * @param email - User's email address
50
+ * @param password - User's password
51
+ * @returns Object containing the message, token and user data
52
+ */
53
+ signUp(username: string, email: string, password: string): Promise<{
54
+ message: string;
55
+ token: string;
56
+ user: User;
57
+ }>;
58
+ /**
59
+ * Log in and store tokens
60
+ * @param username - User's username or email
61
+ * @param password - User's password
62
+ * @returns Login response containing tokens and user data
63
+ */
64
+ login(username: string, password: string): Promise<LoginResponse>;
65
+ /**
66
+ * Log out user
67
+ */
68
+ logout(): Promise<void>;
69
+ /**
70
+ * Refresh access and refresh tokens
71
+ * @returns New tokens
72
+ */
73
+ refreshTokens(): Promise<{
74
+ accessToken: string;
75
+ refreshToken: string;
76
+ }>;
77
+ /**
78
+ * Validate current access token
79
+ * @returns Boolean indicating if the token is valid
80
+ */
81
+ validate(): Promise<boolean>;
82
+ /**
83
+ * Get active sessions for the authenticated user
84
+ * @returns Array of active session objects
85
+ */
86
+ getUserSessions(): Promise<any[]>;
87
+ /**
88
+ * Logout from a specific session
89
+ * @param sessionId - The session ID to logout from
90
+ * @returns Success status
91
+ */
92
+ logoutSession(sessionId: string): Promise<{
93
+ success: boolean;
94
+ message: string;
95
+ }>;
96
+ /**
97
+ * Logout from all other sessions (keep current session active)
98
+ * @returns Success status
99
+ */
100
+ logoutOtherSessions(): Promise<{
101
+ success: boolean;
102
+ message: string;
103
+ }>;
104
+ /**
105
+ * Logout from all sessions
106
+ * @returns Success status
107
+ */
108
+ logoutAllSessions(): Promise<{
109
+ success: boolean;
110
+ message: string;
111
+ }>;
112
+ /**
113
+ * Get device sessions for a specific session ID
114
+ * @param sessionId - The session ID to get device sessions for
115
+ * @param deviceId - Optional device ID filter
116
+ * @returns Array of device sessions
117
+ */
118
+ getDeviceSessions(sessionId: string, deviceId?: string): Promise<DeviceSession[]>;
119
+ /**
120
+ * Logout all device sessions for a specific device
121
+ * @param sessionId - The session ID
122
+ * @param deviceId - Optional device ID (uses current session's device if not provided)
123
+ * @param excludeCurrent - Whether to exclude the current session from logout
124
+ * @returns Logout response
125
+ */
126
+ logoutAllDeviceSessions(sessionId: string, deviceId?: string, excludeCurrent?: boolean): Promise<DeviceSessionLogoutResponse>;
127
+ /**
128
+ * Update device name for a session
129
+ * @param sessionId - The session ID
130
+ * @param deviceName - The new device name
131
+ * @returns Update response
132
+ */
133
+ updateDeviceName(sessionId: string, deviceName: string): Promise<UpdateDeviceNameResponse>;
134
+ /**
135
+ * Fetch profile by username
136
+ * @param username - The username to look up
137
+ * @returns User profile data
138
+ */
139
+ getProfileByUsername(username: string): Promise<User>;
140
+ /**
141
+ * Search profiles
142
+ * @param query - Search query string
143
+ * @param limit - Maximum number of results to return
144
+ * @param offset - Number of results to skip for pagination
145
+ * @returns Array of matching user profiles
146
+ */
147
+ searchProfiles(query: string, limit?: number, offset?: number): Promise<User[]>;
148
+ /**
149
+ * Get recommended profiles for the authenticated user
150
+ * @returns Array of recommended profiles
151
+ */
152
+ getProfileRecommendations(): Promise<Array<{
153
+ id: string;
154
+ username: string;
155
+ name?: {
156
+ first?: string;
157
+ last?: string;
158
+ full?: string;
159
+ };
160
+ description?: string;
161
+ _count?: {
162
+ followers: number;
163
+ following: number;
164
+ };
165
+ [key: string]: any;
166
+ }>>;
167
+ /**
168
+ * Get general user by ID
169
+ * @param userId - The user ID to look up
170
+ * @returns User data
171
+ */
172
+ getUserById(userId: string): Promise<User>;
173
+ /**
174
+ * Get the currently authenticated user's profile
175
+ * @returns User data for the current user
176
+ */
177
+ getCurrentUser(): Promise<User>;
178
+ /**
179
+ * Update the authenticated user's profile
180
+ * @param updates - Object containing fields to update
181
+ * @returns Updated user data
182
+ */
183
+ updateProfile(updates: Record<string, any>): Promise<User>;
184
+ /**
185
+ * Update user profile (requires auth)
186
+ * @param userId - User ID to update (must match authenticated user or have admin rights)
187
+ * @param updates - Object containing fields to update
188
+ * @returns Updated user data
189
+ */
190
+ updateUser(userId: string, updates: Record<string, any>): Promise<User>;
191
+ /**
192
+ * Follow a user
193
+ * @param userId - User ID to follow
194
+ * @returns Status of the follow operation
195
+ */
196
+ followUser(userId: string): Promise<{
197
+ success: boolean;
198
+ message: string;
199
+ }>;
200
+ /**
201
+ * Unfollow a user
202
+ * @param userId - User ID to unfollow
203
+ * @returns Status of the unfollow operation
204
+ */
205
+ unfollowUser(userId: string): Promise<{
206
+ success: boolean;
207
+ message: string;
208
+ }>;
209
+ /**
210
+ * Get all followers of a user
211
+ * @param userId - User ID to get followers for
212
+ * @param limit - Maximum number of followers to return
213
+ * @param offset - Number of followers to skip for pagination
214
+ * @returns Array of users who follow the specified user and pagination info
215
+ */
216
+ getUserFollowers(userId: string, limit?: number, offset?: number): Promise<{
217
+ followers: User[];
218
+ total: number;
219
+ hasMore: boolean;
220
+ }>;
221
+ /**
222
+ * Get all users that a user is following
223
+ * @param userId - User ID to get following list for
224
+ * @param limit - Maximum number of users to return
225
+ * @param offset - Number of users to skip for pagination
226
+ * @returns Array of users the specified user follows and pagination info
227
+ */
228
+ getUserFollowing(userId: string, limit?: number, offset?: number): Promise<{
229
+ following: User[];
230
+ total: number;
231
+ hasMore: boolean;
232
+ }>;
233
+ /**
234
+ * Fetch all notifications for the authenticated user
235
+ * @returns Array of notifications
236
+ */
237
+ getNotifications(): Promise<Notification[]>;
238
+ /**
239
+ * Get count of unread notifications
240
+ * @returns Number of unread notifications
241
+ */
242
+ getUnreadCount(): Promise<number>;
243
+ /**
244
+ * Create a new notification (admin use)
245
+ * @param data - Notification data
246
+ * @returns Created notification
247
+ */
248
+ createNotification(data: Partial<Notification>): Promise<Notification>;
249
+ /**
250
+ * Mark a single notification as read
251
+ * @param notificationId - ID of notification to mark as read
252
+ */
253
+ markNotificationAsRead(notificationId: string): Promise<void>;
254
+ /**
255
+ * Mark all notifications as read
256
+ */
257
+ markAllNotificationsAsRead(): Promise<void>;
258
+ /**
259
+ * Delete a notification
260
+ * @param notificationId - ID of notification to delete
261
+ */
262
+ deleteNotification(notificationId: string): Promise<void>;
263
+ /**
264
+ * Process a payment
265
+ * @param data - Payment data including user ID, plan, and payment method
266
+ * @returns Payment result with transaction ID
267
+ */
268
+ processPayment(data: PaymentRequest): Promise<PaymentResponse>;
269
+ /**
270
+ * Validate a payment method
271
+ * @param paymentMethod - Payment method to validate
272
+ * @returns Object indicating if the payment method is valid
273
+ */
274
+ validatePaymentMethod(paymentMethod: any): Promise<{
275
+ valid: boolean;
276
+ }>;
277
+ /**
278
+ * Get saved payment methods for a user
279
+ * @param userId - User ID to get payment methods for
280
+ * @returns Array of payment methods
281
+ */
282
+ getPaymentMethods(userId: string): Promise<PaymentMethod[]>;
283
+ /**
284
+ * Get analytics data
285
+ * @param userId - User ID to get analytics for
286
+ * @param period - Time period for analytics (e.g., "day", "week", "month")
287
+ * @returns Analytics data
288
+ */
289
+ getAnalytics(userId: string, period?: string): Promise<AnalyticsData>;
290
+ /**
291
+ * Update analytics (internal use)
292
+ * @param userId - User ID to update analytics for
293
+ * @param type - Type of analytics to update
294
+ * @param data - Analytics data to update
295
+ * @returns Message indicating success
296
+ */
297
+ updateAnalytics(userId: string, type: string, data: Record<string, any>): Promise<{
298
+ message: string;
299
+ }>;
300
+ /**
301
+ * Get content viewers analytics
302
+ * @param userId - User ID to get viewer data for
303
+ * @param period - Time period for analytics
304
+ * @returns Array of content viewer data
305
+ */
306
+ getContentViewers(userId: string, period?: string): Promise<ContentViewer[]>;
307
+ /**
308
+ * Get follower analytics details
309
+ * @param userId - User ID to get follower data for
310
+ * @param period - Time period for follower data
311
+ * @returns Follower details
312
+ */
313
+ getFollowerDetails(userId: string, period?: string): Promise<FollowerDetails>;
314
+ /**
315
+ * Get wallet info
316
+ * @param userId - User ID to get wallet for
317
+ * @returns Wallet data
318
+ */
319
+ getWallet(userId: string): Promise<Wallet>;
320
+ /**
321
+ * Get transaction history
322
+ * @param userId - User ID to get transactions for
323
+ * @param limit - Maximum number of transactions to return
324
+ * @param offset - Number of transactions to skip for pagination
325
+ * @returns Array of transactions and pagination info
326
+ */
327
+ getTransactionHistory(userId: string, limit?: number, offset?: number): Promise<{
328
+ transactions: Transaction[];
329
+ total: number;
330
+ hasMore: boolean;
331
+ }>;
332
+ /**
333
+ * Get a specific transaction
334
+ * @param transactionId - ID of transaction to retrieve
335
+ * @returns Transaction data
336
+ */
337
+ getTransaction(transactionId: string): Promise<Transaction>;
338
+ /**
339
+ * Transfer funds between users
340
+ * @param data - Transfer details including source, destination, and amount
341
+ * @returns Transaction response
342
+ */
343
+ transferFunds(data: TransferFundsRequest): Promise<TransactionResponse>;
344
+ /**
345
+ * Process a purchase
346
+ * @param data - Purchase details including user, item, and amount
347
+ * @returns Transaction response
348
+ */
349
+ processPurchase(data: PurchaseRequest): Promise<TransactionResponse>;
350
+ /**
351
+ * Request a withdrawal
352
+ * @param data - Withdrawal details including user, amount, and address
353
+ * @returns Transaction response
354
+ */
355
+ requestWithdrawal(data: WithdrawalRequest): Promise<TransactionResponse>;
356
+ /**
357
+ * Get karma leaderboard
358
+ * @returns Array of karma leaderboard entries
359
+ */
360
+ getKarmaLeaderboard(): Promise<KarmaLeaderboardEntry[]>;
361
+ /**
362
+ * Get karma rules
363
+ * @returns Array of karma rules
364
+ */
365
+ getKarmaRules(): Promise<KarmaRule[]>;
366
+ /**
367
+ * Get total karma for a user
368
+ * @param userId - User ID to get karma for
369
+ * @returns Object with total karma points
370
+ */
371
+ getUserKarmaTotal(userId: string): Promise<{
372
+ total: number;
373
+ }>;
374
+ /**
375
+ * Get karma history for a user
376
+ * @param userId - User ID to get karma history for
377
+ * @param limit - Maximum number of history entries to return
378
+ * @param offset - Number of entries to skip for pagination
379
+ * @returns Karma history entries and pagination info
380
+ */
381
+ getUserKarmaHistory(userId: string, limit?: number, offset?: number): Promise<{
382
+ history: KarmaHistory[];
383
+ total: number;
384
+ hasMore: boolean;
385
+ }>;
386
+ /**
387
+ * Award karma points to a user
388
+ * @param data - Karma award details
389
+ * @returns Karma award response
390
+ */
391
+ awardKarma(data: KarmaAwardRequest): Promise<{
392
+ success: boolean;
393
+ message: string;
394
+ history: KarmaHistory;
395
+ }>;
396
+ /**
397
+ * Deduct karma points from a user
398
+ * @param data - Karma deduction details
399
+ * @returns Karma deduction response
400
+ */
401
+ deductKarma(data: KarmaAwardRequest): Promise<{
402
+ success: boolean;
403
+ message: string;
404
+ history: KarmaHistory;
405
+ }>;
406
+ /**
407
+ * Create or update karma rule (admin)
408
+ * @param data - Karma rule data
409
+ * @returns Created or updated karma rule
410
+ */
411
+ createOrUpdateKarmaRule(data: Partial<KarmaRule>): Promise<KarmaRule>;
412
+ /**
413
+ * Upload a file using GridFS
414
+ * @param file - The file to upload (File or Blob in browser, Buffer in Node.js)
415
+ * @param filename - The name of the file
416
+ * @param metadata - Optional metadata to associate with the file
417
+ * @returns File metadata including ID and download URL
418
+ */
419
+ uploadFile(file: File | Blob | any, // Use 'any' to handle Buffer type in cross-platform scenarios
420
+ filename: string, metadata?: Record<string, any>): Promise<FileMetadata>;
421
+ /**
422
+ * Upload multiple files using GridFS
423
+ * @param files - Array of files to upload
424
+ * @param filenames - Array of filenames (must match files array length)
425
+ * @param metadata - Optional metadata to associate with all files
426
+ * @returns Array of file metadata
427
+ */
428
+ uploadFiles(files: (File | Blob | any)[], filenames: string[], metadata?: Record<string, any>): Promise<FileUploadResponse>;
429
+ /**
430
+ * Get file metadata by ID
431
+ * @param fileId - ID of the file to retrieve metadata for
432
+ * @returns File metadata
433
+ */
434
+ getFileMetadata(fileId: string): Promise<FileMetadata>;
435
+ /**
436
+ * Update file metadata
437
+ * @param fileId - ID of the file to update
438
+ * @param updates - Metadata updates to apply
439
+ * @returns Updated file metadata
440
+ */
441
+ updateFileMetadata(fileId: string, updates: FileUpdateRequest): Promise<FileMetadata>;
442
+ /**
443
+ * Delete a file by ID
444
+ * @param fileId - ID of the file to delete
445
+ * @returns Status of the delete operation
446
+ */
447
+ deleteFile(fileId: string): Promise<FileDeleteResponse>;
448
+ /**
449
+ * Get download URL for a file
450
+ * @param fileId - ID of the file to get download URL for
451
+ * @returns Full URL to download the file
452
+ */
453
+ getFileDownloadUrl(fileId: string): string;
454
+ /**
455
+ * Stream a file (useful for playing audio/video without full download)
456
+ * @param fileId - ID of the file to stream
457
+ * @returns Full URL to stream the file
458
+ */
459
+ getFileStreamUrl(fileId: string): string;
460
+ /**
461
+ * List files for a specific user
462
+ * @param userId - User ID to list files for
463
+ * @param limit - Maximum number of files to return
464
+ * @param offset - Number of files to skip for pagination
465
+ * @param filters - Optional filters for the file list (e.g., contentType)
466
+ * @returns Array of file metadata and pagination info
467
+ */
468
+ listUserFiles(userId: string, limit?: number, offset?: number, filters?: Record<string, any>): Promise<FileListResponse>;
469
+ /**
470
+ * Secure login that returns only session data (no tokens stored locally)
471
+ * @param username - User's username or email
472
+ * @param password - User's password
473
+ * @param deviceName - Optional device name for session tracking
474
+ * @param deviceFingerprint - Device fingerprint for enhanced security
475
+ * @returns Secure login response with session data
476
+ */
477
+ secureLogin(username: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<SecureLoginResponse>;
478
+ /**
479
+ * Get full user data by session ID
480
+ * @param sessionId - The session ID
481
+ * @returns Full user data
482
+ */
483
+ getUserBySession(sessionId: string): Promise<User>;
484
+ /**
485
+ * Get access token by session ID (for API calls)
486
+ * @param sessionId - The session ID
487
+ * @returns Access token and expiry info
488
+ */
489
+ getTokenBySession(sessionId: string): Promise<{
490
+ accessToken: string;
491
+ expiresAt: string;
492
+ }>;
493
+ /**
494
+ * Get all active sessions for current user
495
+ * @param sessionId - Current session ID
496
+ * @returns Array of user sessions
497
+ */
498
+ getSessionsBySessionId(sessionId: string): Promise<any[]>;
499
+ /**
500
+ * Logout specific session
501
+ * @param sessionId - Current session ID
502
+ * @param targetSessionId - Optional target session to logout (defaults to current)
503
+ */
504
+ logoutSecureSession(sessionId: string, targetSessionId?: string): Promise<void>;
505
+ /**
506
+ * Logout all sessions for current user
507
+ * @param sessionId - Current session ID
508
+ */
509
+ logoutAllSecureSessions(sessionId: string): Promise<void>;
510
+ /**
511
+ * Validate session
512
+ * @param sessionId - The session ID to validate
513
+ * @returns Session validation status with user data
514
+ */
515
+ validateSession(sessionId: string): Promise<{
516
+ valid: boolean;
517
+ expiresAt: string;
518
+ lastActivity: string;
519
+ user: User;
520
+ }>;
521
+ /**
522
+ * Validate session using x-session-id header
523
+ * @param sessionId - The session ID to validate (sent as header)
524
+ * @param deviceFingerprint - Optional device fingerprint for enhanced security
525
+ * @returns Session validation status with user data
526
+ */
527
+ validateSessionFromHeader(sessionId: string, deviceFingerprint?: string): Promise<{
528
+ valid: boolean;
529
+ expiresAt: string;
530
+ lastActivity: string;
531
+ user: User;
532
+ sessionId?: string;
533
+ }>;
534
+ /**
535
+ * Validate session using automatic header detection
536
+ * The validateSession endpoint will automatically read from x-session-id header
537
+ * @param sessionId - The session ID to validate (sent as header)
538
+ * @param deviceFingerprint - Optional device fingerprint for enhanced security
539
+ * @returns Session validation status with user data
540
+ */
541
+ validateSessionAuto(sessionId: string, deviceFingerprint?: string): Promise<{
542
+ valid: boolean;
543
+ expiresAt: string;
544
+ lastActivity: string;
545
+ user: User;
546
+ source?: string;
547
+ }>;
548
+ /**
549
+ * Utility method to help implement authentication middleware in Express.js applications
550
+ * This creates a function that can be used as Express middleware to validate tokens
551
+ * @param options - Configuration options for the middleware
552
+ * @returns Express middleware function
553
+ */
554
+ createAuthenticateTokenMiddleware(options?: {
555
+ loadFullUser?: boolean;
556
+ onError?: (error: ApiError) => any;
557
+ }): (req: any, res: any, next: any) => Promise<any>;
558
+ /**
559
+ * Helper method for validating tokens without Express middleware
560
+ * Useful for standalone token validation in various contexts
561
+ * @param token - The access token to validate
562
+ * @returns Object with validation result and user information
563
+ */
564
+ authenticateToken(token: string): Promise<{
565
+ valid: boolean;
566
+ userId?: string;
567
+ user?: any;
568
+ error?: string;
569
+ }>;
570
+ /**
571
+ * Centralized error handling
572
+ * @private
573
+ * @param error - Error object from API call
574
+ * @returns Formatted API error
575
+ */
576
+ private handleError;
577
+ /**
578
+ * Check if a username is available
579
+ * @param username - The username to check
580
+ * @returns Promise with availability status
581
+ */
582
+ checkUsernameAvailability(username: string): Promise<{
583
+ available: boolean;
584
+ message: string;
585
+ }>;
586
+ /**
587
+ * Check if an email is available
588
+ * @param email - The email to check
589
+ * @returns Promise with availability status
590
+ */
591
+ checkEmailAvailability(email: string): Promise<{
592
+ available: boolean;
593
+ message: string;
594
+ }>;
595
+ /**
596
+ * Get user profile by username
597
+ * @param username - The username to look up
598
+ * @returns Promise with user profile
599
+ */
600
+ getUserProfileByUsername(username: string): Promise<User>;
601
+ }
602
+ export default OxyServices;
603
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.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AAE,MAAM,GAAG;IAqG7C;;;;;OAKG;IACU,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QACrD,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,GAAG,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAwDF;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAgBnB;;;;OAIG;IACG,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAsBnG;;;;OAIG;IACG,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAsB7F;;;;OAIG;IACG,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQhE;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * OxyHQServices Main Export File
3
+ */
4
+ import './utils/polyfills';
5
+ import OxyCore from './core';
6
+ import { OxyServices } from './core';
7
+ import { OxyProvider, OxyContextProvider, useOxy, OxySignInButton, OxyLogo, Avatar, FollowButton, FontLoader, OxyIcon } from './ui';
8
+ import { OxyContextState, OxyContextProviderProps } from './ui/context/OxyContext';
9
+ import * as Models from './models/interfaces';
10
+ export default OxyCore;
11
+ export { OxyServices };
12
+ export * from './core';
13
+ export { DeviceManager } from './utils';
14
+ export type { DeviceFingerprint, StoredDeviceInfo } from './utils';
15
+ export { Models };
16
+ export * from './models/interfaces';
17
+ export { OxyProvider, OxyContextProvider, useOxy, OxySignInButton, OxyLogo, Avatar, FollowButton, FontLoader, OxyIcon };
18
+ export { OxyContextState, OxyContextProviderProps };
19
+ export * from './ui/navigation/types';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,mBAAmB,CAAC;AAG3B,OAAO,OAAO,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAMrC,OAAO,EAEL,WAAW,EACX,kBAAkB,EAClB,MAAM,EAGN,eAAe,EACf,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,OAAO,EACR,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAG9C,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAEL,WAAW,EACX,kBAAkB,EAClB,MAAM,EAGN,eAAe,EACf,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,OAAO,EACR,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,CAAC;AACpD,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const webToast: any;
2
+ export declare const toast: any;
3
+ export declare const Toaster: any;
4
+ export type ToastT = typeof webToast;
5
+ export {};
6
+ //# sourceMappingURL=sonner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/lib/sonner.ts"],"names":[],"mappings":"AAIA,QAAA,MAAe,QAAQ,KAA0C,CAAC;AAGlE,eAAO,MAAM,KAAK,KAAiD,CAAC;AACpE,eAAO,MAAM,OAAO,KAAqD,CAAC;AAC1E,MAAM,MAAM,MAAM,GAAG,OAAO,QAAQ,CAAC"}