@pinecall/agents 0.9.20
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 +202 -0
- package/README.md +121 -0
- package/dist/agent/accepts.d.ts +31 -0
- package/dist/agent/accepts.d.ts.map +1 -0
- package/dist/agent/accepts.js +27 -0
- package/dist/agent/accepts.js.map +1 -0
- package/dist/agent/agent.d.ts +151 -0
- package/dist/agent/agent.d.ts.map +1 -0
- package/dist/agent/agent.js +240 -0
- package/dist/agent/agent.js.map +1 -0
- package/dist/agent/authors.d.ts +12 -0
- package/dist/agent/authors.d.ts.map +1 -0
- package/dist/agent/authors.js +26 -0
- package/dist/agent/authors.js.map +1 -0
- package/dist/agent/decorators.d.ts +16 -0
- package/dist/agent/decorators.d.ts.map +1 -0
- package/dist/agent/decorators.js +43 -0
- package/dist/agent/decorators.js.map +1 -0
- package/dist/agent/docstrings.d.ts +35 -0
- package/dist/agent/docstrings.d.ts.map +1 -0
- package/dist/agent/docstrings.js +301 -0
- package/dist/agent/docstrings.js.map +1 -0
- package/dist/agent/knowledge.d.ts +9 -0
- package/dist/agent/knowledge.d.ts.map +1 -0
- package/dist/agent/knowledge.js +3 -0
- package/dist/agent/knowledge.js.map +1 -0
- package/dist/agent/lifecycle.d.ts +29 -0
- package/dist/agent/lifecycle.d.ts.map +1 -0
- package/dist/agent/lifecycle.js +9 -0
- package/dist/agent/lifecycle.js.map +1 -0
- package/dist/agent/searching.d.ts +7 -0
- package/dist/agent/searching.d.ts.map +1 -0
- package/dist/agent/searching.js +35 -0
- package/dist/agent/searching.js.map +1 -0
- package/dist/agent/stages.d.ts +23 -0
- package/dist/agent/stages.d.ts.map +1 -0
- package/dist/agent/stages.js +29 -0
- package/dist/agent/stages.js.map +1 -0
- package/dist/agent/state.d.ts +36 -0
- package/dist/agent/state.d.ts.map +1 -0
- package/dist/agent/state.js +93 -0
- package/dist/agent/state.js.map +1 -0
- package/dist/agent/tools.d.ts +61 -0
- package/dist/agent/tools.d.ts.map +1 -0
- package/dist/agent/tools.js +145 -0
- package/dist/agent/tools.js.map +1 -0
- package/dist/agent/view.d.ts +29 -0
- package/dist/agent/view.d.ts.map +1 -0
- package/dist/agent/view.js +29 -0
- package/dist/agent/view.js.map +1 -0
- package/dist/agent/visibility.d.ts +32 -0
- package/dist/agent/visibility.d.ts.map +1 -0
- package/dist/agent/visibility.js +77 -0
- package/dist/agent/visibility.js.map +1 -0
- package/dist/call/call.d.ts +137 -0
- package/dist/call/call.d.ts.map +1 -0
- package/dist/call/call.js +228 -0
- package/dist/call/call.js.map +1 -0
- package/dist/call/history.d.ts +28 -0
- package/dist/call/history.d.ts.map +1 -0
- package/dist/call/history.js +32 -0
- package/dist/call/history.js.map +1 -0
- package/dist/call/room.d.ts +56 -0
- package/dist/call/room.d.ts.map +1 -0
- package/dist/call/room.js +66 -0
- package/dist/call/room.js.map +1 -0
- package/dist/client/agent.d.ts +93 -0
- package/dist/client/agent.d.ts.map +1 -0
- package/dist/client/agent.js +230 -0
- package/dist/client/agent.js.map +1 -0
- package/dist/client/calls.d.ts +87 -0
- package/dist/client/calls.d.ts.map +1 -0
- package/dist/client/calls.js +180 -0
- package/dist/client/calls.js.map +1 -0
- package/dist/client/client.d.ts +112 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/client.js +284 -0
- package/dist/client/client.js.map +1 -0
- package/dist/client/connection.d.ts +52 -0
- package/dist/client/connection.d.ts.map +1 -0
- package/dist/client/connection.js +157 -0
- package/dist/client/connection.js.map +1 -0
- package/dist/client/endpoints.d.ts +9 -0
- package/dist/client/endpoints.d.ts.map +1 -0
- package/dist/client/endpoints.js +25 -0
- package/dist/client/endpoints.js.map +1 -0
- package/dist/client/frames.d.ts +29 -0
- package/dist/client/frames.d.ts.map +1 -0
- package/dist/client/frames.js +51 -0
- package/dist/client/frames.js.map +1 -0
- package/dist/client/index.d.ts +18 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +13 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/listeners.d.ts +35 -0
- package/dist/client/listeners.d.ts.map +1 -0
- package/dist/client/listeners.js +60 -0
- package/dist/client/listeners.js.map +1 -0
- package/dist/client/lost.d.ts +4 -0
- package/dist/client/lost.d.ts.map +1 -0
- package/dist/client/lost.js +8 -0
- package/dist/client/lost.js.map +1 -0
- package/dist/client/observe.d.ts +50 -0
- package/dist/client/observe.d.ts.map +1 -0
- package/dist/client/observe.js +125 -0
- package/dist/client/observe.js.map +1 -0
- package/dist/client/signed.d.ts +14 -0
- package/dist/client/signed.d.ts.map +1 -0
- package/dist/client/signed.js +18 -0
- package/dist/client/signed.js.map +1 -0
- package/dist/client/testing/gateway.d.ts +58 -0
- package/dist/client/testing/gateway.d.ts.map +1 -0
- package/dist/client/testing/gateway.js +175 -0
- package/dist/client/testing/gateway.js.map +1 -0
- package/dist/client/testing/index.d.ts +4 -0
- package/dist/client/testing/index.d.ts.map +1 -0
- package/dist/client/testing/index.js +4 -0
- package/dist/client/testing/index.js.map +1 -0
- package/dist/client/testing/log.d.ts +24 -0
- package/dist/client/testing/log.d.ts.map +1 -0
- package/dist/client/testing/log.js +106 -0
- package/dist/client/testing/log.js.map +1 -0
- package/dist/client/testing/loopback.d.ts +3 -0
- package/dist/client/testing/loopback.d.ts.map +1 -0
- package/dist/client/testing/loopback.js +3 -0
- package/dist/client/testing/loopback.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/connect.d.ts +42 -0
- package/dist/runtime/connect.d.ts.map +1 -0
- package/dist/runtime/connect.js +234 -0
- package/dist/runtime/connect.js.map +1 -0
- package/dist/runtime/dispatch.d.ts +32 -0
- package/dist/runtime/dispatch.d.ts.map +1 -0
- package/dist/runtime/dispatch.js +46 -0
- package/dist/runtime/dispatch.js.map +1 -0
- package/dist/runtime/environment.d.ts +7 -0
- package/dist/runtime/environment.d.ts.map +1 -0
- package/dist/runtime/environment.js +30 -0
- package/dist/runtime/environment.js.map +1 -0
- package/dist/runtime/recall.d.ts +9 -0
- package/dist/runtime/recall.d.ts.map +1 -0
- package/dist/runtime/recall.js +13 -0
- package/dist/runtime/recall.js.map +1 -0
- package/dist/runtime/run-tool.d.ts +18 -0
- package/dist/runtime/run-tool.d.ts.map +1 -0
- package/dist/runtime/run-tool.js +70 -0
- package/dist/runtime/run-tool.js.map +1 -0
- package/dist/serve/index.d.ts +5 -0
- package/dist/serve/index.d.ts.map +1 -0
- package/dist/serve/index.js +50 -0
- package/dist/serve/index.js.map +1 -0
- package/dist/serve/io.d.ts +14 -0
- package/dist/serve/io.d.ts.map +1 -0
- package/dist/serve/io.js +6 -0
- package/dist/serve/io.js.map +1 -0
- package/dist/serve/leaving.d.ts +12 -0
- package/dist/serve/leaving.d.ts.map +1 -0
- package/dist/serve/leaving.js +61 -0
- package/dist/serve/leaving.js.map +1 -0
- package/dist/serve/lines.d.ts +7 -0
- package/dist/serve/lines.d.ts.map +1 -0
- package/dist/serve/lines.js +25 -0
- package/dist/serve/lines.js.map +1 -0
- package/dist/serve/load.d.ts +26 -0
- package/dist/serve/load.d.ts.map +1 -0
- package/dist/serve/load.js +61 -0
- package/dist/serve/load.js.map +1 -0
- package/dist/serve/machine.d.ts +4 -0
- package/dist/serve/machine.d.ts.map +1 -0
- package/dist/serve/machine.js +33 -0
- package/dist/serve/machine.js.map +1 -0
- package/dist/serve/prompt.d.ts +7 -0
- package/dist/serve/prompt.d.ts.map +1 -0
- package/dist/serve/prompt.js +51 -0
- package/dist/serve/prompt.js.map +1 -0
- package/dist/serve/start.d.ts +7 -0
- package/dist/serve/start.d.ts.map +1 -0
- package/dist/serve/start.js +95 -0
- package/dist/serve/start.js.map +1 -0
- package/dist/serve/viewing.d.ts +17 -0
- package/dist/serve/viewing.d.ts.map +1 -0
- package/dist/serve/viewing.js +42 -0
- package/dist/serve/viewing.js.map +1 -0
- package/dist/views/built-in-rules.d.ts +9 -0
- package/dist/views/built-in-rules.d.ts.map +1 -0
- package/dist/views/built-in-rules.js +28 -0
- package/dist/views/built-in-rules.js.map +1 -0
- package/dist/views/components.d.ts +17 -0
- package/dist/views/components.d.ts.map +1 -0
- package/dist/views/components.js +33 -0
- package/dist/views/components.js.map +1 -0
- package/dist/views/jsx-dev-runtime.d.ts +3 -0
- package/dist/views/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/views/jsx-dev-runtime.js +4 -0
- package/dist/views/jsx-dev-runtime.js.map +1 -0
- package/dist/views/jsx-runtime.d.ts +46 -0
- package/dist/views/jsx-runtime.d.ts.map +1 -0
- package/dist/views/jsx-runtime.js +63 -0
- package/dist/views/jsx-runtime.js.map +1 -0
- package/dist/views/layout.d.ts +19 -0
- package/dist/views/layout.d.ts.map +1 -0
- package/dist/views/layout.js +58 -0
- package/dist/views/layout.js.map +1 -0
- package/dist/views/nodes.d.ts +48 -0
- package/dist/views/nodes.d.ts.map +1 -0
- package/dist/views/nodes.js +45 -0
- package/dist/views/nodes.js.map +1 -0
- package/dist/views/panels.d.ts +17 -0
- package/dist/views/panels.d.ts.map +1 -0
- package/dist/views/panels.js +62 -0
- package/dist/views/panels.js.map +1 -0
- package/dist/views/render.d.ts +11 -0
- package/dist/views/render.d.ts.map +1 -0
- package/dist/views/render.js +19 -0
- package/dist/views/render.js.map +1 -0
- package/dist/wire/agent-config.d.ts +213 -0
- package/dist/wire/agent-config.d.ts.map +1 -0
- package/dist/wire/agent-config.js +126 -0
- package/dist/wire/agent-config.js.map +1 -0
- package/dist/wire/codec.d.ts +43 -0
- package/dist/wire/codec.d.ts.map +1 -0
- package/dist/wire/codec.js +51 -0
- package/dist/wire/codec.js.map +1 -0
- package/dist/wire/commands.d.ts +443 -0
- package/dist/wire/commands.d.ts.map +1 -0
- package/dist/wire/commands.js +203 -0
- package/dist/wire/commands.js.map +1 -0
- package/dist/wire/defs.d.ts +373 -0
- package/dist/wire/defs.d.ts.map +1 -0
- package/dist/wire/defs.js +212 -0
- package/dist/wire/defs.js.map +1 -0
- package/dist/wire/envelope.d.ts +29 -0
- package/dist/wire/envelope.d.ts.map +1 -0
- package/dist/wire/envelope.js +27 -0
- package/dist/wire/envelope.js.map +1 -0
- package/dist/wire/events-call.d.ts +446 -0
- package/dist/wire/events-call.d.ts.map +1 -0
- package/dist/wire/events-call.js +196 -0
- package/dist/wire/events-call.js.map +1 -0
- package/dist/wire/events.d.ts +946 -0
- package/dist/wire/events.d.ts.map +1 -0
- package/dist/wire/events.js +309 -0
- package/dist/wire/events.js.map +1 -0
- package/dist/wire/index.d.ts +19 -0
- package/dist/wire/index.d.ts.map +1 -0
- package/dist/wire/index.js +19 -0
- package/dist/wire/index.js.map +1 -0
- package/dist/wire/metrics.d.ts +366 -0
- package/dist/wire/metrics.d.ts.map +1 -0
- package/dist/wire/metrics.js +269 -0
- package/dist/wire/metrics.js.map +1 -0
- package/dist/wire/reduce.d.ts +10 -0
- package/dist/wire/reduce.d.ts.map +1 -0
- package/dist/wire/reduce.js +367 -0
- package/dist/wire/reduce.js.map +1 -0
- package/dist/wire/registry.d.ts +1789 -0
- package/dist/wire/registry.d.ts.map +1 -0
- package/dist/wire/registry.js +118 -0
- package/dist/wire/registry.js.map +1 -0
- package/dist/wire/rest-data.d.ts +170 -0
- package/dist/wire/rest-data.d.ts.map +1 -0
- package/dist/wire/rest-data.js +78 -0
- package/dist/wire/rest-data.js.map +1 -0
- package/dist/wire/rest-hosting.d.ts +74 -0
- package/dist/wire/rest-hosting.d.ts.map +1 -0
- package/dist/wire/rest-hosting.js +38 -0
- package/dist/wire/rest-hosting.js.map +1 -0
- package/dist/wire/rest-retrieval.d.ts +214 -0
- package/dist/wire/rest-retrieval.d.ts.map +1 -0
- package/dist/wire/rest-retrieval.js +161 -0
- package/dist/wire/rest-retrieval.js.map +1 -0
- package/dist/wire/rest.d.ts +786 -0
- package/dist/wire/rest.d.ts.map +1 -0
- package/dist/wire/rest.js +238 -0
- package/dist/wire/rest.js.map +1 -0
- package/dist/wire/room.d.ts +106 -0
- package/dist/wire/room.d.ts.map +1 -0
- package/dist/wire/room.js +73 -0
- package/dist/wire/room.js.map +1 -0
- package/dist/wire/state.d.ts +915 -0
- package/dist/wire/state.d.ts.map +1 -0
- package/dist/wire/state.js +189 -0
- package/dist/wire/state.js.map +1 -0
- package/dist/wire/verbs.d.ts +73 -0
- package/dist/wire/verbs.d.ts.map +1 -0
- package/dist/wire/verbs.js +50 -0
- package/dist/wire/verbs.js.map +1 -0
- package/package.json +74 -0
- package/tsconfig.tenant.json +24 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** An entry read as the event its type names, typed; and the one place a key is renamed. */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { EntrySchema } from "./envelope.js";
|
|
4
|
+
import { COMMAND_SCHEMAS, EVENT_SCHEMAS } from "./registry.js";
|
|
5
|
+
export class UnknownType extends Error {
|
|
6
|
+
name = "UnknownType";
|
|
7
|
+
}
|
|
8
|
+
/** One log line from decoded JSON. A bad shape throws. */
|
|
9
|
+
export function decodeEntry(raw) {
|
|
10
|
+
return EntrySchema.parse(raw);
|
|
11
|
+
}
|
|
12
|
+
/** The entry's data as the shape its type names; an unknown type or a bad shape throws. */
|
|
13
|
+
export function eventOf(entry) {
|
|
14
|
+
if (!isEventType(entry.type)) {
|
|
15
|
+
throw new UnknownType(`unknown event type: ${entry.type}`);
|
|
16
|
+
}
|
|
17
|
+
return { type: entry.type, data: EVENT_SCHEMAS[entry.type].parse(entry.data) };
|
|
18
|
+
}
|
|
19
|
+
export function isEventType(type) {
|
|
20
|
+
return Object.hasOwn(EVENT_SCHEMAS, type);
|
|
21
|
+
}
|
|
22
|
+
/** The keys whose values belong to the app (its state, a tool's arguments, a map it named): never renamed below them. */
|
|
23
|
+
export const OPAQUE_KEYS = new Set(["app_state", "arguments", "attributes", "data", "facts", "input", "metadata", "output", "parameters", "prompt", "result", "state"]);
|
|
24
|
+
/** Rename every key from snake_case to camelCase, deep. Values are never touched. */
|
|
25
|
+
export function toCamel(value) {
|
|
26
|
+
return renameKeys(value, camelCase);
|
|
27
|
+
}
|
|
28
|
+
/** Rename every key from camelCase to snake_case, deep. Values are never touched. */
|
|
29
|
+
export function toSnake(value) {
|
|
30
|
+
return renameKeys(value, snakeCase);
|
|
31
|
+
}
|
|
32
|
+
function renameKeys(value, rename) {
|
|
33
|
+
if (Array.isArray(value)) {
|
|
34
|
+
return value.map((item) => renameKeys(item, rename));
|
|
35
|
+
}
|
|
36
|
+
if (value === null || typeof value !== "object") {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
const renamed = {};
|
|
40
|
+
for (const [key, inner] of Object.entries(value)) {
|
|
41
|
+
renamed[rename(key)] = OPAQUE_KEYS.has(key) ? inner : renameKeys(inner, rename);
|
|
42
|
+
}
|
|
43
|
+
return renamed;
|
|
44
|
+
}
|
|
45
|
+
function camelCase(key) {
|
|
46
|
+
return key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase());
|
|
47
|
+
}
|
|
48
|
+
function snakeCase(key) {
|
|
49
|
+
return key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=codec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec.js","sourceRoot":"","sources":["../../src/wire/codec.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAE5F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAc,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,eAAe,EAAoB,aAAa,EAAkB,MAAM,eAAe,CAAC;AAEjG,MAAM,OAAO,WAAY,SAAQ,KAAK;IAClB,IAAI,GAAG,aAAa,CAAC;CACxC;AAWD,0DAA0D;AAC1D,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,OAAO,CAAC,KAAY;IAClC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,WAAW,CAAC,uBAAuB,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7D,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAW,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;AAC5C,CAAC;AA8BD,yHAAyH;AACzH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAS,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAGhL,qFAAqF;AACrF,MAAM,UAAU,OAAO,CAAI,KAAQ;IACjC,OAAO,UAAU,CAAC,KAAK,EAAE,SAAS,CAAa,CAAC;AAClD,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,OAAO,CAAI,KAAQ;IACjC,OAAO,UAAU,CAAC,KAAK,EAAE,SAAS,CAAa,CAAC;AAClD,CAAC;AAED,SAAS,UAAU,CAAC,KAAc,EAAE,MAA+B;IACjE,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,OAAO,GAA4B,EAAE,CAAC;IAC5C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAClF,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;AAClF,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
/** The commands an app sends a call, one schema each. */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Declare or change what the agent is: voice, models, greeting, the full tool list. Only
|
|
5
|
+
* the fields sent change.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AgentConfigureSchema: z.ZodObject<{
|
|
8
|
+
config: z.ZodObject<{
|
|
9
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
region: z.ZodEnum<{
|
|
12
|
+
dynamic: "dynamic";
|
|
13
|
+
static: "static";
|
|
14
|
+
}>;
|
|
15
|
+
}, z.core.$strict>>>>;
|
|
16
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
}, z.core.$strict>>>;
|
|
21
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
voice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$strict>>>;
|
|
27
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
provider: z.ZodString;
|
|
29
|
+
model: z.ZodString;
|
|
30
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
}, z.core.$strict>>>;
|
|
32
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
provider: z.ZodString;
|
|
34
|
+
model: z.ZodString;
|
|
35
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
}, z.core.$strict>>>;
|
|
37
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
39
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
40
|
+
eot_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
+
eager_eot_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
}, z.core.$strict>>>;
|
|
43
|
+
says: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
44
|
+
word: z.ZodString;
|
|
45
|
+
spoken: z.ZodString;
|
|
46
|
+
}, z.core.$strict>>>>;
|
|
47
|
+
hears: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
48
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
text: z.ZodString;
|
|
51
|
+
}, z.core.$strict>>>;
|
|
52
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
53
|
+
base: z.ZodString;
|
|
54
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
55
|
+
retrieved: "retrieved";
|
|
56
|
+
tool: "tool";
|
|
57
|
+
}>>>;
|
|
58
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
59
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$strict>>>;
|
|
61
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
62
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
63
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
64
|
+
}, z.core.$strict>>>;
|
|
65
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
66
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, z.core.$strict>>>;
|
|
68
|
+
record: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
69
|
+
tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
description: z.ZodString;
|
|
72
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
73
|
+
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
74
|
+
irreversible: "irreversible";
|
|
75
|
+
read: "read";
|
|
76
|
+
write: "write";
|
|
77
|
+
}>>>;
|
|
78
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
80
|
+
timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
+
}, z.core.$strict>>>>;
|
|
82
|
+
uses_knowledge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
83
|
+
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
visibility: z.ZodEnum<{
|
|
86
|
+
pii: "pii";
|
|
87
|
+
public: "public";
|
|
88
|
+
tenant: "tenant";
|
|
89
|
+
}>;
|
|
90
|
+
}, z.core.$strict>>>>;
|
|
91
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
}, z.core.$strict>>>;
|
|
94
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
from: z.ZodArray<z.ZodEnum<{
|
|
97
|
+
app: "app";
|
|
98
|
+
participant: "participant";
|
|
99
|
+
}>>;
|
|
100
|
+
}, z.core.$strict>>>>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
/** This socket is leaving, and its calls go on without it. */
|
|
104
|
+
export declare const AgentDrainSchema: z.ZodObject<{}, z.core.$strict>;
|
|
105
|
+
/**
|
|
106
|
+
* The app's first message: this socket speaks for this agent and answers these doors. The gateway
|
|
107
|
+
* answers agent.registered, or error.
|
|
108
|
+
*/
|
|
109
|
+
export declare const AgentRegisterSchema: z.ZodObject<{
|
|
110
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
111
|
+
channel: z.ZodEnum<{
|
|
112
|
+
phone: "phone";
|
|
113
|
+
web: "web";
|
|
114
|
+
whatsapp: "whatsapp";
|
|
115
|
+
}>;
|
|
116
|
+
number: z.ZodNullable<z.ZodString>;
|
|
117
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
}, z.core.$strict>>;
|
|
119
|
+
sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
takes_unclaimed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
122
|
+
answers_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
/**
|
|
125
|
+
* Make the model speak now, guided by an instruction it reads and the caller never hears: 'tell
|
|
126
|
+
* them a slot at 10:15 just opened'. On livekit's session.generate_reply; the sibling of
|
|
127
|
+
* agent.say, which speaks verbatim. The reply lands as turn.agent.
|
|
128
|
+
*/
|
|
129
|
+
export declare const AgentReplySchema: z.ZodObject<{
|
|
130
|
+
instructions: z.ZodString;
|
|
131
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
/**
|
|
134
|
+
* Make the agent say this text now, verbatim, outside the model's turn: a greeting, a read-back, a
|
|
135
|
+
* system notice. The reply lands as turn.agent.
|
|
136
|
+
*/
|
|
137
|
+
export declare const AgentSaySchema: z.ZodObject<{
|
|
138
|
+
text: z.ZodString;
|
|
139
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
/**
|
|
142
|
+
* Ask for a person without sending the caller anywhere: the call waits on hold until a supervisor
|
|
143
|
+
* takes the line, or until wait_s passes with nobody taking it. attention.answered says which.
|
|
144
|
+
*/
|
|
145
|
+
export declare const CallAttentionSchema: z.ZodObject<{
|
|
146
|
+
reason: z.ZodString;
|
|
147
|
+
wait_s: z.ZodNumber;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
/**
|
|
150
|
+
* Write down that the caller wants to be called back. Lands as callback.requested with via agent;
|
|
151
|
+
* placing the call is the app's.
|
|
152
|
+
*/
|
|
153
|
+
export declare const CallCallbackSchema: z.ZodObject<{
|
|
154
|
+
number: z.ZodString;
|
|
155
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
/** The caller asked never to be called again: their number joins the org's do-not-call list. */
|
|
159
|
+
export declare const CallOptOutSchema: z.ZodObject<{
|
|
160
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
/** The code the caller said, to bind this call to the page that shows it. */
|
|
163
|
+
export declare const CallClaimSchema: z.ZodObject<{
|
|
164
|
+
code: z.ZodString;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
/**
|
|
167
|
+
* Place an outbound call as this agent. The new call's log opens with call.dialing; call.started
|
|
168
|
+
* follows when the far end answers.
|
|
169
|
+
*/
|
|
170
|
+
export declare const CallDialSchema: z.ZodObject<{
|
|
171
|
+
to: z.ZodString;
|
|
172
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
caller: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
174
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
}, z.core.$strict>>>;
|
|
180
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
/** Send touch tones down the line, for an IVR on the far end. */
|
|
183
|
+
export declare const CallDtmfSchema: z.ZodObject<{
|
|
184
|
+
digits: z.ZodString;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
/**
|
|
187
|
+
* Hand the agent a fact from the tenant's backend: a slot freed, an order shipped, a payment
|
|
188
|
+
* confirmed. Lands as event.received with source app. The agent must have declared the name in its
|
|
189
|
+
* events with app among the senders, or the gateway answers error and nothing touches the log.
|
|
190
|
+
*/
|
|
191
|
+
export declare const CallEventSchema: z.ZodObject<{
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
194
|
+
}, z.core.$strict>;
|
|
195
|
+
/** End the call from the app's side. call.ended follows with reason agent_hung_up. */
|
|
196
|
+
export declare const CallHangupSchema: z.ZodObject<{
|
|
197
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
}, z.core.$strict>;
|
|
199
|
+
/** Put the caller on hold: they hear hold audio, the agent hears nothing. */
|
|
200
|
+
export declare const CallHoldSchema: z.ZodObject<{}, z.core.$strict>;
|
|
201
|
+
/**
|
|
202
|
+
* Write a line of the app's own into the call's log. It gets a seq like everything else and lands
|
|
203
|
+
* as custom.
|
|
204
|
+
*/
|
|
205
|
+
export declare const CallLogSchema: z.ZodObject<{
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
/** Mute the agent: it keeps listening and thinking, produces no audio. */
|
|
210
|
+
export declare const CallMuteSchema: z.ZodObject<{}, z.core.$strict>;
|
|
211
|
+
/**
|
|
212
|
+
* Send the caller to another number, or bring that number into the call. call.transferred says
|
|
213
|
+
* whether it worked, and which mode it was.
|
|
214
|
+
*/
|
|
215
|
+
export declare const CallTransferSchema: z.ZodObject<{
|
|
216
|
+
to: z.ZodString;
|
|
217
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
218
|
+
cold: "cold";
|
|
219
|
+
warm: "warm";
|
|
220
|
+
}>>>;
|
|
221
|
+
}, z.core.$strict>;
|
|
222
|
+
/** Take the caller off hold. */
|
|
223
|
+
export declare const CallUnholdSchema: z.ZodObject<{}, z.core.$strict>;
|
|
224
|
+
/** Unmute the agent. */
|
|
225
|
+
export declare const CallUnmuteSchema: z.ZodObject<{}, z.core.$strict>;
|
|
226
|
+
/**
|
|
227
|
+
* Why the verb did not run, in the words the console shows: the status it travels under, and the
|
|
228
|
+
* sentence.
|
|
229
|
+
*/
|
|
230
|
+
export declare const DevRefusalSchema: z.ZodObject<{
|
|
231
|
+
status: z.ZodInt;
|
|
232
|
+
detail: z.ZodString;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
/** What came of one dev.request, named by its id. */
|
|
235
|
+
export declare const DevAnswerSchema: z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
238
|
+
refused: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
239
|
+
status: z.ZodInt;
|
|
240
|
+
detail: z.ZodString;
|
|
241
|
+
}, z.core.$strict>>>;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
/**
|
|
244
|
+
* Silence a participant for the rest of the call: their audio leaves the room, for everyone in it.
|
|
245
|
+
* Lands as track.unpublished for their microphone. There is no unmute; a leg that must speak again
|
|
246
|
+
* is invited again.
|
|
247
|
+
*/
|
|
248
|
+
export declare const ParticipantMuteSchema: z.ZodObject<{
|
|
249
|
+
identity: z.ZodString;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
/**
|
|
252
|
+
* Put a participant out of the room. Lands as participant.left with reason participant_removed.
|
|
253
|
+
* Removing the caller ends the call.
|
|
254
|
+
*/
|
|
255
|
+
export declare const ParticipantRemoveSchema: z.ZodObject<{
|
|
256
|
+
identity: z.ZodString;
|
|
257
|
+
}, z.core.$strict>;
|
|
258
|
+
/** Is the socket alive? The gateway answers pong. */
|
|
259
|
+
export declare const PingSchema: z.ZodObject<{}, z.core.$strict>;
|
|
260
|
+
/**
|
|
261
|
+
* Rewrite one block of the prompt, whole, by name. The name must be one of the agent's declared
|
|
262
|
+
* blocks, or one of the default four; anything else is refused with the name.
|
|
263
|
+
*/
|
|
264
|
+
export declare const PromptSetSchema: z.ZodObject<{
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
text: z.ZodString;
|
|
267
|
+
}, z.core.$strict>;
|
|
268
|
+
/**
|
|
269
|
+
* Bring somebody else into the call's room. A second SIP leg dialed to a number is the warm path:
|
|
270
|
+
* the agent stays on with the caller while the other side answers. Lands as participant.joined
|
|
271
|
+
* when they arrive, or error when they do not.
|
|
272
|
+
*/
|
|
273
|
+
export declare const RoomInviteSchema: z.ZodObject<{
|
|
274
|
+
to: z.ZodString;
|
|
275
|
+
kind: z.ZodEnum<{
|
|
276
|
+
participant: "participant";
|
|
277
|
+
sip: "sip";
|
|
278
|
+
}>;
|
|
279
|
+
}, z.core.$strict>;
|
|
280
|
+
/**
|
|
281
|
+
* Push a payload to a browser in the room over the DataChannel: a card to render, a form to open.
|
|
282
|
+
* Lands as room.sent with the size, never the payload. The widget listens on pinecall.ui; a topic
|
|
283
|
+
* of the tenant's own reaches the tenant's own page code.
|
|
284
|
+
*/
|
|
285
|
+
export declare const RoomSendSchema: z.ZodObject<{
|
|
286
|
+
topic: z.ZodString;
|
|
287
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
288
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
/**
|
|
291
|
+
* Set up this one call before the first turn: the app's initial state, and any config that differs
|
|
292
|
+
* from the agent's defaults for this caller.
|
|
293
|
+
*/
|
|
294
|
+
export declare const SessionConfigureSchema: z.ZodObject<{
|
|
295
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
296
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
297
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
region: z.ZodEnum<{
|
|
300
|
+
dynamic: "dynamic";
|
|
301
|
+
static: "static";
|
|
302
|
+
}>;
|
|
303
|
+
}, z.core.$strict>>>>;
|
|
304
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
305
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
308
|
+
}, z.core.$strict>>>;
|
|
309
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
310
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
voice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
+
}, z.core.$strict>>>;
|
|
315
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
316
|
+
provider: z.ZodString;
|
|
317
|
+
model: z.ZodString;
|
|
318
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
319
|
+
}, z.core.$strict>>>;
|
|
320
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
321
|
+
provider: z.ZodString;
|
|
322
|
+
model: z.ZodString;
|
|
323
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
324
|
+
}, z.core.$strict>>>;
|
|
325
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
326
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
327
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
328
|
+
eot_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
329
|
+
eager_eot_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
330
|
+
}, z.core.$strict>>>;
|
|
331
|
+
says: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
332
|
+
word: z.ZodString;
|
|
333
|
+
spoken: z.ZodString;
|
|
334
|
+
}, z.core.$strict>>>>;
|
|
335
|
+
hears: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
336
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
337
|
+
path: z.ZodString;
|
|
338
|
+
text: z.ZodString;
|
|
339
|
+
}, z.core.$strict>>>;
|
|
340
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
341
|
+
base: z.ZodString;
|
|
342
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
343
|
+
retrieved: "retrieved";
|
|
344
|
+
tool: "tool";
|
|
345
|
+
}>>>;
|
|
346
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
347
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
348
|
+
}, z.core.$strict>>>;
|
|
349
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
350
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
351
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
352
|
+
}, z.core.$strict>>>;
|
|
353
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
354
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
+
}, z.core.$strict>>>;
|
|
356
|
+
record: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
357
|
+
tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
description: z.ZodString;
|
|
360
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
361
|
+
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
362
|
+
irreversible: "irreversible";
|
|
363
|
+
read: "read";
|
|
364
|
+
write: "write";
|
|
365
|
+
}>>>;
|
|
366
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
367
|
+
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
368
|
+
timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
369
|
+
}, z.core.$strict>>>>;
|
|
370
|
+
uses_knowledge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
371
|
+
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
visibility: z.ZodEnum<{
|
|
374
|
+
pii: "pii";
|
|
375
|
+
public: "public";
|
|
376
|
+
tenant: "tenant";
|
|
377
|
+
}>;
|
|
378
|
+
}, z.core.$strict>>>>;
|
|
379
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
}, z.core.$strict>>>;
|
|
382
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
from: z.ZodArray<z.ZodEnum<{
|
|
385
|
+
app: "app";
|
|
386
|
+
participant: "participant";
|
|
387
|
+
}>>;
|
|
388
|
+
}, z.core.$strict>>>>;
|
|
389
|
+
}, z.core.$strict>>>;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
/** The app's state changed and this is all of it. The platform logs state.changed and re-renders. */
|
|
392
|
+
export declare const StateSetSchema: z.ZodObject<{
|
|
393
|
+
state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
394
|
+
changed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
395
|
+
}, z.core.$strict>;
|
|
396
|
+
/** One supervise verb, from the human the door named. */
|
|
397
|
+
export declare const SupervisorVerbSchema: z.ZodObject<{
|
|
398
|
+
by: z.ZodObject<{
|
|
399
|
+
id: z.ZodString;
|
|
400
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
|
+
}, z.core.$strict>;
|
|
402
|
+
verb: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
403
|
+
verb: z.ZodLiteral<"say">;
|
|
404
|
+
text: z.ZodString;
|
|
405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
+
verb: z.ZodLiteral<"whisper">;
|
|
407
|
+
text: z.ZodString;
|
|
408
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
409
|
+
verb: z.ZodLiteral<"takeover">;
|
|
410
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
411
|
+
verb: z.ZodLiteral<"release">;
|
|
412
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
+
verb: z.ZodLiteral<"transfer">;
|
|
414
|
+
to: z.ZodString;
|
|
415
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
416
|
+
cold: "cold";
|
|
417
|
+
warm: "warm";
|
|
418
|
+
}>>>;
|
|
419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
420
|
+
verb: z.ZodLiteral<"end">;
|
|
421
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
}, z.core.$strict>], "verb">;
|
|
423
|
+
}, z.core.$strict>;
|
|
424
|
+
/**
|
|
425
|
+
* The tools the model may see now. The full list was declared in agent.configure; this is the
|
|
426
|
+
* subset whose when allows them in this state.
|
|
427
|
+
*/
|
|
428
|
+
export declare const ToolsSetSchema: z.ZodObject<{
|
|
429
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
description: z.ZodString;
|
|
432
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
433
|
+
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
434
|
+
irreversible: "irreversible";
|
|
435
|
+
read: "read";
|
|
436
|
+
write: "write";
|
|
437
|
+
}>>>;
|
|
438
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
|
+
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
440
|
+
timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
441
|
+
}, z.core.$strict>>;
|
|
442
|
+
}, z.core.$strict>;
|
|
443
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/wire/commands.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE/B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,iCAAqB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;kBAO9B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;kBAG3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;kBAGzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;kBAG9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;kBAI7B,CAAC;AAEH,gGAAgG;AAChG,eAAO,MAAM,gBAAgB;;kBAE3B,CAAC;AAEH,6EAA6E;AAC7E,eAAO,MAAM,eAAe;;kBAE1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;kBAKzB,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,cAAc;;kBAEzB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;kBAG1B,CAAC;AAEH,sFAAsF;AACtF,eAAO,MAAM,gBAAgB;;kBAE3B,CAAC;AAEH,6EAA6E;AAC7E,eAAO,MAAM,cAAc,iCAAqB,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;kBAGxB,CAAC;AAEH,0EAA0E;AAC1E,eAAO,MAAM,cAAc,iCAAqB,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;kBAG7B,CAAC;AAEH,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,iCAAqB,CAAC;AAEnD,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,iCAAqB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;kBAG3B,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,eAAe;;;;;;;kBAI1B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;kBAEhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;kBAElC,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,UAAU,iCAAqB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,eAAe;;;kBAG1B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;kBAG3B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;kBAIzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGjC,CAAC;AAEH,qGAAqG;AACrG,eAAO,MAAM,cAAc;;;kBAGzB,CAAC;AAEH,yDAAyD;AACzD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG/B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;kBAEzB,CAAC"}
|