@onairos/react-native 3.1.14 → 3.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/components/BodyText.js.map +1 -1
- package/lib/commonjs/components/BrandMark.js.map +1 -1
- package/lib/commonjs/components/CodeInput.js.map +1 -1
- package/lib/commonjs/components/DataRequestModal.js.map +1 -1
- package/lib/commonjs/components/DataRequestScreen.js.map +1 -1
- package/lib/commonjs/components/EmailInput.js.map +1 -1
- package/lib/commonjs/components/EmailVerificationModal.js.map +1 -1
- package/lib/commonjs/components/ExistingUserDataConfirmation.js.map +1 -1
- package/lib/commonjs/components/GoogleButton.js.map +1 -1
- package/lib/commonjs/components/HeadingGroup.js.map +1 -1
- package/lib/commonjs/components/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ModalSheet.js.map +1 -1
- package/lib/commonjs/components/Onairos.js.map +1 -1
- package/lib/commonjs/components/OnairosButton.js.map +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js.map +1 -1
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/PersonaImage.js.map +1 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js.map +1 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js.map +1 -1
- package/lib/commonjs/components/PinCreationScreen.js.map +1 -1
- package/lib/commonjs/components/PinInput.js.map +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js.map +1 -1
- package/lib/commonjs/components/PlatformList.js.map +1 -1
- package/lib/commonjs/components/PlatformToggle.js.map +1 -1
- package/lib/commonjs/components/PrimaryButton.js.map +1 -1
- package/lib/commonjs/components/SignInMatchAnimation.js.map +1 -1
- package/lib/commonjs/components/SignInStep.js.map +1 -1
- package/lib/commonjs/components/TrainingModal.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/components/VerificationStep.js.map +1 -1
- package/lib/commonjs/components/WelcomeScreen.js.map +1 -1
- package/lib/commonjs/components/icons/Basicproficon.js.map +1 -1
- package/lib/commonjs/components/icons/Basicprofile.js.map +1 -1
- package/lib/commonjs/components/icons/Checkbox.js.map +1 -1
- package/lib/commonjs/components/icons/Checkmark.js.map +1 -1
- package/lib/commonjs/components/icons/Contentanalysis.js.map +1 -1
- package/lib/commonjs/components/icons/Contenticon.js.map +1 -1
- package/lib/commonjs/components/icons/EnochE.js.map +1 -1
- package/lib/commonjs/components/icons/Personalityicon.js.map +1 -1
- package/lib/commonjs/components/icons/Personalityprofile.js.map +1 -1
- package/lib/commonjs/components/icons/Personalitytraits.js.map +1 -1
- package/lib/commonjs/components/icons/Userpreferences.js.map +1 -1
- package/lib/commonjs/components/icons/index.js.map +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js.map +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js.map +1 -1
- package/lib/commonjs/components/screens/ConnectorScreen.js.map +1 -1
- package/lib/commonjs/components/screens/LoadingScreen.js.map +1 -1
- package/lib/commonjs/components/screens/PinCreationScreen.js.map +1 -1
- package/lib/commonjs/config/api.js.map +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/context/AuthContext.js.map +1 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js.map +1 -1
- package/lib/commonjs/hooks/useConnections.js.map +1 -1
- package/lib/commonjs/hooks/useCredentials.js.map +1 -1
- package/lib/commonjs/hooks/useUserConnections.js.map +1 -1
- package/lib/commonjs/index.js +228 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/apiClient.js.map +1 -1
- package/lib/commonjs/services/apiKeyService.js.map +1 -1
- package/lib/commonjs/services/authService.js.map +1 -1
- package/lib/commonjs/services/biometricPinService.js.map +1 -1
- package/lib/commonjs/services/connectedAccountsService.js.map +1 -1
- package/lib/commonjs/services/googleAuthService.js.map +1 -1
- package/lib/commonjs/services/imageCompressionService.js.map +1 -1
- package/lib/commonjs/services/jwtStorageService.js.map +1 -1
- package/lib/commonjs/services/mobileTrainingService.js.map +1 -1
- package/lib/commonjs/services/oauthService.js.map +1 -1
- package/lib/commonjs/services/pinEncryptionService.js.map +1 -1
- package/lib/commonjs/services/pinStorageUtils.js.map +1 -1
- package/lib/commonjs/services/platformAuthService.js.map +1 -1
- package/lib/commonjs/services/storageService.js.map +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js.map +1 -1
- package/lib/commonjs/services/userConnectionsService.js.map +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js.map +1 -1
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/types/ambient.d.js.map +1 -1
- package/lib/commonjs/types/declarations.d.js.map +1 -1
- package/lib/commonjs/types/index.d.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/node-fix.d.js.map +1 -1
- package/lib/commonjs/types/node-override.d.js.map +1 -1
- package/lib/commonjs/types/opacity.d.js.map +1 -1
- package/lib/commonjs/types/types.d.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/Portal.js.map +1 -1
- package/lib/commonjs/utils/api.js.map +1 -1
- package/lib/commonjs/utils/auth.js.map +1 -1
- package/lib/commonjs/utils/crypto.js.map +1 -1
- package/lib/commonjs/utils/debugHelper.js.map +1 -1
- package/lib/commonjs/utils/encryption.js.map +1 -1
- package/lib/commonjs/utils/eventUtils.js.map +1 -1
- package/lib/commonjs/utils/haptics.js.map +1 -1
- package/lib/commonjs/utils/imagePreloader.js.map +1 -1
- package/lib/commonjs/utils/onairosApi.js.map +1 -1
- package/lib/commonjs/utils/programmaticFlow.js.map +1 -1
- package/lib/commonjs/utils/retryHelper.js.map +1 -1
- package/lib/commonjs/utils/secureStorage.js.map +1 -1
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/components/BodyText.js.map +1 -1
- package/lib/module/components/BrandMark.js.map +1 -1
- package/lib/module/components/CodeInput.js.map +1 -1
- package/lib/module/components/DataRequestModal.js.map +1 -1
- package/lib/module/components/DataRequestScreen.js.map +1 -1
- package/lib/module/components/EmailInput.js.map +1 -1
- package/lib/module/components/EmailVerificationModal.js.map +1 -1
- package/lib/module/components/ExistingUserDataConfirmation.js.map +1 -1
- package/lib/module/components/GoogleButton.js.map +1 -1
- package/lib/module/components/HeadingGroup.js.map +1 -1
- package/lib/module/components/ModalHeader.js.map +1 -1
- package/lib/module/components/ModalSheet.js.map +1 -1
- package/lib/module/components/Onairos.js.map +1 -1
- package/lib/module/components/OnairosButton.js.map +1 -1
- package/lib/module/components/OnairosSignInButton.js.map +1 -1
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/PersonaImage.js.map +1 -1
- package/lib/module/components/PersonaLoadingScreen.js.map +1 -1
- package/lib/module/components/PersonalizationConsentScreen.js.map +1 -1
- package/lib/module/components/PinCreationScreen.js.map +1 -1
- package/lib/module/components/PinInput.js.map +1 -1
- package/lib/module/components/PlatformConnectorsStep.js.map +1 -1
- package/lib/module/components/PlatformList.js.map +1 -1
- package/lib/module/components/PlatformToggle.js.map +1 -1
- package/lib/module/components/PrimaryButton.js.map +1 -1
- package/lib/module/components/SignInMatchAnimation.js.map +1 -1
- package/lib/module/components/SignInStep.js.map +1 -1
- package/lib/module/components/TrainingModal.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/components/VerificationStep.js.map +1 -1
- package/lib/module/components/WelcomeScreen.js.map +1 -1
- package/lib/module/components/icons/Basicproficon.js.map +1 -1
- package/lib/module/components/icons/Basicprofile.js.map +1 -1
- package/lib/module/components/icons/Checkbox.js.map +1 -1
- package/lib/module/components/icons/Checkmark.js.map +1 -1
- package/lib/module/components/icons/Contentanalysis.js.map +1 -1
- package/lib/module/components/icons/Contenticon.js.map +1 -1
- package/lib/module/components/icons/EnochE.js.map +1 -1
- package/lib/module/components/icons/Personalityicon.js.map +1 -1
- package/lib/module/components/icons/Personalityprofile.js.map +1 -1
- package/lib/module/components/icons/Personalitytraits.js.map +1 -1
- package/lib/module/components/icons/Userpreferences.js.map +1 -1
- package/lib/module/components/icons/index.js.map +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js.map +1 -1
- package/lib/module/components/onboarding/PinInput.js.map +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js.map +1 -1
- package/lib/module/components/screens/ConnectorScreen.js.map +1 -1
- package/lib/module/components/screens/LoadingScreen.js.map +1 -1
- package/lib/module/components/screens/PinCreationScreen.js.map +1 -1
- package/lib/module/config/api.js.map +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/context/AuthContext.js.map +1 -1
- package/lib/module/hooks/useConnectedAccounts.js.map +1 -1
- package/lib/module/hooks/useConnections.js.map +1 -1
- package/lib/module/hooks/useCredentials.js.map +1 -1
- package/lib/module/hooks/useUserConnections.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/apiClient.js.map +1 -1
- package/lib/module/services/apiKeyService.js.map +1 -1
- package/lib/module/services/authService.js.map +1 -1
- package/lib/module/services/biometricPinService.js.map +1 -1
- package/lib/module/services/connectedAccountsService.js.map +1 -1
- package/lib/module/services/googleAuthService.js.map +1 -1
- package/lib/module/services/imageCompressionService.js.map +1 -1
- package/lib/module/services/jwtStorageService.js.map +1 -1
- package/lib/module/services/mobileTrainingService.js.map +1 -1
- package/lib/module/services/oauthService.js.map +1 -1
- package/lib/module/services/pinEncryptionService.js.map +1 -1
- package/lib/module/services/pinStorageUtils.js.map +1 -1
- package/lib/module/services/platformAuthService.js.map +1 -1
- package/lib/module/services/storageService.js.map +1 -1
- package/lib/module/services/trainingApiHelpers.js.map +1 -1
- package/lib/module/services/userConnectionsService.js.map +1 -1
- package/lib/module/services/youtubeMigrationService.js.map +1 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/types/ambient.d.js.map +1 -1
- package/lib/module/types/declarations.d.js.map +1 -1
- package/lib/module/types/index.d.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/node-fix.d.js.map +1 -1
- package/lib/module/types/node-override.d.js.map +1 -1
- package/lib/module/types/opacity.d.js.map +1 -1
- package/lib/module/types/types.d.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/Portal.js.map +1 -1
- package/lib/module/utils/api.js.map +1 -1
- package/lib/module/utils/auth.js.map +1 -1
- package/lib/module/utils/crypto.js.map +1 -1
- package/lib/module/utils/debugHelper.js.map +1 -1
- package/lib/module/utils/encryption.js.map +1 -1
- package/lib/module/utils/eventUtils.js.map +1 -1
- package/lib/module/utils/haptics.js.map +1 -1
- package/lib/module/utils/imagePreloader.js.map +1 -1
- package/lib/module/utils/onairosApi.js.map +1 -1
- package/lib/module/utils/programmaticFlow.js.map +1 -1
- package/lib/module/utils/retryHelper.js.map +1 -1
- package/lib/module/utils/secureStorage.js.map +1 -1
- package/lib/typescript/api/index.d.ts +15 -15
- package/lib/typescript/components/BodyText.d.ts +9 -9
- package/lib/typescript/components/BrandMark.d.ts +10 -10
- package/lib/typescript/components/CodeInput.d.ts +9 -9
- package/lib/typescript/components/DataRequestModal.d.ts +10 -10
- package/lib/typescript/components/DataRequestScreen.d.ts +10 -10
- package/lib/typescript/components/EmailInput.d.ts +7 -7
- package/lib/typescript/components/EmailVerificationModal.d.ts +10 -10
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts +11 -11
- package/lib/typescript/components/GoogleButton.d.ts +10 -10
- package/lib/typescript/components/HeadingGroup.d.ts +10 -10
- package/lib/typescript/components/ModalHeader.d.ts +10 -10
- package/lib/typescript/components/ModalSheet.d.ts +12 -12
- package/lib/typescript/components/Onairos.d.ts +3 -3
- package/lib/typescript/components/OnairosButton.d.ts +36 -36
- package/lib/typescript/components/OnairosSignInButton.d.ts +13 -13
- package/lib/typescript/components/Overlay.d.ts +3 -3
- package/lib/typescript/components/PersonaImage.d.ts +7 -7
- package/lib/typescript/components/PersonaLoadingScreen.d.ts +9 -9
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts +9 -9
- package/lib/typescript/components/PinCreationScreen.d.ts +9 -9
- package/lib/typescript/components/PinInput.d.ts +13 -13
- package/lib/typescript/components/PlatformConnectorsStep.d.ts +10 -10
- package/lib/typescript/components/PlatformList.d.ts +3 -3
- package/lib/typescript/components/PlatformToggle.d.ts +19 -19
- package/lib/typescript/components/PrimaryButton.d.ts +21 -21
- package/lib/typescript/components/SignInMatchAnimation.d.ts +8 -8
- package/lib/typescript/components/SignInStep.d.ts +11 -11
- package/lib/typescript/components/TrainingModal.d.ts +14 -14
- package/lib/typescript/components/UniversalOnboarding.d.ts +16 -16
- package/lib/typescript/components/VerificationStep.d.ts +12 -12
- package/lib/typescript/components/WelcomeScreen.d.ts +8 -8
- package/lib/typescript/components/icons/Basicproficon.d.ts +4 -4
- package/lib/typescript/components/icons/Basicprofile.d.ts +4 -4
- package/lib/typescript/components/icons/Checkbox.d.ts +4 -4
- package/lib/typescript/components/icons/Checkmark.d.ts +4 -4
- package/lib/typescript/components/icons/Contentanalysis.d.ts +4 -4
- package/lib/typescript/components/icons/Contenticon.d.ts +4 -4
- package/lib/typescript/components/icons/EnochE.d.ts +4 -4
- package/lib/typescript/components/icons/Personalityicon.d.ts +4 -4
- package/lib/typescript/components/icons/Personalityprofile.d.ts +4 -4
- package/lib/typescript/components/icons/Personalitytraits.d.ts +4 -4
- package/lib/typescript/components/icons/Userpreferences.d.ts +4 -4
- package/lib/typescript/components/icons/index.d.ts +11 -11
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts +9 -9
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +10 -10
- package/lib/typescript/components/onboarding/PinInput.d.ts +3 -3
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts +12 -12
- package/lib/typescript/components/screens/ConnectorScreen.d.ts +8 -8
- package/lib/typescript/components/screens/LoadingScreen.d.ts +8 -8
- package/lib/typescript/components/screens/PinCreationScreen.d.ts +9 -9
- package/lib/typescript/config/api.d.ts +23 -23
- package/lib/typescript/constants/index.d.ts +52 -52
- package/lib/typescript/context/AuthContext.d.ts +33 -33
- package/lib/typescript/hooks/useConnectedAccounts.d.ts +10 -10
- package/lib/typescript/hooks/useConnections.d.ts +13 -13
- package/lib/typescript/hooks/useCredentials.d.ts +8 -8
- package/lib/typescript/hooks/useUserConnections.d.ts +11 -11
- package/lib/typescript/index.d.ts +36 -35
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/services/apiClient.d.ts +90 -90
- package/lib/typescript/services/apiKeyService.d.ts +131 -131
- package/lib/typescript/services/authService.d.ts +215 -215
- package/lib/typescript/services/biometricPinService.d.ts +28 -28
- package/lib/typescript/services/connectedAccountsService.d.ts +55 -55
- package/lib/typescript/services/googleAuthService.d.ts +62 -62
- package/lib/typescript/services/imageCompressionService.d.ts +36 -36
- package/lib/typescript/services/jwtStorageService.d.ts +85 -85
- package/lib/typescript/services/mobileTrainingService.d.ts +44 -44
- package/lib/typescript/services/oauthService.d.ts +49 -49
- package/lib/typescript/services/pinEncryptionService.d.ts +16 -16
- package/lib/typescript/services/pinStorageUtils.d.ts +24 -24
- package/lib/typescript/services/platformAuthService.d.ts +68 -68
- package/lib/typescript/services/storageService.d.ts +127 -127
- package/lib/typescript/services/trainingApiHelpers.d.ts +37 -37
- package/lib/typescript/services/userConnectionsService.d.ts +89 -89
- package/lib/typescript/services/youtubeMigrationService.d.ts +11 -11
- package/lib/typescript/theme/index.d.ts +415 -415
- package/lib/typescript/types/index.d.ts +264 -264
- package/lib/typescript/types.d.ts +266 -266
- package/lib/typescript/utils/Portal.d.ts +13 -13
- package/lib/typescript/utils/api.d.ts +5 -5
- package/lib/typescript/utils/auth.d.ts +5 -5
- package/lib/typescript/utils/crypto.d.ts +3 -3
- package/lib/typescript/utils/debugHelper.d.ts +28 -28
- package/lib/typescript/utils/encryption.d.ts +18 -18
- package/lib/typescript/utils/eventUtils.d.ts +107 -107
- package/lib/typescript/utils/haptics.d.ts +10 -10
- package/lib/typescript/utils/imagePreloader.d.ts +1 -1
- package/lib/typescript/utils/onairosApi.d.ts +86 -86
- package/lib/typescript/utils/programmaticFlow.d.ts +22 -22
- package/lib/typescript/utils/retryHelper.d.ts +68 -68
- package/lib/typescript/utils/secureStorage.d.ts +93 -93
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/types/index.d.ts +213 -213
- package/types/node-env.d.ts +14 -14
- package/README.md +0 -404
|
@@ -1,265 +1,265 @@
|
|
|
1
|
-
export interface User {
|
|
2
|
-
id: string;
|
|
3
|
-
email: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
profilePicture?: string;
|
|
6
|
-
onboarded?: boolean;
|
|
7
|
-
createdAt?: string;
|
|
8
|
-
updatedAt?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface DataTier {
|
|
11
|
-
type: string;
|
|
12
|
-
descriptions: string;
|
|
13
|
-
reward: string;
|
|
14
|
-
}
|
|
15
|
-
export interface OnairosButtonProps {
|
|
16
|
-
/** Return link after authentication (used for web-based flows) */
|
|
17
|
-
returnLink?: string;
|
|
18
|
-
/** Prefill URL for the authentication process */
|
|
19
|
-
prefillUrl?: string;
|
|
20
|
-
/** Application name to display in dialogs */
|
|
21
|
-
AppName?: string;
|
|
22
|
-
/** Button type - 'normal' or 'pill' */
|
|
23
|
-
buttonType?: 'normal' | 'pill';
|
|
24
|
-
/** Data requests for user consent */
|
|
25
|
-
requestData?: {
|
|
26
|
-
[key: string]: DataTier;
|
|
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' | 'connect';
|
|
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
|
-
/** Enable dark mode */
|
|
55
|
-
darkMode?: boolean;
|
|
56
|
-
/** Enable automatic API calls */
|
|
57
|
-
auto?: boolean;
|
|
58
|
-
/** App icon to display */
|
|
59
|
-
appIcon?: any;
|
|
60
|
-
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
61
|
-
newUser?: boolean;
|
|
62
|
-
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
63
|
-
existingUser?: boolean;
|
|
64
|
-
fastTraining?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export interface OnairosProps {
|
|
67
|
-
/** Return link after authentication (used for web-based flows) */
|
|
68
|
-
returnLink?: string;
|
|
69
|
-
/** Prefill URL for the authentication process */
|
|
70
|
-
prefillUrl?: string;
|
|
71
|
-
/** Application name to display in dialogs */
|
|
72
|
-
AppName: string;
|
|
73
|
-
/** Button type - 'normal' or 'pill' */
|
|
74
|
-
buttonType?: 'normal' | 'pill';
|
|
75
|
-
/** Data requests for user consent */
|
|
76
|
-
requestData?: {
|
|
77
|
-
[key: string]: DataTier;
|
|
78
|
-
};
|
|
79
|
-
/** Button width in pixels */
|
|
80
|
-
buttonWidth?: number;
|
|
81
|
-
/** Button height in pixels */
|
|
82
|
-
buttonHeight?: number;
|
|
83
|
-
/** Whether to show stroke/border around button */
|
|
84
|
-
hasStroke?: boolean;
|
|
85
|
-
/** Whether the button is enabled */
|
|
86
|
-
enabled?: boolean;
|
|
87
|
-
/** Button form/shape style */
|
|
88
|
-
buttonForm?: 'default' | 'connect';
|
|
89
|
-
/** Callback when user rejects or cancels */
|
|
90
|
-
onRejection?: (error?: string) => void;
|
|
91
|
-
/** Callback when authentication is resolved */
|
|
92
|
-
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
93
|
-
/** Function to check before starting authentication */
|
|
94
|
-
preCheck?: () => Promise<boolean>;
|
|
95
|
-
/** Button background color */
|
|
96
|
-
color?: string;
|
|
97
|
-
/** Enable debug mode */
|
|
98
|
-
debug?: boolean;
|
|
99
|
-
/** Enable dark mode */
|
|
100
|
-
darkMode?: boolean;
|
|
101
|
-
/** Preferred platform for authentication */
|
|
102
|
-
preferredPlatform?: 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
|
-
export interface UniversalOnboardingProps {
|
|
117
|
-
visible: boolean;
|
|
118
|
-
onClose: () => void;
|
|
119
|
-
AppName: string;
|
|
120
|
-
appIcon?: any;
|
|
121
|
-
requestData?: {
|
|
122
|
-
[key: string]: DataTier;
|
|
123
|
-
};
|
|
124
|
-
returnLink?: string;
|
|
125
|
-
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
126
|
-
preferredPlatform?: string;
|
|
127
|
-
debug?: boolean;
|
|
128
|
-
testMode?: boolean;
|
|
129
|
-
embedd?: boolean;
|
|
130
|
-
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
131
|
-
newUser?: boolean;
|
|
132
|
-
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
133
|
-
existingUser?: boolean;
|
|
134
|
-
fastTraining?: boolean;
|
|
135
|
-
/** Inference data for auto mode */
|
|
136
|
-
inferenceData?: any;
|
|
137
|
-
/** Auto mode for direct API calls */
|
|
138
|
-
auto?: boolean;
|
|
139
|
-
/** Partner integration */
|
|
140
|
-
partner?: string;
|
|
141
|
-
}
|
|
142
|
-
export interface PlatformListProps {
|
|
143
|
-
connections: {
|
|
144
|
-
[key: string]: boolean;
|
|
145
|
-
};
|
|
146
|
-
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
147
|
-
isLoading: boolean;
|
|
148
|
-
canProceed: boolean;
|
|
149
|
-
onProceed: () => void;
|
|
150
|
-
}
|
|
151
|
-
export interface PinInputProps {
|
|
152
|
-
onSubmit: (pin: string) => void;
|
|
153
|
-
minLength?: number;
|
|
154
|
-
requireSpecialChar?: boolean;
|
|
155
|
-
requireNumber?: boolean;
|
|
156
|
-
initialPin?: string;
|
|
157
|
-
}
|
|
158
|
-
export interface TrainingModalProps {
|
|
159
|
-
visible: boolean;
|
|
160
|
-
progress: number;
|
|
161
|
-
eta: string;
|
|
162
|
-
onCancel: () => void;
|
|
163
|
-
onComplete?: () => void;
|
|
164
|
-
modelKey?: string;
|
|
165
|
-
username?: string;
|
|
166
|
-
test?: boolean;
|
|
167
|
-
}
|
|
168
|
-
export interface OAuthWebViewProps {
|
|
169
|
-
url: string;
|
|
170
|
-
platform: string;
|
|
171
|
-
onComplete: () => void;
|
|
172
|
-
onClose: () => void;
|
|
173
|
-
}
|
|
174
|
-
export interface CredentialsResult {
|
|
175
|
-
isValid: boolean;
|
|
176
|
-
credentials?: {
|
|
177
|
-
username?: string;
|
|
178
|
-
userPin?: string;
|
|
179
|
-
accessToken?: string;
|
|
180
|
-
pinterest?: {
|
|
181
|
-
token: string;
|
|
182
|
-
username: string;
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
export interface OverlayProps {
|
|
187
|
-
visible: boolean;
|
|
188
|
-
onClose: () => void;
|
|
189
|
-
credentials: any;
|
|
190
|
-
onDeleteCredentials: () => void;
|
|
191
|
-
}
|
|
192
|
-
export interface ConnectionStatus {
|
|
193
|
-
[key: string]: boolean;
|
|
194
|
-
}
|
|
195
|
-
export interface PlatformConfig {
|
|
196
|
-
name: string;
|
|
197
|
-
icon: string;
|
|
198
|
-
color: string;
|
|
199
|
-
description?: string;
|
|
200
|
-
}
|
|
201
|
-
export interface ApiResponse<T> {
|
|
202
|
-
success: boolean;
|
|
203
|
-
data?: T;
|
|
204
|
-
error?: string;
|
|
205
|
-
}
|
|
206
|
-
export interface PlatformAuthConfig {
|
|
207
|
-
hasNativeSDK: boolean;
|
|
208
|
-
nativeSDKPackage?: string;
|
|
209
|
-
authEndpoint: string;
|
|
210
|
-
color: string;
|
|
211
|
-
clientId?: string;
|
|
212
|
-
iosClientId?: string;
|
|
213
|
-
redirectUri?: string;
|
|
214
|
-
scope?: string;
|
|
215
|
-
responseType?: string;
|
|
216
|
-
}
|
|
217
|
-
export interface PinRequirements {
|
|
218
|
-
minLength: number;
|
|
219
|
-
requireSpecialChar: boolean;
|
|
220
|
-
requireNumber: boolean;
|
|
221
|
-
}
|
|
222
|
-
export interface OnairosConfig {
|
|
223
|
-
apiKey: string;
|
|
224
|
-
environment?: 'production' | 'staging' | 'development';
|
|
225
|
-
enableLogging?: boolean;
|
|
226
|
-
timeout?: number;
|
|
227
|
-
retryAttempts?: number;
|
|
228
|
-
}
|
|
229
|
-
export interface TestModeOptions {
|
|
230
|
-
skipEmailVerification?: boolean;
|
|
231
|
-
mockApiResponses?: boolean;
|
|
232
|
-
simulateTraining?: boolean;
|
|
233
|
-
enableDebugLogs?: boolean;
|
|
234
|
-
}
|
|
235
|
-
export interface WelcomeScreenProps {
|
|
236
|
-
visible: boolean;
|
|
237
|
-
onClose: () => void;
|
|
238
|
-
onComplete?: (token: string, email?: string) => void;
|
|
239
|
-
}
|
|
240
|
-
export interface OnairosCredentials {
|
|
241
|
-
username?: string;
|
|
242
|
-
userPin?: string;
|
|
243
|
-
accessToken?: string;
|
|
244
|
-
pinterest?: {
|
|
245
|
-
token: string;
|
|
246
|
-
username: string;
|
|
247
|
-
};
|
|
248
|
-
youtube?: {
|
|
249
|
-
token: string;
|
|
250
|
-
username: string;
|
|
251
|
-
};
|
|
252
|
-
linkedin?: {
|
|
253
|
-
token: string;
|
|
254
|
-
username: string;
|
|
255
|
-
};
|
|
256
|
-
reddit?: {
|
|
257
|
-
token: string;
|
|
258
|
-
username: string;
|
|
259
|
-
};
|
|
260
|
-
gmail?: {
|
|
261
|
-
token: string;
|
|
262
|
-
username: string;
|
|
263
|
-
};
|
|
264
|
-
}
|
|
1
|
+
export interface User {
|
|
2
|
+
id: string;
|
|
3
|
+
email: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
profilePicture?: string;
|
|
6
|
+
onboarded?: boolean;
|
|
7
|
+
createdAt?: string;
|
|
8
|
+
updatedAt?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DataTier {
|
|
11
|
+
type: string;
|
|
12
|
+
descriptions: string;
|
|
13
|
+
reward: string;
|
|
14
|
+
}
|
|
15
|
+
export interface OnairosButtonProps {
|
|
16
|
+
/** Return link after authentication (used for web-based flows) */
|
|
17
|
+
returnLink?: string;
|
|
18
|
+
/** Prefill URL for the authentication process */
|
|
19
|
+
prefillUrl?: string;
|
|
20
|
+
/** Application name to display in dialogs */
|
|
21
|
+
AppName?: string;
|
|
22
|
+
/** Button type - 'normal' or 'pill' */
|
|
23
|
+
buttonType?: 'normal' | 'pill';
|
|
24
|
+
/** Data requests for user consent */
|
|
25
|
+
requestData?: {
|
|
26
|
+
[key: string]: DataTier;
|
|
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' | 'connect';
|
|
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
|
+
/** Enable dark mode */
|
|
55
|
+
darkMode?: boolean;
|
|
56
|
+
/** Enable automatic API calls */
|
|
57
|
+
auto?: boolean;
|
|
58
|
+
/** App icon to display */
|
|
59
|
+
appIcon?: any;
|
|
60
|
+
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
61
|
+
newUser?: boolean;
|
|
62
|
+
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
63
|
+
existingUser?: boolean;
|
|
64
|
+
fastTraining?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface OnairosProps {
|
|
67
|
+
/** Return link after authentication (used for web-based flows) */
|
|
68
|
+
returnLink?: string;
|
|
69
|
+
/** Prefill URL for the authentication process */
|
|
70
|
+
prefillUrl?: string;
|
|
71
|
+
/** Application name to display in dialogs */
|
|
72
|
+
AppName: string;
|
|
73
|
+
/** Button type - 'normal' or 'pill' */
|
|
74
|
+
buttonType?: 'normal' | 'pill';
|
|
75
|
+
/** Data requests for user consent */
|
|
76
|
+
requestData?: {
|
|
77
|
+
[key: string]: DataTier;
|
|
78
|
+
};
|
|
79
|
+
/** Button width in pixels */
|
|
80
|
+
buttonWidth?: number;
|
|
81
|
+
/** Button height in pixels */
|
|
82
|
+
buttonHeight?: number;
|
|
83
|
+
/** Whether to show stroke/border around button */
|
|
84
|
+
hasStroke?: boolean;
|
|
85
|
+
/** Whether the button is enabled */
|
|
86
|
+
enabled?: boolean;
|
|
87
|
+
/** Button form/shape style */
|
|
88
|
+
buttonForm?: 'default' | 'connect';
|
|
89
|
+
/** Callback when user rejects or cancels */
|
|
90
|
+
onRejection?: (error?: string) => void;
|
|
91
|
+
/** Callback when authentication is resolved */
|
|
92
|
+
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
93
|
+
/** Function to check before starting authentication */
|
|
94
|
+
preCheck?: () => Promise<boolean>;
|
|
95
|
+
/** Button background color */
|
|
96
|
+
color?: string;
|
|
97
|
+
/** Enable debug mode */
|
|
98
|
+
debug?: boolean;
|
|
99
|
+
/** Enable dark mode */
|
|
100
|
+
darkMode?: boolean;
|
|
101
|
+
/** Preferred platform for authentication */
|
|
102
|
+
preferredPlatform?: 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
|
+
export interface UniversalOnboardingProps {
|
|
117
|
+
visible: boolean;
|
|
118
|
+
onClose: () => void;
|
|
119
|
+
AppName: string;
|
|
120
|
+
appIcon?: any;
|
|
121
|
+
requestData?: {
|
|
122
|
+
[key: string]: DataTier;
|
|
123
|
+
};
|
|
124
|
+
returnLink?: string;
|
|
125
|
+
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
126
|
+
preferredPlatform?: string;
|
|
127
|
+
debug?: boolean;
|
|
128
|
+
testMode?: boolean;
|
|
129
|
+
embedd?: boolean;
|
|
130
|
+
/** Flow 2: New User (Email → Code → Platform Connect → PIN → Training → Complete) */
|
|
131
|
+
newUser?: boolean;
|
|
132
|
+
/** Flow 3: Existing User (Email → Code → Data Request → Complete) */
|
|
133
|
+
existingUser?: boolean;
|
|
134
|
+
fastTraining?: boolean;
|
|
135
|
+
/** Inference data for auto mode */
|
|
136
|
+
inferenceData?: any;
|
|
137
|
+
/** Auto mode for direct API calls */
|
|
138
|
+
auto?: boolean;
|
|
139
|
+
/** Partner integration */
|
|
140
|
+
partner?: string;
|
|
141
|
+
}
|
|
142
|
+
export interface PlatformListProps {
|
|
143
|
+
connections: {
|
|
144
|
+
[key: string]: boolean;
|
|
145
|
+
};
|
|
146
|
+
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
147
|
+
isLoading: boolean;
|
|
148
|
+
canProceed: boolean;
|
|
149
|
+
onProceed: () => void;
|
|
150
|
+
}
|
|
151
|
+
export interface PinInputProps {
|
|
152
|
+
onSubmit: (pin: string) => void;
|
|
153
|
+
minLength?: number;
|
|
154
|
+
requireSpecialChar?: boolean;
|
|
155
|
+
requireNumber?: boolean;
|
|
156
|
+
initialPin?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface TrainingModalProps {
|
|
159
|
+
visible: boolean;
|
|
160
|
+
progress: number;
|
|
161
|
+
eta: string;
|
|
162
|
+
onCancel: () => void;
|
|
163
|
+
onComplete?: () => void;
|
|
164
|
+
modelKey?: string;
|
|
165
|
+
username?: string;
|
|
166
|
+
test?: boolean;
|
|
167
|
+
}
|
|
168
|
+
export interface OAuthWebViewProps {
|
|
169
|
+
url: string;
|
|
170
|
+
platform: string;
|
|
171
|
+
onComplete: () => void;
|
|
172
|
+
onClose: () => void;
|
|
173
|
+
}
|
|
174
|
+
export interface CredentialsResult {
|
|
175
|
+
isValid: boolean;
|
|
176
|
+
credentials?: {
|
|
177
|
+
username?: string;
|
|
178
|
+
userPin?: string;
|
|
179
|
+
accessToken?: string;
|
|
180
|
+
pinterest?: {
|
|
181
|
+
token: string;
|
|
182
|
+
username: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
export interface OverlayProps {
|
|
187
|
+
visible: boolean;
|
|
188
|
+
onClose: () => void;
|
|
189
|
+
credentials: any;
|
|
190
|
+
onDeleteCredentials: () => void;
|
|
191
|
+
}
|
|
192
|
+
export interface ConnectionStatus {
|
|
193
|
+
[key: string]: boolean;
|
|
194
|
+
}
|
|
195
|
+
export interface PlatformConfig {
|
|
196
|
+
name: string;
|
|
197
|
+
icon: string;
|
|
198
|
+
color: string;
|
|
199
|
+
description?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface ApiResponse<T> {
|
|
202
|
+
success: boolean;
|
|
203
|
+
data?: T;
|
|
204
|
+
error?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface PlatformAuthConfig {
|
|
207
|
+
hasNativeSDK: boolean;
|
|
208
|
+
nativeSDKPackage?: string;
|
|
209
|
+
authEndpoint: string;
|
|
210
|
+
color: string;
|
|
211
|
+
clientId?: string;
|
|
212
|
+
iosClientId?: string;
|
|
213
|
+
redirectUri?: string;
|
|
214
|
+
scope?: string;
|
|
215
|
+
responseType?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface PinRequirements {
|
|
218
|
+
minLength: number;
|
|
219
|
+
requireSpecialChar: boolean;
|
|
220
|
+
requireNumber: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface OnairosConfig {
|
|
223
|
+
apiKey: string;
|
|
224
|
+
environment?: 'production' | 'staging' | 'development';
|
|
225
|
+
enableLogging?: boolean;
|
|
226
|
+
timeout?: number;
|
|
227
|
+
retryAttempts?: number;
|
|
228
|
+
}
|
|
229
|
+
export interface TestModeOptions {
|
|
230
|
+
skipEmailVerification?: boolean;
|
|
231
|
+
mockApiResponses?: boolean;
|
|
232
|
+
simulateTraining?: boolean;
|
|
233
|
+
enableDebugLogs?: boolean;
|
|
234
|
+
}
|
|
235
|
+
export interface WelcomeScreenProps {
|
|
236
|
+
visible: boolean;
|
|
237
|
+
onClose: () => void;
|
|
238
|
+
onComplete?: (token: string, email?: string) => void;
|
|
239
|
+
}
|
|
240
|
+
export interface OnairosCredentials {
|
|
241
|
+
username?: string;
|
|
242
|
+
userPin?: string;
|
|
243
|
+
accessToken?: string;
|
|
244
|
+
pinterest?: {
|
|
245
|
+
token: string;
|
|
246
|
+
username: string;
|
|
247
|
+
};
|
|
248
|
+
youtube?: {
|
|
249
|
+
token: string;
|
|
250
|
+
username: string;
|
|
251
|
+
};
|
|
252
|
+
linkedin?: {
|
|
253
|
+
token: string;
|
|
254
|
+
username: string;
|
|
255
|
+
};
|
|
256
|
+
reddit?: {
|
|
257
|
+
token: string;
|
|
258
|
+
username: string;
|
|
259
|
+
};
|
|
260
|
+
gmail?: {
|
|
261
|
+
token: string;
|
|
262
|
+
username: string;
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
265
|
//# sourceMappingURL=index.d.ts.map
|