@illalabs/interfaces 0.3.0-canary.361ed2fa → 0.3.0-canary.4647332c
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/interfaces/chat/response.d.ts +2 -0
- package/dist/interfaces/chat/response.d.ts.map +1 -1
- package/dist/schemas/chatContext.d.ts +22 -6
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +82 -24
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.js +2 -0
- package/dist/schemas/chatRequestBody.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/messages.d.ts +33 -1
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +14 -1
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/telemetryEvents.d.ts +1159 -0
- package/dist/schemas/telemetryEvents.d.ts.map +1 -0
- package/dist/schemas/telemetryEvents.js +250 -0
- package/dist/schemas/telemetryEvents.js.map +1 -0
- 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/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/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/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetryEvents.d.ts","sourceRoot":"","sources":["../../src/schemas/telemetryEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,CAAC,EAA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
|
7
|
+
"iteration_start",
|
|
8
|
+
"iteration_end",
|
|
9
|
+
"tool_call_batch",
|
|
10
|
+
"tool_result",
|
|
11
|
+
"scratchpad_reset",
|
|
12
|
+
"llm_start",
|
|
13
|
+
"llm_end",
|
|
14
|
+
"text_delta",
|
|
15
|
+
"finish",
|
|
16
|
+
"error",
|
|
17
|
+
"connected",
|
|
18
|
+
"stream_end",
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* Base telemetry event schema with common fields
|
|
22
|
+
*/
|
|
23
|
+
export const baseTelemetryEventSchema = z.object({
|
|
24
|
+
requestId: z.string(),
|
|
25
|
+
type: z.enum(telemetryEventTypes),
|
|
26
|
+
timestamp: z.number().optional(),
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Connected event schema - emitted when connected to telemetry stream
|
|
30
|
+
*/
|
|
31
|
+
export const connectedEventSchema = baseTelemetryEventSchema.extend({
|
|
32
|
+
type: z.literal("connected"),
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Stream end telemetry event schema - emitted when stream ends
|
|
36
|
+
*/
|
|
37
|
+
export const streamEndTelemetryEventSchema = baseTelemetryEventSchema.extend({
|
|
38
|
+
type: z.literal("stream_end"),
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* Iteration start event schema - emitted when an iteration starts
|
|
42
|
+
*/
|
|
43
|
+
export const iterationStartEventSchema = baseTelemetryEventSchema.extend({
|
|
44
|
+
type: z.literal("iteration_start"),
|
|
45
|
+
data: z.object({
|
|
46
|
+
iteration: z.number(),
|
|
47
|
+
}),
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* Iteration end event schema - emitted when an iteration ends
|
|
51
|
+
*/
|
|
52
|
+
export const iterationEndEventSchema = baseTelemetryEventSchema.extend({
|
|
53
|
+
type: z.literal("iteration_end"),
|
|
54
|
+
data: z.object({
|
|
55
|
+
iteration: z.number(),
|
|
56
|
+
hasToolCalls: z.boolean(),
|
|
57
|
+
shouldContinue: z.boolean(),
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* Tool call batch event schema - emitted when tool calls are batched for execution
|
|
62
|
+
*/
|
|
63
|
+
export const toolCallBatchEventSchema = baseTelemetryEventSchema.extend({
|
|
64
|
+
type: z.literal("tool_call_batch"),
|
|
65
|
+
data: z.object({
|
|
66
|
+
iteration: z.number(),
|
|
67
|
+
tools: z.array(z.object({
|
|
68
|
+
toolCallId: z.string(),
|
|
69
|
+
toolName: z.string(),
|
|
70
|
+
})),
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Tool result event schema - emitted when a tool execution completes
|
|
75
|
+
*/
|
|
76
|
+
export const toolResultEventSchema = baseTelemetryEventSchema.extend({
|
|
77
|
+
type: z.literal("tool_result"),
|
|
78
|
+
data: z.discriminatedUnion("status", [
|
|
79
|
+
z.object({
|
|
80
|
+
toolCallId: z.string(),
|
|
81
|
+
toolName: z.string(),
|
|
82
|
+
status: z.literal("pending"),
|
|
83
|
+
}),
|
|
84
|
+
z.object({
|
|
85
|
+
toolCallId: z.string(),
|
|
86
|
+
toolName: z.string(),
|
|
87
|
+
status: z.literal("success"),
|
|
88
|
+
}),
|
|
89
|
+
z.object({
|
|
90
|
+
toolCallId: z.string(),
|
|
91
|
+
toolName: z.string(),
|
|
92
|
+
status: z.literal("failure"),
|
|
93
|
+
error: z.string(),
|
|
94
|
+
}),
|
|
95
|
+
]),
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* Scratchpad reset event schema - emitted when the scratchpad is reset
|
|
99
|
+
*/
|
|
100
|
+
export const scratchpadResetEventSchema = baseTelemetryEventSchema.extend({
|
|
101
|
+
type: z.literal("scratchpad_reset"),
|
|
102
|
+
data: z.object({
|
|
103
|
+
reason: z.string(),
|
|
104
|
+
}),
|
|
105
|
+
});
|
|
106
|
+
/**
|
|
107
|
+
* LLM start event schema - emitted when LLM generation starts
|
|
108
|
+
*/
|
|
109
|
+
export const llmStartEventSchema = baseTelemetryEventSchema.extend({
|
|
110
|
+
type: z.literal("llm_start"),
|
|
111
|
+
data: z.object({
|
|
112
|
+
iteration: z.number(),
|
|
113
|
+
}),
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* LLM end event schema - emitted when LLM generation ends
|
|
117
|
+
*/
|
|
118
|
+
export const llmEndEventSchema = baseTelemetryEventSchema.extend({
|
|
119
|
+
type: z.literal("llm_end"),
|
|
120
|
+
data: z.object({
|
|
121
|
+
iteration: z.number(),
|
|
122
|
+
hasText: z.boolean(),
|
|
123
|
+
toolCallCount: z.number(),
|
|
124
|
+
}),
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* Text delta event schema - emitted when a text chunk is received from LLM
|
|
128
|
+
*/
|
|
129
|
+
export const textDeltaEventSchema = baseTelemetryEventSchema.extend({
|
|
130
|
+
type: z.literal("text_delta"),
|
|
131
|
+
data: z.object({
|
|
132
|
+
delta: z.string(),
|
|
133
|
+
}),
|
|
134
|
+
});
|
|
135
|
+
/**
|
|
136
|
+
* Finish event schema - emitted when orchestration finishes
|
|
137
|
+
*/
|
|
138
|
+
export const finishEventSchema = baseTelemetryEventSchema.extend({
|
|
139
|
+
type: z.literal("finish"),
|
|
140
|
+
data: z.object({
|
|
141
|
+
totalIterations: z.number(),
|
|
142
|
+
hasPendingTools: z.boolean(),
|
|
143
|
+
hasToolErrors: z.boolean(),
|
|
144
|
+
}),
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* Error telemetry event schema - emitted when an error occurs.
|
|
148
|
+
* The data field is always present per the ErrorEvent type definition.
|
|
149
|
+
*/
|
|
150
|
+
export const errorTelemetryEventSchema = baseTelemetryEventSchema.extend({
|
|
151
|
+
type: z.literal("error"),
|
|
152
|
+
data: z.object({
|
|
153
|
+
message: z.string(),
|
|
154
|
+
code: z.string().optional(),
|
|
155
|
+
}),
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Schema for validating telemetry events.
|
|
159
|
+
* Discriminated union using the "type" field.
|
|
160
|
+
*/
|
|
161
|
+
export const telemetryEventSchema = z.discriminatedUnion("type", [
|
|
162
|
+
connectedEventSchema,
|
|
163
|
+
streamEndTelemetryEventSchema,
|
|
164
|
+
iterationStartEventSchema,
|
|
165
|
+
iterationEndEventSchema,
|
|
166
|
+
toolCallBatchEventSchema,
|
|
167
|
+
toolResultEventSchema,
|
|
168
|
+
scratchpadResetEventSchema,
|
|
169
|
+
llmStartEventSchema,
|
|
170
|
+
llmEndEventSchema,
|
|
171
|
+
textDeltaEventSchema,
|
|
172
|
+
finishEventSchema,
|
|
173
|
+
errorTelemetryEventSchema,
|
|
174
|
+
]);
|
|
175
|
+
/**
|
|
176
|
+
* Message schema for result events.
|
|
177
|
+
* Uses z.custom<ModelMessage>() to ensure type compatibility with the AI SDK's
|
|
178
|
+
* ModelMessage type. Runtime validation of the message structure happens at the
|
|
179
|
+
* API layer; this schema trusts the structure and preserves the correct TypeScript type.
|
|
180
|
+
*/
|
|
181
|
+
const messageSchema = z.custom();
|
|
182
|
+
/**
|
|
183
|
+
* Pending tool call schema for result events
|
|
184
|
+
*/
|
|
185
|
+
const pendingToolCallSchema = z.object({
|
|
186
|
+
toolCallId: z.string(),
|
|
187
|
+
toolName: z.string(),
|
|
188
|
+
toolInput: z.unknown(),
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* Tool error schema for result events
|
|
192
|
+
*/
|
|
193
|
+
const toolErrorSchema = z.object({
|
|
194
|
+
toolCallId: z.string(),
|
|
195
|
+
toolName: z.string(),
|
|
196
|
+
error: z.string(),
|
|
197
|
+
});
|
|
198
|
+
/**
|
|
199
|
+
* Incomplete tool call schema for result events
|
|
200
|
+
*/
|
|
201
|
+
const incompleteToolCallSchema = z.object({
|
|
202
|
+
toolCallId: z.string(),
|
|
203
|
+
toolName: z.string(),
|
|
204
|
+
toolInput: z.unknown().optional(),
|
|
205
|
+
});
|
|
206
|
+
/**
|
|
207
|
+
* Schema for validating result events from the streaming endpoint.
|
|
208
|
+
* Uses type: "result" as discriminator for consistency with other event schemas.
|
|
209
|
+
* Also includes status: 200 for backward compatibility with CoreApiChatSuccessResponse.
|
|
210
|
+
*/
|
|
211
|
+
export const resultEventDataSchema = z.object({
|
|
212
|
+
type: z.literal("result"),
|
|
213
|
+
status: z.literal(200),
|
|
214
|
+
messages: z.array(messageSchema),
|
|
215
|
+
text: z.string(),
|
|
216
|
+
pendingTools: z.array(pendingToolCallSchema).optional(),
|
|
217
|
+
incompleteTools: z.array(incompleteToolCallSchema).optional(),
|
|
218
|
+
toolErrors: z.array(toolErrorSchema).optional(),
|
|
219
|
+
requestId: z.string(),
|
|
220
|
+
});
|
|
221
|
+
/**
|
|
222
|
+
* Schema for validating error events from the streaming endpoint
|
|
223
|
+
*/
|
|
224
|
+
export const errorEventDataSchema = z.object({
|
|
225
|
+
type: z.literal("error"),
|
|
226
|
+
requestId: z.string(),
|
|
227
|
+
timestamp: z.number().optional(),
|
|
228
|
+
data: z.object({
|
|
229
|
+
message: z.string(),
|
|
230
|
+
code: z.string().optional(),
|
|
231
|
+
}),
|
|
232
|
+
});
|
|
233
|
+
/**
|
|
234
|
+
* Schema for validating stream_end events from the streaming endpoint
|
|
235
|
+
*/
|
|
236
|
+
export const streamEndEventDataSchema = z.object({
|
|
237
|
+
type: z.literal("stream_end"),
|
|
238
|
+
requestId: z.string(),
|
|
239
|
+
timestamp: z.number().optional(),
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* Unified discriminated union for all stream event data types.
|
|
243
|
+
* Uses "type" as the discriminator field for runtime validation.
|
|
244
|
+
*/
|
|
245
|
+
export const streamEventDataSchema = z.discriminatedUnion("type", [
|
|
246
|
+
resultEventDataSchema,
|
|
247
|
+
errorEventDataSchema,
|
|
248
|
+
streamEndEventDataSchema,
|
|
249
|
+
]);
|
|
250
|
+
//# sourceMappingURL=telemetryEvents.js.map
|
|
@@ -0,0 +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E,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC;CACL,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC9D,qBAAqB;IACrB,oBAAoB;IACpB,wBAAwB;CAC3B,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":""}
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { TelemetryEvent, ValidatedErrorEventData, ValidatedResultEventData, ValidatedStreamEndEventData } from "./telemetry.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parsed SSE event types from the streaming chat endpoint
|
|
4
|
+
*/
|
|
5
|
+
export type StreamEventType = "telemetry" | "result" | "error" | "stream_end";
|
|
6
|
+
/**
|
|
7
|
+
* A telemetry event received during streaming.
|
|
8
|
+
* Wraps the TelemetryEvent type for SSE transport.
|
|
9
|
+
*/
|
|
10
|
+
export type TelemetryStreamEvent = {
|
|
11
|
+
readonly type: "telemetry";
|
|
12
|
+
readonly data: TelemetryEvent;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The final result event containing the chat response.
|
|
16
|
+
* Data type is inferred from resultEventDataSchema for type-safe validation.
|
|
17
|
+
*/
|
|
18
|
+
export type ResultStreamEvent = {
|
|
19
|
+
readonly type: "result";
|
|
20
|
+
readonly data: ValidatedResultEventData;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Error event data structure from the streaming endpoint.
|
|
24
|
+
* Inferred from errorEventDataSchema for type-safe validation.
|
|
25
|
+
*
|
|
26
|
+
* Note: The `type` field here matches the SSE event type and is included
|
|
27
|
+
* because the API sends it as part of the JSON payload. This allows the
|
|
28
|
+
* schema to validate the complete response structure.
|
|
29
|
+
*/
|
|
30
|
+
export type ErrorEventData = ValidatedErrorEventData;
|
|
31
|
+
/**
|
|
32
|
+
* An error event received during streaming.
|
|
33
|
+
* Wraps ErrorEventData for consistent event structure.
|
|
34
|
+
*/
|
|
35
|
+
export type ErrorStreamEvent = {
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
readonly data: ValidatedErrorEventData;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Stream end event data structure.
|
|
41
|
+
* Inferred from streamEndEventDataSchema for type-safe validation.
|
|
42
|
+
*
|
|
43
|
+
* Note: The `type` field here matches the SSE event type and is included
|
|
44
|
+
* because the API sends it as part of the JSON payload. This allows the
|
|
45
|
+
* schema to validate the complete response structure.
|
|
46
|
+
*/
|
|
47
|
+
export type SSEStreamEndEventData = ValidatedStreamEndEventData;
|
|
48
|
+
/**
|
|
49
|
+
* Stream end event signaling the stream is closing.
|
|
50
|
+
* No more events will be sent after this.
|
|
51
|
+
*/
|
|
52
|
+
export type SSEStreamEndEvent = {
|
|
53
|
+
readonly type: "stream_end";
|
|
54
|
+
readonly data: ValidatedStreamEndEventData;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Union of all possible stream events from the SSE endpoint.
|
|
58
|
+
* Use discriminated union pattern via the `type` field.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```typescript
|
|
62
|
+
* function handleEvent(event: SSEStreamEvent) {
|
|
63
|
+
* switch (event.type) {
|
|
64
|
+
* case "telemetry":
|
|
65
|
+
* console.log("Telemetry:", event.data.type);
|
|
66
|
+
* break;
|
|
67
|
+
* case "result":
|
|
68
|
+
* console.log("Result:", event.data.text);
|
|
69
|
+
* break;
|
|
70
|
+
* case "error":
|
|
71
|
+
* console.error("Error:", event.data.data.message);
|
|
72
|
+
* break;
|
|
73
|
+
* case "stream_end":
|
|
74
|
+
* console.log("Stream ended");
|
|
75
|
+
* break;
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export type SSEStreamEvent = TelemetryStreamEvent | ResultStreamEvent | ErrorStreamEvent | SSEStreamEndEvent;
|
|
81
|
+
//# sourceMappingURL=streaming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/types/streaming.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC9B,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAE9E;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;CAC1C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,2BAA2B,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,cAAc,GACpB,oBAAoB,GACpB,iBAAiB,GACjB,gBAAgB,GAChB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/types/streaming.ts"],"names":[],"mappings":""}
|