@agentshouse/kit-wire 0.0.0-stage → 0.1.0-c29e71be8eca8
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/LICENSE +21 -0
- package/README.md +34 -2
- package/dist/acts.d.ts +399 -0
- package/dist/acts.js +219 -0
- package/dist/arguments.d.ts +11 -0
- package/dist/arguments.js +11 -0
- package/dist/connection.d.ts +405 -0
- package/dist/connection.js +205 -0
- package/dist/enrollment.d.ts +53 -0
- package/dist/enrollment.js +35 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +4 -0
- package/dist/wire.d.ts +519 -0
- package/dist/wire.js +57 -0
- package/package.json +36 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { KitDoorAct } from './acts.ts';
|
|
3
|
+
export declare const KIT_TOOLS: readonly ['upload', 'update', 'info'];
|
|
4
|
+
export type KitTool = (typeof KIT_TOOLS)[number];
|
|
5
|
+
export type KitArgumentShape = Readonly<Record<string, unknown>>;
|
|
6
|
+
export interface KitArgumentShapes {
|
|
7
|
+
readonly door: Readonly<Record<KitDoorAct, KitArgumentShape>>;
|
|
8
|
+
readonly tools: Readonly<Record<KitTool, KitArgumentShape>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const KIT_DOOR_ARGUMENTS: Readonly<Partial<Record<"changes/enumerate" | "files/revisions/list" | "room-chunks/list" | "rooms/discover" | "update", z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
11
|
+
export declare const KIT_TOOL_ARGUMENTS: Readonly<Partial<Record<"info" | "update" | "upload", z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
@@ -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":"write"},"path":{"type":"string","minLength":1},"content":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"edit"},"path":{"type":"string","minLength":1},"find":{"type":"string","minLength":1},"replace":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"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":"delete"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"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":"record"},"path":{"type":"string","minLength":1},"body":{"type":"string"},"claimed":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"name":{"type":"string","minLength":1,"maxLength":200},"key":{"type":"string","minLength":1},"original":{"type":"string","minLength":1}},"required":["op","path","body","claimed"],"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"],"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":"restore"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"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},{"type":"object","properties":{"op":{"type":"string","const":"trigger_create"},"room":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"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)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"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)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"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)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"}},"required":["op","room","description","condition","actions"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_set"},"trigger":{"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)$"},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"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)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"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)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"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)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"},"action":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["op","trigger"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_delete"},"trigger":{"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)$"}},"required":["op","trigger"],"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}]}},"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":"write"},"path":{"type":"string","minLength":1},"content":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"edit"},"path":{"type":"string","minLength":1},"find":{"type":"string","minLength":1},"replace":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"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":"delete"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"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":"record"},"path":{"type":"string","minLength":1},"body":{"type":"string"},"claimed":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"name":{"type":"string","minLength":1,"maxLength":200},"key":{"type":"string","minLength":1},"original":{"type":"string","minLength":1}},"required":["op","path","body","claimed"],"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"],"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":"restore"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"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},{"type":"object","properties":{"op":{"type":"string","const":"trigger_create"},"room":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"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)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"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)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"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)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"}},"required":["op","room","description","condition","actions"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_set"},"trigger":{"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)$"},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"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)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"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)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"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)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"},"action":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["op","trigger"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_delete"},"trigger":{"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)$"}},"required":["op","trigger"],"additionalProperties":false}]}},"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"},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"additionalProperties":false},"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},"history":{"type":"boolean"},"events":{"type":"boolean"},"errors":{"type":"boolean"},"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,405 @@
|
|
|
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
|
+
message: 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<"message">;
|
|
62
|
+
model: z.ZodOptional<z.ZodString>;
|
|
63
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
64
|
+
message_id: z.ZodUUID;
|
|
65
|
+
text: z.ZodString;
|
|
66
|
+
first: z.ZodBoolean;
|
|
67
|
+
at_once: z.ZodOptional<z.ZodLiteral<true>>;
|
|
68
|
+
recent: z.ZodOptional<z.ZodString>;
|
|
69
|
+
afk: z.ZodOptional<z.ZodLiteral<true>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
take_out: z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"input">;
|
|
73
|
+
input_id: z.ZodUUID;
|
|
74
|
+
conversation_id: z.ZodUUID;
|
|
75
|
+
agent_id: z.ZodUUID;
|
|
76
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
77
|
+
kind: z.ZodLiteral<"take_out">;
|
|
78
|
+
message_id: z.ZodUUID;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
interrupt: z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"input">;
|
|
82
|
+
input_id: z.ZodUUID;
|
|
83
|
+
conversation_id: z.ZodUUID;
|
|
84
|
+
agent_id: z.ZodUUID;
|
|
85
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
86
|
+
kind: z.ZodLiteral<"interrupt">;
|
|
87
|
+
turn_id: z.ZodUUID;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
answer: z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<"input">;
|
|
91
|
+
input_id: z.ZodUUID;
|
|
92
|
+
conversation_id: z.ZodUUID;
|
|
93
|
+
agent_id: z.ZodUUID;
|
|
94
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
95
|
+
kind: z.ZodLiteral<"answer">;
|
|
96
|
+
model: z.ZodOptional<z.ZodString>;
|
|
97
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
98
|
+
interaction_id: z.ZodUUID;
|
|
99
|
+
response: z.ZodUnknown;
|
|
100
|
+
request: z.ZodUnknown;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
option: z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<"input">;
|
|
104
|
+
input_id: z.ZodUUID;
|
|
105
|
+
conversation_id: z.ZodUUID;
|
|
106
|
+
agent_id: z.ZodUUID;
|
|
107
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
108
|
+
kind: z.ZodLiteral<"option">;
|
|
109
|
+
model: z.ZodOptional<z.ZodString>;
|
|
110
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
sign_in: z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"input">;
|
|
114
|
+
input_id: z.ZodUUID;
|
|
115
|
+
conversation_id: z.ZodNull;
|
|
116
|
+
agent_id: z.ZodNull;
|
|
117
|
+
provider_session_id: z.ZodNull;
|
|
118
|
+
kind: z.ZodLiteral<"sign_in">;
|
|
119
|
+
cli: z.ZodString;
|
|
120
|
+
ends_in: z.ZodInt;
|
|
121
|
+
api_key: z.ZodOptional<z.ZodLiteral<true>>;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
update: z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<"input">;
|
|
125
|
+
input_id: z.ZodUUID;
|
|
126
|
+
conversation_id: z.ZodNull;
|
|
127
|
+
agent_id: z.ZodNull;
|
|
128
|
+
provider_session_id: z.ZodNull;
|
|
129
|
+
kind: z.ZodLiteral<"update">;
|
|
130
|
+
release: z.ZodString;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
settings: z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"input">;
|
|
134
|
+
input_id: z.ZodUUID;
|
|
135
|
+
conversation_id: z.ZodNull;
|
|
136
|
+
agent_id: z.ZodNull;
|
|
137
|
+
provider_session_id: z.ZodNull;
|
|
138
|
+
kind: z.ZodLiteral<"settings">;
|
|
139
|
+
skills: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
run_wizard: z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<"input">;
|
|
144
|
+
input_id: z.ZodUUID;
|
|
145
|
+
conversation_id: z.ZodNull;
|
|
146
|
+
agent_id: z.ZodNull;
|
|
147
|
+
provider_session_id: z.ZodNull;
|
|
148
|
+
kind: z.ZodLiteral<"run_wizard">;
|
|
149
|
+
script: z.ZodString;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
run_function: z.ZodObject<{
|
|
152
|
+
type: z.ZodLiteral<"input">;
|
|
153
|
+
input_id: z.ZodUUID;
|
|
154
|
+
conversation_id: z.ZodNull;
|
|
155
|
+
agent_id: z.ZodNull;
|
|
156
|
+
provider_session_id: z.ZodNull;
|
|
157
|
+
kind: z.ZodLiteral<"run_function">;
|
|
158
|
+
script: z.ZodString;
|
|
159
|
+
input: z.ZodUnknown;
|
|
160
|
+
terminal: z.ZodBoolean;
|
|
161
|
+
time_cap: z.ZodInt;
|
|
162
|
+
output_cap: z.ZodInt;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
};
|
|
165
|
+
export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
166
|
+
type: z.ZodLiteral<"input">;
|
|
167
|
+
input_id: z.ZodUUID;
|
|
168
|
+
conversation_id: z.ZodUUID;
|
|
169
|
+
agent_id: z.ZodUUID;
|
|
170
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
171
|
+
kind: z.ZodLiteral<"open">;
|
|
172
|
+
model: z.ZodOptional<z.ZodString>;
|
|
173
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
174
|
+
afk: z.ZodOptional<z.ZodLiteral<true>>;
|
|
175
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
176
|
+
type: z.ZodLiteral<"input">;
|
|
177
|
+
input_id: z.ZodUUID;
|
|
178
|
+
conversation_id: z.ZodUUID;
|
|
179
|
+
agent_id: z.ZodUUID;
|
|
180
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
181
|
+
kind: z.ZodLiteral<"kill">;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"input">;
|
|
184
|
+
input_id: z.ZodUUID;
|
|
185
|
+
conversation_id: z.ZodUUID;
|
|
186
|
+
agent_id: z.ZodUUID;
|
|
187
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
188
|
+
kind: z.ZodLiteral<"message">;
|
|
189
|
+
model: z.ZodOptional<z.ZodString>;
|
|
190
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
191
|
+
message_id: z.ZodUUID;
|
|
192
|
+
text: z.ZodString;
|
|
193
|
+
first: z.ZodBoolean;
|
|
194
|
+
at_once: z.ZodOptional<z.ZodLiteral<true>>;
|
|
195
|
+
recent: z.ZodOptional<z.ZodString>;
|
|
196
|
+
afk: z.ZodOptional<z.ZodLiteral<true>>;
|
|
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<"take_out">;
|
|
204
|
+
message_id: z.ZodUUID;
|
|
205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"input">;
|
|
207
|
+
input_id: z.ZodUUID;
|
|
208
|
+
conversation_id: z.ZodUUID;
|
|
209
|
+
agent_id: z.ZodUUID;
|
|
210
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
211
|
+
kind: z.ZodLiteral<"interrupt">;
|
|
212
|
+
turn_id: z.ZodUUID;
|
|
213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"input">;
|
|
215
|
+
input_id: z.ZodUUID;
|
|
216
|
+
conversation_id: z.ZodUUID;
|
|
217
|
+
agent_id: z.ZodUUID;
|
|
218
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
219
|
+
kind: z.ZodLiteral<"answer">;
|
|
220
|
+
model: z.ZodOptional<z.ZodString>;
|
|
221
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
222
|
+
interaction_id: z.ZodUUID;
|
|
223
|
+
response: z.ZodUnknown;
|
|
224
|
+
request: z.ZodUnknown;
|
|
225
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"input">;
|
|
227
|
+
input_id: z.ZodUUID;
|
|
228
|
+
conversation_id: z.ZodUUID;
|
|
229
|
+
agent_id: z.ZodUUID;
|
|
230
|
+
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
231
|
+
kind: z.ZodLiteral<"option">;
|
|
232
|
+
model: z.ZodOptional<z.ZodString>;
|
|
233
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"input">;
|
|
236
|
+
input_id: z.ZodUUID;
|
|
237
|
+
conversation_id: z.ZodNull;
|
|
238
|
+
agent_id: z.ZodNull;
|
|
239
|
+
provider_session_id: z.ZodNull;
|
|
240
|
+
kind: z.ZodLiteral<"sign_in">;
|
|
241
|
+
cli: z.ZodString;
|
|
242
|
+
ends_in: z.ZodInt;
|
|
243
|
+
api_key: z.ZodOptional<z.ZodLiteral<true>>;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
type: z.ZodLiteral<"input">;
|
|
246
|
+
input_id: z.ZodUUID;
|
|
247
|
+
conversation_id: z.ZodNull;
|
|
248
|
+
agent_id: z.ZodNull;
|
|
249
|
+
provider_session_id: z.ZodNull;
|
|
250
|
+
kind: z.ZodLiteral<"update">;
|
|
251
|
+
release: z.ZodString;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"input">;
|
|
254
|
+
input_id: z.ZodUUID;
|
|
255
|
+
conversation_id: z.ZodNull;
|
|
256
|
+
agent_id: z.ZodNull;
|
|
257
|
+
provider_session_id: z.ZodNull;
|
|
258
|
+
kind: z.ZodLiteral<"settings">;
|
|
259
|
+
skills: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
262
|
+
type: z.ZodLiteral<"input">;
|
|
263
|
+
input_id: z.ZodUUID;
|
|
264
|
+
conversation_id: z.ZodNull;
|
|
265
|
+
agent_id: z.ZodNull;
|
|
266
|
+
provider_session_id: z.ZodNull;
|
|
267
|
+
kind: z.ZodLiteral<"run_wizard">;
|
|
268
|
+
script: z.ZodString;
|
|
269
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
270
|
+
type: z.ZodLiteral<"input">;
|
|
271
|
+
input_id: z.ZodUUID;
|
|
272
|
+
conversation_id: z.ZodNull;
|
|
273
|
+
agent_id: z.ZodNull;
|
|
274
|
+
provider_session_id: z.ZodNull;
|
|
275
|
+
kind: z.ZodLiteral<"run_function">;
|
|
276
|
+
script: z.ZodString;
|
|
277
|
+
input: z.ZodUnknown;
|
|
278
|
+
terminal: z.ZodBoolean;
|
|
279
|
+
time_cap: z.ZodInt;
|
|
280
|
+
output_cap: z.ZodInt;
|
|
281
|
+
}, z.core.$strict>], "kind">;
|
|
282
|
+
export type KitCall = z.infer<typeof KIT_CALL>;
|
|
283
|
+
export type KitMethod = KitCall['kind'];
|
|
284
|
+
export type KitCallOf<Method extends KitMethod> = Extract<KitCall, {
|
|
285
|
+
kind: Method;
|
|
286
|
+
}>;
|
|
287
|
+
export declare const HOUSE_ONE_WAY_CALLS: {
|
|
288
|
+
beat: z.ZodObject<{
|
|
289
|
+
type: z.ZodLiteral<"beat">;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
watching: z.ZodObject<{
|
|
292
|
+
type: z.ZodLiteral<"watching">;
|
|
293
|
+
watching: z.ZodBoolean;
|
|
294
|
+
}, z.core.$strict>;
|
|
295
|
+
work_available: z.ZodObject<{
|
|
296
|
+
type: z.ZodLiteral<"work_available">;
|
|
297
|
+
subject: z.ZodLiteral<"agents">;
|
|
298
|
+
}, z.core.$strict>;
|
|
299
|
+
wizard_input: z.ZodObject<{
|
|
300
|
+
type: z.ZodLiteral<"wizard_input">;
|
|
301
|
+
wizard: z.ZodUUID;
|
|
302
|
+
data: z.ZodString;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
wizard_size: z.ZodObject<{
|
|
305
|
+
type: z.ZodLiteral<"wizard_size">;
|
|
306
|
+
wizard: z.ZodUUID;
|
|
307
|
+
cols: z.ZodInt;
|
|
308
|
+
rows: z.ZodInt;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
wizard_end: z.ZodObject<{
|
|
311
|
+
type: z.ZodLiteral<"wizard_end">;
|
|
312
|
+
wizard: z.ZodUUID;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
refused: z.ZodObject<{
|
|
315
|
+
type: z.ZodLiteral<"refused">;
|
|
316
|
+
code: z.ZodLiteral<"invalid_message">;
|
|
317
|
+
}, z.core.$strict>;
|
|
318
|
+
};
|
|
319
|
+
export type HouseOneWayCall = {
|
|
320
|
+
[Type in keyof typeof HOUSE_ONE_WAY_CALLS]: z.infer<(typeof HOUSE_ONE_WAY_CALLS)[Type]>;
|
|
321
|
+
}[keyof typeof HOUSE_ONE_WAY_CALLS];
|
|
322
|
+
export type HouseOneWayCallOf<Type extends HouseOneWayCall['type']> = Extract<HouseOneWayCall, {
|
|
323
|
+
type: Type;
|
|
324
|
+
}>;
|
|
325
|
+
export declare const STARTING_STEPS: readonly ['transcription', 'session'];
|
|
326
|
+
export declare const KIT_ONE_WAY_CALLS: {
|
|
327
|
+
turn: z.ZodObject<{
|
|
328
|
+
conversation_id: z.ZodUUID;
|
|
329
|
+
type: z.ZodLiteral<"turn">;
|
|
330
|
+
turn_id: z.ZodUUID;
|
|
331
|
+
operation: z.ZodUnknown;
|
|
332
|
+
}, z.core.$strict>;
|
|
333
|
+
process: z.ZodObject<{
|
|
334
|
+
conversation_id: z.ZodUUID;
|
|
335
|
+
type: z.ZodLiteral<"process">;
|
|
336
|
+
running: z.ZodBoolean;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
commands: z.ZodObject<{
|
|
339
|
+
conversation_id: z.ZodUUID;
|
|
340
|
+
type: z.ZodLiteral<"commands">;
|
|
341
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
description: z.ZodString;
|
|
344
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
345
|
+
hint: z.ZodString;
|
|
346
|
+
}, z.core.$loose>>>;
|
|
347
|
+
}, z.core.$loose>>;
|
|
348
|
+
}, z.core.$strict>;
|
|
349
|
+
options: z.ZodObject<{
|
|
350
|
+
conversation_id: z.ZodUUID;
|
|
351
|
+
type: z.ZodLiteral<"options">;
|
|
352
|
+
options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
name: z.ZodString;
|
|
355
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
type: z.ZodLiteral<"select">;
|
|
358
|
+
currentValue: z.ZodString;
|
|
359
|
+
options: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
360
|
+
value: z.ZodString;
|
|
361
|
+
name: z.ZodString;
|
|
362
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
}, z.core.$loose>>, z.ZodArray<z.ZodObject<{
|
|
364
|
+
group: z.ZodString;
|
|
365
|
+
name: z.ZodString;
|
|
366
|
+
options: z.ZodArray<z.ZodObject<{
|
|
367
|
+
value: z.ZodString;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
370
|
+
}, z.core.$loose>>;
|
|
371
|
+
}, z.core.$loose>>]>;
|
|
372
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
+
type: z.ZodLiteral<"boolean">;
|
|
378
|
+
currentValue: z.ZodBoolean;
|
|
379
|
+
}, z.core.$loose>], "type">>;
|
|
380
|
+
}, z.core.$strict>;
|
|
381
|
+
starting: z.ZodObject<{
|
|
382
|
+
conversation_id: z.ZodUUID;
|
|
383
|
+
type: z.ZodLiteral<"starting">;
|
|
384
|
+
step: z.ZodNullable<z.ZodEnum<{
|
|
385
|
+
session: "session";
|
|
386
|
+
transcription: "transcription";
|
|
387
|
+
}>>;
|
|
388
|
+
}, z.core.$strict>;
|
|
389
|
+
state: z.ZodObject<{
|
|
390
|
+
conversation_id: z.ZodUUID;
|
|
391
|
+
type: z.ZodLiteral<"state">;
|
|
392
|
+
state: z.ZodUnknown;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
wizard_output: z.ZodObject<{
|
|
395
|
+
type: z.ZodLiteral<"wizard_output">;
|
|
396
|
+
wizard: z.ZodUUID;
|
|
397
|
+
data: z.ZodString;
|
|
398
|
+
}, z.core.$strict>;
|
|
399
|
+
};
|
|
400
|
+
export type KitOneWayCall = {
|
|
401
|
+
[Type in keyof typeof KIT_ONE_WAY_CALLS]: z.infer<(typeof KIT_ONE_WAY_CALLS)[Type]>;
|
|
402
|
+
}[keyof typeof KIT_ONE_WAY_CALLS];
|
|
403
|
+
export type KitOneWayCallOf<Type extends KitOneWayCall['type']> = Extract<KitOneWayCall, {
|
|
404
|
+
type: Type;
|
|
405
|
+
}>;
|