@illalabs/interfaces 0.2.1 → 0.3.0-canary-beta-08a68673

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.
Files changed (135) hide show
  1. package/dist/errors/endpoints/chat/ChatBaseError.d.ts +16 -5
  2. package/dist/errors/endpoints/chat/ChatBaseError.d.ts.map +1 -1
  3. package/dist/external.d.ts +1 -0
  4. package/dist/external.d.ts.map +1 -1
  5. package/dist/external.js +1 -0
  6. package/dist/external.js.map +1 -1
  7. package/dist/interfaces/chat/response.d.ts +5 -3
  8. package/dist/interfaces/chat/response.d.ts.map +1 -1
  9. package/dist/schemas/chatContext.d.ts +95 -592
  10. package/dist/schemas/chatContext.d.ts.map +1 -1
  11. package/dist/schemas/chatRequestBody.d.ts +292 -1962
  12. package/dist/schemas/chatRequestBody.d.ts.map +1 -1
  13. package/dist/schemas/chatRequestBody.js +6 -4
  14. package/dist/schemas/chatRequestBody.js.map +1 -1
  15. package/dist/schemas/executionCheckerQueryParams.d.ts +5 -5
  16. package/dist/schemas/illaTools.d.ts +266 -0
  17. package/dist/schemas/illaTools.d.ts.map +1 -0
  18. package/dist/schemas/illaTools.js +58 -0
  19. package/dist/schemas/illaTools.js.map +1 -0
  20. package/dist/schemas/index.d.ts +3 -0
  21. package/dist/schemas/index.d.ts.map +1 -1
  22. package/dist/schemas/index.js +3 -0
  23. package/dist/schemas/index.js.map +1 -1
  24. package/dist/schemas/messages.d.ts +566 -928
  25. package/dist/schemas/messages.d.ts.map +1 -1
  26. package/dist/schemas/messages.js +74 -113
  27. package/dist/schemas/messages.js.map +1 -1
  28. package/dist/schemas/modelContext.d.ts +23 -0
  29. package/dist/schemas/modelContext.d.ts.map +1 -0
  30. package/dist/schemas/modelContext.js +13 -0
  31. package/dist/schemas/modelContext.js.map +1 -0
  32. package/dist/schemas/telemetryEvents.d.ts +2417 -0
  33. package/dist/schemas/telemetryEvents.d.ts.map +1 -0
  34. package/dist/schemas/telemetryEvents.js +236 -0
  35. package/dist/schemas/telemetryEvents.js.map +1 -0
  36. package/dist/schemas/toolAutorouter.d.ts +9 -9
  37. package/dist/schemas/toolAutorouter.d.ts.map +1 -1
  38. package/dist/schemas/userContext.d.ts +3 -0
  39. package/dist/schemas/userContext.d.ts.map +1 -1
  40. package/dist/schemas/userContext.js +4 -0
  41. package/dist/schemas/userContext.js.map +1 -1
  42. package/dist/tools/IllaToolError.d.ts +117 -0
  43. package/dist/tools/IllaToolError.d.ts.map +1 -0
  44. package/dist/tools/IllaToolError.js +147 -0
  45. package/dist/tools/IllaToolError.js.map +1 -0
  46. package/dist/tools/IllaToolOutcome.d.ts +131 -0
  47. package/dist/tools/IllaToolOutcome.d.ts.map +1 -0
  48. package/dist/tools/IllaToolOutcome.js +191 -0
  49. package/dist/tools/IllaToolOutcome.js.map +1 -0
  50. package/dist/tools/index.d.ts +3 -0
  51. package/dist/tools/index.d.ts.map +1 -0
  52. package/dist/tools/index.js +3 -0
  53. package/dist/tools/index.js.map +1 -0
  54. package/dist/types/actions/inputs.d.ts +8 -3
  55. package/dist/types/actions/inputs.d.ts.map +1 -1
  56. package/dist/types/actions/outputs.d.ts +19 -1
  57. package/dist/types/actions/outputs.d.ts.map +1 -1
  58. package/dist/types/actions/tools/{swapBridgeAction.d.ts → bridgeAction.d.ts} +4 -4
  59. package/dist/types/actions/tools/bridgeAction.d.ts.map +1 -0
  60. package/dist/types/actions/tools/bridgeAction.js +2 -0
  61. package/dist/types/actions/tools/bridgeAction.js.map +1 -0
  62. package/dist/types/actions/tools/defiFetchListingsAction.d.ts +1 -2
  63. package/dist/types/actions/tools/defiFetchListingsAction.d.ts.map +1 -1
  64. package/dist/types/actions/tools/defiFetchListingsAction.js +1 -1
  65. package/dist/types/actions/tools/defiFetchListingsAction.js.map +1 -1
  66. package/dist/types/actions/tools/defiPositionsAction.d.ts +1 -2
  67. package/dist/types/actions/tools/defiPositionsAction.d.ts.map +1 -1
  68. package/dist/types/actions/tools/defiPositionsAction.js +1 -1
  69. package/dist/types/actions/tools/defiPositionsAction.js.map +1 -1
  70. package/dist/types/actions/tools/defiSupplyAction.d.ts +1 -2
  71. package/dist/types/actions/tools/defiSupplyAction.d.ts.map +1 -1
  72. package/dist/types/actions/tools/defiSupplyAction.js +1 -1
  73. package/dist/types/actions/tools/defiSupplyAction.js.map +1 -1
  74. package/dist/types/actions/tools/defiWithdrawAction.d.ts +1 -2
  75. package/dist/types/actions/tools/defiWithdrawAction.d.ts.map +1 -1
  76. package/dist/types/actions/tools/defiWithdrawAction.js +1 -1
  77. package/dist/types/actions/tools/defiWithdrawAction.js.map +1 -1
  78. package/dist/types/actions/tools/exchangeRateAction.d.ts +1 -2
  79. package/dist/types/actions/tools/exchangeRateAction.d.ts.map +1 -1
  80. package/dist/types/actions/tools/exchangeRateAction.js +1 -1
  81. package/dist/types/actions/tools/exchangeRateAction.js.map +1 -1
  82. package/dist/types/actions/tools/getWalletBalanceAction.d.ts +4 -3
  83. package/dist/types/actions/tools/getWalletBalanceAction.d.ts.map +1 -1
  84. package/dist/types/actions/tools/getWalletBalanceAction.js +1 -1
  85. package/dist/types/actions/tools/getWalletBalanceAction.js.map +1 -1
  86. package/dist/types/actions/tools/index.d.ts +18 -3
  87. package/dist/types/actions/tools/index.d.ts.map +1 -1
  88. package/dist/types/actions/tools/polymarketPostOrderAction.d.ts +83 -0
  89. package/dist/types/actions/tools/polymarketPostOrderAction.d.ts.map +1 -0
  90. package/dist/types/actions/tools/polymarketPostOrderAction.js +2 -0
  91. package/dist/types/actions/tools/polymarketPostOrderAction.js.map +1 -0
  92. package/dist/types/actions/tools/predictionMarketsBetAction.d.ts +19 -0
  93. package/dist/types/actions/tools/predictionMarketsBetAction.d.ts.map +1 -0
  94. package/dist/types/actions/tools/predictionMarketsBetAction.js +2 -0
  95. package/dist/types/actions/tools/predictionMarketsBetAction.js.map +1 -0
  96. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts +21 -0
  97. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts.map +1 -0
  98. package/dist/types/actions/tools/predictionMarketsFetchAction.js +2 -0
  99. package/dist/types/actions/tools/predictionMarketsFetchAction.js.map +1 -0
  100. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts +25 -0
  101. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts.map +1 -0
  102. package/dist/types/actions/tools/predictionMarketsPositionsAction.js +2 -0
  103. package/dist/types/actions/tools/predictionMarketsPositionsAction.js.map +1 -0
  104. package/dist/types/actions/tools/swapAction.d.ts +16 -0
  105. package/dist/types/actions/tools/swapAction.d.ts.map +1 -0
  106. package/dist/types/actions/tools/swapAction.js +2 -0
  107. package/dist/types/actions/tools/swapAction.js.map +1 -0
  108. package/dist/types/actions/tools/tokenTransferAction.d.ts +1 -2
  109. package/dist/types/actions/tools/tokenTransferAction.d.ts.map +1 -1
  110. package/dist/types/actions/tools/tokenTransferAction.js +1 -1
  111. package/dist/types/actions/tools/tokenTransferAction.js.map +1 -1
  112. package/dist/types/index.d.ts +2 -0
  113. package/dist/types/index.d.ts.map +1 -1
  114. package/dist/types/index.js +2 -0
  115. package/dist/types/index.js.map +1 -1
  116. package/dist/types/messages.d.ts +3 -6
  117. package/dist/types/messages.d.ts.map +1 -1
  118. package/dist/types/messages.js +1 -1
  119. package/dist/types/messages.js.map +1 -1
  120. package/dist/types/streaming.d.ts +81 -0
  121. package/dist/types/streaming.d.ts.map +1 -0
  122. package/dist/types/streaming.js +2 -0
  123. package/dist/types/streaming.js.map +1 -0
  124. package/dist/types/telemetry.d.ts +139 -0
  125. package/dist/types/telemetry.d.ts.map +1 -0
  126. package/dist/types/telemetry.js +7 -0
  127. package/dist/types/telemetry.js.map +1 -0
  128. package/dist/utils/constants.d.ts +8 -6
  129. package/dist/utils/constants.d.ts.map +1 -1
  130. package/dist/utils/constants.js +23 -5
  131. package/dist/utils/constants.js.map +1 -1
  132. package/package.json +4 -4
  133. package/dist/types/actions/tools/swapBridgeAction.d.ts.map +0 -1
  134. package/dist/types/actions/tools/swapBridgeAction.js +0 -2
  135. package/dist/types/actions/tools/swapBridgeAction.js.map +0 -1
