@illalabs/interfaces 0.3.0-canary.9f7bb0cd → 0.3.0-canary.b219e329

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 (114) 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 +83 -649
  10. package/dist/schemas/chatContext.d.ts.map +1 -1
  11. package/dist/schemas/chatRequestBody.d.ts +276 -2180
  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 +2 -2
  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 +95 -1037
  25. package/dist/schemas/messages.d.ts.map +1 -1
  26. package/dist/schemas/messages.js +10 -121
  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 +1645 -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/userContext.d.ts +3 -0
  37. package/dist/schemas/userContext.d.ts.map +1 -1
  38. package/dist/schemas/userContext.js +4 -0
  39. package/dist/schemas/userContext.js.map +1 -1
  40. package/dist/tools/IllaToolError.d.ts +117 -0
  41. package/dist/tools/IllaToolError.d.ts.map +1 -0
  42. package/dist/tools/IllaToolError.js +147 -0
  43. package/dist/tools/IllaToolError.js.map +1 -0
  44. package/dist/tools/IllaToolOutcome.d.ts +131 -0
  45. package/dist/tools/IllaToolOutcome.d.ts.map +1 -0
  46. package/dist/tools/IllaToolOutcome.js +191 -0
  47. package/dist/tools/IllaToolOutcome.js.map +1 -0
  48. package/dist/tools/index.d.ts +3 -0
  49. package/dist/tools/index.d.ts.map +1 -0
  50. package/dist/tools/index.js +3 -0
  51. package/dist/tools/index.js.map +1 -0
  52. package/dist/types/actions/inputs.d.ts +4 -2
  53. package/dist/types/actions/inputs.d.ts.map +1 -1
  54. package/dist/types/actions/tools/bridgeAction.d.ts +1 -1
  55. package/dist/types/actions/tools/bridgeAction.d.ts.map +1 -1
  56. package/dist/types/actions/tools/defiFetchListingsAction.d.ts +1 -2
  57. package/dist/types/actions/tools/defiFetchListingsAction.d.ts.map +1 -1
  58. package/dist/types/actions/tools/defiFetchListingsAction.js +1 -1
  59. package/dist/types/actions/tools/defiFetchListingsAction.js.map +1 -1
  60. package/dist/types/actions/tools/defiPositionsAction.d.ts +1 -2
  61. package/dist/types/actions/tools/defiPositionsAction.d.ts.map +1 -1
  62. package/dist/types/actions/tools/defiPositionsAction.js +1 -1
  63. package/dist/types/actions/tools/defiPositionsAction.js.map +1 -1
  64. package/dist/types/actions/tools/defiSupplyAction.d.ts +1 -2
  65. package/dist/types/actions/tools/defiSupplyAction.d.ts.map +1 -1
  66. package/dist/types/actions/tools/defiSupplyAction.js +1 -1
  67. package/dist/types/actions/tools/defiSupplyAction.js.map +1 -1
  68. package/dist/types/actions/tools/defiWithdrawAction.d.ts +1 -2
  69. package/dist/types/actions/tools/defiWithdrawAction.d.ts.map +1 -1
  70. package/dist/types/actions/tools/defiWithdrawAction.js +1 -1
  71. package/dist/types/actions/tools/defiWithdrawAction.js.map +1 -1
  72. package/dist/types/actions/tools/exchangeRateAction.d.ts +1 -2
  73. package/dist/types/actions/tools/exchangeRateAction.d.ts.map +1 -1
  74. package/dist/types/actions/tools/exchangeRateAction.js +1 -1
  75. package/dist/types/actions/tools/exchangeRateAction.js.map +1 -1
  76. package/dist/types/actions/tools/getWalletBalanceAction.d.ts +4 -3
  77. package/dist/types/actions/tools/getWalletBalanceAction.d.ts.map +1 -1
  78. package/dist/types/actions/tools/getWalletBalanceAction.js +1 -1
  79. package/dist/types/actions/tools/getWalletBalanceAction.js.map +1 -1
  80. package/dist/types/actions/tools/index.d.ts +6 -0
  81. package/dist/types/actions/tools/index.d.ts.map +1 -1
  82. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts +21 -0
  83. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts.map +1 -0
  84. package/dist/types/actions/tools/predictionMarketsFetchAction.js +2 -0
  85. package/dist/types/actions/tools/predictionMarketsFetchAction.js.map +1 -0
  86. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts +25 -0
  87. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts.map +1 -0
  88. package/dist/types/actions/tools/predictionMarketsPositionsAction.js +2 -0
  89. package/dist/types/actions/tools/predictionMarketsPositionsAction.js.map +1 -0
  90. package/dist/types/actions/tools/tokenTransferAction.d.ts +1 -2
  91. package/dist/types/actions/tools/tokenTransferAction.d.ts.map +1 -1
  92. package/dist/types/actions/tools/tokenTransferAction.js +1 -1
  93. package/dist/types/actions/tools/tokenTransferAction.js.map +1 -1
  94. package/dist/types/index.d.ts +2 -0
  95. package/dist/types/index.d.ts.map +1 -1
  96. package/dist/types/index.js +2 -0
  97. package/dist/types/index.js.map +1 -1
  98. package/dist/types/messages.d.ts +3 -6
  99. package/dist/types/messages.d.ts.map +1 -1
  100. package/dist/types/messages.js +1 -1
  101. package/dist/types/messages.js.map +1 -1
  102. package/dist/types/streaming.d.ts +81 -0
  103. package/dist/types/streaming.d.ts.map +1 -0
  104. package/dist/types/streaming.js +2 -0
  105. package/dist/types/streaming.js.map +1 -0
  106. package/dist/types/telemetry.d.ts +139 -0
  107. package/dist/types/telemetry.d.ts.map +1 -0
  108. package/dist/types/telemetry.js +7 -0
  109. package/dist/types/telemetry.js.map +1 -0
  110. package/dist/utils/constants.d.ts +6 -4
  111. package/dist/utils/constants.d.ts.map +1 -1
  112. package/dist/utils/constants.js +16 -2
  113. package/dist/utils/constants.js.map +1 -1
  114. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"chatRequestBody.d.ts","sourceRoot":"","sources":["../../src/schemas/chatRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxC,CAAC"}
