@haven_ai/sdk 0.1.5 → 0.1.7
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 +6 -13
- package/dist/index.cjs +64 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1081 -0
- package/dist/index.d.ts +1081 -0
- package/dist/index.js +64 -18
- package/dist/index.js.map +1 -1
- package/examples/x402_openapi_python.py +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ Environment:
|
|
|
9
9
|
HAVEN_API_KEY sk_agent_* from Haven
|
|
10
10
|
HAVEN_DELEGATE_KEY local agent delegate private key; never sent to Haven
|
|
11
11
|
HAVEN_API_URL default: https://havenbackend-production-8a00.up.railway.app
|
|
12
|
-
HAVEN_X402_URL
|
|
12
|
+
HAVEN_X402_URL required: URL of any x402-gated (HTTP 402) resource to pay for
|
|
13
13
|
|
|
14
14
|
This intentionally uses only documented HTTP endpoints:
|
|
15
15
|
GET /openapi.json
|
|
@@ -27,7 +27,7 @@ from eth_keys import keys
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
API = os.environ.get("HAVEN_API_URL", "https://havenbackend-production-8a00.up.railway.app").rstrip("/")
|
|
30
|
-
PAID_URL = os.environ
|
|
30
|
+
PAID_URL = os.environ["HAVEN_X402_URL"] # any x402-gated resource to pay for
|
|
31
31
|
API_KEY = os.environ["HAVEN_API_KEY"]
|
|
32
32
|
DELEGATE_KEY = os.environ["HAVEN_DELEGATE_KEY"]
|
|
33
33
|
|