@illalabs/interfaces 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/schemas/chatContext.d.ts +20 -20
  2. package/dist/schemas/chatRequestBody.d.ts +65 -65
  3. package/dist/schemas/illaTools.d.ts +15 -15
  4. package/dist/schemas/index.d.ts +1 -0
  5. package/dist/schemas/index.d.ts.map +1 -1
  6. package/dist/schemas/index.js +1 -0
  7. package/dist/schemas/index.js.map +1 -1
  8. package/dist/schemas/messages.d.ts +52 -51
  9. package/dist/schemas/messages.d.ts.map +1 -1
  10. package/dist/schemas/messages.js +4 -1
  11. package/dist/schemas/messages.js.map +1 -1
  12. package/dist/schemas/planning.d.ts +22 -18
  13. package/dist/schemas/planning.d.ts.map +1 -1
  14. package/dist/schemas/planning.js +8 -0
  15. package/dist/schemas/planning.js.map +1 -1
  16. package/dist/schemas/planningRuntime.d.ts +15 -11
  17. package/dist/schemas/planningRuntime.d.ts.map +1 -1
  18. package/dist/schemas/planningRuntime.js +5 -0
  19. package/dist/schemas/planningRuntime.js.map +1 -1
  20. package/dist/schemas/telemetryEvents.d.ts +498 -302
  21. package/dist/schemas/telemetryEvents.d.ts.map +1 -1
  22. package/dist/schemas/telemetryEvents.js +29 -2
  23. package/dist/schemas/telemetryEvents.js.map +1 -1
  24. package/dist/schemas/uiMessageNormalizer.d.ts +22 -0
  25. package/dist/schemas/uiMessageNormalizer.d.ts.map +1 -0
  26. package/dist/schemas/uiMessageNormalizer.js +176 -0
  27. package/dist/schemas/uiMessageNormalizer.js.map +1 -0
  28. package/dist/types/planning.d.ts +4 -2
  29. package/dist/types/planning.d.ts.map +1 -1
  30. package/dist/types/planningRuntime.d.ts +3 -1
  31. package/dist/types/planningRuntime.d.ts.map +1 -1
  32. package/dist/types/telemetry.d.ts +3 -1
  33. package/dist/types/telemetry.d.ts.map +1 -1
  34. package/dist/types/telemetry.js +1 -1
  35. package/dist/types/telemetry.js.map +1 -1
  36. package/package.json +1 -1
@@ -78,7 +78,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
78
78
  swapOrBridge?: "lifi" | undefined;
79
79
  } | undefined;
80
80
  }>;
81
- messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
81
+ messages: z.ZodEffects<z.ZodArray<z.ZodType<import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage>, "many">, import("@ai-sdk/provider-utils").ModelMessage[], (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[]>;
82
82
  userContext: z.ZodObject<{
83
83
  address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
84
84
  signerWallet: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
@@ -95,23 +95,23 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
95
95
  type: z.ZodLiteral<"text">;
96
96
  text: z.ZodString;
97
97
  }, "strict", z.ZodTypeAny, {
98
- type: "text";
99
98
  text: string;
100
- }, {
101
99
  type: "text";
100
+ }, {
102
101
  text: string;
102
+ type: "text";
103
103
  }>, "many">;
104
104
  }, "strict", z.ZodTypeAny, {
105
105
  role: "user";
106
106
  content: {
107
- type: "text";
108
107
  text: string;
108
+ type: "text";
109
109
  }[];
110
110
  }, {
111
111
  role: "user";
112
112
  content: {
113
- type: "text";
114
113
  text: string;
114
+ type: "text";
115
115
  }[];
116
116
  }>>;
117
117
  toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -147,12 +147,12 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
147
147
  message: z.ZodString;
148
148
  details: z.ZodOptional<z.ZodUnknown>;
149
149
  }, "strict", z.ZodTypeAny, {
150
- message: string;
151
150
  type: "execution";
151
+ message: string;
152
152
  details?: unknown;
153
153
  }, {
154
- message: string;
155
154
  type: "execution";
155
+ message: string;
156
156
  details?: unknown;
157
157
  }>]>>;
