@onairosofficial/onairos-capacitor 0.1.4 → 0.1.5
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/OnairosofficialOnairosCapacitor.podspec +1 -1
- package/README.md +1 -1
- package/dist/onairos.capacitor.esm.js +509 -1
- package/dist/onairos.capacitor.esm.turbopack.js +509 -1
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosChatGPTNativePlugin.swift +187 -945
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosRNScrapers.swift +1800 -0
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosSpotifyNativePlugin.swift +180 -629
- package/onairos.d.ts +24 -0
- package/package.json +5 -2
- package/src/assets/connectors/Linkedinicon.png +0 -0
- package/src/assets/connectors/Redditicon.png +0 -0
- package/src/assets/connectors/YouTubeicon2.png +0 -0
- package/src/assets/connectors/chatgpt.png +0 -0
- package/src/assets/connectors/claude.png +0 -0
- package/src/assets/connectors/instagram.png +0 -0
- package/src/assets/connectors/netflix.png +0 -0
- package/src/assets/connectors/pinterest.png +0 -0
- package/src/assets/connectors/sephora.png +0 -0
- package/src/assets/connectors/spotify.png +0 -0
- package/src/assets/connectors/tiktok.png +0 -0
- package/src/assets/permissions/onairos.png +0 -0
- package/src/assets/permissions/personalization.png +0 -0
- package/src/assets/permissions/public-profile-person.png +0 -0
- package/src/assets/permissions/raw-memories.png +0 -0
- package/src/capacitorConnectorCatalog.js +2 -6
- package/src/components/DataRequest.jsx +96 -532
- package/src/components/PinSetup.jsx +39 -226
- package/src/components/SDKDesignPreview.jsx +33 -0
- package/src/components/SessionUserBar.jsx +2 -1
- package/src/components/UniversalOnboarding.jsx +190 -423
- package/src/components/WelcomeScreen.jsx +7 -0
- package/src/components/parity/NativeConnections.jsx +136 -0
- package/src/components/parity/NativeScreens.jsx +48 -0
- package/src/components/ui/PageLayout.jsx +7 -3
- package/src/nativeImport/ConnectorLoading.jsx +13 -0
- package/src/nativeImport/CustomImportSession.js +115 -0
- package/src/nativeImport/ImportIcon.jsx +29 -0
- package/src/nativeImport/ImportProgress.jsx +24 -0
- package/src/nativeImport/ImportStatus.jsx +9 -0
- package/src/nativeImport/NativeChatImport.jsx +28 -0
- package/src/nativeImport/NativeImportSession.js +123 -0
- package/src/nativeImport/NativeScraperImport.jsx +57 -0
- package/src/nativeImport/SmartFilter.jsx +28 -0
- package/src/nativeImport/customPayload.js +37 -0
- package/src/nativeImport/netflixExport.js +30 -0
- package/src/nativeImport/netflixHistory.js +28 -0
- package/src/nativeImport/netflixSession.js +59 -0
- package/src/nativeImport/rawHandoff.js +7 -0
- package/src/nativeImport/rn/config/api.js +5 -0
- package/src/nativeImport/rn/services/apiKeyService.js +2 -0
- package/src/nativeImport/rn/services/hingePayload.js +37 -0
- package/src/nativeImport/rn/services/nativeConversationImport.js +138 -0
- package/src/nativeImport/rn/services/nativeFileTransfer.js +127 -0
- package/src/nativeImport/rn/services/nativeRawRedaction.js +136 -0
- package/src/nativeImport/rn/services/netflixPayload.js +70 -0
- package/src/nativeImport/rn/services/rawMemoryPolicy.js +38 -0
- package/src/nativeImport/rn/services/sephoraPayload.js +166 -0
- package/src/nativeImport/rn/services/spotifyPayload.js +99 -0
- package/src/nativeImport/rn/source-manifest.json +45 -0
- package/src/nativeImport/rn/utils/importedFiles.js +74 -0
- package/src/nativeImport/rn/utils/nativeImportDates.js +45 -0
- package/src/nativeImport/rn/utils/nativeImportFileReceiver.js +51 -0
- package/src/nativeImport/rn/utils/nativeImportMetadata.js +74 -0
- package/src/nativeImport/rn/utils/nativeImportTopics.js +56 -0
- package/src/nativeImport/rn/utils/rawExportDelivery.js +12 -0
- package/src/nativeImport/rn/utils/webviewScripts/chatgptDiscovery.js +99 -0
- package/src/nativeImport/rn/utils/webviewScripts/claude.js +349 -0
- package/src/nativeImport/rn/utils/webviewScripts/gemini.js +356 -0
- package/src/nativeImport/rn/utils/webviewScripts/hinge.js +375 -0
- package/src/nativeImport/rn/utils/webviewScripts/instagram.js +152 -0
- package/src/nativeImport/rn/utils/webviewScripts/linkedin.js +825 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeChatGPTImport.js +202 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeChatGPTSession.js +63 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeImportFiles.js +132 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeImportProviders.js +80 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeLoginViewport.js +28 -0
- package/src/nativeImport/rn/utils/webviewScripts/netflix.js +257 -0
- package/src/nativeImport/rn/utils/webviewScripts/sephora.js +862 -0
- package/src/nativeImport/rn/utils/webviewScripts/sephoraSession.js +160 -0
- package/src/nativeImport/rn/utils/webviewScripts/spotify.js +1868 -0
- package/src/nativeImport/rn/utils/webviewScripts/telegram.js +630 -0
- package/src/nativeImport/rn/utils/webviewScripts/tiktok.js +2920 -0
- package/src/onairos.core.jsx +3 -0
- package/src/onairosButton.jsx +23 -17
- package/src/styles/onairos-rn-parity.css +175 -0
- package/src/styles/tailwind.capacitor.css +4 -0
- package/src/utils/nativeConnectorSession.js +18 -0
- package/src/utils/parityPolicy.js +41 -0
package/onairos.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare module '@onairosofficial/onairos-capacitor' {
|
|
2
|
+
export const SDKDesignPreview: React.FC<{appName?: string; initialStep?: 'welcome' | 'connections' | 'password' | 'consent'; onClose?: () => void}>;
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
5
|
* Inference formatting options (v6.1.0)
|
|
4
6
|
* Passed to inference endpoints to control result sorting and formatting
|
|
@@ -15,7 +17,29 @@ declare module '@onairosofficial/onairos-capacitor' {
|
|
|
15
17
|
/**
|
|
16
18
|
* Data returned when the Onairos flow completes successfully
|
|
17
19
|
*/
|
|
20
|
+
/** Receipt-protected selected chats. Held in memory and returned only after raw-memory consent. */
|
|
21
|
+
export interface NativeRawExport {
|
|
22
|
+
platform: 'chatgpt' | 'claude';
|
|
23
|
+
ephemeral: true;
|
|
24
|
+
persisted: false;
|
|
25
|
+
piiReceipt?: Record<string, unknown>;
|
|
26
|
+
conversations: Array<{
|
|
27
|
+
conversationId: string;
|
|
28
|
+
title: string;
|
|
29
|
+
messages: Array<{id: string; role: 'user' | 'assistant'; content: string; timestamp?: number}>;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
}>;
|
|
32
|
+
/** Non-enumerable delivery capability; do not persist or log it. */
|
|
33
|
+
fileDelivery?: {
|
|
34
|
+
provider: string; sessionId: string; ephemeral: boolean; durable: boolean;
|
|
35
|
+
expiresAt: number; availableCount: number; manifestUrl: string;
|
|
36
|
+
authorization: {header: string; token: string};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
18
39
|
export interface OnairosCompleteData {
|
|
40
|
+
approved?: string[];
|
|
41
|
+
ephemeralPayload?: NativeRawExport;
|
|
42
|
+
ephemeralPayloads?: NativeRawExport[];
|
|
19
43
|
// Core response fields
|
|
20
44
|
token: string; // JWT token for authenticated API calls
|
|
21
45
|
apiUrl: string; // Backend API endpoint URL
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onairosofficial/onairos-capacitor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20 <26"
|
|
6
6
|
},
|
|
@@ -39,7 +39,10 @@
|
|
|
39
39
|
"clean": "node scripts/clean-dist.cjs",
|
|
40
40
|
"dev": "webpack --mode development --watch --config webpack.capacitor.config.cjs",
|
|
41
41
|
"prepack": "npm run build && node scripts/verify-capacitor-package.cjs",
|
|
42
|
-
"test:package": "node scripts/verify-capacitor-package.cjs"
|
|
42
|
+
"test:package": "node scripts/verify-capacitor-package.cjs",
|
|
43
|
+
"test:parity": "node --test tests/parity/*.test.mjs && vitest run --config tests/parity/vitest.config.mjs",
|
|
44
|
+
"test:smoke": "vitest run --config tests/smoke/vitest.config.js --pool=forks --poolOptions.forks.singleFork",
|
|
45
|
+
"sync:rn-connectors": "node scripts/sync-rn-connectors.cjs"
|
|
43
46
|
},
|
|
44
47
|
"eslintConfig": {
|
|
45
48
|
"extends": [
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
// TODO(onairos-capacitor): Re-enable these once the native/mobile connector UX
|
|
2
2
|
// is stable enough for consumer apps.
|
|
3
3
|
export const TEMP_DISABLED_CONNECTORS = new Set([
|
|
4
|
-
'claude',
|
|
5
4
|
'gemini',
|
|
6
5
|
'grok',
|
|
7
6
|
'perplexity',
|
|
8
|
-
'sephora',
|
|
9
|
-
'instagram-data',
|
|
10
7
|
'gmail',
|
|
11
8
|
'hinge',
|
|
12
|
-
'netflix',
|
|
13
9
|
]);
|
|
14
10
|
|
|
15
11
|
export const ALL_CAPACITOR_PLATFORMS = [
|
|
@@ -25,9 +21,9 @@ export const ALL_CAPACITOR_PLATFORMS = [
|
|
|
25
21
|
{ name: 'Gmail', connector: 'gmail', endpoint: '/gmail/authorize', type: 'oauth' },
|
|
26
22
|
{ name: 'Hinge', connector: 'hinge', endpoint: '/platform-data/store', type: 'webview', url: 'https://hinge.co', platformId: 'mobile-hinge', dataType: 'dating' },
|
|
27
23
|
{ name: 'Sephora', connector: 'sephora', endpoint: '/platform-data/store', type: 'webview', url: 'https://www.sephora.com', platformId: 'mobile-sephora', dataType: 'ecommerce' },
|
|
28
|
-
{ name: '
|
|
24
|
+
{ name: 'Instagram', connector: 'instagram-data', endpoint: '/platform-data/store', type: 'webview', url: 'https://www.instagram.com', platformId: 'mobile-instagram', dataType: 'social' },
|
|
29
25
|
{ name: 'Spotify', connector: 'spotify', endpoint: '/platform-data/store', type: 'webview', url: 'https://open.spotify.com', platformId: 'mobile-spotify', dataType: 'streaming' },
|
|
30
|
-
{ name: 'Netflix', connector: 'netflix', endpoint: '/platform-data/store', type: 'webview', url: 'https://www.netflix.com', platformId: 'mobile-netflix', dataType: '
|
|
26
|
+
{ name: 'Netflix', connector: 'netflix', endpoint: '/platform-data/store', type: 'webview', url: 'https://www.netflix.com', platformId: 'mobile-netflix', dataType: 'streaming' },
|
|
31
27
|
{ name: 'TikTok', connector: 'tiktok', endpoint: '/tiktok/authorize', type: 'oauth', url: 'https://www.tiktok.com', platformId: 'mobile-tiktok', dataType: 'social_video' },
|
|
32
28
|
];
|
|
33
29
|
|