@@ -0,0 +1,131 @@
1
+ import type { IllaToolOutcomeJSON } 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 declare class IllaToolOutcome<T = unknown> {
28
+ readonly id: string;
29
+ readonly name: string;
30
+ private readonly _result?;
31
+ private readonly _error?;
32
+ private readonly _isError;
33
+ private constructor();
34
+ /**
35
+ * Creates a successful outcome
36
+ * @param id - The tool call ID
37
+ * @param name - The tool/action name
38
+ * @param result - The successful result value
39
+ * @returns A new IllaToolOutcome representing success
40
+ */
41
+ static success<T>(id: string, name: string, result: T): IllaToolOutcome<T>;
42
+ /**
43
+ * Creates an error outcome
44
+ * @param id - The tool call ID
45
+ * @param name - The tool/action name
46
+ * @param error - The error that occurred
47
+ * @returns A new IllaToolOutcome representing failure
48
+ */
49
+ static error(id: string, name: string, error: IllaToolError): IllaToolOutcome<never>;
50
+ /**
51
+ * Parses and validates unknown input to create an IllaToolOutcome instance.
52
+ * Expects an object with id, name, and either result or error properties.
53
+ *
54
+ * @template T - The expected type of the result (defaults to unknown)
55
+ * @param input - Unknown input to parse
56
+ * @returns A new IllaToolOutcome instance
57
+ * @throws ZodError if the input doesn't match the expected schema
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * // Parse a success outcome
62
+ * const success = IllaToolOutcome.parse<{ txHash: string }>({
63
+ * id: 'call-123',
64
+ * name: 'tokenTransfer',
65
+ * result: { txHash: '0x...' }
66
+ * });
67
+ *
68
+ * // Parse an error outcome
69
+ * const error = IllaToolOutcome.parse({
70
+ * id: 'call-456',
71
+ * name: 'swap',
72
+ * error: { type: 'execution', message: 'Failed' }
73
+ * });
74
+ * ```
75
+ */
76
+ static parse<T = unknown>(input: unknown): IllaToolOutcome<T>;
77
+ /**
78
+ * Check if this outcome represents a successful execution
79
+ */
80
+ isSuccess(): boolean;
81
+ /**
82
+ * Check if this outcome represents an error
83
+ */
84
+ isError(): boolean;
85
+ /**
86
+ * Get the successful result value
87
+ * @returns The result value or undefined if this is an error outcome
88
+ */
89
+ getResult(): T | undefined;
90
+ /**
91
+ * Get the error
92
+ * @returns The error or undefined if this is a success outcome
93
+ */
94
+ getError(): IllaToolError | undefined;
95
+ /**
96
+ * Get the result or throw if this is an error
97
+ * @returns The result value
98
+ * @throws Error if this is an error outcome
99
+ */
100
+ getResultOrThrow(): T;
101
+ /**
102
+ * Map the result value to a new type
103
+ * @param fn - Function to transform the result
104
+ * @returns A new IllaToolOutcome with the transformed result, or the same error
105
+ */
106
+ map<U>(fn: (result: T) => U): IllaToolOutcome<U>;
107
+ /**
108
+ * Chain another operation that returns an IllaToolOutcome
109
+ * @param fn - Function that takes the result and returns a new IllaToolOutcome
110
+ * @returns The result of fn if successful, or the original error
111
+ */
112
+ flatMap<U>(fn: (result: T) => IllaToolOutcome<U>): IllaToolOutcome<U>;
113
+ /**
114
+ * Execute a function if this is a success
115
+ * @param fn - Function to execute with the result
116
+ * @returns This outcome (for chaining)
117
+ */
118
+ onSuccess(fn: (result: T) => void): this;
119
+ /**
120
+ * Execute a function if this is an error
121
+ * @param fn - Function to execute with the error
122
+ * @returns This outcome (for chaining)
123
+ */
124
+ onError(fn: (error: IllaToolError) => void): this;
125
+ /**
126
+ * Convert to a plain JSON object for serialization
127
+ * @returns An object with either result or error
128
+ */
129
+ toJSON(): IllaToolOutcomeJSON;
130
+ }
131
+ //# sourceMappingURL=IllaToolOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IllaToolOutcome.d.ts","sourceRoot":"","sources":["../../src/tools/IllaToolOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,eAAe,CAAC,CAAC,GAAG,OAAO;aAEhB,EAAE,EAAE,MAAM;aACV,IAAI,EAAE,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAL7B,OAAO;IAQP;;;;;;OAMG;WACW,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;IAIjF;;;;;;OAMG;WACW,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,eAAe,CAAC,KAAK,CAAC;IAI3F;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;WACW,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC;IAWpE;;OAEG;IACI,SAAS,IAAI,OAAO;IAI3B;;OAEG;IACI,OAAO,IAAI,OAAO;IAIzB;;;OAGG;IACI,SAAS,IAAI,CAAC,GAAG,SAAS;IAIjC;;;OAGG;IACI,QAAQ,IAAI,aAAa,GAAG,SAAS;IAI5C;;;;OAIG;IACI,gBAAgB,IAAI,CAAC;IAU5B;;;;OAIG;IACI,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;IAOvD;;;;OAIG;IACI,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;IAO5E;;;;OAIG;IACI,SAAS,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,GAAG,IAAI;IAO/C;;;;OAIG;IACI,OAAO,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,IAAI;IAOxD;;;OAGG;IACI,MAAM,IAAI,mBAAmB;CAQvC"}
@@ -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,IAAY,EACX,OAAW,EACX,MAAsB,EACtB,WAAoB,KAAK;QAJ1B,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;QACX,YAAO,GAAP,OAAO,CAAI;QACX,WAAM,GAAN,MAAM,CAAgB;QACtB,aAAQ,GAAR,QAAQ,CAAiB;IAC3C,CAAC;IAEJ;;;;;;OAMG;IACI,MAAM,CAAC,OAAO,CAAI,EAAU,EAAE,IAAY,EAAE,MAAS;QACxD,OAAO,IAAI,eAAe,CAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,KAAK,CAAC,EAAU,EAAE,IAAY,EAAE,KAAoB;QAC9D,OAAO,IAAI,eAAe,CAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,MAAM,CAAC,KAAK,CAAc,KAAc;QAC3C,MAAM,MAAM,GAAG,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,C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1,3 @@
1
+ export * from "./IllaToolError.js";
2
+ export * from "./IllaToolOutcome.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from "./IllaToolError.js";
2
+ export * from "./IllaToolOutcome.js";
3
+ //# sourceMappingURL=index.js.map
@@ -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,16 +1,21 @@
1
- import type { DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetWalletBalanceActionInput, SwapBridgeActionInput, TokenTransferActionInput } from "./tools/index.js";
1
+ import type { BridgeActionInput, DefiFetchListingsActionInput, DefiPositionsActionInput, DefiSupplyActionInput, DefiWithdrawActionInput, ExchangeRateActionInput, GetWalletBalanceActionInput, PolymarketPostOrderActionInput, PredictionMarketsBetActionInput, PredictionMarketsFetchActionInput, PredictionMarketsPositionsActionInput, SwapActionInput, TokenTransferActionInput } from "./tools/index.js";
2
2
  export type BaseActionInput<ActionName extends string, InputProperties> = {
3
3
  type: ActionName;
4
4
  input: InputProperties;
5
5
  acceptedLanguages: string[];
6
6
  };
