@oxyhq/services 5.16.23 → 5.16.24

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 (1367) hide show
  1. package/lib/commonjs/assets/OxyLogo.svg +1 -0
  2. package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
  3. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  4. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  5. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  6. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  7. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  8. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  9. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  10. package/lib/commonjs/assets/assets/icons/OxyServices.tsx +67 -0
  11. package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
  12. package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
  13. package/lib/commonjs/assets/assets/lottie/welcomeheader_background_op1.json +1 -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 +51 -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 +59 -0
  25. package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
  26. package/lib/commonjs/assets/lottie/welcomeheader_background_op1.json +1 -0
  27. package/lib/commonjs/constants/version.js +28 -0
  28. package/lib/commonjs/constants/version.js.map +1 -0
  29. package/lib/commonjs/core/HttpService.js +507 -0
  30. package/lib/commonjs/core/HttpService.js.map +1 -0
  31. package/lib/commonjs/core/OxyServices.base.js +283 -0
  32. package/lib/commonjs/core/OxyServices.base.js.map +1 -0
  33. package/lib/commonjs/core/OxyServices.errors.js +26 -0
  34. package/lib/commonjs/core/OxyServices.errors.js.map +1 -0
  35. package/lib/commonjs/core/OxyServices.js +146 -0
  36. package/lib/commonjs/core/OxyServices.js.map +1 -0
  37. package/lib/commonjs/core/index.js +126 -0
  38. package/lib/commonjs/core/index.js.map +1 -0
  39. package/lib/commonjs/core/mixins/OxyServices.analytics.js +60 -0
  40. package/lib/commonjs/core/mixins/OxyServices.analytics.js.map +1 -0
  41. package/lib/commonjs/core/mixins/OxyServices.assets.js +375 -0
  42. package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -0
  43. package/lib/commonjs/core/mixins/OxyServices.auth.js +271 -0
  44. package/lib/commonjs/core/mixins/OxyServices.auth.js.map +1 -0
  45. package/lib/commonjs/core/mixins/OxyServices.developer.js +115 -0
  46. package/lib/commonjs/core/mixins/OxyServices.developer.js.map +1 -0
  47. package/lib/commonjs/core/mixins/OxyServices.devices.js +133 -0
  48. package/lib/commonjs/core/mixins/OxyServices.devices.js.map +1 -0
  49. package/lib/commonjs/core/mixins/OxyServices.karma.js +117 -0
  50. package/lib/commonjs/core/mixins/OxyServices.karma.js.map +1 -0
  51. package/lib/commonjs/core/mixins/OxyServices.language.js +124 -0
  52. package/lib/commonjs/core/mixins/OxyServices.language.js.map +1 -0
  53. package/lib/commonjs/core/mixins/OxyServices.location.js +55 -0
  54. package/lib/commonjs/core/mixins/OxyServices.location.js.map +1 -0
  55. package/lib/commonjs/core/mixins/OxyServices.payment.js +168 -0
  56. package/lib/commonjs/core/mixins/OxyServices.payment.js.map +1 -0
  57. package/lib/commonjs/core/mixins/OxyServices.privacy.js +174 -0
  58. package/lib/commonjs/core/mixins/OxyServices.privacy.js.map +1 -0
  59. package/lib/commonjs/core/mixins/OxyServices.security.js +96 -0
  60. package/lib/commonjs/core/mixins/OxyServices.security.js.map +1 -0
  61. package/lib/commonjs/core/mixins/OxyServices.user.js +393 -0
  62. package/lib/commonjs/core/mixins/OxyServices.user.js.map +1 -0
  63. package/lib/commonjs/core/mixins/OxyServices.utility.js +165 -0
  64. package/lib/commonjs/core/mixins/OxyServices.utility.js.map +1 -0
  65. package/lib/commonjs/core/mixins/index.js +39 -0
  66. package/lib/commonjs/core/mixins/index.js.map +1 -0
  67. package/lib/commonjs/core/mixins/mixinHelpers.js +62 -0
  68. package/lib/commonjs/core/mixins/mixinHelpers.js.map +1 -0
  69. package/lib/commonjs/core/services/SessionService.js +163 -0
  70. package/lib/commonjs/core/services/SessionService.js.map +1 -0
  71. package/lib/commonjs/core/services/TokenService.js +206 -0
  72. package/lib/commonjs/core/services/TokenService.js.map +1 -0
  73. package/lib/commonjs/crypto/index.js +27 -0
  74. package/lib/commonjs/crypto/index.js.map +1 -0
  75. package/lib/commonjs/crypto/keyManager.js +511 -0
  76. package/lib/commonjs/crypto/keyManager.js.map +1 -0
  77. package/lib/commonjs/crypto/polyfill.js +86 -0
  78. package/lib/commonjs/crypto/polyfill.js.map +1 -0
  79. package/lib/commonjs/crypto/signatureService.js +289 -0
  80. package/lib/commonjs/crypto/signatureService.js.map +1 -0
  81. package/lib/commonjs/crypto/types.js +2 -0
  82. package/lib/commonjs/crypto/types.js.map +1 -0
  83. package/lib/commonjs/i18n/index.js +76 -0
  84. package/lib/commonjs/i18n/index.js.map +1 -0
  85. package/lib/commonjs/i18n/locales/ar-SA.json +120 -0
  86. package/lib/commonjs/i18n/locales/ca-ES.json +120 -0
  87. package/lib/commonjs/i18n/locales/de-DE.json +120 -0
  88. package/lib/commonjs/i18n/locales/en-US.json +956 -0
  89. package/lib/commonjs/i18n/locales/es-ES.json +723 -0
  90. package/lib/commonjs/i18n/locales/fr-FR.json +120 -0
  91. package/lib/commonjs/i18n/locales/it-IT.json +120 -0
  92. package/lib/commonjs/i18n/locales/ja-JP.json +119 -0
  93. package/lib/commonjs/i18n/locales/ko-KR.json +120 -0
  94. package/lib/commonjs/i18n/locales/pt-PT.json +120 -0
  95. package/lib/commonjs/i18n/locales/zh-CN.json +120 -0
  96. package/lib/commonjs/index.js +601 -0
  97. package/lib/commonjs/index.js.map +1 -0
  98. package/lib/commonjs/lib/sonner-safe.js +32 -0
  99. package/lib/commonjs/lib/sonner-safe.js.map +1 -0
  100. package/lib/commonjs/lib/sonner.js +23 -0
  101. package/lib/commonjs/lib/sonner.js.map +1 -0
  102. package/lib/commonjs/models/interfaces.js +76 -0
  103. package/lib/commonjs/models/interfaces.js.map +1 -0
  104. package/lib/commonjs/models/session.js +2 -0
  105. package/lib/commonjs/models/session.js.map +1 -0
  106. package/lib/commonjs/node/index.js +59 -0
  107. package/lib/commonjs/node/index.js.map +1 -0
  108. package/lib/commonjs/ui/components/ActivityIndicator.js +203 -0
  109. package/lib/commonjs/ui/components/ActivityIndicator.js.map +1 -0
  110. package/lib/commonjs/ui/components/AnimationExample.js +213 -0
  111. package/lib/commonjs/ui/components/AnimationExample.js.map +1 -0
  112. package/lib/commonjs/ui/components/AutoHeightScrollView.js +46 -0
  113. package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +1 -0
  114. package/lib/commonjs/ui/components/Avatar.js +172 -0
  115. package/lib/commonjs/ui/components/Avatar.js.map +1 -0
  116. package/lib/commonjs/ui/components/BottomSheet.js +407 -0
  117. package/lib/commonjs/ui/components/BottomSheet.js.map +1 -0
  118. package/lib/commonjs/ui/components/BottomSheetRouter.js +366 -0
  119. package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -0
  120. package/lib/commonjs/ui/components/CrossFadeIcon.js +106 -0
  121. package/lib/commonjs/ui/components/CrossFadeIcon.js.map +1 -0
  122. package/lib/commonjs/ui/components/EmptyState.js +41 -0
  123. package/lib/commonjs/ui/components/EmptyState.js.map +1 -0
  124. package/lib/commonjs/ui/components/ErrorBoundary.js +145 -0
  125. package/lib/commonjs/ui/components/ErrorBoundary.js.map +1 -0
  126. package/lib/commonjs/ui/components/FollowButton.js +230 -0
  127. package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
  128. package/lib/commonjs/ui/components/FontLoader.js +162 -0
  129. package/lib/commonjs/ui/components/FontLoader.js.map +1 -0
  130. package/lib/commonjs/ui/components/GroupedItem.js +140 -0
  131. package/lib/commonjs/ui/components/GroupedItem.js.map +1 -0
  132. package/lib/commonjs/ui/components/GroupedSection.js +42 -0
  133. package/lib/commonjs/ui/components/GroupedSection.js.map +1 -0
  134. package/lib/commonjs/ui/components/Header.js +434 -0
  135. package/lib/commonjs/ui/components/Header.js.map +1 -0
  136. package/lib/commonjs/ui/components/HelperText.js +103 -0
  137. package/lib/commonjs/ui/components/HelperText.js.map +1 -0
  138. package/lib/commonjs/ui/components/Icon.js +109 -0
  139. package/lib/commonjs/ui/components/Icon.js.map +1 -0
  140. package/lib/commonjs/ui/components/IconButton/IconButton.js +159 -0
  141. package/lib/commonjs/ui/components/IconButton/IconButton.js.map +1 -0
  142. package/lib/commonjs/ui/components/IconButton/utils.js +155 -0
  143. package/lib/commonjs/ui/components/IconButton/utils.js.map +1 -0
  144. package/lib/commonjs/ui/components/LoadingState.js +47 -0
  145. package/lib/commonjs/ui/components/LoadingState.js.map +1 -0
  146. package/lib/commonjs/ui/components/OxyLogo.js +54 -0
  147. package/lib/commonjs/ui/components/OxyLogo.js.map +1 -0
  148. package/lib/commonjs/ui/components/OxyPayButton.js +117 -0
  149. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -0
  150. package/lib/commonjs/ui/components/OxyProvider.js +144 -0
  151. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
  152. package/lib/commonjs/ui/components/OxySignInButton.js +180 -0
  153. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
  154. package/lib/commonjs/ui/components/ProfileCard.js +138 -0
  155. package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
  156. package/lib/commonjs/ui/components/QuickActions.js +88 -0
  157. package/lib/commonjs/ui/components/QuickActions.js.map +1 -0
  158. package/lib/commonjs/ui/components/Section.js +39 -0
  159. package/lib/commonjs/ui/components/Section.js.map +1 -0
  160. package/lib/commonjs/ui/components/SectionTitle.js +35 -0
  161. package/lib/commonjs/ui/components/SectionTitle.js.map +1 -0
  162. package/lib/commonjs/ui/components/SettingRow.js +77 -0
  163. package/lib/commonjs/ui/components/SettingRow.js.map +1 -0
  164. package/lib/commonjs/ui/components/StepBasedScreen.js +397 -0
  165. package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -0
  166. package/lib/commonjs/ui/components/Surface.js +258 -0
  167. package/lib/commonjs/ui/components/Surface.js.map +1 -0
  168. package/lib/commonjs/ui/components/TextField/Addons/Outline.js +46 -0
  169. package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +1 -0
  170. package/lib/commonjs/ui/components/TextField/Addons/Underline.js +53 -0
  171. package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +1 -0
  172. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +155 -0
  173. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -0
  174. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +144 -0
  175. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -0
  176. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +137 -0
  177. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -0
  178. package/lib/commonjs/ui/components/TextField/Adornment/enums.js +22 -0
  179. package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +1 -0
  180. package/lib/commonjs/ui/components/TextField/Adornment/types.js +6 -0
  181. package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +1 -0
  182. package/lib/commonjs/ui/components/TextField/Adornment/utils.js +62 -0
  183. package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +1 -0
  184. package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +176 -0
  185. package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +1 -0
  186. package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +84 -0
  187. package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +1 -0
  188. package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +379 -0
  189. package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +1 -0
  190. package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +363 -0
  191. package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +1 -0
  192. package/lib/commonjs/ui/components/TextField/constants.js +50 -0
  193. package/lib/commonjs/ui/components/TextField/constants.js.map +1 -0
  194. package/lib/commonjs/ui/components/TextField/helpers.js +490 -0
  195. package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -0
  196. package/lib/commonjs/ui/components/TextField/types.js +6 -0
  197. package/lib/commonjs/ui/components/TextField/types.js.map +1 -0
  198. package/lib/commonjs/ui/components/TextField.js +339 -0
  199. package/lib/commonjs/ui/components/TextField.js.map +1 -0
  200. package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +12 -0
  201. package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +1 -0
  202. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +258 -0
  203. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +1 -0
  204. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +107 -0
  205. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -0
  206. package/lib/commonjs/ui/components/TouchableRipple/utils.js +56 -0
  207. package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +1 -0
  208. package/lib/commonjs/ui/components/Typography/AnimatedText.js +62 -0
  209. package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +1 -0
  210. package/lib/commonjs/ui/components/Typography/types.js +26 -0
  211. package/lib/commonjs/ui/components/Typography/types.js.map +1 -0
  212. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +171 -0
  213. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
  214. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +409 -0
  215. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -0
  216. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +181 -0
  217. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -0
  218. package/lib/commonjs/ui/components/fileManagement/styles.js +868 -0
  219. package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -0
  220. package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +64 -0
  221. package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
  222. package/lib/commonjs/ui/components/icon/OxyIcon.js +25 -0
  223. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
  224. package/lib/commonjs/ui/components/icon/index.js +21 -0
  225. package/lib/commonjs/ui/components/icon/index.js.map +1 -0
  226. package/lib/commonjs/ui/components/index.js +132 -0
  227. package/lib/commonjs/ui/components/index.js.map +1 -0
  228. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +209 -0
  229. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
  230. package/lib/commonjs/ui/components/internal/PinInput.js +115 -0
  231. package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -0
  232. package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +161 -0
  233. package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
  234. package/lib/commonjs/ui/components/profile/EditBioModal.js +181 -0
  235. package/lib/commonjs/ui/components/profile/EditBioModal.js.map +1 -0
  236. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +204 -0
  237. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +1 -0
  238. package/lib/commonjs/ui/components/profile/EditEmailModal.js +184 -0
  239. package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +1 -0
  240. package/lib/commonjs/ui/components/profile/EditLinksModal.js +315 -0
  241. package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +1 -0
  242. package/lib/commonjs/ui/components/profile/EditLocationModal.js +273 -0
  243. package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +1 -0
  244. package/lib/commonjs/ui/components/profile/EditUsernameModal.js +180 -0
  245. package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +1 -0
  246. package/lib/commonjs/ui/components/styles/overlay.js +85 -0
  247. package/lib/commonjs/ui/components/styles/overlay.js.map +1 -0
  248. package/lib/commonjs/ui/components/styles/shadow.js +132 -0
  249. package/lib/commonjs/ui/components/styles/shadow.js.map +1 -0
  250. package/lib/commonjs/ui/components/theming.js +116 -0
  251. package/lib/commonjs/ui/components/theming.js.map +1 -0
  252. package/lib/commonjs/ui/components/types.js +2 -0
  253. package/lib/commonjs/ui/components/types.js.map +1 -0
  254. package/lib/commonjs/ui/components/utils/forwardRef.js +18 -0
  255. package/lib/commonjs/ui/components/utils/forwardRef.js.map +1 -0
  256. package/lib/commonjs/ui/components/utils/hasTouchHandler.js +13 -0
  257. package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -0
  258. package/lib/commonjs/ui/components/utils/roundLayoutSize.js +9 -0
  259. package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -0
  260. package/lib/commonjs/ui/components/utils/splitStyles.js +50 -0
  261. package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -0
  262. package/lib/commonjs/ui/constants/iconColors.js +84 -0
  263. package/lib/commonjs/ui/constants/iconColors.js.map +1 -0
  264. package/lib/commonjs/ui/constants/spacing.js +50 -0
  265. package/lib/commonjs/ui/constants/spacing.js.map +1 -0
  266. package/lib/commonjs/ui/constants/theme.js +123 -0
  267. package/lib/commonjs/ui/constants/theme.js.map +1 -0
  268. package/lib/commonjs/ui/context/OxyContext.js +850 -0
  269. package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
  270. package/lib/commonjs/ui/context/ThemeContext.js +36 -0
  271. package/lib/commonjs/ui/context/ThemeContext.js.map +1 -0
  272. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +621 -0
  273. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -0
  274. package/lib/commonjs/ui/context/hooks/useDeviceManagement.js +73 -0
  275. package/lib/commonjs/ui/context/hooks/useDeviceManagement.js.map +1 -0
  276. package/lib/commonjs/ui/context/hooks/useLanguageManagement.js +112 -0
  277. package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +1 -0
  278. package/lib/commonjs/ui/context/hooks/useSessionManagement.js +281 -0
  279. package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +1 -0
  280. package/lib/commonjs/ui/context/hooks/useStorage.js +79 -0
  281. package/lib/commonjs/ui/context/hooks/useStorage.js.map +1 -0
  282. package/lib/commonjs/ui/hooks/index.js +46 -0
  283. package/lib/commonjs/ui/hooks/index.js.map +1 -0
  284. package/lib/commonjs/ui/hooks/mutations/index.js +68 -0
  285. package/lib/commonjs/ui/hooks/mutations/index.js.map +1 -0
  286. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +551 -0
  287. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -0
  288. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +193 -0
  289. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -0
  290. package/lib/commonjs/ui/hooks/queries/index.js +118 -0
  291. package/lib/commonjs/ui/hooks/queries/index.js.map +1 -0
  292. package/lib/commonjs/ui/hooks/queries/queryKeys.js +96 -0
  293. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -0
  294. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +219 -0
  295. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -0
  296. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +58 -0
  297. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -0
  298. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +186 -0
  299. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -0
  300. package/lib/commonjs/ui/hooks/queryClient.js +117 -0
  301. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -0
  302. package/lib/commonjs/ui/hooks/use-color-scheme.js +29 -0
  303. package/lib/commonjs/ui/hooks/use-color-scheme.js.map +1 -0
  304. package/lib/commonjs/ui/hooks/use-haptic-press.js +21 -0
  305. package/lib/commonjs/ui/hooks/use-haptic-press.js.map +1 -0
  306. package/lib/commonjs/ui/hooks/useAssets.js +245 -0
  307. package/lib/commonjs/ui/hooks/useAssets.js.map +1 -0
  308. package/lib/commonjs/ui/hooks/useDeviceManagement.js +73 -0
  309. package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -0
  310. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +103 -0
  311. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -0
  312. package/lib/commonjs/ui/hooks/useFollow.js +167 -0
  313. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -0
  314. package/lib/commonjs/ui/hooks/useFollow.types.js +2 -0
  315. package/lib/commonjs/ui/hooks/useFollow.types.js.map +1 -0
  316. package/lib/commonjs/ui/hooks/useI18n.js +22 -0
  317. package/lib/commonjs/ui/hooks/useI18n.js.map +1 -0
  318. package/lib/commonjs/ui/hooks/useLanguageManagement.js +112 -0
  319. package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -0
  320. package/lib/commonjs/ui/hooks/useProfileEditing.js +107 -0
  321. package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -0
  322. package/lib/commonjs/ui/hooks/useQueryClient.js +20 -0
  323. package/lib/commonjs/ui/hooks/useQueryClient.js.map +1 -0
  324. package/lib/commonjs/ui/hooks/useSessionManagement.js +281 -0
  325. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -0
  326. package/lib/commonjs/ui/hooks/useSessionSocket.js +474 -0
  327. package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -0
  328. package/lib/commonjs/ui/hooks/useStorage.js +79 -0
  329. package/lib/commonjs/ui/hooks/useStorage.js.map +1 -0
  330. package/lib/commonjs/ui/hooks/useThemeColors.js +31 -0
  331. package/lib/commonjs/ui/hooks/useThemeColors.js.map +1 -0
  332. package/lib/commonjs/ui/hooks/useThemeStyles.js +69 -0
  333. package/lib/commonjs/ui/hooks/useThemeStyles.js.map +1 -0
  334. package/lib/commonjs/ui/index.js +101 -0
  335. package/lib/commonjs/ui/index.js.map +1 -0
  336. package/lib/commonjs/ui/isFrontend.js +10 -0
  337. package/lib/commonjs/ui/isFrontend.js.map +1 -0
  338. package/lib/commonjs/ui/navigation/bottomSheetManager.js +180 -0
  339. package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -0
  340. package/lib/commonjs/ui/navigation/routes.js +88 -0
  341. package/lib/commonjs/ui/navigation/routes.js.map +1 -0
  342. package/lib/commonjs/ui/screens/AccountCenterScreen.js +329 -0
  343. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -0
  344. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +752 -0
  345. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
  346. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +2163 -0
  347. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
  348. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +703 -0
  349. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -0
  350. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +210 -0
  351. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -0
  352. package/lib/commonjs/ui/screens/AppInfoScreen.js +414 -0
  353. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
  354. package/lib/commonjs/ui/screens/FeedbackScreen.js +1191 -0
  355. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
  356. package/lib/commonjs/ui/screens/FileManagementScreen.js +2333 -0
  357. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
  358. package/lib/commonjs/ui/screens/HelpSupportScreen.js +134 -0
  359. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -0
  360. package/lib/commonjs/ui/screens/HistoryViewScreen.js +218 -0
  361. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -0
  362. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +218 -0
  363. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -0
  364. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +184 -0
  365. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -0
  366. package/lib/commonjs/ui/screens/OxyAuthScreen.js +537 -0
  367. package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -0
  368. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +1587 -0
  369. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -0
  370. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +1647 -0
  371. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
  372. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +472 -0
  373. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -0
  374. package/lib/commonjs/ui/screens/ProfileScreen.js +647 -0
  375. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
  376. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +167 -0
  377. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -0
  378. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +166 -0
  379. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -0
  380. package/lib/commonjs/ui/screens/SessionManagementScreen.js +445 -0
  381. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
  382. package/lib/commonjs/ui/screens/UserLinksScreen.js +86 -0
  383. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -0
  384. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +434 -0
  385. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -0
  386. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +98 -0
  387. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
  388. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +343 -0
  389. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
  390. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +194 -0
  391. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
  392. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +151 -0
  393. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
  394. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +609 -0
  395. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
  396. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +109 -0
  397. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
  398. package/lib/commonjs/ui/stores/accountStore.js +252 -0
  399. package/lib/commonjs/ui/stores/accountStore.js.map +1 -0
  400. package/lib/commonjs/ui/stores/assetStore.js +225 -0
  401. package/lib/commonjs/ui/stores/assetStore.js.map +1 -0
  402. package/lib/commonjs/ui/stores/authStore.js +85 -0
  403. package/lib/commonjs/ui/stores/authStore.js.map +1 -0
  404. package/lib/commonjs/ui/stores/fileStore.js +153 -0
  405. package/lib/commonjs/ui/stores/fileStore.js.map +1 -0
  406. package/lib/commonjs/ui/stores/followStore.js +229 -0
  407. package/lib/commonjs/ui/stores/followStore.js.map +1 -0
  408. package/lib/commonjs/ui/styles/authStyles.js +338 -0
  409. package/lib/commonjs/ui/styles/authStyles.js.map +1 -0
  410. package/lib/commonjs/ui/styles/fonts.js +84 -0
  411. package/lib/commonjs/ui/styles/fonts.js.map +1 -0
  412. package/lib/commonjs/ui/styles/index.js +50 -0
  413. package/lib/commonjs/ui/styles/index.js.map +1 -0
  414. package/lib/commonjs/ui/styles/spacing.js +109 -0
  415. package/lib/commonjs/ui/styles/spacing.js.map +1 -0
  416. package/lib/commonjs/ui/styles/theme.js +121 -0
  417. package/lib/commonjs/ui/styles/theme.js.map +1 -0
  418. package/lib/commonjs/ui/types/fileManagement.js +6 -0
  419. package/lib/commonjs/ui/types/fileManagement.js.map +1 -0
  420. package/lib/commonjs/ui/types/navigation.js +6 -0
  421. package/lib/commonjs/ui/types/navigation.js.map +1 -0
  422. package/lib/commonjs/ui/utils/avatarUtils.js +131 -0
  423. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -0
  424. package/lib/commonjs/ui/utils/colorUtils.js +52 -0
  425. package/lib/commonjs/ui/utils/colorUtils.js.map +1 -0
  426. package/lib/commonjs/ui/utils/confirmAction.js +28 -0
  427. package/lib/commonjs/ui/utils/confirmAction.js.map +1 -0
  428. package/lib/commonjs/ui/utils/errorHandlers.js +137 -0
  429. package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -0
  430. package/lib/commonjs/ui/utils/fileManagement.js +260 -0
  431. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -0
  432. package/lib/commonjs/ui/utils/sessionHelpers.js +101 -0
  433. package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -0
  434. package/lib/commonjs/ui/utils/storageHelpers.js +119 -0
  435. package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -0
  436. package/lib/commonjs/ui/utils/themeUtils.js +47 -0
  437. package/lib/commonjs/ui/utils/themeUtils.js.map +1 -0
  438. package/lib/commonjs/ui/utils/user-utils.js +53 -0
  439. package/lib/commonjs/ui/utils/user-utils.js.map +1 -0
  440. package/lib/commonjs/utils/apiUtils.js +79 -0
  441. package/lib/commonjs/utils/apiUtils.js.map +1 -0
  442. package/lib/commonjs/utils/asyncUtils.js +207 -0
  443. package/lib/commonjs/utils/asyncUtils.js.map +1 -0
  444. package/lib/commonjs/utils/cache.js +259 -0
  445. package/lib/commonjs/utils/cache.js.map +1 -0
  446. package/lib/commonjs/utils/deviceManager.js +177 -0
  447. package/lib/commonjs/utils/deviceManager.js.map +1 -0
  448. package/lib/commonjs/utils/errorUtils.js +181 -0
  449. package/lib/commonjs/utils/errorUtils.js.map +1 -0
  450. package/lib/commonjs/utils/hookUtils.js +399 -0
  451. package/lib/commonjs/utils/hookUtils.js.map +1 -0
  452. package/lib/commonjs/utils/index.js +106 -0
  453. package/lib/commonjs/utils/index.js.map +1 -0
  454. package/lib/commonjs/utils/languageUtils.js +159 -0
  455. package/lib/commonjs/utils/languageUtils.js.map +1 -0
  456. package/lib/commonjs/utils/loggerUtils.js +160 -0
  457. package/lib/commonjs/utils/loggerUtils.js.map +1 -0
  458. package/lib/commonjs/utils/requestUtils.js +217 -0
  459. package/lib/commonjs/utils/requestUtils.js.map +1 -0
  460. package/lib/commonjs/utils/sessionUtils.js +191 -0
  461. package/lib/commonjs/utils/sessionUtils.js.map +1 -0
  462. package/lib/commonjs/utils/validationUtils.js +191 -0
  463. package/lib/commonjs/utils/validationUtils.js.map +1 -0
  464. package/lib/module/assets/OxyLogo.svg +1 -0
  465. package/lib/module/assets/assets/OxyLogo.svg +1 -0
  466. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  467. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  468. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  469. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  470. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  471. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  472. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  473. package/lib/module/assets/assets/icons/OxyServices.tsx +67 -0
  474. package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
  475. package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
  476. package/lib/module/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
  477. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  478. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  479. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  480. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  481. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  482. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  483. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  484. package/lib/module/assets/icons/OxyServices.js +45 -0
  485. package/lib/module/assets/icons/OxyServices.js.map +1 -0
  486. package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
  487. package/lib/module/assets/illustrations/HighFive.js +54 -0
  488. package/lib/module/assets/illustrations/HighFive.js.map +1 -0
  489. package/lib/module/assets/lottie/welcomeheader_background_op1.json +1 -0
  490. package/lib/module/constants/version.js +21 -0
  491. package/lib/module/constants/version.js.map +1 -0
  492. package/lib/module/core/HttpService.js +502 -0
  493. package/lib/module/core/HttpService.js.map +1 -0
  494. package/lib/module/core/OxyServices.base.js +278 -0
  495. package/lib/module/core/OxyServices.base.js.map +1 -0
  496. package/lib/module/core/OxyServices.errors.js +20 -0
  497. package/lib/module/core/OxyServices.errors.js.map +1 -0
  498. package/lib/module/core/OxyServices.js +131 -0
  499. package/lib/module/core/OxyServices.js.map +1 -0
  500. package/lib/module/core/index.js +27 -0
  501. package/lib/module/core/index.js.map +1 -0
  502. package/lib/module/core/mixins/OxyServices.analytics.js +56 -0
  503. package/lib/module/core/mixins/OxyServices.analytics.js.map +1 -0
  504. package/lib/module/core/mixins/OxyServices.assets.js +371 -0
  505. package/lib/module/core/mixins/OxyServices.assets.js.map +1 -0
  506. package/lib/module/core/mixins/OxyServices.auth.js +267 -0
  507. package/lib/module/core/mixins/OxyServices.auth.js.map +1 -0
  508. package/lib/module/core/mixins/OxyServices.developer.js +111 -0
  509. package/lib/module/core/mixins/OxyServices.developer.js.map +1 -0
  510. package/lib/module/core/mixins/OxyServices.devices.js +129 -0
  511. package/lib/module/core/mixins/OxyServices.devices.js.map +1 -0
  512. package/lib/module/core/mixins/OxyServices.karma.js +113 -0
  513. package/lib/module/core/mixins/OxyServices.karma.js.map +1 -0
  514. package/lib/module/core/mixins/OxyServices.language.js +120 -0
  515. package/lib/module/core/mixins/OxyServices.language.js.map +1 -0
  516. package/lib/module/core/mixins/OxyServices.location.js +51 -0
  517. package/lib/module/core/mixins/OxyServices.location.js.map +1 -0
  518. package/lib/module/core/mixins/OxyServices.payment.js +164 -0
  519. package/lib/module/core/mixins/OxyServices.payment.js.map +1 -0
  520. package/lib/module/core/mixins/OxyServices.privacy.js +170 -0
  521. package/lib/module/core/mixins/OxyServices.privacy.js.map +1 -0
  522. package/lib/module/core/mixins/OxyServices.security.js +92 -0
  523. package/lib/module/core/mixins/OxyServices.security.js.map +1 -0
  524. package/lib/module/core/mixins/OxyServices.user.js +389 -0
  525. package/lib/module/core/mixins/OxyServices.user.js.map +1 -0
  526. package/lib/module/core/mixins/OxyServices.utility.js +160 -0
  527. package/lib/module/core/mixins/OxyServices.utility.js.map +1 -0
  528. package/lib/module/core/mixins/index.js +36 -0
  529. package/lib/module/core/mixins/index.js.map +1 -0
  530. package/lib/module/core/mixins/mixinHelpers.js +56 -0
  531. package/lib/module/core/mixins/mixinHelpers.js.map +1 -0
  532. package/lib/module/core/services/SessionService.js +159 -0
  533. package/lib/module/core/services/SessionService.js.map +1 -0
  534. package/lib/module/core/services/TokenService.js +203 -0
  535. package/lib/module/core/services/TokenService.js.map +1 -0
  536. package/lib/module/crypto/index.js +16 -0
  537. package/lib/module/crypto/index.js.map +1 -0
  538. package/lib/module/crypto/keyManager.js +508 -0
  539. package/lib/module/crypto/keyManager.js.map +1 -0
  540. package/lib/module/crypto/polyfill.js +78 -0
  541. package/lib/module/crypto/polyfill.js.map +1 -0
  542. package/lib/module/crypto/signatureService.js +286 -0
  543. package/lib/module/crypto/signatureService.js.map +1 -0
  544. package/lib/module/crypto/types.js +2 -0
  545. package/lib/module/crypto/types.js.map +1 -0
  546. package/lib/module/i18n/index.js +71 -0
  547. package/lib/module/i18n/index.js.map +1 -0
  548. package/lib/module/i18n/locales/ar-SA.json +120 -0
  549. package/lib/module/i18n/locales/ca-ES.json +120 -0
  550. package/lib/module/i18n/locales/de-DE.json +120 -0
  551. package/lib/module/i18n/locales/en-US.json +956 -0
  552. package/lib/module/i18n/locales/es-ES.json +723 -0
  553. package/lib/module/i18n/locales/fr-FR.json +120 -0
  554. package/lib/module/i18n/locales/it-IT.json +120 -0
  555. package/lib/module/i18n/locales/ja-JP.json +119 -0
  556. package/lib/module/i18n/locales/ko-KR.json +120 -0
  557. package/lib/module/i18n/locales/pt-PT.json +120 -0
  558. package/lib/module/i18n/locales/zh-CN.json +120 -0
  559. package/lib/module/index.js +74 -0
  560. package/lib/module/index.js.map +1 -0
  561. package/lib/module/lib/sonner-safe.js +29 -0
  562. package/lib/module/lib/sonner-safe.js.map +1 -0
  563. package/lib/module/lib/sonner.js +19 -0
  564. package/lib/module/lib/sonner.js.map +1 -0
  565. package/lib/module/models/interfaces.js +72 -0
  566. package/lib/module/models/interfaces.js.map +1 -0
  567. package/lib/module/models/session.js +2 -0
  568. package/lib/module/models/session.js.map +1 -0
  569. package/lib/module/node/index.js +20 -0
  570. package/lib/module/node/index.js.map +1 -0
  571. package/lib/module/ui/components/ActivityIndicator.js +198 -0
  572. package/lib/module/ui/components/ActivityIndicator.js.map +1 -0
  573. package/lib/module/ui/components/AnimationExample.js +209 -0
  574. package/lib/module/ui/components/AnimationExample.js.map +1 -0
  575. package/lib/module/ui/components/AutoHeightScrollView.js +41 -0
  576. package/lib/module/ui/components/AutoHeightScrollView.js.map +1 -0
  577. package/lib/module/ui/components/Avatar.js +168 -0
  578. package/lib/module/ui/components/Avatar.js.map +1 -0
  579. package/lib/module/ui/components/BottomSheet.js +402 -0
  580. package/lib/module/ui/components/BottomSheet.js.map +1 -0
  581. package/lib/module/ui/components/BottomSheetRouter.js +356 -0
  582. package/lib/module/ui/components/BottomSheetRouter.js.map +1 -0
  583. package/lib/module/ui/components/CrossFadeIcon.js +101 -0
  584. package/lib/module/ui/components/CrossFadeIcon.js.map +1 -0
  585. package/lib/module/ui/components/EmptyState.js +36 -0
  586. package/lib/module/ui/components/EmptyState.js.map +1 -0
  587. package/lib/module/ui/components/ErrorBoundary.js +139 -0
  588. package/lib/module/ui/components/ErrorBoundary.js.map +1 -0
  589. package/lib/module/ui/components/FollowButton.js +226 -0
  590. package/lib/module/ui/components/FollowButton.js.map +1 -0
  591. package/lib/module/ui/components/FontLoader.js +157 -0
  592. package/lib/module/ui/components/FontLoader.js.map +1 -0
  593. package/lib/module/ui/components/GroupedItem.js +135 -0
  594. package/lib/module/ui/components/GroupedItem.js.map +1 -0
  595. package/lib/module/ui/components/GroupedSection.js +37 -0
  596. package/lib/module/ui/components/GroupedSection.js.map +1 -0
  597. package/lib/module/ui/components/Header.js +428 -0
  598. package/lib/module/ui/components/Header.js.map +1 -0
  599. package/lib/module/ui/components/HelperText.js +99 -0
  600. package/lib/module/ui/components/HelperText.js.map +1 -0
  601. package/lib/module/ui/components/Icon.js +102 -0
  602. package/lib/module/ui/components/Icon.js.map +1 -0
  603. package/lib/module/ui/components/IconButton/IconButton.js +153 -0
  604. package/lib/module/ui/components/IconButton/IconButton.js.map +1 -0
  605. package/lib/module/ui/components/IconButton/utils.js +149 -0
  606. package/lib/module/ui/components/IconButton/utils.js.map +1 -0
  607. package/lib/module/ui/components/LoadingState.js +42 -0
  608. package/lib/module/ui/components/LoadingState.js.map +1 -0
  609. package/lib/module/ui/components/OxyLogo.js +48 -0
  610. package/lib/module/ui/components/OxyLogo.js.map +1 -0
  611. package/lib/module/ui/components/OxyPayButton.js +112 -0
  612. package/lib/module/ui/components/OxyPayButton.js.map +1 -0
  613. package/lib/module/ui/components/OxyProvider.js +140 -0
  614. package/lib/module/ui/components/OxyProvider.js.map +1 -0
  615. package/lib/module/ui/components/OxySignInButton.js +174 -0
  616. package/lib/module/ui/components/OxySignInButton.js.map +1 -0
  617. package/lib/module/ui/components/ProfileCard.js +133 -0
  618. package/lib/module/ui/components/ProfileCard.js.map +1 -0
  619. package/lib/module/ui/components/QuickActions.js +84 -0
  620. package/lib/module/ui/components/QuickActions.js.map +1 -0
  621. package/lib/module/ui/components/Section.js +34 -0
  622. package/lib/module/ui/components/Section.js.map +1 -0
  623. package/lib/module/ui/components/SectionTitle.js +31 -0
  624. package/lib/module/ui/components/SectionTitle.js.map +1 -0
  625. package/lib/module/ui/components/SettingRow.js +72 -0
  626. package/lib/module/ui/components/SettingRow.js.map +1 -0
  627. package/lib/module/ui/components/StepBasedScreen.js +392 -0
  628. package/lib/module/ui/components/StepBasedScreen.js.map +1 -0
  629. package/lib/module/ui/components/Surface.js +252 -0
  630. package/lib/module/ui/components/Surface.js.map +1 -0
  631. package/lib/module/ui/components/TextField/Addons/Outline.js +40 -0
  632. package/lib/module/ui/components/TextField/Addons/Outline.js.map +1 -0
  633. package/lib/module/ui/components/TextField/Addons/Underline.js +47 -0
  634. package/lib/module/ui/components/TextField/Addons/Underline.js.map +1 -0
  635. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +148 -0
  636. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -0
  637. package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +141 -0
  638. package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -0
  639. package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +135 -0
  640. package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -0
  641. package/lib/module/ui/components/TextField/Adornment/enums.js +18 -0
  642. package/lib/module/ui/components/TextField/Adornment/enums.js.map +1 -0
  643. package/lib/module/ui/components/TextField/Adornment/types.js +4 -0
  644. package/lib/module/ui/components/TextField/Adornment/types.js.map +1 -0
  645. package/lib/module/ui/components/TextField/Adornment/utils.js +57 -0
  646. package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -0
  647. package/lib/module/ui/components/TextField/Label/InputLabel.js +171 -0
  648. package/lib/module/ui/components/TextField/Label/InputLabel.js.map +1 -0
  649. package/lib/module/ui/components/TextField/Label/LabelBackground.js +78 -0
  650. package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +1 -0
  651. package/lib/module/ui/components/TextField/TextFieldFlat.js +374 -0
  652. package/lib/module/ui/components/TextField/TextFieldFlat.js.map +1 -0
  653. package/lib/module/ui/components/TextField/TextFieldOutlined.js +357 -0
  654. package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +1 -0
  655. package/lib/module/ui/components/TextField/constants.js +46 -0
  656. package/lib/module/ui/components/TextField/constants.js.map +1 -0
  657. package/lib/module/ui/components/TextField/helpers.js +472 -0
  658. package/lib/module/ui/components/TextField/helpers.js.map +1 -0
  659. package/lib/module/ui/components/TextField/types.js +4 -0
  660. package/lib/module/ui/components/TextField/types.js.map +1 -0
  661. package/lib/module/ui/components/TextField.js +333 -0
  662. package/lib/module/ui/components/TextField.js.map +1 -0
  663. package/lib/module/ui/components/TouchableRipple/Pressable.js +9 -0
  664. package/lib/module/ui/components/TouchableRipple/Pressable.js.map +1 -0
  665. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +253 -0
  666. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +1 -0
  667. package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +101 -0
  668. package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -0
  669. package/lib/module/ui/components/TouchableRipple/utils.js +50 -0
  670. package/lib/module/ui/components/TouchableRipple/utils.js.map +1 -0
  671. package/lib/module/ui/components/Typography/AnimatedText.js +56 -0
  672. package/lib/module/ui/components/Typography/AnimatedText.js.map +1 -0
  673. package/lib/module/ui/components/Typography/types.js +22 -0
  674. package/lib/module/ui/components/Typography/types.js.map +1 -0
  675. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +165 -0
  676. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
  677. package/lib/module/ui/components/fileManagement/FileViewer.js +402 -0
  678. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -0
  679. package/lib/module/ui/components/fileManagement/UploadPreview.js +175 -0
  680. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -0
  681. package/lib/module/ui/components/fileManagement/styles.js +864 -0
  682. package/lib/module/ui/components/fileManagement/styles.js.map +1 -0
  683. package/lib/module/ui/components/icon/FAIRWalletIcon.js +59 -0
  684. package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
  685. package/lib/module/ui/components/icon/OxyIcon.js +21 -0
  686. package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
  687. package/lib/module/ui/components/icon/index.js +5 -0
  688. package/lib/module/ui/components/icon/index.js.map +1 -0
  689. package/lib/module/ui/components/index.js +22 -0
  690. package/lib/module/ui/components/index.js.map +1 -0
  691. package/lib/module/ui/components/internal/GroupedPillButtons.js +205 -0
  692. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
  693. package/lib/module/ui/components/internal/PinInput.js +110 -0
  694. package/lib/module/ui/components/internal/PinInput.js.map +1 -0
  695. package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +156 -0
  696. package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
  697. package/lib/module/ui/components/profile/EditBioModal.js +175 -0
  698. package/lib/module/ui/components/profile/EditBioModal.js.map +1 -0
  699. package/lib/module/ui/components/profile/EditDisplayNameModal.js +198 -0
  700. package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +1 -0
  701. package/lib/module/ui/components/profile/EditEmailModal.js +178 -0
  702. package/lib/module/ui/components/profile/EditEmailModal.js.map +1 -0
  703. package/lib/module/ui/components/profile/EditLinksModal.js +309 -0
  704. package/lib/module/ui/components/profile/EditLinksModal.js.map +1 -0
  705. package/lib/module/ui/components/profile/EditLocationModal.js +267 -0
  706. package/lib/module/ui/components/profile/EditLocationModal.js.map +1 -0
  707. package/lib/module/ui/components/profile/EditUsernameModal.js +174 -0
  708. package/lib/module/ui/components/profile/EditUsernameModal.js.map +1 -0
  709. package/lib/module/ui/components/styles/overlay.js +80 -0
  710. package/lib/module/ui/components/styles/overlay.js.map +1 -0
  711. package/lib/module/ui/components/styles/shadow.js +128 -0
  712. package/lib/module/ui/components/styles/shadow.js.map +1 -0
  713. package/lib/module/ui/components/theming.js +111 -0
  714. package/lib/module/ui/components/theming.js.map +1 -0
  715. package/lib/module/ui/components/types.js +2 -0
  716. package/lib/module/ui/components/types.js.map +1 -0
  717. package/lib/module/ui/components/utils/forwardRef.js +13 -0
  718. package/lib/module/ui/components/utils/forwardRef.js.map +1 -0
  719. package/lib/module/ui/components/utils/hasTouchHandler.js +9 -0
  720. package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -0
  721. package/lib/module/ui/components/utils/roundLayoutSize.js +4 -0
  722. package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -0
  723. package/lib/module/ui/components/utils/splitStyles.js +46 -0
  724. package/lib/module/ui/components/utils/splitStyles.js.map +1 -0
  725. package/lib/module/ui/constants/iconColors.js +78 -0
  726. package/lib/module/ui/constants/iconColors.js.map +1 -0
  727. package/lib/module/ui/constants/spacing.js +45 -0
  728. package/lib/module/ui/constants/spacing.js.map +1 -0
  729. package/lib/module/ui/constants/theme.js +119 -0
  730. package/lib/module/ui/constants/theme.js.map +1 -0
  731. package/lib/module/ui/context/OxyContext.js +844 -0
  732. package/lib/module/ui/context/OxyContext.js.map +1 -0
  733. package/lib/module/ui/context/ThemeContext.js +29 -0
  734. package/lib/module/ui/context/ThemeContext.js.map +1 -0
  735. package/lib/module/ui/context/hooks/useAuthOperations.js +615 -0
  736. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -0
  737. package/lib/module/ui/context/hooks/useDeviceManagement.js +68 -0
  738. package/lib/module/ui/context/hooks/useDeviceManagement.js.map +1 -0
  739. package/lib/module/ui/context/hooks/useLanguageManagement.js +107 -0
  740. package/lib/module/ui/context/hooks/useLanguageManagement.js.map +1 -0
  741. package/lib/module/ui/context/hooks/useSessionManagement.js +276 -0
  742. package/lib/module/ui/context/hooks/useSessionManagement.js.map +1 -0
  743. package/lib/module/ui/context/hooks/useStorage.js +74 -0
  744. package/lib/module/ui/context/hooks/useStorage.js.map +1 -0
  745. package/lib/module/ui/hooks/index.js +7 -0
  746. package/lib/module/ui/hooks/index.js.map +1 -0
  747. package/lib/module/ui/hooks/mutations/index.js +15 -0
  748. package/lib/module/ui/hooks/mutations/index.js.map +1 -0
  749. package/lib/module/ui/hooks/mutations/useAccountMutations.js +543 -0
  750. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -0
  751. package/lib/module/ui/hooks/mutations/useServicesMutations.js +185 -0
  752. package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -0
  753. package/lib/module/ui/hooks/queries/index.js +21 -0
  754. package/lib/module/ui/hooks/queries/index.js.map +1 -0
  755. package/lib/module/ui/hooks/queries/queryKeys.js +89 -0
  756. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -0
  757. package/lib/module/ui/hooks/queries/useAccountQueries.js +209 -0
  758. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -0
  759. package/lib/module/ui/hooks/queries/useSecurityQueries.js +52 -0
  760. package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -0
  761. package/lib/module/ui/hooks/queries/useServicesQueries.js +178 -0
  762. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -0
  763. package/lib/module/ui/hooks/queryClient.js +110 -0
  764. package/lib/module/ui/hooks/queryClient.js.map +1 -0
  765. package/lib/module/ui/hooks/use-color-scheme.js +26 -0
  766. package/lib/module/ui/hooks/use-color-scheme.js.map +1 -0
  767. package/lib/module/ui/hooks/use-haptic-press.js +17 -0
  768. package/lib/module/ui/hooks/use-haptic-press.js.map +1 -0
  769. package/lib/module/ui/hooks/useAssets.js +239 -0
  770. package/lib/module/ui/hooks/useAssets.js.map +1 -0
  771. package/lib/module/ui/hooks/useDeviceManagement.js +68 -0
  772. package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -0
  773. package/lib/module/ui/hooks/useFileDownloadUrl.js +97 -0
  774. package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -0
  775. package/lib/module/ui/hooks/useFollow.js +161 -0
  776. package/lib/module/ui/hooks/useFollow.js.map +1 -0
  777. package/lib/module/ui/hooks/useFollow.types.js +2 -0
  778. package/lib/module/ui/hooks/useFollow.types.js.map +1 -0
  779. package/lib/module/ui/hooks/useI18n.js +18 -0
  780. package/lib/module/ui/hooks/useI18n.js.map +1 -0
  781. package/lib/module/ui/hooks/useLanguageManagement.js +107 -0
  782. package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -0
  783. package/lib/module/ui/hooks/useProfileEditing.js +102 -0
  784. package/lib/module/ui/hooks/useProfileEditing.js.map +1 -0
  785. package/lib/module/ui/hooks/useQueryClient.js +15 -0
  786. package/lib/module/ui/hooks/useQueryClient.js.map +1 -0
  787. package/lib/module/ui/hooks/useSessionManagement.js +276 -0
  788. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -0
  789. package/lib/module/ui/hooks/useSessionSocket.js +469 -0
  790. package/lib/module/ui/hooks/useSessionSocket.js.map +1 -0
  791. package/lib/module/ui/hooks/useStorage.js +74 -0
  792. package/lib/module/ui/hooks/useStorage.js.map +1 -0
  793. package/lib/module/ui/hooks/useThemeColors.js +27 -0
  794. package/lib/module/ui/hooks/useThemeColors.js.map +1 -0
  795. package/lib/module/ui/hooks/useThemeStyles.js +64 -0
  796. package/lib/module/ui/hooks/useThemeStyles.js.map +1 -0
  797. package/lib/module/ui/index.js +63 -0
  798. package/lib/module/ui/index.js.map +1 -0
  799. package/lib/module/ui/isFrontend.js +6 -0
  800. package/lib/module/ui/isFrontend.js.map +1 -0
  801. package/lib/module/ui/navigation/bottomSheetManager.js +168 -0
  802. package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -0
  803. package/lib/module/ui/navigation/routes.js +82 -0
  804. package/lib/module/ui/navigation/routes.js.map +1 -0
  805. package/lib/module/ui/screens/AccountCenterScreen.js +324 -0
  806. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -0
  807. package/lib/module/ui/screens/AccountOverviewScreen.js +747 -0
  808. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -0
  809. package/lib/module/ui/screens/AccountSettingsScreen.js +2158 -0
  810. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
  811. package/lib/module/ui/screens/AccountSwitcherScreen.js +698 -0
  812. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
  813. package/lib/module/ui/screens/AccountVerificationScreen.js +205 -0
  814. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -0
  815. package/lib/module/ui/screens/AppInfoScreen.js +409 -0
  816. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
  817. package/lib/module/ui/screens/FeedbackScreen.js +1186 -0
  818. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
  819. package/lib/module/ui/screens/FileManagementScreen.js +2327 -0
  820. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
  821. package/lib/module/ui/screens/HelpSupportScreen.js +129 -0
  822. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -0
  823. package/lib/module/ui/screens/HistoryViewScreen.js +213 -0
  824. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -0
  825. package/lib/module/ui/screens/LanguageSelectorScreen.js +213 -0
  826. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -0
  827. package/lib/module/ui/screens/LegalDocumentsScreen.js +179 -0
  828. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -0
  829. package/lib/module/ui/screens/OxyAuthScreen.js +533 -0
  830. package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -0
  831. package/lib/module/ui/screens/PaymentGatewayScreen.js +1583 -0
  832. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
  833. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1643 -0
  834. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
  835. package/lib/module/ui/screens/PrivacySettingsScreen.js +467 -0
  836. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -0
  837. package/lib/module/ui/screens/ProfileScreen.js +642 -0
  838. package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
  839. package/lib/module/ui/screens/SavesCollectionsScreen.js +162 -0
  840. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -0
  841. package/lib/module/ui/screens/SearchSettingsScreen.js +161 -0
  842. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -0
  843. package/lib/module/ui/screens/SessionManagementScreen.js +442 -0
  844. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -0
  845. package/lib/module/ui/screens/UserLinksScreen.js +82 -0
  846. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -0
  847. package/lib/module/ui/screens/WelcomeNewUserScreen.js +428 -0
  848. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -0
  849. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +94 -0
  850. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
  851. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +339 -0
  852. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
  853. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +189 -0
  854. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
  855. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +146 -0
  856. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
  857. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +605 -0
  858. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
  859. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +105 -0
  860. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
  861. package/lib/module/ui/stores/accountStore.js +244 -0
  862. package/lib/module/ui/stores/accountStore.js.map +1 -0
  863. package/lib/module/ui/stores/assetStore.js +212 -0
  864. package/lib/module/ui/stores/assetStore.js.map +1 -0
  865. package/lib/module/ui/stores/authStore.js +81 -0
  866. package/lib/module/ui/stores/authStore.js.map +1 -0
  867. package/lib/module/ui/stores/fileStore.js +145 -0
  868. package/lib/module/ui/stores/fileStore.js.map +1 -0
  869. package/lib/module/ui/stores/followStore.js +225 -0
  870. package/lib/module/ui/stores/followStore.js.map +1 -0
  871. package/lib/module/ui/styles/authStyles.js +333 -0
  872. package/lib/module/ui/styles/authStyles.js.map +1 -0
  873. package/lib/module/ui/styles/fonts.js +81 -0
  874. package/lib/module/ui/styles/fonts.js.map +1 -0
  875. package/lib/module/ui/styles/index.js +7 -0
  876. package/lib/module/ui/styles/index.js.map +1 -0
  877. package/lib/module/ui/styles/spacing.js +58 -0
  878. package/lib/module/ui/styles/spacing.js.map +1 -0
  879. package/lib/module/ui/styles/theme.js +114 -0
  880. package/lib/module/ui/styles/theme.js.map +1 -0
  881. package/lib/module/ui/types/fileManagement.js +4 -0
  882. package/lib/module/ui/types/fileManagement.js.map +1 -0
  883. package/lib/module/ui/types/navigation.js +4 -0
  884. package/lib/module/ui/types/navigation.js.map +1 -0
  885. package/lib/module/ui/utils/avatarUtils.js +126 -0
  886. package/lib/module/ui/utils/avatarUtils.js.map +1 -0
  887. package/lib/module/ui/utils/colorUtils.js +46 -0
  888. package/lib/module/ui/utils/colorUtils.js.map +1 -0
  889. package/lib/module/ui/utils/confirmAction.js +25 -0
  890. package/lib/module/ui/utils/confirmAction.js.map +1 -0
  891. package/lib/module/ui/utils/errorHandlers.js +129 -0
  892. package/lib/module/ui/utils/errorHandlers.js.map +1 -0
  893. package/lib/module/ui/utils/fileManagement.js +251 -0
  894. package/lib/module/ui/utils/fileManagement.js.map +1 -0
  895. package/lib/module/ui/utils/sessionHelpers.js +94 -0
  896. package/lib/module/ui/utils/sessionHelpers.js.map +1 -0
  897. package/lib/module/ui/utils/storageHelpers.js +111 -0
  898. package/lib/module/ui/utils/storageHelpers.js.map +1 -0
  899. package/lib/module/ui/utils/themeUtils.js +41 -0
  900. package/lib/module/ui/utils/themeUtils.js.map +1 -0
  901. package/lib/module/ui/utils/user-utils.js +46 -0
  902. package/lib/module/ui/utils/user-utils.js.map +1 -0
  903. package/lib/module/utils/apiUtils.js +72 -0
  904. package/lib/module/utils/apiUtils.js.map +1 -0
  905. package/lib/module/utils/asyncUtils.js +192 -0
  906. package/lib/module/utils/asyncUtils.js.map +1 -0
  907. package/lib/module/utils/cache.js +250 -0
  908. package/lib/module/utils/cache.js.map +1 -0
  909. package/lib/module/utils/deviceManager.js +171 -0
  910. package/lib/module/utils/deviceManager.js.map +1 -0
  911. package/lib/module/utils/errorUtils.js +167 -0
  912. package/lib/module/utils/errorUtils.js.map +1 -0
  913. package/lib/module/utils/hookUtils.js +381 -0
  914. package/lib/module/utils/hookUtils.js.map +1 -0
  915. package/lib/module/utils/index.js +11 -0
  916. package/lib/module/utils/index.js.map +1 -0
  917. package/lib/module/utils/languageUtils.js +151 -0
  918. package/lib/module/utils/languageUtils.js.map +1 -0
  919. package/lib/module/utils/loggerUtils.js +149 -0
  920. package/lib/module/utils/loggerUtils.js.map +1 -0
  921. package/lib/module/utils/requestUtils.js +210 -0
  922. package/lib/module/utils/requestUtils.js.map +1 -0
  923. package/lib/module/utils/sessionUtils.js +180 -0
  924. package/lib/module/utils/sessionUtils.js.map +1 -0
  925. package/lib/module/utils/validationUtils.js +170 -0
  926. package/lib/module/utils/validationUtils.js.map +1 -0
  927. package/lib/typescript/assets/icons/OxyServices.d.ts +29 -0
  928. package/lib/typescript/assets/icons/OxyServices.d.ts.map +1 -0
  929. package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
  930. package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
  931. package/lib/typescript/constants/version.d.ts +14 -0
  932. package/lib/typescript/constants/version.d.ts.map +1 -0
  933. package/lib/typescript/core/HttpService.d.ts +159 -0
  934. package/lib/typescript/core/HttpService.d.ts.map +1 -0
  935. package/lib/typescript/core/OxyServices.base.d.ts +133 -0
  936. package/lib/typescript/core/OxyServices.base.d.ts.map +1 -0
  937. package/lib/typescript/core/OxyServices.d.ts +113 -0
  938. package/lib/typescript/core/OxyServices.d.ts.map +1 -0
  939. package/lib/typescript/core/OxyServices.errors.d.ts +12 -0
  940. package/lib/typescript/core/OxyServices.errors.d.ts.map +1 -0
  941. package/lib/typescript/core/index.d.ts +17 -0
  942. package/lib/typescript/core/index.d.ts.map +1 -0
  943. package/lib/typescript/core/mixins/OxyServices.analytics.d.ts +67 -0
  944. package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +1 -0
  945. package/lib/typescript/core/mixins/OxyServices.assets.d.ts +136 -0
  946. package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +1 -0
  947. package/lib/typescript/core/mixins/OxyServices.auth.d.ts +192 -0
  948. package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +1 -0
  949. package/lib/typescript/core/mixins/OxyServices.developer.d.ts +100 -0
  950. package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +1 -0
  951. package/lib/typescript/core/mixins/OxyServices.devices.d.ts +97 -0
  952. package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +1 -0
  953. package/lib/typescript/core/mixins/OxyServices.karma.d.ts +86 -0
  954. package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +1 -0
  955. package/lib/typescript/core/mixins/OxyServices.language.d.ts +82 -0
  956. package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +1 -0
  957. package/lib/typescript/core/mixins/OxyServices.location.d.ts +65 -0
  958. package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +1 -0
  959. package/lib/typescript/core/mixins/OxyServices.payment.d.ts +112 -0
  960. package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +1 -0
  961. package/lib/typescript/core/mixins/OxyServices.privacy.d.ts +123 -0
  962. package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +1 -0
  963. package/lib/typescript/core/mixins/OxyServices.security.d.ts +79 -0
  964. package/lib/typescript/core/mixins/OxyServices.security.d.ts.map +1 -0
  965. package/lib/typescript/core/mixins/OxyServices.user.d.ts +183 -0
  966. package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +1 -0
  967. package/lib/typescript/core/mixins/OxyServices.utility.d.ts +94 -0
  968. package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +1 -0
  969. package/lib/typescript/core/mixins/index.d.ts +853 -0
  970. package/lib/typescript/core/mixins/index.d.ts.map +1 -0
  971. package/lib/typescript/core/mixins/mixinHelpers.d.ts +32 -0
  972. package/lib/typescript/core/mixins/mixinHelpers.d.ts.map +1 -0
  973. package/lib/typescript/core/services/SessionService.d.ts +78 -0
  974. package/lib/typescript/core/services/SessionService.d.ts.map +1 -0
  975. package/lib/typescript/core/services/TokenService.d.ts +72 -0
  976. package/lib/typescript/core/services/TokenService.d.ts.map +1 -0
  977. package/lib/typescript/crypto/index.d.ts +12 -0
  978. package/lib/typescript/crypto/index.d.ts.map +1 -0
  979. package/lib/typescript/crypto/keyManager.d.ts +97 -0
  980. package/lib/typescript/crypto/keyManager.d.ts.map +1 -0
  981. package/lib/typescript/crypto/polyfill.d.ts +13 -0
  982. package/lib/typescript/crypto/polyfill.d.ts.map +1 -0
  983. package/lib/typescript/crypto/signatureService.d.ts +87 -0
  984. package/lib/typescript/crypto/signatureService.d.ts.map +1 -0
  985. package/lib/typescript/crypto/types.d.ts +18 -0
  986. package/lib/typescript/crypto/types.d.ts.map +1 -0
  987. package/lib/typescript/i18n/index.d.ts +4 -0
  988. package/lib/typescript/i18n/index.d.ts.map +1 -0
  989. package/lib/typescript/index.d.ts +38 -0
  990. package/lib/typescript/index.d.ts.map +1 -0
  991. package/lib/typescript/lib/sonner-safe.d.ts +9 -0
  992. package/lib/typescript/lib/sonner-safe.d.ts.map +1 -0
  993. package/lib/typescript/lib/sonner.d.ts +15 -0
  994. package/lib/typescript/lib/sonner.d.ts.map +1 -0
  995. package/lib/typescript/models/interfaces.d.ts +428 -0
  996. package/lib/typescript/models/interfaces.d.ts.map +1 -0
  997. package/lib/typescript/models/session.d.ts +31 -0
  998. package/lib/typescript/models/session.d.ts.map +1 -0
  999. package/lib/typescript/node/index.d.ts +10 -0
  1000. package/lib/typescript/node/index.d.ts.map +1 -0
  1001. package/lib/typescript/types/buffer.d.ts +97 -0
  1002. package/lib/typescript/types/color.d.ts +20 -0
  1003. package/lib/typescript/types/elliptic.d.ts +62 -0
  1004. package/lib/typescript/types/expo-crypto.d.ts +30 -0
  1005. package/lib/typescript/types/expo-document-picker.d.ts +36 -0
  1006. package/lib/typescript/types/expo-secure-store.d.ts +22 -0
  1007. package/lib/typescript/types/expo-vector-icons.d.ts +19 -0
  1008. package/lib/typescript/types/express.d.ts +24 -0
  1009. package/lib/typescript/ui/components/ActivityIndicator.d.ts +45 -0
  1010. package/lib/typescript/ui/components/ActivityIndicator.d.ts.map +1 -0
  1011. package/lib/typescript/ui/components/AnimationExample.d.ts +4 -0
  1012. package/lib/typescript/ui/components/AnimationExample.d.ts.map +1 -0
  1013. package/lib/typescript/ui/components/AutoHeightScrollView.d.ts +23 -0
  1014. package/lib/typescript/ui/components/AutoHeightScrollView.d.ts.map +1 -0
  1015. package/lib/typescript/ui/components/Avatar.d.ts +61 -0
  1016. package/lib/typescript/ui/components/Avatar.d.ts.map +1 -0
  1017. package/lib/typescript/ui/components/BottomSheet.d.ts +29 -0
  1018. package/lib/typescript/ui/components/BottomSheet.d.ts.map +1 -0
  1019. package/lib/typescript/ui/components/BottomSheetRouter.d.ts +14 -0
  1020. package/lib/typescript/ui/components/BottomSheetRouter.d.ts.map +1 -0
  1021. package/lib/typescript/ui/components/CrossFadeIcon.d.ts +27 -0
  1022. package/lib/typescript/ui/components/CrossFadeIcon.d.ts.map +1 -0
  1023. package/lib/typescript/ui/components/EmptyState.d.ts +8 -0
  1024. package/lib/typescript/ui/components/EmptyState.d.ts.map +1 -0
  1025. package/lib/typescript/ui/components/ErrorBoundary.d.ts +31 -0
  1026. package/lib/typescript/ui/components/ErrorBoundary.d.ts.map +1 -0
  1027. package/lib/typescript/ui/components/FollowButton.d.ts +18 -0
  1028. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -0
  1029. package/lib/typescript/ui/components/FontLoader.d.ts +15 -0
  1030. package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -0
  1031. package/lib/typescript/ui/components/GroupedItem.d.ts +20 -0
  1032. package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -0
  1033. package/lib/typescript/ui/components/GroupedSection.d.ts +25 -0
  1034. package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -0
  1035. package/lib/typescript/ui/components/Header.d.ts +38 -0
  1036. package/lib/typescript/ui/components/Header.d.ts.map +1 -0
  1037. package/lib/typescript/ui/components/HelperText.d.ts +47 -0
  1038. package/lib/typescript/ui/components/HelperText.d.ts.map +1 -0
  1039. package/lib/typescript/ui/components/Icon.d.ts +60 -0
  1040. package/lib/typescript/ui/components/Icon.d.ts.map +1 -0
  1041. package/lib/typescript/ui/components/IconButton/IconButton.d.ts +99 -0
  1042. package/lib/typescript/ui/components/IconButton/IconButton.d.ts.map +1 -0
  1043. package/lib/typescript/ui/components/IconButton/utils.d.ts +19 -0
  1044. package/lib/typescript/ui/components/IconButton/utils.d.ts.map +1 -0
  1045. package/lib/typescript/ui/components/LoadingState.d.ts +9 -0
  1046. package/lib/typescript/ui/components/LoadingState.d.ts.map +1 -0
  1047. package/lib/typescript/ui/components/OxyLogo.d.ts +29 -0
  1048. package/lib/typescript/ui/components/OxyLogo.d.ts.map +1 -0
  1049. package/lib/typescript/ui/components/OxyPayButton.d.ts +29 -0
  1050. package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -0
  1051. package/lib/typescript/ui/components/OxyProvider.d.ts +11 -0
  1052. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -0
  1053. package/lib/typescript/ui/components/OxySignInButton.d.ts +65 -0
  1054. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -0
  1055. package/lib/typescript/ui/components/ProfileCard.d.ts +18 -0
  1056. package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -0
  1057. package/lib/typescript/ui/components/QuickActions.d.ts +15 -0
  1058. package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -0
  1059. package/lib/typescript/ui/components/Section.d.ts +12 -0
  1060. package/lib/typescript/ui/components/Section.d.ts.map +1 -0
  1061. package/lib/typescript/ui/components/SectionTitle.d.ts +10 -0
  1062. package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -0
  1063. package/lib/typescript/ui/components/SettingRow.d.ts +14 -0
  1064. package/lib/typescript/ui/components/SettingRow.d.ts.map +1 -0
  1065. package/lib/typescript/ui/components/StepBasedScreen.d.ts +26 -0
  1066. package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +1 -0
  1067. package/lib/typescript/ui/components/Surface.d.ts +76 -0
  1068. package/lib/typescript/ui/components/Surface.d.ts.map +1 -0
  1069. package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts +16 -0
  1070. package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts.map +1 -0
  1071. package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts +19 -0
  1072. package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts.map +1 -0
  1073. package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +45 -0
  1074. package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +1 -0
  1075. package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts +73 -0
  1076. package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +1 -0
  1077. package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts +78 -0
  1078. package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +1 -0
  1079. package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts +13 -0
  1080. package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts.map +1 -0
  1081. package/lib/typescript/ui/components/TextField/Adornment/types.d.ts +12 -0
  1082. package/lib/typescript/ui/components/TextField/Adornment/types.d.ts.map +1 -0
  1083. package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts +12 -0
  1084. package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts.map +1 -0
  1085. package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts +5 -0
  1086. package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts.map +1 -0
  1087. package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts +4 -0
  1088. package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts.map +1 -0
  1089. package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts +4 -0
  1090. package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts.map +1 -0
  1091. package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts +4 -0
  1092. package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts.map +1 -0
  1093. package/lib/typescript/ui/components/TextField/constants.d.ts +32 -0
  1094. package/lib/typescript/ui/components/TextField/constants.d.ts.map +1 -0
  1095. package/lib/typescript/ui/components/TextField/helpers.d.ts +97 -0
  1096. package/lib/typescript/ui/components/TextField/helpers.d.ts.map +1 -0
  1097. package/lib/typescript/ui/components/TextField/types.d.ts +156 -0
  1098. package/lib/typescript/ui/components/TextField/types.d.ts.map +1 -0
  1099. package/lib/typescript/ui/components/TextField.d.ts +192 -0
  1100. package/lib/typescript/ui/components/TextField.d.ts.map +1 -0
  1101. package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts +13 -0
  1102. package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts.map +1 -0
  1103. package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts +62 -0
  1104. package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts.map +1 -0
  1105. package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts +25 -0
  1106. package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -0
  1107. package/lib/typescript/ui/components/TouchableRipple/utils.d.ts +11 -0
  1108. package/lib/typescript/ui/components/TouchableRipple/utils.d.ts.map +1 -0
  1109. package/lib/typescript/ui/components/Typography/AnimatedText.d.ts +35 -0
  1110. package/lib/typescript/ui/components/Typography/AnimatedText.d.ts.map +1 -0
  1111. package/lib/typescript/ui/components/Typography/types.d.ts +19 -0
  1112. package/lib/typescript/ui/components/Typography/types.d.ts.map +1 -0
  1113. package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts +15 -0
  1114. package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -0
  1115. package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts +18 -0
  1116. package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts.map +1 -0
  1117. package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts +21 -0
  1118. package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts.map +1 -0
  1119. package/lib/typescript/ui/components/fileManagement/styles.d.ts +860 -0
  1120. package/lib/typescript/ui/components/fileManagement/styles.d.ts.map +1 -0
  1121. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +9 -0
  1122. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
  1123. package/lib/typescript/ui/components/icon/OxyIcon.d.ts +10 -0
  1124. package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -0
  1125. package/lib/typescript/ui/components/icon/index.d.ts +4 -0
  1126. package/lib/typescript/ui/components/icon/index.d.ts.map +1 -0
  1127. package/lib/typescript/ui/components/index.d.ts +17 -0
  1128. package/lib/typescript/ui/components/index.d.ts.map +1 -0
  1129. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
  1130. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
  1131. package/lib/typescript/ui/components/internal/PinInput.d.ts +23 -0
  1132. package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -0
  1133. package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts +27 -0
  1134. package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -0
  1135. package/lib/typescript/ui/components/profile/EditBioModal.d.ts +11 -0
  1136. package/lib/typescript/ui/components/profile/EditBioModal.d.ts.map +1 -0
  1137. package/lib/typescript/ui/components/profile/EditDisplayNameModal.d.ts +12 -0
  1138. package/lib/typescript/ui/components/profile/EditDisplayNameModal.d.ts.map +1 -0
  1139. package/lib/typescript/ui/components/profile/EditEmailModal.d.ts +11 -0
  1140. package/lib/typescript/ui/components/profile/EditEmailModal.d.ts.map +1 -0
  1141. package/lib/typescript/ui/components/profile/EditLinksModal.d.ts +18 -0
  1142. package/lib/typescript/ui/components/profile/EditLinksModal.d.ts.map +1 -0
  1143. package/lib/typescript/ui/components/profile/EditLocationModal.d.ts +20 -0
  1144. package/lib/typescript/ui/components/profile/EditLocationModal.d.ts.map +1 -0
  1145. package/lib/typescript/ui/components/profile/EditUsernameModal.d.ts +11 -0
  1146. package/lib/typescript/ui/components/profile/EditUsernameModal.d.ts.map +1 -0
  1147. package/lib/typescript/ui/components/styles/overlay.d.ts +4 -0
  1148. package/lib/typescript/ui/components/styles/overlay.d.ts.map +1 -0
  1149. package/lib/typescript/ui/components/styles/shadow.d.ts +3 -0
  1150. package/lib/typescript/ui/components/styles/shadow.d.ts.map +1 -0
  1151. package/lib/typescript/ui/components/theming.d.ts +8 -0
  1152. package/lib/typescript/ui/components/theming.d.ts.map +1 -0
  1153. package/lib/typescript/ui/components/types.d.ts +80 -0
  1154. package/lib/typescript/ui/components/types.d.ts.map +1 -0
  1155. package/lib/typescript/ui/components/utils/forwardRef.d.ts +12 -0
  1156. package/lib/typescript/ui/components/utils/forwardRef.d.ts.map +1 -0
  1157. package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts +6 -0
  1158. package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts.map +1 -0
  1159. package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts +2 -0
  1160. package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts.map +1 -0
  1161. package/lib/typescript/ui/components/utils/splitStyles.d.ts +20 -0
  1162. package/lib/typescript/ui/components/utils/splitStyles.d.ts.map +1 -0
  1163. package/lib/typescript/ui/constants/iconColors.d.ts +130 -0
  1164. package/lib/typescript/ui/constants/iconColors.d.ts.map +1 -0
  1165. package/lib/typescript/ui/constants/spacing.d.ts +33 -0
  1166. package/lib/typescript/ui/constants/spacing.d.ts.map +1 -0
  1167. package/lib/typescript/ui/constants/theme.d.ts +97 -0
  1168. package/lib/typescript/ui/constants/theme.d.ts.map +1 -0
  1169. package/lib/typescript/ui/context/OxyContext.d.ts +86 -0
  1170. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -0
  1171. package/lib/typescript/ui/context/ThemeContext.d.ts +19 -0
  1172. package/lib/typescript/ui/context/ThemeContext.d.ts.map +1 -0
  1173. package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +59 -0
  1174. package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts.map +1 -0
  1175. package/lib/typescript/ui/context/hooks/useDeviceManagement.d.ts +27 -0
  1176. package/lib/typescript/ui/context/hooks/useDeviceManagement.d.ts.map +1 -0
  1177. package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts +25 -0
  1178. package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts.map +1 -0
  1179. package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts +41 -0
  1180. package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts.map +1 -0
  1181. package/lib/typescript/ui/context/hooks/useStorage.d.ts +22 -0
  1182. package/lib/typescript/ui/context/hooks/useStorage.d.ts.map +1 -0
  1183. package/lib/typescript/ui/hooks/index.d.ts +5 -0
  1184. package/lib/typescript/ui/hooks/index.d.ts.map +1 -0
  1185. package/lib/typescript/ui/hooks/mutations/index.d.ts +9 -0
  1186. package/lib/typescript/ui/hooks/mutations/index.d.ts.map +1 -0
  1187. package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts +44 -0
  1188. package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -0
  1189. package/lib/typescript/ui/hooks/mutations/useServicesMutations.d.ts +23 -0
  1190. package/lib/typescript/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -0
  1191. package/lib/typescript/ui/hooks/queries/index.d.ts +11 -0
  1192. package/lib/typescript/ui/hooks/queries/index.d.ts.map +1 -0
  1193. package/lib/typescript/ui/hooks/queries/queryKeys.d.ts +65 -0
  1194. package/lib/typescript/ui/hooks/queries/queryKeys.d.ts.map +1 -0
  1195. package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts +47 -0
  1196. package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts.map +1 -0
  1197. package/lib/typescript/ui/hooks/queries/useSecurityQueries.d.ts +15 -0
  1198. package/lib/typescript/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -0
  1199. package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts +34 -0
  1200. package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts.map +1 -0
  1201. package/lib/typescript/ui/hooks/queryClient.d.ts +19 -0
  1202. package/lib/typescript/ui/hooks/queryClient.d.ts.map +1 -0
  1203. package/lib/typescript/ui/hooks/use-color-scheme.d.ts +8 -0
  1204. package/lib/typescript/ui/hooks/use-color-scheme.d.ts.map +1 -0
  1205. package/lib/typescript/ui/hooks/use-haptic-press.d.ts +8 -0
  1206. package/lib/typescript/ui/hooks/use-haptic-press.d.ts.map +1 -0
  1207. package/lib/typescript/ui/hooks/useAssets.d.ts +35 -0
  1208. package/lib/typescript/ui/hooks/useAssets.d.ts.map +1 -0
  1209. package/lib/typescript/ui/hooks/useDeviceManagement.d.ts +27 -0
  1210. package/lib/typescript/ui/hooks/useDeviceManagement.d.ts.map +1 -0
  1211. package/lib/typescript/ui/hooks/useFileDownloadUrl.d.ts +19 -0
  1212. package/lib/typescript/ui/hooks/useFileDownloadUrl.d.ts.map +1 -0
  1213. package/lib/typescript/ui/hooks/useFollow.d.ts +62 -0
  1214. package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -0
  1215. package/lib/typescript/ui/hooks/useFollow.types.d.ts +33 -0
  1216. package/lib/typescript/ui/hooks/useFollow.types.d.ts.map +1 -0
  1217. package/lib/typescript/ui/hooks/useI18n.d.ts +5 -0
  1218. package/lib/typescript/ui/hooks/useI18n.d.ts.map +1 -0
  1219. package/lib/typescript/ui/hooks/useLanguageManagement.d.ts +25 -0
  1220. package/lib/typescript/ui/hooks/useLanguageManagement.d.ts.map +1 -0
  1221. package/lib/typescript/ui/hooks/useProfileEditing.d.ts +36 -0
  1222. package/lib/typescript/ui/hooks/useProfileEditing.d.ts.map +1 -0
  1223. package/lib/typescript/ui/hooks/useQueryClient.d.ts +7 -0
  1224. package/lib/typescript/ui/hooks/useQueryClient.d.ts.map +1 -0
  1225. package/lib/typescript/ui/hooks/useSessionManagement.d.ts +41 -0
  1226. package/lib/typescript/ui/hooks/useSessionManagement.d.ts.map +1 -0
  1227. package/lib/typescript/ui/hooks/useSessionSocket.d.ts +28 -0
  1228. package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -0
  1229. package/lib/typescript/ui/hooks/useStorage.d.ts +22 -0
  1230. package/lib/typescript/ui/hooks/useStorage.d.ts.map +1 -0
  1231. package/lib/typescript/ui/hooks/useThemeColors.d.ts +94 -0
  1232. package/lib/typescript/ui/hooks/useThemeColors.d.ts.map +1 -0
  1233. package/lib/typescript/ui/hooks/useThemeStyles.d.ts +45 -0
  1234. package/lib/typescript/ui/hooks/useThemeStyles.d.ts.map +1 -0
  1235. package/lib/typescript/ui/index.d.ts +5 -0
  1236. package/lib/typescript/ui/index.d.ts.map +1 -0
  1237. package/lib/typescript/ui/isFrontend.d.ts +3 -0
  1238. package/lib/typescript/ui/isFrontend.d.ts.map +1 -0
  1239. package/lib/typescript/ui/navigation/bottomSheetManager.d.ts +74 -0
  1240. package/lib/typescript/ui/navigation/bottomSheetManager.d.ts.map +1 -0
  1241. package/lib/typescript/ui/navigation/routes.d.ts +6 -0
  1242. package/lib/typescript/ui/navigation/routes.d.ts.map +1 -0
  1243. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +5 -0
  1244. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -0
  1245. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +5 -0
  1246. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -0
  1247. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +8 -0
  1248. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
  1249. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +5 -0
  1250. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -0
  1251. package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts +5 -0
  1252. package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts.map +1 -0
  1253. package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
  1254. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
  1255. package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
  1256. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
  1257. package/lib/typescript/ui/screens/FileManagementScreen.d.ts +5 -0
  1258. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -0
  1259. package/lib/typescript/ui/screens/HelpSupportScreen.d.ts +5 -0
  1260. package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +1 -0
  1261. package/lib/typescript/ui/screens/HistoryViewScreen.d.ts +5 -0
  1262. package/lib/typescript/ui/screens/HistoryViewScreen.d.ts.map +1 -0
  1263. package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts +7 -0
  1264. package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts.map +1 -0
  1265. package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts +5 -0
  1266. package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts.map +1 -0
  1267. package/lib/typescript/ui/screens/OxyAuthScreen.d.ts +17 -0
  1268. package/lib/typescript/ui/screens/OxyAuthScreen.d.ts.map +1 -0
  1269. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +27 -0
  1270. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
  1271. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
  1272. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
  1273. package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts +5 -0
  1274. package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts.map +1 -0
  1275. package/lib/typescript/ui/screens/ProfileScreen.d.ts +9 -0
  1276. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -0
  1277. package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts +5 -0
  1278. package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +1 -0
  1279. package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts +5 -0
  1280. package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts.map +1 -0
  1281. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +5 -0
  1282. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -0
  1283. package/lib/typescript/ui/screens/UserLinksScreen.d.ts +15 -0
  1284. package/lib/typescript/ui/screens/UserLinksScreen.d.ts.map +1 -0
  1285. package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts +13 -0
  1286. package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -0
  1287. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +5 -0
  1288. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -0
  1289. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +5 -0
  1290. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -0
  1291. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +5 -0
  1292. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -0
  1293. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +5 -0
  1294. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -0
  1295. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +5 -0
  1296. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -0
  1297. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +5 -0
  1298. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -0
  1299. package/lib/typescript/ui/stores/accountStore.d.ts +34 -0
  1300. package/lib/typescript/ui/stores/accountStore.d.ts.map +1 -0
  1301. package/lib/typescript/ui/stores/assetStore.d.ts +54 -0
  1302. package/lib/typescript/ui/stores/assetStore.d.ts.map +1 -0
  1303. package/lib/typescript/ui/stores/authStore.d.ts +21 -0
  1304. package/lib/typescript/ui/stores/authStore.d.ts.map +1 -0
  1305. package/lib/typescript/ui/stores/fileStore.d.ts +31 -0
  1306. package/lib/typescript/ui/stores/fileStore.d.ts.map +1 -0
  1307. package/lib/typescript/ui/stores/followStore.d.ts +25 -0
  1308. package/lib/typescript/ui/stores/followStore.d.ts.map +1 -0
  1309. package/lib/typescript/ui/styles/authStyles.d.ts +332 -0
  1310. package/lib/typescript/ui/styles/authStyles.d.ts.map +1 -0
  1311. package/lib/typescript/ui/styles/fonts.d.ts +21 -0
  1312. package/lib/typescript/ui/styles/fonts.d.ts.map +1 -0
  1313. package/lib/typescript/ui/styles/index.d.ts +5 -0
  1314. package/lib/typescript/ui/styles/index.d.ts.map +1 -0
  1315. package/lib/typescript/ui/styles/spacing.d.ts +49 -0
  1316. package/lib/typescript/ui/styles/spacing.d.ts.map +1 -0
  1317. package/lib/typescript/ui/styles/theme.d.ts +68 -0
  1318. package/lib/typescript/ui/styles/theme.d.ts.map +1 -0
  1319. package/lib/typescript/ui/types/fileManagement.d.ts +41 -0
  1320. package/lib/typescript/ui/types/fileManagement.d.ts.map +1 -0
  1321. package/lib/typescript/ui/types/navigation.d.ts +36 -0
  1322. package/lib/typescript/ui/types/navigation.d.ts.map +1 -0
  1323. package/lib/typescript/ui/utils/avatarUtils.d.ts +34 -0
  1324. package/lib/typescript/ui/utils/avatarUtils.d.ts.map +1 -0
  1325. package/lib/typescript/ui/utils/colorUtils.d.ts +14 -0
  1326. package/lib/typescript/ui/utils/colorUtils.d.ts.map +1 -0
  1327. package/lib/typescript/ui/utils/confirmAction.d.ts +7 -0
  1328. package/lib/typescript/ui/utils/confirmAction.d.ts.map +1 -0
  1329. package/lib/typescript/ui/utils/errorHandlers.d.ts +35 -0
  1330. package/lib/typescript/ui/utils/errorHandlers.d.ts.map +1 -0
  1331. package/lib/typescript/ui/utils/fileManagement.d.ts +87 -0
  1332. package/lib/typescript/ui/utils/fileManagement.d.ts.map +1 -0
  1333. package/lib/typescript/ui/utils/sessionHelpers.d.ts +59 -0
  1334. package/lib/typescript/ui/utils/sessionHelpers.d.ts.map +1 -0
  1335. package/lib/typescript/ui/utils/storageHelpers.d.ts +31 -0
  1336. package/lib/typescript/ui/utils/storageHelpers.d.ts.map +1 -0
  1337. package/lib/typescript/ui/utils/themeUtils.d.ts +24 -0
  1338. package/lib/typescript/ui/utils/themeUtils.d.ts.map +1 -0
  1339. package/lib/typescript/ui/utils/user-utils.d.ts +29 -0
  1340. package/lib/typescript/ui/utils/user-utils.d.ts.map +1 -0
  1341. package/lib/typescript/utils/apiUtils.d.ts +54 -0
  1342. package/lib/typescript/utils/apiUtils.d.ts.map +1 -0
  1343. package/lib/typescript/utils/asyncUtils.d.ts +59 -0
  1344. package/lib/typescript/utils/asyncUtils.d.ts.map +1 -0
  1345. package/lib/typescript/utils/cache.d.ts +128 -0
  1346. package/lib/typescript/utils/cache.d.ts.map +1 -0
  1347. package/lib/typescript/utils/deviceManager.d.ts +66 -0
  1348. package/lib/typescript/utils/deviceManager.d.ts.map +1 -0
  1349. package/lib/typescript/utils/errorUtils.d.ts +53 -0
  1350. package/lib/typescript/utils/errorUtils.d.ts.map +1 -0
  1351. package/lib/typescript/utils/hookUtils.d.ts +102 -0
  1352. package/lib/typescript/utils/hookUtils.d.ts.map +1 -0
  1353. package/lib/typescript/utils/index.d.ts +7 -0
  1354. package/lib/typescript/utils/index.d.ts.map +1 -0
  1355. package/lib/typescript/utils/languageUtils.d.ts +38 -0
  1356. package/lib/typescript/utils/languageUtils.d.ts.map +1 -0
  1357. package/lib/typescript/utils/loggerUtils.d.ts +49 -0
  1358. package/lib/typescript/utils/loggerUtils.d.ts.map +1 -0
  1359. package/lib/typescript/utils/requestUtils.d.ts +122 -0
  1360. package/lib/typescript/utils/requestUtils.d.ts.map +1 -0
  1361. package/lib/typescript/utils/sessionUtils.d.ts +55 -0
  1362. package/lib/typescript/utils/sessionUtils.d.ts.map +1 -0
  1363. package/lib/typescript/utils/validationUtils.d.ts +86 -0
  1364. package/lib/typescript/utils/validationUtils.d.ts.map +1 -0
  1365. package/package.json +1 -1
  1366. package/src/ui/context/OxyContext.tsx +1 -0
  1367. package/src/ui/hooks/useSessionSocket.ts +13 -8
