@alva-ai/toolkit 0.9.0 → 0.9.2-beta.0
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/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.js +82 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +33 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1901,6 +1901,34 @@ var TradingResource = class {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
};
|
|
1903
1903
|
|
|
1904
|
+
// src/resources/portfolio.ts
|
|
1905
|
+
var PortfolioResource = class {
|
|
1906
|
+
constructor(client) {
|
|
1907
|
+
this.client = client;
|
|
1908
|
+
}
|
|
1909
|
+
client;
|
|
1910
|
+
async accounts() {
|
|
1911
|
+
this.client._requireAuth();
|
|
1912
|
+
return this.client._request("GET", "/api/v1/portfolio/accounts");
|
|
1913
|
+
}
|
|
1914
|
+
async summary(accountId) {
|
|
1915
|
+
this.client._requireAuth();
|
|
1916
|
+
return this.client._request("GET", "/api/v1/portfolio/summary", {
|
|
1917
|
+
query: { accountId }
|
|
1918
|
+
});
|
|
1919
|
+
}
|
|
1920
|
+
async activities(params) {
|
|
1921
|
+
this.client._requireAuth();
|
|
1922
|
+
return this.client._request("GET", "/api/v1/portfolio/activities", {
|
|
1923
|
+
query: {
|
|
1924
|
+
accountId: params.accountId,
|
|
1925
|
+
limit: params.limit,
|
|
1926
|
+
pageToken: params.pageToken
|
|
1927
|
+
}
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
|
|
1904
1932
|
// src/resources/arraysJwt.ts
|
|
1905
1933
|
var ArraysJwtResource = class {
|
|
1906
1934
|
constructor(client) {
|
|
@@ -2168,6 +2196,7 @@ var AlvaClient = class {
|
|
|
2168
2196
|
_screenshot;
|
|
2169
2197
|
_user;
|
|
2170
2198
|
_trading;
|
|
2199
|
+
_portfolio;
|
|
2171
2200
|
_arraysJwt;
|
|
2172
2201
|
_notifications;
|
|
2173
2202
|
_notificationPreferences;
|
|
@@ -2228,6 +2257,9 @@ var AlvaClient = class {
|
|
|
2228
2257
|
get trading() {
|
|
2229
2258
|
return this._trading ??= new TradingResource(this);
|
|
2230
2259
|
}
|
|
2260
|
+
get portfolio() {
|
|
2261
|
+
return this._portfolio ??= new PortfolioResource(this);
|
|
2262
|
+
}
|
|
2231
2263
|
get arraysJwt() {
|
|
2232
2264
|
return this._arraysJwt ??= new ArraysJwtResource(this);
|
|
2233
2265
|
}
|
|
@@ -2694,7 +2726,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
2694
2726
|
};
|
|
2695
2727
|
|
|
2696
2728
|
// src/index.ts
|
|
2697
|
-
var VERSION = true ? "0.9.0" : "dev";
|
|
2729
|
+
var VERSION = true ? "0.9.2-beta.0" : "dev";
|
|
2698
2730
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2699
2731
|
0 && (module.exports = {
|
|
2700
2732
|
AlvaClient,
|