1
+ {"version":3,"file":"chatRequestBody.d.ts","sourceRoot":"","sources":["../../src/schemas/chatRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASrC,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxD,CAAC;AAEd,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IALjC,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { CoreMessageSchema, HistorySchema, ToolResultSchema } from "./messages.js";
2
+ import { HistorySchema, PromptSchema, ToolOutcomesSchema } from "./messages.js";
3
3
  import { PersonalityContextSchema } from "./personalityContext.js";
4
4
  import { ToolAutorouterSchema } from "./toolAutorouter.js";
5
5
  import { UserContextSchema } from "./userContext.js";
@@ -8,10 +8,12 @@ export const CoreApiChatBodyRequestBaseSchema = z
8
8
  toolsConfig: ToolAutorouterSchema,
9
9
  messages: HistorySchema,
10
10
  userContext: UserContextSchema,
11
- prompt: CoreMessageSchema.optional(),
12
- toolResults: ToolResultSchema.array().optional(),
13
- languageModel: z.string().optional(),
11
+ prompt: PromptSchema.optional(),
12
+ toolResults: ToolOutcomesSchema.optional(),
13
+ languageModel: z.string(),
14
14
  personalityContext: PersonalityContextSchema,
15
+ /** Client-generated request ID for telemetry subscription */
16
+ requestId: z.string().uuid().optional(),
15
17
  })
16
18
  .strict();