@@ -0,0 +1,511 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.KeyManager = void 0;
7
+ var _elliptic = require("elliptic");
8
+ var _reactNative = require("react-native");
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } /**
10
+ * Key Manager - ECDSA secp256k1 Key Generation and Storage
11
+ *
12
+ * Handles secure generation, storage, and retrieval of cryptographic keys.
13
+ * Private keys are stored securely using expo-secure-store and never leave the device.
14
+ */
15
+ // Lazy imports for React Native specific modules
16
+ let SecureStore = null;
17
+ let ExpoCrypto = null;
18
+ const ec = new _elliptic.ec('secp256k1');
19
+ const STORAGE_KEYS = {
20
+ PRIVATE_KEY: 'oxy_identity_private_key',
21
+ PUBLIC_KEY: 'oxy_identity_public_key',
22
+ BACKUP_PRIVATE_KEY: 'oxy_identity_backup_private_key',
23
+ BACKUP_PUBLIC_KEY: 'oxy_identity_backup_public_key',
24
+ BACKUP_TIMESTAMP: 'oxy_identity_backup_timestamp'
25
+ };
26
+
27
+ /**
28
+ * Initialize React Native specific modules
29
+ * This allows the module to work in both Node.js and React Native environments
30
+ */
31
+ async function initSecureStore() {
32
+ if (!SecureStore) {
33
+ try {
34
+ SecureStore = await Promise.resolve().then(() => _interopRequireWildcard(require('expo-secure-store')));
35
+ } catch (error) {
36
+ const errorMessage = error instanceof Error ? error.message : String(error);
37
+ throw new Error(`Failed to load expo-secure-store: ${errorMessage}. Make sure expo-secure-store is installed and properly configured.`);
38
+ }
39
+ }
40
+ if (!SecureStore) {
41
+ throw new Error('expo-secure-store module is not available');
42
+ }
43
+ return SecureStore;
44
+ }
45
+
46
+ /**
47
+ * Check if we're in a React Native environment
48
+ */
49
+ function isReactNative() {
50
+ return typeof navigator !== 'undefined' && navigator.product === 'ReactNative';
51
+ }
52
+
53
+ /**
54
+ * Check if we're in a Node.js environment
55
+ */
56
+ function isNodeJS() {
57
+ return typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
58
+ }
59
+
60
+ /**
61
+ * Check if we're on web platform
62
+ * Identity storage is only available on native platforms (iOS/Android)
63
+ */
64
+ function isWebPlatform() {
65
+ try {
66
+ return _reactNative.Platform.OS === 'web';
67
+ } catch {
68
+ // Fallback if Platform is not available
69
+ return typeof window !== 'undefined' && typeof navigator !== 'undefined' && navigator.product !== 'ReactNative';
70
+ }
71
+ }
72
+ async function initExpoCrypto() {
73
+ if (!ExpoCrypto) {
74
+ ExpoCrypto = await Promise.resolve().then(() => _interopRequireWildcard(require('expo-crypto')));
75
+ }
76
+ return ExpoCrypto;
77
+ }
78
+
79
+ /**
80
+ * Convert Uint8Array to hexadecimal string
81
+ * Works in both Node.js and React Native
82
+ */
83
+ function uint8ArrayToHex(bytes) {
84
+ return Array.from(bytes).map(b => b.toString(16).padStart(2, '0')).join('');
85
+ }
86
+
87
+ /**
88
+ * Generate cryptographically secure random bytes
89
+ */
90
+ async function getSecureRandomBytes(length) {
91
+ // In React Native, always use expo-crypto
92
+ if (isReactNative() || !isNodeJS()) {
93
+ const Crypto = await initExpoCrypto();
94
+ return Crypto.getRandomBytes(length);
95
+ }
96
+
97
+ // In Node.js, use Node's crypto module
98
+ // Use Function constructor to prevent Metro bundler from statically analyzing this require
99
+ // This ensures the require is only evaluated in Node.js runtime, not during Metro bundling
100
+ try {
101
+ // eslint-disable-next-line @typescript-eslint/no-implied-eval
102
+ const getCrypto = new Function('return require("crypto")');
103
+ const crypto = getCrypto();
104
+ return new Uint8Array(crypto.randomBytes(length));
105
+ } catch (error) {
106
+ // Fallback to expo-crypto if Node crypto fails
107
+ const Crypto = await initExpoCrypto();
108
+ return Crypto.getRandomBytes(length);
109
+ }
110
+ }
111
+ class KeyManager {
112
+ // In-memory cache for identity state (invalidated on identity changes)
113
+ static cachedPublicKey = null;
114
+ static cachedHasIdentity = null;
115
+
116
+ /**
117
+ * Invalidate cached identity state
118
+ * Called internally when identity is created/deleted/imported
119
+ */
120
+ static invalidateCache() {
121
+ KeyManager.cachedPublicKey = null;
122
+ KeyManager.cachedHasIdentity = null;
123
+ }
124
+
125
+ /**
126
+ * Generate a new ECDSA secp256k1 key pair
127
+ * Returns the keys in hexadecimal format
128
+ */
129
+ static generateKeyPairSync() {
130
+ const keyPair = ec.genKeyPair();
131
+ return {
132
+ privateKey: keyPair.getPrivate('hex'),
133
+ publicKey: keyPair.getPublic('hex')
134
+ };
135
+ }
136
+
137
+ /**
138
+ * Generate a new key pair using secure random bytes
139
+ */
140
+ static async generateKeyPair() {
141
+ const randomBytes = await getSecureRandomBytes(32);
142
+ const privateKeyHex = uint8ArrayToHex(randomBytes);
143
+ const keyPair = ec.keyFromPrivate(privateKeyHex);
144
+ return {
145
+ privateKey: keyPair.getPrivate('hex'),
146
+ publicKey: keyPair.getPublic('hex')
147
+ };
148
+ }
149
+
150
+ /**
151
+ * Generate and securely store a new key pair on the device
152
+ * Returns only the public key (private key is stored securely)
153
+ */
154
+ static async createIdentity() {
155
+ if (isWebPlatform()) {
156
+ throw new Error('Identity creation is only available on native platforms (iOS/Android). Please use the native app to create your identity.');
157
+ }
158
+ const store = await initSecureStore();
159
+ const {
160
+ privateKey,
161
+ publicKey
162
+ } = await KeyManager.generateKeyPair();
163
+ await store.setItemAsync(STORAGE_KEYS.PRIVATE_KEY, privateKey, {
164
+ keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
165
+ });
166
+ await store.setItemAsync(STORAGE_KEYS.PUBLIC_KEY, publicKey);
167
+
168
+ // Update cache
169
+ KeyManager.cachedPublicKey = publicKey;
170
+ KeyManager.cachedHasIdentity = true;
171
+ return publicKey;
172
+ }
173
+
174
+ /**
175
+ * Import an existing key pair (e.g., from backup file)
176
+ */
177
+ static async importKeyPair(privateKey) {
178
+ if (isWebPlatform()) {
179
+ throw new Error('Identity import is only available on native platforms (iOS/Android). Please use the native app to import your identity.');
180
+ }
181
+ const store = await initSecureStore();
182
+ const keyPair = ec.keyFromPrivate(privateKey);
183
+ const publicKey = keyPair.getPublic('hex');
184
+ await store.setItemAsync(STORAGE_KEYS.PRIVATE_KEY, privateKey, {
185
+ keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
186
+ });
187
+ await store.setItemAsync(STORAGE_KEYS.PUBLIC_KEY, publicKey);
188
+
189
+ // Update cache
190
+ KeyManager.cachedPublicKey = publicKey;
191
+ KeyManager.cachedHasIdentity = true;
192
+ return publicKey;
193
+ }
194
+
195
+ /**
196
+ * Get the stored private key
197
+ * WARNING: Only use this for signing operations within the app
198
+ */
199
+ static async getPrivateKey() {
200
+ if (isWebPlatform()) {
201
+ return null; // Identity storage is only available on native platforms
202
+ }
203
+ try {
204
+ const store = await initSecureStore();
205
+ return await store.getItemAsync(STORAGE_KEYS.PRIVATE_KEY);
206
+ } catch (error) {
207
+ // If secure store is not available, return null (no identity)
208
+ // This allows the app to continue functioning even if secure store fails to load
209
+ if (__DEV__) {
210
+ console.warn('[KeyManager] Failed to access secure store:', error);
211
+ }
212
+ return null;
213
+ }
214
+ }
215
+
216
+ /**
217
+ * Get the stored public key (cached for performance)
218
+ */
219
+ static async getPublicKey() {
220
+ if (isWebPlatform()) {
221
+ return null; // Identity storage is only available on native platforms
222
+ }
223
+ if (KeyManager.cachedPublicKey !== null) {
224
+ return KeyManager.cachedPublicKey;
225
+ }
226
+ try {
227
+ const store = await initSecureStore();
228
+ const publicKey = await store.getItemAsync(STORAGE_KEYS.PUBLIC_KEY);
229
+
230
+ // Cache result (null is a valid cache value meaning no identity)
231
+ KeyManager.cachedPublicKey = publicKey;
232
+ return publicKey;
233
+ } catch (error) {
234
+ // If secure store is not available, return null (no identity)
235
+ // Cache null to avoid repeated failed attempts
236
+ KeyManager.cachedPublicKey = null;
237
+ if (__DEV__) {
238
+ console.warn('[KeyManager] Failed to access secure store:', error);
239
+ }
240
+ return null;
241
+ }
242
+ }
243
+
244
+ /**
245
+ * Check if an identity (key pair) exists on this device (cached for performance)
246
+ */
247
+ static async hasIdentity() {
248
+ if (isWebPlatform()) {
249
+ return false; // Identity storage is only available on native platforms
250
+ }
251
+ if (KeyManager.cachedHasIdentity !== null) {
252
+ return KeyManager.cachedHasIdentity;
253
+ }
254
+ try {
255
+ const privateKey = await KeyManager.getPrivateKey();
256
+ const hasIdentity = privateKey !== null;
257
+
258
+ // Cache result
259
+ KeyManager.cachedHasIdentity = hasIdentity;
260
+ return hasIdentity;
261
+ } catch (error) {
262
+ // If we can't check, assume no identity (safer default)
263
+ // Cache false to avoid repeated failed attempts
264
+ KeyManager.cachedHasIdentity = false;
265
+ if (__DEV__) {
266
+ console.warn('[KeyManager] Failed to check identity:', error);
267
+ }
268
+ return false;
269
+ }
270
+ }
271
+
272
+ /**
273
+ * Delete the stored identity (both keys)
274
+ * Use with EXTREME caution - this is irreversible without a backup file
275
+ * This should ONLY be called when explicitly requested by the user
276
+ * @param skipBackup - If true, skip backup before deletion (default: false)
277
+ * @param force - If true, skip confirmation checks (default: false)
278
+ * @param userConfirmed - If true, user has explicitly confirmed deletion (default: false)
279
+ */
280
+ static async deleteIdentity(skipBackup = false, force = false, userConfirmed = false) {
281
+ if (isWebPlatform()) {
282
+ return; // Identity storage is only available on native platforms, nothing to delete
283
+ }
284
+ // CRITICAL SAFEGUARD: Require explicit user confirmation unless force is true
285
+ if (!force && !userConfirmed) {
286
+ throw new Error('Identity deletion requires explicit user confirmation. This is a safety measure to prevent accidental data loss.');
287
+ }
288
+ if (!force) {
289
+ const hasIdentity = await KeyManager.hasIdentity();
290
+ if (!hasIdentity) {
291
+ return; // Nothing to delete
292
+ }
293
+ }
294
+ const store = await initSecureStore();
295
+
296
+ // ALWAYS create backup before deletion unless explicitly skipped
297
+ if (!skipBackup) {
298
+ try {
299
+ const backupSuccess = await KeyManager.backupIdentity();
300
+ if (!backupSuccess && typeof __DEV__ !== 'undefined' && __DEV__) {
301
+ console.warn('[KeyManager] Failed to backup identity before deletion - proceeding anyway');
302
+ }
303
+ } catch (backupError) {
304
+ if (typeof __DEV__ !== 'undefined' && __DEV__) {
305
+ console.warn('[KeyManager] Failed to backup identity before deletion:', backupError);
306
+ }
307
+ }
308
+ }
309
+ await store.deleteItemAsync(STORAGE_KEYS.PRIVATE_KEY);
310
+ await store.deleteItemAsync(STORAGE_KEYS.PUBLIC_KEY);
311
+
312
+ // Invalidate cache
313
+ KeyManager.invalidateCache();
314
+
315
+ // Also clear backup if force deletion
316
+ if (force) {
317
+ try {
318
+ await store.deleteItemAsync(STORAGE_KEYS.BACKUP_PRIVATE_KEY);
319
+ await store.deleteItemAsync(STORAGE_KEYS.BACKUP_PUBLIC_KEY);
320
+ await store.deleteItemAsync(STORAGE_KEYS.BACKUP_TIMESTAMP);
321
+ } catch (error) {
322
+ // Ignore backup deletion errors
323
+ }
324
+ }
325
+ }
326
+
327
+ /**
328
+ * Backup identity to SecureStore (separate backup storage)
329
+ * This provides a recovery mechanism if primary storage fails
330
+ */
331
+ static async backupIdentity() {
332
+ if (isWebPlatform()) {
333
+ return false; // Identity storage is only available on native platforms
334
+ }
335
+ try {
336
+ const store = await initSecureStore();
337
+ const privateKey = await KeyManager.getPrivateKey();
338
+ const publicKey = await KeyManager.getPublicKey();
339
+ if (!privateKey || !publicKey) {
340
+ return false; // Nothing to backup
341
+ }
342
+
343
+ // Store backup in SecureStore (still secure, but separate from primary storage)
344
+ await store.setItemAsync(STORAGE_KEYS.BACKUP_PRIVATE_KEY, privateKey, {
345
+ keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
346
+ });
347
+ await store.setItemAsync(STORAGE_KEYS.BACKUP_PUBLIC_KEY, publicKey);
348
+ await store.setItemAsync(STORAGE_KEYS.BACKUP_TIMESTAMP, Date.now().toString());
349
+ return true;
350
+ } catch (error) {
351
+ if (typeof __DEV__ !== 'undefined' && __DEV__) {
352
+ console.error('[KeyManager] Failed to backup identity:', error);
353
+ }
354
+ return false;
355
+ }
356
+ }
357
+
358
+ /**
359
+ * Verify identity integrity - checks if keys are valid and accessible
360
+ */
361
+ static async verifyIdentityIntegrity() {
362
+ if (isWebPlatform()) {
363
+ return false; // Identity storage is only available on native platforms
364
+ }
365
+ try {
366
+ const privateKey = await KeyManager.getPrivateKey();
367
+ const publicKey = await KeyManager.getPublicKey();
368
+ if (!privateKey || !publicKey) {
369
+ return false;
370
+ }
371
+
372
+ // Validate private key format
373
+ if (!KeyManager.isValidPrivateKey(privateKey)) {
374
+ return false;
375
+ }
376
+
377
+ // Validate public key format
378
+ if (!KeyManager.isValidPublicKey(publicKey)) {
379
+ return false;
380
+ }
381
+
382
+ // Verify public key can be derived from private key
383
+ const derivedPublicKey = KeyManager.derivePublicKey(privateKey);
384
+ if (derivedPublicKey !== publicKey) {
385
+ return false; // Keys don't match
386
+ }
387
+
388
+ // Verify we can create a key pair object (tests elliptic curve operations)
389
+ const keyPair = await KeyManager.getKeyPairObject();
390
+ if (!keyPair) {
391
+ return false;
392
+ }
393
+ return true;
394
+ } catch (error) {
395
+ if (typeof __DEV__ !== 'undefined' && __DEV__) {
396
+ console.error('[KeyManager] Identity integrity check failed:', error);
397
+ }
398
+ return false;
399
+ }
400
+ }
401
+
402
+ /**
403
+ * Restore identity from backup if primary storage is corrupted
404
+ */
405
+ static async restoreIdentityFromBackup() {
406
+ if (isWebPlatform()) {
407
+ return false; // Identity storage is only available on native platforms
408
+ }
409
+ try {
410
+ const store = await initSecureStore();
411
+
412
+ // Check if backup exists
413
+ const backupPrivateKey = await store.getItemAsync(STORAGE_KEYS.BACKUP_PRIVATE_KEY);
414
+ const backupPublicKey = await store.getItemAsync(STORAGE_KEYS.BACKUP_PUBLIC_KEY);
415
+ if (!backupPrivateKey || !backupPublicKey) {
416
+ return false; // No backup available
417
+ }
418
+
419
+ // Verify backup integrity
420
+ if (!KeyManager.isValidPrivateKey(backupPrivateKey)) {
421
+ return false;
422
+ }
423
+ if (!KeyManager.isValidPublicKey(backupPublicKey)) {
424
+ return false;
425
+ }
426
+
427
+ // Verify keys match
428
+ const derivedPublicKey = KeyManager.derivePublicKey(backupPrivateKey);
429
+ if (derivedPublicKey !== backupPublicKey) {
430
+ return false; // Backup keys don't match
431
+ }
432
+ await store.setItemAsync(STORAGE_KEYS.PRIVATE_KEY, backupPrivateKey, {
433
+ keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
434
+ });
435
+ await store.setItemAsync(STORAGE_KEYS.PUBLIC_KEY, backupPublicKey);
436
+ const restored = await KeyManager.verifyIdentityIntegrity();
437
+ if (restored) {
438
+ // Update cache
439
+ KeyManager.cachedPublicKey = backupPublicKey;
440
+ KeyManager.cachedHasIdentity = true;
441
+ await store.setItemAsync(STORAGE_KEYS.BACKUP_TIMESTAMP, Date.now().toString());
442
+ return true;
443
+ }
444
+ return false;
445
+ } catch (error) {
446
+ if (typeof __DEV__ !== 'undefined' && __DEV__) {
447
+ console.error('[KeyManager] Failed to restore identity from backup:', error);
448
+ }
449
+ return false;
450
+ }
451
+ }
452
+
453
+ /**
454
+ * Get the elliptic curve key object from the stored private key
455
+ * Used internally for signing operations
456
+ */
457
+ static async getKeyPairObject() {
458
+ if (isWebPlatform()) {
459
+ return null; // Identity storage is only available on native platforms
460
+ }
461
+ const privateKey = await KeyManager.getPrivateKey();
462
+ if (!privateKey) return null;
463
+ return ec.keyFromPrivate(privateKey);
464
+ }
465
+
466
+ /**
467
+ * Derive public key from a private key (without storing)
468
+ */
469
+ static derivePublicKey(privateKey) {
470
+ const keyPair = ec.keyFromPrivate(privateKey);
471
+ return keyPair.getPublic('hex');
472
+ }
473
+
474
+ /**
475
+ * Validate that a string is a valid public key
476
+ */
477
+ static isValidPublicKey(publicKey) {
478
+ try {
479
+ ec.keyFromPublic(publicKey, 'hex');
480
+ return true;
481
+ } catch {
482
+ return false;
483
+ }
484
+ }
485
+
486
+ /**
487
+ * Validate that a string is a valid private key
488
+ */
489
+ static isValidPrivateKey(privateKey) {
490
+ try {
491
+ const keyPair = ec.keyFromPrivate(privateKey);
492
+ // Verify it can derive a public key
493
+ keyPair.getPublic('hex');
494
+ return true;
495
+ } catch {
496
+ return false;
497
+ }
498
+ }
499
+
500
+ /**
501
+ * Get a shortened version of the public key for display
502
+ * Format: first 8 chars...last 8 chars
503
+ */
504
+ static shortenPublicKey(publicKey) {
505
+ if (publicKey.length <= 20) return publicKey;
506
+ return `${publicKey.slice(0, 8)}...${publicKey.slice(-8)}`;
507
+ }
508
+ }
509
+ exports.KeyManager = KeyManager;
510
+ var _default = exports.default = KeyManager;
511
+ //# sourceMappingURL=keyManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_elliptic","require","_reactNative","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SecureStore","ExpoCrypto","ec","EC","STORAGE_KEYS","PRIVATE_KEY","PUBLIC_KEY","BACKUP_PRIVATE_KEY","BACKUP_PUBLIC_KEY","BACKUP_TIMESTAMP","initSecureStore","Promise","resolve","then","error","errorMessage","Error","message","String","isReactNative","navigator","product","isNodeJS","process","versions","node","isWebPlatform","Platform","OS","window","initExpoCrypto","uint8ArrayToHex","bytes","Array","from","map","b","toString","padStart","join","getSecureRandomBytes","length","Crypto","getRandomBytes","getCrypto","Function","crypto","Uint8Array","randomBytes","KeyManager","cachedPublicKey","cachedHasIdentity","invalidateCache","generateKeyPairSync","keyPair","genKeyPair","privateKey","getPrivate","publicKey","getPublic","generateKeyPair","privateKeyHex","keyFromPrivate","createIdentity","store","setItemAsync","keychainAccessible","WHEN_UNLOCKED_THIS_DEVICE_ONLY","importKeyPair","getPrivateKey","getItemAsync","__DEV__","console","warn","getPublicKey","hasIdentity","deleteIdentity","skipBackup","force","userConfirmed","backupSuccess","backupIdentity","backupError","deleteItemAsync","Date","now","verifyIdentityIntegrity","isValidPrivateKey","isValidPublicKey","derivedPublicKey","derivePublicKey","getKeyPairObject","restoreIdentityFromBackup","backupPrivateKey","backupPublicKey","restored","keyFromPublic","shortenPublicKey","slice","exports","_default"],"sourceRoot":"../../../src","sources":["crypto/keyManager.ts"],"mappings":";;;;;;AAOA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAAwC,SAAAE,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,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4D,cAAc,CAACN,UAAU,CAAC;MAC7C;MACAF,OAAO,CAACK,SAAS,CAAC,KAAK,CAAC;MACxB,OAAO,IAAI;IACb,CAAC,CAAC,MAAM;MACN,OAAO,KAAK;IACd;EACF;;EAEA;AACF;AACA;AACA;EACE,OAAOsC,gBAAgBA,CAACvC,SAAiB,EAAU;IACjD,IAAIA,SAAS,CAACjB,MAAM,IAAI,EAAE,EAAE,OAAOiB,SAAS;IAC5C,OAAO,GAAGA,SAAS,CAACwC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAMxC,SAAS,CAACwC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;EAC5D;AACF;AAACC,OAAA,CAAAlD,UAAA,GAAAA,UAAA;AAAA,IAAAmD,QAAA,GAAAD,OAAA,CAAA5G,OAAA,GAEc0D,UAAU","ignoreList":[]}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Buffer", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _buffer.Buffer;
10
+ }
11
+ });
12
+ var _buffer = require("buffer");
13
+ /**
14
+ * Crypto Polyfills for React Native
15
+ *
16
+ * This file ensures that required polyfills are available
17
+ * before any crypto operations are performed.
18
+ *
19
+ * Polyfills included:
20
+ * - Buffer: Required by crypto libraries
21
+ * - crypto.getRandomValues: Required for secure random number generation
22
+ */
23
+
24
+ // Import Buffer polyfill for React Native compatibility
25
+ // Some crypto libraries depend on Buffer which isn't available in React Native
26
+
27
+ // Get the global object in a cross-platform way
28
+ const getGlobalObject = () => {
29
+ if (typeof globalThis !== 'undefined') return globalThis;
30
+ if (typeof global !== 'undefined') return global;
31
+ if (typeof window !== 'undefined') return window;
32
+ if (typeof self !== 'undefined') return self;
33
+ return {};
34
+ };
35
+ const globalObject = getGlobalObject();
36
+
37
+ // Make Buffer available globally for libraries that depend on it
38
+ if (!globalObject.Buffer) {
39
+ globalObject.Buffer = _buffer.Buffer;
40
+ }
41
+
42
+ // Polyfill crypto.getRandomValues for React Native
43
+ // This is required by crypto libraries for secure random number generation
44
+
45
+ // Cache for expo-crypto module
46
+ let expoCryptoModule = null;
47
+
48
+ /**
49
+ * Get random bytes using expo-crypto (synchronous)
50
+ * This is a synchronous wrapper that loads expo-crypto lazily
51
+ */
52
+ function getRandomBytesSync(byteCount) {
53
+ if (!expoCryptoModule) {
54
+ // Try to require expo-crypto synchronously
55
+ try {
56
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
57
+ expoCryptoModule = require('expo-crypto');
58
+ } catch {
59
+ throw new Error('expo-crypto is required for crypto.getRandomValues polyfill');
60
+ }
61
+ }
62
+ // TypeScript guard - expoCryptoModule is guaranteed to be non-null here
63
+ const cryptoModule = expoCryptoModule;
64
+ if (!cryptoModule) {
65
+ throw new Error('Failed to load expo-crypto module');
66
+ }
67
+ return cryptoModule.getRandomBytes(byteCount);
68
+ }
69
+ const cryptoPolyfill = {
70
+ getRandomValues(array) {
71
+ const bytes = getRandomBytesSync(array.byteLength);
72
+ const uint8View = new Uint8Array(array.buffer, array.byteOffset, array.byteLength);
73
+ uint8View.set(bytes);
74
+ return array;
75
+ }
76
+ };
77
+
78
+ // Only polyfill if crypto or crypto.getRandomValues is not available
79
+ if (typeof globalObject.crypto === 'undefined') {
80
+ globalObject.crypto = cryptoPolyfill;
81
+ } else if (typeof globalObject.crypto.getRandomValues !== 'function') {
82
+ globalObject.crypto.getRandomValues = cryptoPolyfill.getRandomValues;
83
+ }
84
+
85
+ // Re-export Buffer for convenience
86
+ //# sourceMappingURL=polyfill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_buffer","require","getGlobalObject","globalThis","global","window","self","globalObject","Buffer","expoCryptoModule","getRandomBytesSync","byteCount","Error","cryptoModule","getRandomBytes","cryptoPolyfill","getRandomValues","array","bytes","byteLength","uint8View","Uint8Array","buffer","byteOffset","set","crypto"],"sourceRoot":"../../../src","sources":["crypto/polyfill.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