7
7
  export type TransferTokensInput = BaseActionInput<"TokenTransfer", TokenTransferActionInput>;
8
- export type SwapOrBridgeInput = BaseActionInput<"SwapOrBridge", SwapBridgeActionInput>;
8
+ export type SwapInput = BaseActionInput<"swap", SwapActionInput>;
9
+ export type BridgeInput = BaseActionInput<"bridge", BridgeActionInput>;
9
10
  export type ExchangeRateInput = BaseActionInput<"ExchangeRate", ExchangeRateActionInput>;
10
11
  export type GetWalletBalanceInput = BaseActionInput<"GetWalletBalance", GetWalletBalanceActionInput>;
11
12
  export type DefiFetchListingsInput = BaseActionInput<"DefiFetchListings", DefiFetchListingsActionInput>;
12
13
  export type DefiSupplyInput = BaseActionInput<"DefiSupply", DefiSupplyActionInput>;
13
14
  export type DefiWithdrawInput = BaseActionInput<"DefiWithdraw", DefiWithdrawActionInput>;
14
15
  export type DefiPositionsInput = BaseActionInput<"DefiPositions", DefiPositionsActionInput>;
15
- export type ActionInput = TransferTokensInput | SwapOrBridgeInput | ExchangeRateInput | GetWalletBalanceInput | DefiFetchListingsInput | DefiSupplyInput | DefiWithdrawInput | DefiPositionsInput;
16
+ export type PredictionMarketsFetchInput = BaseActionInput<"PredictionMarketsFetch", PredictionMarketsFetchActionInput>;
17
+ export type PredictionMarketsPositionsInput = BaseActionInput<"PredictionMarketsPositions", PredictionMarketsPositionsActionInput>;
18
+ export type PredictionMarketsBetInput = BaseActionInput<"PredictionMarketsBet", PredictionMarketsBetActionInput>;
19
+ export type PolymarketPostOrderInput = BaseActionInput<"PolymarketPostOrder", PolymarketPostOrderActionInput>;
20
+ export type ActionInput = TransferTokensInput | SwapInput | BridgeInput | ExchangeRateInput | GetWalletBalanceInput | DefiFetchListingsInput | DefiSupplyInput | DefiWithdrawInput | DefiPositionsInput | PredictionMarketsFetchInput | PredictionMarketsBetInput | PredictionMarketsPositionsInput | PolymarketPostOrderInput;
16
21
  //# 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,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,wBAAwB,EAC3B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,eAAe,CAAC,UAAU,SAAS,MAAM,EAAE,eAAe,IAAI;IACtE,IAAI,EAAE,UAA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ACrB,sBAAsB,GACtB,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,yBAAyB,GACzB,+BAA+B,GAC/B,wBAAwB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { PrepareTransactionRequestReturnType } from "viem";
