@onairos/react-native 3.4.1 → 3.5.4
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 +62 -13
- package/lib/commonjs/api/index.js +9 -145
- package/lib/commonjs/assets/animations/loaderani.json +1 -0
- package/lib/commonjs/assets/animations/persona-animation.json +1 -0
- 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/chatgpt.png +0 -0
- package/lib/commonjs/assets/icons/claude.png +0 -0
- package/lib/commonjs/assets/icons/gemini.png +0 -0
- package/lib/commonjs/assets/icons/grok.png +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/chatgpt.png +0 -0
- package/lib/commonjs/assets/images/checkmark.svg +4 -0
- package/lib/commonjs/assets/images/claude.png +0 -0
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
- package/lib/commonjs/assets/images/contenticon.svg +23 -0
- package/lib/commonjs/assets/images/gemini.png +0 -0
- package/lib/commonjs/assets/images/grok.png +0 -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 +9 -0
- package/lib/commonjs/components/BrandMark.js +10 -0
- package/lib/commonjs/components/CodeInput.js +9 -0
- package/lib/commonjs/components/EmailInput.js +8 -0
- package/lib/commonjs/components/GoogleButton.js +9 -0
- package/lib/commonjs/components/HeadingGroup.js +9 -0
- package/lib/commonjs/components/LLMDataInputModal.js +14 -0
- package/lib/commonjs/components/ModalHeader.js +9 -0
- package/lib/commonjs/components/ModalSheet.js +9 -0
- package/lib/commonjs/components/Onairos.js +14 -374
- package/lib/commonjs/components/OnairosButton.js +13 -309
- package/lib/commonjs/components/OnairosSignInButton.js +12 -0
- package/lib/commonjs/components/Overlay.js +13 -483
- package/lib/commonjs/components/PersonaImage.js +10 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
- package/lib/commonjs/components/PinCreationScreen.js +12 -0
- package/lib/commonjs/components/PinInput.js +9 -302
- package/lib/commonjs/components/PlatformConnectorsStep.js +22 -0
- package/lib/commonjs/components/PlatformList.js +10 -137
- package/lib/commonjs/components/PlatformToggle.js +9 -0
- package/lib/commonjs/components/PrimaryButton.js +10 -0
- package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
- package/lib/commonjs/components/SignInStep.js +12 -0
- package/lib/commonjs/components/UniversalOnboarding.js +29 -1702
- package/lib/commonjs/components/VerificationStep.js +11 -0
- package/lib/commonjs/components/WelcomeScreen.js +21 -0
- package/lib/commonjs/components/icons/Basicproficon.js +8 -0
- package/lib/commonjs/components/icons/Basicprofile.js +8 -0
- package/lib/commonjs/components/icons/Checkbox.js +8 -0
- package/lib/commonjs/components/icons/Checkmark.js +8 -0
- package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
- package/lib/commonjs/components/icons/Contenticon.js +8 -0
- package/lib/commonjs/components/icons/EnochE.js +8 -0
- package/lib/commonjs/components/icons/Personalityicon.js +8 -0
- package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
- package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
- package/lib/commonjs/components/icons/Userpreferences.js +8 -0
- package/lib/commonjs/components/icons/index.js +17 -0
- package/lib/commonjs/components/onboarding/OAuthWebView.js +14 -827
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
- package/lib/commonjs/components/onboarding/PinInput.js +10 -283
- package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
- package/lib/commonjs/config/api.js +7 -0
- package/lib/commonjs/constants/index.js +7 -83
- package/lib/commonjs/context/AuthContext.js +10 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
- package/lib/commonjs/hooks/useConnections.js +8 -159
- package/lib/commonjs/hooks/useCredentials.js +10 -177
- package/lib/commonjs/hooks/useUserConnections.js +10 -0
- package/lib/commonjs/index.js +35 -106
- package/lib/commonjs/services/apiClient.js +8 -0
- package/lib/commonjs/services/apiKeyService.js +9 -952
- package/lib/commonjs/services/authService.js +10 -0
- package/lib/commonjs/services/biometricPinService.js +8 -0
- package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
- package/lib/commonjs/services/chatGPTConversationService.js +9 -0
- package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
- package/lib/commonjs/services/claudeConversationService.js +9 -0
- package/lib/commonjs/services/connectedAccountsService.js +10 -0
- package/lib/commonjs/services/googleAuthService.js +11 -0
- package/lib/commonjs/services/imageCompressionService.js +7 -0
- package/lib/commonjs/services/jwtStorageService.js +7 -0
- package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
- package/lib/commonjs/services/linkedinProfileService.js +9 -0
- package/lib/commonjs/services/linkedinScrapingService.js +8 -0
- package/lib/commonjs/services/llmDataStorage.js +8 -0
- package/lib/commonjs/services/mobileTrainingService.js +8 -0
- package/lib/commonjs/services/oauthService.js +11 -390
- package/lib/commonjs/services/pinEncryptionService.js +8 -0
- package/lib/commonjs/services/pinStorageUtils.js +7 -0
- package/lib/commonjs/services/platformAuthService.js +12 -1067
- package/lib/commonjs/services/storageService.js +8 -0
- package/lib/commonjs/services/trainingApiHelpers.js +7 -0
- package/lib/commonjs/services/userConnectionsService.js +10 -0
- package/lib/commonjs/services/youtubeMigrationService.js +10 -0
- package/lib/commonjs/theme/index.js +7 -0
- package/lib/commonjs/types/ambient.d.js +1 -2
- package/lib/commonjs/types/declarations.d.js +1 -2
- package/lib/commonjs/types/index.js +1 -6
- package/lib/commonjs/types/node-fix.d.js +1 -2
- package/lib/commonjs/types/node-override.d.js +1 -2
- package/lib/commonjs/types/opacity.d.js +1 -2
- package/lib/commonjs/types.js +1 -14
- package/lib/commonjs/utils/Portal.js +8 -98
- package/lib/commonjs/utils/api.js +9 -129
- package/lib/commonjs/utils/assetRegistry.js +33 -0
- package/lib/commonjs/utils/auth.js +9 -111
- package/lib/commonjs/utils/crypto.js +8 -62
- package/lib/commonjs/utils/debugHelper.js +1 -64
- package/lib/commonjs/utils/encryption.js +7 -76
- package/lib/commonjs/utils/eventUtils.js +1 -0
- package/lib/commonjs/utils/haptics.js +9 -0
- package/lib/commonjs/utils/imagePreloader.js +1 -0
- package/lib/commonjs/utils/networkDiagnostics.js +8 -0
- package/lib/commonjs/utils/onairosApi.js +9 -350
- package/lib/commonjs/utils/programmaticFlow.js +9 -117
- package/lib/commonjs/utils/retryHelper.js +1 -220
- package/lib/commonjs/utils/secureStorage.js +10 -349
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
- package/lib/commonjs/utils/webviewScripts/index.js +9 -0
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
- package/lib/module/api/index.js +1 -139
- package/lib/module/assets/animations/loaderani.json +1 -0
- package/lib/module/assets/animations/persona-animation.json +1 -0
- 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/chatgpt.png +0 -0
- package/lib/module/assets/icons/claude.png +0 -0
- package/lib/module/assets/icons/farcaster.png +0 -0
- package/lib/module/assets/icons/gemini.png +0 -0
- package/lib/module/assets/icons/grok.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/chatgpt.png +0 -0
- package/lib/module/assets/images/checkmark.svg +4 -0
- package/lib/module/assets/images/claude.png +0 -0
- package/lib/module/assets/images/contentanalysis.svg +3 -0
- package/lib/module/assets/images/contenticon.svg +23 -0
- package/lib/module/assets/images/gemini.png +0 -0
- package/lib/module/assets/images/grok.png +0 -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 +1 -0
- package/lib/module/components/BrandMark.js +1 -0
- package/lib/module/components/CodeInput.js +1 -0
- package/lib/module/components/EmailInput.js +1 -0
- package/lib/module/components/GoogleButton.js +1 -0
- package/lib/module/components/HeadingGroup.js +1 -0
- package/lib/module/components/LLMDataInputModal.js +8 -0
- package/lib/module/components/ModalHeader.js +1 -0
- package/lib/module/components/ModalSheet.js +1 -0
- package/lib/module/components/Onairos.js +1 -367
- package/lib/module/components/OnairosButton.js +1 -302
- package/lib/module/components/OnairosSignInButton.js +1 -0
- package/lib/module/components/Overlay.js +1 -474
- package/lib/module/components/PersonaImage.js +1 -0
- package/lib/module/components/PersonaLoadingScreen.js +1 -0
- package/lib/module/components/PersonalizationConsentScreen.js +1 -0
- package/lib/module/components/PinCreationScreen.js +1 -0
- package/lib/module/components/PinInput.js +1 -293
- package/lib/module/components/PlatformConnectorsStep.js +1 -0
- package/lib/module/components/PlatformList.js +1 -129
- package/lib/module/components/PlatformToggle.js +1 -0
- package/lib/module/components/PrimaryButton.js +1 -0
- package/lib/module/components/SignInMatchAnimation.js +1 -0
- package/lib/module/components/SignInStep.js +1 -0
- package/lib/module/components/UniversalOnboarding.js +1 -1693
- package/lib/module/components/VerificationStep.js +1 -0
- package/lib/module/components/WelcomeScreen.js +1 -0
- package/lib/module/components/icons/Basicproficon.js +1 -0
- package/lib/module/components/icons/Basicprofile.js +1 -0
- package/lib/module/components/icons/Checkbox.js +1 -0
- package/lib/module/components/icons/Checkmark.js +1 -0
- package/lib/module/components/icons/Contentanalysis.js +1 -0
- package/lib/module/components/icons/Contenticon.js +1 -0
- package/lib/module/components/icons/EnochE.js +1 -0
- package/lib/module/components/icons/Personalityicon.js +1 -0
- package/lib/module/components/icons/Personalityprofile.js +1 -0
- package/lib/module/components/icons/Personalitytraits.js +1 -0
- package/lib/module/components/icons/Userpreferences.js +1 -0
- package/lib/module/components/icons/index.js +1 -0
- package/lib/module/components/onboarding/OAuthWebView.js +1 -818
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
- package/lib/module/components/onboarding/PinInput.js +1 -274
- package/lib/module/components/onboarding/PlatformConnector.js +1 -240
- package/lib/module/config/api.js +1 -0
- package/lib/module/constants/index.js +1 -77
- package/lib/module/context/AuthContext.js +1 -0
- package/lib/module/hooks/useConnectedAccounts.js +1 -0
- package/lib/module/hooks/useConnections.js +1 -152
- package/lib/module/hooks/useCredentials.js +6 -169
- package/lib/module/hooks/useUserConnections.js +1 -0
- package/lib/module/index.js +1 -32
- package/lib/module/services/apiClient.js +1 -0
- package/lib/module/services/apiKeyService.js +1 -925
- package/lib/module/services/authService.js +1 -0
- package/lib/module/services/biometricPinService.js +1 -0
- package/lib/module/services/chatGPTConversationExtractor.js +1 -0
- package/lib/module/services/chatGPTConversationService.js +1 -0
- package/lib/module/services/claudeConversationExtractor.js +1 -0
- package/lib/module/services/claudeConversationService.js +1 -0
- package/lib/module/services/connectedAccountsService.js +1 -0
- package/lib/module/services/googleAuthService.js +1 -0
- package/lib/module/services/imageCompressionService.js +1 -0
- package/lib/module/services/jwtStorageService.js +1 -0
- package/lib/module/services/linkedinDOMExtractor.js +1 -0
- package/lib/module/services/linkedinProfileService.js +1 -0
- package/lib/module/services/linkedinScrapingService.js +1 -0
- package/lib/module/services/llmDataStorage.js +1 -0
- package/lib/module/services/mobileTrainingService.js +1 -0
- package/lib/module/services/oauthService.js +1 -380
- package/lib/module/services/pinEncryptionService.js +7 -0
- package/lib/module/services/pinStorageUtils.js +1 -0
- package/lib/module/services/platformAuthService.js +1 -1041
- package/lib/module/services/storageService.js +1 -0
- package/lib/module/services/trainingApiHelpers.js +1 -0
- package/lib/module/services/userConnectionsService.js +1 -0
- package/lib/module/services/youtubeMigrationService.js +1 -0
- package/lib/module/theme/index.js +1 -0
- package/lib/module/types.js +1 -10
- package/lib/module/utils/Portal.js +1 -90
- package/lib/module/utils/api.js +1 -117
- package/lib/module/utils/assetRegistry.js +33 -0
- package/lib/module/utils/auth.js +1 -99
- package/lib/module/utils/crypto.js +1 -54
- package/lib/module/utils/debugHelper.js +1 -54
- package/lib/module/utils/encryption.js +1 -67
- package/lib/module/utils/eventUtils.js +1 -0
- package/lib/module/utils/haptics.js +8 -0
- package/lib/module/utils/imagePreloader.js +1 -0
- package/lib/module/utils/networkDiagnostics.js +1 -0
- package/lib/module/utils/onairosApi.js +1 -333
- package/lib/module/utils/programmaticFlow.js +1 -111
- package/lib/module/utils/retryHelper.js +1 -211
- package/lib/module/utils/secureStorage.js +6 -330
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
- package/lib/module/utils/webviewScripts/claude.js +1 -0
- package/lib/module/utils/webviewScripts/index.js +1 -0
- package/lib/module/utils/webviewScripts/linkedin.js +1 -0
- package/package.json +62 -39
- package/lib/commonjs/api/index.js.map +0 -1
- 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/DataRequestModal.js +0 -228
- package/lib/commonjs/components/DataRequestModal.js.map +0 -1
- package/lib/commonjs/components/DataRequestScreen.js +0 -329
- package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
- package/lib/commonjs/components/EmailVerificationModal.js +0 -320
- package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
- package/lib/commonjs/components/Onairos.js.map +0 -1
- package/lib/commonjs/components/OnairosButton.js.map +0 -1
- package/lib/commonjs/components/Overlay.js.map +0 -1
- package/lib/commonjs/components/PinInput.js.map +0 -1
- package/lib/commonjs/components/PlatformList.js.map +0 -1
- package/lib/commonjs/components/TrainingModal.js +0 -717
- package/lib/commonjs/components/TrainingModal.js.map +0 -1
- package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
- package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
- package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
- package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
- package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
- package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
- package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
- package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
- package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
- package/lib/commonjs/constants/index.js.map +0 -1
- package/lib/commonjs/hooks/useConnections.js.map +0 -1
- package/lib/commonjs/hooks/useCredentials.js.map +0 -1
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/services/apiKeyService.js.map +0 -1
- package/lib/commonjs/services/oauthService.js.map +0 -1
- package/lib/commonjs/services/platformAuthService.js.map +0 -1
- package/lib/commonjs/types/ambient.d.js.map +0 -1
- package/lib/commonjs/types/declarations.d.js.map +0 -1
- package/lib/commonjs/types/index.d.js.map +0 -1
- package/lib/commonjs/types/index.js.map +0 -1
- package/lib/commonjs/types/node-fix.d.js.map +0 -1
- package/lib/commonjs/types/node-override.d.js.map +0 -1
- package/lib/commonjs/types/opacity.d.js.map +0 -1
- package/lib/commonjs/types/types.d.js.map +0 -1
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/Portal.js.map +0 -1
- package/lib/commonjs/utils/api.js.map +0 -1
- package/lib/commonjs/utils/auth.js.map +0 -1
- package/lib/commonjs/utils/crypto.js.map +0 -1
- package/lib/commonjs/utils/debugHelper.js.map +0 -1
- package/lib/commonjs/utils/encryption.js.map +0 -1
- package/lib/commonjs/utils/onairosApi.js.map +0 -1
- package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
- package/lib/commonjs/utils/retryHelper.js.map +0 -1
- package/lib/commonjs/utils/secureStorage.js.map +0 -1
- package/lib/module/api/index.js.map +0 -1
- 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/DataRequestModal.js +0 -220
- package/lib/module/components/DataRequestModal.js.map +0 -1
- package/lib/module/components/DataRequestScreen.js +0 -321
- package/lib/module/components/DataRequestScreen.js.map +0 -1
- package/lib/module/components/EmailVerificationModal.js +0 -311
- package/lib/module/components/EmailVerificationModal.js.map +0 -1
- package/lib/module/components/Onairos.js.map +0 -1
- package/lib/module/components/OnairosButton.js.map +0 -1
- package/lib/module/components/Overlay.js.map +0 -1
- package/lib/module/components/PinInput.js.map +0 -1
- package/lib/module/components/PlatformList.js.map +0 -1
- package/lib/module/components/TrainingModal.js +0 -708
- package/lib/module/components/TrainingModal.js.map +0 -1
- package/lib/module/components/UniversalOnboarding.js.map +0 -1
- package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
- package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
- package/lib/module/components/onboarding/PinInput.js.map +0 -1
- package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
- package/lib/module/components/screens/ConnectorScreen.js +0 -138
- package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
- package/lib/module/components/screens/LoadingScreen.js +0 -83
- package/lib/module/components/screens/LoadingScreen.js.map +0 -1
- package/lib/module/components/screens/PinCreationScreen.js +0 -53
- package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
- package/lib/module/constants/index.js.map +0 -1
- package/lib/module/hooks/useConnections.js.map +0 -1
- package/lib/module/hooks/useCredentials.js.map +0 -1
- package/lib/module/index.js.map +0 -1
- package/lib/module/services/apiKeyService.js.map +0 -1
- package/lib/module/services/oauthService.js.map +0 -1
- package/lib/module/services/platformAuthService.js.map +0 -1
- package/lib/module/types/ambient.d.js.map +0 -1
- package/lib/module/types/declarations.d.js.map +0 -1
- package/lib/module/types/index.d.js.map +0 -1
- package/lib/module/types/index.js.map +0 -1
- package/lib/module/types/node-fix.d.js.map +0 -1
- package/lib/module/types/node-override.d.js.map +0 -1
- package/lib/module/types/opacity.d.js.map +0 -1
- package/lib/module/types/types.d.js.map +0 -1
- package/lib/module/types.js.map +0 -1
- package/lib/module/utils/Portal.js.map +0 -1
- package/lib/module/utils/api.js.map +0 -1
- package/lib/module/utils/auth.js.map +0 -1
- package/lib/module/utils/crypto.js.map +0 -1
- package/lib/module/utils/debugHelper.js.map +0 -1
- package/lib/module/utils/encryption.js.map +0 -1
- package/lib/module/utils/onairosApi.js.map +0 -1
- package/lib/module/utils/programmaticFlow.js.map +0 -1
- package/lib/module/utils/retryHelper.js.map +0 -1
- package/lib/module/utils/secureStorage.js.map +0 -1
- package/lib/typescript/api/index.d.ts +0 -8
- package/lib/typescript/api/index.d.ts.map +0 -1
- package/lib/typescript/components/DataRequestModal.d.ts +0 -11
- package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
- package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
- package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
- package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
- package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
- package/lib/typescript/components/Onairos.d.ts +0 -4
- package/lib/typescript/components/Onairos.d.ts.map +0 -1
- package/lib/typescript/components/OnairosButton.d.ts +0 -12
- package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
- package/lib/typescript/components/Overlay.d.ts +0 -4
- package/lib/typescript/components/Overlay.d.ts.map +0 -1
- package/lib/typescript/components/PinInput.d.ts +0 -4
- package/lib/typescript/components/PinInput.d.ts.map +0 -1
- package/lib/typescript/components/PlatformList.d.ts +0 -4
- package/lib/typescript/components/PlatformList.d.ts.map +0 -1
- package/lib/typescript/components/TrainingModal.d.ts +0 -4
- package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
- package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
- package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
- package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
- package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
- package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
- package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
- package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
- package/lib/typescript/constants/index.d.ts +0 -53
- package/lib/typescript/constants/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useConnections.d.ts +0 -9
- package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
- package/lib/typescript/hooks/useCredentials.d.ts +0 -9
- package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -18
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/services/apiKeyService.d.ts +0 -132
- package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
- package/lib/typescript/services/oauthService.d.ts +0 -50
- package/lib/typescript/services/oauthService.d.ts.map +0 -1
- package/lib/typescript/services/platformAuthService.d.ts +0 -144
- package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
- package/lib/typescript/types/index.d.ts +0 -231
- package/lib/typescript/types/index.d.ts.map +0 -1
- package/lib/typescript/types.d.ts +0 -270
- package/lib/typescript/types.d.ts.map +0 -1
- package/lib/typescript/utils/Portal.d.ts +0 -14
- package/lib/typescript/utils/Portal.d.ts.map +0 -1
- package/lib/typescript/utils/api.d.ts +0 -6
- package/lib/typescript/utils/api.d.ts.map +0 -1
- package/lib/typescript/utils/auth.d.ts +0 -6
- package/lib/typescript/utils/auth.d.ts.map +0 -1
- package/lib/typescript/utils/crypto.d.ts +0 -4
- package/lib/typescript/utils/crypto.d.ts.map +0 -1
- package/lib/typescript/utils/debugHelper.d.ts +0 -29
- package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
- package/lib/typescript/utils/encryption.d.ts +0 -19
- package/lib/typescript/utils/encryption.d.ts.map +0 -1
- package/lib/typescript/utils/onairosApi.d.ts +0 -87
- package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
- package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
- package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
- package/lib/typescript/utils/retryHelper.d.ts +0 -69
- package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
- package/lib/typescript/utils/secureStorage.d.ts +0 -94
- package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
- package/src/api/index.ts +0 -111
- package/src/assets/images/email.png +0 -0
- package/src/assets/images/linkedin.png +0 -0
- package/src/assets/images/onairos_logo.png +0 -0
- package/src/assets/images/reddit.png +0 -0
- package/src/assets/images/youtube.png +0 -0
- package/src/components/DataRequestModal.tsx +0 -227
- package/src/components/DataRequestScreen.tsx +0 -356
- package/src/components/EmailVerificationModal.tsx +0 -364
- package/src/components/Onairos.tsx +0 -425
- package/src/components/OnairosButton.tsx +0 -359
- package/src/components/Overlay.tsx +0 -506
- package/src/components/PinInput.tsx +0 -343
- package/src/components/PlatformList.tsx +0 -145
- package/src/components/TrainingModal.tsx +0 -737
- package/src/components/UniversalOnboarding.tsx +0 -1839
- package/src/components/UniversalOnboarding.tsx.new +0 -455
- package/src/components/onboarding/OAuthWebView.tsx +0 -838
- package/src/components/onboarding/OnboardingHeader.tsx +0 -70
- package/src/components/onboarding/PinInput.tsx +0 -356
- package/src/components/onboarding/PlatformConnector.tsx +0 -302
- package/src/components/screens/ConnectorScreen.tsx +0 -153
- package/src/components/screens/LoadingScreen.tsx +0 -100
- package/src/components/screens/PinCreationScreen.tsx +0 -67
- package/src/constants/index.ts +0 -83
- package/src/hooks/useConnections.ts +0 -163
- package/src/hooks/useCredentials.ts +0 -175
- package/src/index.js +0 -14
- package/src/index.ts +0 -50
- package/src/services/SDK_API_KEY_VALIDATION.md +0 -421
- package/src/services/apiKeyService.ts +0 -984
- package/src/services/oauthService.ts +0 -412
- package/src/services/platformAuthService.ts +0 -1113
- package/src/types/ambient.d.ts +0 -29
- package/src/types/declarations.d.ts +0 -26
- package/src/types/index.d.ts +0 -274
- package/src/types/index.ts +0 -244
- package/src/types/node-fix.d.ts +0 -19
- package/src/types/node-override.d.ts +0 -24
- package/src/types/opacity.d.ts +0 -16
- package/src/types/types.d.ts +0 -18
- package/src/types.ts +0 -298
- package/src/utils/Portal.tsx +0 -83
- package/src/utils/api.js +0 -112
- package/src/utils/auth.js +0 -104
- package/src/utils/crypto.js +0 -60
- package/src/utils/debugHelper.ts +0 -53
- package/src/utils/encryption.ts +0 -69
- package/src/utils/onairosApi.ts +0 -391
- package/src/utils/programmaticFlow.ts +0 -113
- package/src/utils/retryHelper.ts +0 -275
- package/src/utils/secureStorage.ts +0 -361
- package/types/index.d.ts +0 -218
- package/types/node-env.d.ts +0 -15
- /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAEL,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,4BAA4B,GAC7B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;;;;;AAM9D,wBAGE"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { OnairosConfig, ApiKeyValidationResult } from '../types';
|
|
2
|
-
export declare const ADMIN_API_KEY = "OnairosIsAUnicorn2025";
|
|
3
|
-
export declare enum ApiKeyType {
|
|
4
|
-
DEVELOPER = "developer",
|
|
5
|
-
ADMIN = "admin",
|
|
6
|
-
INVALID = "invalid"
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Initialize the SDK with developer API key
|
|
10
|
-
* @param config API configuration including developer API key
|
|
11
|
-
*/
|
|
12
|
-
export declare const initializeApiKey: (config: OnairosConfig) => Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Determine API key type
|
|
15
|
-
* @param apiKey The API key to check
|
|
16
|
-
* @returns The type of API key
|
|
17
|
-
*/
|
|
18
|
-
export declare const getApiKeyType: (apiKey: string) => ApiKeyType;
|
|
19
|
-
/**
|
|
20
|
-
* Check if API key is admin key
|
|
21
|
-
* @param apiKey The API key to check
|
|
22
|
-
* @returns True if admin key
|
|
23
|
-
*/
|
|
24
|
-
export declare const isAdminKey: (apiKey: string) => boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Validate an API key with the Onairos backend
|
|
27
|
-
* @param apiKey The API key to validate
|
|
28
|
-
* @returns Validation result with permissions and rate limits
|
|
29
|
-
*/
|
|
30
|
-
export declare const validateApiKey: (apiKey: string) => Promise<ApiKeyValidationResult>;
|
|
31
|
-
/**
|
|
32
|
-
* Get the current API configuration
|
|
33
|
-
* @returns Current API configuration or null if not initialized
|
|
34
|
-
*/
|
|
35
|
-
export declare const getApiConfig: () => OnairosConfig | null;
|
|
36
|
-
/**
|
|
37
|
-
* Get the current API key
|
|
38
|
-
* @returns Current API key or null if not initialized
|
|
39
|
-
*/
|
|
40
|
-
export declare const getApiKey: () => string | null;
|
|
41
|
-
/**
|
|
42
|
-
* Check if the SDK is properly initialized
|
|
43
|
-
* @returns True if initialized with valid API key
|
|
44
|
-
*/
|
|
45
|
-
export declare const isApiKeyInitialized: () => boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Store JWT token securely after email verification
|
|
48
|
-
* @param token JWT token from email verification response
|
|
49
|
-
*/
|
|
50
|
-
export declare const storeJWT: (token: string) => Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Load JWT token from storage
|
|
53
|
-
* @returns JWT token or null if not found
|
|
54
|
-
*/
|
|
55
|
-
export declare const loadJWT: () => Promise<string | null>;
|
|
56
|
-
/**
|
|
57
|
-
* Get current JWT token
|
|
58
|
-
* @returns JWT token or null if not available
|
|
59
|
-
*/
|
|
60
|
-
export declare const getJWT: () => string | null;
|
|
61
|
-
/**
|
|
62
|
-
* Clear JWT token (on logout or token expiration)
|
|
63
|
-
*/
|
|
64
|
-
export declare const clearJWT: () => Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Decode JWT token payload (React Native compatible)
|
|
67
|
-
* @param token JWT token string
|
|
68
|
-
* @returns Decoded payload or null if invalid
|
|
69
|
-
*/
|
|
70
|
-
export declare const decodeJWTPayload: (token: string) => any;
|
|
71
|
-
/**
|
|
72
|
-
* Extract username from JWT token
|
|
73
|
-
* @param token JWT token (optional, uses stored token if not provided)
|
|
74
|
-
* @returns Username or null if not found
|
|
75
|
-
*/
|
|
76
|
-
export declare const extractUsernameFromJWT: (token?: string) => string | null;
|
|
77
|
-
/**
|
|
78
|
-
* Extract user data from JWT token
|
|
79
|
-
* @param token JWT token (optional, uses stored token if not provided)
|
|
80
|
-
* @returns User data object or null if not found
|
|
81
|
-
*/
|
|
82
|
-
export declare const extractUserDataFromJWT: (token?: string) => any;
|
|
83
|
-
/**
|
|
84
|
-
* Check if user is authenticated with JWT token
|
|
85
|
-
* @returns True if user has valid JWT token
|
|
86
|
-
*/
|
|
87
|
-
export declare const isUserAuthenticated: () => boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Get authenticated headers for API requests
|
|
90
|
-
* @returns Headers object with Authorization and other required headers
|
|
91
|
-
*/
|
|
92
|
-
export declare const getAuthHeaders: () => Record<string, string>;
|
|
93
|
-
/**
|
|
94
|
-
* Get authentication headers for developer API requests
|
|
95
|
-
* @returns Headers with developer API key
|
|
96
|
-
*/
|
|
97
|
-
export declare const getDeveloperAuthHeaders: () => Record<string, string>;
|
|
98
|
-
/**
|
|
99
|
-
* Get authentication headers for user JWT requests
|
|
100
|
-
* @returns Headers with user JWT token
|
|
101
|
-
*/
|
|
102
|
-
export declare const getUserAuthHeaders: () => Record<string, string>;
|
|
103
|
-
/**
|
|
104
|
-
* Make an authenticated API request
|
|
105
|
-
* @param endpoint The API endpoint (relative to base URL)
|
|
106
|
-
* @param options Fetch options
|
|
107
|
-
* @returns Response promise
|
|
108
|
-
*/
|
|
109
|
-
export declare const makeAuthenticatedRequest: (endpoint: string, options?: RequestInit) => Promise<Response>;
|
|
110
|
-
/**
|
|
111
|
-
* Make authenticated request with developer API key
|
|
112
|
-
* @param endpoint The API endpoint
|
|
113
|
-
* @param options Fetch options
|
|
114
|
-
* @returns Response promise
|
|
115
|
-
*/
|
|
116
|
-
export declare const makeDeveloperRequest: (endpoint: string, options?: RequestInit) => Promise<Response>;
|
|
117
|
-
/**
|
|
118
|
-
* Make authenticated request with user JWT token
|
|
119
|
-
* @param endpoint The API endpoint
|
|
120
|
-
* @param options Fetch options
|
|
121
|
-
* @returns Response promise
|
|
122
|
-
*/
|
|
123
|
-
export declare const makeUserRequest: (endpoint: string, options?: RequestInit) => Promise<Response>;
|
|
124
|
-
/**
|
|
125
|
-
* Clear the API key validation cache
|
|
126
|
-
*/
|
|
127
|
-
export declare const clearValidationCache: () => void;
|
|
128
|
-
/**
|
|
129
|
-
* Reset the SDK initialization state
|
|
130
|
-
*/
|
|
131
|
-
export declare const resetApiKeyService: () => void;
|
|
132
|
-
//# sourceMappingURL=apiKeyService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiKeyService.d.ts","sourceRoot":"","sources":["../../../src/services/apiKeyService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,sB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B,QAAO,OAEtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,OAAO,MAAM,EAAE,MAAM,CAgBtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAAO,MAAM,EAAE,MAAM,CAgB/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAAO,MAAM,EAAE,MAAM,CAY1D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,aACzB,MAAM,YACP,WAAW,KACnB,QAAQ,QAAQ,CA+DlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,YACP,WAAW,KACnB,QAAQ,QAAQ,CA+DlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,aAChB,MAAM,YACP,WAAW,KACnB,QAAQ,QAAQ,CA+DlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAO,IAKvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,IAKrC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { OnairosCredentials } from '../utils/secureStorage';
|
|
2
|
-
export interface OAuthConfig {
|
|
3
|
-
clientId: string;
|
|
4
|
-
redirectUri: string;
|
|
5
|
-
scope: string;
|
|
6
|
-
authorizationEndpoint: string;
|
|
7
|
-
tokenEndpoint: string;
|
|
8
|
-
responseType: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Initialize OAuth service handlers and listeners
|
|
12
|
-
*/
|
|
13
|
-
export declare const initializeOAuthService: () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Clean up OAuth service handlers and listeners
|
|
16
|
-
*/
|
|
17
|
-
export declare const cleanupOAuthService: () => void;
|
|
18
|
-
/**
|
|
19
|
-
* Connect to a platform using OAuth
|
|
20
|
-
*/
|
|
21
|
-
export declare const connectPlatform: (platform: string) => Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* Disconnect from a platform
|
|
24
|
-
*/
|
|
25
|
-
export declare const disconnectPlatform: (platform: string, credentials: OnairosCredentials) => Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Store platform connection data in user credentials
|
|
28
|
-
*/
|
|
29
|
-
export declare const storePlatformConnection: (platform: string, connectionData: any, credentials: OnairosCredentials) => Promise<boolean>;
|
|
30
|
-
export interface AuthorizationData {
|
|
31
|
-
accountName: string;
|
|
32
|
-
authUrl: string;
|
|
33
|
-
}
|
|
34
|
-
export interface PlatformConnectionResult {
|
|
35
|
-
success: boolean;
|
|
36
|
-
userName?: string;
|
|
37
|
-
error?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Service for handling OAuth connections to various platforms
|
|
41
|
-
*/
|
|
42
|
-
export declare const OAuthService: {
|
|
43
|
-
initializeOAuthService: () => void;
|
|
44
|
-
cleanupOAuthService: () => void;
|
|
45
|
-
connectPlatform: (platform: string) => Promise<any>;
|
|
46
|
-
disconnectPlatform: (platform: string, credentials: OnairosCredentials) => Promise<boolean>;
|
|
47
|
-
storePlatformConnection: (platform: string, connectionData: any, credentials: OnairosCredentials) => Promise<boolean>;
|
|
48
|
-
_apiBaseUrl: string;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=oauthService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauthService.d.ts","sourceRoot":"","sources":["../../../src/services/oauthService.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAK/E,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AA8CD;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,IAGzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,IAKtC,CAAC;AA0LF;;GAEG;AACH,eAAO,MAAM,eAAe,aAAc,MAAM,KAAG,QAAQ,GAAG,CAgC7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,aACnB,MAAM,eACH,kBAAkB,KAC9B,QAAQ,OAAO,CA0BjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,aACxB,MAAM,kBACA,GAAG,eACN,kBAAkB,KAC9B,QAAQ,OAAO,CAgDjB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;kCArViB,IAAI;+BAQP,IAAI;gCAkMD,MAAM,KAAG,QAAQ,GAAG,CAAC;mCAsCnD,MAAM,eACH,kBAAkB,KAC9B,QAAQ,OAAO,CAAC;wCAgCP,MAAM,kBACA,GAAG,eACN,kBAAkB,KAC9B,QAAQ,OAAO,CAAC;;CAwElB,CAAC"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Initialize the platform auth service
|
|
3
|
-
* This service now uses the two-tier authentication system
|
|
4
|
-
*/
|
|
5
|
-
export declare const initializePlatformAuthService: () => Promise<void>;
|
|
6
|
-
/**
|
|
7
|
-
* Checks if a native SDK is available for the given platform
|
|
8
|
-
*/
|
|
9
|
-
export declare const hasNativeSDK: (platform: string) => boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Gets the auth endpoint URL for a platform
|
|
12
|
-
*/
|
|
13
|
-
export declare const getAuthEndpoint: (platform: string) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Gets the color associated with a platform
|
|
16
|
-
*/
|
|
17
|
-
export declare const getPlatformColor: (platform: string) => string;
|
|
18
|
-
/**
|
|
19
|
-
* Initiates the OAuth flow for a platform
|
|
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
|
|
24
|
-
*/
|
|
25
|
-
export declare const initiateOAuth: (platform: string, username: string, appName?: string) => Promise<string | null>;
|
|
26
|
-
/**
|
|
27
|
-
* Initiates the native SDK authentication flow for a platform
|
|
28
|
-
* @param platform The platform to authenticate with
|
|
29
|
-
* @returns A Promise that resolves to the authentication result
|
|
30
|
-
*/
|
|
31
|
-
export declare const initiateNativeAuth: (platform: string, username?: string) => Promise<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Handles the OAuth callback
|
|
34
|
-
* @param url The callback URL
|
|
35
|
-
* @returns The authorization code extracted from the URL
|
|
36
|
-
*/
|
|
37
|
-
export declare const handleOAuthCallback: (url: string) => string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Checks if a URL is an OAuth callback
|
|
40
|
-
* @param url The URL to check
|
|
41
|
-
* @returns True if the URL is an OAuth callback
|
|
42
|
-
*/
|
|
43
|
-
export declare const isOAuthCallback: (url: string) => boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Test connectivity to the Onairos API server
|
|
46
|
-
*/
|
|
47
|
-
export declare const testApiConnectivity: () => Promise<{
|
|
48
|
-
success: boolean;
|
|
49
|
-
error?: string;
|
|
50
|
-
}>;
|
|
51
|
-
/**
|
|
52
|
-
* 🔄 REFRESH GOOGLE TOKENS
|
|
53
|
-
*/
|
|
54
|
-
export declare const refreshGoogleTokens: () => Promise<{
|
|
55
|
-
accessToken: string;
|
|
56
|
-
idToken?: string;
|
|
57
|
-
} | null>;
|
|
58
|
-
/**
|
|
59
|
-
* 🔄 REFRESH YOUTUBE TOKENS
|
|
60
|
-
*/
|
|
61
|
-
export declare const refreshYouTubeTokens: () => Promise<boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* 🎯 ENHANCED OAUTH CALLBACK HANDLER
|
|
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
|
|
108
|
-
*/
|
|
109
|
-
export declare const checkEmailVerificationStatus: (email: string, testMode?: boolean) => Promise<{
|
|
110
|
-
success: boolean;
|
|
111
|
-
isPending?: boolean;
|
|
112
|
-
error?: string;
|
|
113
|
-
}>;
|
|
114
|
-
/**
|
|
115
|
-
* Disconnect a platform (uses developer API key)
|
|
116
|
-
* @param platform Platform to disconnect
|
|
117
|
-
* @param username Username associated with the platform
|
|
118
|
-
* @returns Promise with disconnect result
|
|
119
|
-
*/
|
|
120
|
-
export declare const disconnectPlatform: (platform: string, username: string) => Promise<{
|
|
121
|
-
success: boolean;
|
|
122
|
-
error?: string;
|
|
123
|
-
}>;
|
|
124
|
-
/**
|
|
125
|
-
* Store PIN for user (uses JWT authentication and extracts username from JWT)
|
|
126
|
-
* @param pin User PIN
|
|
127
|
-
* @param username Optional username (if not provided, extracts from JWT)
|
|
128
|
-
* @returns Promise with result
|
|
129
|
-
*/
|
|
130
|
-
export declare const storePIN: (pin: string, username?: string) => Promise<{
|
|
131
|
-
success: boolean;
|
|
132
|
-
error?: string;
|
|
133
|
-
}>;
|
|
134
|
-
/**
|
|
135
|
-
* 🎫 GET STORED JWT TOKEN
|
|
136
|
-
* Helper function to retrieve stored JWT token from email verification or other sources
|
|
137
|
-
*/
|
|
138
|
-
export declare const getStoredJwtToken: () => Promise<string | null>;
|
|
139
|
-
/**
|
|
140
|
-
* 🎫 CLEAR STORED TOKENS
|
|
141
|
-
* Helper function to clear all stored tokens (useful for logout)
|
|
142
|
-
*/
|
|
143
|
-
export declare const clearStoredTokens: () => Promise<void>;
|
|
144
|
-
//# sourceMappingURL=platformAuthService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platformAuthService.d.ts","sourceRoot":"","sources":["../../../src/services/platformAuthService.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAa,QAAQ,IAAI,CAkBlE,CAAC;AAoCF;;GAEG;AACH,eAAO,MAAM,YAA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: string;
|
|
3
|
-
type?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
descriptions?: string;
|
|
6
|
-
reward: string;
|
|
7
|
-
}
|
|
8
|
-
export interface OnairosButtonProps {
|
|
9
|
-
/** Return link after authentication (used for web-based flows) */
|
|
10
|
-
returnLink?: string;
|
|
11
|
-
/** Prefill URL for the authentication process */
|
|
12
|
-
prefillUrl?: string;
|
|
13
|
-
/** Application name to display in dialogs */
|
|
14
|
-
AppName?: string;
|
|
15
|
-
/** Button type - 'normal' or 'pill' */
|
|
16
|
-
buttonType?: 'normal' | 'pill';
|
|
17
|
-
/** Data requests for user consent */
|
|
18
|
-
requestData?: {
|
|
19
|
-
[key: string]: DataTier;
|
|
20
|
-
};
|
|
21
|
-
/** Button width in pixels or percentage */
|
|
22
|
-
buttonWidth?: number | string;
|
|
23
|
-
/** Button height in pixels */
|
|
24
|
-
buttonHeight?: number;
|
|
25
|
-
/** Whether to show stroke/border around button */
|
|
26
|
-
hasStroke?: boolean;
|
|
27
|
-
/** Whether the button is enabled */
|
|
28
|
-
enabled?: boolean;
|
|
29
|
-
/** Button form/shape style */
|
|
30
|
-
buttonForm?: 'default' | 'rounded' | 'square' | 'connect';
|
|
31
|
-
/** Callback when user rejects or cancels */
|
|
32
|
-
onRejection?: (reason?: string) => void;
|
|
33
|
-
/** Callback when authentication is resolved */
|
|
34
|
-
onResolved?: (apiUrl: string, accessToken: string, data: any) => void;
|
|
35
|
-
/** Function to check before starting authentication */
|
|
36
|
-
preCheck?: () => Promise<boolean>;
|
|
37
|
-
/** Button background color */
|
|
38
|
-
color?: string;
|
|
39
|
-
/** Whether to apply a slight rotation effect */
|
|
40
|
-
swerv?: boolean;
|
|
41
|
-
/** Enable debug mode */
|
|
42
|
-
debug?: boolean;
|
|
43
|
-
/** Preferred platform for authentication */
|
|
44
|
-
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
45
|
-
preferredPlatform?: string | string[];
|
|
46
|
-
/** Enable test mode */
|
|
47
|
-
testMode?: boolean;
|
|
48
|
-
/** Enable dark mode */
|
|
49
|
-
darkMode?: boolean;
|
|
50
|
-
/** Enable automatic API calls */
|
|
51
|
-
auto?: boolean;
|
|
52
|
-
/** App icon to display */
|
|
53
|
-
appIcon?: any;
|
|
54
|
-
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
55
|
-
newUser?: boolean;
|
|
56
|
-
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
57
|
-
existingUser?: boolean;
|
|
58
|
-
fastTraining?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface OnairosProps {
|
|
61
|
-
/** Return link after authentication (used for web-based flows) */
|
|
62
|
-
returnLink?: string;
|
|
63
|
-
/** Prefill URL for the authentication process */
|
|
64
|
-
prefillUrl?: string;
|
|
65
|
-
/** Application name to display in dialogs */
|
|
66
|
-
AppName: string;
|
|
67
|
-
/** Button type - 'normal' or 'pill' */
|
|
68
|
-
buttonType?: 'normal' | 'pill';
|
|
69
|
-
/** Data requests for user consent */
|
|
70
|
-
requestData?: {
|
|
71
|
-
[key: string]: DataTier;
|
|
72
|
-
};
|
|
73
|
-
/** Button width in pixels */
|
|
74
|
-
buttonWidth?: number;
|
|
75
|
-
/** Button height in pixels */
|
|
76
|
-
buttonHeight?: number;
|
|
77
|
-
/** Whether to show stroke/border around button */
|
|
78
|
-
hasStroke?: boolean;
|
|
79
|
-
/** Whether the button is enabled */
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
/** Button form/shape style */
|
|
82
|
-
buttonForm?: 'default' | 'connect';
|
|
83
|
-
/** Callback when user rejects or cancels */
|
|
84
|
-
onRejection?: (error?: string) => void;
|
|
85
|
-
/** Callback when authentication is resolved */
|
|
86
|
-
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
87
|
-
/** Function to check before starting authentication */
|
|
88
|
-
preCheck?: () => Promise<boolean>;
|
|
89
|
-
/** Button background color */
|
|
90
|
-
color?: string;
|
|
91
|
-
/** Enable debug mode */
|
|
92
|
-
debug?: boolean;
|
|
93
|
-
/** Enable dark mode */
|
|
94
|
-
darkMode?: boolean;
|
|
95
|
-
/** Preferred platform for authentication */
|
|
96
|
-
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
97
|
-
preferredPlatform?: string | string[];
|
|
98
|
-
/** Enable test mode */
|
|
99
|
-
testMode?: boolean;
|
|
100
|
-
/** API Key Configuration (REQUIRED) */
|
|
101
|
-
apiKey: string;
|
|
102
|
-
/** Environment setting for API calls */
|
|
103
|
-
environment?: 'production' | 'staging' | 'development';
|
|
104
|
-
/** Enable logging for debugging */
|
|
105
|
-
enableLogging?: boolean;
|
|
106
|
-
/** Request timeout in milliseconds */
|
|
107
|
-
timeout?: number;
|
|
108
|
-
/** Number of retry attempts for failed requests */
|
|
109
|
-
retryAttempts?: number;
|
|
110
|
-
}
|
|
111
|
-
export interface UniversalOnboardingProps {
|
|
112
|
-
visible: boolean;
|
|
113
|
-
onClose: () => void;
|
|
114
|
-
AppName: string;
|
|
115
|
-
appIcon?: any;
|
|
116
|
-
requestData?: {
|
|
117
|
-
[key: string]: DataTier;
|
|
118
|
-
};
|
|
119
|
-
returnLink?: string;
|
|
120
|
-
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
121
|
-
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
122
|
-
preferredPlatform?: string | string[];
|
|
123
|
-
debug?: boolean;
|
|
124
|
-
testMode?: boolean;
|
|
125
|
-
embedd?: boolean;
|
|
126
|
-
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
127
|
-
newUser?: boolean;
|
|
128
|
-
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
129
|
-
existingUser?: boolean;
|
|
130
|
-
fastTraining?: boolean;
|
|
131
|
-
/** Inference data for auto mode */
|
|
132
|
-
inferenceData?: any;
|
|
133
|
-
/** Auto mode for direct API calls */
|
|
134
|
-
auto?: boolean;
|
|
135
|
-
/** Partner integration */
|
|
136
|
-
partner?: string;
|
|
137
|
-
}
|
|
138
|
-
export interface PlatformListProps {
|
|
139
|
-
connections: {
|
|
140
|
-
[key: string]: boolean;
|
|
141
|
-
};
|
|
142
|
-
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
143
|
-
isLoading: boolean;
|
|
144
|
-
canProceed: boolean;
|
|
145
|
-
onProceed: () => void;
|
|
146
|
-
}
|
|
147
|
-
export interface PinInputProps {
|
|
148
|
-
onSubmit: (pin: string) => void;
|
|
149
|
-
minLength?: number;
|
|
150
|
-
requireSpecialChar?: boolean;
|
|
151
|
-
requireNumber?: boolean;
|
|
152
|
-
initialPin?: string;
|
|
153
|
-
}
|
|
154
|
-
export interface TrainingModalProps {
|
|
155
|
-
visible: boolean;
|
|
156
|
-
progress: number;
|
|
157
|
-
eta: string;
|
|
158
|
-
onCancel: () => void;
|
|
159
|
-
onComplete?: () => void;
|
|
160
|
-
modelKey?: string;
|
|
161
|
-
username?: string;
|
|
162
|
-
test?: boolean;
|
|
163
|
-
}
|
|
164
|
-
export interface OAuthWebViewProps {
|
|
165
|
-
url: string;
|
|
166
|
-
platform: string;
|
|
167
|
-
onComplete: () => void;
|
|
168
|
-
onClose: () => void;
|
|
169
|
-
}
|
|
170
|
-
export interface CredentialsResult {
|
|
171
|
-
isValid: boolean;
|
|
172
|
-
credentials?: {
|
|
173
|
-
username?: string;
|
|
174
|
-
userPin?: string;
|
|
175
|
-
accessToken?: string;
|
|
176
|
-
pinterest?: {
|
|
177
|
-
token: string;
|
|
178
|
-
username: string;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
export interface OverlayProps {
|
|
183
|
-
visible: boolean;
|
|
184
|
-
onClose: () => void;
|
|
185
|
-
credentials: any;
|
|
186
|
-
onDeleteCredentials: () => void;
|
|
187
|
-
}
|
|
188
|
-
export interface ConnectionStatus {
|
|
189
|
-
[key: string]: boolean;
|
|
190
|
-
}
|
|
191
|
-
export interface PlatformConfig {
|
|
192
|
-
name: string;
|
|
193
|
-
icon: string;
|
|
194
|
-
color: string;
|
|
195
|
-
description?: string;
|
|
196
|
-
}
|
|
197
|
-
export interface ApiResponse<T> {
|
|
198
|
-
success: boolean;
|
|
199
|
-
data?: T;
|
|
200
|
-
error?: string;
|
|
201
|
-
}
|
|
202
|
-
export interface PlatformAuthConfig {
|
|
203
|
-
hasNativeSDK: boolean;
|
|
204
|
-
nativeSDKPackage?: string;
|
|
205
|
-
authEndpoint: string;
|
|
206
|
-
color: string;
|
|
207
|
-
clientId?: string;
|
|
208
|
-
iosClientId?: string;
|
|
209
|
-
redirectUri?: string;
|
|
210
|
-
scope?: string;
|
|
211
|
-
responseType?: string;
|
|
212
|
-
}
|
|
213
|
-
export interface PinRequirements {
|
|
214
|
-
minLength: number;
|
|
215
|
-
requireSpecialChar: boolean;
|
|
216
|
-
requireNumber: boolean;
|
|
217
|
-
}
|
|
218
|
-
export interface OnairosConfig {
|
|
219
|
-
apiKey: string;
|
|
220
|
-
environment?: 'production' | 'staging' | 'development';
|
|
221
|
-
enableLogging?: boolean;
|
|
222
|
-
timeout?: number;
|
|
223
|
-
retryAttempts?: number;
|
|
224
|
-
}
|
|
225
|
-
export interface TestModeOptions {
|
|
226
|
-
skipEmailVerification?: boolean;
|
|
227
|
-
mockApiResponses?: boolean;
|
|
228
|
-
simulateTraining?: boolean;
|
|
229
|
-
enableDebugLogs?: boolean;
|
|
230
|
-
}
|
|
231
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM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