@agentshouse/kit-wire 0.0.0-placeholder → 0.1.0-c0f6ddeaad2f1

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.
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export const KIT_TOOLS = ['upload', 'update', 'info'];
3
+ const HOUSE_ARGUMENTS = {"door":{"rooms/discover":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"operation_id":{"type":"string"}},"required":["prefixes"],"additionalProperties":false},"room-chunks/list":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"operation_id":{"type":"string"}},"required":["prefixes"],"additionalProperties":false},"changes/enumerate":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"positions":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","minLength":1,"maxLength":128},"position":{"type":"string"},"log_epoch":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"page":{"type":"object","properties":{"through":{"type":"string"},"read":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["through","read"],"additionalProperties":false}},"required":["authority","position","log_epoch"],"additionalProperties":false}},"operation_id":{"type":"string"}},"required":["prefixes","positions"],"additionalProperties":false},"files/revisions/list":{"type":"object","properties":{"path":{"type":"string","minLength":1},"revision":{"type":"string"},"before":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"limit":{"type":"integer","minimum":1,"maximum":200},"operation_id":{"type":"string"}},"required":["path"],"additionalProperties":false},"update":{"anyOf":[{"type":"object","properties":{"mount":{"type":"string","minLength":1},"changes":{"minItems":1,"maxItems":10000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"set_field"},"path":{"type":"string","minLength":1},"field":{"type":"string","minLength":1,"maxLength":128},"base":{"$ref":"#/$defs/__schema0"},"value":{"$ref":"#/$defs/__schema1"}},"required":["op","path","field","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_section"},"path":{"type":"string","minLength":1},"section":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\r\\n]+$"},"base":{"type":["string","null"]},"content":{"type":"string"}},"required":["op","path","section","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_preamble"},"path":{"type":"string","minLength":1},"base":{"type":"string"},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create"},"path":{"type":"string","minLength":1},"content":{"type":"string"}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"patch"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"find":{"type":"string","minLength":1},"replace":{"type":"string"}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"rename"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1},"base":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string","minLength":1,"maxLength":64}}]}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","base"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create_typed"},"path":{"type":"string","minLength":1},"type":{"type":"string","minLength":1,"maxLength":64},"fields":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128},"additionalProperties":{"$ref":"#/$defs/__schema2"}}},"required":["op","path","type","fields"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upload"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"local_id":{"type":"string","minLength":1,"maxLength":64},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255}},"required":["op","path","bytes","sha256","media_type"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"mkdir"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"content":{"type":"boolean"},"readme":{"type":"string"},"space":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path","name"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"time_zone":{"type":"string","maxLength":64},"public":{"type":"boolean"},"space":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"restore"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"erase"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trash_empty"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"versions_clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false}]}},"runtime":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_ref":{"type":"string"},"release":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation_id":{"type":"string"}},"required":["changes"],"additionalProperties":false},{"type":"object","properties":{"mount":{"type":"string","minLength":1},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"operation":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["url","operation","bytes","sha256"],"additionalProperties":false},"runtime":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_ref":{"type":"string"},"release":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation_id":{"type":"string"}},"required":["paths","upload"],"additionalProperties":false}],"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]},"__schema2":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema2"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema2"}}]}}}},"tools":{"upload":{"type":"object","properties":{"file":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"download_url":{"type":"string","format":"uri"},"file_id":{"type":"string","minLength":1},"mime_type":{"type":"string","minLength":1,"maxLength":255},"file_name":{"type":"string"}},"required":["download_url","file_id"],"additionalProperties":false}]},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255},"upload":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"part_sha256":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"additionalProperties":false},"update":{"type":"object","properties":{"changes":{"minItems":1,"maxItems":10000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"set_field"},"path":{"type":"string","minLength":1},"field":{"type":"string","minLength":1,"maxLength":128},"base":{"$ref":"#/$defs/__schema0"},"value":{"$ref":"#/$defs/__schema1"}},"required":["op","path","field","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_section"},"path":{"type":"string","minLength":1},"section":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\r\\n]+$"},"base":{"type":["string","null"]},"content":{"type":"string"}},"required":["op","path","section","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_preamble"},"path":{"type":"string","minLength":1},"base":{"type":"string"},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create"},"path":{"type":"string","minLength":1},"content":{"type":"string"}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"patch"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"find":{"type":"string","minLength":1},"replace":{"type":"string"}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"rename"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1},"base":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string","minLength":1,"maxLength":64}}]}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","base"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upload"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"local_id":{"type":"string","minLength":1,"maxLength":64},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255}},"required":["op","path","bytes","sha256","media_type"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"mkdir"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"content":{"type":"boolean"},"readme":{"type":"string"},"space":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path","name"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"time_zone":{"type":"string","maxLength":64},"public":{"type":"boolean"},"space":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"restore"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"erase"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trash_empty"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"versions_clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false}]}},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"operation":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["url","operation","bytes","sha256"],"additionalProperties":false},"mount":{"type":"string","minLength":1},"op":{"type":"string","const":"stage"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}},"info":{"type":"object","properties":{"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"app":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1},"environment":{"type":"string","minLength":1},"conversation":{"type":"string","minLength":1},"view":{"type":"string","enum":["sources","history"]},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"cursor":{"type":"string","minLength":1}},"additionalProperties":false}}};
4
+ function declared(shapes) {
5
+ return Object.fromEntries(Object.entries(shapes ?? {}).map(([name, shape]) => [
6
+ name,
7
+ z.fromJSONSchema(shape),
8
+ ]));
9
+ }
10
+ export const KIT_DOOR_ARGUMENTS = declared(HOUSE_ARGUMENTS.door);
11
+ export const KIT_TOOL_ARGUMENTS = declared(HOUSE_ARGUMENTS.tools);
@@ -0,0 +1,420 @@
1
+ import { z } from 'zod';
2
+ export declare const KIT_CONNECTION_PATH = "/kit/stream";
3
+ export declare const KIT_CONNECTION_PROTOCOL_PREFIX = "house.kit.stream.";
4
+ export declare const KIT_CAUSE: z.ZodString;
5
+ export declare const KIT_SETTINGS: z.ZodObject<{
6
+ skills: z.ZodBoolean;
7
+ workspace: z.ZodString;
8
+ }, z.core.$strict>;
9
+ export type KitSettings = z.infer<typeof KIT_SETTINGS>;
10
+ export declare const KIT_CALL_RESULT: z.ZodUnion<readonly [z.ZodObject<{
11
+ provider_session_id: z.ZodString;
12
+ }, z.core.$strict>, z.ZodObject<{
13
+ refused: z.ZodString;
14
+ resume_refused: z.ZodOptional<z.ZodLiteral<true>>;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ exit_code: z.ZodInt;
17
+ }, z.core.$strict>, z.ZodObject<{
18
+ output: z.ZodString;
19
+ cut: z.ZodBoolean;
20
+ exit_code: z.ZodInt;
21
+ }, z.core.$strict>, z.ZodObject<{
22
+ output: z.ZodString;
23
+ cut: z.ZodBoolean;
24
+ timed_out: z.ZodLiteral<true>;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ started: z.ZodLiteral<true>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ settings: z.ZodObject<{
29
+ skills: z.ZodBoolean;
30
+ workspace: z.ZodString;
31
+ }, z.core.$strict>;
32
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
33
+ export type KitCallResult = z.infer<typeof KIT_CALL_RESULT>;
34
+ export declare const SESSION_CHOICE_BYTES_MAX = 128;
35
+ export declare const KIT_CALLS: {
36
+ open: z.ZodObject<{
37
+ type: z.ZodLiteral<"input">;
38
+ input_id: z.ZodUUID;
39
+ conversation_id: z.ZodUUID;
40
+ agent_id: z.ZodUUID;
41
+ provider_session_id: z.ZodNullable<z.ZodString>;
42
+ kind: z.ZodLiteral<"open">;
43
+ model: z.ZodOptional<z.ZodString>;
44
+ effort: z.ZodOptional<z.ZodString>;
45
+ afk: z.ZodOptional<z.ZodLiteral<true>>;
46
+ }, z.core.$strict>;
47
+ kill: z.ZodObject<{
48
+ type: z.ZodLiteral<"input">;
49
+ input_id: z.ZodUUID;
50
+ conversation_id: z.ZodUUID;
51
+ agent_id: z.ZodUUID;
52
+ provider_session_id: z.ZodNullable<z.ZodString>;
53
+ kind: z.ZodLiteral<"kill">;
54
+ }, z.core.$strict>;
55
+ done: z.ZodObject<{
56
+ type: z.ZodLiteral<"input">;
57
+ input_id: z.ZodUUID;
58
+ conversation_id: z.ZodUUID;
59
+ agent_id: z.ZodUUID;
60
+ provider_session_id: z.ZodNullable<z.ZodString>;
61
+ kind: z.ZodLiteral<"done">;
62
+ }, z.core.$strict>;
63
+ message: z.ZodObject<{
64
+ type: z.ZodLiteral<"input">;
65
+ input_id: z.ZodUUID;
66
+ conversation_id: z.ZodUUID;
67
+ agent_id: z.ZodUUID;
68
+ provider_session_id: z.ZodNullable<z.ZodString>;
69
+ kind: z.ZodLiteral<"message">;
70
+ model: z.ZodOptional<z.ZodString>;
71
+ effort: z.ZodOptional<z.ZodString>;
72
+ message_id: z.ZodUUID;
73
+ text: z.ZodString;
74
+ first: z.ZodBoolean;
75
+ at_once: z.ZodOptional<z.ZodLiteral<true>>;
76
+ recent: z.ZodOptional<z.ZodString>;
77
+ afk: z.ZodOptional<z.ZodLiteral<true>>;
78
+ }, z.core.$strict>;
79
+ take_out: z.ZodObject<{
80
+ type: z.ZodLiteral<"input">;
81
+ input_id: z.ZodUUID;
82
+ conversation_id: z.ZodUUID;
83
+ agent_id: z.ZodUUID;
84
+ provider_session_id: z.ZodNullable<z.ZodString>;
85
+ kind: z.ZodLiteral<"take_out">;
86
+ message_id: z.ZodUUID;
87
+ }, z.core.$strict>;
88
+ interrupt: z.ZodObject<{
89
+ type: z.ZodLiteral<"input">;
90
+ input_id: z.ZodUUID;
91
+ conversation_id: z.ZodUUID;
92
+ agent_id: z.ZodUUID;
93
+ provider_session_id: z.ZodNullable<z.ZodString>;
94
+ kind: z.ZodLiteral<"interrupt">;
95
+ turn_id: z.ZodUUID;
96
+ }, z.core.$strict>;
97
+ answer: z.ZodObject<{
98
+ type: z.ZodLiteral<"input">;
99
+ input_id: z.ZodUUID;
100
+ conversation_id: z.ZodUUID;
101
+ agent_id: z.ZodUUID;
102
+ provider_session_id: z.ZodNullable<z.ZodString>;
103
+ kind: z.ZodLiteral<"answer">;
104
+ model: z.ZodOptional<z.ZodString>;
105
+ effort: z.ZodOptional<z.ZodString>;
106
+ interaction_id: z.ZodUUID;
107
+ response: z.ZodUnknown;
108
+ request: z.ZodUnknown;
109
+ }, z.core.$strict>;
110
+ option: z.ZodObject<{
111
+ type: z.ZodLiteral<"input">;
112
+ input_id: z.ZodUUID;
113
+ conversation_id: z.ZodUUID;
114
+ agent_id: z.ZodUUID;
115
+ provider_session_id: z.ZodNullable<z.ZodString>;
116
+ kind: z.ZodLiteral<"option">;
117
+ model: z.ZodOptional<z.ZodString>;
118
+ effort: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strict>;
120
+ sign_in: z.ZodObject<{
121
+ type: z.ZodLiteral<"input">;
122
+ input_id: z.ZodUUID;
123
+ conversation_id: z.ZodNull;
124
+ agent_id: z.ZodNull;
125
+ provider_session_id: z.ZodNull;
126
+ kind: z.ZodLiteral<"sign_in">;
127
+ cli: z.ZodString;
128
+ ends_in: z.ZodInt;
129
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
130
+ }, z.core.$strict>;
131
+ update: z.ZodObject<{
132
+ type: z.ZodLiteral<"input">;
133
+ input_id: z.ZodUUID;
134
+ conversation_id: z.ZodNull;
135
+ agent_id: z.ZodNull;
136
+ provider_session_id: z.ZodNull;
137
+ kind: z.ZodLiteral<"update">;
138
+ release: z.ZodString;
139
+ }, z.core.$strict>;
140
+ settings: z.ZodObject<{
141
+ type: z.ZodLiteral<"input">;
142
+ input_id: z.ZodUUID;
143
+ conversation_id: z.ZodNull;
144
+ agent_id: z.ZodNull;
145
+ provider_session_id: z.ZodNull;
146
+ kind: z.ZodLiteral<"settings">;
147
+ skills: z.ZodOptional<z.ZodBoolean>;
148
+ workspace: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strict>;
150
+ run_wizard: z.ZodObject<{
151
+ type: z.ZodLiteral<"input">;
152
+ input_id: z.ZodUUID;
153
+ conversation_id: z.ZodNull;
154
+ agent_id: z.ZodNull;
155
+ provider_session_id: z.ZodNull;
156
+ kind: z.ZodLiteral<"run_wizard">;
157
+ script: z.ZodString;
158
+ }, z.core.$strict>;
159
+ run_function: z.ZodObject<{
160
+ type: z.ZodLiteral<"input">;
161
+ input_id: z.ZodUUID;
162
+ conversation_id: z.ZodNull;
163
+ agent_id: z.ZodNull;
164
+ provider_session_id: z.ZodNull;
165
+ kind: z.ZodLiteral<"run_function">;
166
+ script: z.ZodString;
167
+ input: z.ZodUnknown;
168
+ terminal: z.ZodBoolean;
169
+ time_cap: z.ZodInt;
170
+ output_cap: z.ZodInt;
171
+ }, z.core.$strict>;
172
+ };
173
+ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
174
+ type: z.ZodLiteral<"input">;
175
+ input_id: z.ZodUUID;
176
+ conversation_id: z.ZodUUID;
177
+ agent_id: z.ZodUUID;
178
+ provider_session_id: z.ZodNullable<z.ZodString>;
179
+ kind: z.ZodLiteral<"open">;
180
+ model: z.ZodOptional<z.ZodString>;
181
+ effort: z.ZodOptional<z.ZodString>;
182
+ afk: z.ZodOptional<z.ZodLiteral<true>>;
183
+ }, z.core.$strict>, z.ZodObject<{
184
+ type: z.ZodLiteral<"input">;
185
+ input_id: z.ZodUUID;
186
+ conversation_id: z.ZodUUID;
187
+ agent_id: z.ZodUUID;
188
+ provider_session_id: z.ZodNullable<z.ZodString>;
189
+ kind: z.ZodLiteral<"kill">;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ type: z.ZodLiteral<"input">;
192
+ input_id: z.ZodUUID;
193
+ conversation_id: z.ZodUUID;
194
+ agent_id: z.ZodUUID;
195
+ provider_session_id: z.ZodNullable<z.ZodString>;
196
+ kind: z.ZodLiteral<"done">;
197
+ }, z.core.$strict>, z.ZodObject<{
198
+ type: z.ZodLiteral<"input">;
199
+ input_id: z.ZodUUID;
200
+ conversation_id: z.ZodUUID;
201
+ agent_id: z.ZodUUID;
202
+ provider_session_id: z.ZodNullable<z.ZodString>;
203
+ kind: z.ZodLiteral<"message">;
204
+ model: z.ZodOptional<z.ZodString>;
205
+ effort: z.ZodOptional<z.ZodString>;
206
+ message_id: z.ZodUUID;
207
+ text: z.ZodString;
208
+ first: z.ZodBoolean;
209
+ at_once: z.ZodOptional<z.ZodLiteral<true>>;
210
+ recent: z.ZodOptional<z.ZodString>;
211
+ afk: z.ZodOptional<z.ZodLiteral<true>>;
212
+ }, z.core.$strict>, z.ZodObject<{
213
+ type: z.ZodLiteral<"input">;
214
+ input_id: z.ZodUUID;
215
+ conversation_id: z.ZodUUID;
216
+ agent_id: z.ZodUUID;
217
+ provider_session_id: z.ZodNullable<z.ZodString>;
218
+ kind: z.ZodLiteral<"take_out">;
219
+ message_id: z.ZodUUID;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ type: z.ZodLiteral<"input">;
222
+ input_id: z.ZodUUID;
223
+ conversation_id: z.ZodUUID;
224
+ agent_id: z.ZodUUID;
225
+ provider_session_id: z.ZodNullable<z.ZodString>;
226
+ kind: z.ZodLiteral<"interrupt">;
227
+ turn_id: z.ZodUUID;
228
+ }, z.core.$strict>, z.ZodObject<{
229
+ type: z.ZodLiteral<"input">;
230
+ input_id: z.ZodUUID;
231
+ conversation_id: z.ZodUUID;
232
+ agent_id: z.ZodUUID;
233
+ provider_session_id: z.ZodNullable<z.ZodString>;
234
+ kind: z.ZodLiteral<"answer">;
235
+ model: z.ZodOptional<z.ZodString>;
236
+ effort: z.ZodOptional<z.ZodString>;
237
+ interaction_id: z.ZodUUID;
238
+ response: z.ZodUnknown;
239
+ request: z.ZodUnknown;
240
+ }, z.core.$strict>, z.ZodObject<{
241
+ type: z.ZodLiteral<"input">;
242
+ input_id: z.ZodUUID;
243
+ conversation_id: z.ZodUUID;
244
+ agent_id: z.ZodUUID;
245
+ provider_session_id: z.ZodNullable<z.ZodString>;
246
+ kind: z.ZodLiteral<"option">;
247
+ model: z.ZodOptional<z.ZodString>;
248
+ effort: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ type: z.ZodLiteral<"input">;
251
+ input_id: z.ZodUUID;
252
+ conversation_id: z.ZodNull;
253
+ agent_id: z.ZodNull;
254
+ provider_session_id: z.ZodNull;
255
+ kind: z.ZodLiteral<"sign_in">;
256
+ cli: z.ZodString;
257
+ ends_in: z.ZodInt;
258
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ type: z.ZodLiteral<"input">;
261
+ input_id: z.ZodUUID;
262
+ conversation_id: z.ZodNull;
263
+ agent_id: z.ZodNull;
264
+ provider_session_id: z.ZodNull;
265
+ kind: z.ZodLiteral<"update">;
266
+ release: z.ZodString;
267
+ }, z.core.$strict>, z.ZodObject<{
268
+ type: z.ZodLiteral<"input">;
269
+ input_id: z.ZodUUID;
270
+ conversation_id: z.ZodNull;
271
+ agent_id: z.ZodNull;
272
+ provider_session_id: z.ZodNull;
273
+ kind: z.ZodLiteral<"settings">;
274
+ skills: z.ZodOptional<z.ZodBoolean>;
275
+ workspace: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strict>, z.ZodObject<{
277
+ type: z.ZodLiteral<"input">;
278
+ input_id: z.ZodUUID;
279
+ conversation_id: z.ZodNull;
280
+ agent_id: z.ZodNull;
281
+ provider_session_id: z.ZodNull;
282
+ kind: z.ZodLiteral<"run_wizard">;
283
+ script: z.ZodString;
284
+ }, z.core.$strict>, z.ZodObject<{
285
+ type: z.ZodLiteral<"input">;
286
+ input_id: z.ZodUUID;
287
+ conversation_id: z.ZodNull;
288
+ agent_id: z.ZodNull;
289
+ provider_session_id: z.ZodNull;
290
+ kind: z.ZodLiteral<"run_function">;
291
+ script: z.ZodString;
292
+ input: z.ZodUnknown;
293
+ terminal: z.ZodBoolean;
294
+ time_cap: z.ZodInt;
295
+ output_cap: z.ZodInt;
296
+ }, z.core.$strict>], "kind">;
297
+ export type KitCall = z.infer<typeof KIT_CALL>;
298
+ export type KitMethod = KitCall['kind'];
299
+ export type KitCallOf<Method extends KitMethod> = Extract<KitCall, {
300
+ kind: Method;
301
+ }>;
302
+ export declare const HOUSE_ONE_WAY_CALLS: {
303
+ beat: z.ZodObject<{
304
+ type: z.ZodLiteral<"beat">;
305
+ }, z.core.$strict>;
306
+ watching: z.ZodObject<{
307
+ type: z.ZodLiteral<"watching">;
308
+ watching: z.ZodBoolean;
309
+ }, z.core.$strict>;
310
+ work_available: z.ZodObject<{
311
+ type: z.ZodLiteral<"work_available">;
312
+ subject: z.ZodLiteral<"agents">;
313
+ }, z.core.$strict>;
314
+ wizard_input: z.ZodObject<{
315
+ type: z.ZodLiteral<"wizard_input">;
316
+ wizard: z.ZodUUID;
317
+ data: z.ZodString;
318
+ }, z.core.$strict>;
319
+ wizard_size: z.ZodObject<{
320
+ type: z.ZodLiteral<"wizard_size">;
321
+ wizard: z.ZodUUID;
322
+ cols: z.ZodInt;
323
+ rows: z.ZodInt;
324
+ }, z.core.$strict>;
325
+ wizard_end: z.ZodObject<{
326
+ type: z.ZodLiteral<"wizard_end">;
327
+ wizard: z.ZodUUID;
328
+ }, z.core.$strict>;
329
+ refused: z.ZodObject<{
330
+ type: z.ZodLiteral<"refused">;
331
+ code: z.ZodLiteral<"invalid_message">;
332
+ }, z.core.$strict>;
333
+ };
334
+ export type HouseOneWayCall = {
335
+ [Type in keyof typeof HOUSE_ONE_WAY_CALLS]: z.infer<(typeof HOUSE_ONE_WAY_CALLS)[Type]>;
336
+ }[keyof typeof HOUSE_ONE_WAY_CALLS];
337
+ export type HouseOneWayCallOf<Type extends HouseOneWayCall['type']> = Extract<HouseOneWayCall, {
338
+ type: Type;
339
+ }>;
340
+ export declare const STARTING_STEPS: readonly ['transcription', 'session'];
341
+ export declare const KIT_ONE_WAY_CALLS: {
342
+ turn: z.ZodObject<{
343
+ conversation_id: z.ZodUUID;
344
+ type: z.ZodLiteral<"turn">;
345
+ turn_id: z.ZodUUID;
346
+ operation: z.ZodUnknown;
347
+ }, z.core.$strict>;
348
+ process: z.ZodObject<{
349
+ conversation_id: z.ZodUUID;
350
+ type: z.ZodLiteral<"process">;
351
+ running: z.ZodBoolean;
352
+ }, z.core.$strict>;
353
+ commands: z.ZodObject<{
354
+ conversation_id: z.ZodUUID;
355
+ type: z.ZodLiteral<"commands">;
356
+ commands: z.ZodArray<z.ZodObject<{
357
+ name: z.ZodString;
358
+ description: z.ZodString;
359
+ input: z.ZodOptional<z.ZodNullable<z.ZodObject<{
360
+ hint: z.ZodString;
361
+ }, z.core.$loose>>>;
362
+ }, z.core.$loose>>;
363
+ }, z.core.$strict>;
364
+ options: z.ZodObject<{
365
+ conversation_id: z.ZodUUID;
366
+ type: z.ZodLiteral<"options">;
367
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
368
+ id: z.ZodString;
369
+ name: z.ZodString;
370
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ type: z.ZodLiteral<"select">;
373
+ currentValue: z.ZodString;
374
+ options: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
375
+ value: z.ZodString;
376
+ name: z.ZodString;
377
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ }, z.core.$loose>>, z.ZodArray<z.ZodObject<{
379
+ group: z.ZodString;
380
+ name: z.ZodString;
381
+ options: z.ZodArray<z.ZodObject<{
382
+ value: z.ZodString;
383
+ name: z.ZodString;
384
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ }, z.core.$loose>>;
386
+ }, z.core.$loose>>]>;
387
+ }, z.core.$loose>, z.ZodObject<{
388
+ id: z.ZodString;
389
+ name: z.ZodString;
390
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ type: z.ZodLiteral<"boolean">;
393
+ currentValue: z.ZodBoolean;
394
+ }, z.core.$loose>], "type">>;
395
+ }, z.core.$strict>;
396
+ starting: z.ZodObject<{
397
+ conversation_id: z.ZodUUID;
398
+ type: z.ZodLiteral<"starting">;
399
+ step: z.ZodNullable<z.ZodEnum<{
400
+ session: "session";
401
+ transcription: "transcription";
402
+ }>>;
403
+ }, z.core.$strict>;
404
+ state: z.ZodObject<{
405
+ conversation_id: z.ZodUUID;
406
+ type: z.ZodLiteral<"state">;
407
+ state: z.ZodUnknown;
408
+ }, z.core.$strict>;
409
+ wizard_output: z.ZodObject<{
410
+ type: z.ZodLiteral<"wizard_output">;
411
+ wizard: z.ZodUUID;
412
+ data: z.ZodString;
413
+ }, z.core.$strict>;
414
+ };
415
+ export type KitOneWayCall = {
416
+ [Type in keyof typeof KIT_ONE_WAY_CALLS]: z.infer<(typeof KIT_ONE_WAY_CALLS)[Type]>;
417
+ }[keyof typeof KIT_ONE_WAY_CALLS];
418
+ export type KitOneWayCallOf<Type extends KitOneWayCall['type']> = Extract<KitOneWayCall, {
419
+ type: Type;
420
+ }>;