@oxyhq/services 5.17.17 → 5.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -38
- package/lib/commonjs/core/CrossDomainAuth.js +277 -0
- package/lib/commonjs/core/CrossDomainAuth.js.map +1 -0
- package/lib/commonjs/core/HttpService.js +82 -15
- package/lib/commonjs/core/HttpService.js.map +1 -1
- package/lib/commonjs/core/OxyServices.base.js +11 -3
- package/lib/commonjs/core/OxyServices.base.js.map +1 -1
- package/lib/commonjs/core/OxyServices.js +4 -1
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/core/index.js +30 -0
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +16 -3
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.auth.js +73 -32
- package/lib/commonjs/core/mixins/OxyServices.auth.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.features.js +372 -0
- package/lib/commonjs/core/mixins/OxyServices.features.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.fedcm.js +289 -0
- package/lib/commonjs/core/mixins/OxyServices.fedcm.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.popup.js +352 -0
- package/lib/commonjs/core/mixins/OxyServices.popup.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.redirect.js +378 -0
- package/lib/commonjs/core/mixins/OxyServices.redirect.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.user.js +35 -24
- package/lib/commonjs/core/mixins/OxyServices.user.js.map +1 -1
- package/lib/commonjs/core/mixins/index.js +28 -15
- package/lib/commonjs/core/mixins/index.js.map +1 -1
- package/lib/commonjs/crypto/index.js +30 -0
- package/lib/commonjs/crypto/index.js.map +1 -1
- package/lib/commonjs/crypto/keyManager.js +902 -0
- package/lib/commonjs/crypto/keyManager.js.map +1 -0
- package/lib/commonjs/crypto/polyfill.js +14 -5
- package/lib/commonjs/crypto/polyfill.js.map +1 -1
- package/lib/commonjs/crypto/recoveryPhrase.js +152 -0
- package/lib/commonjs/crypto/recoveryPhrase.js.map +1 -0
- package/lib/commonjs/crypto/signatureService.js +289 -0
- package/lib/commonjs/crypto/signatureService.js.map +1 -0
- package/lib/commonjs/i18n/locales/en-US.json +1 -1
- package/lib/commonjs/index.js +40 -26
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/interfaces.js +0 -15
- package/lib/commonjs/models/interfaces.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +9 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +11 -1
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/Icon.js.map +1 -1
- package/lib/commonjs/ui/components/IconButton/utils.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +41 -11
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/SettingRow.js +17 -4
- package/lib/commonjs/ui/components/SettingRow.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +1 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js +72 -0
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +33 -0
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/constants.js +59 -0
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +262 -0
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/index.js +54 -0
- package/lib/commonjs/ui/components/feedback/index.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/types.js +6 -0
- package/lib/commonjs/ui/components/feedback/types.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js +52 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +282 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/commonjs/ui/components/modals/index.js +14 -0
- package/lib/commonjs/ui/components/modals/index.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +309 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +79 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +108 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +79 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +176 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/constants.js +53 -0
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -0
- package/lib/commonjs/ui/components/payment/index.js +80 -0
- package/lib/commonjs/ui/components/payment/index.js.map +1 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js +409 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/commonjs/ui/components/payment/types.js +6 -0
- package/lib/commonjs/ui/components/payment/types.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +110 -199
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +150 -19
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js +279 -0
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/index.js +26 -0
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +79 -72
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +38 -51
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +3 -3
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +18 -12
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js +95 -0
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js +3 -5
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +4 -8
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +162 -315
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js +126 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/commonjs/ui/hooks/useStorage.js +24 -58
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -1
- package/lib/commonjs/ui/index.js +50 -21
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +6 -1
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +6 -4
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +33 -30
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +29 -24
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +315 -0
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +73 -590
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +8 -7
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +134 -66
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +67 -1395
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +6 -13
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +13 -5
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +16 -10
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +23 -11
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/accountStore.js +2 -4
- package/lib/commonjs/ui/stores/accountStore.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +45 -32
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/styles/spacing.js +54 -2
- package/lib/commonjs/ui/styles/spacing.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +37 -41
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/commonjs/utils/errorUtils.js +13 -0
- package/lib/commonjs/utils/errorUtils.js.map +1 -1
- package/lib/commonjs/utils/validationUtils.js +15 -1
- package/lib/commonjs/utils/validationUtils.js.map +1 -1
- package/lib/module/core/CrossDomainAuth.js +271 -0
- package/lib/module/core/CrossDomainAuth.js.map +1 -0
- package/lib/module/core/HttpService.js +82 -15
- package/lib/module/core/HttpService.js.map +1 -1
- package/lib/module/core/OxyServices.base.js +11 -4
- package/lib/module/core/OxyServices.base.js.map +1 -1
- package/lib/module/core/OxyServices.js +4 -1
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/core/index.js +6 -1
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.assets.js +16 -3
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.auth.js +73 -32
- package/lib/module/core/mixins/OxyServices.auth.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.features.js +369 -0
- package/lib/module/core/mixins/OxyServices.features.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.fedcm.js +286 -0
- package/lib/module/core/mixins/OxyServices.fedcm.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.popup.js +349 -0
- package/lib/module/core/mixins/OxyServices.popup.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.redirect.js +375 -0
- package/lib/module/core/mixins/OxyServices.redirect.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.user.js +35 -24
- package/lib/module/core/mixins/OxyServices.user.js.map +1 -1
- package/lib/module/core/mixins/index.js +16 -3
- package/lib/module/core/mixins/index.js.map +1 -1
- package/lib/module/crypto/index.js +8 -4
- package/lib/module/crypto/index.js.map +1 -1
- package/lib/module/crypto/keyManager.js +899 -0
- package/lib/module/crypto/keyManager.js.map +1 -0
- package/lib/module/crypto/polyfill.js +6 -5
- package/lib/module/crypto/polyfill.js.map +1 -1
- package/lib/module/crypto/recoveryPhrase.js +147 -0
- package/lib/module/crypto/recoveryPhrase.js.map +1 -0
- package/lib/module/crypto/signatureService.js +286 -0
- package/lib/module/crypto/signatureService.js.map +1 -0
- package/lib/module/i18n/locales/en-US.json +1 -1
- package/lib/module/index.js +6 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/interfaces.js +0 -15
- package/lib/module/models/interfaces.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +6 -2
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +11 -1
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/Icon.js.map +1 -1
- package/lib/module/ui/components/IconButton/utils.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +41 -11
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/SettingRow.js +17 -4
- package/lib/module/ui/components/SettingRow.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/module/ui/components/TextField/helpers.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/utils.js.map +1 -1
- package/lib/module/ui/components/Typography/AnimatedText.js.map +1 -1
- package/lib/module/ui/components/feedback/FormInput.js +67 -0
- package/lib/module/ui/components/feedback/FormInput.js.map +1 -0
- package/lib/module/ui/components/feedback/ProgressIndicator.js +28 -0
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +1 -0
- package/lib/module/ui/components/feedback/constants.js +55 -0
- package/lib/module/ui/components/feedback/constants.js.map +1 -0
- package/lib/module/ui/components/feedback/feedbackStyles.js +257 -0
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -0
- package/lib/module/ui/components/feedback/index.js +8 -0
- package/lib/module/ui/components/feedback/index.js.map +1 -0
- package/lib/module/ui/components/feedback/types.js +4 -0
- package/lib/module/ui/components/feedback/types.js.map +1 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js +47 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js +276 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/module/ui/components/modals/index.js +4 -0
- package/lib/module/ui/components/modals/index.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +303 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js +73 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js +102 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +73 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +170 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/module/ui/components/payment/constants.js +47 -0
- package/lib/module/ui/components/payment/constants.js.map +1 -0
- package/lib/module/ui/components/payment/index.js +10 -0
- package/lib/module/ui/components/payment/index.js.map +1 -0
- package/lib/module/ui/components/payment/paymentStyles.js +404 -0
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/module/ui/components/payment/types.js +4 -0
- package/lib/module/ui/components/payment/types.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +112 -191
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +150 -19
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/hooks/useSessionManagement.js +274 -0
- package/lib/module/ui/context/hooks/useSessionManagement.js.map +1 -0
- package/lib/module/ui/hooks/index.js +2 -0
- package/lib/module/ui/hooks/index.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +80 -72
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +31 -44
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +13 -7
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +89 -0
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/module/ui/hooks/useProfileEditing.js +3 -5
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +4 -8
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSessionSocket.js +162 -315
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js +120 -0
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/module/ui/hooks/useStorage.js +25 -59
- package/lib/module/ui/hooks/useStorage.js.map +1 -1
- package/lib/module/ui/index.js +15 -10
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +6 -1
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +6 -4
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +33 -30
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +29 -24
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +3 -3
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +310 -0
- package/lib/module/ui/screens/FAQScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +64 -581
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +8 -7
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +135 -68
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +67 -1397
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +6 -13
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +13 -5
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +16 -10
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +23 -11
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/stores/accountStore.js +2 -4
- package/lib/module/ui/stores/accountStore.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +45 -32
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/styles/spacing.js +6 -2
- package/lib/module/ui/styles/spacing.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +37 -40
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/utils/errorUtils.js +7 -0
- package/lib/module/utils/errorUtils.js.map +1 -1
- package/lib/module/utils/validationUtils.js +13 -0
- package/lib/module/utils/validationUtils.js.map +1 -1
- package/lib/typescript/core/CrossDomainAuth.d.ts +161 -0
- package/lib/typescript/core/CrossDomainAuth.d.ts.map +1 -0
- package/lib/typescript/core/HttpService.d.ts +1 -1
- package/lib/typescript/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/core/OxyServices.base.d.ts +0 -6
- package/lib/typescript/core/OxyServices.base.d.ts.map +1 -1
- package/lib/typescript/core/OxyServices.d.ts +5 -36
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/core/index.d.ts +4 -0
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts +40 -20
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.features.d.ts +229 -0
- package/lib/typescript/core/mixins/OxyServices.features.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.fedcm.d.ts +195 -0
- package/lib/typescript/core/mixins/OxyServices.fedcm.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.popup.d.ts +206 -0
- package/lib/typescript/core/mixins/OxyServices.popup.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.redirect.d.ts +246 -0
- package/lib/typescript/core/mixins/OxyServices.redirect.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.security.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.user.d.ts +6 -4
- package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +1 -1
- package/lib/typescript/core/mixins/index.d.ts +291 -9
- package/lib/typescript/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/crypto/index.d.ts +6 -3
- package/lib/typescript/crypto/index.d.ts.map +1 -1
- package/lib/typescript/crypto/keyManager.d.ts +190 -0
- package/lib/typescript/crypto/keyManager.d.ts.map +1 -0
- package/lib/typescript/crypto/polyfill.d.ts +4 -3
- package/lib/typescript/crypto/polyfill.d.ts.map +1 -1
- package/lib/typescript/crypto/recoveryPhrase.d.ts +59 -0
- package/lib/typescript/crypto/recoveryPhrase.d.ts.map +1 -0
- package/lib/typescript/crypto/signatureService.d.ts +87 -0
- package/lib/typescript/crypto/signatureService.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +5 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/models/interfaces.d.ts +2 -14
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/models/session.d.ts +0 -9
- package/lib/typescript/models/session.d.ts.map +1 -1
- package/lib/typescript/types/bip39.d.ts +32 -0
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts +5 -0
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +5 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/IconButton/utils.d.ts +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/SettingRow.d.ts +6 -0
- package/lib/typescript/ui/components/SettingRow.d.ts.map +1 -1
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts +2 -2
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts +1 -1
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts.map +1 -1
- package/lib/typescript/ui/components/TextField/helpers.d.ts +8 -8
- package/lib/typescript/ui/components/TextField/types.d.ts +1 -0
- package/lib/typescript/ui/components/TextField/types.d.ts.map +1 -1
- package/lib/typescript/ui/components/feedback/FormInput.d.ts +20 -0
- package/lib/typescript/ui/components/feedback/FormInput.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts +11 -0
- package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/constants.d.ts +5 -0
- package/lib/typescript/ui/components/feedback/constants.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts +280 -0
- package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/index.d.ts +7 -0
- package/lib/typescript/ui/components/feedback/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/types.d.ts +46 -0
- package/lib/typescript/ui/components/feedback/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts +9 -0
- package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts +19 -0
- package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/modals/index.d.ts +2 -0
- package/lib/typescript/ui/components/modals/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
- package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts +14 -0
- package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts +16 -0
- package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
- package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
- package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/constants.d.ts +7 -0
- package/lib/typescript/ui/components/payment/constants.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/index.d.ts +9 -0
- package/lib/typescript/ui/components/payment/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/paymentStyles.d.ts +396 -0
- package/lib/typescript/ui/components/payment/paymentStyles.d.ts.map +1 -0
- package/lib/typescript/ui/components/payment/types.d.ts +40 -0
- package/lib/typescript/ui/components/payment/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/types.d.ts +4 -0
- package/lib/typescript/ui/components/types.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +57 -3
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +10 -3
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts +41 -0
- package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/index.d.ts +2 -0
- package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useAsyncAction.d.ts +51 -0
- package/lib/typescript/ui/hooks/useAsyncAction.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts +1 -2
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useSettingToggle.d.ts +55 -0
- package/lib/typescript/ui/hooks/useSettingToggle.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useStorage.d.ts +3 -9
- package/lib/typescript/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/ui/index.d.ts +6 -2
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FAQScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FAQScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +3 -15
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/stores/accountStore.d.ts.map +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts +8 -7
- package/lib/typescript/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/ui/styles/spacing.d.ts +5 -0
- package/lib/typescript/ui/styles/spacing.d.ts.map +1 -1
- package/lib/typescript/ui/types/navigation.d.ts +2 -1
- package/lib/typescript/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/ui/utils/avatarUtils.d.ts +2 -13
- package/lib/typescript/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/ui/utils/storageHelpers.d.ts +0 -3
- package/lib/typescript/ui/utils/storageHelpers.d.ts.map +1 -1
- package/lib/typescript/utils/errorUtils.d.ts +6 -0
- package/lib/typescript/utils/errorUtils.d.ts.map +1 -1
- package/lib/typescript/utils/validationUtils.d.ts +8 -0
- package/lib/typescript/utils/validationUtils.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/core/CrossDomainAuth.ts +307 -0
- package/src/core/HttpService.ts +99 -16
- package/src/core/OxyServices.base.ts +20 -3
- package/src/core/OxyServices.ts +7 -3
- package/src/core/index.ts +9 -1
- package/src/core/mixins/OxyServices.assets.ts +14 -3
- package/src/core/mixins/OxyServices.auth.ts +105 -36
- package/src/core/mixins/OxyServices.features.ts +428 -0
- package/src/core/mixins/OxyServices.fedcm.ts +315 -0
- package/src/core/mixins/OxyServices.popup.ts +402 -0
- package/src/core/mixins/OxyServices.redirect.ts +397 -0
- package/src/core/mixins/OxyServices.user.ts +39 -24
- package/src/core/mixins/index.ts +33 -14
- package/src/crypto/index.ts +16 -5
- package/src/crypto/keyManager.ts +966 -0
- package/src/crypto/polyfill.ts +6 -5
- package/src/crypto/recoveryPhrase.ts +166 -0
- package/src/crypto/signatureService.ts +323 -0
- package/src/i18n/locales/en-US.json +1 -1
- package/src/index.ts +19 -15
- package/src/models/interfaces.ts +4 -16
- package/src/models/session.ts +2 -11
- package/src/types/bip39.d.ts +32 -0
- package/src/ui/components/BottomSheetRouter.tsx +6 -1
- package/src/ui/components/GroupedItem.tsx +19 -1
- package/src/ui/components/Icon.tsx +1 -1
- package/src/ui/components/IconButton/utils.ts +1 -1
- package/src/ui/components/OxyProvider.tsx +44 -12
- package/src/ui/components/SettingRow.tsx +26 -4
- package/src/ui/components/TextField/Addons/Outline.tsx +2 -2
- package/src/ui/components/TextField/Adornment/utils.ts +2 -2
- package/src/ui/components/TextField/helpers.tsx +10 -10
- package/src/ui/components/TextField/types.tsx +1 -1
- package/src/ui/components/TouchableRipple/utils.ts +2 -2
- package/src/ui/components/Typography/AnimatedText.tsx +2 -2
- package/src/ui/components/feedback/FormInput.tsx +84 -0
- package/src/ui/components/feedback/ProgressIndicator.tsx +35 -0
- package/src/ui/components/feedback/constants.ts +22 -0
- package/src/ui/components/feedback/feedbackStyles.ts +247 -0
- package/src/ui/components/feedback/index.ts +6 -0
- package/src/ui/components/feedback/types.ts +52 -0
- package/src/ui/components/feedback/useFeedbackForm.ts +44 -0
- package/src/ui/components/modals/DeleteAccountModal.tsx +294 -0
- package/src/ui/components/modals/index.ts +1 -0
- package/src/ui/components/payment/PaymentDetailsStep.tsx +222 -0
- package/src/ui/components/payment/PaymentMethodStep.tsx +89 -0
- package/src/ui/components/payment/PaymentReviewStep.tsx +126 -0
- package/src/ui/components/payment/PaymentSuccessStep.tsx +71 -0
- package/src/ui/components/payment/PaymentSummaryStep.tsx +159 -0
- package/src/ui/components/payment/constants.ts +39 -0
- package/src/ui/components/payment/index.ts +9 -0
- package/src/ui/components/payment/paymentStyles.ts +397 -0
- package/src/ui/components/payment/types.ts +45 -0
- package/src/ui/components/types.tsx +6 -0
- package/src/ui/context/OxyContext.tsx +173 -195
- package/src/ui/context/hooks/useAuthOperations.ts +177 -36
- package/src/ui/context/hooks/useSessionManagement.ts +399 -0
- package/src/ui/hooks/index.ts +3 -1
- package/src/ui/hooks/mutations/useAccountMutations.ts +83 -76
- package/src/ui/hooks/queries/useAccountQueries.ts +29 -35
- package/src/ui/hooks/queries/useSecurityQueries.ts +1 -1
- package/src/ui/hooks/queries/useServicesQueries.ts +14 -6
- package/src/ui/hooks/useAsyncAction.ts +129 -0
- package/src/ui/hooks/useProfileEditing.ts +3 -3
- package/src/ui/hooks/useSessionManagement.ts +5 -10
- package/src/ui/hooks/useSessionSocket.ts +46 -175
- package/src/ui/hooks/useSettingToggle.ts +147 -0
- package/src/ui/hooks/useStorage.ts +24 -76
- package/src/ui/index.ts +22 -13
- package/src/ui/navigation/routes.ts +8 -2
- package/src/ui/screens/AccountCenterScreen.tsx +4 -4
- package/src/ui/screens/AccountOverviewScreen.tsx +36 -38
- package/src/ui/screens/AccountSettingsScreen.tsx +34 -37
- package/src/ui/screens/AccountSwitcherScreen.tsx +4 -4
- package/src/ui/screens/FAQScreen.tsx +332 -0
- package/src/ui/screens/FeedbackScreen.tsx +91 -626
- package/src/ui/screens/HelpSupportScreen.tsx +7 -5
- package/src/ui/screens/OxyAuthScreen.tsx +138 -64
- package/src/ui/screens/PaymentGatewayScreen.tsx +96 -1275
- package/src/ui/screens/PrivacySettingsScreen.tsx +6 -12
- package/src/ui/screens/ProfileScreen.tsx +11 -6
- package/src/ui/screens/SavesCollectionsScreen.tsx +19 -10
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +10 -10
- package/src/ui/stores/accountStore.ts +1 -11
- package/src/ui/stores/authStore.ts +43 -44
- package/src/ui/styles/spacing.ts +15 -2
- package/src/ui/types/navigation.ts +2 -2
- package/src/ui/utils/avatarUtils.ts +39 -46
- package/src/ui/utils/storageHelpers.ts +0 -4
- package/src/utils/__tests__/validationUtils.test.ts +16 -1
- package/src/utils/errorUtils.ts +8 -1
- package/src/utils/validationUtils.ts +12 -0
- package/lib/commonjs/core/services/SessionService.js +0 -163
- package/lib/commonjs/core/services/SessionService.js.map +0 -1
- package/lib/commonjs/core/services/TokenService.js +0 -220
- package/lib/commonjs/core/services/TokenService.js.map +0 -1
- package/lib/commonjs/crypto/types.js +0 -2
- package/lib/commonjs/crypto/types.js.map +0 -1
- package/lib/commonjs/ui/context/OxyContextBase.js +0 -21
- package/lib/commonjs/ui/context/OxyContextBase.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useStorage.js +0 -79
- package/lib/commonjs/ui/context/hooks/useStorage.js.map +0 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +0 -56
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +0 -1
- package/lib/module/core/services/SessionService.js +0 -159
- package/lib/module/core/services/SessionService.js.map +0 -1
- package/lib/module/core/services/TokenService.js +0 -217
- package/lib/module/core/services/TokenService.js.map +0 -1
- package/lib/module/crypto/types.js +0 -2
- package/lib/module/crypto/types.js.map +0 -1
- package/lib/module/ui/context/OxyContextBase.js +0 -16
- package/lib/module/ui/context/OxyContextBase.js.map +0 -1
- package/lib/module/ui/context/hooks/useStorage.js +0 -74
- package/lib/module/ui/context/hooks/useStorage.js.map +0 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +0 -50
- package/lib/module/ui/hooks/useAvatarPicker.js.map +0 -1
- package/lib/typescript/core/services/SessionService.d.ts +0 -78
- package/lib/typescript/core/services/SessionService.d.ts.map +0 -1
- package/lib/typescript/core/services/TokenService.d.ts +0 -72
- package/lib/typescript/core/services/TokenService.d.ts.map +0 -1
- package/lib/typescript/crypto/types.d.ts +0 -22
- package/lib/typescript/crypto/types.d.ts.map +0 -1
- package/lib/typescript/ui/context/OxyContextBase.d.ts +0 -63
- package/lib/typescript/ui/context/OxyContextBase.d.ts.map +0 -1
- package/lib/typescript/ui/context/hooks/useStorage.d.ts +0 -22
- package/lib/typescript/ui/context/hooks/useStorage.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useAvatarPicker.d.ts +0 -19
- package/lib/typescript/ui/hooks/useAvatarPicker.d.ts.map +0 -1
- package/src/core/services/SessionService.ts +0 -173
- package/src/core/services/TokenService.ts +0 -237
- package/src/crypto/types.ts +0 -23
- package/src/ui/context/OxyContextBase.tsx +0 -78
- package/src/ui/context/hooks/useStorage.ts +0 -104
- package/src/ui/hooks/useAvatarPicker.ts +0 -61
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyServices.privacy.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.privacy.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,eAAe,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAUwY,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;MAF9iH"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import type { OxyServicesBase } from '../OxyServices.base';
|
|
2
|
+
import type { SessionLoginResponse } from '../../models/session';
|
|
3
|
+
export interface RedirectAuthOptions {
|
|
4
|
+
redirectUri?: string;
|
|
5
|
+
mode?: 'login' | 'signup';
|
|
6
|
+
preserveUrl?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Redirect-based Cross-Domain Authentication Mixin
|
|
10
|
+
*
|
|
11
|
+
* Implements traditional OAuth2 redirect flow as a fallback when popup or
|
|
12
|
+
* FedCM are not available or fail (e.g., mobile browsers, popup blockers).
|
|
13
|
+
*
|
|
14
|
+
* Flow:
|
|
15
|
+
* 1. Save current URL
|
|
16
|
+
* 2. Redirect to auth.oxy.so/login
|
|
17
|
+
* 3. User signs in
|
|
18
|
+
* 4. Redirect back with token in URL
|
|
19
|
+
* 5. Extract token, restore session, clean URL
|
|
20
|
+
*
|
|
21
|
+
* Features:
|
|
22
|
+
* - Works on all browsers (including old mobile browsers)
|
|
23
|
+
* - Automatic URL cleanup after auth
|
|
24
|
+
* - State preservation option
|
|
25
|
+
* - CSRF protection via state parameter
|
|
26
|
+
*
|
|
27
|
+
* Trade-offs:
|
|
28
|
+
* - Loses JavaScript app state (full page navigation)
|
|
29
|
+
* - Visible redirect (user sees navigation)
|
|
30
|
+
* - Slower perceived performance
|
|
31
|
+
*/
|
|
32
|
+
export declare function OxyServicesRedirectAuthMixin<T extends typeof OxyServicesBase>(Base: T): {
|
|
33
|
+
new (...args: any[]): {
|
|
34
|
+
/**
|
|
35
|
+
* Sign in using full page redirect
|
|
36
|
+
*
|
|
37
|
+
* Redirects the user to auth.oxy.so for authentication. After successful
|
|
38
|
+
* sign-in, the user will be redirected back to the current page (or custom
|
|
39
|
+
* redirect URI) with authentication tokens in the URL.
|
|
40
|
+
*
|
|
41
|
+
* Call handleAuthCallback() on app startup to complete the flow.
|
|
42
|
+
*
|
|
43
|
+
* @param options - Redirect configuration options
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* // Initiate sign-in
|
|
48
|
+
* const handleSignIn = () => {
|
|
49
|
+
* oxyServices.signInWithRedirect();
|
|
50
|
+
* };
|
|
51
|
+
*
|
|
52
|
+
* // Handle callback on app startup
|
|
53
|
+
* useEffect(() => {
|
|
54
|
+
* const session = oxyServices.handleAuthCallback();
|
|
55
|
+
* if (session) {
|
|
56
|
+
* setUser(session.user);
|
|
57
|
+
* }
|
|
58
|
+
* }, []);
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
signInWithRedirect(options?: RedirectAuthOptions): void;
|
|
62
|
+
/**
|
|
63
|
+
* Sign up using full page redirect
|
|
64
|
+
*
|
|
65
|
+
* Same as signInWithRedirect but opens the signup page by default.
|
|
66
|
+
*/
|
|
67
|
+
signUpWithRedirect(options?: RedirectAuthOptions): void;
|
|
68
|
+
/**
|
|
69
|
+
* Handle authentication callback
|
|
70
|
+
*
|
|
71
|
+
* Call this on app startup to check if the current page load is a
|
|
72
|
+
* redirect back from the authentication server. If it is, this method
|
|
73
|
+
* will extract the tokens, store them, and clean up the URL.
|
|
74
|
+
*
|
|
75
|
+
* @returns Session data if this is a callback, null otherwise
|
|
76
|
+
* @throws {OxyAuthenticationError} If state validation fails (CSRF attack)
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* // In your app's root component or startup logic
|
|
81
|
+
* useEffect(() => {
|
|
82
|
+
* try {
|
|
83
|
+
* const session = oxyServices.handleAuthCallback();
|
|
84
|
+
* if (session) {
|
|
85
|
+
* console.log('Logged in:', session.user);
|
|
86
|
+
* setUser(session.user);
|
|
87
|
+
* } else {
|
|
88
|
+
* // Not a callback, check for existing session
|
|
89
|
+
* const restored = oxyServices.restoreSession();
|
|
90
|
+
* if (!restored) {
|
|
91
|
+
* // No session, show login button
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
* } catch (error) {
|
|
95
|
+
* console.error('Auth callback failed:', error);
|
|
96
|
+
* }
|
|
97
|
+
* }, []);
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
handleAuthCallback(): SessionLoginResponse | null;
|
|
101
|
+
/**
|
|
102
|
+
* Restore session from storage
|
|
103
|
+
*
|
|
104
|
+
* Attempts to restore a previously authenticated session from localStorage.
|
|
105
|
+
* Call this on app startup if handleAuthCallback() returns null.
|
|
106
|
+
*
|
|
107
|
+
* @returns True if session was restored, false otherwise
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* useEffect(() => {
|
|
112
|
+
* const session = oxyServices.handleAuthCallback();
|
|
113
|
+
* if (!session) {
|
|
114
|
+
* const restored = oxyServices.restoreSession();
|
|
115
|
+
* if (!restored) {
|
|
116
|
+
* // No session, user needs to sign in
|
|
117
|
+
* setShowLogin(true);
|
|
118
|
+
* }
|
|
119
|
+
* }
|
|
120
|
+
* }, []);
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
restoreSession(): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Clear stored session
|
|
126
|
+
*
|
|
127
|
+
* Removes all authentication data from storage. Call this on logout.
|
|
128
|
+
*/
|
|
129
|
+
clearStoredSession(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Get stored session ID
|
|
132
|
+
*/
|
|
133
|
+
getStoredSessionId(): string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Build authentication URL with query parameters
|
|
136
|
+
*
|
|
137
|
+
* @private
|
|
138
|
+
*/
|
|
139
|
+
buildAuthUrl(params: {
|
|
140
|
+
mode: string;
|
|
141
|
+
redirectUri: string;
|
|
142
|
+
state: string;
|
|
143
|
+
nonce: string;
|
|
144
|
+
clientId: string;
|
|
145
|
+
}): string;
|
|
146
|
+
/**
|
|
147
|
+
* Store tokens in localStorage
|
|
148
|
+
*
|
|
149
|
+
* @private
|
|
150
|
+
*/
|
|
151
|
+
storeTokens(accessToken: string, sessionId: string): void;
|
|
152
|
+
/**
|
|
153
|
+
* Generate cryptographically secure state for CSRF protection
|
|
154
|
+
*
|
|
155
|
+
* @private
|
|
156
|
+
*/
|
|
157
|
+
generateState(): string;
|
|
158
|
+
/**
|
|
159
|
+
* Generate nonce for replay attack prevention
|
|
160
|
+
*
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
generateNonce(): string;
|
|
164
|
+
/**
|
|
165
|
+
* Store auth state in session storage
|
|
166
|
+
*
|
|
167
|
+
* @private
|
|
168
|
+
*/
|
|
169
|
+
storeAuthState(state: string, nonce: string): void;
|
|
170
|
+
/**
|
|
171
|
+
* Get stored state
|
|
172
|
+
*
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
getStoredState(): string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Clear auth state from storage
|
|
178
|
+
*
|
|
179
|
+
* @private
|
|
180
|
+
*/
|
|
181
|
+
clearAuthState(): void;
|
|
182
|
+
/**
|
|
183
|
+
* Save pre-authentication URL to restore later
|
|
184
|
+
*
|
|
185
|
+
* @private
|
|
186
|
+
*/
|
|
187
|
+
savePreAuthUrl(url: string): void;
|
|
188
|
+
/**
|
|
189
|
+
* Clean authentication parameters from URL
|
|
190
|
+
*
|
|
191
|
+
* @private
|
|
192
|
+
*/
|
|
193
|
+
cleanAuthCallbackUrl(url: URL): void;
|
|
194
|
+
httpService: import("../HttpService").HttpService;
|
|
195
|
+
cloudURL: string;
|
|
196
|
+
config: import("../OxyServices.base").OxyConfig;
|
|
197
|
+
makeRequest<T_1>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T_1>;
|
|
198
|
+
getBaseURL(): string;
|
|
199
|
+
getClient(): import("../HttpService").HttpService;
|
|
200
|
+
getMetrics(): {
|
|
201
|
+
totalRequests: number;
|
|
202
|
+
successfulRequests: number;
|
|
203
|
+
failedRequests: number;
|
|
204
|
+
cacheHits: number;
|
|
205
|
+
cacheMisses: number;
|
|
206
|
+
averageResponseTime: number;
|
|
207
|
+
};
|
|
208
|
+
clearCache(): void;
|
|
209
|
+
clearCacheEntry(key: string): void;
|
|
210
|
+
getCacheStats(): {
|
|
211
|
+
size: number;
|
|
212
|
+
hits: number;
|
|
213
|
+
misses: number;
|
|
214
|
+
hitRate: number;
|
|
215
|
+
};
|
|
216
|
+
getCloudURL(): string;
|
|
217
|
+
setTokens(accessToken: string, refreshToken?: string): void;
|
|
218
|
+
clearTokens(): void;
|
|
219
|
+
getCurrentUserId(): string | null;
|
|
220
|
+
hasValidToken(): boolean;
|
|
221
|
+
getAccessToken(): string | null;
|
|
222
|
+
waitForAuth(timeoutMs?: number): Promise<boolean>;
|
|
223
|
+
withAuthRetry<T_1>(operation: () => Promise<T_1>, operationName: string, options?: {
|
|
224
|
+
maxRetries?: number;
|
|
225
|
+
retryDelay?: number;
|
|
226
|
+
authTimeoutMs?: number;
|
|
227
|
+
}): Promise<T_1>;
|
|
228
|
+
validate(): Promise<boolean>;
|
|
229
|
+
handleError(error: unknown): Error;
|
|
230
|
+
healthCheck(): Promise<{
|
|
231
|
+
status: string;
|
|
232
|
+
users?: number;
|
|
233
|
+
timestamp?: string;
|
|
234
|
+
[key: string]: any;
|
|
235
|
+
}>;
|
|
236
|
+
};
|
|
237
|
+
readonly AUTH_URL: "https://auth.oxy.so";
|
|
238
|
+
readonly TOKEN_STORAGE_KEY: "oxy_access_token";
|
|
239
|
+
readonly SESSION_STORAGE_KEY: "oxy_session_id";
|
|
240
|
+
readonly STATE_STORAGE_KEY: "oxy_auth_state";
|
|
241
|
+
readonly PRE_AUTH_URL_KEY: "oxy_pre_auth_url";
|
|
242
|
+
readonly NONCE_STORAGE_KEY: "oxy_auth_nonce";
|
|
243
|
+
__resetTokensForTests(): void;
|
|
244
|
+
} & T;
|
|
245
|
+
export { OxyServicesRedirectAuthMixin as RedirectAuthMixin };
|
|
246
|
+
//# sourceMappingURL=OxyServices.redirect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OxyServices.redirect.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.redirect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,OAAO,eAAe,EAAE,IAAI,EAAE,CAAC;kBAE7D,GAAG,EAAE;QAU5B;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BG;qCACyB,mBAAmB,GAAQ,IAAI;QA8B3D;;;;WAIG;qCACyB,mBAAmB,GAAQ,IAAI;QAI3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+BG;8BACmB,oBAAoB,GAAG,IAAI;QAoDjD;;;;;;;;;;;;;;;;;;;;;WAqBG;0BACe,OAAO;QAgBzB;;;;WAIG;8BACmB,IAAI;QAU1B;;WAEG;8BACmB,MAAM,GAAG,IAAI;QAQnC;;;;WAIG;6BACyB;YAC1B,IAAI,EAAE,MAAM,CAAC;YACb,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,EAAE,MAAM,CAAC;SAClB,GAAG,MAAM;QAUV;;;;WAIG;iCAC6B,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"OxyServices.security.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.security.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7G,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,OAAO,eAAe,EAAE,IAAI,EAAE,CAAC;kBAEzD,GAAG,EAAE;QAI1B;;;;;;WAMG;oCAEO,MAAM,WACL,MAAM,cACH,iBAAiB,GAC5B,OAAO,CAAC,wBAAwB,CAAC;QAoBpC;;;;WAIG;0CACoC,MAAM,GAAQ,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAShF;;;;WAIG;yCACoC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;QAiB7D;;;;WAIG;oCAC+B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmBkrF,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;MAFx1L"}
|
|
@@ -38,22 +38,22 @@ export declare function OxyServicesUserMixin<T extends typeof OxyServicesBase>(B
|
|
|
38
38
|
getUserById(userId: string): Promise<User>;
|
|
39
39
|
/**
|
|
40
40
|
* Get current user
|
|
41
|
-
* Services never caches profile - always fetch fresh from backend
|
|
42
41
|
*/
|
|
43
42
|
getCurrentUser(): Promise<User>;
|
|
44
43
|
/**
|
|
45
44
|
* Update user profile
|
|
45
|
+
* TanStack Query handles offline queuing automatically
|
|
46
46
|
*/
|
|
47
47
|
updateProfile(updates: Record<string, any>): Promise<User>;
|
|
48
48
|
/**
|
|
49
49
|
* Get privacy settings for a user
|
|
50
|
-
* @param userId - The user ID (
|
|
50
|
+
* @param userId - The user ID (defaults to current user)
|
|
51
51
|
*/
|
|
52
52
|
getPrivacySettings(userId?: string): Promise<any>;
|
|
53
53
|
/**
|
|
54
54
|
* Update privacy settings
|
|
55
55
|
* @param settings - Partial privacy settings object
|
|
56
|
-
* @param userId - The user ID (
|
|
56
|
+
* @param userId - The user ID (defaults to current user)
|
|
57
57
|
*/
|
|
58
58
|
updatePrivacySettings(settings: Record<string, any>, userId?: string): Promise<any>;
|
|
59
59
|
/**
|
|
@@ -174,7 +174,9 @@ export declare function OxyServicesUserMixin<T extends typeof OxyServicesBase>(B
|
|
|
174
174
|
healthCheck(): Promise<{
|
|
175
175
|
status: string;
|
|
176
176
|
users?: number;
|
|
177
|
-
timestamp
|
|
177
|
+
timestamp? /**
|
|
178
|
+
* Get user followers
|
|
179
|
+
*/: string;
|
|
178
180
|
[key: string]: any;
|
|
179
181
|
}>;
|
|
180
182
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyServices.user.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,sBAAsB,EAAkB,MAAM,yBAAyB,CAAC;AAC1G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAA4C,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEvG,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,OAAO,eAAe,EAAE,IAAI,EAAE,CAAC;kBAErD,GAAG,EAAE;QAG1B;;WAEG;uCACkC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"OxyServices.user.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,sBAAsB,EAAkB,MA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AAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAvN3D,CAAR;sBACc,CAAC;yBACK,CAAC;;;;;;iBAsGQ,CAAC;qBAO1B,CAHH,CAAG;;eAEG;;;;;MAiHN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyServices.utility.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.utility.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAQ,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAW3D,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,eAAe,EAAE,IAAI,EAAE,CAAC;kBAExD,GAAG,EAAE;QAG1B;;WAEG;+BAC0B,MAAM,GAAG,OAAO,CAAC;YAC5C,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QAgBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4BG;uBACW;YACZ,KAAK,CAAC,EAAE,OAAO,CAAC;YAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,GAAG,CAAC;YACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB,IAIS,KAAK,GAAG,EAAE,KAAK,GAAG,EAAE,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"OxyServices.utility.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.utility.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAQ,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAW3D,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,eAAe,EAAE,IAAI,EAAE,CAAC;kBAExD,GAAG,EAAE;QAG1B;;WAEG;+BAC0B,MAAM,GAAG,OAAO,CAAC;YAC5C,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QAgBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4BG;uBACW;YACZ,KAAK,CAAC,EAAE,OAAO,CAAC;YAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,GAAG,CAAC;YACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB,IAIS,KAAK,GAAG,EAAE,KAAK,GAAG,EAAE,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAkGjC,CAAV;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAOo6F,CAAC;qBAAwB,CAAC;;;;;MAFt/F"}
|
|
@@ -11,6 +11,11 @@ import { OxyServicesBase } from '../OxyServices.base';
|
|
|
11
11
|
* Order matters for mixins - dependencies should be applied first.
|
|
12
12
|
* This function ensures consistent composition across the codebase.
|
|
13
13
|
*
|
|
14
|
+
* New cross-domain auth mixins added:
|
|
15
|
+
* - FedCM: Modern browser-native identity federation (Google-style)
|
|
16
|
+
* - Popup: OAuth2-style popup authentication
|
|
17
|
+
* - Redirect: Traditional redirect-based authentication
|
|
18
|
+
*
|
|
14
19
|
* @returns The fully composed OxyServices class with all mixins applied
|
|
15
20
|
*/
|
|
16
21
|
export declare function composeOxyServices(): {
|
|
@@ -26,7 +31,77 @@ export declare function composeOxyServices(): {
|
|
|
26
31
|
onError?: ((error: import("..").ApiError) => any) | undefined;
|
|
27
32
|
loadUser?: boolean;
|
|
28
33
|
session?: boolean;
|
|
29
|
-
}): (req: any, res: any,
|
|
34
|
+
}): (req: any, res: any, // Base authentication mixin
|
|
35
|
+
next: any) => any;
|
|
36
|
+
httpService: import("../HttpService").HttpService;
|
|
37
|
+
cloudURL: string;
|
|
38
|
+
config: import("../OxyServices.base").OxyConfig;
|
|
39
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
40
|
+
getBaseURL(): string;
|
|
41
|
+
getClient(): import("../HttpService").HttpService;
|
|
42
|
+
getMetrics(): {
|
|
43
|
+
totalRequests: number;
|
|
44
|
+
successfulRequests: number;
|
|
45
|
+
failedRequests: number;
|
|
46
|
+
cacheHits: number;
|
|
47
|
+
cacheMisses: number;
|
|
48
|
+
averageResponseTime: number;
|
|
49
|
+
};
|
|
50
|
+
clearCache(): void;
|
|
51
|
+
clearCacheEntry(key: string): void;
|
|
52
|
+
getCacheStats(): {
|
|
53
|
+
size: number;
|
|
54
|
+
hits: number;
|
|
55
|
+
misses: number;
|
|
56
|
+
hitRate: number;
|
|
57
|
+
};
|
|
58
|
+
getCloudURL(): string;
|
|
59
|
+
setTokens(accessToken: string, refreshToken?: string): void;
|
|
60
|
+
clearTokens(): void;
|
|
61
|
+
getCurrentUserId(): string | null;
|
|
62
|
+
hasValidToken(): boolean;
|
|
63
|
+
getAccessToken(): string | null;
|
|
64
|
+
waitForAuth(timeoutMs?: number): Promise<boolean>;
|
|
65
|
+
withAuthRetry<T>(operation: () => Promise<T>, operationName: string, options?: {
|
|
66
|
+
maxRetries?: number;
|
|
67
|
+
retryDelay?: number;
|
|
68
|
+
authTimeoutMs?: number;
|
|
69
|
+
}): Promise<T>;
|
|
70
|
+
validate(): Promise<boolean>;
|
|
71
|
+
handleError(error: unknown): Error;
|
|
72
|
+
healthCheck(): Promise<{
|
|
73
|
+
status: string;
|
|
74
|
+
users?: number;
|
|
75
|
+
timestamp?: string;
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
79
|
+
__resetTokensForTests(): void;
|
|
80
|
+
} & {
|
|
81
|
+
new (...args: any[]): {
|
|
82
|
+
submitFeedback(payload: import("./OxyServices.features").FeedbackPayload): Promise<import("./OxyServices.features").FeedbackResult>;
|
|
83
|
+
getSubscriptionPlans(): Promise<import("./OxyServices.features").SubscriptionPlan[]>;
|
|
84
|
+
getIndividualFeatures(): Promise<any[]>;
|
|
85
|
+
subscribe(planId: string, paymentMethodId?: string): Promise<import("./OxyServices.features").SubscriptionResult>;
|
|
86
|
+
subscribeToFeature(featureId: string, paymentMethodId?: string): Promise<import("./OxyServices.features").SubscriptionResult>;
|
|
87
|
+
cancelSubscription(subscriptionId: string): Promise<void>;
|
|
88
|
+
reactivateSubscription(subscriptionId: string): Promise<void>;
|
|
89
|
+
getCurrentSubscription(): Promise<import("./OxyServices.features").SubscriptionResult | null>;
|
|
90
|
+
getSavedItems(userId?: string): Promise<import("./OxyServices.features").SavedItem[]>;
|
|
91
|
+
getCollections(userId?: string): Promise<import("./OxyServices.features").Collection[]>;
|
|
92
|
+
saveItem(itemId: string, itemType: string, collectionId?: string): Promise<import("./OxyServices.features").SavedItem>;
|
|
93
|
+
removeSavedItem(saveId: string): Promise<void>;
|
|
94
|
+
createCollection(name: string, description?: string): Promise<import("./OxyServices.features").Collection>;
|
|
95
|
+
deleteCollection(collectionId: string): Promise<void>;
|
|
96
|
+
getUserStats(userId: string): Promise<import("./OxyServices.features").UserStats>;
|
|
97
|
+
getUserHistory(userId?: string, limit?: number, offset?: number): Promise<import("./OxyServices.features").HistoryItem[]>;
|
|
98
|
+
clearUserHistory(): Promise<void>;
|
|
99
|
+
deleteHistoryItem(itemId: string): Promise<void>;
|
|
100
|
+
getFAQs(category?: string): Promise<import("./OxyServices.features").FAQ[]>;
|
|
101
|
+
searchFAQs(query: string): Promise<import("./OxyServices.features").FAQ[]>;
|
|
102
|
+
getUserAchievements(userId?: string): Promise<import("./OxyServices.features").Achievement[]>;
|
|
103
|
+
getAllAchievements(): Promise<import("./OxyServices.features").Achievement[]>;
|
|
104
|
+
deleteAccount(password: string): Promise<void>;
|
|
30
105
|
httpService: import("../HttpService").HttpService;
|
|
31
106
|
cloudURL: string;
|
|
32
107
|
config: import("../OxyServices.base").OxyConfig;
|
|
@@ -756,12 +831,219 @@ export declare function composeOxyServices(): {
|
|
|
756
831
|
__resetTokensForTests(): void;
|
|
757
832
|
} & {
|
|
758
833
|
new (...args: any[]): {
|
|
759
|
-
|
|
760
|
-
|
|
834
|
+
signInWithRedirect(options?: import("./OxyServices.redirect").RedirectAuthOptions): void;
|
|
835
|
+
signUpWithRedirect(options?: import("./OxyServices.redirect").RedirectAuthOptions): void;
|
|
836
|
+
handleAuthCallback(): import("..").SessionLoginResponse | null;
|
|
837
|
+
restoreSession(): boolean;
|
|
838
|
+
clearStoredSession(): void;
|
|
839
|
+
getStoredSessionId(): string | null;
|
|
840
|
+
buildAuthUrl(params: {
|
|
841
|
+
mode: string;
|
|
842
|
+
redirectUri: string;
|
|
843
|
+
state: string;
|
|
844
|
+
nonce: string;
|
|
845
|
+
clientId: string;
|
|
846
|
+
}): string;
|
|
847
|
+
storeTokens(accessToken: string, sessionId: string): void;
|
|
848
|
+
generateState(): string;
|
|
849
|
+
generateNonce(): string;
|
|
850
|
+
storeAuthState(state: string, nonce: string): void;
|
|
851
|
+
getStoredState(): string | null;
|
|
852
|
+
clearAuthState(): void;
|
|
853
|
+
savePreAuthUrl(url: string): void;
|
|
854
|
+
cleanAuthCallbackUrl(url: URL): void;
|
|
855
|
+
httpService: import("../HttpService").HttpService;
|
|
856
|
+
cloudURL: string;
|
|
857
|
+
config: import("../OxyServices.base").OxyConfig;
|
|
858
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
859
|
+
getBaseURL(): string;
|
|
860
|
+
getClient(): import("../HttpService").HttpService;
|
|
861
|
+
getMetrics(): {
|
|
862
|
+
totalRequests: number;
|
|
863
|
+
successfulRequests: number;
|
|
864
|
+
failedRequests: number;
|
|
865
|
+
cacheHits: number;
|
|
866
|
+
cacheMisses: number;
|
|
867
|
+
averageResponseTime: number;
|
|
868
|
+
};
|
|
869
|
+
clearCache(): void;
|
|
870
|
+
clearCacheEntry(key: string): void;
|
|
871
|
+
getCacheStats(): {
|
|
872
|
+
size: number;
|
|
873
|
+
hits: number;
|
|
874
|
+
misses: number;
|
|
875
|
+
hitRate: number;
|
|
876
|
+
};
|
|
877
|
+
getCloudURL(): string;
|
|
878
|
+
setTokens(accessToken: string, refreshToken?: string): void;
|
|
879
|
+
clearTokens(): void;
|
|
880
|
+
getCurrentUserId(): string | null;
|
|
881
|
+
hasValidToken(): boolean;
|
|
882
|
+
getAccessToken(): string | null;
|
|
883
|
+
waitForAuth(timeoutMs?: number): Promise<boolean>;
|
|
884
|
+
withAuthRetry<T>(operation: () => Promise<T>, operationName: string, options?: {
|
|
885
|
+
maxRetries?: number;
|
|
886
|
+
retryDelay?: number;
|
|
887
|
+
authTimeoutMs?: number;
|
|
888
|
+
}): Promise<T>;
|
|
889
|
+
validate(): Promise<boolean>;
|
|
890
|
+
handleError(error: unknown): Error;
|
|
891
|
+
healthCheck(): Promise<{
|
|
892
|
+
status: string;
|
|
893
|
+
users?: number;
|
|
894
|
+
timestamp?: string;
|
|
895
|
+
[key: string]: any;
|
|
896
|
+
}>;
|
|
897
|
+
};
|
|
898
|
+
readonly AUTH_URL: "https://auth.oxy.so";
|
|
899
|
+
readonly TOKEN_STORAGE_KEY: "oxy_access_token";
|
|
900
|
+
readonly SESSION_STORAGE_KEY: "oxy_session_id";
|
|
901
|
+
readonly STATE_STORAGE_KEY: "oxy_auth_state";
|
|
902
|
+
readonly PRE_AUTH_URL_KEY: "oxy_pre_auth_url";
|
|
903
|
+
readonly NONCE_STORAGE_KEY: "oxy_auth_nonce";
|
|
904
|
+
__resetTokensForTests(): void;
|
|
905
|
+
} & {
|
|
906
|
+
new (...args: any[]): {
|
|
907
|
+
signInWithPopup(options?: import("./OxyServices.popup").PopupAuthOptions): Promise<import("..").SessionLoginResponse>;
|
|
908
|
+
signUpWithPopup(options?: import("./OxyServices.popup").PopupAuthOptions): Promise<import("..").SessionLoginResponse>;
|
|
909
|
+
silentSignIn(options?: import("./OxyServices.popup").SilentAuthOptions): Promise<import("..").SessionLoginResponse | null>;
|
|
910
|
+
openCenteredPopup(url: string, title: string, width: number, height: number): Window | null;
|
|
911
|
+
waitForPopupAuth(popup: Window, expectedState: string, timeout: number): Promise<import("..").SessionLoginResponse>;
|
|
912
|
+
waitForIframeAuth(iframe: HTMLIFrameElement, timeout: number, expectedOrigin: string): Promise<import("..").SessionLoginResponse | null>;
|
|
913
|
+
buildAuthUrl(params: {
|
|
914
|
+
mode: string;
|
|
915
|
+
state: string;
|
|
916
|
+
nonce: string;
|
|
917
|
+
clientId: string;
|
|
918
|
+
redirectUri: string;
|
|
919
|
+
}): string;
|
|
920
|
+
generateState(): string;
|
|
921
|
+
generateNonce(): string;
|
|
922
|
+
storeAuthState(state: string, nonce: string): void;
|
|
923
|
+
clearAuthState(state: string): void;
|
|
924
|
+
httpService: import("../HttpService").HttpService;
|
|
925
|
+
cloudURL: string;
|
|
926
|
+
config: import("../OxyServices.base").OxyConfig;
|
|
927
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
928
|
+
getBaseURL(): string;
|
|
929
|
+
getClient(): import("../HttpService").HttpService;
|
|
930
|
+
getMetrics(): {
|
|
931
|
+
totalRequests: number;
|
|
932
|
+
successfulRequests: number;
|
|
933
|
+
failedRequests: number;
|
|
934
|
+
cacheHits: number;
|
|
935
|
+
cacheMisses: number;
|
|
936
|
+
averageResponseTime: number;
|
|
937
|
+
};
|
|
938
|
+
clearCache(): void;
|
|
939
|
+
clearCacheEntry(key: string): void;
|
|
940
|
+
getCacheStats(): {
|
|
941
|
+
size: number;
|
|
942
|
+
hits: number;
|
|
943
|
+
misses: number;
|
|
944
|
+
hitRate: number;
|
|
945
|
+
};
|
|
946
|
+
getCloudURL(): string;
|
|
947
|
+
setTokens(accessToken: string, refreshToken?: string): void;
|
|
948
|
+
clearTokens(): void;
|
|
949
|
+
getCurrentUserId(): string | null;
|
|
950
|
+
hasValidToken(): boolean;
|
|
951
|
+
getAccessToken(): string | null;
|
|
952
|
+
waitForAuth(timeoutMs?: number): Promise<boolean>;
|
|
953
|
+
withAuthRetry<T>(operation: () => Promise<T>, operationName: string, options?: {
|
|
954
|
+
maxRetries?: number;
|
|
955
|
+
retryDelay?: number;
|
|
956
|
+
authTimeoutMs?: number;
|
|
957
|
+
}): Promise<T>;
|
|
958
|
+
validate(): Promise<boolean>;
|
|
959
|
+
handleError(error: unknown): Error;
|
|
960
|
+
healthCheck(): Promise<{
|
|
961
|
+
status: string;
|
|
962
|
+
users?: number;
|
|
963
|
+
timestamp?: string;
|
|
964
|
+
[key: string]: any;
|
|
965
|
+
}>;
|
|
966
|
+
};
|
|
967
|
+
readonly AUTH_URL: "https://auth.oxy.so";
|
|
968
|
+
readonly POPUP_WIDTH: 500;
|
|
969
|
+
readonly POPUP_HEIGHT: 700;
|
|
970
|
+
readonly POPUP_TIMEOUT: 60000;
|
|
971
|
+
readonly SILENT_TIMEOUT: 5000;
|
|
972
|
+
__resetTokensForTests(): void;
|
|
973
|
+
} & {
|
|
974
|
+
new (...args: any[]): {
|
|
975
|
+
isFedCMSupported(): boolean;
|
|
976
|
+
signInWithFedCM(options?: import("./OxyServices.fedcm").FedCMAuthOptions): Promise<import("..").SessionLoginResponse>;
|
|
977
|
+
silentSignInWithFedCM(): Promise<import("..").SessionLoginResponse | null>;
|
|
978
|
+
requestIdentityCredential(options: {
|
|
979
|
+
configURL: string;
|
|
980
|
+
clientId: string;
|
|
981
|
+
nonce: string;
|
|
982
|
+
context?: string;
|
|
983
|
+
mediation?: "silent" | "optional" | "required";
|
|
984
|
+
}): Promise<{
|
|
985
|
+
token: string;
|
|
986
|
+
} | null>;
|
|
987
|
+
exchangeIdTokenForSession(idToken: string): Promise<import("..").SessionLoginResponse>;
|
|
988
|
+
revokeFedCMCredential(): Promise<void>;
|
|
989
|
+
getFedCMConfig(): import("./OxyServices.fedcm").FedCMConfig;
|
|
990
|
+
generateNonce(): string;
|
|
991
|
+
getClientId(): string;
|
|
992
|
+
httpService: import("../HttpService").HttpService;
|
|
993
|
+
cloudURL: string;
|
|
994
|
+
config: import("../OxyServices.base").OxyConfig;
|
|
995
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
996
|
+
getBaseURL(): string;
|
|
997
|
+
getClient(): import("../HttpService").HttpService;
|
|
998
|
+
getMetrics(): {
|
|
999
|
+
totalRequests: number;
|
|
1000
|
+
successfulRequests: number;
|
|
1001
|
+
failedRequests: number;
|
|
1002
|
+
cacheHits: number;
|
|
1003
|
+
cacheMisses: number;
|
|
1004
|
+
averageResponseTime: number;
|
|
1005
|
+
};
|
|
1006
|
+
clearCache(): void;
|
|
1007
|
+
clearCacheEntry(key: string): void;
|
|
1008
|
+
getCacheStats(): {
|
|
1009
|
+
size: number;
|
|
1010
|
+
hits: number;
|
|
1011
|
+
misses: number;
|
|
1012
|
+
hitRate: number;
|
|
1013
|
+
};
|
|
1014
|
+
getCloudURL(): string;
|
|
1015
|
+
setTokens(accessToken: string, refreshToken?: string): void;
|
|
1016
|
+
clearTokens(): void;
|
|
1017
|
+
getCurrentUserId(): string | null;
|
|
1018
|
+
hasValidToken(): boolean;
|
|
1019
|
+
getAccessToken(): string | null;
|
|
1020
|
+
waitForAuth(timeoutMs?: number): Promise<boolean>;
|
|
1021
|
+
withAuthRetry<T>(operation: () => Promise<T>, operationName: string, options?: {
|
|
1022
|
+
maxRetries?: number;
|
|
1023
|
+
retryDelay?: number;
|
|
1024
|
+
authTimeoutMs?: number;
|
|
1025
|
+
}): Promise<T>;
|
|
1026
|
+
validate(): Promise<boolean>;
|
|
1027
|
+
handleError(error: unknown): Error;
|
|
1028
|
+
healthCheck(): Promise<{
|
|
1029
|
+
status: string;
|
|
1030
|
+
users?: number;
|
|
1031
|
+
timestamp?: string;
|
|
1032
|
+
[key: string]: any;
|
|
1033
|
+
}>;
|
|
1034
|
+
};
|
|
1035
|
+
readonly DEFAULT_CONFIG_URL: "https://auth.oxy.so/fedcm.json";
|
|
1036
|
+
readonly FEDCM_TIMEOUT: 60000;
|
|
1037
|
+
isFedCMSupported(): boolean;
|
|
1038
|
+
__resetTokensForTests(): void;
|
|
1039
|
+
} & {
|
|
1040
|
+
new (...args: any[]): {
|
|
1041
|
+
register(publicKey: string, signature: string, timestamp: number): Promise<{
|
|
1042
|
+
message: string;
|
|
761
1043
|
user: import("..").User;
|
|
762
1044
|
}>;
|
|
763
|
-
requestChallenge(
|
|
764
|
-
verifyChallenge(
|
|
1045
|
+
requestChallenge(publicKey: string): Promise<import("./OxyServices.auth").ChallengeResponse>;
|
|
1046
|
+
verifyChallenge(publicKey: string, challenge: string, signature: string, timestamp: number, deviceName?: string, deviceFingerprint?: string): Promise<import("..").SessionLoginResponse>;
|
|
765
1047
|
checkPublicKeyRegistered(publicKey: string): Promise<import("./OxyServices.auth").PublicKeyCheckResponse>;
|
|
766
1048
|
getUserByPublicKey(publicKey: string): Promise<import("..").User>;
|
|
767
1049
|
getUserBySession(sessionId: string): Promise<import("..").User>;
|
|
@@ -769,12 +1051,9 @@ export declare function composeOxyServices(): {
|
|
|
769
1051
|
sessionId: string;
|
|
770
1052
|
user: import("..").User | null;
|
|
771
1053
|
}[]>;
|
|
772
|
-
getTokenBySession(sessionId: string
|
|
1054
|
+
getTokenBySession(sessionId: string): Promise<{
|
|
773
1055
|
accessToken: string;
|
|
774
|
-
refreshToken: string;
|
|
775
1056
|
expiresAt: string;
|
|
776
|
-
sessionId: string;
|
|
777
|
-
deviceId: string;
|
|
778
1057
|
}>;
|
|
779
1058
|
getSessionsBySessionId(sessionId: string): Promise<any[]>;
|
|
780
1059
|
logoutSession(sessionId: string, targetSessionId?: string): Promise<void>;
|
|
@@ -798,6 +1077,9 @@ export declare function composeOxyServices(): {
|
|
|
798
1077
|
available: boolean;
|
|
799
1078
|
message: string;
|
|
800
1079
|
}>;
|
|
1080
|
+
signUp(username: string, email: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<import("..").SessionLoginResponse>;
|
|
1081
|
+
signIn(identifier: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<import("..").SessionLoginResponse>;
|
|
1082
|
+
signInWithEmail(email: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<import("..").SessionLoginResponse>;
|
|
801
1083
|
httpService: import("../HttpService").HttpService;
|
|
802
1084
|
cloudURL: string;
|
|
803
1085
|
config: import("../OxyServices.base").OxyConfig;
|