@buildaureon/sdk 0.1.2 → 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/LICENSE +21 -21
- package/README.md +15 -0
- package/config/network.json +10 -10
- package/dist/index.d.ts +646 -92
- package/dist/index.js +1723 -204
- package/dist/index.js.map +1 -1
- package/docs/architecture.md +1 -1
- package/docs/client-api.md +178 -1
- package/docs/data-contracts.md +81 -6
- package/docs/integration-guide.md +141 -1
- package/docs/receipt-validation.md +63 -0
- package/examples/ai-to-objective-to-portfolio/main.ts +127 -0
- package/examples/audit-trail/main.ts +53 -0
- package/examples/drift-detect-restore/main.ts +96 -0
- package/examples/full-aureon-loop/main.ts +83 -0
- package/examples/green-vs-plan/main.ts +139 -0
- package/examples/market-event/main.ts +2 -0
- package/examples/portfolio-watch/main.ts +84 -0
- package/examples/receipt-verification/main.ts +87 -0
- package/fixtures/reference-objectives.json +18 -18
- package/fixtures/reference-portfolio.json +10 -10
- package/package.json +68 -61
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 AUREON Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AUREON Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -114,6 +114,8 @@ flowchart LR
|
|
|
114
114
|
| Prepare non-custodial vault deposit / withdraw steps | `prepareVaultDeposit`, related vault helpers |
|
|
115
115
|
| Fetch and execute restore plans | `getRestorePlan`, `restoreObjective` |
|
|
116
116
|
| Apply controlled market events for integration rehearsal | `applyMarketEvent` |
|
|
117
|
+
| Register agent intent as objective + portfolio flow | `applyFinancialIntent`, `getObjectivePortfolioFlow` |
|
|
118
|
+
| Compare objective vs actual allocation | `getAllocationVsTarget` |
|
|
117
119
|
| Manage developer API keys | `createApiKey`, `listApiKeys`, `toggleApiKey`, `revokeApiKey` |
|
|
118
120
|
|
|
119
121
|
**This package alone does not:**
|
|
@@ -598,6 +600,19 @@ pnpm --filter @buildaureon/sdk cli portfolio
|
|
|
598
600
|
pnpm --filter @buildaureon/sdk cli objectives
|
|
599
601
|
```
|
|
600
602
|
|
|
603
|
+
### Runnable examples (live API)
|
|
604
|
+
|
|
605
|
+
Requires `AUREON_API_KEY`:
|
|
606
|
+
|
|
607
|
+
```bash
|
|
608
|
+
pnpm example:ai-to-objective-to-portfolio
|
|
609
|
+
pnpm example:drift-detect-restore
|
|
610
|
+
pnpm example:receipt-verification
|
|
611
|
+
pnpm example:portfolio-watch
|
|
612
|
+
pnpm example:full-aureon-loop
|
|
613
|
+
pnpm example:green-vs-plan
|
|
614
|
+
```
|
|
615
|
+
|
|
601
616
|
---
|
|
602
617
|
|
|
603
618
|
## Design principles & settlement honesty
|
package/config/network.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaultBaseUrl": "https://api.aureonlabs.network",
|
|
3
|
-
"localBaseUrl": "http://127.0.0.1:8787",
|
|
4
|
-
"appUrl": "https://app.aureonlabs.network",
|
|
5
|
-
"product": "AUREON",
|
|
6
|
-
"chain": "Robinhood Chain Testnet",
|
|
7
|
-
"chainId": 46630,
|
|
8
|
-
"sdkPackage": "@buildaureon/sdk",
|
|
9
|
-
"sdkVersion": "0.1.0"
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"defaultBaseUrl": "https://api.aureonlabs.network",
|
|
3
|
+
"localBaseUrl": "http://127.0.0.1:8787",
|
|
4
|
+
"appUrl": "https://app.aureonlabs.network",
|
|
5
|
+
"product": "AUREON",
|
|
6
|
+
"chain": "Robinhood Chain Testnet",
|
|
7
|
+
"chainId": 46630,
|
|
8
|
+
"sdkPackage": "@buildaureon/sdk",
|
|
9
|
+
"sdkVersion": "0.1.0"
|
|
10
|
+
}
|