@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
package/src/types/ambient.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ambient type declarations to fix Node.js module conflicts
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// These modules are not used directly in React Native, but are referenced by types
|
|
6
|
-
// Providing empty declarations prevents TypeScript from trying to use Node.js types
|
|
7
|
-
declare module 'https' {
|
|
8
|
-
interface Server {
|
|
9
|
-
prependListener(event: string, listener: (...args: any[]) => void): any;
|
|
10
|
-
once(event: string, listener: (...args: any[]) => void): any;
|
|
11
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): any;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare module 'node:https' {}
|
|
16
|
-
declare module 'node:http' {}
|
|
17
|
-
declare module 'node:crypto' {}
|
|
18
|
-
declare module 'process' {
|
|
19
|
-
global {
|
|
20
|
-
namespace NodeJS {
|
|
21
|
-
interface Process {
|
|
22
|
-
env: {
|
|
23
|
-
NODE_ENV?: string;
|
|
24
|
-
[key: string]: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Type declarations for modules without type definitions
|
|
2
|
-
|
|
3
|
-
declare module 'react-native-rsa-native' {
|
|
4
|
-
export const RSA: {
|
|
5
|
-
encrypt: (data: string, publicKey: string) => Promise<string>;
|
|
6
|
-
decrypt: (data: string, privateKey: string) => Promise<string>;
|
|
7
|
-
sign: (data: string, privateKey: string, hash?: string) => Promise<string>;
|
|
8
|
-
verify: (data: string, signature: string, publicKey: string, hash?: string) => Promise<boolean>;
|
|
9
|
-
generateKeys: (keySize?: number) => Promise<{ private: string; public: string }>;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare module 'react-native-crypto-js' {
|
|
14
|
-
export const AES: {
|
|
15
|
-
encrypt: (message: string, secretKey: string) => any;
|
|
16
|
-
decrypt: (ciphertext: any, secretKey: string) => string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export function sha256(message: string): any;
|
|
20
|
-
export function MD5(message: string): any;
|
|
21
|
-
export function SHA1(message: string): any;
|
|
22
|
-
export function SHA512(message: string): any;
|
|
23
|
-
export function HmacSHA256(message: string, key: string): any;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Declare any other missing module types here
|
package/src/types/index.d.ts
DELETED
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
declare module '@onairos/react-native' {
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
4
|
-
|
|
5
|
-
export interface DataTier {
|
|
6
|
-
type: string;
|
|
7
|
-
descriptions: string;
|
|
8
|
-
reward: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface OnairosButtonProps {
|
|
12
|
-
/** Return link after authentication (used for web-based flows) */
|
|
13
|
-
returnLink?: string;
|
|
14
|
-
/** Prefill URL for the authentication process */
|
|
15
|
-
prefillUrl?: string;
|
|
16
|
-
/** Application name to display in dialogs */
|
|
17
|
-
AppName?: string;
|
|
18
|
-
/** Button type - 'normal' or 'pill' */
|
|
19
|
-
buttonType?: 'normal' | 'pill';
|
|
20
|
-
/** Data requests for user consent */
|
|
21
|
-
requestData?: {
|
|
22
|
-
[key: string]: {
|
|
23
|
-
type: string;
|
|
24
|
-
descriptions: string;
|
|
25
|
-
reward: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
/** Button width in pixels or percentage */
|
|
29
|
-
buttonWidth?: number | string;
|
|
30
|
-
/** Button height in pixels */
|
|
31
|
-
buttonHeight?: number;
|
|
32
|
-
/** Whether to show stroke/border around button */
|
|
33
|
-
hasStroke?: boolean;
|
|
34
|
-
/** Whether the button is enabled */
|
|
35
|
-
enabled?: boolean;
|
|
36
|
-
/** Button form/shape style */
|
|
37
|
-
buttonForm?: 'default' | 'rounded' | 'square';
|
|
38
|
-
/** Callback when user rejects or cancels */
|
|
39
|
-
onRejection?: (reason: string) => void;
|
|
40
|
-
/** Callback when authentication is resolved */
|
|
41
|
-
onResolved?: (apiUrl: string, accessToken: string, data: any) => void;
|
|
42
|
-
/** Function to check before starting authentication */
|
|
43
|
-
preCheck?: () => Promise<boolean>;
|
|
44
|
-
/** Button background color */
|
|
45
|
-
color?: string;
|
|
46
|
-
/** Whether to apply a slight rotation effect */
|
|
47
|
-
swerv?: boolean;
|
|
48
|
-
/** Enable debug mode */
|
|
49
|
-
debug?: boolean;
|
|
50
|
-
/** Preferred platform for authentication */
|
|
51
|
-
preferredPlatform?: string;
|
|
52
|
-
/** Enable test mode */
|
|
53
|
-
testMode?: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface OnairosProps {
|
|
57
|
-
/** Return link after authentication (used for web-based flows) */
|
|
58
|
-
returnLink?: string;
|
|
59
|
-
/** Prefill URL for the authentication process */
|
|
60
|
-
prefillUrl?: string;
|
|
61
|
-
/** Application name to display in dialogs */
|
|
62
|
-
AppName: string;
|
|
63
|
-
/** Button type - 'normal' or 'pill' */
|
|
64
|
-
buttonType?: 'normal' | 'pill';
|
|
65
|
-
/** Data requests for user consent */
|
|
66
|
-
requestData?: {
|
|
67
|
-
[key: string]: DataTier;
|
|
68
|
-
};
|
|
69
|
-
/** Button width in pixels */
|
|
70
|
-
buttonWidth?: number;
|
|
71
|
-
/** Button height in pixels */
|
|
72
|
-
buttonHeight?: number;
|
|
73
|
-
/** Whether to show stroke/border around button */
|
|
74
|
-
hasStroke?: boolean;
|
|
75
|
-
/** Whether the button is enabled */
|
|
76
|
-
enabled?: boolean;
|
|
77
|
-
/** Button form/shape style */
|
|
78
|
-
buttonForm?: 'default' | 'connect';
|
|
79
|
-
/** Callback when user rejects or cancels */
|
|
80
|
-
onRejection?: (error?: string) => void;
|
|
81
|
-
/** Callback when authentication is resolved */
|
|
82
|
-
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
83
|
-
/** Function to check before starting authentication */
|
|
84
|
-
preCheck?: () => Promise<boolean>;
|
|
85
|
-
/** Button background color */
|
|
86
|
-
color?: string;
|
|
87
|
-
/** Enable debug mode */
|
|
88
|
-
debug?: boolean;
|
|
89
|
-
/** Enable dark mode */
|
|
90
|
-
darkMode?: boolean;
|
|
91
|
-
/** Preferred platform for authentication */
|
|
92
|
-
preferredPlatform?: string;
|
|
93
|
-
/** Enable test mode */
|
|
94
|
-
testMode?: boolean;
|
|
95
|
-
/** API Key Configuration (REQUIRED) */
|
|
96
|
-
apiKey: string;
|
|
97
|
-
/** Environment setting for API calls */
|
|
98
|
-
environment?: 'production' | 'staging' | 'development';
|
|
99
|
-
/** Enable logging for debugging */
|
|
100
|
-
enableLogging?: boolean;
|
|
101
|
-
/** Request timeout in milliseconds */
|
|
102
|
-
timeout?: number;
|
|
103
|
-
/** Number of retry attempts for failed requests */
|
|
104
|
-
retryAttempts?: number;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface UniversalOnboardingProps {
|
|
108
|
-
visible: boolean;
|
|
109
|
-
onClose: () => void;
|
|
110
|
-
AppName: string;
|
|
111
|
-
requestData?: {
|
|
112
|
-
Small: DataTier;
|
|
113
|
-
Medium: DataTier;
|
|
114
|
-
Large: DataTier;
|
|
115
|
-
};
|
|
116
|
-
returnLink?: string;
|
|
117
|
-
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
118
|
-
preferredPlatform?: string;
|
|
119
|
-
debug?: boolean;
|
|
120
|
-
test?: boolean;
|
|
121
|
-
embedd?: boolean;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface ConnectionStatus {
|
|
125
|
-
[key: string]: boolean;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface PlatformListProps {
|
|
129
|
-
connections: ConnectionStatus;
|
|
130
|
-
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
131
|
-
isLoading: boolean;
|
|
132
|
-
canProceed: boolean;
|
|
133
|
-
onProceed: () => void;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface PinInputProps {
|
|
137
|
-
onSubmit: (pin: string) => void;
|
|
138
|
-
minLength?: number;
|
|
139
|
-
requireSpecialChar?: boolean;
|
|
140
|
-
requireNumber?: boolean;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface TrainingModalProps {
|
|
144
|
-
visible: boolean;
|
|
145
|
-
progress: number;
|
|
146
|
-
eta: string;
|
|
147
|
-
onCancel: () => void;
|
|
148
|
-
onComplete?: () => void;
|
|
149
|
-
modelKey?: string;
|
|
150
|
-
username?: string;
|
|
151
|
-
test?: boolean; // Enable test mode for simulated training
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface OAuthWebViewProps {
|
|
155
|
-
url: string;
|
|
156
|
-
platform: string;
|
|
157
|
-
onComplete: () => void;
|
|
158
|
-
onClose: () => void;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface CredentialsResult {
|
|
162
|
-
isValid: boolean;
|
|
163
|
-
credentials?: {
|
|
164
|
-
username?: string;
|
|
165
|
-
userPin?: string;
|
|
166
|
-
accessToken?: string;
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface PlatformConfig {
|
|
171
|
-
name: string;
|
|
172
|
-
icon: string;
|
|
173
|
-
color: string;
|
|
174
|
-
description?: string;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface ApiResponse<T> {
|
|
178
|
-
success: boolean;
|
|
179
|
-
data?: T;
|
|
180
|
-
error?: string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// Authentication & PIN Management Types
|
|
184
|
-
export interface EmailVerificationResult {
|
|
185
|
-
success: boolean;
|
|
186
|
-
message?: string;
|
|
187
|
-
error?: string;
|
|
188
|
-
existingUser?: boolean;
|
|
189
|
-
jwtToken?: string;
|
|
190
|
-
requestId?: string;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export interface PinStorageResult {
|
|
194
|
-
success: boolean;
|
|
195
|
-
message?: string;
|
|
196
|
-
error?: string;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export interface EmailVerificationStatusResult {
|
|
200
|
-
success: boolean;
|
|
201
|
-
isPending?: boolean;
|
|
202
|
-
message?: string;
|
|
203
|
-
error?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// Component Types
|
|
207
|
-
export const OnairosButton: React.ForwardRefExoticComponent<OnairosButtonProps & React.RefAttributes<any>>;
|
|
208
|
-
export const Onairos: React.ForwardRefExoticComponent<OnairosProps & React.RefAttributes<any>>;
|
|
209
|
-
export const UniversalOnboarding: React.FC<UniversalOnboardingProps>;
|
|
210
|
-
export const PlatformList: React.FC<PlatformListProps>;
|
|
211
|
-
export const PinInput: React.FC<PinInputProps>;
|
|
212
|
-
export const TrainingModal: React.FC<TrainingModalProps>;
|
|
213
|
-
export const OAuthWebView: React.FC<OAuthWebViewProps>;
|
|
214
|
-
|
|
215
|
-
// Authentication & PIN Management Functions
|
|
216
|
-
// TODO: Commented out temporarily - biometric functionality disabled
|
|
217
|
-
// export function storePinAfterBiometric(
|
|
218
|
-
// username: string,
|
|
219
|
-
// pin: string,
|
|
220
|
-
// jwtToken?: string
|
|
221
|
-
// ): Promise<PinStorageResult>;
|
|
222
|
-
|
|
223
|
-
export function getStoredJwtToken(): Promise<string | null>;
|
|
224
|
-
|
|
225
|
-
export function clearStoredTokens(): Promise<void>;
|
|
226
|
-
|
|
227
|
-
export function requestEmailVerification(
|
|
228
|
-
email: string,
|
|
229
|
-
testMode?: boolean
|
|
230
|
-
): Promise<EmailVerificationResult>;
|
|
231
|
-
|
|
232
|
-
export function verifyEmailCode(
|
|
233
|
-
email: string,
|
|
234
|
-
code: string,
|
|
235
|
-
testMode?: boolean
|
|
236
|
-
): Promise<EmailVerificationResult>;
|
|
237
|
-
|
|
238
|
-
export function checkEmailVerificationStatus(
|
|
239
|
-
email: string,
|
|
240
|
-
testMode?: boolean
|
|
241
|
-
): Promise<EmailVerificationStatusResult>;
|
|
242
|
-
|
|
243
|
-
// SDK Initialization Functions
|
|
244
|
-
export function initializeApiKey(config: any): Promise<void>;
|
|
245
|
-
export const ADMIN_API_KEY: string;
|
|
246
|
-
|
|
247
|
-
// JWT Token Functions
|
|
248
|
-
export function extractUsernameFromJWT(token?: string): string | null;
|
|
249
|
-
export function extractUserDataFromJWT(token?: string): any;
|
|
250
|
-
export function decodeJWTPayload(token: string): any;
|
|
251
|
-
|
|
252
|
-
// Programmatic Flow
|
|
253
|
-
export function executeOnairosFlow(config: any): Promise<any>;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Fix for Node.js type conflicts
|
|
257
|
-
declare module 'https' {
|
|
258
|
-
interface Server {
|
|
259
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// Override any problematic Node.js types
|
|
264
|
-
declare module 'node:https' {
|
|
265
|
-
export * from 'https';
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
declare module 'node:http' {
|
|
269
|
-
export * from 'http';
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
declare module 'node:crypto' {
|
|
273
|
-
export * from 'crypto';
|
|
274
|
-
}
|
package/src/types/index.ts
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
|
|
4
|
-
export interface DataTier {
|
|
5
|
-
name?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
descriptions?: string;
|
|
9
|
-
reward: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface OnairosButtonProps {
|
|
13
|
-
/** Return link after authentication (used for web-based flows) */
|
|
14
|
-
returnLink?: string;
|
|
15
|
-
/** Prefill URL for the authentication process */
|
|
16
|
-
prefillUrl?: string;
|
|
17
|
-
/** Application name to display in dialogs */
|
|
18
|
-
AppName?: string;
|
|
19
|
-
/** Button type - 'normal' or 'pill' */
|
|
20
|
-
buttonType?: 'normal' | 'pill';
|
|
21
|
-
/** Data requests for user consent */
|
|
22
|
-
requestData?: {
|
|
23
|
-
[key: string]: DataTier;
|
|
24
|
-
};
|
|
25
|
-
/** Button width in pixels or percentage */
|
|
26
|
-
buttonWidth?: number | string;
|
|
27
|
-
/** Button height in pixels */
|
|
28
|
-
buttonHeight?: number;
|
|
29
|
-
/** Whether to show stroke/border around button */
|
|
30
|
-
hasStroke?: boolean;
|
|
31
|
-
/** Whether the button is enabled */
|
|
32
|
-
enabled?: boolean;
|
|
33
|
-
/** Button form/shape style */
|
|
34
|
-
buttonForm?: 'default' | 'rounded' | 'square' | 'connect';
|
|
35
|
-
/** Callback when user rejects or cancels */
|
|
36
|
-
onRejection?: (reason?: string) => void;
|
|
37
|
-
/** Callback when authentication is resolved */
|
|
38
|
-
onResolved?: (apiUrl: string, accessToken: string, data: any) => void;
|
|
39
|
-
/** Function to check before starting authentication */
|
|
40
|
-
preCheck?: () => Promise<boolean>;
|
|
41
|
-
/** Button background color */
|
|
42
|
-
color?: string;
|
|
43
|
-
/** Whether to apply a slight rotation effect */
|
|
44
|
-
swerv?: boolean;
|
|
45
|
-
/** Enable debug mode */
|
|
46
|
-
debug?: boolean;
|
|
47
|
-
/** Preferred platform for authentication */
|
|
48
|
-
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
49
|
-
preferredPlatform?: string | string[];
|
|
50
|
-
/** Enable test mode */
|
|
51
|
-
testMode?: boolean;
|
|
52
|
-
/** Enable dark mode */
|
|
53
|
-
darkMode?: boolean;
|
|
54
|
-
/** Enable automatic API calls */
|
|
55
|
-
auto?: boolean;
|
|
56
|
-
/** App icon to display */
|
|
57
|
-
appIcon?: any;
|
|
58
|
-
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
59
|
-
newUser?: boolean; // Flow 2: Email → Code → Platform Connect → PIN → Training → Complete
|
|
60
|
-
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
61
|
-
existingUser?: boolean; // Flow 3: Existing User (Email → Code → Data Request → Complete)
|
|
62
|
-
fastTraining?: boolean; // Speed up training simulation
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface OnairosProps {
|
|
66
|
-
/** Return link after authentication (used for web-based flows) */
|
|
67
|
-
returnLink?: string;
|
|
68
|
-
/** Prefill URL for the authentication process */
|
|
69
|
-
prefillUrl?: string;
|
|
70
|
-
/** Application name to display in dialogs */
|
|
71
|
-
AppName: string;
|
|
72
|
-
/** Button type - 'normal' or 'pill' */
|
|
73
|
-
buttonType?: 'normal' | 'pill';
|
|
74
|
-
/** Data requests for user consent */
|
|
75
|
-
requestData?: {
|
|
76
|
-
[key: string]: DataTier;
|
|
77
|
-
};
|
|
78
|
-
/** Button width in pixels */
|
|
79
|
-
buttonWidth?: number;
|
|
80
|
-
/** Button height in pixels */
|
|
81
|
-
buttonHeight?: number;
|
|
82
|
-
/** Whether to show stroke/border around button */
|
|
83
|
-
hasStroke?: boolean;
|
|
84
|
-
/** Whether the button is enabled */
|
|
85
|
-
enabled?: boolean;
|
|
86
|
-
/** Button form/shape style */
|
|
87
|
-
buttonForm?: 'default' | 'connect';
|
|
88
|
-
/** Callback when user rejects or cancels */
|
|
89
|
-
onRejection?: (error?: string) => void;
|
|
90
|
-
/** Callback when authentication is resolved */
|
|
91
|
-
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
92
|
-
/** Function to check before starting authentication */
|
|
93
|
-
preCheck?: () => Promise<boolean>;
|
|
94
|
-
/** Button background color */
|
|
95
|
-
color?: string;
|
|
96
|
-
/** Enable debug mode */
|
|
97
|
-
debug?: boolean;
|
|
98
|
-
/** Enable dark mode */
|
|
99
|
-
darkMode?: boolean;
|
|
100
|
-
/** Preferred platform for authentication */
|
|
101
|
-
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
102
|
-
preferredPlatform?: string | string[];
|
|
103
|
-
/** Enable test mode */
|
|
104
|
-
testMode?: boolean;
|
|
105
|
-
/** API Key Configuration (REQUIRED) */
|
|
106
|
-
apiKey: string;
|
|
107
|
-
/** Environment setting for API calls */
|
|
108
|
-
environment?: 'production' | 'staging' | 'development';
|
|
109
|
-
/** Enable logging for debugging */
|
|
110
|
-
enableLogging?: boolean;
|
|
111
|
-
/** Request timeout in milliseconds */
|
|
112
|
-
timeout?: number;
|
|
113
|
-
/** Number of retry attempts for failed requests */
|
|
114
|
-
retryAttempts?: number;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface UniversalOnboardingProps {
|
|
118
|
-
visible: boolean;
|
|
119
|
-
onClose: () => void;
|
|
120
|
-
AppName: string;
|
|
121
|
-
appIcon?: any;
|
|
122
|
-
requestData?: {
|
|
123
|
-
[key: string]: DataTier;
|
|
124
|
-
};
|
|
125
|
-
returnLink?: string;
|
|
126
|
-
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
127
|
-
/** Preferred platform(s) for authentication - can specify 1-2 platforms to prioritize first */
|
|
128
|
-
preferredPlatform?: string | string[];
|
|
129
|
-
debug?: boolean;
|
|
130
|
-
testMode?: boolean;
|
|
131
|
-
embedd?: boolean;
|
|
132
|
-
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
133
|
-
newUser?: boolean; // Flow 2: Email → Code → Platform Connect → PIN → Training → Complete
|
|
134
|
-
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
135
|
-
existingUser?: boolean; // Flow 3: Existing User (Email → Code → Data Request → Complete)
|
|
136
|
-
fastTraining?: boolean; // Speed up training simulation
|
|
137
|
-
/** Inference data for auto mode */
|
|
138
|
-
inferenceData?: any;
|
|
139
|
-
/** Auto mode for direct API calls */
|
|
140
|
-
auto?: boolean;
|
|
141
|
-
/** Partner integration */
|
|
142
|
-
partner?: string;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface PlatformListProps {
|
|
146
|
-
connections: { [key: string]: boolean };
|
|
147
|
-
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
148
|
-
isLoading: boolean;
|
|
149
|
-
canProceed: boolean;
|
|
150
|
-
onProceed: () => void;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface PinInputProps {
|
|
154
|
-
onSubmit: (pin: string) => void;
|
|
155
|
-
minLength?: number;
|
|
156
|
-
requireSpecialChar?: boolean;
|
|
157
|
-
requireNumber?: boolean;
|
|
158
|
-
initialPin?: string;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface TrainingModalProps {
|
|
162
|
-
visible: boolean;
|
|
163
|
-
progress: number;
|
|
164
|
-
eta: string;
|
|
165
|
-
onCancel: () => void;
|
|
166
|
-
onComplete?: () => void;
|
|
167
|
-
modelKey?: string;
|
|
168
|
-
username?: string;
|
|
169
|
-
test?: boolean; // Enable test mode for simulated training
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface OAuthWebViewProps {
|
|
173
|
-
url: string;
|
|
174
|
-
platform: string;
|
|
175
|
-
onComplete: () => void;
|
|
176
|
-
onClose: () => void;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface CredentialsResult {
|
|
180
|
-
isValid: boolean;
|
|
181
|
-
credentials?: {
|
|
182
|
-
username?: string;
|
|
183
|
-
userPin?: string;
|
|
184
|
-
accessToken?: string;
|
|
185
|
-
pinterest?: { token: string; username: string };
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface OverlayProps {
|
|
190
|
-
visible: boolean;
|
|
191
|
-
onClose: () => void;
|
|
192
|
-
credentials: any;
|
|
193
|
-
onDeleteCredentials: () => void;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface ConnectionStatus {
|
|
197
|
-
[key: string]: boolean;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface PlatformConfig {
|
|
201
|
-
name: string;
|
|
202
|
-
icon: string;
|
|
203
|
-
color: string;
|
|
204
|
-
description?: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export interface ApiResponse<T> {
|
|
208
|
-
success: boolean;
|
|
209
|
-
data?: T;
|
|
210
|
-
error?: string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface PlatformAuthConfig {
|
|
214
|
-
hasNativeSDK: boolean;
|
|
215
|
-
nativeSDKPackage?: string;
|
|
216
|
-
authEndpoint: string;
|
|
217
|
-
color: string;
|
|
218
|
-
clientId?: string;
|
|
219
|
-
iosClientId?: string;
|
|
220
|
-
redirectUri?: string;
|
|
221
|
-
scope?: string;
|
|
222
|
-
responseType?: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface PinRequirements {
|
|
226
|
-
minLength: number;
|
|
227
|
-
requireSpecialChar: boolean;
|
|
228
|
-
requireNumber: boolean;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export interface OnairosConfig {
|
|
232
|
-
apiKey: string;
|
|
233
|
-
environment?: 'production' | 'staging' | 'development';
|
|
234
|
-
enableLogging?: boolean;
|
|
235
|
-
timeout?: number;
|
|
236
|
-
retryAttempts?: number;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface TestModeOptions {
|
|
240
|
-
skipEmailVerification?: boolean;
|
|
241
|
-
mockApiResponses?: boolean;
|
|
242
|
-
simulateTraining?: boolean;
|
|
243
|
-
enableDebugLogs?: boolean;
|
|
244
|
-
}
|
package/src/types/node-fix.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Fix for Node.js type conflicts
|
|
2
|
-
declare module 'https' {
|
|
3
|
-
interface Server {
|
|
4
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// Override any problematic Node.js types
|
|
9
|
-
declare module 'node:https' {
|
|
10
|
-
export * from 'https';
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare module 'node:http' {
|
|
14
|
-
export * from 'http';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare module 'node:crypto' {
|
|
18
|
-
export * from 'crypto';
|
|
19
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Override for Node.js HTTPS module to fix type errors
|
|
2
|
-
declare module 'node:https' {
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import * as tls from 'tls';
|
|
5
|
-
|
|
6
|
-
interface ServerOptions {
|
|
7
|
-
// Define simplified options
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class Server extends tls.Server {
|
|
11
|
-
// Override problematic methods with any type
|
|
12
|
-
prependListener(event: string, listener: any): this;
|
|
13
|
-
prependOnceListener(event: string, listener: any): this;
|
|
14
|
-
once(event: string, listener: any): this;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function createServer(options?: ServerOptions, requestListener?: any): Server;
|
|
18
|
-
function createServer(requestListener?: any): Server;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Also override node:http
|
|
22
|
-
declare module 'node:http' {
|
|
23
|
-
export * from 'http';
|
|
24
|
-
}
|
package/src/types/opacity.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare module '@opacity-labs/react-native-opacity' {
|
|
2
|
-
export enum OpacityEnvironment {
|
|
3
|
-
Production = 'production',
|
|
4
|
-
Development = 'development',
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface OpacityInitConfig {
|
|
8
|
-
apiKey: string;
|
|
9
|
-
environment: OpacityEnvironment;
|
|
10
|
-
shouldShowErrorsInWebView?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function init(config: OpacityInitConfig): Promise<void>;
|
|
14
|
-
|
|
15
|
-
export function get(flow: string): Promise<any>;
|
|
16
|
-
}
|
package/src/types/types.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare module '@onairos/react-native' {
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
import { ViewStyle } from 'react-native';
|
|
4
|
-
|
|
5
|
-
// Re-export all the types from our index.ts
|
|
6
|
-
export * from '../types';
|
|
7
|
-
|
|
8
|
-
// Components
|
|
9
|
-
export class Onairos extends Component<any> {}
|
|
10
|
-
export class OnairosButton extends Component<import('../types').OnairosButtonProps> {}
|
|
11
|
-
export class OnairosOverlay extends Component<import('../types').OverlayProps> {}
|
|
12
|
-
export class UniversalOnboarding extends Component<import('../types').UniversalOnboardingProps> {}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Fix for Node.js type conflicts by providing empty declarations
|
|
16
|
-
declare module 'node:https' {}
|
|
17
|
-
declare module 'node:http' {}
|
|
18
|
-
declare module 'node:crypto' {}
|