@illalabs/interfaces 0.32.0-canary-beta-5301b79e → 0.32.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 +3 -3
- package/dist/types/actions/inputs.d.ts.map +1 -1
- package/dist/types/actions/tools/index.d.ts +3 -3
- package/dist/types/actions/tools/index.d.ts.map +1 -1
- package/dist/types/actions/tools/predictionMarketsGetAction.d.ts +27 -0
- package/dist/types/actions/tools/predictionMarketsGetAction.d.ts.map +1 -0
- package/dist/types/actions/tools/predictionMarketsGetAction.js +2 -0
- package/dist/types/actions/tools/predictionMarketsGetAction.js.map +1 -0
- package/dist/utils/constants.d.ts +1 -39
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +1 -64
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/actions/tools/getWalletTransactionsAction.d.ts +0 -36
- package/dist/types/actions/tools/getWalletTransactionsAction.d.ts.map +0 -1
- package/dist/types/actions/tools/getWalletTransactionsAction.js +0 -2
- package/dist/types/actions/tools/getWalletTransactionsAction.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetConsolidatedWalletBalancesActionInput, GetPortfolioChartActionInput, GetTokenPriceChartActionInput, GetWalletBalanceActionInput,
|
|
1
|
+
import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetConsolidatedWalletBalancesActionInput, GetPortfolioChartActionInput, GetTokenPriceChartActionInput, GetWalletBalanceActionInput, HyperliquidDepositActionInput, HyperliquidWithdrawActionInput, PerpetualsClosePositionActionInput, PerpetualsGetAccountSummaryActionInput, PerpetualsGetPositionsActionInput, PerpetualsPlaceOrderActionInput, PerpetualsUpdateLeverageActionInput, PolymarketAuthActionInput, PolymarketPostCancelOrderActionInput, PolymarketPostGetOrdersActionInput, PolymarketPostOrderActionInput, PolymarketPostRedeemActionInput, PolymarketPostWithdrawActionInput, PredictionMarketsBetActionInput, PredictionMarketsFetchActionInput, PredictionMarketsGetActionInput, 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;
|
|
@@ -15,6 +15,7 @@ export type DefiSupplyInput = BaseActionInput<"DefiSupply", DefiSupplyActionInpu
|
|
|
15
15
|
export type DefiWithdrawInput = BaseActionInput<"DefiWithdraw", DefiWithdrawActionInput>;
|
|
16
16
|
export type DefiPositionsInput = BaseActionInput<"DefiPositions", DefiPositionsActionInput>;
|
|
17
17
|
export type PredictionMarketsFetchInput = BaseActionInput<"PredictionMarketsFetch", PredictionMarketsFetchActionInput>;
|
|
18
|
+
export type PredictionMarketsGetInput = BaseActionInput<"PredictionMarketsGet", PredictionMarketsGetActionInput>;
|
|
18
19
|
export type PredictionMarketsPositionsInput = BaseActionInput<"PredictionMarketsPositions", PredictionMarketsPositionsActionInput>;
|
|
19
20
|
export type PredictionMarketsBetInput = BaseActionInput<"PredictionMarketsBet", PredictionMarketsBetActionInput>;
|
|
20
21
|
export type PredictionMarketsRedeemInput = BaseActionInput<"PredictionMarketsRedeem", PredictionMarketsRedeemActionInput>;
|
|
@@ -35,6 +36,5 @@ export type HyperliquidDepositInput = BaseActionInput<"HyperliquidDeposit", Hype
|
|
|
35
36
|
export type HyperliquidWithdrawInput = BaseActionInput<"HyperliquidWithdraw", HyperliquidWithdrawActionInput>;
|
|
36
37
|
export type GetPortfolioChartInput = BaseActionInput<"getPortfolioChart", GetPortfolioChartActionInput>;
|
|
37
38
|
export type GetTokenPriceChartInput = BaseActionInput<"getTokenPriceChart", GetTokenPriceChartActionInput>;
|
|
38
|
-
export type
|
|
39
|
-
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 | GetWalletTransactionsInput;
|
|
39
|
+
export type ActionInput = TransferTokensInput | SwapInput | BridgeInput | ExchangeRateInput | GetWalletBalanceInput | GetConsolidatedWalletBalancesInput | DefiFetchListingsInput | DefiSupplyInput | DefiWithdrawInput | DefiPositionsInput | PredictionMarketsFetchInput | PredictionMarketsGetInput | PredictionMarketsBetInput | PredictionMarketsPositionsInput | PredictionMarketsRedeemInput | PredictionMarketsWithdrawInput | PolymarketPostOrderInput | PolymarketPostRedeemInput | PolymarketPostWithdrawInput | PolymarketAuthInput | PolymarketPostGetOrdersInput | PolymarketPostCancelOrderInput | ResolveNameInput | PerpetualsGetAccountSummaryInput | PerpetualsGetPositionsInput | PerpetualsPlaceOrderInput | PerpetualsClosePositionInput | PerpetualsUpdateLeverageInput | HyperliquidDepositInput | HyperliquidWithdrawInput | GetPortfolioChartInput | GetTokenPriceChartInput;
|
|
40
40
|
//# 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,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,
|
|
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,4BAA4B,EAC5B,6BAA6B,EAC7B,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,+BAA+B,EAC/B,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,sBAAsB,EACtB,eAAe,EACf,wBAAwB,EAC3B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,eAAe,CAAC,UAAU,SAAS,MAAM,EAAE,eAAe,IAAI;IACtE,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC;AAE7F,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG,eAAe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zB,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,GACxB,sBAAsB,GACtB,uBAAuB,CAAC"}
|
|
@@ -9,7 +9,6 @@ import type { GetConsolidatedWalletBalancesActionInputSchema } from "./getConsol
|
|
|
9
9
|
import type { GetPortfolioChartActionInputSchema } from "./getPortfolioChartAction.js";
|
|
10
10
|
import type { GetTokenPriceChartActionInputSchema } from "./getTokenPriceChartAction.js";
|
|
11
11
|
import type { GetWalletBalanceActionInputSchema } from "./getWalletBalanceAction.js";
|
|
12
|
-
import type { GetWalletTransactionsActionInputSchema } from "./getWalletTransactionsAction.js";
|
|
13
12
|
import type { HyperliquidDepositActionInputSchema } from "./hyperliquidDepositAction.js";
|
|
14
13
|
import type { HyperliquidWithdrawActionInputSchema } from "./hyperliquidWithdrawAction.js";
|
|
15
14
|
import type { PerpetualsClosePositionActionInputSchema } from "./perpetualsClosePositionAction.js";
|
|
@@ -25,6 +24,7 @@ import type { PolymarketPostRedeemActionInputSchema } from "./polymarketPostRede
|
|
|
25
24
|
import type { PolymarketPostWithdrawActionInputSchema } from "./polymarketPostWithdrawAction.js";
|
|
26
25
|
import type { PredictionMarketsBetActionInputSchema } from "./predictionMarketsBetAction.js";
|
|
27
26
|
import type { PredictionMarketsFetchActionInputSchema } from "./predictionMarketsFetchAction.js";
|
|
27
|
+
import type { PredictionMarketsGetActionInputSchema } from "./predictionMarketsGetAction.js";
|
|
28
28
|
import type { PredictionMarketsPositionsActionInputSchema } from "./predictionMarketsPositionsAction.js";
|
|
29
29
|
import type { PredictionMarketsRedeemActionInputSchema } from "./predictionMarketsRedeemAction.js";
|
|
30
30
|
import type { PredictionMarketsWithdrawActionInputSchema } from "./predictionMarketsWithdrawAction.js";
|
|
@@ -47,6 +47,7 @@ export type ActionSchemaMapping = {
|
|
|
47
47
|
readonly swap: SwapActionInputSchema;
|
|
48
48
|
readonly bridge: BridgeActionInputSchema;
|
|
49
49
|
readonly predictionMarketsFetch: PredictionMarketsFetchActionInputSchema;
|
|
50
|
+
readonly predictionMarketsGet: PredictionMarketsGetActionInputSchema;
|
|
50
51
|
readonly predictionMarketsBet: PredictionMarketsBetActionInputSchema;
|
|
51
52
|
readonly predictionMarketsPositions: PredictionMarketsPositionsActionInputSchema;
|
|
52
53
|
readonly predictionMarketsRedeem: PredictionMarketsRedeemActionInputSchema;
|
|
@@ -67,7 +68,6 @@ export type ActionSchemaMapping = {
|
|
|
67
68
|
readonly hyperliquidWithdraw: HyperliquidWithdrawActionInputSchema;
|
|
68
69
|
readonly getPortfolioChart: GetPortfolioChartActionInputSchema;
|
|
69
70
|
readonly getTokenPriceChart: GetTokenPriceChartActionInputSchema;
|
|
70
|
-
readonly getWalletTransactions: GetWalletTransactionsActionInputSchema;
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* Utility type to get the schema type for a specific action
|
|
@@ -83,7 +83,6 @@ export type * from "./getConsolidatedWalletBalancesAction.js";
|
|
|
83
83
|
export type * from "./getPortfolioChartAction.js";
|
|
84
84
|
export type * from "./getTokenPriceChartAction.js";
|
|
85
85
|
export type * from "./getWalletBalanceAction.js";
|
|
86
|
-
export type * from "./getWalletTransactionsAction.js";
|
|
87
86
|
export type * from "./hyperliquidDepositAction.js";
|
|
88
87
|
export type * from "./hyperliquidWithdrawAction.js";
|
|
89
88
|
export type * from "./perpetualsClosePositionAction.js";
|
|
@@ -99,6 +98,7 @@ export type * from "./polymarketPostRedeemAction.js";
|
|
|
99
98
|
export type * from "./polymarketPostWithdrawAction.js";
|
|
100
99
|
export type * from "./predictionMarketsBetAction.js";
|
|
101
100
|
export type * from "./predictionMarketsFetchAction.js";
|
|
101
|
+
export type * from "./predictionMarketsGetAction.js";
|
|
102
102
|
export type * from "./predictionMarketsPositionsAction.js";
|
|
103
103
|
export type * from "./predictionMarketsRedeemAction.js";
|
|
104
104
|
export type * from "./predictionMarketsWithdrawAction.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,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AACrF,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,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,8BAA8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6BAA6B,CAAC;AACjD,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,oCAAoC,CAAC;AACxD,mBAAmB,wCAAwC,CAAC;AAC5D,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,qCAAqC,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,iCAAiC,CAAC;AACrD,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TypeOf } from "zod";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import type { SupportedPredictionMarketProvider } from "../../../internal.js";
|
|
4
|
+
/**
|
|
5
|
+
* Input schema for `predictionMarketsGet` — fetch a single prediction market by
|
|
6
|
+
* its identifier.
|
|
7
|
+
*
|
|
8
|
+
* `marketId` accepts a condition id (0x + 64 hex), a Gamma market id, or a slug —
|
|
9
|
+
* the same identifier forms returned by `predictionMarketsFetch`.
|
|
10
|
+
*
|
|
11
|
+
* By default only the requested market is returned, alongside its parent event's
|
|
12
|
+
* metadata and true total market count (so the caller knows how many sibling
|
|
13
|
+
* markets exist without loading them). Set `includeEvent` to true to also return
|
|
14
|
+
* the sibling markets; `marketsByEvent` then caps how many are included.
|
|
15
|
+
*/
|
|
16
|
+
export type PredictionMarketsGetActionInputSchema = z.ZodObject<{
|
|
17
|
+
chain: z.ZodEnum<[string, ...string[]]>;
|
|
18
|
+
marketId: z.ZodString;
|
|
19
|
+
includeEvent: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
marketsByEvent: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
provider: z.ZodEnum<[
|
|
22
|
+
SupportedPredictionMarketProvider,
|
|
23
|
+
...SupportedPredictionMarketProvider[]
|
|
24
|
+
]>;
|
|
25
|
+
}>;
|
|
26
|
+
export type PredictionMarketsGetActionInput = TypeOf<PredictionMarketsGetActionInputSchema>;
|
|
27
|
+
//# sourceMappingURL=predictionMarketsGetAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictionMarketsGetAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/predictionMarketsGetAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,sBAAsB,CAAC;AAE9E;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,SAAS,CAAC;IAC5D,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC;IACtB,YAAY,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAC1C,cAAc,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC3C,QAAQ,EAAE,CAAC,CAAC,OAAO,CACf;QAAC,iCAAiC;QAAE,GAAG,iCAAiC,EAAE;KAAC,CAC9E,CAAC;CACL,CAAC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictionMarketsGetAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/predictionMarketsGetAction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
|
@@ -33,44 +33,6 @@ export type ChartPeriod = (typeof CHART_PERIODS)[number];
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const CHART_PROVIDERS: readonly ["zerion"];
|
|
35
35
|
export type SupportedChartProvider = (typeof CHART_PROVIDERS)[number];
|
|
36
|
-
/**
|
|
37
|
-
* Operation types for the `getWalletTransactions` read tool's `operationTypes`
|
|
38
|
-
* filter. Frozen tuple so consumers can build a Zod enum (`z.enum(OPERATION_TYPES)`)
|
|
39
|
-
* from it; the derived {@link OperationType} union gives compile-time exhaustiveness
|
|
40
|
-
* to prompts and provider mapping.
|
|
41
|
-
*
|
|
42
|
-
* Note: the upstream Zerion API accepts a wider set (also `bid`, `delegate`,
|
|
43
|
-
* `revoke`, `revoke_delegation`); we intentionally expose this canonical set as
|
|
44
|
-
* the user-facing input filter. Operation types outside this set still appear
|
|
45
|
-
* verbatim on returned transactions — they are simply not offered as filters.
|
|
46
|
-
*/
|
|
47
|
-
export declare const OPERATION_TYPES: readonly ["trade", "send", "receive", "deposit", "withdraw", "mint", "burn", "approve", "claim", "execute", "deploy"];
|
|
48
|
-
export type OperationType = (typeof OPERATION_TYPES)[number];
|
|
49
|
-
/**
|
|
50
|
-
* Asset types for the `getWalletTransactions` read tool's `assetTypes` filter.
|
|
51
|
-
* Frozen tuple so consumers can build a Zod enum (`z.enum(ASSET_TYPES)`); the
|
|
52
|
-
* derived {@link AssetType} union gives compile-time exhaustiveness.
|
|
53
|
-
*
|
|
54
|
-
* `"token"` (not a provider-specific term like "fungible") keeps the contract
|
|
55
|
-
* provider-agnostic; the api maps it to the upstream provider's own value.
|
|
56
|
-
*/
|
|
57
|
-
export declare const ASSET_TYPES: readonly ["token", "nft"];
|
|
58
|
-
export type AssetType = (typeof ASSET_TYPES)[number];
|
|
59
|
-
/**
|
|
60
|
-
* Data providers for the `getWalletTransactions` read tool. Frozen tuple so the
|
|
61
|
-
* schema can build a Zod enum (`z.enum(TRANSACTIONS_PROVIDERS)`); Zerion is the
|
|
62
|
-
* only one today — add a value here to widen it. Parity with `CHART_PROVIDERS`.
|
|
63
|
-
*/
|
|
64
|
-
export declare const TRANSACTIONS_PROVIDERS: readonly ["zerion"];
|
|
65
|
-
export type SupportedTransactionsProvider = (typeof TRANSACTIONS_PROVIDERS)[number];
|
|
66
|
-
/**
|
|
67
|
-
* Currency codes the wallet-data read tools price values in — the major fiats
|
|
68
|
-
* plus `eth`/`btc`. Frozen tuple so schemas can build a Zod enum
|
|
69
|
-
* (`z.enum(SUPPORTED_CURRENCIES)`); the derived {@link SupportedCurrency} union
|
|
70
|
-
* gives compile-time exhaustiveness.
|
|
71
|
-
*/
|
|
72
|
-
export declare const SUPPORTED_CURRENCIES: readonly ["usd", "eur", "gbp", "jpy", "krw", "rub", "aud", "cad", "inr", "nzd", "try", "zar", "cny", "chf", "eth", "btc"];
|
|
73
|
-
export type SupportedCurrency = (typeof SUPPORTED_CURRENCIES)[number];
|
|
74
36
|
/**
|
|
75
37
|
* Canonical definition of chains with id and name.
|
|
76
38
|
* We use `as const` to preserve literal types at the type level.
|
|
@@ -116,7 +78,7 @@ export declare const SUPPORTED_CHAIN_NAMES: readonly ["Ethereum", "Polygon", "Op
|
|
|
116
78
|
/**
|
|
117
79
|
* Const list of all supported actions with their schemas
|
|
118
80
|
*/
|
|
119
|
-
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", "getPortfolioChart", "getTokenPriceChart"
|
|
81
|
+
export declare const SUPPORTED_ACTIONS: readonly ["tokenTransfer", "exchangeRate", "getWalletBalance", "getConsolidatedWalletBalances", "defiFetchListings", "defiPositions", "defiSupply", "defiWithdraw", "swap", "bridge", "predictionMarketsFetch", "predictionMarketsGet", "predictionMarketsBet", "predictionMarketsPositions", "predictionMarketsRedeem", "predictionMarketsWithdraw", "polymarketPostOrder", "polymarketPostRedeem", "polymarketPostWithdraw", "polymarketAuth", "polymarketPostGetOrders", "polymarketPostCancelOrder", "resolveName", "perpetualsGetAccountSummary", "perpetualsGetPositions", "perpetualsPlaceOrder", "perpetualsClosePosition", "perpetualsUpdateLeverage", "hyperliquidDeposit", "hyperliquidWithdraw", "getPortfolioChart", "getTokenPriceChart"];
|
|
120
82
|
/**
|
|
121
83
|
* Identifier for a public naming service. Adding a new one is a single-line
|
|
122
84
|
* 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,eAAO,MAAM,iBAAiB,6BAA6C,CAAC;AAE5E,eAAO,MAAM,wBAAwB,gCAAgD,CAAC;AAEtF,eAAO,MAAM,0BAA0B,mBAAmC,CAAC;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,gCAAgD,CAAC;AAEnF,eAAO,MAAM,uBAAuB,mDAIzB,CAAC;AAEZ,eAAO,MAAM,2BAA2B,yBAAyC,CAAC;AAElF,eAAO,MAAM,mBAAmB,0BAA0C,CAAC;AAE3E;;;;;;;;;GASG;AACH,eAAO,MAAM,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2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7F,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,eAAO,MAAM,iBAAiB,2DAKnB,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,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
|
@@ -42,69 +42,6 @@ export const CHART_PERIODS = Object.freeze([
|
|
|
42
42
|
* Zerion is the only chart provider today — add a value here to widen it at once.
|
|
43
43
|
*/
|
|
44
44
|
export const CHART_PROVIDERS = Object.freeze(["zerion"]);
|
|
45
|
-
/**
|
|
46
|
-
* Operation types for the `getWalletTransactions` read tool's `operationTypes`
|
|
47
|
-
* filter. Frozen tuple so consumers can build a Zod enum (`z.enum(OPERATION_TYPES)`)
|
|
48
|
-
* from it; the derived {@link OperationType} union gives compile-time exhaustiveness
|
|
49
|
-
* to prompts and provider mapping.
|
|
50
|
-
*
|
|
51
|
-
* Note: the upstream Zerion API accepts a wider set (also `bid`, `delegate`,
|
|
52
|
-
* `revoke`, `revoke_delegation`); we intentionally expose this canonical set as
|
|
53
|
-
* the user-facing input filter. Operation types outside this set still appear
|
|
54
|
-
* verbatim on returned transactions — they are simply not offered as filters.
|
|
55
|
-
*/
|
|
56
|
-
export const OPERATION_TYPES = Object.freeze([
|
|
57
|
-
"trade",
|
|
58
|
-
"send",
|
|
59
|
-
"receive",
|
|
60
|
-
"deposit",
|
|
61
|
-
"withdraw",
|
|
62
|
-
"mint",
|
|
63
|
-
"burn",
|
|
64
|
-
"approve",
|
|
65
|
-
"claim",
|
|
66
|
-
"execute",
|
|
67
|
-
"deploy",
|
|
68
|
-
]);
|
|
69
|
-
/**
|
|
70
|
-
* Asset types for the `getWalletTransactions` read tool's `assetTypes` filter.
|
|
71
|
-
* Frozen tuple so consumers can build a Zod enum (`z.enum(ASSET_TYPES)`); the
|
|
72
|
-
* derived {@link AssetType} union gives compile-time exhaustiveness.
|
|
73
|
-
*
|
|
74
|
-
* `"token"` (not a provider-specific term like "fungible") keeps the contract
|
|
75
|
-
* provider-agnostic; the api maps it to the upstream provider's own value.
|
|
76
|
-
*/
|
|
77
|
-
export const ASSET_TYPES = Object.freeze(["token", "nft"]);
|
|
78
|
-
/**
|
|
79
|
-
* Data providers for the `getWalletTransactions` read tool. Frozen tuple so the
|
|
80
|
-
* schema can build a Zod enum (`z.enum(TRANSACTIONS_PROVIDERS)`); Zerion is the
|
|
81
|
-
* only one today — add a value here to widen it. Parity with `CHART_PROVIDERS`.
|
|
82
|
-
*/
|
|
83
|
-
export const TRANSACTIONS_PROVIDERS = Object.freeze(["zerion"]);
|
|
84
|
-
/**
|
|
85
|
-
* Currency codes the wallet-data read tools price values in — the major fiats
|
|
86
|
-
* plus `eth`/`btc`. Frozen tuple so schemas can build a Zod enum
|
|
87
|
-
* (`z.enum(SUPPORTED_CURRENCIES)`); the derived {@link SupportedCurrency} union
|
|
88
|
-
* gives compile-time exhaustiveness.
|
|
89
|
-
*/
|
|
90
|
-
export const SUPPORTED_CURRENCIES = Object.freeze([
|
|
91
|
-
"usd",
|
|
92
|
-
"eur",
|
|
93
|
-
"gbp",
|
|
94
|
-
"jpy",
|
|
95
|
-
"krw",
|
|
96
|
-
"rub",
|
|
97
|
-
"aud",
|
|
98
|
-
"cad",
|
|
99
|
-
"inr",
|
|
100
|
-
"nzd",
|
|
101
|
-
"try",
|
|
102
|
-
"zar",
|
|
103
|
-
"cny",
|
|
104
|
-
"chf",
|
|
105
|
-
"eth",
|
|
106
|
-
"btc",
|
|
107
|
-
]);
|
|
108
45
|
/**
|
|
109
46
|
* Canonical definition of chains with id and name.
|
|
110
47
|
* We use `as const` to preserve literal types at the type level.
|
|
@@ -153,6 +90,7 @@ export const SUPPORTED_ACTIONS = Object.freeze([
|
|
|
153
90
|
"swap",
|
|
154
91
|
"bridge",
|
|
155
92
|
"predictionMarketsFetch",
|
|
93
|
+
"predictionMarketsGet",
|
|
156
94
|
"predictionMarketsBet",
|
|
157
95
|
"predictionMarketsPositions",
|
|
158
96
|
"predictionMarketsRedeem",
|
|
@@ -173,7 +111,6 @@ export const SUPPORTED_ACTIONS = Object.freeze([
|
|
|
173
111
|
"hyperliquidWithdraw",
|
|
174
112
|
"getPortfolioChart",
|
|
175
113
|
"getTokenPriceChart",
|
|
176
|
-
"getWalletTransactions",
|
|
177
114
|
]);
|
|
178
115
|
/**
|
|
179
116
|
* 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,CAA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;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,36 +0,0 @@
|
|
|
1
|
-
import type { TypeOf, z } from "zod";
|
|
2
|
-
import type { AssetType, OperationType, SupportedCurrency, SupportedTransactionsProvider } from "../../../utils/constants.js";
|
|
3
|
-
/**
|
|
4
|
-
* Input schema for the `getWalletTransactions` read tool — one page of a wallet's
|
|
5
|
-
* transaction history.
|
|
6
|
-
*
|
|
7
|
-
* - `address` is optional; when omitted the action defaults to the connected
|
|
8
|
-
* wallet from the user context.
|
|
9
|
-
* - `provider`: data provider (see {@link SupportedTransactionsProvider}); defaults
|
|
10
|
-
* to `"zerion"` when the model omits it (parity with the chart read tools).
|
|
11
|
-
* - `chains`: optional list of chain identifiers to filter by; omitted means all
|
|
12
|
-
* supported chains.
|
|
13
|
-
* - `operationTypes`: optional {@link OperationType} filter (e.g. `"trade"`,
|
|
14
|
-
* `"send"`, `"receive"`); omitted means all operation types.
|
|
15
|
-
* - `assetTypes`: optional {@link AssetType} filter (`"token"` | `"nft"`).
|
|
16
|
-
* - `from` / `to`: optional time bounds as an ISO 8601 date-time string (a single,
|
|
17
|
-
* unambiguous format for the model); the server parses them.
|
|
18
|
-
* - `pageSize`: optional page size; the server clamps it to the provider maximum.
|
|
19
|
-
* - `cursor`: opaque pagination cursor from a previous result's `nextCursor`.
|
|
20
|
-
* - `currency`: currency code (see {@link SupportedCurrency}); defaults to `"usd"`
|
|
21
|
-
* when the model omits it (a `ZodDefault`, mirroring `provider`).
|
|
22
|
-
*/
|
|
23
|
-
export type GetWalletTransactionsActionInputSchema = z.ZodObject<{
|
|
24
|
-
address: z.ZodOptional<z.ZodString>;
|
|
25
|
-
provider: z.ZodDefault<z.ZodEnum<[SupportedTransactionsProvider, ...SupportedTransactionsProvider[]]>>;
|
|
26
|
-
chains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
operationTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<[OperationType, ...OperationType[]]>>>;
|
|
28
|
-
assetTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<[AssetType, ...AssetType[]]>>>;
|
|
29
|
-
from: z.ZodOptional<z.ZodString>;
|
|
30
|
-
to: z.ZodOptional<z.ZodString>;
|
|
31
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
32
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
33
|
-
currency: z.ZodDefault<z.ZodEnum<[SupportedCurrency, ...SupportedCurrency[]]>>;
|
|
34
|
-
}>;
|
|
35
|
-
export type GetWalletTransactionsActionInput = TypeOf<GetWalletTransactionsActionInputSchema>;
|
|
36
|
-
//# sourceMappingURL=getWalletTransactionsAction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletTransactionsAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/getWalletTransactionsAction.ts"],"names":[],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