2
+ import type { SignatureRequest } from "../../schemas/messages.js";
2
3
  import type { ActionError } from "./errors.js";
3
4
  import type { ActionInput } from "./inputs.js";
4
5
  export type EvmTransaction = PrepareTransactionRequestReturnType;
@@ -34,7 +35,24 @@ export type ActionBatchTransactionsOutput<T extends Transaction> = BaseActionOut
34
35
  usdValue?: string;
35
36
  };
36
37
  }[]>;
38
+ /**
39
+ * Action output to return signature requests for EIP-712 typed data.
40
+ * Used for actions that require off-chain signatures (e.g., Polymarket orders).
41
+ * Can optionally include transactions to be executed alongside signatures.
42
+ */
43
+ export type ActionSignatureRequestsOutput<T extends Transaction = Transaction> = BaseActionOutput<"SignatureRequests", {
44
+ /** Array of signature requests that need to be signed by the client */
45
+ signatureRequests: SignatureRequest[];
46
+ /** Optional transactions to execute (e.g., approvals) before signing */
47
+ transactions?: {
48
+ transaction: T;
49
+ metadata?: {
50
+ explorerUrl?: string;
51
+ usdValue?: string;
52
+ };
53
+ }[];
54
+ }>;
37
55
  export type ActionErrorOutput<Input extends ActionInput | unknown> = BaseActionOutput<"Error", ActionError<Input>[]>;
