@onairos/react-native 3.1.12 → 3.1.13
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/lib/commonjs/api/index.js +75 -1
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
- package/lib/commonjs/assets/icons/Gmail.png +0 -0
- package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/icons/Redditicon.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/icons/farcaster.png +0 -0
- package/lib/commonjs/assets/icons/instagram.png +0 -0
- package/lib/commonjs/assets/icons/pinterest.png +0 -0
- package/lib/commonjs/assets/icons/swerv_logo.png +0 -0
- package/lib/commonjs/assets/icons/twitter.jpg +0 -0
- package/lib/commonjs/assets/images/Checkbox.svg +3 -0
- package/lib/commonjs/assets/images/EnochE.svg +19 -0
- package/lib/commonjs/assets/images/Enochicon1.png +0 -0
- package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
- package/lib/commonjs/assets/images/Facebookicon.png +0 -0
- package/lib/commonjs/assets/images/Gmail.png +0 -0
- package/lib/commonjs/assets/images/Googlelogo.png +0 -0
- package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
- package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
- package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
- package/lib/commonjs/assets/images/Redditicon.png +0 -0
- package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
- package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/images/arrow.svg +20 -0
- package/lib/commonjs/assets/images/basicproficon.svg +43 -0
- package/lib/commonjs/assets/images/basicprofile.svg +3 -0
- package/lib/commonjs/assets/images/checkmark.svg +4 -0
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
- package/lib/commonjs/assets/images/contenticon.svg +23 -0
- package/lib/commonjs/assets/images/persona1.png +0 -0
- package/lib/commonjs/assets/images/persona2.png +0 -0
- package/lib/commonjs/assets/images/persona3.png +0 -0
- package/lib/commonjs/assets/images/persona4.png +0 -0
- package/lib/commonjs/assets/images/persona5.png +0 -0
- package/lib/commonjs/assets/images/personalityicon.svg +18 -0
- package/lib/commonjs/assets/images/x-close.svg +3 -0
- package/lib/commonjs/components/BodyText.js +27 -0
- package/lib/commonjs/components/BodyText.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +44 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/CodeInput.js +30 -0
- package/lib/commonjs/components/CodeInput.js.map +1 -0
- package/lib/commonjs/components/EmailInput.js +30 -0
- package/lib/commonjs/components/EmailInput.js.map +1 -0
- package/lib/commonjs/components/ExistingUserDataConfirmation.js +474 -0
- package/lib/commonjs/components/ExistingUserDataConfirmation.js.map +1 -0
- package/lib/commonjs/components/GoogleButton.js +55 -0
- package/lib/commonjs/components/GoogleButton.js.map +1 -0
- package/lib/commonjs/components/HeadingGroup.js +43 -0
- package/lib/commonjs/components/HeadingGroup.js.map +1 -0
- package/lib/commonjs/components/ModalHeader.js +99 -0
- package/lib/commonjs/components/ModalHeader.js.map +1 -0
- package/lib/commonjs/components/ModalSheet.js +41 -0
- package/lib/commonjs/components/ModalSheet.js.map +1 -0
- package/lib/commonjs/components/Onairos.js +1 -3
- package/lib/commonjs/components/Onairos.js.map +1 -1
- package/lib/commonjs/components/OnairosButton.js +171 -190
- package/lib/commonjs/components/OnairosButton.js.map +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +169 -0
- package/lib/commonjs/components/OnairosSignInButton.js.map +1 -0
- package/lib/commonjs/components/Overlay.js +5 -5
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/PersonaImage.js +60 -0
- package/lib/commonjs/components/PersonaImage.js.map +1 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js +156 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js.map +1 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js +316 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js.map +1 -0
- package/lib/commonjs/components/PinCreationScreen.js +393 -0
- package/lib/commonjs/components/PinCreationScreen.js.map +1 -0
- package/lib/commonjs/components/PinInput.js +282 -120
- package/lib/commonjs/components/PinInput.js.map +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +828 -0
- package/lib/commonjs/components/PlatformConnectorsStep.js.map +1 -0
- package/lib/commonjs/components/PlatformToggle.js +180 -0
- package/lib/commonjs/components/PlatformToggle.js.map +1 -0
- package/lib/commonjs/components/PrimaryButton.js +180 -0
- package/lib/commonjs/components/PrimaryButton.js.map +1 -0
- package/lib/commonjs/components/SignInMatchAnimation.js +197 -0
- package/lib/commonjs/components/SignInMatchAnimation.js.map +1 -0
- package/lib/commonjs/components/SignInStep.js +179 -0
- package/lib/commonjs/components/SignInStep.js.map +1 -0
- package/lib/commonjs/components/TrainingModal.js +808 -563
- package/lib/commonjs/components/TrainingModal.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +2304 -1283
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/components/VerificationStep.js +154 -0
- package/lib/commonjs/components/VerificationStep.js.map +1 -0
- package/lib/commonjs/components/WelcomeScreen.js +385 -0
- package/lib/commonjs/components/WelcomeScreen.js.map +1 -0
- package/lib/commonjs/components/icons/Basicproficon.js +37 -0
- package/lib/commonjs/components/icons/Basicproficon.js.map +1 -0
- package/lib/commonjs/components/icons/Basicprofile.js +21 -0
- package/lib/commonjs/components/icons/Basicprofile.js.map +1 -0
- package/lib/commonjs/components/icons/Checkbox.js +21 -0
- package/lib/commonjs/components/icons/Checkbox.js.map +1 -0
- package/lib/commonjs/components/icons/Checkmark.js +27 -0
- package/lib/commonjs/components/icons/Checkmark.js.map +1 -0
- package/lib/commonjs/components/icons/Contentanalysis.js +21 -0
- package/lib/commonjs/components/icons/Contentanalysis.js.map +1 -0
- package/lib/commonjs/components/icons/Contenticon.js +39 -0
- package/lib/commonjs/components/icons/Contenticon.js.map +1 -0
- package/lib/commonjs/components/icons/EnochE.js +41 -0
- package/lib/commonjs/components/icons/EnochE.js.map +1 -0
- package/lib/commonjs/components/icons/Personalityicon.js +30 -0
- package/lib/commonjs/components/icons/Personalityicon.js.map +1 -0
- package/lib/commonjs/components/icons/Personalityprofile.js +21 -0
- package/lib/commonjs/components/icons/Personalityprofile.js.map +1 -0
- package/lib/commonjs/components/icons/Personalitytraits.js +21 -0
- package/lib/commonjs/components/icons/Personalitytraits.js.map +1 -0
- package/lib/commonjs/components/icons/Userpreferences.js +21 -0
- package/lib/commonjs/components/icons/Userpreferences.js.map +1 -0
- package/lib/commonjs/components/icons/index.js +84 -0
- package/lib/commonjs/components/icons/index.js.map +1 -0
- package/lib/commonjs/components/onboarding/OAuthWebView.js +134 -743
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/commonjs/config/api.js +34 -0
- package/lib/commonjs/config/api.js.map +1 -0
- package/lib/commonjs/context/AuthContext.js +345 -0
- package/lib/commonjs/context/AuthContext.js.map +1 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js +111 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js.map +1 -0
- package/lib/commonjs/hooks/useConnections.js +120 -125
- package/lib/commonjs/hooks/useConnections.js.map +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +148 -0
- package/lib/commonjs/hooks/useUserConnections.js.map +1 -0
- package/lib/commonjs/index.js +149 -27
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/apiClient.js +302 -0
- package/lib/commonjs/services/apiClient.js.map +1 -0
- package/lib/commonjs/services/apiKeyService.js +8 -9
- package/lib/commonjs/services/apiKeyService.js.map +1 -1
- package/lib/commonjs/services/authService.js +935 -0
- package/lib/commonjs/services/authService.js.map +1 -0
- package/lib/commonjs/services/biometricPinService.js +184 -0
- package/lib/commonjs/services/biometricPinService.js.map +1 -0
- package/lib/commonjs/services/connectedAccountsService.js +268 -0
- package/lib/commonjs/services/connectedAccountsService.js.map +1 -0
- package/lib/commonjs/services/googleAuthService.js +268 -0
- package/lib/commonjs/services/googleAuthService.js.map +1 -0
- package/lib/commonjs/services/imageCompressionService.js +260 -0
- package/lib/commonjs/services/imageCompressionService.js.map +1 -0
- package/lib/commonjs/services/jwtStorageService.js +256 -0
- package/lib/commonjs/services/jwtStorageService.js.map +1 -0
- package/lib/commonjs/services/mobileTrainingService.js +185 -0
- package/lib/commonjs/services/mobileTrainingService.js.map +1 -0
- package/lib/commonjs/services/pinEncryptionService.js +84 -0
- package/lib/commonjs/services/pinEncryptionService.js.map +1 -0
- package/lib/commonjs/services/pinStorageUtils.js +105 -0
- package/lib/commonjs/services/pinStorageUtils.js.map +1 -0
- package/lib/commonjs/services/platformAuthService.js +956 -722
- package/lib/commonjs/services/platformAuthService.js.map +1 -1
- package/lib/commonjs/services/storageService.js +404 -0
- package/lib/commonjs/services/storageService.js.map +1 -0
- package/lib/commonjs/services/trainingApiHelpers.js +73 -0
- package/lib/commonjs/services/trainingApiHelpers.js.map +1 -0
- package/lib/commonjs/services/userConnectionsService.js +486 -0
- package/lib/commonjs/services/userConnectionsService.js.map +1 -0
- package/lib/commonjs/services/youtubeMigrationService.js +415 -0
- package/lib/commonjs/services/youtubeMigrationService.js.map +1 -0
- package/lib/commonjs/theme/index.js +249 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/utils/eventUtils.js +288 -0
- package/lib/commonjs/utils/eventUtils.js.map +1 -0
- package/lib/commonjs/utils/haptics.js +66 -0
- package/lib/commonjs/utils/haptics.js.map +1 -0
- package/lib/commonjs/utils/imagePreloader.js +6 -0
- package/lib/commonjs/utils/imagePreloader.js.map +1 -0
- package/lib/module/api/index.js +72 -0
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/module/assets/icons/Facebookicon.png +0 -0
- package/lib/module/assets/icons/Gmail.png +0 -0
- package/lib/module/assets/icons/Linkedinicon.png +0 -0
- package/lib/module/assets/icons/Redditicon.png +0 -0
- package/lib/module/assets/icons/YouTubeicon2.png +0 -0
- package/lib/module/assets/icons/YouTubeicon3.png +0 -0
- package/lib/module/assets/icons/farcaster.png +0 -0
- package/lib/module/assets/icons/instagram.png +0 -0
- package/lib/module/assets/icons/pinterest.png +0 -0
- package/lib/module/assets/icons/swerv_logo.png +0 -0
- package/lib/module/assets/icons/twitter.jpg +0 -0
- package/lib/module/assets/images/Checkbox.svg +3 -0
- package/lib/module/assets/images/EnochE.svg +19 -0
- package/lib/module/assets/images/Enochicon1.png +0 -0
- package/lib/module/assets/images/Face_ID_logo.png +0 -0
- package/lib/module/assets/images/Facebookicon.png +0 -0
- package/lib/module/assets/images/Gmail.png +0 -0
- package/lib/module/assets/images/Googlelogo.png +0 -0
- package/lib/module/assets/images/Linkedinicon.png +0 -0
- package/lib/module/assets/images/Onairoslogo.png +0 -0
- package/lib/module/assets/images/Personalityprofile.svg +3 -0
- package/lib/module/assets/images/Personalitytraits.svg +3 -0
- package/lib/module/assets/images/Redditicon.png +0 -0
- package/lib/module/assets/images/Userpreferences.svg +3 -0
- package/lib/module/assets/images/YouTubeicon3.png +0 -0
- package/lib/module/assets/images/arrow.svg +20 -0
- package/lib/module/assets/images/basicproficon.svg +43 -0
- package/lib/module/assets/images/basicprofile.svg +3 -0
- package/lib/module/assets/images/checkmark.svg +4 -0
- package/lib/module/assets/images/contentanalysis.svg +3 -0
- package/lib/module/assets/images/contenticon.svg +23 -0
- package/lib/module/assets/images/persona1.png +0 -0
- package/lib/module/assets/images/persona2.png +0 -0
- package/lib/module/assets/images/persona3.png +0 -0
- package/lib/module/assets/images/persona4.png +0 -0
- package/lib/module/assets/images/persona5.png +0 -0
- package/lib/module/assets/images/personalityicon.svg +18 -0
- package/lib/module/assets/images/x-close.svg +3 -0
- package/lib/module/components/BodyText.js +20 -0
- package/lib/module/components/BodyText.js.map +1 -0
- package/lib/module/components/BrandMark.js +37 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/CodeInput.js +23 -0
- package/lib/module/components/CodeInput.js.map +1 -0
- package/lib/module/components/EmailInput.js +23 -0
- package/lib/module/components/EmailInput.js.map +1 -0
- package/lib/module/components/ExistingUserDataConfirmation.js +465 -0
- package/lib/module/components/ExistingUserDataConfirmation.js.map +1 -0
- package/lib/module/components/GoogleButton.js +48 -0
- package/lib/module/components/GoogleButton.js.map +1 -0
- package/lib/module/components/HeadingGroup.js +36 -0
- package/lib/module/components/HeadingGroup.js.map +1 -0
- package/lib/module/components/ModalHeader.js +92 -0
- package/lib/module/components/ModalHeader.js.map +1 -0
- package/lib/module/components/ModalSheet.js +34 -0
- package/lib/module/components/ModalSheet.js.map +1 -0
- package/lib/module/components/Onairos.js +1 -3
- package/lib/module/components/Onairos.js.map +1 -1
- package/lib/module/components/OnairosButton.js +172 -192
- package/lib/module/components/OnairosButton.js.map +1 -1
- package/lib/module/components/OnairosSignInButton.js +160 -0
- package/lib/module/components/OnairosSignInButton.js.map +1 -0
- package/lib/module/components/Overlay.js +5 -5
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/PersonaImage.js +53 -0
- package/lib/module/components/PersonaImage.js.map +1 -0
- package/lib/module/components/PersonaLoadingScreen.js +148 -0
- package/lib/module/components/PersonaLoadingScreen.js.map +1 -0
- package/lib/module/components/PersonalizationConsentScreen.js +309 -0
- package/lib/module/components/PersonalizationConsentScreen.js.map +1 -0
- package/lib/module/components/PinCreationScreen.js +386 -0
- package/lib/module/components/PinCreationScreen.js.map +1 -0
- package/lib/module/components/PinInput.js +283 -120
- package/lib/module/components/PinInput.js.map +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +820 -0
- package/lib/module/components/PlatformConnectorsStep.js.map +1 -0
- package/lib/module/components/PlatformToggle.js +173 -0
- package/lib/module/components/PlatformToggle.js.map +1 -0
- package/lib/module/components/PrimaryButton.js +172 -0
- package/lib/module/components/PrimaryButton.js.map +1 -0
- package/lib/module/components/SignInMatchAnimation.js +189 -0
- package/lib/module/components/SignInMatchAnimation.js.map +1 -0
- package/lib/module/components/SignInStep.js +171 -0
- package/lib/module/components/SignInStep.js.map +1 -0
- package/lib/module/components/TrainingModal.js +809 -565
- package/lib/module/components/TrainingModal.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +2307 -1284
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/components/VerificationStep.js +146 -0
- package/lib/module/components/VerificationStep.js.map +1 -0
- package/lib/module/components/WelcomeScreen.js +378 -0
- package/lib/module/components/WelcomeScreen.js.map +1 -0
- package/lib/module/components/icons/Basicproficon.js +30 -0
- package/lib/module/components/icons/Basicproficon.js.map +1 -0
- package/lib/module/components/icons/Basicprofile.js +14 -0
- package/lib/module/components/icons/Basicprofile.js.map +1 -0
- package/lib/module/components/icons/Checkbox.js +14 -0
- package/lib/module/components/icons/Checkbox.js.map +1 -0
- package/lib/module/components/icons/Checkmark.js +20 -0
- package/lib/module/components/icons/Checkmark.js.map +1 -0
- package/lib/module/components/icons/Contentanalysis.js +14 -0
- package/lib/module/components/icons/Contentanalysis.js.map +1 -0
- package/lib/module/components/icons/Contenticon.js +32 -0
- package/lib/module/components/icons/Contenticon.js.map +1 -0
- package/lib/module/components/icons/EnochE.js +34 -0
- package/lib/module/components/icons/EnochE.js.map +1 -0
- package/lib/module/components/icons/Personalityicon.js +23 -0
- package/lib/module/components/icons/Personalityicon.js.map +1 -0
- package/lib/module/components/icons/Personalityprofile.js +14 -0
- package/lib/module/components/icons/Personalityprofile.js.map +1 -0
- package/lib/module/components/icons/Personalitytraits.js +14 -0
- package/lib/module/components/icons/Personalitytraits.js.map +1 -0
- package/lib/module/components/icons/Userpreferences.js +14 -0
- package/lib/module/components/icons/Userpreferences.js.map +1 -0
- package/lib/module/components/icons/index.js +13 -0
- package/lib/module/components/icons/index.js.map +1 -0
- package/lib/module/components/onboarding/OAuthWebView.js +136 -744
- package/lib/module/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/module/config/api.js +26 -0
- package/lib/module/config/api.js.map +1 -0
- package/lib/module/context/AuthContext.js +335 -0
- package/lib/module/context/AuthContext.js.map +1 -0
- package/lib/module/hooks/useConnectedAccounts.js +106 -0
- package/lib/module/hooks/useConnectedAccounts.js.map +1 -0
- package/lib/module/hooks/useConnections.js +119 -125
- package/lib/module/hooks/useConnections.js.map +1 -1
- package/lib/module/hooks/useUserConnections.js +140 -0
- package/lib/module/hooks/useUserConnections.js.map +1 -0
- package/lib/module/index.js +51 -15
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/apiClient.js +298 -0
- package/lib/module/services/apiClient.js.map +1 -0
- package/lib/module/services/apiKeyService.js +8 -9
- package/lib/module/services/apiKeyService.js.map +1 -1
- package/lib/module/services/authService.js +905 -0
- package/lib/module/services/authService.js.map +1 -0
- package/lib/module/services/biometricPinService.js +173 -0
- package/lib/module/services/biometricPinService.js.map +1 -0
- package/lib/module/services/connectedAccountsService.js +255 -0
- package/lib/module/services/connectedAccountsService.js.map +1 -0
- package/lib/module/services/googleAuthService.js +258 -0
- package/lib/module/services/googleAuthService.js.map +1 -0
- package/lib/module/services/imageCompressionService.js +250 -0
- package/lib/module/services/imageCompressionService.js.map +1 -0
- package/lib/module/services/jwtStorageService.js +239 -0
- package/lib/module/services/jwtStorageService.js.map +1 -0
- package/lib/module/services/mobileTrainingService.js +172 -0
- package/lib/module/services/mobileTrainingService.js.map +1 -0
- package/lib/module/services/pinEncryptionService.js +75 -0
- package/lib/module/services/pinEncryptionService.js.map +1 -0
- package/lib/module/services/pinStorageUtils.js +93 -0
- package/lib/module/services/pinStorageUtils.js.map +1 -0
- package/lib/module/services/platformAuthService.js +943 -704
- package/lib/module/services/platformAuthService.js.map +1 -1
- package/lib/module/services/storageService.js +383 -0
- package/lib/module/services/storageService.js.map +1 -0
- package/lib/module/services/trainingApiHelpers.js +67 -0
- package/lib/module/services/trainingApiHelpers.js.map +1 -0
- package/lib/module/services/userConnectionsService.js +476 -0
- package/lib/module/services/userConnectionsService.js.map +1 -0
- package/lib/module/services/youtubeMigrationService.js +404 -0
- package/lib/module/services/youtubeMigrationService.js.map +1 -0
- package/lib/module/theme/index.js +244 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/utils/eventUtils.js +270 -0
- package/lib/module/utils/eventUtils.js.map +1 -0
- package/lib/module/utils/haptics.js +59 -0
- package/lib/module/utils/haptics.js.map +1 -0
- package/lib/module/utils/imagePreloader.js +3 -0
- package/lib/module/utils/imagePreloader.js.map +1 -0
- package/lib/typescript/api/index.d.ts +8 -0
- package/lib/typescript/api/index.d.ts.map +1 -1
- package/lib/typescript/components/BodyText.d.ts +10 -0
- package/lib/typescript/components/BodyText.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +11 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/CodeInput.d.ts +10 -0
- package/lib/typescript/components/CodeInput.d.ts.map +1 -0
- package/lib/typescript/components/EmailInput.d.ts +8 -0
- package/lib/typescript/components/EmailInput.d.ts.map +1 -0
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts +12 -0
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts.map +1 -0
- package/lib/typescript/components/GoogleButton.d.ts +11 -0
- package/lib/typescript/components/GoogleButton.d.ts.map +1 -0
- package/lib/typescript/components/HeadingGroup.d.ts +11 -0
- package/lib/typescript/components/HeadingGroup.d.ts.map +1 -0
- package/lib/typescript/components/ModalHeader.d.ts +11 -0
- package/lib/typescript/components/ModalHeader.d.ts.map +1 -0
- package/lib/typescript/components/ModalSheet.d.ts +13 -0
- package/lib/typescript/components/ModalSheet.d.ts.map +1 -0
- package/lib/typescript/components/Onairos.d.ts.map +1 -1
- package/lib/typescript/components/OnairosButton.d.ts +29 -4
- package/lib/typescript/components/OnairosButton.d.ts.map +1 -1
- package/lib/typescript/components/OnairosSignInButton.d.ts +14 -0
- package/lib/typescript/components/OnairosSignInButton.d.ts.map +1 -0
- package/lib/typescript/components/PersonaImage.d.ts +8 -0
- package/lib/typescript/components/PersonaImage.d.ts.map +1 -0
- package/lib/typescript/components/PersonaLoadingScreen.d.ts +10 -0
- package/lib/typescript/components/PersonaLoadingScreen.d.ts.map +1 -0
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts +10 -0
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts.map +1 -0
- package/lib/typescript/components/PinCreationScreen.d.ts +10 -0
- package/lib/typescript/components/PinCreationScreen.d.ts.map +1 -0
- package/lib/typescript/components/PinInput.d.ts +11 -1
- package/lib/typescript/components/PinInput.d.ts.map +1 -1
- package/lib/typescript/components/PlatformConnectorsStep.d.ts +11 -0
- package/lib/typescript/components/PlatformConnectorsStep.d.ts.map +1 -0
- package/lib/typescript/components/PlatformToggle.d.ts +20 -0
- package/lib/typescript/components/PlatformToggle.d.ts.map +1 -0
- package/lib/typescript/components/PrimaryButton.d.ts +22 -0
- package/lib/typescript/components/PrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/SignInMatchAnimation.d.ts +9 -0
- package/lib/typescript/components/SignInMatchAnimation.d.ts.map +1 -0
- package/lib/typescript/components/SignInStep.d.ts +12 -0
- package/lib/typescript/components/SignInStep.d.ts.map +1 -0
- package/lib/typescript/components/TrainingModal.d.ts +12 -1
- package/lib/typescript/components/TrainingModal.d.ts.map +1 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts +14 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +1 -1
- package/lib/typescript/components/VerificationStep.d.ts +13 -0
- package/lib/typescript/components/VerificationStep.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeScreen.d.ts +9 -0
- package/lib/typescript/components/WelcomeScreen.d.ts.map +1 -0
- package/lib/typescript/components/icons/Basicproficon.d.ts +5 -0
- package/lib/typescript/components/icons/Basicproficon.d.ts.map +1 -0
- package/lib/typescript/components/icons/Basicprofile.d.ts +5 -0
- package/lib/typescript/components/icons/Basicprofile.d.ts.map +1 -0
- package/lib/typescript/components/icons/Checkbox.d.ts +5 -0
- package/lib/typescript/components/icons/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/icons/Checkmark.d.ts +5 -0
- package/lib/typescript/components/icons/Checkmark.d.ts.map +1 -0
- package/lib/typescript/components/icons/Contentanalysis.d.ts +5 -0
- package/lib/typescript/components/icons/Contentanalysis.d.ts.map +1 -0
- package/lib/typescript/components/icons/Contenticon.d.ts +5 -0
- package/lib/typescript/components/icons/Contenticon.d.ts.map +1 -0
- package/lib/typescript/components/icons/EnochE.d.ts +5 -0
- package/lib/typescript/components/icons/EnochE.d.ts.map +1 -0
- package/lib/typescript/components/icons/Personalityicon.d.ts +5 -0
- package/lib/typescript/components/icons/Personalityicon.d.ts.map +1 -0
- package/lib/typescript/components/icons/Personalityprofile.d.ts +5 -0
- package/lib/typescript/components/icons/Personalityprofile.d.ts.map +1 -0
- package/lib/typescript/components/icons/Personalitytraits.d.ts +5 -0
- package/lib/typescript/components/icons/Personalitytraits.d.ts.map +1 -0
- package/lib/typescript/components/icons/Userpreferences.d.ts +5 -0
- package/lib/typescript/components/icons/Userpreferences.d.ts.map +1 -0
- package/lib/typescript/components/icons/index.d.ts +12 -0
- package/lib/typescript/components/icons/index.d.ts.map +1 -0
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +1 -1
- package/lib/typescript/config/api.d.ts +24 -0
- package/lib/typescript/config/api.d.ts.map +1 -0
- package/lib/typescript/context/AuthContext.d.ts +34 -0
- package/lib/typescript/context/AuthContext.d.ts.map +1 -0
- package/lib/typescript/hooks/useConnectedAccounts.d.ts +11 -0
- package/lib/typescript/hooks/useConnectedAccounts.d.ts.map +1 -0
- package/lib/typescript/hooks/useConnections.d.ts +10 -5
- package/lib/typescript/hooks/useConnections.d.ts.map +1 -1
- package/lib/typescript/hooks/useUserConnections.d.ts +12 -0
- package/lib/typescript/hooks/useUserConnections.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +24 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/services/apiClient.d.ts +91 -0
- package/lib/typescript/services/apiClient.d.ts.map +1 -0
- package/lib/typescript/services/apiKeyService.d.ts.map +1 -1
- package/lib/typescript/services/authService.d.ts +216 -0
- package/lib/typescript/services/authService.d.ts.map +1 -0
- package/lib/typescript/services/biometricPinService.d.ts +29 -0
- package/lib/typescript/services/biometricPinService.d.ts.map +1 -0
- package/lib/typescript/services/connectedAccountsService.d.ts +56 -0
- package/lib/typescript/services/connectedAccountsService.d.ts.map +1 -0
- package/lib/typescript/services/googleAuthService.d.ts +63 -0
- package/lib/typescript/services/googleAuthService.d.ts.map +1 -0
- package/lib/typescript/services/imageCompressionService.d.ts +37 -0
- package/lib/typescript/services/imageCompressionService.d.ts.map +1 -0
- package/lib/typescript/services/jwtStorageService.d.ts +86 -0
- package/lib/typescript/services/jwtStorageService.d.ts.map +1 -0
- package/lib/typescript/services/mobileTrainingService.d.ts +45 -0
- package/lib/typescript/services/mobileTrainingService.d.ts.map +1 -0
- package/lib/typescript/services/pinEncryptionService.d.ts +17 -0
- package/lib/typescript/services/pinEncryptionService.d.ts.map +1 -0
- package/lib/typescript/services/pinStorageUtils.d.ts +25 -0
- package/lib/typescript/services/pinStorageUtils.d.ts.map +1 -0
- package/lib/typescript/services/platformAuthService.d.ts +34 -109
- package/lib/typescript/services/platformAuthService.d.ts.map +1 -1
- package/lib/typescript/services/storageService.d.ts +128 -0
- package/lib/typescript/services/storageService.d.ts.map +1 -0
- package/lib/typescript/services/trainingApiHelpers.d.ts +38 -0
- package/lib/typescript/services/trainingApiHelpers.d.ts.map +1 -0
- package/lib/typescript/services/userConnectionsService.d.ts +90 -0
- package/lib/typescript/services/userConnectionsService.d.ts.map +1 -0
- package/lib/typescript/services/youtubeMigrationService.d.ts +12 -0
- package/lib/typescript/services/youtubeMigrationService.d.ts.map +1 -0
- package/lib/typescript/theme/index.d.ts +416 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +39 -0
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/utils/eventUtils.d.ts +108 -0
- package/lib/typescript/utils/eventUtils.d.ts.map +1 -0
- package/lib/typescript/utils/haptics.d.ts +11 -0
- package/lib/typescript/utils/haptics.d.ts.map +1 -0
- package/lib/typescript/utils/imagePreloader.d.ts +2 -0
- package/lib/typescript/utils/imagePreloader.d.ts.map +1 -0
- package/package.json +158 -145
- package/src/api/index.ts +41 -0
- package/src/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/src/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/src/assets/icons/Facebookicon.png +0 -0
- package/src/assets/icons/Gmail.png +0 -0
- package/src/assets/icons/Linkedinicon.png +0 -0
- package/src/assets/icons/Redditicon.png +0 -0
- package/src/assets/icons/YouTubeicon2.png +0 -0
- package/src/assets/icons/YouTubeicon3.png +0 -0
- package/src/assets/icons/farcaster.png +0 -0
- package/src/assets/icons/instagram.png +0 -0
- package/src/assets/icons/pinterest.png +0 -0
- package/src/assets/icons/swerv_logo.png +0 -0
- package/src/assets/icons/twitter.jpg +0 -0
- package/src/assets/images/Checkbox.svg +3 -0
- package/src/assets/images/EnochE.svg +19 -0
- package/src/assets/images/Enochicon1.png +0 -0
- package/src/assets/images/Face_ID_logo.png +0 -0
- package/src/assets/images/Facebookicon.png +0 -0
- package/src/assets/images/Gmail.png +0 -0
- package/src/assets/images/Googlelogo.png +0 -0
- package/src/assets/images/Linkedinicon.png +0 -0
- package/src/assets/images/Onairoslogo.png +0 -0
- package/src/assets/images/Personalityprofile.svg +3 -0
- package/src/assets/images/Personalitytraits.svg +3 -0
- package/src/assets/images/Redditicon.png +0 -0
- package/src/assets/images/Userpreferences.svg +3 -0
- package/src/assets/images/YouTubeicon3.png +0 -0
- package/src/assets/images/arrow.svg +20 -0
- package/src/assets/images/basicproficon.svg +43 -0
- package/src/assets/images/basicprofile.svg +3 -0
- package/src/assets/images/checkmark.svg +4 -0
- package/src/assets/images/contentanalysis.svg +3 -0
- package/src/assets/images/contenticon.svg +23 -0
- package/src/assets/images/persona1.png +0 -0
- package/src/assets/images/persona2.png +0 -0
- package/src/assets/images/persona3.png +0 -0
- package/src/assets/images/persona4.png +0 -0
- package/src/assets/images/persona5.png +0 -0
- package/src/assets/images/personalityicon.svg +18 -0
- package/src/assets/images/x-close.svg +3 -0
- package/src/components/BodyText.tsx +33 -0
- package/src/components/BrandMark.tsx +62 -0
- package/src/components/CodeInput.tsx +32 -0
- package/src/components/EmailInput.tsx +31 -0
- package/src/components/ExistingUserDataConfirmation.tsx +507 -0
- package/src/components/GoogleButton.tsx +55 -0
- package/src/components/HeadingGroup.tsx +49 -0
- package/src/components/ModalHeader.tsx +125 -0
- package/src/components/ModalSheet.tsx +57 -0
- package/src/components/Onairos.tsx +422 -424
- package/src/components/OnairosButton.tsx +339 -359
- package/src/components/OnairosSignInButton.tsx +166 -0
- package/src/components/Overlay.tsx +506 -506
- package/src/components/PersonaImage.tsx +79 -0
- package/src/components/PersonaLoadingScreen.tsx +201 -0
- package/src/components/PersonalizationConsentScreen.tsx +410 -0
- package/src/components/PinCreationScreen.tsx +492 -0
- package/src/components/PinInput.tsx +555 -343
- package/src/components/PlatformConnectorsStep.tsx +892 -0
- package/src/components/PlatformToggle.tsx +226 -0
- package/src/components/PrimaryButton.tsx +214 -0
- package/src/components/SignInMatchAnimation.tsx +225 -0
- package/src/components/SignInStep.tsx +217 -0
- package/src/components/TrainingModal.tsx +1047 -737
- package/src/components/UniversalOnboarding.tsx +2888 -1820
- package/src/components/VerificationStep.tsx +198 -0
- package/src/components/WelcomeScreen.tsx +473 -0
- package/src/components/icons/Basicproficon.tsx +30 -0
- package/src/components/icons/Basicprofile.tsx +17 -0
- package/src/components/icons/Checkbox.tsx +17 -0
- package/src/components/icons/Checkmark.tsx +24 -0
- package/src/components/icons/Contentanalysis.tsx +17 -0
- package/src/components/icons/Contenticon.tsx +30 -0
- package/src/components/icons/EnochE.tsx +39 -0
- package/src/components/icons/Personalityicon.tsx +22 -0
- package/src/components/icons/Personalityprofile.tsx +17 -0
- package/src/components/icons/Personalitytraits.tsx +17 -0
- package/src/components/icons/Userpreferences.tsx +17 -0
- package/src/components/icons/index.ts +12 -0
- package/src/components/onboarding/OAuthWebView.tsx +232 -838
- package/src/config/api.ts +25 -0
- package/src/context/AuthContext.tsx +393 -0
- package/src/hooks/useConnectedAccounts.ts +139 -0
- package/src/hooks/useConnections.ts +129 -131
- package/src/hooks/useUserConnections.ts +166 -0
- package/src/index.ts +94 -49
- package/src/services/apiClient.ts +337 -0
- package/src/services/apiKeyService.ts +9 -11
- package/src/services/authService.ts +1008 -0
- package/src/services/biometricPinService.ts +193 -0
- package/src/services/connectedAccountsService.ts +290 -0
- package/src/services/googleAuthService.ts +279 -0
- package/src/services/imageCompressionService.ts +303 -0
- package/src/services/jwtStorageService.ts +257 -0
- package/src/services/mobileTrainingService.ts +204 -0
- package/src/services/pinEncryptionService.ts +76 -0
- package/src/services/pinStorageUtils.ts +97 -0
- package/src/services/platformAuthService.ts +1346 -1113
- package/src/services/storageService.ts +452 -0
- package/src/services/trainingApiHelpers.ts +67 -0
- package/src/services/userConnectionsService.ts +557 -0
- package/src/services/youtubeMigrationService.ts +454 -0
- package/src/theme/index.ts +239 -0
- package/src/types/index.ts +265 -238
- package/src/utils/eventUtils.ts +303 -0
- package/src/utils/haptics.ts +59 -0
- package/src/utils/imagePreloader.ts +2 -0
- package/README.md +0 -375
- package/lib/commonjs/assets/images/email.png +0 -0
- package/lib/commonjs/assets/images/linkedin.png +0 -0
- package/lib/commonjs/assets/images/reddit.png +0 -0
- package/lib/commonjs/assets/images/youtube.png +0 -0
- package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/module/assets/images/email.png +0 -0
- package/lib/module/assets/images/linkedin.png +0 -0
- package/lib/module/assets/images/reddit.png +0 -0
- package/lib/module/assets/images/youtube.png +0 -0
- package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
- package/src/assets/images/email.png +0 -0
- package/src/assets/images/linkedin.png +0 -0
- package/src/assets/images/reddit.png +0 -0
- package/src/assets/images/youtube.png +0 -0
- package/src/components/UniversalOnboarding.tsx.new +0 -455
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobileTrainingService.d.ts","sourceRoot":"","sources":["../../../src/services/mobileTrainingService.ts"],"names":[],"mappings":"AAMA;;;GAGG;AAGH,eAAO,MAAM,iBAAiB,aAAoB,MAAM,iBAyBvD,CAAC;AAGF,eAAO,MAAM,YAAY,oBAyBxB,CAAC;AAGF,eAAO,MAAM,cAAc,oBAmB1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,iBAAwB;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,iBAkBA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,iBAAwB;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,iBAyCA,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,aAAoB,MAAM,KAAG,QAAQ,OAAO,CAQ5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,oBAQ/B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encrypt PIN using AES encryption
|
|
3
|
+
*/
|
|
4
|
+
export declare const encryptPin: (pin: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Decrypt PIN (for verification purposes)
|
|
7
|
+
*/
|
|
8
|
+
export declare const decryptPin: (encryptedPin: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Get encrypted PIN for API transmission
|
|
11
|
+
*/
|
|
12
|
+
export declare const getEncryptedPinForAPI: () => Promise<string | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Hash PIN for verification (one-way hash)
|
|
15
|
+
*/
|
|
16
|
+
export declare const hashPin: (pin: string) => string;
|
|
17
|
+
//# sourceMappingURL=pinEncryptionService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinEncryptionService.d.ts","sourceRoot":"","sources":["../../../src/services/pinEncryptionService.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,UAAU,QAAS,MAAM,KAAG,MASxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,iBAAkB,MAAM,KAAG,MAUjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAa,QAAQ,MAAM,GAAG,IAAI,CAmBnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,QAAS,MAAM,KAAG,MASrC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for PIN storage management
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Get the stored PIN for training/authentication purposes
|
|
6
|
+
* This will prompt for biometric authentication
|
|
7
|
+
*/
|
|
8
|
+
export declare const getStoredPinForTraining: () => Promise<string | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Check if user has a PIN stored securely
|
|
11
|
+
*/
|
|
12
|
+
export declare const hasStoredPin: () => Promise<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Remove stored PIN (for logout/reset purposes)
|
|
15
|
+
*/
|
|
16
|
+
export declare const clearStoredPin: () => Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Get PIN for passing to training component
|
|
19
|
+
* This function can be called from the onboarding flow
|
|
20
|
+
*/
|
|
21
|
+
export declare const getPinForTraining: (tempPin?: string) => Promise<string | null>;
|
|
22
|
+
export declare const setTemporaryPin: (pin: string) => void;
|
|
23
|
+
export declare const getTemporaryPin: () => string | null;
|
|
24
|
+
export declare const clearTemporaryPin: () => void;
|
|
25
|
+
//# sourceMappingURL=pinStorageUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinStorageUtils.d.ts","sourceRoot":"","sources":["../../../src/services/pinStorageUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAa,QAAQ,MAAM,GAAG,IAAI,CA0BrE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,QAAa,QAAQ,OAAO,CAOpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,QAAa,QAAQ,OAAO,CAQtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAAoB,MAAM,KAAG,QAAQ,MAAM,GAAG,IAAI,CAS/E,CAAC;AAQF,eAAO,MAAM,eAAe,QAAS,MAAM,KAAG,IAG7C,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,MAAM,GAAG,IAE3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,IAGpC,CAAC"}
|
|
@@ -1,144 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Platform Authentication Service
|
|
3
|
+
* Handles OAuth flows for different platforms
|
|
4
4
|
*/
|
|
5
|
-
export declare const initializePlatformAuthService: () => Promise<void>;
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* Check if the platform has a native SDK
|
|
8
7
|
*/
|
|
9
8
|
export declare const hasNativeSDK: (platform: string) => boolean;
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
10
|
+
* Initiate OAuth flow for a platform
|
|
12
11
|
*/
|
|
13
|
-
export declare const
|
|
12
|
+
export declare const initiateOAuth: (platform: string, username: string) => Promise<string | null>;
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
* Force YouTube reconnection with consent screen to get refresh tokens
|
|
15
|
+
* This is the key function to fix YouTube token expiry issues
|
|
16
16
|
*/
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const forceYouTubeReconnectionWithConsent: (username: string) => Promise<boolean>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @param platform The platform to authenticate with
|
|
21
|
-
* @param username The username to associate with the authentication
|
|
22
|
-
* @param appName The app name to use for the OAuth session (optional)
|
|
23
|
-
* @returns A Promise that resolves to the OAuth URL to open in a WebView or null if using native SDK
|
|
19
|
+
* Alternative method: Force consent by revoking existing permissions
|
|
24
20
|
*/
|
|
25
|
-
export declare const
|
|
21
|
+
export declare const forceYouTubeReconnectionWithRevoke: (username: string) => Promise<boolean>;
|
|
26
22
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @param platform The platform to authenticate with
|
|
29
|
-
* @returns A Promise that resolves to the authentication result
|
|
23
|
+
* Fix YouTube connection for a specific user (like nicholase50)
|
|
30
24
|
*/
|
|
31
|
-
export declare const
|
|
25
|
+
export declare const fixUserYouTubeConnection: (username: string) => Promise<boolean>;
|
|
32
26
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @param url The callback URL
|
|
35
|
-
* @returns The authorization code extracted from the URL
|
|
27
|
+
* Force fresh YouTube reconnection with proper refresh token
|
|
36
28
|
*/
|
|
37
|
-
export declare const
|
|
29
|
+
export declare const reconnectYouTube: (username: string) => Promise<boolean>;
|
|
38
30
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param url The URL to check
|
|
41
|
-
* @returns True if the URL is an OAuth callback
|
|
31
|
+
* Initiate native authentication for platforms with SDKs
|
|
42
32
|
*/
|
|
43
|
-
export declare const
|
|
33
|
+
export declare const initiateNativeAuth: (platform: string, username?: string) => Promise<boolean>;
|
|
44
34
|
/**
|
|
45
|
-
*
|
|
35
|
+
* Check if a URL is an OAuth callback
|
|
46
36
|
*/
|
|
47
|
-
export declare const
|
|
48
|
-
success: boolean;
|
|
49
|
-
error?: string;
|
|
50
|
-
}>;
|
|
37
|
+
export declare const isOAuthCallback: (url: string) => boolean;
|
|
51
38
|
/**
|
|
52
|
-
*
|
|
39
|
+
* Exchange authorization code for access token
|
|
40
|
+
* This would typically be done on a server, but we're simulating it here
|
|
53
41
|
*/
|
|
54
|
-
export declare const
|
|
55
|
-
accessToken: string;
|
|
56
|
-
idToken?: string;
|
|
57
|
-
} | null>;
|
|
42
|
+
export declare const exchangeCodeForToken: (code: string, platform: string) => Promise<any>;
|
|
58
43
|
/**
|
|
59
|
-
*
|
|
44
|
+
* Refresh YouTube tokens when they expire
|
|
45
|
+
* This should be called when the backend reports token expiry
|
|
60
46
|
*/
|
|
61
47
|
export declare const refreshYouTubeTokens: () => Promise<boolean>;
|
|
62
48
|
/**
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
export declare const handleOAuthCallbackUrl: (url: string) => {
|
|
66
|
-
platform?: string;
|
|
67
|
-
code?: string;
|
|
68
|
-
success: boolean;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* 🔧 UPDATE GOOGLE CLIENT IDS
|
|
72
|
-
* Allows apps to configure their own Google client IDs
|
|
73
|
-
*/
|
|
74
|
-
export declare const updateGoogleClientIds: (config: {
|
|
75
|
-
webClientId?: string;
|
|
76
|
-
iosClientId?: string;
|
|
77
|
-
}) => void;
|
|
78
|
-
/**
|
|
79
|
-
* Request email verification using developer API key
|
|
80
|
-
* @param email Email address to verify
|
|
81
|
-
* @param testMode Whether to use test mode
|
|
82
|
-
* @returns Promise with verification result
|
|
83
|
-
*/
|
|
84
|
-
export declare const requestEmailVerification: (email: string, testMode?: boolean) => Promise<{
|
|
85
|
-
success: boolean;
|
|
86
|
-
message?: string;
|
|
87
|
-
error?: string;
|
|
88
|
-
}>;
|
|
89
|
-
/**
|
|
90
|
-
* Verify email code and store JWT token
|
|
91
|
-
* @param email Email address
|
|
92
|
-
* @param code Verification code
|
|
93
|
-
* @param testMode Whether to use test mode
|
|
94
|
-
* @returns Promise with verification result and JWT token
|
|
95
|
-
*/
|
|
96
|
-
export declare const verifyEmailCode: (email: string, code: string, testMode?: boolean) => Promise<{
|
|
97
|
-
success: boolean;
|
|
98
|
-
message?: string;
|
|
99
|
-
error?: string;
|
|
100
|
-
existingUser?: boolean;
|
|
101
|
-
token?: string;
|
|
102
|
-
}>;
|
|
103
|
-
/**
|
|
104
|
-
* Check email verification status
|
|
105
|
-
* @param email Email address
|
|
106
|
-
* @param testMode Whether to use test mode
|
|
107
|
-
* @returns Promise with status result
|
|
49
|
+
* Test function to verify YouTube refresh token functionality
|
|
50
|
+
* Call this in your app to test the YouTube connection
|
|
108
51
|
*/
|
|
109
|
-
export declare const
|
|
110
|
-
success: boolean;
|
|
111
|
-
isPending?: boolean;
|
|
112
|
-
error?: string;
|
|
113
|
-
}>;
|
|
52
|
+
export declare const testYouTubeRefreshToken: (username: string) => Promise<void>;
|
|
114
53
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @param platform Platform to disconnect
|
|
117
|
-
* @param username Username associated with the platform
|
|
118
|
-
* @returns Promise with disconnect result
|
|
54
|
+
* Request email verification code
|
|
119
55
|
*/
|
|
120
|
-
export declare const
|
|
121
|
-
success: boolean;
|
|
122
|
-
error?: string;
|
|
123
|
-
}>;
|
|
56
|
+
export declare const requestEmailVerification: (email: string, testMode?: boolean) => Promise<any>;
|
|
124
57
|
/**
|
|
125
|
-
*
|
|
126
|
-
* @param pin User PIN
|
|
127
|
-
* @param username Optional username (if not provided, extracts from JWT)
|
|
128
|
-
* @returns Promise with result
|
|
58
|
+
* Verify email code
|
|
129
59
|
*/
|
|
130
|
-
export declare const
|
|
131
|
-
success: boolean;
|
|
132
|
-
error?: string;
|
|
133
|
-
}>;
|
|
60
|
+
export declare const verifyEmailCode: (email: string, code: string, testMode?: boolean) => Promise<any>;
|
|
134
61
|
/**
|
|
135
|
-
*
|
|
136
|
-
* Helper function to retrieve stored JWT token from email verification or other sources
|
|
62
|
+
* Check email verification status
|
|
137
63
|
*/
|
|
138
|
-
export declare const
|
|
64
|
+
export declare const checkEmailVerificationStatus: (email: string, testMode?: boolean) => Promise<any>;
|
|
139
65
|
/**
|
|
140
|
-
*
|
|
141
|
-
* Helper function to clear all stored tokens (useful for logout)
|
|
66
|
+
* Initialize platform auth service
|
|
142
67
|
*/
|
|
143
|
-
export declare const
|
|
68
|
+
export declare const initializePlatformAuthService: () => void;
|
|
144
69
|
//# sourceMappingURL=platformAuthService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformAuthService.d.ts","sourceRoot":"","sources":["../../../src/services/platformAuthService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platformAuthService.d.ts","sourceRoot":"","sources":["../../../src/services/platformAuthService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgGH;;GAEG;AACH,eAAO,MAAM,YAAY,aAAc,MAAM,KAAG,OAE/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C,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export declare const STORAGE_KEYS: {
|
|
2
|
+
readonly AUTH_TOKEN: "auth_token";
|
|
3
|
+
readonly ONAIROS_JWT_TOKEN: "onairos_jwt_token";
|
|
4
|
+
readonly ENOCH_TOKEN: "enoch_token";
|
|
5
|
+
readonly USER: "user";
|
|
6
|
+
readonly USER_PROFILE: "userProfile";
|
|
7
|
+
readonly USER_PROFILE_FALLBACK: "userProfileFallback";
|
|
8
|
+
readonly USER_PROGRESS: "user_progress";
|
|
9
|
+
readonly ONBOARDING_COMPLETED: "onboardingCompleted";
|
|
10
|
+
readonly IS_FIRST_TIME_USER: "isFirstTimeUser";
|
|
11
|
+
readonly USER_ATTENDANCE_CONFIRMED: "userAttendanceConfirmed";
|
|
12
|
+
readonly ONBOARDING_COMPLETE_TOKEN: "onboarding_complete_token";
|
|
13
|
+
readonly EVENT_ACCESS_TOKEN: "event_access_token";
|
|
14
|
+
readonly ONAIROS_USER: "onairos_user";
|
|
15
|
+
readonly APPLE_USER: "apple_user";
|
|
16
|
+
readonly AUTH_METHOD: "auth_method";
|
|
17
|
+
readonly CURRENT_EVENT_DATA: "currentEventData";
|
|
18
|
+
readonly CONNECTED_PLATFORMS: "connectedPlatforms";
|
|
19
|
+
readonly PROFILE_IMAGE: "profileImage";
|
|
20
|
+
readonly USER_ADMIN_STATUS: "user_admin_status";
|
|
21
|
+
};
|
|
22
|
+
export interface UserProgress {
|
|
23
|
+
lastScreen: string;
|
|
24
|
+
completedSteps: string[];
|
|
25
|
+
authMethod: 'apple' | 'onairos' | null;
|
|
26
|
+
hasProfilePhoto: boolean;
|
|
27
|
+
hasCompletedProfile: boolean;
|
|
28
|
+
hasSelectedIntentions: boolean;
|
|
29
|
+
hasViewedResults: boolean;
|
|
30
|
+
eventCode?: string;
|
|
31
|
+
hasEnteredEventCode: boolean;
|
|
32
|
+
hasRegisteredForEvent?: boolean;
|
|
33
|
+
hasReachedEventPage: boolean;
|
|
34
|
+
eventData?: {
|
|
35
|
+
eventType?: string;
|
|
36
|
+
eventCode?: string;
|
|
37
|
+
photo?: string;
|
|
38
|
+
userProfile?: any;
|
|
39
|
+
inferenceData?: any;
|
|
40
|
+
};
|
|
41
|
+
timestamp: number;
|
|
42
|
+
}
|
|
43
|
+
export interface AuthState {
|
|
44
|
+
isAuthenticated: boolean;
|
|
45
|
+
authMethod: 'apple' | 'onairos' | null;
|
|
46
|
+
hasValidToken: boolean;
|
|
47
|
+
userEmail?: string;
|
|
48
|
+
userName?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Save user progress to track where they left off
|
|
52
|
+
*/
|
|
53
|
+
export declare const saveUserProgress: (progress: Partial<UserProgress>) => Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Get user progress to determine where to resume
|
|
56
|
+
*/
|
|
57
|
+
export declare const getUserProgress: () => Promise<UserProgress>;
|
|
58
|
+
/**
|
|
59
|
+
* Save authentication state
|
|
60
|
+
*/
|
|
61
|
+
export declare const saveAuthState: (authState: Partial<AuthState>) => Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Get authentication state
|
|
64
|
+
*/
|
|
65
|
+
export declare const getAuthState: () => Promise<AuthState>;
|
|
66
|
+
/**
|
|
67
|
+
* Clear all user data (for logout)
|
|
68
|
+
*/
|
|
69
|
+
export declare const clearUserData: () => Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Get resume navigation target based on user progress
|
|
72
|
+
*/
|
|
73
|
+
export declare const getResumeTarget: () => Promise<{
|
|
74
|
+
screen: string;
|
|
75
|
+
params?: any;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
* Check if user has completed onboarding flow
|
|
79
|
+
*/
|
|
80
|
+
export declare const hasCompletedOnboarding: () => Promise<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Mark user as having reached the event page (completed full onboarding)
|
|
83
|
+
* This creates the token that ensures they always return to Results
|
|
84
|
+
*/
|
|
85
|
+
export declare const markEventPageReached: (eventData?: {
|
|
86
|
+
eventType?: string;
|
|
87
|
+
eventCode?: string;
|
|
88
|
+
photo?: string;
|
|
89
|
+
userProfile?: any;
|
|
90
|
+
inferenceData?: any;
|
|
91
|
+
}) => Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Check if user has the event access token (completed onboarding)
|
|
94
|
+
*/
|
|
95
|
+
export declare const hasEventAccessToken: () => Promise<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Mark a step as completed
|
|
98
|
+
*/
|
|
99
|
+
export declare const markStepCompleted: (step: string) => Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Update user's last screen
|
|
102
|
+
*/
|
|
103
|
+
export declare const updateLastScreen: (screen: string, params?: any) => Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Check if this is a returning user with existing progress
|
|
106
|
+
*/
|
|
107
|
+
export declare const isReturningUser: () => Promise<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Mark app as active (call this when app becomes active)
|
|
110
|
+
*/
|
|
111
|
+
export declare const markAppActive: () => Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Development utility: Get all stored progress data for debugging
|
|
114
|
+
*/
|
|
115
|
+
export declare const getDebugStorageInfo: () => Promise<{
|
|
116
|
+
progress: UserProgress;
|
|
117
|
+
authState: AuthState;
|
|
118
|
+
isReturning: boolean;
|
|
119
|
+
resumeTarget: {
|
|
120
|
+
screen: string;
|
|
121
|
+
params?: any;
|
|
122
|
+
};
|
|
123
|
+
}>;
|
|
124
|
+
/**
|
|
125
|
+
* Development utility: Clear all progress (for testing)
|
|
126
|
+
*/
|
|
127
|
+
export declare const clearAllProgress: () => Promise<void>;
|
|
128
|
+
//# sourceMappingURL=storageService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageService.d.ts","sourceRoot":"","sources":["../../../src/services/storageService.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;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,gBAAgB,QAAa,QAAQ,IAAI,CAOrD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper functions for training API modifications
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Add encrypted PIN to training data if available
|
|
6
|
+
*/
|
|
7
|
+
export declare const addEncryptedPinToTrainingData: (trainingData: any) => Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Example of how to modify the training API call to include PIN
|
|
10
|
+
*
|
|
11
|
+
* Usage in UniversalOnboarding.tsx:
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* // Before sending to API
|
|
15
|
+
* const trainingData = {
|
|
16
|
+
* socketId,
|
|
17
|
+
* username: finalUsername,
|
|
18
|
+
* email: userInfo?.email || null,
|
|
19
|
+
* modelKey: null,
|
|
20
|
+
* connectedPlatforms: platformsList,
|
|
21
|
+
* platformConnections: connections
|
|
22
|
+
* };
|
|
23
|
+
*
|
|
24
|
+
* // Add encrypted PIN if needed
|
|
25
|
+
* const trainingDataWithPin = await addEncryptedPinToTrainingData(trainingData);
|
|
26
|
+
*
|
|
27
|
+
* // Send to API
|
|
28
|
+
* const response = await fetch('https://api2.onairos.uk/mobile-training/enoch', {
|
|
29
|
+
* method: 'POST',
|
|
30
|
+
* headers: {
|
|
31
|
+
* 'Content-Type': 'application/json',
|
|
32
|
+
* 'Authorization': `Bearer ${token}`
|
|
33
|
+
* },
|
|
34
|
+
* body: JSON.stringify(trainingDataWithPin)
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
//# sourceMappingURL=trainingApiHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trainingApiHelpers.d.ts","sourceRoot":"","sources":["../../../src/services/trainingApiHelpers.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B,iBAAwB,GAAG,KAAG,QAAQ,GAAG,CA0BlF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export interface APIConnection {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
photo: string;
|
|
6
|
+
bio: string;
|
|
7
|
+
interests: string[];
|
|
8
|
+
mutualConnections: number;
|
|
9
|
+
compatibility: number;
|
|
10
|
+
conversationStarters: string[];
|
|
11
|
+
sharedPassions?: string[];
|
|
12
|
+
complementaryQualities?: string[];
|
|
13
|
+
meaningfulCoincidences?: Array<{
|
|
14
|
+
type: string;
|
|
15
|
+
description: string;
|
|
16
|
+
rarity: string;
|
|
17
|
+
}>;
|
|
18
|
+
mutualConnectionsList?: Array<{
|
|
19
|
+
name: string;
|
|
20
|
+
photo: string;
|
|
21
|
+
context: string;
|
|
22
|
+
}>;
|
|
23
|
+
status?: string;
|
|
24
|
+
connectionType?: string;
|
|
25
|
+
similarityScore?: number;
|
|
26
|
+
commonPreferences?: string[];
|
|
27
|
+
eventCode?: string;
|
|
28
|
+
matchedAt?: string;
|
|
29
|
+
_id?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface UserConnectionsResponse {
|
|
32
|
+
success: boolean;
|
|
33
|
+
connections: APIConnection[];
|
|
34
|
+
source: 'database' | 'samples';
|
|
35
|
+
count: number;
|
|
36
|
+
}
|
|
37
|
+
export interface Connection {
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
photo: any;
|
|
42
|
+
bio: string;
|
|
43
|
+
interests: string[];
|
|
44
|
+
mutualConnections: number;
|
|
45
|
+
compatibility: number;
|
|
46
|
+
conversationStarters: string[];
|
|
47
|
+
sharedPassions: string[];
|
|
48
|
+
complementaryQualities: string[];
|
|
49
|
+
meaningfulCoincidences: Array<{
|
|
50
|
+
type: string;
|
|
51
|
+
description: string;
|
|
52
|
+
rarity: string;
|
|
53
|
+
}>;
|
|
54
|
+
mutualConnectionsList?: Array<{
|
|
55
|
+
name: string;
|
|
56
|
+
photo: any;
|
|
57
|
+
context: string;
|
|
58
|
+
}>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get user connections by username
|
|
62
|
+
* @param username - Username to fetch connections for
|
|
63
|
+
* @returns Promise<Connection[]>
|
|
64
|
+
*/
|
|
65
|
+
export declare const getUserConnectionsByUsername: (username: string) => Promise<Connection[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Get user connections by user ID
|
|
68
|
+
* @param userId - User ID to fetch connections for
|
|
69
|
+
* @returns Promise<Connection[]>
|
|
70
|
+
*/
|
|
71
|
+
export declare const getUserConnectionsByUserId: (userId: string) => Promise<Connection[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Get user connections with automatic detection of user info
|
|
74
|
+
* PRIORITIZES the working email/username endpoint over the failing user ID endpoint
|
|
75
|
+
* @returns Promise<Connection[]>
|
|
76
|
+
*/
|
|
77
|
+
export declare const getUserConnections: () => Promise<Connection[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Upload profile picture using base64 data with compression
|
|
80
|
+
* The backend identifies the user from the JWT token, no need for user ID in URL
|
|
81
|
+
* @param imageUri - Image URI (file:// or base64)
|
|
82
|
+
* @param fileType - File type (jpg, png) - optional, will be extracted from imageUri if not provided
|
|
83
|
+
* @returns Promise<{ success: boolean; photoUrl?: string; error?: string }>
|
|
84
|
+
*/
|
|
85
|
+
export declare const uploadProfilePicture: (imageUri: string, fileType?: string) => Promise<{
|
|
86
|
+
success: boolean;
|
|
87
|
+
photoUrl?: string;
|
|
88
|
+
error?: string;
|
|
89
|
+
}>;
|
|
90
|
+
//# sourceMappingURL=userConnectionsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userConnectionsService.d.ts","sourceRoot":"","sources":["../../../src/services/userConnectionsService.ts"],"names":[],"mappings":"AAoFA,MAAM,WAAW,aAAa;IAC5B,E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,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sBAAsB,EAAE,KAAK,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,GAAG,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACJ;AAwCD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,aAAoB,MAAM,KAAG,QAAQ,UAAU,EAAE,CA2CzF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,WAAkB,MAAM,KAAG,QAAQ,UAAU,EAAE,CAyCrF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAa,QAAQ,UAAU,EAAE,CAsF/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,aACL,MAAM,KAChB,QAAQ;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAuKjE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const checkYouTubeMigrationNeeded: (username: string) => Promise<boolean>;
|
|
2
|
+
export declare const getYouTubeConnectionStatus: (username: string) => Promise<{
|
|
3
|
+
isReady: boolean;
|
|
4
|
+
mode: 'full' | 'temporary' | 'limited' | 'none';
|
|
5
|
+
needsMigration: boolean;
|
|
6
|
+
trainingReady: boolean;
|
|
7
|
+
details: any;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const shouldShowYouTubeMigrationWarning: (username: string) => Promise<boolean>;
|
|
10
|
+
export declare const checkAndFixYouTubeConnection: (username: string) => Promise<boolean>;
|
|
11
|
+
export declare const reconnectYouTube: (username: string) => Promise<boolean>;
|
|
12
|
+
//# sourceMappingURL=youtubeMigrationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"youtubeMigrationService.d.ts","sourceRoot":"","sources":["../../../src/services/youtubeMigrationService.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,2BAA2B,aAAoB,MAAM,KAAG,QAAQ,OAAO,CA0CnF,CAAC;AAGF,eAAO,MAAM,0BAA0B,aAAoB,MAAM,KAAG,QAAQ;IAC1E,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;IAChD,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;CACd,CA2EA,CAAC;AAuLF,eAAO,MAAM,iCAAiC,aAAoB,MAAM,KAAG,QAAQ,OAAO,CA4CzF,CAAC;AAGF,eAAO,MAAM,4BAA4B,aAAoB,MAAM,KAAG,QAAQ,OAAO,CA0DpF,CAAC;AAGF,eAAO,MAAM,gBAAgB,aAAoB,MAAM,KAAG,QAAQ,OAAO,CAGxE,CAAC"}
|