@illalabs/interfaces 0.31.0-canary-beta-735f5ee6 → 0.31.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/tools/getPortfolioChartAction.d.ts +3 -2
- package/dist/types/actions/tools/getPortfolioChartAction.d.ts.map +1 -1
- package/dist/types/actions/tools/getTokenPriceChartAction.d.ts +3 -2
- package/dist/types/actions/tools/getTokenPriceChartAction.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,8 @@ import type { ChartPeriod, SupportedChartProvider } from "../../../utils/constan
|
|
|
6
6
|
*
|
|
7
7
|
* - `address` is optional; when omitted the action defaults to the connected
|
|
8
8
|
* wallet from the user context.
|
|
9
|
-
* - `provider`:
|
|
9
|
+
* - `provider`: chart data provider (see {@link SupportedChartProvider}); defaults
|
|
10
|
+
* to `"zerion"` when the model omits it.
|
|
10
11
|
* - `period` is one of the canonical {@link ChartPeriod} buckets and defaults to
|
|
11
12
|
* `"month"` when the model omits it.
|
|
12
13
|
* - `currency` is an optional ISO/crypto currency code (e.g. `"usd"`, `"eur"`,
|
|
@@ -14,7 +15,7 @@ import type { ChartPeriod, SupportedChartProvider } from "../../../utils/constan
|
|
|
14
15
|
*/
|
|
15
16
|
export type GetPortfolioChartActionInputSchema = z.ZodObject<{
|
|
16
17
|
address: z.ZodOptional<z.ZodString>;
|
|
17
|
-
provider: z.ZodEnum<[SupportedChartProvider, ...SupportedChartProvider[]]
|
|
18
|
+
provider: z.ZodDefault<z.ZodEnum<[SupportedChartProvider, ...SupportedChartProvider[]]>>;
|
|
18
19
|
period: z.ZodDefault<z.ZodEnum<[ChartPeriod, ...ChartPeriod[]]>>;
|
|
19
20
|
currency: z.ZodOptional<z.ZodString>;
|
|
20
21
|
}>;
|
|
@@ -1 +1 @@
|
|
|
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,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAEvF
|
|
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,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAEvF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,SAAS,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,sBAAsB,EAAE,GAAG,sBAAsB,EAAE,CAAC,CAAC,CAAC,CAAC;IACzF,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"}
|
|
@@ -7,13 +7,14 @@ import type { ChartPeriod, SupportedChartProvider } from "../../../utils/constan
|
|
|
7
7
|
* - `token`: the asset's ticker symbol (e.g. `"ETH"`, `"USDC"`), resolved to a
|
|
8
8
|
* provider asset id server-side. Required — the sole, provider-agnostic asset
|
|
9
9
|
* identifier (no provider-specific ids leak into the contract).
|
|
10
|
-
* - `provider`:
|
|
10
|
+
* - `provider`: chart data provider (see {@link SupportedChartProvider}); defaults
|
|
11
|
+
* to `"zerion"` when the model omits it.
|
|
11
12
|
* - `period` defaults to `"month"`; `currency` defaults to `"usd"` server-side
|
|
12
13
|
* when omitted.
|
|
13
14
|
*/
|
|
14
15
|
export type GetTokenPriceChartActionInputSchema = z.ZodObject<{
|
|
15
16
|
token: z.ZodString;
|
|
16
|
-
provider: z.ZodEnum<[SupportedChartProvider, ...SupportedChartProvider[]]
|
|
17
|
+
provider: z.ZodDefault<z.ZodEnum<[SupportedChartProvider, ...SupportedChartProvider[]]>>;
|
|
17
18
|
period: z.ZodDefault<z.ZodEnum<[ChartPeriod, ...ChartPeriod[]]>>;
|
|
18
19
|
currency: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}>;
|
|
@@ -1 +1 @@
|
|
|
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,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAEvF
|
|
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,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAEvF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,SAAS,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;IACnB,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,sBAAsB,EAAE,GAAG,sBAAsB,EAAE,CAAC,CAAC,CAAC,CAAC;IACzF,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"}
|