@illalabs/interfaces 0.2.0-canary.eb4a29bf → 0.2.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.
- package/dist/schemas/chatContext.d.ts +7 -0
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +13 -0
- 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/personalityContext.d.ts +12 -0
- package/dist/schemas/personalityContext.d.ts.map +1 -0
- package/dist/schemas/personalityContext.js +9 -0
- package/dist/schemas/personalityContext.js.map +1 -0
- package/package.json +1 -1
|
@@ -669,6 +669,13 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
669
669
|
})[];
|
|
670
670
|
}>;
|
|
671
671
|
languageModel: z.ZodOptional<z.ZodString>;
|
|
672
|
+
personalityContext: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
673
|
+
channel: z.ZodEnum<["voice", "text"]>;
|
|
674
|
+
}, "strip", z.ZodTypeAny, {
|
|
675
|
+
channel: "text" | "voice";
|
|
676
|
+
}, {
|
|
677
|
+
channel: "text" | "voice";
|
|
678
|
+
}>>>;
|
|
672
679
|
}, "messages">, {
|
|
673
680
|
toolsConfig: z.ZodObject<{
|
|
674
681
|
autoRouter: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC"}
|
|
@@ -669,6 +669,13 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodObject<{
|
|
|
669
669
|
})[];
|
|
670
670
|
}>;
|
|
671
671
|
languageModel: z.ZodOptional<z.ZodString>;
|
|
672
|
+
personalityContext: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
673
|
+
channel: z.ZodEnum<["voice", "text"]>;
|
|
674
|
+
}, "strip", z.ZodTypeAny, {
|
|
675
|
+
channel: "text" | "voice";
|
|
676
|
+
}, {
|
|
677
|
+
channel: "text" | "voice";
|
|
678
|
+
}>>>;
|
|
672
679
|
}, "strict", z.ZodTypeAny, {
|
|
673
680
|
toolsConfig: {
|
|
674
681
|
autoRouter?: {
|
|
@@ -820,6 +827,9 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodObject<{
|
|
|
820
827
|
error: import("../types/actions/errors.js").ActionError<unknown>;
|
|
821
828
|
})[];
|
|
822
829
|
};
|
|
830
|
+
personalityContext: {
|
|
831
|
+
channel: "text" | "voice";
|
|
832
|
+
};
|
|
823
833
|
languageModel?: string | undefined;
|
|
824
834
|
}, {
|
|
825
835
|
toolsConfig: {
|
|
@@ -973,5 +983,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodObject<{
|
|
|
973
983
|
})[];
|
|
974
984
|
};
|
|
975
985
|
languageModel?: string | undefined;
|
|
986
|
+
personalityContext?: {
|
|
987
|
+
channel: "text" | "voice";
|
|
988
|
+
} | undefined;
|
|
976
989
|
}>;
|
|
977
990
|
//# sourceMappingURL=chatRequestBody.d.ts.map
|
|
@@ -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;
|
|
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,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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alityContextSchema } from "./personalityContext.js";
|
|
3
4
|
import { ToolAutorouterSchema } from "./toolAutorouter.js";
|
|
4
5
|
import { UserContextSchema } from "./userContext.js";
|
|
5
6
|
export const CoreApiChatBodyRequestSchema = z
|
|
@@ -9,6 +10,7 @@ export const CoreApiChatBodyRequestSchema = z
|
|
|
9
10
|
userContext: UserContextSchema,
|
|
10
11
|
prompt: CoreMessageSchema,
|
|
11
12
|
languageModel: z.string().optional(),
|
|
13
|
+
personalityContext: PersonalityContextSchema,
|
|
12
14
|
})
|
|
13
15
|
.strict();
|
|
14
16
|
//# 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;
|
|
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,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,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;IACpC,kBAAkB,EAAE,wBAAwB;CAC/C,CAAC;KACD,MAAM,EAAE,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -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"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -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"}
|