17
19
  export const CoreApiChatBodyRequestSchema = CoreApiChatBodyRequestBaseSchema.refine((data) => data.prompt !== undefined ||
@@ -1 +1 @@
1
- {"version":3,"file":"chatRequestBody.js","sourceRoot":"","sources":["../../src/schemas/chatRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC5C,MAAM,CAAC;IACJ,WAAW,EAAE,oBAAoB;IACjC,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,iBAAiB;IAC9B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,gBAAgB,CAAC,KAAK,EAAE,CAAC,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C,MAAM,4BAA4B,GAAG,gCAAgC,CAAC,MAAM,CAC/E,CAAC,IAAI,EAAE,EAAE,CACL,IAAI,CAAC,MAAM,KAAK,SAAS;IACzB,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EACnE;IACI,OAAO,EAAE,mDAAmD;CAC/D,CACJ,CAAC"}
@@ -23,15 +23,15 @@ export declare const LongPollingActionRequestParamsSchema: z.ZodObject<{
23
23
  fromChain?: number | undefined;
24
24
  }>;
25
25
  }, "strict", z.ZodTypeAny, {
26
- protocol: string;
27
26
  toolName: "defiSupply" | "defiWithdraw" | "swap" | "bridge";
27
+ protocol: string;
28
28
  args: {
29
29
  txHash: string;
30
30
  fromChain?: number | undefined;
31
31
  };
32
32
  }, {
33
- protocol: string;
34
33
  toolName: "defiSupply" | "defiWithdraw" | "swap" | "bridge";
34
+ protocol: string;
35
35
  args: {
36
36
  txHash: string;
37
37
  fromChain?: number | undefined;
@@ -0,0 +1,266 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Schema for validation error items in input errors
4
+ */
5
+ export declare const IllaToolValidationErrorSchema: z.ZodObject<{
6
+ path: z.ZodString;
7
+ message: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ path: string;
10
+ message: string;
11
+ }, {
12
+ path: string;
13
+ message: string;
14
+ }>;
15
+ /**
16
+ * Schema for input validation error data
17
+ */
18
+ export declare const IllaToolInputErrorDataSchema: z.ZodObject<{
19
+ type: z.ZodLiteral<"input">;
20
+ errors: z.ZodArray<z.ZodObject<{
21
+ path: z.ZodString;
22
+ message: z.ZodString;
23
+ }, "strict", z.ZodTypeAny, {
24
+ path: string;
25
+ message: string;
26
+ }, {
27
+ path: string;
28
+ message: string;
29
+ }>, "many">;
30
+ }, "strict", z.ZodTypeAny, {
31
+ type: "input";
32
+ errors: {
33
+ path: string;
34
+ message: string;
35
+ }[];
36
+ }, {
37
+ type: "input";
38
+ errors: {
39
+ path: string;
40
+ message: string;
41
+ }[];
42
+ }>;
43
+ /**
44
+ * Schema for execution error data
45
+ */
46
+ export declare const IllaToolExecutionErrorDataSchema: z.ZodObject<{
47
+ type: z.ZodLiteral<"execution">;
48
+ message: z.ZodString;
49
+ details: z.ZodOptional<z.ZodUnknown>;
50
+ }, "strict", z.ZodTypeAny, {
51
+ message: string;
52
+ type: "execution";
53
+ details?: unknown;
54
+ }, {
55
+ message: string;
56
+ type: "execution";
57
+ details?: unknown;
58
+ }>;
59
+ /**
60
+ * Schema for error data (discriminated union)
61
+ */
62
+ export declare const IllaToolErrorDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
63
+ type: z.ZodLiteral<"input">;
64
+ errors: z.ZodArray<z.ZodObject<{
65
+ path: z.ZodString;
66
+ message: z.ZodString;
67
+ }, "strict", z.ZodTypeAny, {
68
+ path: string;
69
+ message: string;
70
+ }, {
71
+ path: string;
72
+ message: string;
73
+ }>, "many">;
74
+ }, "strict", z.ZodTypeAny, {
75
+ type: "input";
76
+ errors: {
77
+ path: string;
78
+ message: string;
79
+ }[];
80
+ }, {
81
+ type: "input";
82
+ errors: {
83
+ path: string;
84
+ message: string;
85
+ }[];
86
+ }>, z.ZodObject<{
87
+ type: z.ZodLiteral<"execution">;
88
+ message: z.ZodString;
89
+ details: z.ZodOptional<z.ZodUnknown>;
90
+ }, "strict", z.ZodTypeAny, {
91
+ message: string;
92
+ type: "execution";
93
+ details?: unknown;
94
+ }, {
95
+ message: string;
96
+ type: "execution";
97
+ details?: unknown;
98
+ }>]>;
99
+ /**
100
+ * Schema for serialized IllaToolError (includes id and name for full round-trip)
101
+ */
102
+ export declare const IllaToolErrorSchema: z.ZodObject<{
103
+ id: z.ZodString;
104
+ name: z.ZodString;
105
+ data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
106
+ type: z.ZodLiteral<"input">;
107
+ errors: z.ZodArray<z.ZodObject<{
108
+ path: z.ZodString;
109
+ message: z.ZodString;
110
+ }, "strict", z.ZodTypeAny, {
111
+ path: string;
112
+ message: string;
113
+ }, {
114
+ path: string;
115
+ message: string;
116
+ }>, "many">;
117
+ }, "strict", z.ZodTypeAny, {
118
+ type: "input";
119
+ errors: {
120
+ path: string;
121
+ message: string;
122
+ }[];
123
+ }, {
124
+ type: "input";
125
+ errors: {
126
+ path: string;
127
+ message: string;
128
+ }[];
129
+ }>, z.ZodObject<{
130
+ type: z.ZodLiteral<"execution">;
131
+ message: z.ZodString;
132
+ details: z.ZodOptional<z.ZodUnknown>;
133
+ }, "strict", z.ZodTypeAny, {
134
+ message: string;
135
+ type: "execution";
136
+ details?: unknown;
137
+ }, {
138
+ message: string;
139
+ type: "execution";
140
+ details?: unknown;
141
+ }>]>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ id: string;
144
+ name: string;
145
+ data: {
146
+ type: "input";
147
+ errors: {
148
+ path: string;
149
+ message: string;
150
+ }[];
151
+ } | {
152
+ message: string;
153
+ type: "execution";
154
+ details?: unknown;
155
+ };
156
+ }, {
157
+ id: string;
158
+ name: string;
159
+ data: {
160
+ type: "input";
161
+ errors: {
162
+ path: string;
163
+ message: string;
164
+ }[];
165
+ } | {
166
+ message: string;
167
+ type: "execution";
168
+ details?: unknown;
169
+ };
170
+ }>;
171
+ /**
172
+ * Schema for serialized IllaToolOutcome
173
+ */
174
+ export declare const IllaToolOutcomeSchema: z.ZodObject<{
175
+ id: z.ZodString;
176
+ name: z.ZodString;
177
+ result: z.ZodOptional<z.ZodUnknown>;
178
+ error: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
179
+ type: z.ZodLiteral<"input">;
180
+ errors: z.ZodArray<z.ZodObject<{
181
+ path: z.ZodString;
182
+ message: z.ZodString;
183
+ }, "strict", z.ZodTypeAny, {
184
+ path: string;
185
+ message: string;
186
+ }, {
187
+ path: string;
188
+ message: string;
189
+ }>, "many">;
190
+ }, "strict", z.ZodTypeAny, {
191
+ type: "input";
192
+ errors: {
193
+ path: string;
194
+ message: string;
195
+ }[];
196
+ }, {
197
+ type: "input";
198
+ errors: {
199
+ path: string;
200
+ message: string;
201
+ }[];
202
+ }>, z.ZodObject<{
203
+ type: z.ZodLiteral<"execution">;
204
+ message: z.ZodString;
205
+ details: z.ZodOptional<z.ZodUnknown>;
206
+ }, "strict", z.ZodTypeAny, {
207
+ message: string;
208
+ type: "execution";
209
+ details?: unknown;
210
+ }, {
211
+ message: string;
212
+ type: "execution";
213
+ details?: unknown;
214
+ }>]>>;
215
+ }, "strict", z.ZodTypeAny, {
216
+ id: string;
217
+ name: string;
218
+ result?: unknown;
219
+ error?: {
220
+ type: "input";
221
+ errors: {
222
+ path: string;
223
+ message: string;
224
+ }[];
225
+ } | {
226
+ message: string;
227
+ type: "execution";
228
+ details?: unknown;
229
+ } | undefined;
230
+ }, {
231
+ id: string;
232
+ name: string;
233
+ result?: unknown;
234
+ error?: {
235
+ type: "input";
236
+ errors: {
237
+ path: string;
238
+ message: string;
239
+ }[];
240
+ } | {
241
+ message: string;
242
+ type: "execution";
243
+ details?: unknown;
244
+ } | undefined;
245
+ }>;
246
+ /**
247
+ * Inferred type for input validation error data
248
+ */
249
+ export type IllaToolInputErrorData = z.infer<typeof IllaToolInputErrorDataSchema>;
250
+ /**
251
+ * Inferred type for execution error data
252
+ */
253
+ export type IllaToolExecutionErrorData = z.infer<typeof IllaToolExecutionErrorDataSchema>;
254
+ /**
255
+ * Inferred type for error data (union of input and execution)
256
+ */
257
+ export type IllaToolErrorData = z.infer<typeof IllaToolErrorDataSchema>;
258
+ /**
259
+ * Inferred type for serialized IllaToolError
260
+ */
261
+ export type IllaToolErrorJSON = z.infer<typeof IllaToolErrorSchema>;
262
+ /**
263
+ * Inferred type for serialized IllaToolOutcome
264
+ */
265
+ export type IllaToolOutcomeJSON = z.infer<typeof IllaToolOutcomeSchema>;
266
+ //# sourceMappingURL=illaTools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"illaTools.d.ts","sourceRoot":"","sources":["../../src/schemas/illaTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;EAK7B,CAAC;AAEd;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EAK5B,CAAC;AAEd;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;EAMhC,CAAC;AAEd;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnB,CAAC;AAEd;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrB,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Schema for validation error items in input errors
4
+ */
5
+ export const IllaToolValidationErrorSchema = z
6
+ .object({
7
+ path: z.string(),
8
+ message: z.string(),
9
+ })
10
+ .strict();
11
+ /**
12
+ * Schema for input validation error data
13
+ */
14
+ export const IllaToolInputErrorDataSchema = z
15
+ .object({
16
+ type: z.literal("input"),
17
+ errors: z.array(IllaToolValidationErrorSchema),
18
+ })
19
+ .strict();
20
+ /**
21
+ * Schema for execution error data
22
+ */
23
+ export const IllaToolExecutionErrorDataSchema = z
24
+ .object({
25
+ type: z.literal("execution"),
26
+ message: z.string(),
27
+ details: z.unknown().optional(),
28
+ })
29
+ .strict();
30
+ /**
31
+ * Schema for error data (discriminated union)
32
+ */
33
+ export const IllaToolErrorDataSchema = z.discriminatedUnion("type", [
34
+ IllaToolInputErrorDataSchema,
35
+ IllaToolExecutionErrorDataSchema,
36
+ ]);
37
+ /**
38
+ * Schema for serialized IllaToolError (includes id and name for full round-trip)
39
+ */
40
+ export const IllaToolErrorSchema = z
41
+ .object({
42
+ id: z.string(),
43
+ name: z.string(),
44
+ data: IllaToolErrorDataSchema,
45
+ })
46
+ .strict();
47
+ /**
48
+ * Schema for serialized IllaToolOutcome
49
+ */
50
+ export const IllaToolOutcomeSchema = z
51
+ .object({
52
+ id: z.string(),
53
+ name: z.string(),
54
+ result: z.unknown().optional(),
55
+ error: IllaToolErrorDataSchema.optional(),
56
+ })
57
+ .strict();
58
+ //# sourceMappingURL=illaTools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"illaTools.js","sourceRoot":"","sources":["../../src/schemas/illaTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,MAAM,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC;KACD,MAAM,EAAE,CAAC;AAEd;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KACxC,MAAM,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC;CACjD,CAAC;KACD,MAAM,EAAE,CAAC;AAEd;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC5C,MAAM,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,MAAM,EAAE,CAAC;AAEd;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAChE,4BAA4B;IAC5B,gCAAgC;CACnC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACJ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,uBAAuB;CAChC,CAAC;KACD,MAAM,EAAE,CAAC;AAEd;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACjC,MAAM,CAAC;IACJ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,uBAAuB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -2,8 +2,11 @@ export * from "./chatContext.js";
2
2
  export * from "./chatRequestBody.js";
3
3
  export * from "../utils/constants.js";
4
4
  export * from "./executionCheckerQueryParams.js";
5
+ export * from "./illaTools.js";
5
6
  export * from "./messages.js";
6
7
  export * from "./toolAutorouter.js";
7
8
  export * from "./userContext.js";
8
9
  export * from "./personalityContext.js";
10
+ export * from "./modelContext.js";
11
+ export * from "./telemetryEvents.js";
9
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
@@ -2,8 +2,11 @@ export * from "./chatContext.js";
2
2
  export * from "./chatRequestBody.js";
3
3
  export * from "../utils/constants.js";
4
4
  export * from "./executionCheckerQueryParams.js";
5
+ export * from "./illaTools.js";
5
6
  export * from "./messages.js";
6
7
  export * from "./toolAutorouter.js";
7
8
  export * from "./userContext.js";
8
9
  export * from "./personalityContext.js";
10
+ export * from "./modelContext.js";
11
+ export * from "./telemetryEvents.js";
9
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}