@oxy.so/services 14.24.3 → 15.0.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 +7 -6
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -14
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +5 -14
- package/lib/commonjs/index.js +80 -211
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +3 -2
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/client.js +31 -95
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js +14 -2
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js.map +1 -1
- package/lib/commonjs/ui/components/AccountLanguageBoundary.js +1 -1
- package/lib/commonjs/ui/components/AccountLanguageBoundary.js.map +1 -1
- package/lib/commonjs/ui/components/AvatarCameraBadge.js +10 -4
- package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -1
- package/lib/commonjs/ui/components/BenefitList.js +0 -4
- package/lib/commonjs/ui/components/BenefitList.js.map +1 -1
- package/lib/commonjs/ui/components/DisplayCurrencySelector.js +2 -2
- package/lib/commonjs/ui/components/DisplayCurrencySelector.js.map +1 -1
- package/lib/commonjs/ui/components/ExpoImage.macos.js +2 -6
- package/lib/commonjs/ui/components/ExpoImage.macos.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +10 -14
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js +4 -4
- package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +9 -13
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthPrompt.js +5 -4
- package/lib/commonjs/ui/components/OxyAuthPrompt.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +64 -142
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -9
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +4 -7
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js +2 -9
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +2 -2
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js +12 -2
- package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
- package/lib/commonjs/ui/components/accountSettings/AccountSettings.js +110 -66
- package/lib/commonjs/ui/components/accountSettings/AccountSettings.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +88 -22
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js +33 -13
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +61 -16
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +174 -45
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +93 -16
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +29 -6
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +78 -84
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js +32 -41
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +93 -91
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js +35 -32
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +33 -44
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/components/setupFlow/OxySetupFlow.js +44 -13
- package/lib/commonjs/ui/components/setupFlow/OxySetupFlow.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +14 -6
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js +104 -26
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +3 -8
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyEmailAccountChoice.js +68 -17
- package/lib/commonjs/ui/components/signIn/OxyEmailAccountChoice.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyEmailPanel.js +7 -11
- package/lib/commonjs/ui/components/signIn/OxyEmailPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +3 -8
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +15 -12
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInSecurityPanel.js +5 -5
- package/lib/commonjs/ui/components/signIn/OxySignInSecurityPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/SessionsSection.js +55 -30
- package/lib/commonjs/ui/components/signIn/SessionsSection.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/accountSecurityState.js +4 -4
- package/lib/commonjs/ui/components/signIn/accountSecurityState.js.map +1 -1
- package/lib/commonjs/ui/components/supervision/PersonPicker.js +7 -14
- package/lib/commonjs/ui/components/supervision/PersonPicker.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +61 -118
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/OxyHostedContext.js +41 -60
- package/lib/commonjs/ui/context/OxyHostedContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +1 -3
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/data/account.js +570 -0
- package/lib/commonjs/ui/data/account.js.map +1 -0
- package/lib/commonjs/ui/data/accountData.js +75 -0
- package/lib/commonjs/ui/data/accountData.js.map +1 -0
- package/lib/commonjs/ui/data/answer.js +65 -0
- package/lib/commonjs/ui/data/answer.js.map +1 -0
- package/lib/commonjs/ui/data/assets.js +194 -0
- package/lib/commonjs/ui/data/assets.js.map +1 -0
- package/lib/commonjs/ui/data/deviceStorage.js +158 -0
- package/lib/commonjs/ui/data/deviceStorage.js.map +1 -0
- package/lib/commonjs/ui/data/displayRates.js +40 -0
- package/lib/commonjs/ui/data/displayRates.js.map +1 -0
- package/lib/commonjs/ui/data/domains.js +52 -0
- package/lib/commonjs/ui/data/domains.js.map +1 -0
- package/lib/commonjs/ui/data/files.js +399 -0
- package/lib/commonjs/ui/data/files.js.map +1 -0
- package/lib/commonjs/ui/data/follow.js +616 -0
- package/lib/commonjs/ui/data/follow.js.map +1 -0
- package/lib/commonjs/ui/data/organizations.js +205 -0
- package/lib/commonjs/ui/data/organizations.js.map +1 -0
- package/lib/commonjs/ui/data/payments.js +83 -0
- package/lib/commonjs/ui/data/payments.js.map +1 -0
- package/lib/commonjs/ui/data/persister.js +17 -0
- package/lib/commonjs/ui/data/persister.js.map +1 -0
- package/lib/commonjs/ui/data/persister.native.js +24 -0
- package/lib/commonjs/ui/data/persister.native.js.map +1 -0
- package/lib/commonjs/ui/data/readOptions.js +57 -0
- package/lib/commonjs/ui/data/readOptions.js.map +1 -0
- package/lib/commonjs/ui/data/security.js +122 -0
- package/lib/commonjs/ui/data/security.js.map +1 -0
- package/lib/commonjs/ui/data/sessions.js +252 -0
- package/lib/commonjs/ui/data/sessions.js.map +1 -0
- package/lib/commonjs/ui/data/supervision.js +106 -0
- package/lib/commonjs/ui/data/supervision.js.map +1 -0
- package/lib/commonjs/ui/data/trust.js +70 -0
- package/lib/commonjs/ui/data/trust.js.map +1 -0
- package/lib/commonjs/ui/data/user.js +103 -0
- package/lib/commonjs/ui/data/user.js.map +1 -0
- package/lib/commonjs/ui/{hooks/queries/userCache.js → data/userRecord.js} +31 -144
- package/lib/commonjs/ui/data/userRecord.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +118 -657
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +45 -155
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +84 -243
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +13 -28
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +97 -159
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +33 -108
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js +6 -18
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +12 -59
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +18 -108
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSupervision.js +26 -36
- package/lib/commonjs/ui/hooks/queries/useSupervision.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAccountColor.js +3 -3
- package/lib/commonjs/ui/hooks/useAccountColor.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAccountTheme.js +45 -55
- package/lib/commonjs/ui/hooks/useAccountTheme.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js +86 -76
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +9 -8
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js +24 -44
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDisplayPrice.js +19 -16
- package/lib/commonjs/ui/hooks/useDisplayPrice.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +156 -245
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollowTarget.js +53 -105
- package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/commonjs/ui/hooks/useMutationStatus.js +12 -68
- package/lib/commonjs/ui/hooks/useMutationStatus.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOnlineStatus.js +7 -11
- package/lib/commonjs/ui/hooks/useOnlineStatus.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js +3 -3
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +15 -70
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +8 -74
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -9
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/index.js +3 -9
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +39 -17
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/commonjs/ui/runtime/activeRuntime.js +35 -0
- package/lib/commonjs/ui/runtime/activeRuntime.js.map +1 -0
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +0 -3
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +242 -194
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +71 -11
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +8 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +37 -74
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +13 -2
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +42 -16
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +60 -12
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js +84 -65
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +25 -4
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +8 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +178 -97
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileTrashScreen.js +67 -33
- package/lib/commonjs/ui/screens/FileTrashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +7 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +14 -2
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +26 -7
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +40 -7
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +7 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +34 -7
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +9 -3
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +23 -4
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +11 -5
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +39 -48
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileLinkForm.js +19 -3
- package/lib/commonjs/ui/screens/ProfileLinkForm.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +68 -69
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ReportBugScreen.js +14 -2
- package/lib/commonjs/ui/screens/ReportBugScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +12 -5
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInSecurityScreen.js +7 -1
- package/lib/commonjs/ui/screens/SignInSecurityScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SupervisionScreen.js +50 -118
- package/lib/commonjs/ui/screens/SupervisionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +55 -14
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +16 -8
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +25 -7
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +51 -15
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +103 -15
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +28 -5
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +14 -13
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +47 -9
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +61 -30
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +26 -4
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +55 -14
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +118 -42
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +25 -12
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +1 -4
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/utils/netConnectivity.js +9 -17
- package/lib/commonjs/ui/utils/netConnectivity.js.map +1 -1
- package/lib/commonjs/ui/utils/storageHelpers.js +6 -72
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +5 -14
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +5 -14
- package/lib/module/index.js +23 -36
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +4 -3
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/client.js +12 -12
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/AccountInvitationAcceptance.js +14 -2
- package/lib/module/ui/components/AccountInvitationAcceptance.js.map +1 -1
- package/lib/module/ui/components/AccountLanguageBoundary.js +1 -1
- package/lib/module/ui/components/AccountLanguageBoundary.js.map +1 -1
- package/lib/module/ui/components/AvatarCameraBadge.js +10 -3
- package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -1
- package/lib/module/ui/components/BenefitList.js +0 -4
- package/lib/module/ui/components/BenefitList.js.map +1 -1
- package/lib/module/ui/components/DisplayCurrencySelector.js +2 -2
- package/lib/module/ui/components/DisplayCurrencySelector.js.map +1 -1
- package/lib/module/ui/components/ExpoImage.macos.js +2 -6
- package/lib/module/ui/components/ExpoImage.macos.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +10 -14
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FollowTargetButton.js +4 -4
- package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +9 -13
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyAuthPrompt.js +5 -4
- package/lib/module/ui/components/OxyAuthPrompt.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +65 -143
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +2 -9
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +1 -4
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js +2 -9
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +2 -2
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js +13 -3
- package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
- package/lib/module/ui/components/accountSettings/AccountSettings.js +111 -66
- package/lib/module/ui/components/accountSettings/AccountSettings.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +78 -12
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js +34 -13
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +62 -16
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +175 -45
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +94 -16
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +30 -6
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js +79 -85
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js +32 -41
- package/lib/module/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +94 -92
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js +36 -33
- package/lib/module/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +33 -44
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/components/setupFlow/OxySetupFlow.js +40 -9
- package/lib/module/ui/components/setupFlow/OxySetupFlow.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +14 -5
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js +98 -21
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +3 -8
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +2 -2
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyEmailAccountChoice.js +64 -12
- package/lib/module/ui/components/signIn/OxyEmailAccountChoice.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyEmailPanel.js +7 -11
- package/lib/module/ui/components/signIn/OxyEmailPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +2 -2
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js +3 -8
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js +16 -13
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInSecurityPanel.js +5 -5
- package/lib/module/ui/components/signIn/OxySignInSecurityPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/SessionsSection.js +55 -30
- package/lib/module/ui/components/signIn/SessionsSection.js.map +1 -1
- package/lib/module/ui/components/signIn/accountSecurityState.js +4 -4
- package/lib/module/ui/components/signIn/accountSecurityState.js.map +1 -1
- package/lib/module/ui/components/supervision/PersonPicker.js +7 -14
- package/lib/module/ui/components/supervision/PersonPicker.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +62 -119
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/OxyHostedContext.js +41 -60
- package/lib/module/ui/context/OxyHostedContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +1 -3
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/data/account.js +563 -0
- package/lib/module/ui/data/account.js.map +1 -0
- package/lib/module/ui/data/accountData.js +69 -0
- package/lib/module/ui/data/accountData.js.map +1 -0
- package/lib/module/ui/data/answer.js +59 -0
- package/lib/module/ui/data/answer.js.map +1 -0
- package/lib/module/ui/data/assets.js +176 -0
- package/lib/module/ui/data/assets.js.map +1 -0
- package/lib/module/ui/data/deviceStorage.js +152 -0
- package/lib/module/ui/data/deviceStorage.js.map +1 -0
- package/lib/module/ui/data/displayRates.js +36 -0
- package/lib/module/ui/data/displayRates.js.map +1 -0
- package/lib/module/ui/data/domains.js +47 -0
- package/lib/module/ui/data/domains.js.map +1 -0
- package/lib/module/ui/data/files.js +380 -0
- package/lib/module/ui/data/files.js.map +1 -0
- package/lib/module/ui/data/follow.js +585 -0
- package/lib/module/ui/data/follow.js.map +1 -0
- package/lib/module/ui/data/organizations.js +198 -0
- package/lib/module/ui/data/organizations.js.map +1 -0
- package/lib/module/ui/data/payments.js +78 -0
- package/lib/module/ui/data/payments.js.map +1 -0
- package/lib/module/ui/data/persister.js +14 -0
- package/lib/module/ui/data/persister.js.map +1 -0
- package/lib/module/ui/data/persister.native.js +20 -0
- package/lib/module/ui/data/persister.native.js.map +1 -0
- package/lib/module/ui/data/readOptions.js +51 -0
- package/lib/module/ui/data/readOptions.js.map +1 -0
- package/lib/module/ui/data/security.js +117 -0
- package/lib/module/ui/data/security.js.map +1 -0
- package/lib/module/ui/data/sessions.js +247 -0
- package/lib/module/ui/data/sessions.js.map +1 -0
- package/lib/module/ui/data/supervision.js +103 -0
- package/lib/module/ui/data/supervision.js.map +1 -0
- package/lib/module/ui/data/trust.js +66 -0
- package/lib/module/ui/data/trust.js.map +1 -0
- package/lib/module/ui/data/user.js +96 -0
- package/lib/module/ui/data/user.js.map +1 -0
- package/lib/module/ui/{hooks/queries/userCache.js → data/userRecord.js} +31 -146
- package/lib/module/ui/data/userRecord.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +116 -654
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +45 -155
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +80 -238
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js +13 -28
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +93 -149
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +34 -108
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js +6 -18
- package/lib/module/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +13 -59
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +18 -108
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSupervision.js +26 -34
- package/lib/module/ui/hooks/queries/useSupervision.js.map +1 -1
- package/lib/module/ui/hooks/useAccountColor.js +3 -3
- package/lib/module/ui/hooks/useAccountColor.js.map +1 -1
- package/lib/module/ui/hooks/useAccountTheme.js +45 -55
- package/lib/module/ui/hooks/useAccountTheme.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js +87 -77
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +9 -8
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useDisplayCurrency.js +25 -45
- package/lib/module/ui/hooks/useDisplayCurrency.js.map +1 -1
- package/lib/module/ui/hooks/useDisplayPrice.js +20 -17
- package/lib/module/ui/hooks/useDisplayPrice.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +153 -243
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js +50 -103
- package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/module/ui/hooks/useMutationStatus.js +13 -69
- package/lib/module/ui/hooks/useMutationStatus.js.map +1 -1
- package/lib/module/ui/hooks/useOnlineStatus.js +7 -11
- package/lib/module/ui/hooks/useOnlineStatus.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js +3 -3
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useResolvedFileUrls.js +15 -69
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +9 -75
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/icons/subsetGlyphMaps.js +0 -9
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/index.js +2 -8
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/surfaceNavStack.js +38 -17
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/module/ui/runtime/activeRuntime.js +30 -0
- package/lib/module/ui/runtime/activeRuntime.js.map +1 -0
- package/lib/module/ui/runtime/createOxyRuntime.js +0 -3
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +244 -195
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +73 -12
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +9 -2
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +37 -74
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js +14 -3
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +43 -16
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +61 -12
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/DomainsScreen.js +85 -65
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +26 -5
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +9 -2
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +178 -97
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FileTrashScreen.js +69 -35
- package/lib/module/ui/screens/FileTrashScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +8 -2
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +15 -2
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +27 -7
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +41 -7
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +8 -2
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +35 -7
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +10 -4
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +25 -5
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +12 -6
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +41 -49
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileLinkForm.js +20 -4
- package/lib/module/ui/screens/ProfileLinkForm.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +70 -70
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/ReportBugScreen.js +14 -2
- package/lib/module/ui/screens/ReportBugScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +13 -6
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInSecurityScreen.js +8 -2
- package/lib/module/ui/screens/SignInSecurityScreen.js.map +1 -1
- package/lib/module/ui/screens/SupervisionScreen.js +51 -119
- package/lib/module/ui/screens/SupervisionScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +57 -15
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +18 -9
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js +26 -8
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +52 -16
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +104 -16
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js +29 -6
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +14 -13
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +49 -10
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +62 -30
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +26 -4
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +57 -15
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +120 -43
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +26 -12
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js +0 -3
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/utils/netConnectivity.js +9 -16
- package/lib/module/ui/utils/netConnectivity.js.map +1 -1
- package/lib/module/ui/utils/storageHelpers.js +5 -70
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +16 -14
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +11 -10
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AccountInvitationAcceptance.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BenefitList.d.ts +0 -2
- package/lib/typescript/commonjs/ui/components/BenefitList.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ExpoImage.macos.d.ts +1 -3
- package/lib/typescript/commonjs/ui/components/ExpoImage.macos.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +1 -7
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/accountSettings/AccountSettings.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/accountSettings/AccountSettings.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileAppAccessSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/organizations/OrganizationClaimReview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/organizations/OrganizationClaims.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/organizations/OrganizationDirectorySearch.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/organizations/OrganizationSettings.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/setupFlow/OxySetupFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts +9 -5
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyEmailAccountChoice.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyEmailPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/SessionsSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/accountSecurityState.d.ts +3 -3
- package/lib/typescript/commonjs/ui/components/signIn/accountSecurityState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/supervision/PersonPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyHostedContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +1 -2
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +0 -9
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/data/account.d.ts +261 -0
- package/lib/typescript/commonjs/ui/data/account.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/accountData.d.ts +24 -0
- package/lib/typescript/commonjs/ui/data/accountData.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/answer.d.ts +43 -0
- package/lib/typescript/commonjs/ui/data/answer.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/assets.d.ts +49 -0
- package/lib/typescript/commonjs/ui/data/assets.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/deviceStorage.d.ts +41 -0
- package/lib/typescript/commonjs/ui/data/deviceStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/displayRates.d.ts +14 -0
- package/lib/typescript/commonjs/ui/data/displayRates.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/domains.d.ts +23 -0
- package/lib/typescript/commonjs/ui/data/domains.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/files.d.ts +216 -0
- package/lib/typescript/commonjs/ui/data/files.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/follow.d.ts +135 -0
- package/lib/typescript/commonjs/ui/data/follow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/organizations.d.ts +157 -0
- package/lib/typescript/commonjs/ui/data/organizations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/payments.d.ts +85 -0
- package/lib/typescript/commonjs/ui/data/payments.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/persister.d.ts +9 -0
- package/lib/typescript/commonjs/ui/data/persister.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/persister.native.d.ts +13 -0
- package/lib/typescript/commonjs/ui/data/persister.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/readOptions.d.ts +22 -0
- package/lib/typescript/commonjs/ui/data/readOptions.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/security.d.ts +27 -0
- package/lib/typescript/commonjs/ui/data/security.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/sessions.d.ts +40 -0
- package/lib/typescript/commonjs/ui/data/sessions.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/supervision.d.ts +133 -0
- package/lib/typescript/commonjs/ui/data/supervision.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/trust.d.ts +22 -0
- package/lib/typescript/commonjs/ui/data/trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/data/user.d.ts +21 -0
- package/lib/typescript/commonjs/ui/data/user.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/{hooks/queries/userCache.d.ts → data/userRecord.d.ts} +47 -52
- package/lib/typescript/commonjs/ui/data/userRecord.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +34 -304
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +13 -23
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +45 -57
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +12 -185
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +43 -65
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +13 -45
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts +6 -6
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +13 -11
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +18 -23
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSupervision.d.ts +37 -482
- package/lib/typescript/commonjs/ui/hooks/queries/useSupervision.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAccountTheme.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/useAccountTheme.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +2 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +3 -4
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDisplayCurrency.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useDisplayCurrency.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDisplayPrice.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +23 -83
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.types.d.ts +2 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollowTarget.d.ts +11 -3
- package/lib/typescript/commonjs/ui/hooks/useFollowTarget.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts +8 -10
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts +4 -4
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +18 -20
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +6 -13
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -9
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +2 -4
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +13 -4
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/activeRuntime.d.ts +9 -0
- package/lib/typescript/commonjs/ui/runtime/activeRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +0 -3
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileTrashScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ReportBugScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SupervisionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +0 -1
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +0 -13
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts +8 -9
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +3 -4
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +16 -14
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +11 -10
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AccountInvitationAcceptance.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BenefitList.d.ts +0 -2
- package/lib/typescript/module/ui/components/BenefitList.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ExpoImage.macos.d.ts +1 -3
- package/lib/typescript/module/ui/components/ExpoImage.macos.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts +1 -1
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +1 -7
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/accountSettings/AccountSettings.d.ts +2 -2
- package/lib/typescript/module/ui/components/accountSettings/AccountSettings.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileAppAccessSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/organizations/OrganizationClaimReview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/organizations/OrganizationClaims.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/organizations/OrganizationDirectorySearch.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/organizations/OrganizationSettings.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/setupFlow/OxySetupFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts +9 -5
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyEmailAccountChoice.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyEmailPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/SessionsSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/accountSecurityState.d.ts +3 -3
- package/lib/typescript/module/ui/components/signIn/accountSecurityState.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/supervision/PersonPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyHostedContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +1 -2
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +0 -9
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/data/account.d.ts +261 -0
- package/lib/typescript/module/ui/data/account.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/accountData.d.ts +24 -0
- package/lib/typescript/module/ui/data/accountData.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/answer.d.ts +43 -0
- package/lib/typescript/module/ui/data/answer.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/assets.d.ts +49 -0
- package/lib/typescript/module/ui/data/assets.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/deviceStorage.d.ts +41 -0
- package/lib/typescript/module/ui/data/deviceStorage.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/displayRates.d.ts +14 -0
- package/lib/typescript/module/ui/data/displayRates.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/domains.d.ts +23 -0
- package/lib/typescript/module/ui/data/domains.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/files.d.ts +216 -0
- package/lib/typescript/module/ui/data/files.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/follow.d.ts +135 -0
- package/lib/typescript/module/ui/data/follow.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/organizations.d.ts +157 -0
- package/lib/typescript/module/ui/data/organizations.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/payments.d.ts +85 -0
- package/lib/typescript/module/ui/data/payments.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/persister.d.ts +9 -0
- package/lib/typescript/module/ui/data/persister.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/persister.native.d.ts +13 -0
- package/lib/typescript/module/ui/data/persister.native.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/readOptions.d.ts +22 -0
- package/lib/typescript/module/ui/data/readOptions.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/security.d.ts +27 -0
- package/lib/typescript/module/ui/data/security.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/sessions.d.ts +40 -0
- package/lib/typescript/module/ui/data/sessions.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/supervision.d.ts +133 -0
- package/lib/typescript/module/ui/data/supervision.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/trust.d.ts +22 -0
- package/lib/typescript/module/ui/data/trust.d.ts.map +1 -0
- package/lib/typescript/module/ui/data/user.d.ts +21 -0
- package/lib/typescript/module/ui/data/user.d.ts.map +1 -0
- package/lib/typescript/module/ui/{hooks/queries/userCache.d.ts → data/userRecord.d.ts} +47 -52
- package/lib/typescript/module/ui/data/userRecord.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +34 -304
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +13 -23
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +45 -57
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +12 -185
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +43 -65
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +13 -45
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts +6 -6
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +13 -11
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +18 -23
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSupervision.d.ts +37 -482
- package/lib/typescript/module/ui/hooks/queries/useSupervision.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAccountTheme.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/useAccountTheme.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +2 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +3 -4
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDisplayCurrency.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useDisplayCurrency.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDisplayPrice.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollow.d.ts +23 -83
- package/lib/typescript/module/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollow.types.d.ts +2 -1
- package/lib/typescript/module/ui/hooks/useFollow.types.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollowTarget.d.ts +11 -3
- package/lib/typescript/module/ui/hooks/useFollowTarget.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts +8 -10
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts +4 -4
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +18 -20
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +6 -13
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -9
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +2 -4
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +13 -4
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/activeRuntime.d.ts +9 -0
- package/lib/typescript/module/ui/runtime/activeRuntime.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +0 -3
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileTrashScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ReportBugScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SupervisionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +0 -1
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +0 -13
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts +8 -9
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts +3 -4
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -1
- package/lib/typescript/types/react-native-web-style.d.ts +1 -1
- package/package.json +31 -45
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/manifest.json +5 -14
- package/src/index.ts +26 -70
- package/src/types/react-native-web-style.d.ts +1 -1
- package/src/ui/boot/runProviderColdBoot.ts +4 -3
- package/src/ui/client.ts +13 -31
- package/src/ui/components/AccountInvitationAcceptance.tsx +9 -2
- package/src/ui/components/AccountLanguageBoundary.tsx +4 -4
- package/src/ui/components/AvatarCameraBadge.tsx +8 -3
- package/src/ui/components/BenefitList.tsx +0 -6
- package/src/ui/components/DisplayCurrencySelector.tsx +2 -2
- package/src/ui/components/ExpoImage.macos.tsx +1 -3
- package/src/ui/components/FollowButton.tsx +10 -22
- package/src/ui/components/FollowTargetButton.tsx +13 -5
- package/src/ui/components/OxyAuthChooser.tsx +9 -13
- package/src/ui/components/OxyAuthPrompt.tsx +3 -4
- package/src/ui/components/OxyProvider.tsx +72 -164
- package/src/ui/components/OxySignInButton.tsx +2 -5
- package/src/ui/components/ProfileButton.tsx +1 -11
- package/src/ui/components/RequireOxyAuth.tsx +3 -8
- package/src/ui/components/SurfaceScreen.tsx +2 -3
- package/src/ui/components/__tests__/AccountLanguageBoundary.test.tsx +11 -11
- package/src/ui/components/__tests__/followTargetButton.test.ts +1 -1
- package/src/ui/components/accountSettings/AccountCategoriesSection.tsx +8 -3
- package/src/ui/components/accountSettings/AccountSettings.tsx +121 -83
- package/src/ui/components/accountSettings/__tests__/AccountSettings.test.tsx +4 -4
- package/src/ui/components/authChooser/AccountsMenuView.tsx +53 -16
- package/src/ui/components/fileManagement/FileAppAccessSection.tsx +20 -17
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +55 -32
- package/src/ui/components/fileManagement/FileViewer.tsx +117 -60
- package/src/ui/components/fileManagement/UploadPreview.tsx +46 -23
- package/src/ui/components/modals/DeleteAccountModal.tsx +13 -4
- package/src/ui/components/organizations/OrganizationClaimReview.tsx +110 -88
- package/src/ui/components/organizations/OrganizationClaims.tsx +46 -43
- package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +114 -102
- package/src/ui/components/organizations/OrganizationSettings.tsx +33 -29
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +29 -51
- package/src/ui/components/setupFlow/OxySetupFlow.tsx +23 -9
- package/src/ui/components/signIn/OxyAccountPicker.tsx +17 -4
- package/src/ui/components/signIn/OxyAuthScreen.tsx +65 -22
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +3 -7
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +2 -2
- package/src/ui/components/signIn/OxyEmailAccountChoice.tsx +28 -17
- package/src/ui/components/signIn/OxyEmailPanel.tsx +7 -7
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +2 -2
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +3 -7
- package/src/ui/components/signIn/OxySignInPanel.tsx +18 -13
- package/src/ui/components/signIn/OxySignInSecurityPanel.tsx +5 -5
- package/src/ui/components/signIn/SessionsSection.tsx +64 -38
- package/src/ui/components/signIn/accountSecurityState.tsx +6 -6
- package/src/ui/components/supervision/PersonPicker.tsx +10 -12
- package/src/ui/context/OxyContext.tsx +66 -138
- package/src/ui/context/OxyHostedContext.tsx +40 -67
- package/src/ui/context/hooks/useAuthOperations.ts +0 -4
- package/src/ui/context/oxyContextTypes.ts +0 -9
- package/src/ui/data/__tests__/accountData.test.tsx +50 -0
- package/src/ui/data/__tests__/assets.test.ts +63 -0
- package/src/ui/data/__tests__/deviceStorage.test.ts +72 -0
- package/src/ui/data/__tests__/files.test.ts +91 -0
- package/src/ui/data/__tests__/follow.test.ts +310 -0
- package/src/ui/data/__tests__/security.test.tsx +147 -0
- package/src/ui/data/__tests__/sessions.test.tsx +349 -0
- package/src/ui/data/__tests__/storeUsers.test.ts +187 -0
- package/src/ui/{hooks/queries/__tests__/userCacheClear.test.ts → data/__tests__/storeUsersClear.test.ts} +55 -110
- package/src/ui/data/__tests__/trust.test.tsx +69 -0
- package/src/ui/data/__tests__/user.test.ts +143 -0
- package/src/ui/data/account.ts +654 -0
- package/src/ui/data/accountData.ts +80 -0
- package/src/ui/data/answer.ts +79 -0
- package/src/ui/data/assets.ts +181 -0
- package/src/ui/data/deviceStorage.ts +152 -0
- package/src/ui/data/displayRates.ts +31 -0
- package/src/ui/data/domains.ts +45 -0
- package/src/ui/data/files.ts +461 -0
- package/src/ui/data/follow.ts +629 -0
- package/src/ui/data/organizations.ts +191 -0
- package/src/ui/data/payments.ts +96 -0
- package/src/ui/data/persister.native.ts +21 -0
- package/src/ui/data/persister.ts +12 -0
- package/src/ui/data/readOptions.ts +52 -0
- package/src/ui/data/security.ts +106 -0
- package/src/ui/data/sessions.ts +258 -0
- package/src/ui/data/supervision.ts +105 -0
- package/src/ui/data/trust.ts +75 -0
- package/src/ui/data/user.ts +103 -0
- package/src/ui/{hooks/queries/userCache.ts → data/userRecord.ts} +33 -164
- package/src/ui/hooks/mutations/useAccountMutations.ts +146 -714
- package/src/ui/hooks/mutations/useServicesMutations.ts +103 -155
- package/src/ui/hooks/queries/__tests__/useSupervision.test.tsx +57 -22
- package/src/ui/hooks/queries/useAccountQueries.ts +149 -253
- package/src/ui/hooks/queries/useAuthMethods.ts +32 -29
- package/src/ui/hooks/queries/useFileQueries.ts +113 -207
- package/src/ui/hooks/queries/usePaymentQueries.ts +34 -97
- package/src/ui/hooks/queries/usePersonalPlans.ts +11 -20
- package/src/ui/hooks/queries/useSecurityQueries.ts +34 -69
- package/src/ui/hooks/queries/useServicesQueries.ts +73 -126
- package/src/ui/hooks/queries/useSupervision.ts +30 -34
- package/src/ui/hooks/useAccountColor.ts +3 -3
- package/src/ui/hooks/useAccountTheme.ts +37 -54
- package/src/ui/hooks/useAssets.ts +145 -91
- package/src/ui/hooks/useAvatarPicker.ts +7 -13
- package/src/ui/hooks/useDisplayCurrency.ts +30 -48
- package/src/ui/hooks/useDisplayPrice.ts +16 -13
- package/src/ui/hooks/useFollow.ts +210 -332
- package/src/ui/hooks/useFollow.types.ts +4 -3
- package/src/ui/hooks/useFollowTarget.ts +87 -130
- package/src/ui/hooks/useMutationStatus.ts +20 -94
- package/src/ui/hooks/useOnlineStatus.ts +7 -11
- package/src/ui/hooks/useProfileEditing.ts +3 -3
- package/src/ui/hooks/useResolvedFileUrls.ts +19 -82
- package/src/ui/hooks/useSessionManagement.ts +8 -93
- package/src/ui/icons/subsetGlyphMaps.ts +0 -9
- package/src/ui/index.ts +2 -8
- package/src/ui/navigation/__tests__/bottomSheetManager.test.ts +1 -1
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +16 -16
- package/src/ui/navigation/surfaceNavStack.ts +52 -23
- package/src/ui/runtime/activeRuntime.ts +29 -0
- package/src/ui/runtime/createOxyRuntime.ts +1 -13
- package/src/ui/screens/AccountMembersScreen.tsx +196 -209
- package/src/ui/screens/AccountVerificationScreen.tsx +46 -11
- package/src/ui/screens/AppInfoScreen.tsx +6 -2
- package/src/ui/screens/AvatarCropScreen.tsx +39 -71
- package/src/ui/screens/ChangeAvatarScreen.tsx +8 -3
- package/src/ui/screens/ConnectedAppsScreen.tsx +30 -16
- package/src/ui/screens/CreateAccountScreen.tsx +38 -14
- package/src/ui/screens/DomainsScreen.tsx +94 -62
- package/src/ui/screens/EditProfileFieldScreen.tsx +12 -5
- package/src/ui/screens/EditProfileScreen.tsx +6 -2
- package/src/ui/screens/FileManagementScreen.tsx +130 -122
- package/src/ui/screens/FileTrashScreen.tsx +42 -40
- package/src/ui/screens/HelpSupportScreen.tsx +6 -2
- package/src/ui/screens/HistoryViewScreen.tsx +9 -4
- package/src/ui/screens/LanguageSelectorScreen.tsx +22 -9
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +24 -10
- package/src/ui/screens/LegalDocumentsScreen.tsx +6 -2
- package/src/ui/screens/ManageAccountScreen.tsx +18 -9
- package/src/ui/screens/NotificationsScreen.tsx +8 -4
- package/src/ui/screens/PaymentGatewayScreen.tsx +20 -4
- package/src/ui/screens/PreferencesScreen.tsx +10 -6
- package/src/ui/screens/PrivacySettingsScreen.tsx +32 -61
- package/src/ui/screens/ProfileLinkForm.tsx +10 -4
- package/src/ui/screens/ProfileScreen.tsx +48 -65
- package/src/ui/screens/ReportBugScreen.tsx +9 -2
- package/src/ui/screens/SearchSettingsScreen.tsx +12 -5
- package/src/ui/screens/SignInSecurityScreen.tsx +6 -2
- package/src/ui/screens/SupervisionScreen.tsx +106 -142
- package/src/ui/screens/UserListScreen.tsx +24 -10
- package/src/ui/screens/WelcomeNewUserScreen.tsx +12 -11
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +10 -14
- package/src/ui/screens/fileManagement/FileListSection.tsx +24 -15
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +68 -24
- package/src/ui/screens/fileManagement/UploadBar.tsx +17 -12
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +17 -15
- package/src/ui/screens/trust/TrustAboutScreen.tsx +26 -9
- package/src/ui/screens/trust/TrustCenterScreen.tsx +46 -36
- package/src/ui/screens/trust/TrustFAQScreen.tsx +13 -4
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +25 -13
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +72 -46
- package/src/ui/screens/trust/TrustRulesScreen.tsx +23 -16
- package/src/ui/server.ts +0 -3
- package/src/ui/types/navigation.ts +0 -13
- package/src/ui/utils/netConnectivity.ts +9 -18
- package/src/ui/utils/storageHelpers.ts +6 -76
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js +0 -249
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +0 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +0 -183
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +0 -1
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +0 -44
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +0 -1
- package/lib/commonjs/ui/hooks/persistedQueryCache.js +0 -219
- package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +0 -249
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/userCacheRelationship.js +0 -31
- package/lib/commonjs/ui/hooks/queries/userCacheRelationship.js.map +0 -1
- package/lib/commonjs/ui/hooks/queryClient.js +0 -216
- package/lib/commonjs/ui/hooks/queryClient.js.map +0 -1
- package/lib/commonjs/ui/hooks/useQueryClient.js +0 -20
- package/lib/commonjs/ui/hooks/useQueryClient.js.map +0 -1
- package/lib/commonjs/ui/stores/assetStore.js +0 -252
- package/lib/commonjs/ui/stores/assetStore.js.map +0 -1
- package/lib/commonjs/ui/stores/authStore.js +0 -169
- package/lib/commonjs/ui/stores/authStore.js.map +0 -1
- package/lib/commonjs/ui/stores/followStore.js +0 -566
- package/lib/commonjs/ui/stores/followStore.js.map +0 -1
- package/lib/commonjs/ui/stores/followTargetStore.js +0 -162
- package/lib/commonjs/ui/stores/followTargetStore.js.map +0 -1
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js +0 -21
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js.map +0 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +0 -43
- package/lib/commonjs/ui/utils/avatarUtils.js.map +0 -1
- package/lib/commonjs/ui/utils/persistedDataVersion.js +0 -16
- package/lib/commonjs/ui/utils/persistedDataVersion.js.map +0 -1
- package/lib/module/ui/hooks/accountQueryPersistence.js +0 -244
- package/lib/module/ui/hooks/accountQueryPersistence.js.map +0 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +0 -179
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +0 -1
- package/lib/module/ui/hooks/mutations/mutationKeys.js +0 -40
- package/lib/module/ui/hooks/mutations/mutationKeys.js.map +0 -1
- package/lib/module/ui/hooks/persistedQueryCache.js +0 -209
- package/lib/module/ui/hooks/persistedQueryCache.js.map +0 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +0 -234
- package/lib/module/ui/hooks/queries/queryKeys.js.map +0 -1
- package/lib/module/ui/hooks/queries/userCache.js.map +0 -1
- package/lib/module/ui/hooks/queries/userCacheRelationship.js +0 -27
- package/lib/module/ui/hooks/queries/userCacheRelationship.js.map +0 -1
- package/lib/module/ui/hooks/queryClient.js +0 -207
- package/lib/module/ui/hooks/queryClient.js.map +0 -1
- package/lib/module/ui/hooks/useQueryClient.js +0 -15
- package/lib/module/ui/hooks/useQueryClient.js.map +0 -1
- package/lib/module/ui/stores/assetStore.js +0 -239
- package/lib/module/ui/stores/assetStore.js.map +0 -1
- package/lib/module/ui/stores/authStore.js +0 -165
- package/lib/module/ui/stores/authStore.js.map +0 -1
- package/lib/module/ui/stores/followStore.js +0 -561
- package/lib/module/ui/stores/followStore.js.map +0 -1
- package/lib/module/ui/stores/followTargetStore.js +0 -152
- package/lib/module/ui/stores/followTargetStore.js.map +0 -1
- package/lib/module/ui/stores/resetSessionScopedStores.js +0 -18
- package/lib/module/ui/stores/resetSessionScopedStores.js.map +0 -1
- package/lib/module/ui/utils/avatarUtils.js +0 -40
- package/lib/module/ui/utils/avatarUtils.js.map +0 -1
- package/lib/module/ui/utils/persistedDataVersion.js +0 -12
- package/lib/module/ui/utils/persistedDataVersion.js.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts +0 -145
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +0 -90
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +0 -33
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts +0 -98
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +0 -162
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCacheRelationship.d.ts +0 -9
- package/lib/typescript/commonjs/ui/hooks/queries/userCacheRelationship.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +0 -76
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useQueryClient.d.ts +0 -7
- package/lib/typescript/commonjs/ui/hooks/useQueryClient.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +0 -61
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts +0 -61
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts +0 -32
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/followTargetStore.d.ts +0 -88
- package/lib/typescript/commonjs/ui/stores/followTargetStore.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts +0 -10
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +0 -16
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts +0 -10
- package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts +0 -145
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +0 -90
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +0 -33
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts +0 -98
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +0 -162
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/queries/userCacheRelationship.d.ts +0 -9
- package/lib/typescript/module/ui/hooks/queries/userCacheRelationship.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +0 -76
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useQueryClient.d.ts +0 -7
- package/lib/typescript/module/ui/hooks/useQueryClient.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts +0 -61
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/authStore.d.ts +0 -61
- package/lib/typescript/module/ui/stores/authStore.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/followStore.d.ts +0 -32
- package/lib/typescript/module/ui/stores/followStore.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/followTargetStore.d.ts +0 -88
- package/lib/typescript/module/ui/stores/followTargetStore.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts +0 -10
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts.map +0 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts +0 -16
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +0 -1
- package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts +0 -10
- package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts.map +0 -1
- package/lib/typescript/nativewind-env.d.ts +0 -1
- package/lib/typescript/types/react-native-classname.d.ts +0 -39
- package/src/nativewind-env.d.ts +0 -1
- package/src/types/react-native-classname.d.ts +0 -39
- package/src/ui/hooks/accountQueryPersistence.ts +0 -407
- package/src/ui/hooks/mutations/mutationFactory.ts +0 -234
- package/src/ui/hooks/mutations/mutationKeys.ts +0 -44
- package/src/ui/hooks/persistedQueryCache.ts +0 -293
- package/src/ui/hooks/queries/__tests__/fileQueries.test.ts +0 -70
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +0 -482
- package/src/ui/hooks/queries/queryKeys.ts +0 -252
- package/src/ui/hooks/queries/userCacheRelationship.ts +0 -33
- package/src/ui/hooks/queryClient.ts +0 -240
- package/src/ui/hooks/useQueryClient.ts +0 -16
- package/src/ui/stores/__tests__/followStore.test.ts +0 -254
- package/src/ui/stores/__tests__/resetSessionScopedStores.test.ts +0 -23
- package/src/ui/stores/assetStore.ts +0 -309
- package/src/ui/stores/authStore.ts +0 -191
- package/src/ui/stores/followStore.ts +0 -499
- package/src/ui/stores/followTargetStore.ts +0 -165
- package/src/ui/stores/resetSessionScopedStores.ts +0 -15
- package/src/ui/utils/avatarUtils.ts +0 -57
- package/src/ui/utils/persistedDataVersion.ts +0 -9
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import type { AssetMetadata, AssetUploadInput, FileApplicationAccess, FileMetadata, OxyServices } from '@oxy.so/core';
|
|
2
|
+
import { type FileApplicationAccessRevocation } from '@oxy.so/core';
|
|
3
|
+
/** Files read per page. */
|
|
4
|
+
export declare const FILES_PAGE_SIZE = 40;
|
|
5
|
+
/** Raw file record as returned by `oxyServices.assets.list` / `assetUpload`. */
|
|
6
|
+
export interface RawUserFile {
|
|
7
|
+
id: string;
|
|
8
|
+
originalName?: string;
|
|
9
|
+
sha256?: string;
|
|
10
|
+
mime?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
variants?: unknown[];
|
|
15
|
+
/** Whether any application uses the file (ADR 0043 D5). */
|
|
16
|
+
inUse?: boolean;
|
|
17
|
+
/** `blocked`: taken down after a content claim (ADR 0043 D10). */
|
|
18
|
+
status?: string;
|
|
19
|
+
/** When the owner moved it to trash (ADR 0043 D5). */
|
|
20
|
+
trashedAt?: string | null;
|
|
21
|
+
}
|
|
22
|
+
/** One page of a file listing. */
|
|
23
|
+
export interface UserFilesPage {
|
|
24
|
+
files: FileMetadata[];
|
|
25
|
+
total: number;
|
|
26
|
+
hasMore: boolean;
|
|
27
|
+
nextOffset: number;
|
|
28
|
+
}
|
|
29
|
+
/** Normalize a raw API file record into the client `FileMetadata` shape. */
|
|
30
|
+
export declare function mapRawFileToMetadata(raw: RawUserFile): FileMetadata;
|
|
31
|
+
/** Which of the owner's files a listing holds: the library, or the trash (ADR 0043 D5). */
|
|
32
|
+
export type UserFilesListing = 'library' | 'trash';
|
|
33
|
+
/** Map one `oxyServices.assets.list` response onto a page. */
|
|
34
|
+
export declare function toUserFilesPage(response: {
|
|
35
|
+
files?: unknown[];
|
|
36
|
+
total?: number;
|
|
37
|
+
hasMore?: boolean;
|
|
38
|
+
}, offset: number): UserFilesPage;
|
|
39
|
+
export declare const UserFile: import("@oxy.so/bloom-data").Entity<FileMetadata>;
|
|
40
|
+
/** The files of one owner's library or trash, in the server's order. */
|
|
41
|
+
export declare const UserFiles: import("@oxy.so/bloom-data").List<unknown>;
|
|
42
|
+
/** The `UserFiles` key of an owner's listing. */
|
|
43
|
+
export declare function userFilesKey(ownerId: string, listing: UserFilesListing): string;
|
|
44
|
+
/**
|
|
45
|
+
* An owner's library (active files, and blocked ones shown as removed after a
|
|
46
|
+
* claim) or, with `trash`, what they moved to trash, most recently trashed
|
|
47
|
+
* first. Read again every time a screen opens it (`stale: 0`); the next page
|
|
48
|
+
* starts at the offset the last one named.
|
|
49
|
+
*/
|
|
50
|
+
export declare const userFiles: import("@oxy.so/bloom-data").ListSource<[_oxy: OxyServices, ownerId: string, listing: UserFilesListing], unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* Puts a file (an upload still in flight) at the top of the owner's library,
|
|
53
|
+
* when the library has been read.
|
|
54
|
+
*/
|
|
55
|
+
export declare function prependUserFile(ownerId: string, file: FileMetadata): void;
|
|
56
|
+
/** Takes a file out of the owner's library, or out of the trash. */
|
|
57
|
+
export declare function removeUserFile(ownerId: string, fileId: string, listing?: UserFilesListing): void;
|
|
58
|
+
/** Swaps an upload in flight (by its temporary id) for the file the server stored. */
|
|
59
|
+
export declare function replaceUserFile(ownerId: string, temporaryId: string, file: FileMetadata): void;
|
|
60
|
+
/** Merges a metadata change (a new visibility, say) into a held file. */
|
|
61
|
+
export declare function patchUserFileMetadata(fileId: string, metadata: Record<string, unknown>): void;
|
|
62
|
+
/**
|
|
63
|
+
* Reads the owner's listings again: the library, or both the library and the
|
|
64
|
+
* trash after a change that moves a file between them. A listing no screen
|
|
65
|
+
* has read is left alone; it is read when one opens it.
|
|
66
|
+
*/
|
|
67
|
+
export declare function refreshUserFiles(oxy: OxyServices, ownerId: string, listings?: readonly UserFilesListing[]): void;
|
|
68
|
+
/** The applications that can open one of the owner's files. */
|
|
69
|
+
export interface FileAppAccessRecord {
|
|
70
|
+
id: string;
|
|
71
|
+
apps: FileApplicationAccess[];
|
|
72
|
+
}
|
|
73
|
+
export declare const FileAppAccess: import("@oxy.so/bloom-data").Entity<FileAppAccessRecord>;
|
|
74
|
+
/**
|
|
75
|
+
* The applications that can open one of the owner's files with their own
|
|
76
|
+
* token: one that stored it for the person, or one the person attached it to.
|
|
77
|
+
* Read every time the details open (`stale: 0`), since an application can gain
|
|
78
|
+
* access at any time (a new upload on the person's behalf).
|
|
79
|
+
*/
|
|
80
|
+
export declare const fileAppAccess: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, fileId: string], {
|
|
81
|
+
id: string;
|
|
82
|
+
apps: FileApplicationAccess[];
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* Takes an application's access to one of the person's files away: the
|
|
86
|
+
* application leaves the list at once and comes back if the revoke fails.
|
|
87
|
+
* The caller reads the list again either way.
|
|
88
|
+
*/
|
|
89
|
+
export declare const revokeFileAppAccess: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, sessionId: string | null, fileId: string, applicationId: string], FileApplicationAccessRevocation>;
|
|
90
|
+
/** What an upload answers: one file, or a batch. */
|
|
91
|
+
export interface UploadResult {
|
|
92
|
+
file?: UploadedFile;
|
|
93
|
+
files?: UploadedFile[];
|
|
94
|
+
id?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface UploadedFile {
|
|
97
|
+
id: string;
|
|
98
|
+
originalName?: string;
|
|
99
|
+
sha256?: string;
|
|
100
|
+
mime?: string;
|
|
101
|
+
size?: number;
|
|
102
|
+
createdAt?: string;
|
|
103
|
+
metadata?: Record<string, unknown>;
|
|
104
|
+
variants?: Array<{
|
|
105
|
+
type: string;
|
|
106
|
+
key: string;
|
|
107
|
+
width?: number;
|
|
108
|
+
height?: number;
|
|
109
|
+
readyAt?: string;
|
|
110
|
+
metadata?: Record<string, unknown>;
|
|
111
|
+
}>;
|
|
112
|
+
}
|
|
113
|
+
export interface UploadFileInput {
|
|
114
|
+
file: AssetUploadInput;
|
|
115
|
+
visibility?: 'private' | 'public' | 'unlisted';
|
|
116
|
+
metadata?: AssetMetadata;
|
|
117
|
+
onProgress?: (progress: number) => void;
|
|
118
|
+
}
|
|
119
|
+
/** Uploads a file to the person's library. */
|
|
120
|
+
export declare const uploadFile: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, sessionId: string | null, input: UploadFileInput], UploadResult>;
|
|
121
|
+
/**
|
|
122
|
+
* The variant-aware batch resolver contract (`@oxy.so/core`).
|
|
123
|
+
*
|
|
124
|
+
* `urls` takes a per-file `{ fileId, variant }` list and returns a map keyed
|
|
125
|
+
* by `fileId`; ids that are denied or missing are OMITTED (never an empty
|
|
126
|
+
* string), and PRIVATE assets resolve to a working scoped-media-token stream
|
|
127
|
+
* URL. Typed here rather than `Pick<OxyServices, …>` so this file states the
|
|
128
|
+
* exact contract it depends on.
|
|
129
|
+
*/
|
|
130
|
+
export interface AssetUrlBatchResolver {
|
|
131
|
+
assets: {
|
|
132
|
+
urls(requests: Array<{
|
|
133
|
+
fileId: string;
|
|
134
|
+
variant?: string;
|
|
135
|
+
}>, options?: {
|
|
136
|
+
expiresIn?: number;
|
|
137
|
+
context?: string;
|
|
138
|
+
}): Promise<Record<string, string>>;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/** One file's resolved URL for one variant. */
|
|
142
|
+
export interface FileUrlRecord {
|
|
143
|
+
/** `fileUrlId(fileId, variant)`. */
|
|
144
|
+
id: string;
|
|
145
|
+
url: string;
|
|
146
|
+
}
|
|
147
|
+
export declare function fileUrlId(fileId: string, variant: string | undefined): string;
|
|
148
|
+
export declare const FileUrl: import("@oxy.so/bloom-data").Entity<FileUrlRecord>;
|
|
149
|
+
/** The URLs one batch of files resolved to. */
|
|
150
|
+
export declare const FileUrlBatches: import("@oxy.so/bloom-data").List<unknown>;
|
|
151
|
+
/** The `fileUrls` key of a request set: its content, sorted, so ordering churn reads nothing again. */
|
|
152
|
+
export declare function fileUrlsKey(requests: ReadonlyArray<{
|
|
153
|
+
fileId: string;
|
|
154
|
+
variant?: string;
|
|
155
|
+
}>): string;
|
|
156
|
+
/**
|
|
157
|
+
* Resolves a set of files' thumbnail URLs in one (chunked) batch request.
|
|
158
|
+
* Read again after 5 minutes, below the token's 10-minute lifetime, so a tile
|
|
159
|
+
* never shows a URL whose token has expired.
|
|
160
|
+
*/
|
|
161
|
+
export declare const fileUrls: import("@oxy.so/bloom-data").ListSource<[_oxy: AssetUrlBatchResolver, requests: readonly {
|
|
162
|
+
fileId: string;
|
|
163
|
+
variant?: string;
|
|
164
|
+
}[]], unknown>;
|
|
165
|
+
/** A photo's intrinsic size, by file id. */
|
|
166
|
+
export interface PhotoSizeRecord {
|
|
167
|
+
id: string;
|
|
168
|
+
width: number;
|
|
169
|
+
height: number;
|
|
170
|
+
}
|
|
171
|
+
export declare const PhotoSize: import("@oxy.so/bloom-data").Entity<PhotoSizeRecord>;
|
|
172
|
+
/** The sizes one set of photo URLs measured. */
|
|
173
|
+
export declare const PhotoSizeBatches: import("@oxy.so/bloom-data").List<unknown>;
|
|
174
|
+
/** A photo to measure: its file id and its resolved URL. */
|
|
175
|
+
export interface PhotoToMeasure {
|
|
176
|
+
id: string;
|
|
177
|
+
url: string;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Measures every photo whose URL has resolved (`getImageSize`, expo-image on a
|
|
181
|
+
* device). A photo that fails to load measures 1×1 (the 4/3 default). Keyed by
|
|
182
|
+
* every photo id with its URL, so a URL that resolves later is measured then;
|
|
183
|
+
* a measurement never goes stale.
|
|
184
|
+
*/
|
|
185
|
+
export declare const photoSizes: import("@oxy.so/bloom-data").ListSource<[photos: readonly PhotoToMeasure[]], unknown>;
|
|
186
|
+
/** An image's intrinsic size, by its URI. */
|
|
187
|
+
export interface ImageSizeRecord {
|
|
188
|
+
id: string;
|
|
189
|
+
width: number;
|
|
190
|
+
height: number;
|
|
191
|
+
}
|
|
192
|
+
export declare const ImageSize: import("@oxy.so/bloom-data").Entity<ImageSizeRecord>;
|
|
193
|
+
/**
|
|
194
|
+
* The intrinsic size of the image at `uri`. Fails (no retry) on a load error
|
|
195
|
+
* or degenerate dimensions, so the cropper can say it could not measure it.
|
|
196
|
+
*/
|
|
197
|
+
export declare const imageSize: import("@oxy.so/bloom-data").RecordSource<[uri: string], {
|
|
198
|
+
id: string;
|
|
199
|
+
width: number;
|
|
200
|
+
height: number;
|
|
201
|
+
}>;
|
|
202
|
+
/** The URL the avatar cropper loads for one of the person's files. */
|
|
203
|
+
export interface AvatarCropSourceRecord {
|
|
204
|
+
id: string;
|
|
205
|
+
url: string;
|
|
206
|
+
}
|
|
207
|
+
export declare const AvatarCropSource: import("@oxy.so/bloom-data").Entity<AvatarCropSourceRecord>;
|
|
208
|
+
/**
|
|
209
|
+
* Resolves a file id to a URL the cropper can load (usually private, so
|
|
210
|
+
* through the SDK). Fails at once (no retry) when no URL comes back.
|
|
211
|
+
*/
|
|
212
|
+
export declare const avatarCropSource: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, fileId: string], {
|
|
213
|
+
id: string;
|
|
214
|
+
url: string;
|
|
215
|
+
}>;
|
|
216
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../../src/ui/data/files.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { FollowApplicationMode, FollowRecord, FollowStatus } from '@oxy.so/contracts';
|
|
2
|
+
import type { BulkFollowResult, BulkUnfollowResult, OxyServices } from '@oxy.so/core';
|
|
3
|
+
import { type FollowActionErrorCode, type FollowErrorCode } from '../utils/followErrors.js';
|
|
4
|
+
import { type CachedUser } from './userRecord.js';
|
|
5
|
+
/** A follow write's state for one person: whether one is in flight, and why the last failed. */
|
|
6
|
+
export interface FollowActivityRecord {
|
|
7
|
+
id: string;
|
|
8
|
+
pending: boolean;
|
|
9
|
+
error: FollowErrorCode | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const FollowActivity: import("@oxy.so/bloom-data").Entity<FollowActivityRecord>;
|
|
12
|
+
/** Whether the viewer follows `user`: `undefined` while unknown. */
|
|
13
|
+
export declare function isFollowingOf(user: CachedUser | undefined): boolean | undefined;
|
|
14
|
+
/** A person's follower count, or `null` while their counts are unknown. */
|
|
15
|
+
export declare function followerCountOf(user: CachedUser | undefined): number | null;
|
|
16
|
+
/** How many people a person follows, or `null` while their counts are unknown. */
|
|
17
|
+
export declare function followingCountOf(user: CachedUser | undefined): number | null;
|
|
18
|
+
export declare function followPendingOf(activity: FollowActivityRecord | undefined): boolean;
|
|
19
|
+
export declare function followErrorOf(activity: FollowActivityRecord | undefined): FollowErrorCode | null;
|
|
20
|
+
/** Sets a definite follow status and clears the person's error. */
|
|
21
|
+
export declare function setFollowStatus(userId: string, isFollowing: boolean): void;
|
|
22
|
+
/**
|
|
23
|
+
* Seeds follow statuses only where they are UNKNOWN: a definite value already
|
|
24
|
+
* held (one written by a follow in flight, say) is never replaced. Safe to call
|
|
25
|
+
* on every viewer-graph refresh.
|
|
26
|
+
*/
|
|
27
|
+
export declare function seedFollowStatuses(statuses: Readonly<Record<string, boolean>>): void;
|
|
28
|
+
export declare function clearFollowError(userId: string): void;
|
|
29
|
+
export declare function setFollowCounts(userId: string, counts: {
|
|
30
|
+
followers?: number;
|
|
31
|
+
following?: number;
|
|
32
|
+
}): void;
|
|
33
|
+
/**
|
|
34
|
+
* Writes the counts a follow write answered with: the target's followers, and
|
|
35
|
+
* (when known) the viewer's following.
|
|
36
|
+
*/
|
|
37
|
+
export declare function applyFollowCounts(targetUserId: string, counts: {
|
|
38
|
+
followers: number;
|
|
39
|
+
following: number;
|
|
40
|
+
}, viewerId: string | null | undefined): void;
|
|
41
|
+
/**
|
|
42
|
+
* Reads the follow status of every UNKNOWN id asked for in this tick in ONE
|
|
43
|
+
* `follows.statuses` call (a page of buttons mounting in one commit). Ids
|
|
44
|
+
* already known, queued or in flight are skipped. The answer goes to the store
|
|
45
|
+
* that asked, so an answer for an account since left is dropped.
|
|
46
|
+
*/
|
|
47
|
+
export declare function resolveFollowStatuses(oxy: OxyServices, userIds: readonly string[]): void;
|
|
48
|
+
/**
|
|
49
|
+
* Follows `userId` (or unfollows, when `isCurrentlyFollowing`). Resolves to
|
|
50
|
+
* whether the server accepted it; a refusal is rolled back and its code kept
|
|
51
|
+
* in `FollowActivity`, never thrown. A write whose account was left meanwhile
|
|
52
|
+
* resolves to `false` and changes nothing.
|
|
53
|
+
*/
|
|
54
|
+
export declare function toggleFollow(oxy: OxyServices, userId: string, isCurrentlyFollowing: boolean): Promise<boolean>;
|
|
55
|
+
/** Follows every one of `userIds` in one call; never unfollows. */
|
|
56
|
+
export declare function followMany(oxy: OxyServices, userIds: readonly string[]): Promise<BulkFollowResult>;
|
|
57
|
+
/** Unfollows every one of `userIds` in one call; idempotent, never follows. */
|
|
58
|
+
export declare function unfollowMany(oxy: OxyServices, userIds: readonly string[]): Promise<BulkUnfollowResult>;
|
|
59
|
+
/**
|
|
60
|
+
* A person read for their counts (`users.get`). Every field it answers joins
|
|
61
|
+
* `User` by the user merge rules. Read only while the counts are unknown.
|
|
62
|
+
*/
|
|
63
|
+
export declare const followCounts: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, userId: string], CachedUser>;
|
|
64
|
+
/** One followable target: its status (`undefined` until read), and its write state. */
|
|
65
|
+
export interface FollowTargetRecord {
|
|
66
|
+
id: string;
|
|
67
|
+
status?: FollowStatus;
|
|
68
|
+
pending: boolean;
|
|
69
|
+
error?: FollowErrorCode;
|
|
70
|
+
}
|
|
71
|
+
export declare const FollowTarget: import("@oxy.so/bloom-data").Entity<FollowTargetRecord>;
|
|
72
|
+
/**
|
|
73
|
+
* The state one target is in before the server has been asked. Distinct from
|
|
74
|
+
* "not following": a button that renders a follow action while the answer is
|
|
75
|
+
* unknown invites a follow the user did not intend, so callers check
|
|
76
|
+
* `isUnknown` rather than reading this as an answer.
|
|
77
|
+
*/
|
|
78
|
+
export declare const UNKNOWN_FOLLOW_STATUS: FollowStatus;
|
|
79
|
+
/** The status of `targetId` in the store in scope. */
|
|
80
|
+
export declare function followTargetStatusOf(targetId: string): FollowStatus | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Seeds statuses already known (a follow list, a feed payload), replacing what
|
|
83
|
+
* is held: one request saved per rendered row.
|
|
84
|
+
*/
|
|
85
|
+
export declare function seedFollowTargets(entries: Readonly<Record<string, FollowStatus>>): void;
|
|
86
|
+
/**
|
|
87
|
+
* Reads a target's status. A failed read keeps the button interactive (a
|
|
88
|
+
* failed read is not "never asked"), with its error code kept.
|
|
89
|
+
*/
|
|
90
|
+
export declare function readFollowTarget(oxy: OxyServices, targetId: string): Promise<void>;
|
|
91
|
+
export declare const followTargetAction: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, targetId: string, _current: FollowStatus, options?: {
|
|
92
|
+
expiresIn?: number;
|
|
93
|
+
} | undefined], FollowStatus>;
|
|
94
|
+
export declare const unfollowTargetAction: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, _targetId: string, relationshipId: string], import("@oxy.so/contracts").UnfollowMutation>;
|
|
95
|
+
/** Switches a follow off in this application (`disabled`) or back on (`inherit`). */
|
|
96
|
+
export declare const setFollowTargetModeAction: import("@oxy.so/bloom-data").Action<[_oxy: OxyServices, targetId: string, _relationshipId: string, current: FollowStatus, mode: "disabled" | "inherit"], unknown>;
|
|
97
|
+
/**
|
|
98
|
+
* Runs one target write: pending while it runs, its error code kept when it
|
|
99
|
+
* is refused (rolled back to what was true; to the unknown status when
|
|
100
|
+
* nothing was). Resolves to whether the server accepted it; never rejects. A
|
|
101
|
+
* write whose account was left meanwhile resolves to `false`.
|
|
102
|
+
*/
|
|
103
|
+
export declare function writeFollowTarget(targetId: string, write: () => Promise<unknown>, failure: FollowActionErrorCode): Promise<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the user follows this at all, anywhere.
|
|
106
|
+
*
|
|
107
|
+
* Deliberately NOT `effectiveState !== 'not_following'`: a follow switched off
|
|
108
|
+
* in this application reports `not_following` — correctly, since the question
|
|
109
|
+
* that field answers is "does this act here" — and a button that read it as
|
|
110
|
+
* "not followed" would offer to follow something already followed.
|
|
111
|
+
*/
|
|
112
|
+
export declare function isFollowedGlobally(status: FollowStatus): boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Whether a held status is safe to act on without a round trip.
|
|
115
|
+
*
|
|
116
|
+
* List payloads often carry `globalState` without `relationshipId`. Treating
|
|
117
|
+
* that as authoritative would leave disable/unfollow as no-ops forever.
|
|
118
|
+
*/
|
|
119
|
+
export declare function isCompleteFollowStatus(status: FollowStatus): boolean;
|
|
120
|
+
/** Convert one list row into a target's status. */
|
|
121
|
+
export declare function followRecordToStatus(record: FollowRecord): FollowStatus;
|
|
122
|
+
/**
|
|
123
|
+
* Bulk-convert a follow list page into a status map keyed by target id — the
|
|
124
|
+
* input of `useSeedFollowTargets()`.
|
|
125
|
+
*/
|
|
126
|
+
export declare function followRecordsToStatusMap(records: FollowRecord[]): Record<string, FollowStatus>;
|
|
127
|
+
/**
|
|
128
|
+
* Apply a mode change to a status without a round trip.
|
|
129
|
+
*
|
|
130
|
+
* Exported because the optimistic path and the settled path must agree on what
|
|
131
|
+
* `effectiveState` becomes; deriving it in two places is how they drift. Mirrors
|
|
132
|
+
* the server's own derivation, which is the authority.
|
|
133
|
+
*/
|
|
134
|
+
export declare function withApplicationMode(status: FollowStatus, mode: FollowApplicationMode): FollowStatus;
|
|
135
|
+
//# sourceMappingURL=follow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../../src/ui/data/follow.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { OxyServices } from '@oxy.so/core';
|
|
2
|
+
import type { CreateOrganization, OrganizationClaimInput, OrganizationClaimReview, UpdateOrganization } from '@oxy.so/contracts';
|
|
3
|
+
export declare const Organization: import("@oxy.so/bloom-data").Entity<{
|
|
4
|
+
name: string;
|
|
5
|
+
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
6
|
+
accountId: string;
|
|
7
|
+
username: string | null;
|
|
8
|
+
avatar: string | null;
|
|
9
|
+
legalName: string | null;
|
|
10
|
+
websiteUrl: string | null;
|
|
11
|
+
countryCode: string | null;
|
|
12
|
+
aliases: {
|
|
13
|
+
alias: string;
|
|
14
|
+
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
15
|
+
language?: string | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
verifiedDomains: string[];
|
|
18
|
+
claimStatus: "unclaimed" | "claimed";
|
|
19
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
20
|
+
mergedIntoAccountId: string | null;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const OrganizationClaim: import("@oxy.so/bloom-data").Entity<{
|
|
25
|
+
id: string;
|
|
26
|
+
accountId: string;
|
|
27
|
+
claimantUserId: string;
|
|
28
|
+
status: "rejected" | "pending" | "approved";
|
|
29
|
+
createdAt: string;
|
|
30
|
+
evidenceReference: string;
|
|
31
|
+
reviewEvidenceReference: string | null;
|
|
32
|
+
reviewedAt: string | null;
|
|
33
|
+
}>;
|
|
34
|
+
/** One organization. */
|
|
35
|
+
export declare const organization: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, accountId: string], {
|
|
36
|
+
name: string;
|
|
37
|
+
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
38
|
+
accountId: string;
|
|
39
|
+
username: string | null;
|
|
40
|
+
avatar: string | null;
|
|
41
|
+
legalName: string | null;
|
|
42
|
+
websiteUrl: string | null;
|
|
43
|
+
countryCode: string | null;
|
|
44
|
+
aliases: {
|
|
45
|
+
alias: string;
|
|
46
|
+
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
47
|
+
language?: string | undefined;
|
|
48
|
+
}[];
|
|
49
|
+
verifiedDomains: string[];
|
|
50
|
+
claimStatus: "unclaimed" | "claimed";
|
|
51
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
52
|
+
mergedIntoAccountId: string | null;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
}>;
|
|
56
|
+
/** The directory search, by query, paged. */
|
|
57
|
+
export declare const OrganizationSearch: import("@oxy.so/bloom-data").List<unknown>;
|
|
58
|
+
export declare const organizationSearch: import("@oxy.so/bloom-data").ListSource<[_oxy: OxyServices, query: string], unknown>;
|
|
59
|
+
/** A claim list keeps the account ids its claims name, in order (`extra`), to look their organizations up. */
|
|
60
|
+
type ClaimedAccountIds = readonly string[];
|
|
61
|
+
/** The signed-in person's organization claims, by account. */
|
|
62
|
+
export declare const MyOrganizationClaims: import("@oxy.so/bloom-data").List<ClaimedAccountIds>;
|
|
63
|
+
export declare const myOrganizationClaims: import("@oxy.so/bloom-data").ListSource<[_oxy: OxyServices, accountId: string], ClaimedAccountIds>;
|
|
64
|
+
/** The pending claims a staff member may review, by the reviewer's account. */
|
|
65
|
+
export declare const ReviewOrganizationClaims: import("@oxy.so/bloom-data").List<ClaimedAccountIds>;
|
|
66
|
+
export declare const reviewOrganizationClaims: import("@oxy.so/bloom-data").ListSource<[_oxy: OxyServices, accountId: string], ClaimedAccountIds>;
|
|
67
|
+
/** One claim as its reviewer reads it, read afresh each time it is opened. */
|
|
68
|
+
export declare const reviewClaimDetail: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, claimId: string], import("./answer.js").Answer<{
|
|
69
|
+
id: string;
|
|
70
|
+
accountId: string;
|
|
71
|
+
claimantUserId: string;
|
|
72
|
+
status: "pending" | "approved" | "rejected";
|
|
73
|
+
createdAt: string;
|
|
74
|
+
evidenceReference: string;
|
|
75
|
+
reviewEvidenceReference: string | null;
|
|
76
|
+
reviewedAt: string | null;
|
|
77
|
+
}>>;
|
|
78
|
+
/**
|
|
79
|
+
* The organizations of these account ids (sorted), looked up in batches of
|
|
80
|
+
* `BATCH_SIZE`: the answer maps each requested account id to the account id
|
|
81
|
+
* of its organization (a merged one names its survivor), and the
|
|
82
|
+
* organizations go into `Organization`.
|
|
83
|
+
*/
|
|
84
|
+
export declare const organizationsByAccount: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, accountIds: readonly string[]], import("./answer.js").Answer<Readonly<Record<string, string>>>>;
|
|
85
|
+
/**
|
|
86
|
+
* Reads the claim lists the store holds again (each is dropped once no screen
|
|
87
|
+
* shows it, so what is held is what is shown): after a write that changes a
|
|
88
|
+
* claim.
|
|
89
|
+
*/
|
|
90
|
+
export declare function refreshOrganizationClaims(oxy: OxyServices): Promise<unknown>;
|
|
91
|
+
export declare const claimOrganization: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, prepare: () => {
|
|
92
|
+
accountId: string;
|
|
93
|
+
input: OrganizationClaimInput;
|
|
94
|
+
}], {
|
|
95
|
+
id: string;
|
|
96
|
+
accountId: string;
|
|
97
|
+
claimantUserId: string;
|
|
98
|
+
status: "pending" | "approved" | "rejected";
|
|
99
|
+
createdAt: string;
|
|
100
|
+
}>;
|
|
101
|
+
export declare const createOrganization: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, prepare: () => CreateOrganization], {
|
|
102
|
+
name: string;
|
|
103
|
+
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
104
|
+
accountId: string;
|
|
105
|
+
username: string | null;
|
|
106
|
+
avatar: string | null;
|
|
107
|
+
legalName: string | null;
|
|
108
|
+
websiteUrl: string | null;
|
|
109
|
+
countryCode: string | null;
|
|
110
|
+
aliases: {
|
|
111
|
+
alias: string;
|
|
112
|
+
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
113
|
+
language?: string | undefined;
|
|
114
|
+
}[];
|
|
115
|
+
verifiedDomains: string[];
|
|
116
|
+
claimStatus: "unclaimed" | "claimed";
|
|
117
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
118
|
+
mergedIntoAccountId: string | null;
|
|
119
|
+
createdAt: string;
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
}>;
|
|
122
|
+
export declare const updateOrganization: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, prepare: () => {
|
|
123
|
+
accountId: string;
|
|
124
|
+
input: UpdateOrganization;
|
|
125
|
+
}], {
|
|
126
|
+
name: string;
|
|
127
|
+
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
128
|
+
accountId: string;
|
|
129
|
+
username: string | null;
|
|
130
|
+
avatar: string | null;
|
|
131
|
+
legalName: string | null;
|
|
132
|
+
websiteUrl: string | null;
|
|
133
|
+
countryCode: string | null;
|
|
134
|
+
aliases: {
|
|
135
|
+
alias: string;
|
|
136
|
+
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
137
|
+
language?: string | undefined;
|
|
138
|
+
}[];
|
|
139
|
+
verifiedDomains: string[];
|
|
140
|
+
claimStatus: "unclaimed" | "claimed";
|
|
141
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
142
|
+
mergedIntoAccountId: string | null;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
updatedAt: string;
|
|
145
|
+
}>;
|
|
146
|
+
export declare const reviewOrganizationClaim: import("@oxy.so/bloom-data").Action<[oxy: OxyServices, prepare: () => {
|
|
147
|
+
claimId: string;
|
|
148
|
+
input: OrganizationClaimReview;
|
|
149
|
+
}], {
|
|
150
|
+
id: string;
|
|
151
|
+
accountId: string;
|
|
152
|
+
claimantUserId: string;
|
|
153
|
+
status: "pending" | "approved" | "rejected";
|
|
154
|
+
createdAt: string;
|
|
155
|
+
}>;
|
|
156
|
+
export {};
|
|
157
|
+
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../../../src/ui/data/organizations.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EACV,kBAAkB,EAGlB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAc3B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EAEvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAE5B,CAAC;AAEH,wBAAwB;AACxB,eAAO,MAAM,YAAY;;;;;;;;;;;;gBAOyC,CAAC;;;;;;;;EAHjE,CAAC;AAEH,6CAA6C;AAC7C,eAAO,MAAM,kBAAkB,4CAAwD,CAAC;AAExF,eAAO,MAAM,kBAAkB,sFAW7B,CAAC;AAEH,8GAA8G;AAC9G,KAAK,iBAAiB,GAAG,SAAS,MAAM,EAAE,CAAC;AAiB3C,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,sDAE/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,oGAO/B,CAAC;AAEH,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,sDAEnC,CAAC;AAEH,eAAO,MAAM,wBAAwB,oGAWnC,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB;;;;;;;;;GAI5B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,+JAejC,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAK5E;AAQD,eAAO,MAAM,iBAAiB,wEACW;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAE;;;;;;EAI3F,CAAC;AAEH,eAAO,MAAM,kBAAkB,wEACU,kBAAkB;;;;;;;;;;;;gBAlElC,CAAC;;;;;;;;EAoExB,CAAC;AAEH,eAAO,MAAM,kBAAkB,wEACU;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,kBAAkB,CAAA;CAAE;;;;;;;;;;;;gBAhD3C,CAAC;;;;;;;;EAqD7C,CAAC;AAEH,eAAO,MAAM,uBAAuB,wEACK;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,uBAAuB,CAAA;CAAE;;;;;;EAO1F,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The signed-in account's billing: its subscription, payment history, wallet,
|
|
3
|
+
* wallet ledger and personal-plan subscriptions, plus the public personal-plan
|
|
4
|
+
* catalogue. Each is one answer per account (`data/answer.ts`), held in that
|
|
5
|
+
* account's store and in memory only.
|
|
6
|
+
*
|
|
7
|
+
* Every private read goes through `authenticatedApiCall`, so a stale token is
|
|
8
|
+
* refreshed first and auth errors are handled as everywhere else in the SDK.
|
|
9
|
+
*/
|
|
10
|
+
import { type OxyServices } from '@oxy.so/core';
|
|
11
|
+
import type { Subscription, Payment, Wallet, WalletTransactionsResponse } from '../hooks/queries/paymentTypes.js';
|
|
12
|
+
export declare const subscription: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, accountId: string, sessionId: string | null], import("./answer.js").Answer<Subscription>>;
|
|
13
|
+
export declare const paymentHistory: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, accountId: string, sessionId: string | null], import("./answer.js").Answer<Payment[]>>;
|
|
14
|
+
export declare const wallet: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, accountId: string, sessionId: string | null], import("./answer.js").Answer<Wallet>>;
|
|
15
|
+
/** One page of the wallet ledger (`limit`/`offset`); each page is held on its own. */
|
|
16
|
+
export declare const walletTransactions: import("@oxy.so/bloom-data").RecordSource<[oxy: OxyServices, accountId: string, sessionId: string | null, limit: number | undefined, offset: number | undefined], import("./answer.js").Answer<WalletTransactionsResponse>>;
|
|
17
|
+
/** The public personal-plan catalogue. */
|
|
18
|
+
export declare const personalPlans: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices], import("./answer.js").Answer<{
|
|
19
|
+
schemaVersion: 1;
|
|
20
|
+
state: "unconfigured" | "configured";
|
|
21
|
+
purchase: "unavailable" | "available";
|
|
22
|
+
plans: {
|
|
23
|
+
offerId: string;
|
|
24
|
+
offerVersion: number;
|
|
25
|
+
displayName: string;
|
|
26
|
+
audience: "personal";
|
|
27
|
+
kind: "oxy_one";
|
|
28
|
+
benefits: {
|
|
29
|
+
displayName: string;
|
|
30
|
+
benefit: {
|
|
31
|
+
kind: "capability";
|
|
32
|
+
productId: string;
|
|
33
|
+
key: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: "quota";
|
|
36
|
+
productId: string;
|
|
37
|
+
key: string;
|
|
38
|
+
unit: string;
|
|
39
|
+
included: number;
|
|
40
|
+
combination: "sum" | "maximum" | "exclusive";
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
price?: {
|
|
44
|
+
currency: string;
|
|
45
|
+
amountMinorUnits: number;
|
|
46
|
+
interval: "month";
|
|
47
|
+
trial: "none";
|
|
48
|
+
taxTreatment: "inclusive";
|
|
49
|
+
merchantTotal: "final";
|
|
50
|
+
} | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
}>>;
|
|
53
|
+
/**
|
|
54
|
+
* The account's personal-plan subscriptions. The server is told which account
|
|
55
|
+
* the answer must be for (an expected-subject fence), and nothing is kept once
|
|
56
|
+
* no screen shows it.
|
|
57
|
+
*/
|
|
58
|
+
export declare const personalPlanSubscriptions: import("@oxy.so/bloom-data").RecordSource<[_oxy: OxyServices, accountId: string, sessionId: string | null], import("./answer.js").Answer<{
|
|
59
|
+
sourceId: string;
|
|
60
|
+
status: "paused" | "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid";
|
|
61
|
+
period: {
|
|
62
|
+
start: string;
|
|
63
|
+
end: string;
|
|
64
|
+
};
|
|
65
|
+
cancelAtPeriodEnd: boolean;
|
|
66
|
+
canCancel: boolean;
|
|
67
|
+
offers: {
|
|
68
|
+
segmentId: string;
|
|
69
|
+
offerId: string;
|
|
70
|
+
offerVersion: number;
|
|
71
|
+
displayName: string;
|
|
72
|
+
origin: "individual" | "bundle";
|
|
73
|
+
period: {
|
|
74
|
+
start: string;
|
|
75
|
+
end: string;
|
|
76
|
+
};
|
|
77
|
+
current: boolean;
|
|
78
|
+
products: {
|
|
79
|
+
id: string;
|
|
80
|
+
displayName: string;
|
|
81
|
+
}[];
|
|
82
|
+
}[];
|
|
83
|
+
canManage?: boolean | undefined;
|
|
84
|
+
}[]>>;
|
|
85
|
+
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../../../src/ui/data/payments.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,0BAA0B,EAC3B,MAAM,kCAA+B,CAAC;AAUvC,eAAO,MAAM,YAAY,yJAQvB,CAAC;AAEH,eAAO,MAAM,cAAc,sJAQzB,CAAC;AAEH,eAAO,MAAM,MAAM,mJAQjB,CAAC;AAEH,sFAAsF;AACtF,eAAO,MAAM,kBAAkB,6NAgB7B,CAAC;AAEH,0CAA0C;AAC1C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMxB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;KAOpC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Persister } from '@oxy.so/bloom-data';
|
|
2
|
+
/**
|
|
3
|
+
* The durable copy of one account's data (or the device's, `DEVICE_DATA_ACCOUNT`)
|
|
4
|
+
* on the web: an IndexedDB database per account. None where the runtime has no
|
|
5
|
+
* IndexedDB (a server render, a test): the data then lives in memory only.
|
|
6
|
+
* The native build has its own file (`persister.native.ts`).
|
|
7
|
+
*/
|
|
8
|
+
export declare function dataPersister(account: string): Persister | undefined;
|
|
9
|
+
//# sourceMappingURL=persister.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persister.d.ts","sourceRoot":"","sources":["../../../../../src/ui/data/persister.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEpE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Persister } from '@oxy.so/bloom-data';
|
|
2
|
+
/**
|
|
3
|
+
* The durable copy of one account's data (or the device's, `DEVICE_DATA_ACCOUNT`)
|
|
4
|
+
* on a device: one SQLite file per account (`oxy-data-<account>.db`), written
|
|
5
|
+
* in the background and read when a screen opens, never while React renders.
|
|
6
|
+
*
|
|
7
|
+
* The file is opened with the synchronous API so an app's one boot read
|
|
8
|
+
* (`list.loadNow`) can read it before the first frame; every later call uses
|
|
9
|
+
* the asynchronous API on the same connection. Forgetting the account
|
|
10
|
+
* (sign-out) deletes the file.
|
|
11
|
+
*/
|
|
12
|
+
export declare function dataPersister(account: string): Persister;
|
|
13
|
+
//# sourceMappingURL=persister.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persister.native.d.ts","sourceRoot":"","sources":["../../../../../src/ui/data/persister.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAMxD"}
|