@buildaureon/sdk 0.1.7 → 0.1.9
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/CHANGELOG.md +71 -0
- package/README.md +673 -655
- package/config/network.json +17 -7
- package/dist/index.d.ts +71 -14
- package/dist/index.js +109 -10
- package/dist/index.js.map +1 -1
- package/docs/architecture.md +210 -206
- package/docs/auth.md +176 -174
- package/docs/client-api.md +788 -782
- package/docs/data-contracts.md +3 -3
- package/docs/error-model.md +217 -217
- package/docs/integration-guide.md +400 -397
- package/docs/receipt-validation.md +66 -63
- package/docs/security.md +120 -120
- package/docs/transport.md +143 -142
- package/examples/ai-to-objective-to-portfolio/main.ts +6 -3
- package/examples/audit-trail/main.ts +4 -2
- package/examples/drift-detect-restore/main.ts +6 -3
- package/examples/e2e-policy-rebalance/main.ts +431 -426
- package/examples/e2e-policy-rebalance/underrun.ts +143 -138
- package/examples/e2e-policy-rebalance/verify-sizing.ts +155 -150
- package/examples/e2e-vault-flow/main.ts +221 -216
- package/examples/full-aureon-loop/main.ts +6 -3
- package/examples/green-vs-plan/main.ts +6 -3
- package/examples/market-event/main.ts +6 -3
- package/examples/portfolio-watch/main.ts +6 -3
- package/examples/quickstart/main.ts +75 -72
- package/examples/receipt-verification/main.ts +6 -3
- package/examples/sdk-demo-terminal/main.ts +6 -4
- package/package.json +26 -23
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Env:
|
|
5
5
|
* AUREON_API_KEY issued developer key (required)
|
|
6
|
-
*
|
|
6
|
+
* AUREON_NETWORK optional; omit for official API / testnet 46630; set mainnet for chain 4663
|
|
7
|
+
* AUREON_API_URL optional override (must match network if both set)
|
|
7
8
|
*
|
|
8
9
|
* pnpm example:ai-to-objective-to-portfolio
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import {
|
|
12
13
|
createAureonClient,
|
|
13
|
-
|
|
14
|
+
resolveAureonNetworkFromEnv,
|
|
14
15
|
formatWeight,
|
|
15
16
|
isAureonError,
|
|
16
17
|
parseFinancialIntent,
|
|
@@ -54,8 +55,10 @@ async function main(): Promise<void> {
|
|
|
54
55
|
throw new Error("Set AUREON_API_KEY to an issued developer key.");
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
const resolved = resolveAureonNetworkFromEnv();
|
|
57
59
|
const aureon = createAureonClient({
|
|
58
|
-
|
|
60
|
+
network: resolved.network,
|
|
61
|
+
baseUrl: resolved.baseUrl,
|
|
59
62
|
apiKey,
|
|
60
63
|
});
|
|
61
64
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
createAureonClient,
|
|
14
|
-
|
|
14
|
+
resolveAureonNetworkFromEnv,
|
|
15
15
|
formatAuditTrailLines,
|
|
16
16
|
isAureonError,
|
|
17
17
|
} from "../../src/index.js";
|
|
@@ -22,8 +22,10 @@ async function main(): Promise<void> {
|
|
|
22
22
|
throw new Error("Set AUREON_API_KEY to an issued developer key.");
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
const resolved = resolveAureonNetworkFromEnv();
|
|
25
26
|
const aureon = createAureonClient({
|
|
26
|
-
|
|
27
|
+
network: resolved.network,
|
|
28
|
+
baseUrl: resolved.baseUrl,
|
|
27
29
|
apiKey,
|
|
28
30
|
});
|
|
29
31
|
|
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Env:
|
|
7
7
|
* AUREON_API_KEY issued developer key (required)
|
|
8
|
-
*
|
|
8
|
+
* AUREON_NETWORK optional; omit for official API / testnet 46630; set mainnet for chain 4663
|
|
9
|
+
* AUREON_API_URL optional override (must match network if both set)
|
|
9
10
|
*
|
|
10
11
|
* pnpm example:drift-detect-restore
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
import {
|
|
14
15
|
createAureonClient,
|
|
15
|
-
|
|
16
|
+
resolveAureonNetworkFromEnv,
|
|
16
17
|
formatWeight,
|
|
17
18
|
isAureonError,
|
|
18
19
|
type DriftRestoreFlow,
|
|
@@ -75,8 +76,10 @@ async function main(): Promise<void> {
|
|
|
75
76
|
throw new Error("Set AUREON_API_KEY to an issued developer key.");
|
|
76
77
|
}
|
|
77
78
|
|
|
79
|
+
const resolved = resolveAureonNetworkFromEnv();
|
|
78
80
|
const aureon = createAureonClient({
|
|
79
|
-
|
|
81
|
+
network: resolved.network,
|
|
82
|
+
baseUrl: resolved.baseUrl,
|
|
80
83
|
apiKey,
|
|
81
84
|
});
|
|
82
85
|
|