@illalabs/interfaces 0.30.0-canary-beta-0d1289ec → 0.30.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/types/actions/inputs.d.ts +2 -4
- package/dist/types/actions/inputs.d.ts.map +1 -1
- package/dist/types/actions/tools/index.d.ts +0 -6
- package/dist/types/actions/tools/index.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +1 -13
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +0 -20
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/actions/tools/getPortfolioChartAction.d.ts +0 -20
- package/dist/types/actions/tools/getPortfolioChartAction.d.ts.map +0 -1
- package/dist/types/actions/tools/getPortfolioChartAction.js +0 -2
- package/dist/types/actions/tools/getPortfolioChartAction.js.map +0 -1
- package/dist/types/actions/tools/getTokenPriceChartAction.d.ts +0 -22
- package/dist/types/actions/tools/getTokenPriceChartAction.d.ts.map +0 -1
- package/dist/types/actions/tools/getTokenPriceChartAction.js +0 -2
- package/dist/types/actions/tools/getTokenPriceChartAction.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetConsolidatedWalletBalancesActionInput,
|
|
1
|
+
import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetConsolidatedWalletBalancesActionInput, GetWalletBalanceActionInput, HyperliquidDepositActionInput, HyperliquidWithdrawActionInput, PerpetualsClosePositionActionInput, PerpetualsGetAccountSummaryActionInput, PerpetualsGetPositionsActionInput, PerpetualsPlaceOrderActionInput, PerpetualsUpdateLeverageActionInput, PolymarketAuthActionInput, PolymarketPostCancelOrderActionInput, PolymarketPostGetOrdersActionInput, PolymarketPostOrderActionInput, PolymarketPostRedeemActionInput, PolymarketPostWithdrawActionInput, PredictionMarketsBetActionInput, PredictionMarketsFetchActionInput, PredictionMarketsPositionsActionInput, PredictionMarketsRedeemActionInput, PredictionMarketsWithdrawActionInput, ResolveNameActionInput, SwapActionInput, TokenTransferActionInput } from "./tools/index.js";
|
|
2
2
|
export type BaseActionInput<ActionName extends string, InputProperties> = {
|
|
3
3
|
type: ActionName;
|
|
4
4
|
input: InputProperties;
|
|
@@ -33,7 +33,5 @@ export type PerpetualsClosePositionInput = BaseActionInput<"PerpetualsClosePosit
|
|
|
33
33
|
export type PerpetualsUpdateLeverageInput = BaseActionInput<"PerpetualsUpdateLeverage", PerpetualsUpdateLeverageActionInput>;
|
|
34
34
|
export type HyperliquidDepositInput = BaseActionInput<"HyperliquidDeposit", HyperliquidDepositActionInput>;
|
|
35
35
|
export type HyperliquidWithdrawInput = BaseActionInput<"HyperliquidWithdraw", HyperliquidWithdrawActionInput>;
|
|
36
|
-
export type
|
|
37
|
-
export type GetTokenPriceChartInput = BaseActionInput<"getTokenPriceChart", GetTokenPriceChartActionInput>;
|
|
38
|
-
export type ActionInput = TransferTokensInput | SwapInput | BridgeInput | ExchangeRateInput | GetWalletBalanceInput | GetConsolidatedWalletBalancesInput | DefiFetchListingsInput | DefiSupplyInput | DefiWithdrawInput | DefiPositionsInput | PredictionMarketsFetchInput | PredictionMarketsBetInput | PredictionMarketsPositionsInput | PredictionMarketsRedeemInput | PredictionMarketsWithdrawInput | PolymarketPostOrderInput | PolymarketPostRedeemInput | PolymarketPostWithdrawInput | PolymarketAuthInput | PolymarketPostGetOrdersInput | PolymarketPostCancelOrderInput | ResolveNameInput | PerpetualsGetAccountSummaryInput | PerpetualsGetPositionsInput | PerpetualsPlaceOrderInput | PerpetualsClosePositionInput | PerpetualsUpdateLeverageInput | HyperliquidDepositInput | HyperliquidWithdrawInput | GetPortfolioChartInput | GetTokenPriceChartInput;
|
|
36
|
+
export type ActionInput = TransferTokensInput | SwapInput | BridgeInput | ExchangeRateInput | GetWalletBalanceInput | GetConsolidatedWalletBalancesInput | DefiFetchListingsInput | DefiSupplyInput | DefiWithdrawInput | DefiPositionsInput | PredictionMarketsFetchInput | PredictionMarketsBetInput | PredictionMarketsPositionsInput | PredictionMarketsRedeemInput | PredictionMarketsWithdrawInput | PolymarketPostOrderInput | PolymarketPostRedeemInput | PolymarketPostWithdrawInput | PolymarketAuthInput | PolymarketPostGetOrdersInput | PolymarketPostCancelOrderInput | ResolveNameInput | PerpetualsGetAccountSummaryInput | PerpetualsGetPositionsInput | PerpetualsPlaceOrderInput | PerpetualsClosePositionInput | PerpetualsUpdateLeverageInput | HyperliquidDepositInput | HyperliquidWithdrawInput;
|
|
39
37
|
//# sourceMappingURL=inputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/types/actions/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iBAAiB,EACjB,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,wCAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/types/actions/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iBAAiB,EACjB,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,wCAAwC,EACxC,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,sCAAsC,EACtC,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,yBAAyB,EACzB,oCAAoC,EACpC,kCAAkC,EAClC,8BAA8B,EAC9B,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,sBAAsB,EACtB,eAAe,EACf,wBAAwB,EAC3B,M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BAAqB,EACrB,8BAA8B,CACjC,CAAC;AAEF,MAAM,MAAM,WAAW,GACjB,mBAAmB,GACnB,SAAS,GACT,WAAW,GACX,iBAAiB,GACjB,qBAAqB,GACrB,kCAAkC,GAClC,sBAAsB,GACtB,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,yBAAyB,GACzB,+BAA+B,GAC/B,4BAA4B,GAC5B,8BAA8B,GAC9B,wBAAwB,GACxB,yBAAyB,GACzB,2BAA2B,GAC3B,mBAAmB,GACnB,4BAA4B,GAC5B,8BAA8B,GAC9B,gBAAgB,GAChB,gCAAgC,GAChC,2BAA2B,GAC3B,yBAAyB,GACzB,4BAA4B,GAC5B,6BAA6B,GAC7B,uBAAuB,GACvB,wBAAwB,CAAC"}
|
|
@@ -6,8 +6,6 @@ import type { DefiSupplyActionInputSchema } from "./defiSupplyAction.js";
|
|
|
6
6
|
import type { DefiWithdrawActionInputSchema } from "./defiWithdrawAction.js";
|
|
7
7
|
import type { ExchangeRateActionInputSchema } from "./exchangeRateAction.js";
|
|
8
8
|
import type { GetConsolidatedWalletBalancesActionInputSchema } from "./getConsolidatedWalletBalancesAction.js";
|
|
9
|
-
import type { GetPortfolioChartActionInputSchema } from "./getPortfolioChartAction.js";
|
|
10
|
-
import type { GetTokenPriceChartActionInputSchema } from "./getTokenPriceChartAction.js";
|
|
11
9
|
import type { GetWalletBalanceActionInputSchema } from "./getWalletBalanceAction.js";
|
|
12
10
|
import type { HyperliquidDepositActionInputSchema } from "./hyperliquidDepositAction.js";
|
|
13
11
|
import type { HyperliquidWithdrawActionInputSchema } from "./hyperliquidWithdrawAction.js";
|
|
@@ -64,8 +62,6 @@ export type ActionSchemaMapping = {
|
|
|
64
62
|
readonly perpetualsUpdateLeverage: PerpetualsUpdateLeverageActionInputSchema;
|
|
65
63
|
readonly hyperliquidDeposit: HyperliquidDepositActionInputSchema;
|
|
66
64
|
readonly hyperliquidWithdraw: HyperliquidWithdrawActionInputSchema;
|
|
67
|
-
readonly getPortfolioChart: GetPortfolioChartActionInputSchema;
|
|
68
|
-
readonly getTokenPriceChart: GetTokenPriceChartActionInputSchema;
|
|
69
65
|
};
|
|
70
66
|
/**
|
|
71
67
|
* Utility type to get the schema type for a specific action
|
|
@@ -78,8 +74,6 @@ export type * from "./defiSupplyAction.js";
|
|
|
78
74
|
export type * from "./defiWithdrawAction.js";
|
|
79
75
|
export type * from "./exchangeRateAction.js";
|
|
80
76
|
export type * from "./getConsolidatedWalletBalancesAction.js";
|
|
81
|
-
export type * from "./getPortfolioChartAction.js";
|
|
82
|
-
export type * from "./getTokenPriceChartAction.js";
|
|
83
77
|
export type * from "./getWalletBalanceAction.js";
|
|
84
78
|
export type * from "./hyperliquidDepositAction.js";
|
|
85
79
|
export type * from "./hyperliquidWithdrawAction.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,0CAA0C,CAAC;AAC/G,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAA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,CAAC;AACzD,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,sCAAsC,CAAC;AAC1D,mBAAmB,oCAAoC,CAAC;AACxD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,uCAAuC,CAAC;AAC3D,mBAAmB,oCAAoC,CAAC;AACxD,mBAAmB,sCAAsC,CAAC;AAC1D,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,0BAA0B,CAAC"}
|
|
@@ -12,18 +12,6 @@ export declare const SWAP_BRIDGE_PROVIDERS: readonly ["lifi", "aerodrome"];
|
|
|
12
12
|
export declare const EXCHANGE_RATE_PROVIDERS: readonly ["coinMarketCap", "coingecko", "zerion"];
|
|
13
13
|
export declare const PREDICTION_MARKET_PROVIDERS: readonly ["polymarket"];
|
|
14
14
|
export declare const PERPETUAL_PROVIDERS: readonly ["hyperliquid"];
|
|
15
|
-
/**
|
|
16
|
-
* Canonical time windows for the chart read tools (`getPortfolioChart`,
|
|
17
|
-
* `getTokenPriceChart`). Frozen tuple so consumers can build a Zod enum
|
|
18
|
-
* (`z.enum(CHART_PERIODS)`) from it; the derived {@link ChartPeriod} union gives
|
|
19
|
-
* compile-time exhaustiveness to prompts and provider validation.
|
|
20
|
-
*
|
|
21
|
-
* Note: the upstream chart provider also accepts finer buckets (`3months`,
|
|
22
|
-
* `6months`, `5years`); we intentionally expose this canonical six-value set as
|
|
23
|
-
* the LLM-facing contract. Add a value here to widen it everywhere at once.
|
|
24
|
-
*/
|
|
25
|
-
export declare const CHART_PERIODS: readonly ["hour", "day", "week", "month", "year", "max"];
|
|
26
|
-
export type ChartPeriod = (typeof CHART_PERIODS)[number];
|
|
27
15
|
/**
|
|
28
16
|
* Canonical definition of chains with id and name.
|
|
29
17
|
* We use `as const` to preserve literal types at the type level.
|
|
@@ -69,7 +57,7 @@ export declare const SUPPORTED_CHAIN_NAMES: readonly ["Ethereum", "Polygon", "Op
|
|
|
69
57
|
/**
|
|
70
58
|
* Const list of all supported actions with their schemas
|
|
71
59
|
*/
|
|
72
|
-
export declare const SUPPORTED_ACTIONS: readonly ["tokenTransfer", "exchangeRate", "getWalletBalance", "getConsolidatedWalletBalances", "defiFetchListings", "defiPositions", "defiSupply", "defiWithdraw", "swap", "bridge", "predictionMarketsFetch", "predictionMarketsBet", "predictionMarketsPositions", "predictionMarketsRedeem", "predictionMarketsWithdraw", "polymarketPostOrder", "polymarketPostRedeem", "polymarketPostWithdraw", "polymarketAuth", "polymarketPostGetOrders", "polymarketPostCancelOrder", "resolveName", "perpetualsGetAccountSummary", "perpetualsGetPositions", "perpetualsPlaceOrder", "perpetualsClosePosition", "perpetualsUpdateLeverage", "hyperliquidDeposit", "hyperliquidWithdraw"
|
|
60
|
+
export declare const SUPPORTED_ACTIONS: readonly ["tokenTransfer", "exchangeRate", "getWalletBalance", "getConsolidatedWalletBalances", "defiFetchListings", "defiPositions", "defiSupply", "defiWithdraw", "swap", "bridge", "predictionMarketsFetch", "predictionMarketsBet", "predictionMarketsPositions", "predictionMarketsRedeem", "predictionMarketsWithdraw", "polymarketPostOrder", "polymarketPostRedeem", "polymarketPostWithdraw", "polymarketAuth", "polymarketPostGetOrders", "polymarketPostCancelOrder", "resolveName", "perpetualsGetAccountSummary", "perpetualsGetPositions", "perpetualsPlaceOrder", "perpetualsClosePosition", "perpetualsUpdateLeverage", "hyperliquidDeposit", "hyperliquidWithdraw"];
|
|
73
61
|
/**
|
|
74
62
|
* Identifier for a public naming service. Adding a new one is a single-line
|
|
75
63
|
* change here plus a corresponding service config + resolver wiring on the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAA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CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAChC,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,GAClC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,yBAAyB,mCAAoC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,2BAA2B,4gBAqB9B,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAK1B,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/utils/constants.js
CHANGED
|
@@ -16,24 +16,6 @@ export const EXCHANGE_RATE_PROVIDERS = Object.freeze([
|
|
|
16
16
|
]);
|
|
17
17
|
export const PREDICTION_MARKET_PROVIDERS = Object.freeze(["polymarket"]);
|
|
18
18
|
export const PERPETUAL_PROVIDERS = Object.freeze(["hyperliquid"]);
|
|
19
|
-
/**
|
|
20
|
-
* Canonical time windows for the chart read tools (`getPortfolioChart`,
|
|
21
|
-
* `getTokenPriceChart`). Frozen tuple so consumers can build a Zod enum
|
|
22
|
-
* (`z.enum(CHART_PERIODS)`) from it; the derived {@link ChartPeriod} union gives
|
|
23
|
-
* compile-time exhaustiveness to prompts and provider validation.
|
|
24
|
-
*
|
|
25
|
-
* Note: the upstream chart provider also accepts finer buckets (`3months`,
|
|
26
|
-
* `6months`, `5years`); we intentionally expose this canonical six-value set as
|
|
27
|
-
* the LLM-facing contract. Add a value here to widen it everywhere at once.
|
|
28
|
-
*/
|
|
29
|
-
export const CHART_PERIODS = Object.freeze([
|
|
30
|
-
"hour",
|
|
31
|
-
"day",
|
|
32
|
-
"week",
|
|
33
|
-
"month",
|
|
34
|
-
"year",
|
|
35
|
-
"max",
|
|
36
|
-
]);
|
|
37
19
|
/**
|
|
38
20
|
* Canonical definition of chains with id and name.
|
|
39
21
|
* We use `as const` to preserve literal types at the type level.
|
|
@@ -100,8 +82,6 @@ export const SUPPORTED_ACTIONS = Object.freeze([
|
|
|
100
82
|
"perpetualsUpdateLeverage",
|
|
101
83
|
"hyperliquidDeposit",
|
|
102
84
|
"hyperliquidWithdraw",
|
|
103
|
-
"getPortfolioChart",
|
|
104
|
-
"getTokenPriceChart",
|
|
105
85
|
]);
|
|
106
86
|
/**
|
|
107
87
|
* Identifier for a public naming service. Adding a new one is a single-line
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAU,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,WAAW,CAAU,CAAC,CAAC;AAEtF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,WAAW,CAAU,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjD,eAAe;IACf,WAAW;IACX,QAAQ;CACF,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAU,CAAC,CAA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B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,aAAa,EAAE,cAAc;IAC7B,eAAe,EAAE,gBAAgB;CAC3B,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5D,SAAS;IACT,YAAY;IACZ,QAAQ;CACF,CAAC,CAAC;AAeZ,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,cAAc;CACR,CAAC,CAAC;AAWZ;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAU,CAAC;AAO3E;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,6BAA6B;IAC7B,uBAAuB;IACvB,cAAc;IACd,gCAAgC;IAChC,mBAAmB;IACnB,6BAA6B;IAC7B,+BAA+B;IAC/B,8BAA8B;IAC9B,oBAAoB;IACpB,4BAA4B;IAC5B,wBAAwB;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,6BAA6B;IAC7B,2BAA2B;IAC3B,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,YAAY;IACZ,kBAAkB;CACZ,CAAC;AAOX;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,QAAQ;IACR,aAAa;IACb,OAAO;IACP,uBAAuB;CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { TypeOf, z } from "zod";
|
|
2
|
-
import type { ChartPeriod } from "../../../utils/constants.js";
|
|
3
|
-
/**
|
|
4
|
-
* Input schema for the `getPortfolioChart` read tool — a wallet's total value
|
|
5
|
-
* over time.
|
|
6
|
-
*
|
|
7
|
-
* - `address` is optional; when omitted the action defaults to the connected
|
|
8
|
-
* wallet from the user context.
|
|
9
|
-
* - `period` is one of the canonical {@link ChartPeriod} buckets and defaults to
|
|
10
|
-
* `"month"` when the model omits it.
|
|
11
|
-
* - `currency` is an optional ISO/crypto currency code (e.g. `"usd"`, `"eur"`,
|
|
12
|
-
* `"eth"`); it defaults to `"usd"` server-side when omitted.
|
|
13
|
-
*/
|
|
14
|
-
export type GetPortfolioChartActionInputSchema = z.ZodObject<{
|
|
15
|
-
address: z.ZodOptional<z.ZodString>;
|
|
16
|
-
period: z.ZodDefault<z.ZodEnum<[ChartPeriod, ...ChartPeriod[]]>>;
|
|
17
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}>;
|
|
19
|
-
export type GetPortfolioChartActionInput = TypeOf<GetPortfolioChartActionInputSchema>;
|
|
20
|
-
//# sourceMappingURL=getPortfolioChartAction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPortfolioChartAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/getPortfolioChartAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,SAAS,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;IACjE,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPortfolioChartAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/getPortfolioChartAction.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { TypeOf, z } from "zod";
|
|
2
|
-
import type { ChartPeriod } from "../../../utils/constants.js";
|
|
3
|
-
/**
|
|
4
|
-
* Input schema for the `getTokenPriceChart` read tool — a token's price over
|
|
5
|
-
* time.
|
|
6
|
-
*
|
|
7
|
-
* The asset is identified by exactly one of:
|
|
8
|
-
* - `token`: a human-friendly symbol (e.g. `"ETH"`, `"USDC"`) resolved to a
|
|
9
|
-
* provider asset id server-side, or
|
|
10
|
-
* - `fungibleId`: an explicit provider fungible id.
|
|
11
|
-
*
|
|
12
|
-
* Supplying neither or both is rejected by the action factory. `period` defaults
|
|
13
|
-
* to `"month"`; `currency` defaults to `"usd"` server-side when omitted.
|
|
14
|
-
*/
|
|
15
|
-
export type GetTokenPriceChartActionInputSchema = z.ZodObject<{
|
|
16
|
-
token: z.ZodOptional<z.ZodString>;
|
|
17
|
-
fungibleId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
period: z.ZodDefault<z.ZodEnum<[ChartPeriod, ...ChartPeriod[]]>>;
|
|
19
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}>;
|
|
21
|
-
export type GetTokenPriceChartActionInput = TypeOf<GetTokenPriceChartActionInputSchema>;
|
|
22
|
-
//# sourceMappingURL=getTokenPriceChartAction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenPriceChartAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/getTokenPriceChartAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,SAAS,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;IACjE,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenPriceChartAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/getTokenPriceChartAction.ts"],"names":[],"mappings":""}
|