158
158
  }, "strict", z.ZodTypeAny, {
@@ -166,8 +166,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
166
166
  message: string;
167
167
  }[];
168
168
  } | {
169
- message: string;
170
169
  type: "execution";
170
+ message: string;
171
171
  details?: unknown;
172
172
  } | undefined;
173
173
  }, {
@@ -181,8 +181,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
181
181
  message: string;
182
182
  }[];
183
183
  } | {
184
- message: string;
185
184
  type: "execution";
185
+ message: string;
186
186
  details?: unknown;
187
187
  } | undefined;
188
188
  }>, "many">>;
@@ -291,8 +291,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
291
291
  errorHandling: string;
292
292
  constraints?: string[] | undefined;
293
293
  };
294
- result?: unknown;
295
294
  toolName?: string | undefined;
295
+ result?: unknown;
296
296
  }, {
297
297
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
298
298
  description: string;
@@ -307,8 +307,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
307
307
  errorHandling: string;
308
308
  constraints?: string[] | undefined;
309
309
  };
310
- result?: unknown;
311
310
  toolName?: string | undefined;
311
+ result?: unknown;
312
312
  }>, "many">;
313
313
  complexity: z.ZodEnum<["low", "medium", "high"]>;
314
314
  recommendedModel: z.ZodString;
@@ -332,8 +332,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
332
332
  errorHandling: string;
333
333
  constraints?: string[] | undefined;
334
334
  };
335
- result?: unknown;
336
335
  toolName?: string | undefined;
336
+ result?: unknown;
337
337
  }[];
338
338
  complexity: "low" | "medium" | "high";
339
339
  recommendedModel: string;
@@ -357,8 +357,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
357
357
  errorHandling: string;
358
358
  constraints?: string[] | undefined;
359
359
  };
360
- result?: unknown;
361
360
  toolName?: string | undefined;
361
+ result?: unknown;
362
362
  }[];
363
363
  complexity: "low" | "medium" | "high";
364
364
  recommendedModel: string;
@@ -373,12 +373,12 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
373
373
  message: z.ZodString;
374
374
  suggestion: z.ZodOptional<z.ZodString>;
375
375
  }, "strip", z.ZodTypeAny, {
376
- message: string;
377
376
  type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
377
+ message: string;
378
378
  suggestion?: string | undefined;
379
379
  }, {
380
- message: string;
381
380
  type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
381
+ message: string;
382
382
  suggestion?: string | undefined;
383
383
  }>, "many">>;
384
384
  replanContext: z.ZodOptional<z.ZodObject<{
@@ -427,8 +427,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
427
427
  errorHandling: string;
428
428
  constraints?: string[] | undefined;
429
429
  };
430
- result?: unknown;
431
430
  toolName?: string | undefined;
431
+ result?: unknown;
432
432
  }[];
433
433
  complexity: "low" | "medium" | "high";
434
434
  recommendedModel: string;
@@ -440,8 +440,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
440
440
  };
441
441
  createdAt: string;
442
442
  conflicts?: {
443
- message: string;
444
443
  type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
444
+ message: string;
445
445
  suggestion?: string | undefined;
446
446
  }[] | undefined;
447
447
  replanContext?: {
@@ -481,8 +481,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
481
481
  errorHandling: string;
482
482
  constraints?: string[] | undefined;
483
483
  };
484
- result?: unknown;
485
484
  toolName?: string | undefined;
485
+ result?: unknown;
486
486
  }[];
487
487
  complexity: "low" | "medium" | "high";
488
488
  recommendedModel: string;
@@ -494,8 +494,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
494
494
  };
495
495
  createdAt: string;
496
496
  conflicts?: {
497
- message: string;
498
497
  type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
498
+ message: string;
499
499
  suggestion?: string | undefined;
500
500
  }[] | undefined;
501
501
  replanContext?: {
@@ -646,6 +646,6 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
646
646
  swapOrBridge?: "lifi" | undefined;
647
647
  } | undefined;
648
648
  };
649
- messages: import("@ai-sdk/provider-utils").ModelMessage[];
649
+ messages: (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[];
650
650
  }>;
651
651
  //# sourceMappingURL=chatContext.d.ts.map