@oxyhq/services 5.4.0 → 5.4.2

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