@onairos/react-native 3.4.0 → 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/SDK_API_KEY_VALIDATION.md +31 -38
- package/lib/commonjs/services/apiClient.js +8 -0
- package/lib/commonjs/services/apiKeyService.js +9 -946
- 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/SDK_API_KEY_VALIDATION.md +31 -38
- package/lib/module/services/apiClient.js +1 -0
- package/lib/module/services/apiKeyService.js +1 -919
- 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 -428
- package/src/services/apiKeyService.ts +0 -979
- 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,159 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
// Create a mock storage for environments without Keychain access (like Expo Go)
|
|
10
|
-
const mockConnectionStorage = {};
|
|
11
|
-
|
|
12
|
-
// Try to import Keychain, but provide fallbacks if not available
|
|
13
|
-
let Keychain = null;
|
|
14
|
-
try {
|
|
15
|
-
// This import might fail in Expo Go or environments without native modules
|
|
16
|
-
Keychain = require('react-native-keychain');
|
|
17
|
-
} catch (error) {
|
|
18
|
-
console.warn('react-native-keychain module not available in useConnections, using mock storage');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Check if Keychain is properly initialized and available
|
|
22
|
-
const isKeychainAvailable = () => {
|
|
23
|
-
try {
|
|
24
|
-
return Keychain && typeof Keychain.getGenericPassword === 'function';
|
|
25
|
-
} catch (e) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const useConnections = () => {
|
|
30
|
-
const [isConnecting, setIsConnecting] = (0, _react.useState)(false);
|
|
31
|
-
const getConnectionStatus = (0, _react.useCallback)(async () => {
|
|
32
|
-
try {
|
|
33
|
-
if (isKeychainAvailable()) {
|
|
34
|
-
try {
|
|
35
|
-
const stored = await Keychain.getGenericPassword({
|
|
36
|
-
service: _constants.STORAGE_KEYS.connections
|
|
37
|
-
});
|
|
38
|
-
if (stored && stored.password) {
|
|
39
|
-
const parsed = JSON.parse(stored.password);
|
|
40
|
-
// Validate the parsed data structure
|
|
41
|
-
if (parsed && typeof parsed === 'object') {
|
|
42
|
-
return parsed;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} catch (keychainError) {
|
|
46
|
-
console.warn('Keychain access failed, using fallback:', keychainError);
|
|
47
|
-
// Clear corrupted data
|
|
48
|
-
try {
|
|
49
|
-
await Keychain.resetGenericPassword({
|
|
50
|
-
service: _constants.STORAGE_KEYS.connections
|
|
51
|
-
});
|
|
52
|
-
} catch (resetError) {
|
|
53
|
-
console.warn('Failed to reset keychain:', resetError);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Use in-memory mock storage if Keychain is not available or failed
|
|
59
|
-
const mockData = mockConnectionStorage[_constants.STORAGE_KEYS.connections] || {};
|
|
60
|
-
console.log('Using mock connection storage:', mockData);
|
|
61
|
-
return mockData;
|
|
62
|
-
} catch (error) {
|
|
63
|
-
console.error('Error getting connection status:', error);
|
|
64
|
-
|
|
65
|
-
// Always return empty object as safe fallback
|
|
66
|
-
console.log('Returning empty connections due to error');
|
|
67
|
-
return {};
|
|
68
|
-
}
|
|
69
|
-
}, []);
|
|
70
|
-
const saveConnectionStatus = (0, _react.useCallback)(async status => {
|
|
71
|
-
try {
|
|
72
|
-
if (isKeychainAvailable()) {
|
|
73
|
-
await Keychain.setGenericPassword('connections', JSON.stringify(status), {
|
|
74
|
-
service: _constants.STORAGE_KEYS.connections
|
|
75
|
-
});
|
|
76
|
-
} else {
|
|
77
|
-
// Use in-memory mock storage if Keychain is not available
|
|
78
|
-
mockConnectionStorage[_constants.STORAGE_KEYS.connections] = status;
|
|
79
|
-
}
|
|
80
|
-
} catch (error) {
|
|
81
|
-
console.error('Error saving connection status:', error);
|
|
82
|
-
// Save to mock storage as fallback
|
|
83
|
-
mockConnectionStorage[_constants.STORAGE_KEYS.connections] = status;
|
|
84
|
-
}
|
|
85
|
-
}, []);
|
|
86
|
-
const connectPlatform = (0, _react.useCallback)(async platform => {
|
|
87
|
-
setIsConnecting(true);
|
|
88
|
-
try {
|
|
89
|
-
console.log(`[Mock] Connecting to ${platform}`);
|
|
90
|
-
|
|
91
|
-
// Simulate connection delay
|
|
92
|
-
await new Promise(resolve => {
|
|
93
|
-
setTimeout(() => resolve(), 1000);
|
|
94
|
-
});
|
|
95
|
-
const status = await getConnectionStatus();
|
|
96
|
-
status[platform] = {
|
|
97
|
-
userName: `Mock User (${platform})`,
|
|
98
|
-
connected: true
|
|
99
|
-
};
|
|
100
|
-
await saveConnectionStatus(status);
|
|
101
|
-
console.log(`[Mock] Successfully connected to ${platform}`);
|
|
102
|
-
} catch (error) {
|
|
103
|
-
console.error(`Error connecting to ${platform}:`, error);
|
|
104
|
-
// In development, provide mock data even on error
|
|
105
|
-
if (__DEV__) {
|
|
106
|
-
const status = {
|
|
107
|
-
[platform]: {
|
|
108
|
-
userName: `Fallback User (${platform})`,
|
|
109
|
-
connected: true
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
await saveConnectionStatus(status);
|
|
113
|
-
} else {
|
|
114
|
-
throw error;
|
|
115
|
-
}
|
|
116
|
-
} finally {
|
|
117
|
-
setIsConnecting(false);
|
|
118
|
-
}
|
|
119
|
-
}, [getConnectionStatus, saveConnectionStatus]);
|
|
120
|
-
const disconnectPlatform = (0, _react.useCallback)(async platform => {
|
|
121
|
-
try {
|
|
122
|
-
const status = await getConnectionStatus();
|
|
123
|
-
if (status && platform in status) {
|
|
124
|
-
delete status[platform];
|
|
125
|
-
await saveConnectionStatus(status);
|
|
126
|
-
}
|
|
127
|
-
} catch (error) {
|
|
128
|
-
console.error(`Error disconnecting ${platform}:`, error);
|
|
129
|
-
// Don't throw in development mode
|
|
130
|
-
if (!__DEV__) {
|
|
131
|
-
throw error;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}, [getConnectionStatus, saveConnectionStatus]);
|
|
135
|
-
const handleOAuthCallback = (0, _react.useCallback)(async (platform, data) => {
|
|
136
|
-
try {
|
|
137
|
-
console.log(`[Mock] Handling callback for ${platform}`);
|
|
138
|
-
const status = await getConnectionStatus();
|
|
139
|
-
status[platform] = {
|
|
140
|
-
userName: data.userName || `Mock User (${platform})`,
|
|
141
|
-
connected: true
|
|
142
|
-
};
|
|
143
|
-
await saveConnectionStatus(status);
|
|
144
|
-
return true;
|
|
145
|
-
} catch (error) {
|
|
146
|
-
console.error('Error handling callback:', error);
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
}, [getConnectionStatus, saveConnectionStatus]);
|
|
150
|
-
return {
|
|
151
|
-
isConnecting,
|
|
152
|
-
connectPlatform,
|
|
153
|
-
disconnectPlatform,
|
|
154
|
-
getConnectionStatus,
|
|
155
|
-
handleOAuthCallback
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
exports.useConnections = useConnections;
|
|
159
|
-
//# sourceMappingURL=useConnections.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react"),
|
|
5
|
+
require("../services/platformAuthService")
|
|
6
|
+
];
|
|
7
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
+
Object[_0xdcfb(0x0)](exports,'__esModule',{'value':!![]}),exports[_0xdcfb(0x1)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_platformAuthService=__ONAIROS_REQ_FUNC__(0x1);function _0x4f77(){const _0x40090a=['defineProperty','useConnections','ZwqJz','dyKIz','GZLss','pPDsf','useState','useCallback','suJOa','yfZZv','Oigoo','error','Error\x20connecting\x20platform\x20','dJwHU','OMfKQ','rEJSL','log','✅\x20Platform\x20','\x20connected\x20locally','ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed','hURGh','RJLKe','yYUmX','NPSph','\x20disconnected\x20locally','Xvqot','Error\x20disconnecting\x20platform\x20','yrVwa','kjqoJ','gBJDH','RomfK','bAxRh','TlASP','VJbkz','xudop'];_0x4f77=function(){return _0x40090a;};return _0x4f77();}const useConnections=()=>{const _0x30670c={'suJOa':'ℹ️\x20NOTE:\x20Backend\x20sync\x20removed\x20from\x20SDK\x20-\x20app\x20should\x20call\x20/enoch/users/update\x20if\x20needed','yfZZv':function(_0x2dce95,_0x25c32b){return _0x2dce95!==_0x25c32b;},'Oigoo':'ngLQf','rEJSL':function(_0x3ef274,_0x39fe30){return _0x3ef274(_0x39fe30);},'dJwHU':function(_0x430033,_0x27ba93){return _0x430033===_0x27ba93;},'OMfKQ':'youtube','hURGh':function(_0x4aa32d,_0x183337){return _0x4aa32d===_0x183337;},'yYUmX':_0xdcfb(0x2),'yrVwa':'ZhiXY','gBJDH':function(_0xb0c1d5,_0x5273e8){return _0xb0c1d5!==_0x5273e8;},'RomfK':_0xdcfb(0x3),'bAxRh':_0xdcfb(0x4),'xudop':_0xdcfb(0x5)},[_0x41b627,_0x2bee2e]=(0x0,_react[_0xdcfb(0x6)])({}),[_0x574b62,_0x53b2c3]=(0x0,_react[_0xdcfb(0x6)])(![]),_0x1938e2=(0x0,_react[_0xdcfb(0x7)])(async(_0x209a0e,_0x417260)=>{const _0x28c6e1={'NPSph':function(_0x4b3e58,_0x4153df){return _0x4b3e58(_0x4153df);},'Xvqot':_0x30670c[_0xdcfb(0x8)]};try{if(_0x30670c[_0xdcfb(0x9)](_0x30670c[_0xdcfb(0xa)],_0x30670c[_0xdcfb(0xa)]))return _0xa2a545[_0xdcfb(0xb)](_0xdcfb(0xc)+_0x457ad1+':',_0x1e0fbf),![];else{_0x30670c['rEJSL'](_0x53b2c3,!![]);const useNativeSDK=_0x30670c[_0xdcfb(0xd)](_0x209a0e,_0x30670c[_0xdcfb(0xe)])||_0x30670c[_0xdcfb(0xd)](_0x209a0e,'instagram');let _0x538a1e=![];useNativeSDK?_0x538a1e=await(0x0,_platformAuthService['initiateNativeAuth'])(_0x209a0e,_0x417260):(await new Promise(_0x1391b6=>setTimeout(()=>_0x1391b6(undefined),0x3e8)),_0x538a1e=!![]);if(_0x538a1e)return _0x30670c[_0xdcfb(0xf)](_0x2bee2e,_0x2190ee=>({..._0x2190ee,[_0x209a0e]:{'userName':_0x417260,'connected':!![]}})),console[_0xdcfb(0x10)](_0xdcfb(0x11)+_0x209a0e+_0xdcfb(0x12)),console[_0xdcfb(0x10)](_0xdcfb(0x13)),!![];return![];}}catch(_0x4d91a7){return console[_0xdcfb(0xb)]('Error\x20connecting\x20platform\x20'+_0x209a0e+':',_0x4d91a7),![];}finally{if(_0x30670c[_0xdcfb(0x14)](_0xdcfb(0x15),_0x30670c[_0xdcfb(0x16)]))try{return _0x28c6e1[_0xdcfb(0x17)](_0x2a50c2,_0x3d2df8=>{const _0x4fda0c={..._0x3d2df8};return delete _0x4fda0c[_0x5a444b],_0x4fda0c;}),_0xf565aa[_0xdcfb(0x10)](_0xdcfb(0x11)+_0x20d2d8+_0xdcfb(0x18)),_0x317bbe[_0xdcfb(0x10)](_0x28c6e1[_0xdcfb(0x19)]),!![];}catch(_0x15e618){return _0x1fbd99[_0xdcfb(0xb)](_0xdcfb(0x1a)+_0x54d37d+':',_0x15e618),![];}else _0x53b2c3(![]);}},[]),_0x5f0dbd=(0x0,_react[_0xdcfb(0x7)])(async(_0x3c1801,_0x3bd9c9)=>{const _0x313086={'TlASP':_0x30670c[_0xdcfb(0x1b)],'IMKGT':_0xdcfb(0x1c)};try{return _0x30670c[_0xdcfb(0x1d)](_0x30670c[_0xdcfb(0x1e)],_0x30670c[_0xdcfb(0x1f)])?(_0x30670c[_0xdcfb(0xf)](_0x2bee2e,_0x4834f0=>{if(_0x313086[_0xdcfb(0x20)]!==_0x313086['IMKGT']){const _0x1ca772={..._0x4834f0};return delete _0x1ca772[_0x3c1801],_0x1ca772;}else{const _0x47fdcd={..._0x2f22c4};return delete _0x47fdcd[_0x3c70fc],_0x47fdcd;}}),console[_0xdcfb(0x10)]('✅\x20Platform\x20'+_0x3c1801+_0xdcfb(0x18)),console[_0xdcfb(0x10)](_0x30670c[_0xdcfb(0x8)]),!![]):_0x3f7251;}catch(_0x155325){return _0x30670c[_0xdcfb(0x14)](_0xdcfb(0x21),'VJbkz')?(console[_0xdcfb(0xb)]('Error\x20disconnecting\x20platform\x20'+_0x3c1801+':',_0x155325),![]):(_0x124ac1[_0xdcfb(0xb)](_0xdcfb(0x1a)+_0x2543cf+':',_0x1de1de),![]);}},[]),_0x2dc0f5=(0x0,_react[_0xdcfb(0x7)])(async()=>{return _0x30670c[_0xdcfb(0x9)](_0x30670c[_0xdcfb(0x22)],_0x30670c['xudop'])?(_0xb92aa4(_0x626a58=>({..._0x626a58,[_0x3dd0de]:{'userName':_0x1343f8,'connected':!![]}})),_0x5e49fa['log']('✅\x20Platform\x20'+_0x4a5cb0+_0xdcfb(0x12)),_0x2bddf0[_0xdcfb(0x10)](_0xdcfb(0x13)),!![]):_0x41b627;},[_0x41b627]);return{'connections':_0x41b627,'connectPlatform':_0x1938e2,'disconnectPlatform':_0x5f0dbd,'getConnectionStatus':_0x2dc0f5,'isConnecting':_0x574b62};};function _0xdcfb(_0x4f77c3,_0xdcfbb5){_0x4f77c3=_0x4f77c3-0x0;const _0x7b2a5e=_0x4f77();let _0x2e92fb=_0x7b2a5e[_0x4f77c3];return _0x2e92fb;}exports[_0xdcfb(0x1)]=useConnections;
|
|
@@ -1,177 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const mockCredentialStorage = {};
|
|
11
|
-
|
|
12
|
-
// Try to import Keychain, but provide fallbacks if not available
|
|
13
|
-
let Keychain = null;
|
|
14
|
-
try {
|
|
15
|
-
Keychain = require('react-native-keychain');
|
|
16
|
-
} catch (error) {
|
|
17
|
-
console.warn('react-native-keychain module not available in useCredentials, using mock storage');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Check if Keychain is properly initialized and available
|
|
21
|
-
const isKeychainAvailable = () => {
|
|
22
|
-
try {
|
|
23
|
-
return Keychain && typeof Keychain.getGenericPassword === 'function';
|
|
24
|
-
} catch (e) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
// Safe wrapper for getGenericPassword
|
|
30
|
-
const safeGetGenericPassword = async options => {
|
|
31
|
-
try {
|
|
32
|
-
if (isKeychainAvailable()) {
|
|
33
|
-
return await Keychain.getGenericPassword(options);
|
|
34
|
-
} else {
|
|
35
|
-
const key = (options === null || options === void 0 ? void 0 : options.service) || 'default';
|
|
36
|
-
return mockCredentialStorage[key] || null;
|
|
37
|
-
}
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.warn('Keychain access failed, using mock storage', error);
|
|
40
|
-
const key = (options === null || options === void 0 ? void 0 : options.service) || 'default';
|
|
41
|
-
return mockCredentialStorage[key] || null;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
// Safe wrapper for setGenericPassword
|
|
46
|
-
const safeSetGenericPassword = async (username, password, options) => {
|
|
47
|
-
try {
|
|
48
|
-
if (isKeychainAvailable()) {
|
|
49
|
-
return await Keychain.setGenericPassword(username, password, options);
|
|
50
|
-
} else {
|
|
51
|
-
const key = (options === null || options === void 0 ? void 0 : options.service) || 'default';
|
|
52
|
-
mockCredentialStorage[key] = {
|
|
53
|
-
username,
|
|
54
|
-
password
|
|
55
|
-
};
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
} catch (error) {
|
|
59
|
-
console.warn('Keychain access failed, using mock storage', error);
|
|
60
|
-
const key = (options === null || options === void 0 ? void 0 : options.service) || 'default';
|
|
61
|
-
mockCredentialStorage[key] = {
|
|
62
|
-
username,
|
|
63
|
-
password
|
|
64
|
-
};
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// Safe wrapper for resetGenericPassword
|
|
70
|
-
const safeResetGenericPassword = async options => {
|
|
71
|
-
try {
|
|
72
|
-
if (isKeychainAvailable()) {
|
|
73
|
-
return await Keychain.resetGenericPassword(options);
|
|
74
|
-
} else {
|
|
75
|
-
const key = (options === null || options === void 0 ? void 0 : options.service) || 'default';
|
|
76
|
-
delete mockCredentialStorage[key];
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
} catch (error) {
|
|
80
|
-
console.warn('Keychain access failed, using mock storage', error);
|
|
81
|
-
const key = (options === null || options === void 0 ? void 0 : options.service) || 'default';
|
|
82
|
-
delete mockCredentialStorage[key];
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
const useCredentials = () => {
|
|
87
|
-
const hasCredentials = (0, _react.useCallback)(async () => {
|
|
88
|
-
try {
|
|
89
|
-
const credentials = await safeGetGenericPassword({
|
|
90
|
-
service: _constants.STORAGE_KEYS.credentials
|
|
91
|
-
});
|
|
92
|
-
return !!credentials;
|
|
93
|
-
} catch (error) {
|
|
94
|
-
console.error('Error checking credentials:', error);
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
}, []);
|
|
98
|
-
const getCredentials = (0, _react.useCallback)(async () => {
|
|
99
|
-
try {
|
|
100
|
-
const credentials = await safeGetGenericPassword({
|
|
101
|
-
service: _constants.STORAGE_KEYS.credentials
|
|
102
|
-
});
|
|
103
|
-
if (credentials) {
|
|
104
|
-
return JSON.parse(credentials.password);
|
|
105
|
-
}
|
|
106
|
-
return null;
|
|
107
|
-
} catch (error) {
|
|
108
|
-
console.error('Error getting credentials:', error);
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
}, []);
|
|
112
|
-
const storeCredentials = (0, _react.useCallback)(async (username, userPin, accessToken) => {
|
|
113
|
-
try {
|
|
114
|
-
const options = {
|
|
115
|
-
service: _constants.STORAGE_KEYS.credentials
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
// Only use secure storage options on real devices
|
|
119
|
-
if (isKeychainAvailable()) {
|
|
120
|
-
var _Keychain$ACCESS_CONT, _Keychain$ACCESSIBLE;
|
|
121
|
-
options.accessControl = (_Keychain$ACCESS_CONT = Keychain.ACCESS_CONTROL) === null || _Keychain$ACCESS_CONT === void 0 ? void 0 : _Keychain$ACCESS_CONT.BIOMETRY_ANY;
|
|
122
|
-
options.accessible = (_Keychain$ACCESSIBLE = Keychain.ACCESSIBLE) === null || _Keychain$ACCESSIBLE === void 0 ? void 0 : _Keychain$ACCESSIBLE.WHEN_UNLOCKED;
|
|
123
|
-
}
|
|
124
|
-
await safeSetGenericPassword(username, JSON.stringify({
|
|
125
|
-
userPin,
|
|
126
|
-
accessToken
|
|
127
|
-
}), options);
|
|
128
|
-
return true;
|
|
129
|
-
} catch (error) {
|
|
130
|
-
console.error('Error storing credentials:', error);
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
}, []);
|
|
134
|
-
const clearCredentials = (0, _react.useCallback)(async () => {
|
|
135
|
-
try {
|
|
136
|
-
await safeResetGenericPassword({
|
|
137
|
-
service: _constants.STORAGE_KEYS.credentials
|
|
138
|
-
});
|
|
139
|
-
} catch (error) {
|
|
140
|
-
console.error('Error clearing credentials:', error);
|
|
141
|
-
}
|
|
142
|
-
}, []);
|
|
143
|
-
const validateCredentials = (0, _react.useCallback)(async username => {
|
|
144
|
-
try {
|
|
145
|
-
const response = await fetch(`https://api2.onairos.uk/validate`, {
|
|
146
|
-
method: 'POST',
|
|
147
|
-
headers: {
|
|
148
|
-
'Content-Type': 'application/json'
|
|
149
|
-
},
|
|
150
|
-
body: JSON.stringify({
|
|
151
|
-
username
|
|
152
|
-
})
|
|
153
|
-
});
|
|
154
|
-
const data = await response.json();
|
|
155
|
-
return {
|
|
156
|
-
success: true,
|
|
157
|
-
isValid: data.valid,
|
|
158
|
-
credentials: data.credentials
|
|
159
|
-
};
|
|
160
|
-
} catch (error) {
|
|
161
|
-
console.error('Error validating credentials:', error);
|
|
162
|
-
return {
|
|
163
|
-
success: false,
|
|
164
|
-
isValid: false
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}, []);
|
|
168
|
-
return {
|
|
169
|
-
hasCredentials,
|
|
170
|
-
getCredentials,
|
|
171
|
-
storeCredentials,
|
|
172
|
-
clearCredentials,
|
|
173
|
-
validateCredentials
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
exports.useCredentials = useCredentials;
|
|
177
|
-
//# sourceMappingURL=useCredentials.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react"),
|
|
5
|
+
require("../constants"),
|
|
6
|
+
require("../config/api"),
|
|
7
|
+
require('react-native-keychain')
|
|
8
|
+
];
|
|
9
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
+
Object[_0x179a(0x0)](exports,_0x179a(0x1),{'value':!![]}),exports[_0x179a(0x2)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_constants=__ONAIROS_REQ_FUNC__(0x1),_api=__ONAIROS_REQ_FUNC__(0x2);const mockCredentialStorage={};let Keychain=null;function _0x179a(_0x5882d9,_0x179a2f){_0x5882d9=_0x5882d9-0x0;const _0x2302b5=_0x5882();let _0x34bf3b=_0x2302b5[_0x5882d9];return _0x34bf3b;}try{Keychain=__ONAIROS_REQ_FUNC__(0x3);}catch(_0xf1ac9b){console[_0x179a(0x3)]('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0x2addfb={'bIWDG':_0x179a(0x4),'qovQm':function(_0x5e5d4b,_0x240942){return _0x5e5d4b===_0x240942;},'qQpbv':_0x179a(0x5)};try{return Keychain&&typeof Keychain['getGenericPassword']===_0x179a(0x6);}catch(_0xb97790){if(_0x2addfb[_0x179a(0x7)](_0x2addfb[_0x179a(0x8)],_0x2addfb[_0x179a(0x8)]))return![];else{_0x479efb[_0x179a(0x3)](_0x179a(0x9),_0x3d95a5);const _0x3390b2=(_0x416f4a===null||_0x574795===void 0x0?void 0x0:_0xd3143e[_0x179a(0xa)])||_0x2addfb['bIWDG'];return _0x14cd36[_0x3390b2]={'username':_0x49b85b,'password':_0x14d7cf},!![];}}},safeGetGenericPassword=async _0x3e1fb5=>{const _0x1e8b6a={'eMiQz':function(_0x1e2b60,_0x1a0d59){return _0x1e2b60===_0x1a0d59;},'EohSu':_0x179a(0x6),'lfoIu':function(_0x19bcd8,_0x29bf27){return _0x19bcd8===_0x29bf27;},'WXVQB':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','KBnYK':_0x179a(0x4)};try{if(_0x1e8b6a[_0x179a(0xb)](_0x179a(0xc),_0x179a(0xc))){if(isKeychainAvailable())return await Keychain[_0x179a(0xd)](_0x3e1fb5);else{const _0x12d7a3=(_0x3e1fb5===null||_0x1e8b6a['lfoIu'](_0x3e1fb5,void 0x0)?void 0x0:_0x3e1fb5[_0x179a(0xa)])||'default';return mockCredentialStorage[_0x12d7a3]||null;}}else return Keychain&&_0x1e8b6a['eMiQz'](typeof Keychain[_0x179a(0xd)],_0x1e8b6a['EohSu']);}catch(_0x43bb44){console[_0x179a(0x3)](_0x1e8b6a[_0x179a(0xe)],_0x43bb44);const _0xa56a78=(_0x3e1fb5===null||_0x1e8b6a['eMiQz'](_0x3e1fb5,void 0x0)?void 0x0:_0x3e1fb5[_0x179a(0xa)])||_0x1e8b6a['KBnYK'];return mockCredentialStorage[_0xa56a78]||null;}},safeSetGenericPassword=async(_0x50c0f2,_0x4008ea,_0x5b5716)=>{const _0x5c045f={'jadql':function(_0xf040cf,_0x55908b){return _0xf040cf===_0x55908b;},'zrLXO':'default','rwACk':_0x179a(0x9),'fxNCs':function(_0x3a9c45,_0x155f64){return _0x3a9c45===_0x155f64;},'jExjL':function(_0x3bc9e5){return _0x3bc9e5();},'CTbbR':function(_0x356d84,_0x842711){return _0x356d84!==_0x842711;},'oDQYh':_0x179a(0xf),'AbBmc':function(_0x323dee,_0x4094bf){return _0x323dee===_0x4094bf;},'neJTK':function(_0x219bbe,_0x28e3ce){return _0x219bbe===_0x28e3ce;}};try{if(_0x5c045f['jadql'](_0x179a(0x10),'hbllh')){const _0x468899=(_0x5c045f[_0x179a(0x11)](_0x34b806,null)||_0x535a66===void 0x0?void 0x0:_0x1e202f['service'])||_0x5c045f['zrLXO'];return delete _0x35796e[_0x468899],!![];}else{if(_0x5c045f[_0x179a(0x12)](isKeychainAvailable)){if(_0x5c045f[_0x179a(0x13)](_0x5c045f[_0x179a(0x14)],_0x5c045f[_0x179a(0x14)])){_0x263f86[_0x179a(0x3)](_0x5c045f['rwACk'],_0x310263);const _0x3a5500=(_0x5c045f[_0x179a(0x11)](_0xb33016,null)||_0x5c045f['fxNCs'](_0x2db2e5,void 0x0)?void 0x0:_0x86ec2a[_0x179a(0xa)])||_0x5c045f['zrLXO'];return delete _0x5ea290[_0x3a5500],!![];}else return await Keychain[_0x179a(0x15)](_0x50c0f2,_0x4008ea,_0x5b5716);}else{const _0xeff118=(_0x5b5716===null||_0x5c045f[_0x179a(0x16)](_0x5b5716,void 0x0)?void 0x0:_0x5b5716['service'])||_0x5c045f[_0x179a(0x17)];return mockCredentialStorage[_0xeff118]={'username':_0x50c0f2,'password':_0x4008ea},!![];}}}catch(_0x47c886){console[_0x179a(0x3)](_0x5c045f[_0x179a(0x18)],_0x47c886);const _0xdad409=(_0x5c045f[_0x179a(0x19)](_0x5b5716,null)||_0x5c045f[_0x179a(0x1a)](_0x5b5716,void 0x0)?void 0x0:_0x5b5716[_0x179a(0xa)])||_0x179a(0x4);return mockCredentialStorage[_0xdad409]={'username':_0x50c0f2,'password':_0x4008ea},!![];}},safeResetGenericPassword=async _0x13ca35=>{const _0x4760c1={'AbjAS':function(_0x313621,_0x250ca8){return _0x313621===_0x250ca8;},'IscDE':_0x179a(0x6),'sTxFE':'RLAle','vzSHz':function(_0x5083a5){return _0x5083a5();},'VEvkd':function(_0x2d2992,_0x3825c1){return _0x2d2992===_0x3825c1;},'lfFVi':_0x179a(0x9),'lEDPy':function(_0x3dbf6c,_0x542e02){return _0x3dbf6c===_0x542e02;}};try{if(_0x4760c1['sTxFE']===_0x4760c1[_0x179a(0x1b)]){if(_0x4760c1['vzSHz'](isKeychainAvailable))return await Keychain['resetGenericPassword'](_0x13ca35);else{const _0x2be197=(_0x4760c1[_0x179a(0x1c)](_0x13ca35,null)||_0x4760c1[_0x179a(0x1d)](_0x13ca35,void 0x0)?void 0x0:_0x13ca35['service'])||_0x179a(0x4);return delete mockCredentialStorage[_0x2be197],!![];}}else try{return Keychain&&_0x4760c1[_0x179a(0x1c)](typeof Keychain[_0x179a(0xd)],_0x4760c1[_0x179a(0x1e)]);}catch(_0x2bb4f2){return![];}}catch(_0x2c1563){console['warn'](_0x4760c1[_0x179a(0x1f)],_0x2c1563);const _0x28b9d5=(_0x4760c1[_0x179a(0x20)](_0x13ca35,null)||_0x4760c1[_0x179a(0x1c)](_0x13ca35,void 0x0)?void 0x0:_0x13ca35['service'])||_0x179a(0x4);return delete mockCredentialStorage[_0x28b9d5],!![];}},useCredentials=()=>{const _0x126964={'rXXJY':_0x179a(0x21),'urkeT':function(_0x3a7dbb,_0x50c9df){return _0x3a7dbb!==_0x50c9df;},'ByrwJ':'vQgPy','JMQJT':function(_0x33ae56,_0x5c5316){return _0x33ae56===_0x5c5316;},'guugD':'uhGVb','zOUlD':_0x179a(0x22),'YTOni':function(_0x140fc0,_0x4e49ba){return _0x140fc0(_0x4e49ba);},'XHaPM':function(_0x3cb9d1,_0x5c36c3){return _0x3cb9d1===_0x5c36c3;},'lymdh':'CDFKj','pXAQu':function(_0x2bb131,_0x88fa5b){return _0x2bb131!==_0x88fa5b;},'HpCKD':_0x179a(0x23),'sWQHM':'Error\x20validating\x20credentials:','qBYwK':_0x179a(0x24),'YcjOc':function(_0x380d35,_0x25bdda,_0x5b52f2,_0x3ee4d7){return _0x380d35(_0x25bdda,_0x5b52f2,_0x3ee4d7);},'XyLLo':function(_0x189b6b,_0x276dc4){return _0x189b6b===_0x276dc4;},'zDYEq':_0x179a(0x25),'PztVt':'Error\x20storing\x20credentials:','aRkkN':'Error\x20clearing\x20credentials:','svzil':function(_0x5af39e,_0x3fab10){return _0x5af39e!==_0x3fab10;},'QGzKF':_0x179a(0x26),'uSIpe':function(_0x37697b,_0x5c5dbb,_0x519422){return _0x37697b(_0x5c5dbb,_0x519422);}},_0x27002f=(0x0,_react['useCallback'])(async()=>{try{if(_0x126964[_0x179a(0x27)](_0x126964[_0x179a(0x28)],_0x179a(0x29)))return _0x253eea['parse'](_0x54e47f[_0x179a(0x2a)]);else{const _0x3eaf07=await safeGetGenericPassword({'service':_constants[_0x179a(0x2b)][_0x179a(0x2c)]});return!!_0x3eaf07;}}catch(_0x3bd8ea){return _0x126964[_0x179a(0x2d)](_0x126964[_0x179a(0x2e)],_0x126964[_0x179a(0x2e)])?(console[_0x179a(0x2f)](_0x126964[_0x179a(0x30)],_0x3bd8ea),![]):(_0x331e14[_0x179a(0x2f)](_0x126964[_0x179a(0x31)],_0x45fdb7),null);}},[]),_0x51ecb5=(0x0,_react[_0x179a(0x32)])(async()=>{try{if(_0x126964[_0x179a(0x33)](_0x126964[_0x179a(0x34)],_0x126964[_0x179a(0x34)])){const _0x3c5da4=await safeGetGenericPassword({'service':_constants[_0x179a(0x2b)][_0x179a(0x2c)]});if(_0x3c5da4)return JSON[_0x179a(0x35)](_0x3c5da4['password']);return null;}else _0x57da5b[_0x179a(0x3)]('react-native-keychain module not available in useCredentials, using mock storage');}catch(_0x328bfd){if(_0x126964[_0x179a(0x36)](_0x179a(0x23),_0x126964[_0x179a(0x37)]))Keychain=_0x126964[_0x179a(0x38)](_0x2a2e92,0x3);else return console[_0x179a(0x2f)]('Error\x20getting\x20credentials:',_0x328bfd),null;}},[]),_0x168694=(0x0,_react[_0x179a(0x32)])(async(_0x27fba3,_0x2a18d2,_0x34c2e9)=>{const _0x2c3990={'bZucm':function(_0x742833,_0x56755e){return _0x126964['XHaPM'](_0x742833,_0x56755e);},'CaDVB':function(_0x11670d,_0x2c22fb){return _0x11670d===_0x2c22fb;},'gOipZ':_0x179a(0x4),'PbUBg':_0x126964[_0x179a(0x39)]};try{if(_0x126964[_0x179a(0x3a)]===_0x179a(0x3b)){const _0x1d0bb8=(_0x2c3990[_0x179a(0x3c)](_0x579b76,null)||_0x2c3990['CaDVB'](_0x2f6f6b,void 0x0)?void 0x0:_0xb45cf[_0x179a(0xa)])||_0x2c3990[_0x179a(0x3d)];return _0x20f75b[_0x1d0bb8]||null;}else{const _0x48a36={'service':_constants[_0x179a(0x2b)][_0x179a(0x2c)]};if(isKeychainAvailable()){var _0x187a66,_0x4630f9;_0x48a36['accessControl']=(_0x187a66=Keychain[_0x179a(0x3e)])===null||_0x126964[_0x179a(0x2d)](_0x187a66,void 0x0)?void 0x0:_0x187a66[_0x179a(0x3f)],_0x48a36[_0x179a(0x40)]=(_0x4630f9=Keychain[_0x179a(0x41)])===null||_0x4630f9===void 0x0?void 0x0:_0x4630f9[_0x179a(0x42)];}return await _0x126964[_0x179a(0x43)](safeSetGenericPassword,_0x27fba3,JSON[_0x179a(0x44)]({'userPin':_0x2a18d2,'accessToken':_0x34c2e9}),_0x48a36),!![];}}catch(_0x4fdd1e){return _0x126964[_0x179a(0x45)](_0x126964['zDYEq'],_0x179a(0x25))?(console[_0x179a(0x2f)](_0x126964['PztVt'],_0x4fdd1e),![]):(_0x45cc5a[_0x179a(0x2f)](_0x2c3990[_0x179a(0x46)],_0x526647),{'success':![],'isValid':![]});}},[]),_0x4c35c7=(0x0,_react[_0x179a(0x32)])(async()=>{try{await safeResetGenericPassword({'service':_constants['STORAGE_KEYS'][_0x179a(0x2c)]});}catch(_0x16e92d){console[_0x179a(0x2f)](_0x126964[_0x179a(0x47)],_0x16e92d);}},[]),_0x4968b6=(0x0,_react['useCallback'])(async _0xbf0c6d=>{const _0x8acb84={'OuRyn':_0x126964[_0x179a(0x47)]};try{if(_0x126964[_0x179a(0x48)](_0x179a(0x26),_0x126964[_0x179a(0x49)]))_0x1d5189['error'](_0x8acb84[_0x179a(0x4a)],_0x2223b4);else{const _0x1575d4=await _0x126964['uSIpe'](fetch,_api[_0x179a(0x4b)]['BASE_URL']+'/validate',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x179a(0x44)]({'username':_0xbf0c6d})}),_0x37367f=await _0x1575d4[_0x179a(0x4c)]();return{'success':!![],'isValid':_0x37367f['valid'],'credentials':_0x37367f['credentials']};}}catch(_0x39f42b){return console[_0x179a(0x2f)](_0x126964['sWQHM'],_0x39f42b),{'success':![],'isValid':![]};}},[]);return{'hasCredentials':_0x27002f,'getCredentials':_0x51ecb5,'storeCredentials':_0x168694,'clearCredentials':_0x4c35c7,'validateCredentials':_0x4968b6};};exports[_0x179a(0x2)]=useCredentials;function _0x5882(){const _0x32cb8f=['defineProperty','__esModule','useCredentials','warn','default','etJUf','function','qovQm','qQpbv','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','service','eMiQz','LPCwp','getGenericPassword','WXVQB','AtioE','fPICh','jadql','jExjL','CTbbR','oDQYh','setGenericPassword','fxNCs','zrLXO','rwACk','AbBmc','neJTK','sTxFE','AbjAS','VEvkd','IscDE','lfFVi','lEDPy','Error\x20getting\x20credentials:','Error\x20checking\x20credentials:','fmQXL','dlwnU','hUsYS','YoTfo','urkeT','ByrwJ','vQgPy','password','STORAGE_KEYS','credentials','JMQJT','guugD','error','zOUlD','rXXJY','useCallback','XHaPM','lymdh','parse','pXAQu','HpCKD','YTOni','sWQHM','qBYwK','PxxWN','bZucm','gOipZ','ACCESS_CONTROL','BIOMETRY_ANY','accessible','ACCESSIBLE','WHEN_UNLOCKED','YcjOc','stringify','XyLLo','PbUBg','aRkkN','svzil','QGzKF','OuRyn','API_CONFIG','json'];_0x5882=function(){return _0x32cb8f;};return _0x5882();}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react"),
|
|
5
|
+
require("../services/userConnectionsService"),
|
|
6
|
+
require("../services/authService"),
|
|
7
|
+
require("@react-native-async-storage/async-storage")
|
|
8
|
+
];
|
|
9
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
+
Object[_0x2764(0x0)](exports,_0x2764(0x1),{'value':!![]}),exports[_0x2764(0x2)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_userConnectionsService=__ONAIROS_REQ_FUNC__(0x1),_authService=__ONAIROS_REQ_FUNC__(0x2),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x3));function _interopRequireDefault(_0x441544){return _0x441544&&_0x441544['__esModule']?_0x441544:{'default':_0x441544};}function _0x2764(_0xa1c9d2,_0x276476){_0xa1c9d2=_0xa1c9d2-0x0;const _0x170b79=_0xa1c9();let _0x6f8d2e=_0x170b79[_0xa1c9d2];return _0x6f8d2e;}const useUserConnections=()=>{const _0x2598dc={'EMcJN':function(_0x5e8790){return _0x5e8790();},'Oaqtu':function(_0x310bfe,_0x430ffd){return _0x310bfe!==_0x430ffd;},'DMKPW':function(_0x41532d,_0x4a0268){return _0x41532d!==_0x4a0268;},'rUNnb':'rRuFU','XWnRw':_0x2764(0x3),'CHPnc':function(_0x4898d5,_0x2955bd){return _0x4898d5(_0x2955bd);},'cKPXJ':function(_0x4e028e,_0x654022){return _0x4e028e(_0x654022);},'GZOcC':_0x2764(0x4),'bQovs':function(_0x23fea1,_0x2fcf83){return _0x23fea1===_0x2fcf83;},'tmGrZ':_0x2764(0x5),'LNNln':'3|1|2|0|4','VkYzU':_0x2764(0x6),'MuFUz':function(_0x519a6c,_0x5aa705){return _0x519a6c(_0x5aa705);},'gWOyb':_0x2764(0x7),'oNEHD':_0x2764(0x8),'CIRNR':function(_0x59b080,_0x13fb6a){return _0x59b080(_0x13fb6a);},'eWpXu':_0x2764(0x9),'iTzyT':_0x2764(0xa),'gShpv':_0x2764(0xb),'xSwTf':_0x2764(0xc),'HcUSP':function(_0x176604,_0x230813){return _0x176604 instanceof _0x230813;},'fUTWO':_0x2764(0xd),'GoRFX':function(_0x4b4655,_0xa742f8){return _0x4b4655(_0xa742f8);},'HxpYp':function(_0x24d7e2,_0x31cbfe){return _0x24d7e2(_0x31cbfe);},'AjdXx':_0x2764(0xe),'xcZoK':_0x2764(0xf),'jqVQA':function(_0x498123,_0x377106){return _0x498123(_0x377106);},'FTWzI':'npCdd','dKydD':_0x2764(0x10),'FoLRJ':_0x2764(0x11),'fMAcz':'❌\x20Error\x20fetching\x20connections\x20by\x20username:','UZUtE':_0x2764(0x12),'SgvLA':function(_0x528c93,_0x42a880){return _0x528c93(_0x42a880);},'YMPvw':function(_0x427bd8,_0x56a860){return _0x427bd8(_0x56a860);},'fCMDu':_0x2764(0x13),'jHQLO':function(_0x469002,_0xeb09c9){return _0x469002!==_0xeb09c9;},'YpuPV':_0x2764(0x14),'byYZk':_0x2764(0x15),'mDYkX':function(_0x492535){return _0x492535();}},[_0xf34932,_0x27997a]=(0x0,_react[_0x2764(0x16)])([]),[_0x420fa3,_0x149242]=(0x0,_react[_0x2764(0x16)])(!![]),[_0x49f119,_0x258c2c]=(0x0,_react['useState'])(null),_0x15ffa7=(0x0,_react[_0x2764(0x17)])(async()=>{if(_0x2598dc['Oaqtu'](_0x2764(0x18),'hXmwN'))try{if(_0x2598dc[_0x2764(0x19)](_0x2598dc['rUNnb'],_0x2598dc[_0x2764(0x1a)])){_0x2598dc[_0x2764(0x1b)](_0x149242,!![]),_0x2598dc[_0x2764(0x1c)](_0x258c2c,null);const _0x56d1ee=await(0x0,_authService[_0x2764(0x1d)])(),_0x23b55a=await _asyncStorage['default'][_0x2764(0x1e)](_0x2598dc['GZOcC']),_0x4bf59b=_0x2598dc[_0x2764(0x1f)](_0x23b55a,_0x2598dc[_0x2764(0x20)]);if(!_0x56d1ee&&!_0x4bf59b){const _0x45825c=_0x2598dc[_0x2764(0x21)][_0x2764(0x22)]('|');let _0x2671e6=0x0;while(!![]){switch(_0x45825c[_0x2671e6++]){case'0':_0x258c2c(_0x2598dc['VkYzU']);continue;case'1':console['warn'](_0x2764(0x23));continue;case'2':_0x2598dc[_0x2764(0x24)](_0x27997a,[]);continue;case'3':console[_0x2764(0x25)](_0x2598dc['gWOyb']);continue;case'4':return;}break;}}if(_0x4bf59b){console[_0x2764(0x26)](_0x2598dc[_0x2764(0x27)]),_0x2598dc[_0x2764(0x1c)](_0x27997a,[]),_0x2598dc[_0x2764(0x28)](_0x258c2c,null);return;}if(!_0x56d1ee){console[_0x2764(0x29)](_0x2598dc[_0x2764(0x2a)]),_0x27997a([]),_0x2598dc[_0x2764(0x24)](_0x258c2c,_0x2598dc[_0x2764(0x2b)]);return;}console[_0x2764(0x26)](_0x2598dc['gShpv']),console[_0x2764(0x26)](_0x2598dc[_0x2764(0x2c)],_0x56d1ee[_0x2764(0x2d)](0x0,0x14)+_0x2764(0x2e));const _0x35028e=await(0x0,_userConnectionsService[_0x2764(0x2f)])();_0x2598dc['MuFUz'](_0x27997a,_0x35028e),console[_0x2764(0x26)](_0x2764(0x30),_0x35028e[_0x2764(0x31)]);}else return _0x3f4452&&_0x10e04f[_0x2764(0x1)]?_0x386176:{'default':_0x11e0b8};}catch(_0x5d5094){const _0x10c3ae=_0x2598dc['HcUSP'](_0x5d5094,Error)?_0x5d5094[_0x2764(0x32)]:'Failed\x20to\x20load\x20connections';console[_0x2764(0x29)](_0x2598dc[_0x2764(0x33)],_0x10c3ae),_0x258c2c(_0x10c3ae),_0x2598dc['GoRFX'](_0x27997a,[]);}finally{_0x2598dc['HxpYp'](_0x149242,![]);}else _0x2598dc[_0x2764(0x34)](_0x4977a8);},[]),_0x3348e0=(0x0,_react[_0x2764(0x17)])(async()=>{console[_0x2764(0x26)](_0x2598dc[_0x2764(0x35)]),await _0x2598dc[_0x2764(0x34)](_0x15ffa7),console['log'](_0x2598dc[_0x2764(0x36)]);},[_0x15ffa7]),_0x510134=(0x0,_react[_0x2764(0x17)])(async _0x3ea713=>{const _0x5b5429={'ZFBkZ':_0x2764(0x37)};try{const _0x3a25fd=await(0x0,_authService[_0x2764(0x1d)])();if(!_0x3a25fd){if(_0x2598dc[_0x2764(0x38)]===_0x2598dc[_0x2764(0x38)])return console['warn'](_0x2764(0x39)),[];else{const _0x16a76c=_0x23dc5b instanceof _0x453c99?_0x4f9655['message']:_0x2764(0x3a);_0x58774d[_0x2764(0x29)](_0x2598dc[_0x2764(0x33)],_0x16a76c),_0x2598dc['jqVQA'](_0x4d342e,_0x16a76c),_0x2598dc['GoRFX'](_0x19a7ee,[]);}}return console[_0x2764(0x26)](_0x2598dc[_0x2764(0x3b)],_0x3ea713),console['log'](_0x2598dc[_0x2764(0x2c)],_0x3a25fd['substring'](0x0,0x14)+_0x2764(0x2e)),await(0x0,_userConnectionsService[_0x2764(0x3c)])(_0x3ea713);}catch(_0x5ed774){return _0x2598dc[_0x2764(0x3d)]==='LkPPF'?(_0x4b48fe[_0x2764(0x29)](_0x5b5429[_0x2764(0x3e)],_0x572232),[]):(console[_0x2764(0x29)](_0x2598dc[_0x2764(0x3f)],_0x5ed774),[]);}},[]),_0x62f20b=(0x0,_react[_0x2764(0x17)])(async _0x58ec82=>{try{const _0xd9e009=await(0x0,_authService['getAuthToken'])();if(!_0xd9e009)return console[_0x2764(0x25)](_0x2764(0x40)),[];return console['log'](_0x2764(0x41),_0x58ec82),console[_0x2764(0x26)](_0x2598dc[_0x2764(0x2c)],_0xd9e009[_0x2764(0x2d)](0x0,0x14)+_0x2764(0x2e)),await(0x0,_userConnectionsService[_0x2764(0x42)])(_0x58ec82);}catch(_0x53f9e8){return console[_0x2764(0x29)](_0x2598dc[_0x2764(0x43)],_0x53f9e8),[];}},[]),_0x2a9eb9=(0x0,_react[_0x2764(0x17)])(async(_0x42b292,_0x5484eb=_0x2764(0x44))=>{try{console['log'](_0x2598dc['fCMDu']);const _0x214201=await(0x0,_userConnectionsService[_0x2764(0x45)])(_0x42b292,_0x5484eb);return _0x214201[_0x2764(0x46)];}catch(_0x31ffdc){if(_0x2598dc[_0x2764(0x47)](_0x2764(0x48),_0x2598dc['YpuPV']))return console[_0x2764(0x29)](_0x2598dc[_0x2764(0x49)],_0x31ffdc),![];else{_0x149ead[_0x2764(0x26)](_0x2598dc['oNEHD']),_0x2598dc['SgvLA'](_0xb5aba8,[]),_0x2598dc[_0x2764(0x4a)](_0x4abb28,null);return;}}},[]);return(0x0,_react['useEffect'])(()=>{_0x2598dc[_0x2764(0x4b)](_0x15ffa7);},[_0x15ffa7]),{'connections':_0xf34932,'isLoading':_0x420fa3,'error':_0x49f119,'refreshConnections':_0x3348e0,'getConnectionsByUsername':_0x510134,'getConnectionsByUserId':_0x62f20b,'uploadUserProfilePicture':_0x2a9eb9};};exports[_0x2764(0x2)]=useUserConnections;function _0xa1c9(){const _0x334af0=['defineProperty','__esModule','useUserConnections','nZNAe','onairos_jwt_token','reviewer-bypass-token','Authentication\x20required\x20for\x20connections','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20refresh','🎯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo','❌\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation','Authentication\x20error','🔄\x20Loading\x20user\x20connections\x20with\x20authentication...','🔑\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:','❌\x20Error\x20loading\x20connections:','🔄\x20[CONNECTIONS\x20HOOK]\x20Refreshing\x20connections...','✅\x20[CONNECTIONS\x20HOOK]\x20Connections\x20refresh\x20completed','🔍\x20Fetching\x20connections\x20by\x20username:','bhExV','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','📷\x20Uploading\x20profile\x20picture\x20for\x20user:','YxLNZ','❌\x20Error\x20uploading\x20profile\x20picture:','useState','useCallback','MoOIL','DMKPW','XWnRw','CHPnc','cKPXJ','getAuthToken','getItem','bQovs','tmGrZ','LNNln','split','⚠️\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests','MuFUz','warn','log','oNEHD','CIRNR','error','eWpXu','iTzyT','xSwTf','substring','...','getUserConnections','✅\x20Connections\x20loaded:','length','message','fUTWO','EMcJN','AjdXx','xcZoK','❌\x20Error\x20fetching\x20connections\x20by\x20username:','FTWzI','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','Failed\x20to\x20load\x20connections','dKydD','getUserConnectionsByUsername','FoLRJ','ZFBkZ','fMAcz','⚠️\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','🔍\x20Fetching\x20connections\x20by\x20userId:','getUserConnectionsByUserId','UZUtE','jpg','uploadProfilePicture','success','jHQLO','HEQDe','byYZk','YMPvw','mDYkX'];_0xa1c9=function(){return _0x334af0;};return _0xa1c9();}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -1,106 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "decodeJWTPayload", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _apiKeyService.decodeJWTPayload;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
exports.default = void 0;
|
|
43
|
-
Object.defineProperty(exports, "executeOnairosFlow", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _programmaticFlow.executeOnairosFlow;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "extractUserDataFromJWT", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return _apiKeyService.extractUserDataFromJWT;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "extractUsernameFromJWT", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return _apiKeyService.extractUsernameFromJWT;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "getStoredJwtToken", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () {
|
|
64
|
-
return _platformAuthService.getStoredJwtToken;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "initializeApiKey", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () {
|
|
70
|
-
return _apiKeyService.initializeApiKey;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "requestEmailVerification", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () {
|
|
76
|
-
return _platformAuthService.requestEmailVerification;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(exports, "verifyEmailCode", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () {
|
|
82
|
-
return _platformAuthService.verifyEmailCode;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
var _OnairosButton = require("./components/OnairosButton");
|
|
86
|
-
var _Onairos = require("./components/Onairos");
|
|
87
|
-
var _apiKeyService = require("./services/apiKeyService");
|
|
88
|
-
var _platformAuthService = require("./services/platformAuthService");
|
|
89
|
-
var _programmaticFlow = require("./utils/programmaticFlow");
|
|
90
|
-
/**
|
|
91
|
-
* Onairos React Native SDK
|
|
92
|
-
* A React Native implementation for Onairos personalized data integration
|
|
93
|
-
*
|
|
94
|
-
* PUBLIC API - Only expose what developers need
|
|
95
|
-
*/
|
|
96
|
-
// Essential Types Only
|
|
97
|
-
// Core Components
|
|
98
|
-
// SDK Initialization
|
|
99
|
-
// Authentication & PIN Management
|
|
100
|
-
// Programmatic Function (for custom buttons)
|
|
101
|
-
// Default export for convenience
|
|
102
|
-
var _default = exports.default = {
|
|
103
|
-
OnairosButton: _OnairosButton.OnairosButton,
|
|
104
|
-
Onairos: _Onairos.Onairos
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("./components/OnairosButton"),
|
|
5
|
+
require("./components/OnairosSignInButton"),
|
|
6
|
+
require("./components/Onairos"),
|
|
7
|
+
require("./components/UniversalOnboarding"),
|
|
8
|
+
require("./components/onboarding/OAuthWebView"),
|
|
9
|
+
require("./utils/Portal"),
|
|
10
|
+
require("./components/WelcomeScreen"),
|
|
11
|
+
require("./components/PrimaryButton"),
|
|
12
|
+
require("./components/ModalSheet"),
|
|
13
|
+
require("./components/ModalHeader"),
|
|
14
|
+
require("./components/BrandMark"),
|
|
15
|
+
require("./components/HeadingGroup"),
|
|
16
|
+
require("./components/BodyText"),
|
|
17
|
+
require("./components/SignInStep"),
|
|
18
|
+
require("./components/VerificationStep"),
|
|
19
|
+
require("./components/PlatformConnectorsStep"),
|
|
20
|
+
require("./components/PersonalizationConsentScreen"),
|
|
21
|
+
require("./components/PinCreationScreen"),
|
|
22
|
+
require("./hooks/useConnections"),
|
|
23
|
+
require("./components/PersonaImage"),
|
|
24
|
+
require("./services/apiKeyService"),
|
|
25
|
+
require("./services/authService"),
|
|
26
|
+
require("./services/jwtStorageService"),
|
|
27
|
+
require("./services/platformAuthService"),
|
|
28
|
+
require("./utils/networkDiagnostics"),
|
|
29
|
+
require("./services/googleAuthService"),
|
|
30
|
+
require("./services/apiClient"),
|
|
31
|
+
require("./services/linkedinScrapingService"),
|
|
32
|
+
require("./services/linkedinDOMExtractor")
|
|
33
|
+
];
|
|
34
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
35
|
+
function _0x3d29(){var _0x1bf290=['defineProperty','__esModule','ApiClient','BodyText','HeadingGroup','ModalHeader','ModalSheet','OAuthWebView','Onairos','OnairosSignInButton','PersonaImage','default','PersonalizationConsentScreen','PinCreationScreen','PlatformConnectorsStep','Portal','PortalHost','PrimaryButton','SignInStep','UniversalOnboarding','VerificationStep','WelcomeScreen','authenticateWithApple','authenticateWithOnairos','authenticateWithOnairosSignIn','canScrapeProfile','clearAllAuthTokens','clearJWT','decodeJWTPayload','extractLinkedInUsername','extractUserDataFromJWT','extractUsernameFromJWT','formatLinkedInUrl','getAuthToken','getJWT','getLinkedInConnectionStatus','getNetworkStatus','getOnairosUsername','getProfileExtractionScript','getScrapingStatus','hasNativeSDK','hasValidJWT','initializeApiKey','initiateNativeAuth','initiateOAuth','isApiReachable','isAuthenticated','isGoogleSignedIn','isOAuthCallback','isValidLinkedInUrl','removeAuthToken','replaceJWT','resetScrapingStatus','runFullDiagnostics','saveAuthToken','scrapeLinkedInProfile','sendEmailVerificationCode','signInWithGoogle','signOutFromGoogle','startLinkedInScraping','storeJWT','testApiConnectivity','updateGoogleClientIds','useConnections','log'];_0x3d29=function(){return _0x1bf290;};return _0x3d29();}function _0x2e8e(_0x3d29af,_0x2e8e3d){_0x3d29af=_0x3d29af-0x0;var _0x1ac4d3=_0x3d29();var _0x418a22=_0x1ac4d3[_0x3d29af];return _0x418a22;}Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1),{'value':!![]}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x2),{'enumerable':!![],'get':function(){return _apiClient[_0x2e8e(0x2)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3),{'enumerable':!![],'get':function(){return _BodyText[_0x2e8e(0x3)];}}),Object[_0x2e8e(0x0)](exports,'BrandMark',{'enumerable':!![],'get':function(){return _BrandMark['BrandMark'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x4),{'enumerable':!![],'get':function(){return _HeadingGroup[_0x2e8e(0x4)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x5),{'enumerable':!![],'get':function(){return _ModalHeader[_0x2e8e(0x5)];}}),Object['defineProperty'](exports,'ModalSheet',{'enumerable':!![],'get':function(){return _ModalSheet[_0x2e8e(0x6)];}}),Object[_0x2e8e(0x0)](exports,'OAuthWebView',{'enumerable':!![],'get':function(){return _OAuthWebView[_0x2e8e(0x7)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x8),{'enumerable':!![],'get':function(){return _Onairos[_0x2e8e(0x8)];}}),Object[_0x2e8e(0x0)](exports,'OnairosButton',{'enumerable':!![],'get':function(){return _OnairosButton['OnairosButton'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x9),{'enumerable':!![],'get':function(){return _OnairosSignInButton['OnairosSignInButton'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0xa),{'enumerable':!![],'get':function(){return _PersonaImage[_0x2e8e(0xb)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0xc),{'enumerable':!![],'get':function(){return _PersonalizationConsentScreen[_0x2e8e(0xc)];}}),Object['defineProperty'](exports,_0x2e8e(0xd),{'enumerable':!![],'get':function(){return _PinCreationScreen[_0x2e8e(0xd)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0xe),{'enumerable':!![],'get':function(){return _PlatformConnectorsStep[_0x2e8e(0xb)];}}),Object['defineProperty'](exports,_0x2e8e(0xf),{'enumerable':!![],'get':function(){return _Portal[_0x2e8e(0xf)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x10),{'enumerable':!![],'get':function(){return _Portal[_0x2e8e(0x10)];}}),Object['defineProperty'](exports,_0x2e8e(0x11),{'enumerable':!![],'get':function(){return _PrimaryButton['PrimaryButton'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x12),{'enumerable':!![],'get':function(){return _SignInStep[_0x2e8e(0x12)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x13),{'enumerable':!![],'get':function(){return _UniversalOnboarding[_0x2e8e(0x13)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x14),{'enumerable':!![],'get':function(){return _VerificationStep[_0x2e8e(0x14)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x15),{'enumerable':!![],'get':function(){return _WelcomeScreen[_0x2e8e(0xb)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x16),{'enumerable':!![],'get':function(){return _authService[_0x2e8e(0x16)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x17),{'enumerable':!![],'get':function(){return _authService['authenticateWithOnairos'];}}),Object['defineProperty'](exports,_0x2e8e(0x18),{'enumerable':!![],'get':function(){return _authService[_0x2e8e(0x18)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x19),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2e8e(0x19)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1a),{'enumerable':!![],'get':function(){return _authService[_0x2e8e(0x1a)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1b),{'enumerable':!![],'get':function(){return _jwtStorageService[_0x2e8e(0x1b)];}}),Object['defineProperty'](exports,'confirmEmailVerificationCode',{'enumerable':!![],'get':function(){return _authService['confirmEmailVerificationCode'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1c),{'enumerable':!![],'get':function(){return _apiKeyService['decodeJWTPayload'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1d),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2e8e(0x1d)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1e),{'enumerable':!![],'get':function(){return _apiKeyService[_0x2e8e(0x1e)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x1f),{'enumerable':!![],'get':function(){return _apiKeyService['extractUsernameFromJWT'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x20),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2e8e(0x20)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x21),{'enumerable':!![],'get':function(){return _authService['getAuthToken'];}}),Object['defineProperty'](exports,_0x2e8e(0x22),{'enumerable':!![],'get':function(){return _jwtStorageService['getJWT'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x23),{'enumerable':!![],'get':function(){return _linkedinScrapingService['getLinkedInConnectionStatus'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x24),{'enumerable':!![],'get':function(){return _networkDiagnostics[_0x2e8e(0x24)];}}),Object[_0x2e8e(0x0)](exports,'getOnairosUsername',{'enumerable':!![],'get':function(){return _authService[_0x2e8e(0x25)];}}),Object['defineProperty'](exports,_0x2e8e(0x26),{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2e8e(0x26)];}}),Object[_0x2e8e(0x0)](exports,'getScrapingStatus',{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2e8e(0x27)];}}),Object[_0x2e8e(0x0)](exports,'hasNativeSDK',{'enumerable':!![],'get':function(){return _platformAuthService[_0x2e8e(0x28)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x29),{'enumerable':!![],'get':function(){return _jwtStorageService[_0x2e8e(0x29)];}}),Object['defineProperty'](exports,_0x2e8e(0x2a),{'enumerable':!![],'get':function(){return _apiKeyService[_0x2e8e(0x2a)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x2b),{'enumerable':!![],'get':function(){return _platformAuthService[_0x2e8e(0x2b)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x2c),{'enumerable':!![],'get':function(){return _platformAuthService[_0x2e8e(0x2c)];}}),Object['defineProperty'](exports,_0x2e8e(0x2d),{'enumerable':!![],'get':function(){return _networkDiagnostics['isApiReachable'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x2e),{'enumerable':!![],'get':function(){return _authService['isAuthenticated'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x2f),{'enumerable':!![],'get':function(){return _googleAuthService[_0x2e8e(0x2f)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x30),{'enumerable':!![],'get':function(){return _platformAuthService[_0x2e8e(0x30)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x31),{'enumerable':!![],'get':function(){return _linkedinScrapingService['isValidLinkedInUrl'];}}),Object['defineProperty'](exports,'parseExtractionMessage',{'enumerable':!![],'get':function(){return _linkedinDOMExtractor['parseExtractionMessage'];}}),Object[_0x2e8e(0x0)](exports,'removeAuthToken',{'enumerable':!![],'get':function(){return _authService[_0x2e8e(0x32)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x33),{'enumerable':!![],'get':function(){return _jwtStorageService['replaceJWT'];}}),Object['defineProperty'](exports,_0x2e8e(0x34),{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2e8e(0x34)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x35),{'enumerable':!![],'get':function(){return _networkDiagnostics[_0x2e8e(0x35)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x36),{'enumerable':!![],'get':function(){return _authService['saveAuthToken'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x37),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2e8e(0x37)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x38),{'enumerable':!![],'get':function(){return _authService[_0x2e8e(0x38)];}}),Object[_0x2e8e(0x0)](exports,'signInWithGoogle',{'enumerable':!![],'get':function(){return _googleAuthService[_0x2e8e(0x39)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3a),{'enumerable':!![],'get':function(){return _googleAuthService['signOutFromGoogle'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3b),{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2e8e(0x3b)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3c),{'enumerable':!![],'get':function(){return _jwtStorageService[_0x2e8e(0x3c)];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3d),{'enumerable':!![],'get':function(){return _platformAuthService['testApiConnectivity'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3e),{'enumerable':!![],'get':function(){return _googleAuthService['updateGoogleClientIds'];}}),Object[_0x2e8e(0x0)](exports,_0x2e8e(0x3f),{'enumerable':!![],'get':function(){return _useConnections[_0x2e8e(0x3f)];}});var _OnairosButton=__ONAIROS_REQ_FUNC__(0x0),_OnairosSignInButton=__ONAIROS_REQ_FUNC__(0x1),_Onairos=__ONAIROS_REQ_FUNC__(0x2),_UniversalOnboarding=__ONAIROS_REQ_FUNC__(0x3),_OAuthWebView=__ONAIROS_REQ_FUNC__(0x4),_Portal=__ONAIROS_REQ_FUNC__(0x5),_WelcomeScreen=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x6)),_PrimaryButton=__ONAIROS_REQ_FUNC__(0x7),_ModalSheet=__ONAIROS_REQ_FUNC__(0x8),_ModalHeader=__ONAIROS_REQ_FUNC__(0x9),_BrandMark=__ONAIROS_REQ_FUNC__(0xa),_HeadingGroup=__ONAIROS_REQ_FUNC__(0xb),_BodyText=__ONAIROS_REQ_FUNC__(0xc),_SignInStep=__ONAIROS_REQ_FUNC__(0xd),_VerificationStep=__ONAIROS_REQ_FUNC__(0xe),_PlatformConnectorsStep=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0xf)),_PersonalizationConsentScreen=__ONAIROS_REQ_FUNC__(0x10),_PinCreationScreen=__ONAIROS_REQ_FUNC__(0x11),_useConnections=__ONAIROS_REQ_FUNC__(0x12),_PersonaImage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x13)),_apiKeyService=__ONAIROS_REQ_FUNC__(0x14),_authService=__ONAIROS_REQ_FUNC__(0x15),_jwtStorageService=__ONAIROS_REQ_FUNC__(0x16),_platformAuthService=__ONAIROS_REQ_FUNC__(0x17),_networkDiagnostics=__ONAIROS_REQ_FUNC__(0x18),_googleAuthService=__ONAIROS_REQ_FUNC__(0x19),_apiClient=__ONAIROS_REQ_FUNC__(0x1a),_linkedinScrapingService=__ONAIROS_REQ_FUNC__(0x1b),_linkedinDOMExtractor=__ONAIROS_REQ_FUNC__(0x1c);function _interopRequireDefault(_0x259ea3){return _0x259ea3&&_0x259ea3[_0x2e8e(0x1)]?_0x259ea3:{'default':_0x259ea3};}console[_0x2e8e(0x40)]('🚀\x20[ONAIROS\x20SDK]\x20LOCAL\x20SDK\x20LOADED\x20-\x20Version\x205.0.0-local-dev'),console['log']('\uD83D\uDE80 [ONAIROS SDK] Source: onairos-npm-react-native/src/index.ts');
|