@illalabs/interfaces 0.26.0-canary-beta-2618f29a → 0.26.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/interfaces/hyperliquid/exchange.d.ts +3248 -0
- package/dist/interfaces/hyperliquid/exchange.d.ts.map +1 -0
- package/dist/interfaces/hyperliquid/exchange.js +61 -0
- package/dist/interfaces/hyperliquid/exchange.js.map +1 -0
- package/dist/interfaces/hyperliquid/index.d.ts +2 -0
- package/dist/interfaces/hyperliquid/index.d.ts.map +1 -0
- package/dist/interfaces/hyperliquid/index.js +2 -0
- package/dist/interfaces/hyperliquid/index.js.map +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/schemas/chatContext.d.ts +112 -68
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +140 -84
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/messages.d.ts +3536 -28
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +91 -0
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/telemetryEvents.d.ts +8328 -72
- package/dist/schemas/telemetryEvents.d.ts.map +1 -1
- package/dist/schemas/toolAutorouter.d.ts +106 -66
- package/dist/schemas/toolAutorouter.d.ts.map +1 -1
- package/dist/schemas/toolAutorouter.js +11 -1
- package/dist/schemas/toolAutorouter.js.map +1 -1
- package/dist/types/actions/inputs.d.ts +9 -2
- package/dist/types/actions/inputs.d.ts.map +1 -1
- package/dist/types/actions/outputs.d.ts +15 -0
- package/dist/types/actions/outputs.d.ts.map +1 -1
- package/dist/types/actions/outputs.js.map +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.d.ts +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiPositionsAction.d.ts +1 -30
- package/dist/types/actions/tools/defiPositionsAction.d.ts.map +1 -1
- package/dist/types/actions/tools/hyperliquidDepositAction.d.ts +24 -0
- package/dist/types/actions/tools/hyperliquidDepositAction.d.ts.map +1 -0
- package/dist/types/actions/tools/hyperliquidDepositAction.js +2 -0
- package/dist/types/actions/tools/hyperliquidDepositAction.js.map +1 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.d.ts +35 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.d.ts.map +1 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.js +2 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.js.map +1 -0
- package/dist/types/actions/tools/index.d.ts +21 -0
- package/dist/types/actions/tools/index.d.ts.map +1 -1
- package/dist/types/actions/tools/perpetualsClosePositionAction.d.ts +27 -0
- package/dist/types/actions/tools/perpetualsClosePositionAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsClosePositionAction.js +2 -0
- package/dist/types/actions/tools/perpetualsClosePositionAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.d.ts +20 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.js +2 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.d.ts +20 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.js +2 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.d.ts +36 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.js +2 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.d.ts +30 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.js +2 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.js.map +1 -0
- package/dist/types/toolAutorouter.d.ts +2 -1
- package/dist/types/toolAutorouter.d.ts.map +1 -1
- package/dist/types/toolAutorouter.js +1 -1
- package/dist/types/toolAutorouter.js.map +1 -1
- package/dist/utils/constants.d.ts +4 -2
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +9 -1
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LENDING_PROVIDERS: readonly ["aave"
|
|
1
|
+
export declare const LENDING_PROVIDERS: readonly ["aave"];
|
|
2
2
|
export declare const SUPPORTED_SWAP_PROVIDERS: readonly ["lifi", "aerodrome"];
|
|
3
3
|
export declare const SUPPORTED_BRIDGE_PROVIDERS: readonly ["lifi"];
|
|
4
4
|
/**
|
|
@@ -11,6 +11,7 @@ export declare const SUPPORTED_BRIDGE_PROVIDERS: readonly ["lifi"];
|
|
|
11
11
|
export declare const SWAP_BRIDGE_PROVIDERS: readonly ["lifi", "aerodrome"];
|
|
12
12
|
export declare const EXCHANGE_RATE_PROVIDERS: readonly ["coinMarketCap", "duneSim", "coingecko"];
|
|
13
13
|
export declare const PREDICTION_MARKET_PROVIDERS: readonly ["polymarket"];
|
|
14
|
+
export declare const PERPETUAL_PROVIDERS: readonly ["hyperliquid"];
|
|
14
15
|
/**
|
|
15
16
|
* Canonical definition of chains with id and name.
|
|
16
17
|
* We use `as const` to preserve literal types at the type level.
|
|
@@ -56,7 +57,7 @@ export declare const SUPPORTED_CHAIN_NAMES: readonly ["Ethereum", "Polygon", "Op
|
|
|
56
57
|
/**
|
|
57
58
|
* Const list of all supported actions with their schemas
|
|
58
59
|
*/
|
|
59
|
-
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"];
|
|
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"];
|
|
60
61
|
/**
|
|
61
62
|
* Identifier for a public naming service. Adding a new one is a single-line
|
|
62
63
|
* change here plus a corresponding service config + resolver wiring on the
|
|
@@ -86,6 +87,7 @@ export type SupportedSwapBridgeProvider = (typeof SWAP_BRIDGE_PROVIDERS)[number]
|
|
|
86
87
|
export type SupportedWalletBalanceProvider = (typeof SUPPORTED_WALLET_BALANCE_PROVIDERS)[number];
|
|
87
88
|
export type SupportedExchangeRateProvider = (typeof EXCHANGE_RATE_PROVIDERS)[number];
|
|
88
89
|
export type SupportedPredictionMarketProvider = (typeof PREDICTION_MARKET_PROVIDERS)[number];
|
|
90
|
+
export type SupportedPerpetualProvider = (typeof PERPETUAL_PROVIDERS)[number];
|
|
89
91
|
export declare const CHECKABLE_ACTIONS: readonly ["swap", "bridge", "defiSupply", "defiWithdraw"];
|
|
90
92
|
export type CheckableAction = (typeof CHECKABLE_ACTIONS)[number];
|
|
91
93
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,mBAAmC,CAAC;AAElE,eAAO,MAAM,wBAAwB,gCAAgD,CAAC;AAEtF,eAAO,MAAM,0BAA0B,mBAAmC,CAAC;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,gCAAgD,CAAC;AAEnF,eAAO,MAAM,uBAAuB,oDAIzB,CAAC;AAEZ,eAAO,MAAM,2BAA2B,yBAAyC,CAAC;AAElF,eAAO,MAAM,mBAAmB,0BAA0C,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAQsB,CAAC;AAE7D,0BAA0B;AAC1B,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAE1D,4CAA4C;AAC5C,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAA+C,CAAC;AAElG,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAAiD,CAAC;AAE/F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,sFAQY,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,iBAAiB,spBA8BnB,CAAC;AAEZ;;;;;GAKG;AACH,eAAO,MAAM,cAAc,kBAAkC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MA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AAC,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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const LENDING_PROVIDERS = Object.freeze(["aave"
|
|
1
|
+
export const LENDING_PROVIDERS = Object.freeze(["aave"]);
|
|
2
2
|
export const SUPPORTED_SWAP_PROVIDERS = Object.freeze(["lifi", "aerodrome"]);
|
|
3
3
|
export const SUPPORTED_BRIDGE_PROVIDERS = Object.freeze(["lifi"]);
|
|
4
4
|
/**
|
|
@@ -15,6 +15,7 @@ export const EXCHANGE_RATE_PROVIDERS = Object.freeze([
|
|
|
15
15
|
"coingecko",
|
|
16
16
|
]);
|
|
17
17
|
export const PREDICTION_MARKET_PROVIDERS = Object.freeze(["polymarket"]);
|
|
18
|
+
export const PERPETUAL_PROVIDERS = Object.freeze(["hyperliquid"]);
|
|
18
19
|
/**
|
|
19
20
|
* Canonical definition of chains with id and name.
|
|
20
21
|
* We use `as const` to preserve literal types at the type level.
|
|
@@ -74,6 +75,13 @@ export const SUPPORTED_ACTIONS = Object.freeze([
|
|
|
74
75
|
"polymarketPostGetOrders",
|
|
75
76
|
"polymarketPostCancelOrder",
|
|
76
77
|
"resolveName",
|
|
78
|
+
"perpetualsGetAccountSummary",
|
|
79
|
+
"perpetualsGetPositions",
|
|
80
|
+
"perpetualsPlaceOrder",
|
|
81
|
+
"perpetualsClosePosition",
|
|
82
|
+
"perpetualsUpdateLeverage",
|
|
83
|
+
"hyperliquidDeposit",
|
|
84
|
+
"hyperliquidWithdraw",
|
|
77
85
|
]);
|
|
78
86
|
/**
|
|
79
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,
|
|
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,CAAU,CAAC,CAAC;AAElE,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,SAAS;IACT,WAAW;CACL,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAU,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAU,CAAC,CAAC;AAE3E;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