38
- export type ActionOutput<Input extends ActionInput | unknown = unknown> = ActionSingleTransactionOutput<Transaction> | ActionBatchTransactionsOutput<Transaction> | ActionDataOutput<unknown> | ActionErrorOutput<Input>;
56
+ export type ActionOutput<Input extends ActionInput | unknown = unknown> = ActionSingleTransactionOutput<Transaction> | ActionBatchTransactionsOutput<Transaction> | ActionSignatureRequestsOutput<Transaction> | ActionDataOutput<unknown> | ActionErrorOutput<Input>;
39
57
  export {};
40
58
  //# sourceMappingURL=outputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"outputs.d.ts","sourceRoot":"","sources":["../../../src/types/actions/outputs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AE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1D,EAAE,CACN,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,gBAAgB,CAC7F,mBAAmB,EACnB;IACI,uEAAuE;IACvE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,wEAAwE;IACxE,YAAY,CAAC,EAAE;QACX,WAAW,EAAE,CAAC,CAAC;QACf,QAAQ,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC1D,EAAE,CAAC;CACP,CACJ,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,WAAW,GAAG,OAAO,IAAI,gBAAgB,CACjF,OAAO,EACP,WAAW,CAAC,KAAK,CAAC,EAAE,CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,WAAW,GAAG,OAAO,GAAG,OAAO,IAChE,6BAA6B,CAAC,WAAW,CAAC,GAC1C,6BAA6B,CAAC,WAAW,CAAC,GAC1C,6BAA6B,CAAC,WAAW,CAAC,GAC1C,gBAAgB,CAAC,OAAO,CAAC,GACzB,iBAAiB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type { TypeOf, z } from "zod";
