@illalabs/interfaces 0.2.0-canary.eb4a29bf → 0.2.1

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.
@@ -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;AAMxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxC,CAAC"}
@@ -1,14 +1,21 @@
1
1
  import { z } from "zod";
2
- import { CoreMessageSchema, HistorySchema } from "./messages.js";
2
+ import { CoreMessageSchema, HistorySchema, ToolResultSchema } from "./messages.js";
3
+ import { PersonalityContextSchema } from "./personalityContext.js";
3
4
  import { ToolAutorouterSchema } from "./toolAutorouter.js";
4
5
  import { UserContextSchema } from "./userContext.js";
5
- export const CoreApiChatBodyRequestSchema = z
6
+ export const CoreApiChatBodyRequestBaseSchema = z
6
7
  .object({
7
8
  toolsConfig: ToolAutorouterSchema,
8
9
  messages: HistorySchema,
9
10
  userContext: UserContextSchema,
10
- prompt: CoreMessageSchema,
11
+ prompt: CoreMessageSchema.optional(),
12
+ toolResults: ToolResultSchema.array().optional(),
11
13
  languageModel: z.string().optional(),
14
+ personalityContext: PersonalityContextSchema,
12
15
  })
13
16
  .strict();
17
+ export const CoreApiChatBodyRequestSchema = CoreApiChatBodyRequestBaseSchema.refine((data) => data.prompt !== undefined ||
18
+ (data.toolResults !== undefined && data.toolResults.length > 0), {
19
+ message: "Either 'prompt' or 'toolResults' must be provided",
20
+ });
14
21
  //# sourceMappingURL=chatRequestBody.js.map
@@ -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,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KACxC,MAAM,CAAC;IACJ,WAAW,EAAE,oBAAoB;IACjC,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,iBAAiB;IAC9B,MAAM,EAAE,iBAAiB;IACzB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC;KACD,MAAM,EAAE,CAAC"}
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,QAAQ,EAAE;IAChD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,kBAAkB,EAAE,wBAAwB;CAC/C,CAAC;KACD,MAAM,EAAE,CAAC;AAEd,MAAM,CAAC,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"}
@@ -5,4 +5,5 @@ export * from "./executionCheckerQueryParams.js";
5
5
  export * from "./messages.js";
6
6
  export * from "./toolAutorouter.js";
7
7
  export * from "./userContext.js";
8
+ export * from "./personalityContext.js";
8
9
  //# 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"}
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"}
@@ -5,4 +5,5 @@ export * from "./executionCheckerQueryParams.js";
5
5
  export * from "./messages.js";
6
6
  export * from "./toolAutorouter.js";
7
7
  export * from "./userContext.js";
8
+ export * from "./personalityContext.js";
8
9
  //# 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"}
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"}
@@ -0,0 +1,12 @@
1
+ import type { TypeOf } from "zod";
2
+ import { z } from "zod";
3
+ export declare const CHANNEL_TYPES: readonly ["voice", "text"];
4
+ export declare const PersonalityContextSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
5
+ channel: z.ZodEnum<["voice", "text"]>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ channel: "text" | "voice";
8
+ }, {
9
+ channel: "text" | "voice";
10
+ }>>>;
11
+ export type PersonalityContext = TypeOf<typeof PersonalityContextSchema>;
12
+ //# sourceMappingURL=personalityContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"personalityContext.d.ts","sourceRoot":"","sources":["../../src/schemas/personalityContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,4BAA6B,CAAC;AAExD,eAAO,MAAM,wBAAwB;;;;;;IAKJ,CAAC;AAElC,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export const CHANNEL_TYPES = ["voice", "text"];
3
+ export const PersonalityContextSchema = z
4
+ .object({
5
+ channel: z.enum(CHANNEL_TYPES),
6
+ })
7
+ .optional()
8
+ .default({ channel: "text" });
9
+ //# sourceMappingURL=personalityContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"personalityContext.js","sourceRoot":"","sources":["../../src/schemas/personalityContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;AAExD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACpC,MAAM,CAAC;IACJ,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;CACjC,CAAC;KACD,QAAQ,EAAE;KACV,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@illalabs/interfaces",
3
- "version": "0.2.0-canary.eb4a29bf",
3
+ "version": "0.2.1",
4
4
  "description": "ILLA interfaces and types",
5
5
  "repository": {
6
6
  "type": "git",