@illalabs/interfaces 0.3.0-canary.b7f69a88 → 0.3.0-canary.e77570c1
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/errors/endpoints/chat/ChatBaseError.d.ts +16 -5
- package/dist/errors/endpoints/chat/ChatBaseError.d.ts.map +1 -1
- package/dist/external.d.ts +1 -0
- package/dist/external.d.ts.map +1 -1
- package/dist/external.js +1 -0
- package/dist/external.js.map +1 -1
- package/dist/interfaces/chat/response.d.ts +5 -3
- package/dist/interfaces/chat/response.d.ts.map +1 -1
- package/dist/schemas/chatContext.d.ts +79 -648
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +256 -2172
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.js +5 -3
- package/dist/schemas/chatRequestBody.js.map +1 -1
- package/dist/schemas/executionCheckerQueryParams.d.ts +2 -2
- package/dist/schemas/illaTools.d.ts +266 -0
- package/dist/schemas/illaTools.d.ts.map +1 -0
- package/dist/schemas/illaTools.js +58 -0
- package/dist/schemas/illaTools.js.map +1 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/messages.d.ts +95 -1037
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +10 -121
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/modelContext.d.ts +2 -14
- package/dist/schemas/modelContext.d.ts.map +1 -1
- package/dist/schemas/modelContext.js +1 -17
- package/dist/schemas/modelContext.js.map +1 -1
- package/dist/schemas/telemetryEvents.d.ts +1645 -0
- package/dist/schemas/telemetryEvents.d.ts.map +1 -0
- package/dist/schemas/telemetryEvents.js +236 -0
- package/dist/schemas/telemetryEvents.js.map +1 -0
- package/dist/tools/IllaToolError.d.ts +117 -0
- package/dist/tools/IllaToolError.d.ts.map +1 -0
- package/dist/tools/IllaToolError.js +147 -0
- package/dist/tools/IllaToolError.js.map +1 -0
- package/dist/tools/IllaToolOutcome.d.ts +131 -0
- package/dist/tools/IllaToolOutcome.d.ts.map +1 -0
- package/dist/tools/IllaToolOutcome.js +191 -0
- package/dist/tools/IllaToolOutcome.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types/actions/inputs.d.ts +3 -2
- package/dist/types/actions/inputs.d.ts.map +1 -1
- package/dist/types/actions/tools/bridgeAction.d.ts +1 -1
- package/dist/types/actions/tools/bridgeAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.d.ts +1 -2
- package/dist/types/actions/tools/defiFetchListingsAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.js +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.js.map +1 -1
- package/dist/types/actions/tools/defiPositionsAction.d.ts +1 -2
- package/dist/types/actions/tools/defiPositionsAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiPositionsAction.js +1 -1
- package/dist/types/actions/tools/defiPositionsAction.js.map +1 -1
- package/dist/types/actions/tools/defiSupplyAction.d.ts +1 -2
- package/dist/types/actions/tools/defiSupplyAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiSupplyAction.js +1 -1
- package/dist/types/actions/tools/defiSupplyAction.js.map +1 -1
- package/dist/types/actions/tools/defiWithdrawAction.d.ts +1 -2
- package/dist/types/actions/tools/defiWithdrawAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiWithdrawAction.js +1 -1
- package/dist/types/actions/tools/defiWithdrawAction.js.map +1 -1
- package/dist/types/actions/tools/exchangeRateAction.d.ts +1 -2
- package/dist/types/actions/tools/exchangeRateAction.d.ts.map +1 -1
- package/dist/types/actions/tools/exchangeRateAction.js +1 -1
- package/dist/types/actions/tools/exchangeRateAction.js.map +1 -1
- package/dist/types/actions/tools/getWalletBalanceAction.d.ts +2 -2
- package/dist/types/actions/tools/getWalletBalanceAction.d.ts.map +1 -1
- package/dist/types/actions/tools/getWalletBalanceAction.js +1 -1
- package/dist/types/actions/tools/getWalletBalanceAction.js.map +1 -1
- package/dist/types/actions/tools/index.d.ts +3 -0
- package/dist/types/actions/tools/index.d.ts.map +1 -1
- package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts +20 -0
- package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts.map +1 -0
- package/dist/types/actions/tools/predictionMarketsFetchAction.js +2 -0
- package/dist/types/actions/tools/predictionMarketsFetchAction.js.map +1 -0
- package/dist/types/actions/tools/tokenTransferAction.d.ts +1 -2
- package/dist/types/actions/tools/tokenTransferAction.d.ts.map +1 -1
- package/dist/types/actions/tools/tokenTransferAction.js +1 -1
- package/dist/types/actions/tools/tokenTransferAction.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/messages.d.ts +3 -6
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/messages.js +1 -1
- package/dist/types/messages.js.map +1 -1
- package/dist/types/streaming.d.ts +81 -0
- package/dist/types/streaming.d.ts.map +1 -0
- package/dist/types/streaming.js +2 -0
- package/dist/types/streaming.js.map +1 -0
- package/dist/types/telemetry.d.ts +139 -0
- package/dist/types/telemetry.d.ts.map +1 -0
- package/dist/types/telemetry.js +7 -0
- package/dist/types/telemetry.js.map +1 -0
- package/dist/utils/constants.d.ts +3 -1
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +2 -0
- package/dist/utils/constants.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { IllaToolOutcomeSchema } from "../internal.js";
|
|
2
|
+
import { IllaToolError } from "./IllaToolError.js";
|
|
3
|
+
/**
|
|
4
|
+
* Represents the outcome of a tool execution, which can be either a success or an error.
|
|
5
|
+
* This implements the Result/Either pattern for explicit error handling.
|
|
6
|
+
*
|
|
7
|
+
* @template T - The type of the successful result
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // Create a successful outcome
|
|
12
|
+
* const success = IllaToolOutcome.success('call-123', 'tokenTransfer', { txHash: '0x...' });
|
|
13
|
+
*
|
|
14
|
+
* // Create an error outcome
|
|
15
|
+
* const error = IllaToolOutcome.error('call-123', 'tokenTransfer',
|
|
16
|
+
* IllaToolError.execution('call-123', 'tokenTransfer', 'Transaction failed')
|
|
17
|
+
* );
|
|
18
|
+
*
|
|
19
|
+
* // Handle the outcome
|
|
20
|
+
* if (outcome.isSuccess()) {
|
|
21
|
+
* console.log('Result:', outcome.getResult());
|
|
22
|
+
* } else {
|
|
23
|
+
* console.error('Error:', outcome.getError()?.getMessage());
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export class IllaToolOutcome {
|
|
28
|
+
id;
|
|
29
|
+
name;
|
|
30
|
+
_result;
|
|
31
|
+
_error;
|
|
32
|
+
_isError;
|
|
33
|
+
constructor(id, name, _result, _error, _isError = false) {
|
|
34
|
+
this.id = id;
|
|
35
|
+
this.name = name;
|
|
36
|
+
this._result = _result;
|
|
37
|
+
this._error = _error;
|
|
38
|
+
this._isError = _isError;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Creates a successful outcome
|
|
42
|
+
* @param id - The tool call ID
|
|
43
|
+
* @param name - The tool/action name
|
|
44
|
+
* @param result - The successful result value
|
|
45
|
+
* @returns A new IllaToolOutcome representing success
|
|
46
|
+
*/
|
|
47
|
+
static success(id, name, result) {
|
|
48
|
+
return new IllaToolOutcome(id, name, result, undefined, false);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Creates an error outcome
|
|
52
|
+
* @param id - The tool call ID
|
|
53
|
+
* @param name - The tool/action name
|
|
54
|
+
* @param error - The error that occurred
|
|
55
|
+
* @returns A new IllaToolOutcome representing failure
|
|
56
|
+
*/
|
|
57
|
+
static error(id, name, error) {
|
|
58
|
+
return new IllaToolOutcome(id, name, undefined, error, true);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Parses and validates unknown input to create an IllaToolOutcome instance.
|
|
62
|
+
* Expects an object with id, name, and either result or error properties.
|
|
63
|
+
*
|
|
64
|
+
* @template T - The expected type of the result (defaults to unknown)
|
|
65
|
+
* @param input - Unknown input to parse
|
|
66
|
+
* @returns A new IllaToolOutcome instance
|
|
67
|
+
* @throws ZodError if the input doesn't match the expected schema
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* // Parse a success outcome
|
|
72
|
+
* const success = IllaToolOutcome.parse<{ txHash: string }>({
|
|
73
|
+
* id: 'call-123',
|
|
74
|
+
* name: 'tokenTransfer',
|
|
75
|
+
* result: { txHash: '0x...' }
|
|
76
|
+
* });
|
|
77
|
+
*
|
|
78
|
+
* // Parse an error outcome
|
|
79
|
+
* const error = IllaToolOutcome.parse({
|
|
80
|
+
* id: 'call-456',
|
|
81
|
+
* name: 'swap',
|
|
82
|
+
* error: { type: 'execution', message: 'Failed' }
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
static parse(input) {
|
|
87
|
+
const parsed = IllaToolOutcomeSchema.parse(input);
|
|
88
|
+
if (parsed.error !== undefined) {
|
|
89
|
+
const toolError = IllaToolError.parseData(parsed.id, parsed.name, parsed.error);
|
|
90
|
+
return IllaToolOutcome.error(parsed.id, parsed.name, toolError);
|
|
91
|
+
}
|
|
92
|
+
return IllaToolOutcome.success(parsed.id, parsed.name, parsed.result);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if this outcome represents a successful execution
|
|
96
|
+
*/
|
|
97
|
+
isSuccess() {
|
|
98
|
+
return !this._isError;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Check if this outcome represents an error
|
|
102
|
+
*/
|
|
103
|
+
isError() {
|
|
104
|
+
return this._isError;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get the successful result value
|
|
108
|
+
* @returns The result value or undefined if this is an error outcome
|
|
109
|
+
*/
|
|
110
|
+
getResult() {
|
|
111
|
+
return this._result;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get the error
|
|
115
|
+
* @returns The error or undefined if this is a success outcome
|
|
116
|
+
*/
|
|
117
|
+
getError() {
|
|
118
|
+
return this._error;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get the result or throw if this is an error
|
|
122
|
+
* @returns The result value
|
|
123
|
+
* @throws Error if this is an error outcome
|
|
124
|
+
*/
|
|
125
|
+
getResultOrThrow() {
|
|
126
|
+
if (this._error) {
|
|
127
|
+
throw new Error(`Tool ${this.name} (${this.id}) failed: ${this._error.getMessage()}`);
|
|
128
|
+
}
|
|
129
|
+
if (this._result === undefined) {
|
|
130
|
+
throw new Error(`Tool ${this.name} (${this.id}) has no result`);
|
|
131
|
+
}
|
|
132
|
+
return this._result;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Map the result value to a new type
|
|
136
|
+
* @param fn - Function to transform the result
|
|
137
|
+
* @returns A new IllaToolOutcome with the transformed result, or the same error
|
|
138
|
+
*/
|
|
139
|
+
map(fn) {
|
|
140
|
+
if (this.isError()) {
|
|
141
|
+
return IllaToolOutcome.error(this.id, this.name, this._error);
|
|
142
|
+
}
|
|
143
|
+
return IllaToolOutcome.success(this.id, this.name, fn(this._result));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Chain another operation that returns an IllaToolOutcome
|
|
147
|
+
* @param fn - Function that takes the result and returns a new IllaToolOutcome
|
|
148
|
+
* @returns The result of fn if successful, or the original error
|
|
149
|
+
*/
|
|
150
|
+
flatMap(fn) {
|
|
151
|
+
if (this.isError()) {
|
|
152
|
+
return IllaToolOutcome.error(this.id, this.name, this._error);
|
|
153
|
+
}
|
|
154
|
+
return fn(this._result);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Execute a function if this is a success
|
|
158
|
+
* @param fn - Function to execute with the result
|
|
159
|
+
* @returns This outcome (for chaining)
|
|
160
|
+
*/
|
|
161
|
+
onSuccess(fn) {
|
|
162
|
+
if (this.isSuccess() && this._result !== undefined) {
|
|
163
|
+
fn(this._result);
|
|
164
|
+
}
|
|
165
|
+
return this;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Execute a function if this is an error
|
|
169
|
+
* @param fn - Function to execute with the error
|
|
170
|
+
* @returns This outcome (for chaining)
|
|
171
|
+
*/
|
|
172
|
+
onError(fn) {
|
|
173
|
+
if (this.isError() && this._error !== undefined) {
|
|
174
|
+
fn(this._error);
|
|
175
|
+
}
|
|
176
|
+
return this;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Convert to a plain JSON object for serialization
|
|
180
|
+
* @returns An object with either result or error
|
|
181
|
+
*/
|
|
182
|
+
toJSON() {
|
|
183
|
+
return {
|
|
184
|
+
id: this.id,
|
|
185
|
+
name: this.name,
|
|
186
|
+
result: this._result,
|
|
187
|
+
error: this._error?.data,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=IllaToolOutcome.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IllaToolOutcome.js","sourceRoot":"","sources":["../../src/tools/IllaToolOutcome.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAO,eAAe;IAEJ;IACA;IACC;IACA;IACA;IALrB,YACoB,EAAU,EACV,IAA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AAO,EAAE,CAAC,IAAI,CAAC,OAAQ,CAAC,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,EAAuB;QACpC,IAAI,IAAI,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjD,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,OAAO,CAAC,EAAkC;QAC7C,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC9C,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI;SAC3B,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetWalletBalanceActionInput, SwapActionInput, TokenTransferActionInput } from "./tools/index.js";
|
|
1
|
+
import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetWalletBalanceActionInput, PredictionMarketsFetchActionInput, SwapActionInput, TokenTransferActionInput } from "./tools/index.js";
|
|
2
2
|
export type BaseActionInput<ActionName extends string, InputProperties> = {
|
|
3
3
|
type: ActionName;
|
|
4
4
|
input: InputProperties;
|
|
@@ -13,5 +13,6 @@ export type DefiFetchListingsInput = BaseActionInput<"DefiFetchListings", DefiFe
|
|
|
13
13
|
export type DefiSupplyInput = BaseActionInput<"DefiSupply", DefiSupplyActionInput>;
|
|
14
14
|
export type DefiWithdrawInput = BaseActionInput<"DefiWithdraw", DefiWithdrawActionInput>;
|
|
15
15
|
export type DefiPositionsInput = BaseActionInput<"DefiPositions", DefiPositionsActionInput>;
|
|
16
|
-
export type
|
|
16
|
+
export type PredictionMarketsFetchInput = BaseActionInput<"PredictionMarketsFetch", PredictionMarketsFetchActionInput>;
|
|
17
|
+
export type ActionInput = TransferTokensInput | SwapInput | BridgeInput | ExchangeRateInput | GetWalletBalanceInput | DefiFetchListingsInput | DefiSupplyInput | DefiWithdrawInput | DefiPositionsInput | PredictionMarketsFetchInput;
|
|
17
18
|
//# 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,2BAA2B,EAC3B,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;CA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: z.ZodEnum<[SupportedChain, ...SupportedChain[]]>;
|
|
9
9
|
toToken: z.ZodOptional<z.ZodString>;
|
|
10
10
|
toAddress: z.ZodOptional<z.ZodString>;
|
|
11
11
|
toAmount: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/bridgeAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE/F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,SAAS,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,CAAC,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"bridgeAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/bridgeAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE/F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,SAAS,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,CAAC,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACpC,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,2BAA2B,EAAE,GAAG,2BAA2B,EAAE,CAAC,CAAC,CAAC;IACrF,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TypeOf } from "zod";
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import type { TypeOf, z } from "zod";
|
|
3
2
|
import type { SupportedChain, SupportedLendingProvider } from "../../../internal.js";
|
|
4
3
|
export type DefiFetchListingsActionInputSchema = z.ZodObject<{
|
|
5
4
|
chain: z.ZodEnum<[SupportedChain, ...SupportedChain[]]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiFetchListingsAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiFetchListingsAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"defiFetchListingsAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiFetchListingsAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,SAAS,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAAC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=defiFetchListingsAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiFetchListingsAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiFetchListingsAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defiFetchListingsAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiFetchListingsAction.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TypeOf } from "zod";
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import type { TypeOf, z } from "zod";
|
|
3
2
|
import type { SupportedChain, SupportedLendingProvider } from "../../../internal.js";
|
|
4
3
|
export type DefiPositionsActionInputSchema = z.ZodObject<{
|
|
5
4
|
userAddress: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiPositionsAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiPositionsAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"defiPositionsAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiPositionsAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,SAAS,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAAC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAE9E,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE;QACH,OAAO,EAAE;YACL,OAAO,EAAE,MAAM,CAAC;YAChB,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;YACZ,QAAQ,EAAE,MAAM,CAAC;YACjB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;SAC7B,EAAE,CAAC;KACP,CAAC;CACL,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=defiPositionsAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiPositionsAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiPositionsAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defiPositionsAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiPositionsAction.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiSupplyAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiSupplyAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"defiSupplyAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiSupplyAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,SAAS,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;IACnB,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAAC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=defiSupplyAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiSupplyAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiSupplyAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defiSupplyAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiSupplyAction.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiWithdrawAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiWithdrawAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"defiWithdrawAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiWithdrawAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,CAAC;IACpD,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;IACnB,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAAC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=defiWithdrawAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiWithdrawAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiWithdrawAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defiWithdrawAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiWithdrawAction.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TypeOf } from "zod";
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import type { TypeOf, z } from "zod";
|
|
3
2
|
import type { SupportedExchangeRateProvider } from "../../../internal.js";
|
|
4
3
|
export type ExchangeRateActionInputSchema = z.ZodObject<{
|
|
5
4
|
provider: z.ZodEnum<[SupportedExchangeRateProvider, ...SupportedExchangeRateProvider[]]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchangeRateAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/exchangeRateAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"exchangeRateAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/exchangeRateAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE1E,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,CAAC;IACpD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,6BAA6B,EAAE,GAAG,6BAA6B,EAAE,CAAC,CAAC,CAAC;IACzF,SAAS,EAAE,CAAC,CAAC,QAAQ,CACjB,CAAC,CAAC,SAAS,CAAC;QACR,YAAY,EAAE,CAAC,CAAC,SAAS,CAAC;QAC1B,aAAa,EAAE,CAAC,CAAC,SAAS,CAAC;QAC3B,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACvC,WAAW,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;KAC3C,CAAC,EACF,MAAM,CACT,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=exchangeRateAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchangeRateAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/exchangeRateAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exchangeRateAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/exchangeRateAction.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TypeOf } from "zod";
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import type { TypeOf, z } from "zod";
|
|
3
2
|
import type { SupportedWalletBalanceProvider } from "../../../internal.js";
|
|
4
3
|
export type GetWalletBalanceActionInputSchema = z.ZodObject<{
|
|
5
4
|
address: z.ZodString;
|
|
@@ -8,6 +7,7 @@ export type GetWalletBalanceActionInputSchema = z.ZodObject<{
|
|
|
8
7
|
provider: z.ZodEnum<[SupportedWalletBalanceProvider, ...SupportedWalletBalanceProvider[]]>;
|
|
9
8
|
missingParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
9
|
humanFriendlyMessage: z.ZodOptional<z.ZodString>;
|
|
10
|
+
forceRefresh: z.ZodDefault<z.ZodBoolean>;
|
|
11
11
|
}>;
|
|
12
12
|
export type GetWalletBalanceActionInput = TypeOf<GetWalletBalanceActionInputSchema>;
|
|
13
13
|
//# sourceMappingURL=getWalletBalanceAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletBalanceAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/getWalletBalanceAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"getWalletBalanceAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/getWalletBalanceAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAE3E,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,8BAA8B,EAAE,GAAG,8BAA8B,EAAE,CAAC,CAAC,CAAC;IAC3F,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACjD,YAAY,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;CAC5C,CAAC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,iCAAiC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=getWalletBalanceAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletBalanceAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/getWalletBalanceAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getWalletBalanceAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/getWalletBalanceAction.ts"],"names":[],"mappings":""}
|
|
@@ -6,6 +6,7 @@ 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 { GetWalletBalanceActionInputSchema } from "./getWalletBalanceAction.js";
|
|
9
|
+
import type { PredictionMarketsFetchActionInputSchema } from "./predictionMarketsFetchAction.js";
|
|
9
10
|
import type { SwapActionInputSchema } from "./swapAction.js";
|
|
10
11
|
import type { TokenTransferActionInputSchema } from "./tokenTransferAction.js";
|
|
11
12
|
/**
|
|
@@ -22,6 +23,7 @@ export type ActionSchemaMapping = {
|
|
|
22
23
|
readonly defiWithdraw: DefiWithdrawActionInputSchema;
|
|
23
24
|
readonly swap: SwapActionInputSchema;
|
|
24
25
|
readonly bridge: BridgeActionInputSchema;
|
|
26
|
+
readonly predictionMarketsFetch: PredictionMarketsFetchActionInputSchema;
|
|
25
27
|
};
|
|
26
28
|
/**
|
|
27
29
|
* Utility type to get the schema type for a specific action
|
|
@@ -34,6 +36,7 @@ export type * from "./defiSupplyAction.js";
|
|
|
34
36
|
export type * from "./defiWithdrawAction.js";
|
|
35
37
|
export type * from "./exchangeRateAction.js";
|
|
36
38
|
export type * from "./getWalletBalanceAction.js";
|
|
39
|
+
export type * from "./predictionMarketsFetchAction.js";
|
|
37
40
|
export type * from "./swapAction.js";
|
|
38
41
|
export type * from "./bridgeAction.js";
|
|
39
42
|
export type * from "./tokenTransferAction.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,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AmB,mBAAmB,CAAC;AACvC,mBAAmB,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TypeOf } from "zod";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import type { SupportedPredictionMarketProvider } from "../../../internal.js";
|
|
4
|
+
export type PredictionMarketsFetchActionInputSchema = z.ZodObject<{
|
|
5
|
+
chain: z.ZodEnum<[string, ...string[]]>;
|
|
6
|
+
query: z.ZodOptional<z.ZodString>;
|
|
7
|
+
category: z.ZodOptional<z.ZodString>;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<["active", "closed", "resolved"]>>;
|
|
9
|
+
sortBy: z.ZodOptional<z.ZodEnum<["volume", "liquidity", "endDate", "startDate"]>>;
|
|
10
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
provider: z.ZodEnum<[
|
|
13
|
+
SupportedPredictionMarketProvider,
|
|
14
|
+
...SupportedPredictionMarketProvider[]
|
|
15
|
+
]>;
|
|
16
|
+
missingParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
humanFriendlyMessage: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}>;
|
|
19
|
+
export type PredictionMarketsFetchActionInput = TypeOf<PredictionMarketsFetchActionInputSchema>;
|
|
20
|
+
//# sourceMappingURL=predictionMarketsFetchAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictionMarketsFetchAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/predictionMarketsFetchAction.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,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,S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@@
|
|
|
1
|
-
{"version":3,"file":"tokenTransferAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/tokenTransferAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"tokenTransferAction.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/tools/tokenTransferAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,SAAS,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;IACnB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IACxC,iBAAiB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=tokenTransferAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenTransferAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/tokenTransferAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokenTransferAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/tokenTransferAction.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { TypeOf } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
4
|
-
export type ToolIncompletePartType = TypeOf<typeof ToolIncompletePartSchema>;
|
|
5
|
-
export type ToolErrorPartType = TypeOf<typeof ToolErrorPartSchema>;
|
|
6
|
-
export type ToolResultType = TypeOf<typeof ToolResultSchema>;
|
|
2
|
+
import { HistorySchema, PendingToolCallSchema, PromptSchema, ToolOutcomesSchema } from "../internal.js";
|
|
3
|
+
export type ToolOutcomesType = TypeOf<typeof ToolOutcomesSchema>;
|
|
7
4
|
export type PendingToolCallType = TypeOf<typeof PendingToolCallSchema>;
|
|
8
5
|
export type MessageHistoryType = TypeOf<typeof HistorySchema>;
|
|
9
|
-
export type
|
|
6
|
+
export type PromptType = TypeOf<typeof PromptSchema>;
|
|
10
7
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/types/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAElC,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/types/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAElC,OAAO,EACH,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EACrB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/types/messages.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HistorySchema, PendingToolCallSchema, PromptSchema, ToolOutcomesSchema, } from "../internal.js";
|
|
2
2
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/types/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/types/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,GACrB,MAAM,gBAAgB,CAAC"}
|