@opendatalabs/connect 0.5.0-canary.a734f4c → 0.5.0-canary.d8d3c3d

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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,16 +7,16 @@ Users connect platforms they already use — ChatGPT, Instagram, Gmail, and more
7
7
  ## How it works
8
8
 
9
9
  ```
10
- Your App Vana Desktop App
10
+ Your App Vana Protocol
11
11
  ────────────────────────────── ──────────────────────────────
12
12
 
13
13
  1. connect({ scopes })
14
14
  → creates session
15
- → returns deep link ──▶ 2. User opens deep link
16
- sees requested scopes
17
- approves or denies
15
+ → returns deep link ──▶ 2. User opens Desktop App
16
+ reviews scopes, exports data,
17
+ approves grant
18
18
 
19
- 3. Poll resolves with grant ◀── Grant signed on-chain
19
+ 3. Poll resolves with grant ◀── Grant signed & registered
20
20
 
21
21
  4. getData({ grant }) ──▶ 5. Personal Server returns
22
22
  → structured JSON user data over TLS
@@ -53,7 +53,7 @@ Register as a builder through the Vana Desktop App first.
53
53
  import { connect } from "@opendatalabs/connect/server";
54
54
 
55
55
  const session = await connect({
56
- privateKey: process.env.VANA_PRIVATE_KEY as `0x${string}`,
56
+ privateKey: process.env.VANA_APP_PRIVATE_KEY as `0x${string}`,
57
57
  scopes: ["chatgpt.conversations"],
58
58
  webhookUrl: "https://yourapp.com/api/webhook", // optional
59
59
  appUserId: "user-42", // optional
@@ -106,7 +106,7 @@ import { ConnectButton } from "@opendatalabs/connect/react";
106
106
  import { getData } from "@opendatalabs/connect/server";
107
107
 
108
108
  const data = await getData({
109
- privateKey: process.env.VANA_PRIVATE_KEY as `0x${string}`,
109
+ privateKey: process.env.VANA_APP_PRIVATE_KEY as `0x${string}`,
110
110
  grant, // GrantPayload from step 2
111
111
  });
112
112
 
@@ -123,7 +123,7 @@ import { signVanaManifest } from "@opendatalabs/connect/server";
123
123
 
124
124
  // In your manifest route handler (e.g. Next.js /manifest.json/route.ts):
125
125
  const vanaBlock = await signVanaManifest({
126
- privateKey: process.env.VANA_PRIVATE_KEY as `0x${string}`,
126
+ privateKey: process.env.VANA_APP_PRIVATE_KEY as `0x${string}`,
127
127
  appUrl: "https://yourapp.com",
128
128
  privacyPolicyUrl: "https://yourapp.com/privacy",
129
129
  termsUrl: "https://yourapp.com/terms",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendatalabs/connect",
3
- "version": "0.5.0-canary.a734f4c",
3
+ "version": "0.5.0-canary.d8d3c3d",
4
4
  "description": "SDK for integrating Vana Data Portability 'Connect data' flows",
5
5
  "license": "MIT",
6
6
  "repository": {