2
2
  import type { SupportedChain, SupportedSwapBridgeProvider } from "../../../utils/constants.js";
3
- export type SwapBridgeActionInputSchema = z.ZodObject<{
3
+ export type BridgeActionInputSchema = z.ZodObject<{
4
4
  fromAddress: z.ZodString;
5
5
  fromChain: z.ZodEnum<[SupportedChain, ...SupportedChain[]]>;
6
6
  fromToken: z.ZodString;
7
7
  fromAmount: z.ZodString;
8
- toChain: z.ZodOptional<z.ZodEnum<[SupportedChain, ...SupportedChain[]]>>;
8
+ toChain: 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>;
@@ -13,5 +13,5 @@ export type SwapBridgeActionInputSchema = z.ZodObject<{
13
13
  missingParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
14
  humanFriendlyMessage: z.ZodOptional<z.ZodString>;
15
15
  }>;
16
- export type SwapBridgeActionInput = TypeOf<SwapBridgeActionInputSchema>;
17
- //# sourceMappingURL=swapBridgeAction.d.ts.map
16
+ export type BridgeActionInput = TypeOf<BridgeActionInputSchema>;
17
+ //# sourceMappingURL=bridgeAction.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bridgeAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridgeAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/bridgeAction.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 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,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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,C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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
- import { z } from "zod";
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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
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,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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,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
- import { z } from "zod";
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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
1
+ {"version":3,"file":"defiPositionsAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiPositionsAction.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 { SupportedLendingProvider } from "../../../internal.js";
4
3
  export type DefiSupplyActionInputSchema = z.ZodObject<{
5
4
  token: z.ZodString;
@@ -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,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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
+ {"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
- import { z } from "zod";
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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
1
+ {"version":3,"file":"defiSupplyAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/defiSupplyAction.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 { SupportedLendingProvider } from "../../../internal.js";
4
3
  export type DefiWithdrawActionInputSchema = z.ZodObject<{
5
4
  token: z.ZodString;
@@ -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,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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
+ {"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
- import { z } from "zod";
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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
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,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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
+ {"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
- import { z } from "zod";
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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
1
+ {"version":3,"file":"exchangeRateAction.js","sourceRoot":"","sources":["../../../../src/types/actions/tools/exchangeRateAction.ts"],"names":[],"mappings":""}
@@ -1,13 +1,14 @@
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;
5
+ signerWallet: z.ZodOptional<z.ZodString>;
6
6
  token: z.ZodOptional<z.ZodString>;
7
7
  chain: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
8
- provider: z.ZodEnum<[SupportedWalletBalanceProvider, ...SupportedWalletBalanceProvider[]]>;
8
+ providers: z.ZodDefault<z.ZodArray<z.ZodEnum<[SupportedWalletBalanceProvider, ...SupportedWalletBalanceProvider[]]>>>;
9
9
  missingParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  humanFriendlyMessage: z.ZodOptional<z.ZodString>;
11
+ forceRefresh: z.ZodDefault<z.ZodBoolean>;
11
12
  }>;
12
13
  export type GetWalletBalanceActionInput = TypeOf<GetWalletBalanceActionInputSchema>;
13
14
  //# 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,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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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