@tai42/api-client 16.0.0 → 16.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/agents-client.d.ts +26 -0
- package/dist/client/agents-client.d.ts.map +1 -0
- package/dist/client/agents-client.js +19 -0
- package/dist/client/agents-client.js.map +1 -0
- package/dist/client/auth-client.d.ts +205 -0
- package/dist/client/auth-client.d.ts.map +1 -0
- package/dist/client/auth-client.js +59 -0
- package/dist/client/auth-client.js.map +1 -0
- package/dist/client/backend-client.d.ts +39 -0
- package/dist/client/backend-client.d.ts.map +1 -0
- package/dist/client/backend-client.js +22 -0
- package/dist/client/backend-client.js.map +1 -0
- package/dist/client/backup-client.d.ts +56 -0
- package/dist/client/backup-client.d.ts.map +1 -0
- package/dist/client/backup-client.js +12 -0
- package/dist/client/backup-client.js.map +1 -0
- package/dist/client/capabilities-client.d.ts +35 -0
- package/dist/client/capabilities-client.d.ts.map +1 -0
- package/dist/client/capabilities-client.js +19 -0
- package/dist/client/capabilities-client.js.map +1 -0
- package/dist/client/channels-client.d.ts +7 -0
- package/dist/client/channels-client.d.ts.map +1 -0
- package/dist/client/channels-client.js +10 -0
- package/dist/client/channels-client.js.map +1 -0
- package/dist/client/config-client.d.ts +59 -0
- package/dist/client/config-client.d.ts.map +1 -0
- package/dist/client/config-client.js +18 -0
- package/dist/client/config-client.js.map +1 -0
- package/dist/client/connectors-client.d.ts +225 -0
- package/dist/client/connectors-client.d.ts.map +1 -0
- package/dist/client/connectors-client.js +31 -0
- package/dist/client/connectors-client.js.map +1 -0
- package/dist/client/conversations-client.d.ts +399 -0
- package/dist/client/conversations-client.d.ts.map +1 -0
- package/dist/client/conversations-client.js +120 -0
- package/dist/client/conversations-client.js.map +1 -0
- package/dist/client/hooks-client.d.ts +113 -0
- package/dist/client/hooks-client.d.ts.map +1 -0
- package/dist/client/hooks-client.js +25 -0
- package/dist/client/hooks-client.js.map +1 -0
- package/dist/{client.d.ts → client/index.d.ts} +2235 -2666
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +79 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/interactions-client.d.ts +52 -0
- package/dist/client/interactions-client.d.ts.map +1 -0
- package/dist/client/interactions-client.js +84 -0
- package/dist/client/interactions-client.js.map +1 -0
- package/dist/client/login-client.d.ts +56 -0
- package/dist/client/login-client.d.ts.map +1 -0
- package/dist/client/login-client.js +103 -0
- package/dist/client/login-client.js.map +1 -0
- package/dist/client/manifest-client.d.ts +354 -0
- package/dist/client/manifest-client.d.ts.map +1 -0
- package/dist/client/manifest-client.js +76 -0
- package/dist/client/manifest-client.js.map +1 -0
- package/dist/client/marketplace-client.d.ts +274 -0
- package/dist/client/marketplace-client.d.ts.map +1 -0
- package/dist/client/marketplace-client.js +46 -0
- package/dist/client/marketplace-client.js.map +1 -0
- package/dist/client/mcp-config-schema-client.d.ts +5 -0
- package/dist/client/mcp-config-schema-client.d.ts.map +1 -0
- package/dist/client/mcp-config-schema-client.js +9 -0
- package/dist/client/mcp-config-schema-client.js.map +1 -0
- package/dist/client/notifications-client.d.ts +27 -0
- package/dist/client/notifications-client.d.ts.map +1 -0
- package/dist/client/notifications-client.js +11 -0
- package/dist/client/notifications-client.js.map +1 -0
- package/dist/client/observability-client.d.ts +103 -0
- package/dist/client/observability-client.d.ts.map +1 -0
- package/dist/client/observability-client.js +43 -0
- package/dist/client/observability-client.js.map +1 -0
- package/dist/client/plugins-client.d.ts +17 -0
- package/dist/client/plugins-client.d.ts.map +1 -0
- package/dist/client/plugins-client.js +9 -0
- package/dist/client/plugins-client.js.map +1 -0
- package/dist/client/policy-client.d.ts +37 -0
- package/dist/client/policy-client.d.ts.map +1 -0
- package/dist/client/policy-client.js +26 -0
- package/dist/client/policy-client.js.map +1 -0
- package/dist/client/presets-client.d.ts +335 -0
- package/dist/client/presets-client.d.ts.map +1 -0
- package/dist/client/presets-client.js +38 -0
- package/dist/client/presets-client.js.map +1 -0
- package/dist/client/profiles-client.d.ts +102 -0
- package/dist/client/profiles-client.d.ts.map +1 -0
- package/dist/client/profiles-client.js +37 -0
- package/dist/client/profiles-client.js.map +1 -0
- package/dist/client/schedules-client.d.ts +28 -0
- package/dist/client/schedules-client.d.ts.map +1 -0
- package/dist/client/schedules-client.js +13 -0
- package/dist/client/schedules-client.js.map +1 -0
- package/dist/client/settings-schema-client.d.ts +23 -0
- package/dist/client/settings-schema-client.d.ts.map +1 -0
- package/dist/client/settings-schema-client.js +9 -0
- package/dist/client/settings-schema-client.js.map +1 -0
- package/dist/client/states-client.d.ts +471 -0
- package/dist/client/states-client.d.ts.map +1 -0
- package/dist/client/states-client.js +144 -0
- package/dist/client/states-client.js.map +1 -0
- package/dist/client/storage-client.d.ts +40 -0
- package/dist/client/storage-client.d.ts.map +1 -0
- package/dist/client/storage-client.js +43 -0
- package/dist/client/storage-client.js.map +1 -0
- package/dist/client/sub-mcp-client.d.ts +17 -0
- package/dist/client/sub-mcp-client.d.ts.map +1 -0
- package/dist/client/sub-mcp-client.js +14 -0
- package/dist/client/sub-mcp-client.js.map +1 -0
- package/dist/client/system-client.d.ts +11 -0
- package/dist/client/system-client.d.ts.map +1 -0
- package/dist/client/system-client.js +13 -0
- package/dist/client/system-client.js.map +1 -0
- package/dist/client/templates-client.d.ts +29 -0
- package/dist/client/templates-client.d.ts.map +1 -0
- package/dist/client/templates-client.js +21 -0
- package/dist/client/templates-client.js.map +1 -0
- package/dist/client/tool-extensions-client.d.ts +54 -0
- package/dist/client/tool-extensions-client.d.ts.map +1 -0
- package/dist/client/tool-extensions-client.js +21 -0
- package/dist/client/tool-extensions-client.js.map +1 -0
- package/dist/client/tool-meta-client.d.ts +69 -0
- package/dist/client/tool-meta-client.d.ts.map +1 -0
- package/dist/client/tool-meta-client.js +38 -0
- package/dist/client/tool-meta-client.js.map +1 -0
- package/dist/client/tools-client.d.ts +83 -0
- package/dist/client/tools-client.d.ts.map +1 -0
- package/dist/client/tools-client.js +38 -0
- package/dist/client/tools-client.js.map +1 -0
- package/dist/client/transport.d.ts +13 -0
- package/dist/client/transport.d.ts.map +1 -0
- package/dist/client/transport.js +10 -0
- package/dist/client/transport.js.map +1 -0
- package/dist/client/trigger-links-client.d.ts +44 -0
- package/dist/client/trigger-links-client.d.ts.map +1 -0
- package/dist/client/trigger-links-client.js +30 -0
- package/dist/client/trigger-links-client.js.map +1 -0
- package/dist/client/web-entry-gate-client.d.ts +34 -0
- package/dist/client/web-entry-gate-client.d.ts.map +1 -0
- package/dist/client/web-entry-gate-client.js +25 -0
- package/dist/client/web-entry-gate-client.js.map +1 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +33 -17
- package/dist/http.js.map +1 -1
- package/dist/schemas/api-keys.d.ts +34 -0
- package/dist/schemas/api-keys.d.ts.map +1 -0
- package/dist/schemas/api-keys.js +22 -0
- package/dist/schemas/api-keys.js.map +1 -0
- package/dist/schemas/auth-routes.d.ts +78 -0
- package/dist/schemas/auth-routes.d.ts.map +1 -0
- package/dist/schemas/auth-routes.js +42 -0
- package/dist/schemas/auth-routes.js.map +1 -0
- package/dist/schemas/backup.d.ts +78 -0
- package/dist/schemas/backup.d.ts.map +1 -0
- package/dist/schemas/backup.js +33 -0
- package/dist/schemas/backup.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +99 -0
- package/dist/schemas/capabilities.d.ts.map +1 -0
- package/dist/schemas/capabilities.js +74 -0
- package/dist/schemas/capabilities.js.map +1 -0
- package/dist/schemas/channels.d.ts +7 -0
- package/dist/schemas/channels.d.ts.map +1 -0
- package/dist/schemas/channels.js +9 -0
- package/dist/schemas/channels.js.map +1 -0
- package/dist/schemas/config.d.ts +17 -0
- package/dist/schemas/config.d.ts.map +1 -0
- package/dist/schemas/config.js +17 -0
- package/dist/schemas/config.js.map +1 -0
- package/dist/schemas/connectors.d.ts +383 -0
- package/dist/schemas/connectors.d.ts.map +1 -0
- package/dist/schemas/connectors.js +122 -0
- package/dist/schemas/connectors.js.map +1 -0
- package/dist/schemas/conversations.d.ts +600 -0
- package/dist/schemas/conversations.d.ts.map +1 -0
- package/dist/schemas/conversations.js +208 -0
- package/dist/schemas/conversations.js.map +1 -0
- package/dist/schemas/extensions.d.ts +44 -0
- package/dist/schemas/extensions.d.ts.map +1 -0
- package/dist/schemas/extensions.js +29 -0
- package/dist/schemas/extensions.js.map +1 -0
- package/dist/schemas/fleet.d.ts +271 -0
- package/dist/schemas/fleet.d.ts.map +1 -0
- package/dist/schemas/fleet.js +132 -0
- package/dist/schemas/fleet.js.map +1 -0
- package/dist/schemas/hooks.d.ts +120 -0
- package/dist/schemas/hooks.d.ts.map +1 -0
- package/dist/schemas/hooks.js +44 -0
- package/dist/schemas/hooks.js.map +1 -0
- package/dist/schemas/index.d.ts +38 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +38 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/interactions.d.ts +156 -0
- package/dist/schemas/interactions.d.ts.map +1 -0
- package/dist/schemas/interactions.js +124 -0
- package/dist/schemas/interactions.js.map +1 -0
- package/dist/schemas/login.d.ts +86 -0
- package/dist/schemas/login.d.ts.map +1 -0
- package/dist/schemas/login.js +54 -0
- package/dist/schemas/login.js.map +1 -0
- package/dist/schemas/manifest-mcp.d.ts +125 -0
- package/dist/schemas/manifest-mcp.d.ts.map +1 -0
- package/dist/schemas/manifest-mcp.js +61 -0
- package/dist/schemas/manifest-mcp.js.map +1 -0
- package/dist/schemas/marketplace.d.ts +708 -0
- package/dist/schemas/marketplace.d.ts.map +1 -0
- package/dist/schemas/marketplace.js +387 -0
- package/dist/schemas/marketplace.js.map +1 -0
- package/dist/schemas/notifications.d.ts +61 -0
- package/dist/schemas/notifications.d.ts.map +1 -0
- package/dist/schemas/notifications.js +38 -0
- package/dist/schemas/notifications.js.map +1 -0
- package/dist/schemas/observability.d.ts +114 -0
- package/dist/schemas/observability.d.ts.map +1 -0
- package/dist/schemas/observability.js +74 -0
- package/dist/schemas/observability.js.map +1 -0
- package/dist/schemas/policy.d.ts +58 -0
- package/dist/schemas/policy.d.ts.map +1 -0
- package/dist/schemas/policy.js +32 -0
- package/dist/schemas/policy.js.map +1 -0
- package/dist/schemas/presets.d.ts +258 -0
- package/dist/schemas/presets.d.ts.map +1 -0
- package/dist/schemas/presets.js +95 -0
- package/dist/schemas/presets.js.map +1 -0
- package/dist/schemas/profiles.d.ts +180 -0
- package/dist/schemas/profiles.d.ts.map +1 -0
- package/dist/schemas/profiles.js +100 -0
- package/dist/schemas/profiles.js.map +1 -0
- package/dist/schemas/roles.d.ts +125 -0
- package/dist/schemas/roles.d.ts.map +1 -0
- package/dist/schemas/roles.js +46 -0
- package/dist/schemas/roles.js.map +1 -0
- package/dist/schemas/schedules.d.ts +25 -0
- package/dist/schemas/schedules.d.ts.map +1 -0
- package/dist/schemas/schedules.js +24 -0
- package/dist/schemas/schedules.js.map +1 -0
- package/dist/schemas/served.d.ts +626 -0
- package/dist/schemas/served.d.ts.map +1 -0
- package/dist/schemas/served.js +28 -0
- package/dist/schemas/served.js.map +1 -0
- package/dist/schemas/settings-schema.d.ts +23 -0
- package/dist/schemas/settings-schema.d.ts.map +1 -0
- package/dist/schemas/settings-schema.js +25 -0
- package/dist/schemas/settings-schema.js.map +1 -0
- package/dist/schemas/shared.d.ts +20 -0
- package/dist/schemas/shared.d.ts.map +1 -0
- package/dist/schemas/shared.js +20 -0
- package/dist/schemas/shared.js.map +1 -0
- package/dist/schemas/states.d.ts +499 -0
- package/dist/schemas/states.d.ts.map +1 -0
- package/dist/schemas/states.js +220 -0
- package/dist/schemas/states.js.map +1 -0
- package/dist/schemas/storage.d.ts +37 -0
- package/dist/schemas/storage.d.ts.map +1 -0
- package/dist/schemas/storage.js +24 -0
- package/dist/schemas/storage.js.map +1 -0
- package/dist/schemas/studio-plugins.d.ts +30 -0
- package/dist/schemas/studio-plugins.d.ts.map +1 -0
- package/dist/schemas/studio-plugins.js +20 -0
- package/dist/schemas/studio-plugins.js.map +1 -0
- package/dist/schemas/sub-mcp.d.ts +29 -0
- package/dist/schemas/sub-mcp.d.ts.map +1 -0
- package/dist/schemas/sub-mcp.js +22 -0
- package/dist/schemas/sub-mcp.js.map +1 -0
- package/dist/schemas/system-kinds.d.ts +122 -0
- package/dist/schemas/system-kinds.d.ts.map +1 -0
- package/dist/schemas/system-kinds.js +40 -0
- package/dist/schemas/system-kinds.js.map +1 -0
- package/dist/schemas/templates.d.ts +26 -0
- package/dist/schemas/templates.d.ts.map +1 -0
- package/dist/schemas/templates.js +11 -0
- package/dist/schemas/templates.js.map +1 -0
- package/dist/schemas/tool-meta.d.ts +64 -0
- package/dist/schemas/tool-meta.d.ts.map +1 -0
- package/dist/schemas/tool-meta.js +44 -0
- package/dist/schemas/tool-meta.js.map +1 -0
- package/dist/schemas/tools.d.ts +62 -0
- package/dist/schemas/tools.d.ts.map +1 -0
- package/dist/schemas/tools.js +53 -0
- package/dist/schemas/tools.js.map +1 -0
- package/dist/schemas/trigger-links.d.ts +71 -0
- package/dist/schemas/trigger-links.d.ts.map +1 -0
- package/dist/schemas/trigger-links.js +46 -0
- package/dist/schemas/trigger-links.js.map +1 -0
- package/dist/schemas/web-entry.d.ts +45 -0
- package/dist/schemas/web-entry.d.ts.map +1 -0
- package/dist/schemas/web-entry.js +36 -0
- package/dist/schemas/web-entry.js.map +1 -0
- package/dist/tool-runs.d.ts +4 -4
- package/package.json +1 -1
- package/src/client/agents-client.ts +23 -0
- package/src/client/auth-client.ts +144 -0
- package/src/client/backend-client.ts +25 -0
- package/src/client/backup-client.ts +16 -0
- package/src/client/capabilities-client.ts +22 -0
- package/src/client/channels-client.ts +11 -0
- package/src/client/config-client.ts +21 -0
- package/src/client/connectors-client.ts +52 -0
- package/src/client/conversations-client.ts +240 -0
- package/src/client/hooks-client.ts +44 -0
- package/src/client/index.ts +122 -0
- package/src/client/interactions-client.ts +89 -0
- package/src/client/login-client.ts +109 -0
- package/src/client/manifest-client.ts +118 -0
- package/src/client/marketplace-client.ts +122 -0
- package/src/client/mcp-config-schema-client.ts +11 -0
- package/src/client/notifications-client.ts +13 -0
- package/src/client/observability-client.ts +82 -0
- package/src/client/plugins-client.ts +11 -0
- package/src/client/policy-client.ts +41 -0
- package/src/client/presets-client.ts +124 -0
- package/src/client/profiles-client.ts +51 -0
- package/src/client/schedules-client.ts +22 -0
- package/src/client/settings-schema-client.ts +11 -0
- package/src/client/states-client.ts +292 -0
- package/src/client/storage-client.ts +63 -0
- package/src/client/sub-mcp-client.ts +17 -0
- package/src/client/system-client.ts +16 -0
- package/src/client/templates-client.ts +28 -0
- package/src/client/tool-extensions-client.ts +24 -0
- package/src/client/tool-meta-client.ts +65 -0
- package/src/client/tools-client.ts +66 -0
- package/src/client/transport.ts +18 -0
- package/src/client/trigger-links-client.ts +51 -0
- package/src/client/web-entry-gate-client.ts +45 -0
- package/src/http.ts +48 -24
- package/src/schemas/api-keys.ts +26 -0
- package/src/schemas/auth-routes.ts +48 -0
- package/src/schemas/backup.ts +42 -0
- package/src/schemas/capabilities.ts +87 -0
- package/src/schemas/channels.ts +11 -0
- package/src/schemas/config.ts +17 -0
- package/src/schemas/connectors.ts +138 -0
- package/src/schemas/conversations.ts +256 -0
- package/src/schemas/extensions.ts +34 -0
- package/src/schemas/fleet.ts +153 -0
- package/src/schemas/hooks.ts +56 -0
- package/src/schemas/index.ts +37 -0
- package/src/schemas/interactions.ts +146 -0
- package/src/schemas/login.ts +62 -0
- package/src/schemas/manifest-mcp.ts +69 -0
- package/src/schemas/marketplace.ts +447 -0
- package/src/schemas/notifications.ts +42 -0
- package/src/schemas/observability.ts +86 -0
- package/src/schemas/policy.ts +37 -0
- package/src/schemas/presets.ts +113 -0
- package/src/schemas/profiles.ts +119 -0
- package/src/schemas/roles.ts +57 -0
- package/src/schemas/schedules.ts +27 -0
- package/src/schemas/served.ts +49 -0
- package/src/schemas/settings-schema.ts +31 -0
- package/src/schemas/shared.ts +21 -0
- package/src/schemas/states.ts +272 -0
- package/src/schemas/storage.ts +31 -0
- package/src/schemas/studio-plugins.ts +21 -0
- package/src/schemas/sub-mcp.ts +24 -0
- package/src/schemas/system-kinds.ts +46 -0
- package/src/schemas/templates.ts +11 -0
- package/src/schemas/tool-meta.ts +51 -0
- package/src/schemas/tools.ts +61 -0
- package/src/schemas/trigger-links.ts +54 -0
- package/src/schemas/web-entry.ts +46 -0
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -920
- package/dist/client.js.map +0 -1
- package/dist/schemas.d.ts +0 -5172
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -2268
- package/dist/schemas.js.map +0 -1
- package/src/client.ts +0 -1771
- package/src/schemas.ts +0 -2760
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
/** Conversation route, thread, transcript and config schemas. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** The inbound door a route is bound to: the authed API, or a channel medium. */
|
|
4
|
+
export declare const conversationDoor: z.ZodEnum<{
|
|
5
|
+
channel: "channel";
|
|
6
|
+
api: "api";
|
|
7
|
+
}>;
|
|
8
|
+
export type ConversationDoor = z.infer<typeof conversationDoor>;
|
|
9
|
+
/** What a route's turn runs: a registered agent, or a tool dispatch. */
|
|
10
|
+
export declare const conversationTargetKind: z.ZodEnum<{
|
|
11
|
+
tool: "tool";
|
|
12
|
+
agent: "agent";
|
|
13
|
+
}>;
|
|
14
|
+
export type ConversationTargetKind = z.infer<typeof conversationTargetKind>;
|
|
15
|
+
/**
|
|
16
|
+
* A route's default control mode (`initial_mode`) when a thread carries no
|
|
17
|
+
* per-thread override: `agent` runs the target turn, `manual` suppresses it for an
|
|
18
|
+
* operator to answer. The same value vocabulary as a per-thread mode override, but
|
|
19
|
+
* a distinct concept (the route default vs. one thread's override).
|
|
20
|
+
*/
|
|
21
|
+
export declare const conversationMode: z.ZodEnum<{
|
|
22
|
+
agent: "agent";
|
|
23
|
+
manual: "manual";
|
|
24
|
+
}>;
|
|
25
|
+
export type ConversationMode = z.infer<typeof conversationMode>;
|
|
26
|
+
/**
|
|
27
|
+
* Where a record sits between intake and a terminal outcome. `failed` is the one
|
|
28
|
+
* the monitor surfaces loudly; `shed` and `silent` are terminal by design and
|
|
29
|
+
* never send.
|
|
30
|
+
*/
|
|
31
|
+
export declare const conversationDeliveryStatus: z.ZodEnum<{
|
|
32
|
+
failed: "failed";
|
|
33
|
+
accepted: "accepted";
|
|
34
|
+
pending_delivery: "pending_delivery";
|
|
35
|
+
provisional: "provisional";
|
|
36
|
+
delivered: "delivered";
|
|
37
|
+
shed: "shed";
|
|
38
|
+
silent: "silent";
|
|
39
|
+
}>;
|
|
40
|
+
export type ConversationDeliveryStatus = z.infer<typeof conversationDeliveryStatus>;
|
|
41
|
+
/** The nature of a turn's outcome, orthogonal to where its delivery stands. */
|
|
42
|
+
export declare const conversationAnswerStatus: z.ZodEnum<{
|
|
43
|
+
error: "error";
|
|
44
|
+
silent: "silent";
|
|
45
|
+
answered: "answered";
|
|
46
|
+
}>;
|
|
47
|
+
export type ConversationAnswerStatus = z.infer<typeof conversationAnswerStatus>;
|
|
48
|
+
/**
|
|
49
|
+
* Who authored a record's outgoing side. `client` is the ordinary turn the flow
|
|
50
|
+
* answered; `operator` is a message a human sent into the thread, whose text
|
|
51
|
+
* rides `answer` (its `inbound_text` is empty).
|
|
52
|
+
*/
|
|
53
|
+
export declare const conversationRecordOrigin: z.ZodEnum<{
|
|
54
|
+
client: "client";
|
|
55
|
+
operator: "operator";
|
|
56
|
+
}>;
|
|
57
|
+
export type ConversationRecordOrigin = z.infer<typeof conversationRecordOrigin>;
|
|
58
|
+
export declare const conversationRoutes: z.ZodObject<{
|
|
59
|
+
items: z.ZodArray<z.ZodObject<{
|
|
60
|
+
callback_secret: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
61
|
+
callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
62
|
+
channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
63
|
+
door: z.ZodEnum<{
|
|
64
|
+
channel: "channel";
|
|
65
|
+
api: "api";
|
|
66
|
+
}>;
|
|
67
|
+
error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
68
|
+
execution_key: z.ZodString;
|
|
69
|
+
execution_key_fingerprint: z.ZodString;
|
|
70
|
+
initial_mode: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
agent: "agent";
|
|
72
|
+
manual: "manual";
|
|
73
|
+
}>>;
|
|
74
|
+
locale: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
75
|
+
our_identity: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
76
|
+
payload_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
77
|
+
content: z.ZodOptional<z.ZodString>;
|
|
78
|
+
id: z.ZodOptional<z.ZodString>;
|
|
79
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
80
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
81
|
+
reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
82
|
+
content: z.ZodOptional<z.ZodString>;
|
|
83
|
+
id: z.ZodOptional<z.ZodString>;
|
|
84
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
85
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
86
|
+
route_name: z.ZodString;
|
|
87
|
+
target_kind: z.ZodEnum<{
|
|
88
|
+
tool: "tool";
|
|
89
|
+
agent: "agent";
|
|
90
|
+
}>;
|
|
91
|
+
target_name: z.ZodString;
|
|
92
|
+
turns_per_hour_override: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
total: z.ZodNumber;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type ConversationRoutes = z.infer<typeof conversationRoutes>;
|
|
97
|
+
/**
|
|
98
|
+
* The create/replace reply: whether THIS call created the row (vs. replaced an
|
|
99
|
+
* existing one), the row itself (its `callback_secret` withheld), and the
|
|
100
|
+
* `callback_secret` returned ONCE for an `api`-door row (`null` for a `channel`
|
|
101
|
+
* row). The secret signs delivery callbacks and is never re-read from any door, so
|
|
102
|
+
* a caller that needs it must capture it from this reply.
|
|
103
|
+
*/
|
|
104
|
+
export declare const conversationRouteWritten: z.ZodObject<{
|
|
105
|
+
created: z.ZodBoolean;
|
|
106
|
+
route_name: z.ZodString;
|
|
107
|
+
route: z.ZodObject<{
|
|
108
|
+
callback_secret: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
109
|
+
callback_url: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
110
|
+
channel: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
111
|
+
door: z.ZodEnum<{
|
|
112
|
+
channel: "channel";
|
|
113
|
+
api: "api";
|
|
114
|
+
}>;
|
|
115
|
+
error_reply_text: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
116
|
+
execution_key: z.ZodString;
|
|
117
|
+
execution_key_fingerprint: z.ZodString;
|
|
118
|
+
initial_mode: z.ZodDefault<z.ZodEnum<{
|
|
119
|
+
agent: "agent";
|
|
120
|
+
manual: "manual";
|
|
121
|
+
}>>;
|
|
122
|
+
locale: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
123
|
+
our_identity: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
124
|
+
payload_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
125
|
+
content: z.ZodOptional<z.ZodString>;
|
|
126
|
+
id: z.ZodOptional<z.ZodString>;
|
|
127
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
128
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
129
|
+
reply_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
130
|
+
content: z.ZodOptional<z.ZodString>;
|
|
131
|
+
id: z.ZodOptional<z.ZodString>;
|
|
132
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
133
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
134
|
+
route_name: z.ZodString;
|
|
135
|
+
target_kind: z.ZodEnum<{
|
|
136
|
+
tool: "tool";
|
|
137
|
+
agent: "agent";
|
|
138
|
+
}>;
|
|
139
|
+
target_name: z.ZodString;
|
|
140
|
+
turns_per_hour_override: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
callback_secret: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type ConversationRouteWritten = z.infer<typeof conversationRouteWritten>;
|
|
145
|
+
/**
|
|
146
|
+
* The delete reply: `removed` says whether THIS call removed the routing row (a
|
|
147
|
+
* retryable reclamation of orphaned thread indexes answers `false` rather than a
|
|
148
|
+
* 404).
|
|
149
|
+
*/
|
|
150
|
+
export declare const conversationRouteDeleted: z.ZodObject<{
|
|
151
|
+
removed: z.ZodBoolean;
|
|
152
|
+
route_name: z.ZodString;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type ConversationRouteDeleted = z.infer<typeof conversationRouteDeleted>;
|
|
155
|
+
/**
|
|
156
|
+
* One thread of a route, summarized from its newest record. A `thread_id` holds
|
|
157
|
+
* an api-door address (`{principal}/{end user}`, percent-encoded), so it never
|
|
158
|
+
* goes back into a URL as a path segment — the transcript door takes it as a
|
|
159
|
+
* query value.
|
|
160
|
+
*/
|
|
161
|
+
export declare const conversationThread: z.ZodObject<{
|
|
162
|
+
thread_id: z.ZodString;
|
|
163
|
+
client_address: z.ZodString;
|
|
164
|
+
last_activity_at: z.ZodNumber;
|
|
165
|
+
message_count: z.ZodNumber;
|
|
166
|
+
last_delivery_status: z.ZodEnum<{
|
|
167
|
+
failed: "failed";
|
|
168
|
+
accepted: "accepted";
|
|
169
|
+
pending_delivery: "pending_delivery";
|
|
170
|
+
provisional: "provisional";
|
|
171
|
+
delivered: "delivered";
|
|
172
|
+
shed: "shed";
|
|
173
|
+
silent: "silent";
|
|
174
|
+
}>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
export type ConversationThread = z.infer<typeof conversationThread>;
|
|
177
|
+
export declare const conversationThreadsPage: z.ZodObject<{
|
|
178
|
+
total: z.ZodNumber;
|
|
179
|
+
page: z.ZodNumber;
|
|
180
|
+
page_size: z.ZodNumber;
|
|
181
|
+
next_page: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
truncated: z.ZodBoolean;
|
|
183
|
+
items: z.ZodArray<z.ZodObject<{
|
|
184
|
+
thread_id: z.ZodString;
|
|
185
|
+
client_address: z.ZodString;
|
|
186
|
+
last_activity_at: z.ZodNumber;
|
|
187
|
+
message_count: z.ZodNumber;
|
|
188
|
+
last_delivery_status: z.ZodEnum<{
|
|
189
|
+
failed: "failed";
|
|
190
|
+
accepted: "accepted";
|
|
191
|
+
pending_delivery: "pending_delivery";
|
|
192
|
+
provisional: "provisional";
|
|
193
|
+
delivered: "delivered";
|
|
194
|
+
shed: "shed";
|
|
195
|
+
silent: "silent";
|
|
196
|
+
}>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export type ConversationThreadsPage = z.infer<typeof conversationThreadsPage>;
|
|
200
|
+
/**
|
|
201
|
+
* One exchange: the visitor's `inbound_text` — every record answers a message, so
|
|
202
|
+
* both projections always carry it — and the agent's `answer`, plus where that
|
|
203
|
+
* answer's delivery stands. The fields after `updated_at` are ADMIN ONLY —
|
|
204
|
+
* the same door serves a caller-scoped projection that withholds them — so they
|
|
205
|
+
* are optional here and absence means "not published to this reader".
|
|
206
|
+
*/
|
|
207
|
+
export declare const conversationMessage: z.ZodObject<{
|
|
208
|
+
message_id: z.ZodString;
|
|
209
|
+
route_name: z.ZodString;
|
|
210
|
+
door: z.ZodEnum<{
|
|
211
|
+
channel: "channel";
|
|
212
|
+
api: "api";
|
|
213
|
+
}>;
|
|
214
|
+
thread_id: z.ZodString;
|
|
215
|
+
client_address: z.ZodString;
|
|
216
|
+
caller_principal: z.ZodNullable<z.ZodString>;
|
|
217
|
+
inbound_text: z.ZodString;
|
|
218
|
+
answer_status: z.ZodNullable<z.ZodEnum<{
|
|
219
|
+
error: "error";
|
|
220
|
+
silent: "silent";
|
|
221
|
+
answered: "answered";
|
|
222
|
+
}>>;
|
|
223
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
224
|
+
origin: z.ZodEnum<{
|
|
225
|
+
client: "client";
|
|
226
|
+
operator: "operator";
|
|
227
|
+
}>;
|
|
228
|
+
delivery_status: z.ZodEnum<{
|
|
229
|
+
failed: "failed";
|
|
230
|
+
accepted: "accepted";
|
|
231
|
+
pending_delivery: "pending_delivery";
|
|
232
|
+
provisional: "provisional";
|
|
233
|
+
delivered: "delivered";
|
|
234
|
+
shed: "shed";
|
|
235
|
+
silent: "silent";
|
|
236
|
+
}>;
|
|
237
|
+
created_at: z.ZodNumber;
|
|
238
|
+
updated_at: z.ZodNumber;
|
|
239
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export type ConversationMessage = z.infer<typeof conversationMessage>;
|
|
248
|
+
/**
|
|
249
|
+
* The direction a transcript page reads in. `asc` is the reading order (oldest
|
|
250
|
+
* first); `desc` is the live-tail order, where page 1 is always the newest page
|
|
251
|
+
* and paging forward walks BACKWARDS through the thread's history.
|
|
252
|
+
*/
|
|
253
|
+
export declare const transcriptOrder: z.ZodEnum<{
|
|
254
|
+
asc: "asc";
|
|
255
|
+
desc: "desc";
|
|
256
|
+
}>;
|
|
257
|
+
export type TranscriptOrder = z.infer<typeof transcriptOrder>;
|
|
258
|
+
/** A transcript page, echoing the order it was read in. */
|
|
259
|
+
export declare const conversationTranscriptPage: z.ZodObject<{
|
|
260
|
+
order: z.ZodEnum<{
|
|
261
|
+
asc: "asc";
|
|
262
|
+
desc: "desc";
|
|
263
|
+
}>;
|
|
264
|
+
total: z.ZodNumber;
|
|
265
|
+
page: z.ZodNumber;
|
|
266
|
+
page_size: z.ZodNumber;
|
|
267
|
+
next_page: z.ZodNullable<z.ZodNumber>;
|
|
268
|
+
truncated: z.ZodBoolean;
|
|
269
|
+
items: z.ZodArray<z.ZodObject<{
|
|
270
|
+
message_id: z.ZodString;
|
|
271
|
+
route_name: z.ZodString;
|
|
272
|
+
door: z.ZodEnum<{
|
|
273
|
+
channel: "channel";
|
|
274
|
+
api: "api";
|
|
275
|
+
}>;
|
|
276
|
+
thread_id: z.ZodString;
|
|
277
|
+
client_address: z.ZodString;
|
|
278
|
+
caller_principal: z.ZodNullable<z.ZodString>;
|
|
279
|
+
inbound_text: z.ZodString;
|
|
280
|
+
answer_status: z.ZodNullable<z.ZodEnum<{
|
|
281
|
+
error: "error";
|
|
282
|
+
silent: "silent";
|
|
283
|
+
answered: "answered";
|
|
284
|
+
}>>;
|
|
285
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
286
|
+
origin: z.ZodEnum<{
|
|
287
|
+
client: "client";
|
|
288
|
+
operator: "operator";
|
|
289
|
+
}>;
|
|
290
|
+
delivery_status: z.ZodEnum<{
|
|
291
|
+
failed: "failed";
|
|
292
|
+
accepted: "accepted";
|
|
293
|
+
pending_delivery: "pending_delivery";
|
|
294
|
+
provisional: "provisional";
|
|
295
|
+
delivered: "delivered";
|
|
296
|
+
shed: "shed";
|
|
297
|
+
silent: "silent";
|
|
298
|
+
}>;
|
|
299
|
+
created_at: z.ZodNumber;
|
|
300
|
+
updated_at: z.ZodNumber;
|
|
301
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
+
provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
export type ConversationTranscriptPage = z.infer<typeof conversationTranscriptPage>;
|
|
311
|
+
/**
|
|
312
|
+
* A route-scoped message search (`GET /api/conversations/{route}/messages/search?q`):
|
|
313
|
+
* every record on the route whose text matches `q`, across threads, newest first.
|
|
314
|
+
* The record shape is the transcript's exactly, so a hit renders with the same
|
|
315
|
+
* projection. `truncated` says the match set outran the door's scan cap — surfaced
|
|
316
|
+
* loudly, never a silent cut.
|
|
317
|
+
*/
|
|
318
|
+
export declare const conversationMessageSearchPage: z.ZodObject<{
|
|
319
|
+
total: z.ZodNumber;
|
|
320
|
+
page: z.ZodNumber;
|
|
321
|
+
page_size: z.ZodNumber;
|
|
322
|
+
next_page: z.ZodNullable<z.ZodNumber>;
|
|
323
|
+
truncated: z.ZodBoolean;
|
|
324
|
+
items: z.ZodArray<z.ZodObject<{
|
|
325
|
+
message_id: z.ZodString;
|
|
326
|
+
route_name: z.ZodString;
|
|
327
|
+
door: z.ZodEnum<{
|
|
328
|
+
channel: "channel";
|
|
329
|
+
api: "api";
|
|
330
|
+
}>;
|
|
331
|
+
thread_id: z.ZodString;
|
|
332
|
+
client_address: z.ZodString;
|
|
333
|
+
caller_principal: z.ZodNullable<z.ZodString>;
|
|
334
|
+
inbound_text: z.ZodString;
|
|
335
|
+
answer_status: z.ZodNullable<z.ZodEnum<{
|
|
336
|
+
error: "error";
|
|
337
|
+
silent: "silent";
|
|
338
|
+
answered: "answered";
|
|
339
|
+
}>>;
|
|
340
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
341
|
+
origin: z.ZodEnum<{
|
|
342
|
+
client: "client";
|
|
343
|
+
operator: "operator";
|
|
344
|
+
}>;
|
|
345
|
+
delivery_status: z.ZodEnum<{
|
|
346
|
+
failed: "failed";
|
|
347
|
+
accepted: "accepted";
|
|
348
|
+
pending_delivery: "pending_delivery";
|
|
349
|
+
provisional: "provisional";
|
|
350
|
+
delivered: "delivered";
|
|
351
|
+
shed: "shed";
|
|
352
|
+
silent: "silent";
|
|
353
|
+
}>;
|
|
354
|
+
created_at: z.ZodNumber;
|
|
355
|
+
updated_at: z.ZodNumber;
|
|
356
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
|
+
provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
362
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strip>>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
export type ConversationMessageSearchPage = z.infer<typeof conversationMessageSearchPage>;
|
|
366
|
+
/**
|
|
367
|
+
* Who answers a thread's incoming messages: `agent` lets the flow reply on its
|
|
368
|
+
* own; `manual` holds the flow back so a human answers. `source` says whether the
|
|
369
|
+
* setting is the thread's own (`thread`) or inherited from its route (`route`).
|
|
370
|
+
*/
|
|
371
|
+
export declare const conversationThreadMode: z.ZodEnum<{
|
|
372
|
+
agent: "agent";
|
|
373
|
+
manual: "manual";
|
|
374
|
+
}>;
|
|
375
|
+
export type ConversationThreadMode = z.infer<typeof conversationThreadMode>;
|
|
376
|
+
export declare const conversationThreadModeState: z.ZodObject<{
|
|
377
|
+
mode: z.ZodEnum<{
|
|
378
|
+
agent: "agent";
|
|
379
|
+
manual: "manual";
|
|
380
|
+
}>;
|
|
381
|
+
source: z.ZodEnum<{
|
|
382
|
+
route: "route";
|
|
383
|
+
thread: "thread";
|
|
384
|
+
}>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
export type ConversationThreadModeState = z.infer<typeof conversationThreadModeState>;
|
|
387
|
+
/** The receipt a thread-message write returns: the stored id and its thread. */
|
|
388
|
+
export declare const conversationThreadMessageSent: z.ZodObject<{
|
|
389
|
+
message_id: z.ZodString;
|
|
390
|
+
thread_id: z.ZodString;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
export type ConversationThreadMessageSent = z.infer<typeof conversationThreadMessageSent>;
|
|
393
|
+
/** Every stored per-target config (`GET /api/conversation-configs`). */
|
|
394
|
+
export declare const conversationConfigs: z.ZodObject<{
|
|
395
|
+
items: z.ZodArray<z.ZodObject<{
|
|
396
|
+
greeting_template: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
397
|
+
multichannel: z.ZodDefault<z.ZodBoolean>;
|
|
398
|
+
state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
399
|
+
states: z.ZodArray<z.ZodObject<{
|
|
400
|
+
input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
401
|
+
into: z.ZodString;
|
|
402
|
+
jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
403
|
+
content: z.ZodOptional<z.ZodString>;
|
|
404
|
+
id: z.ZodOptional<z.ZodString>;
|
|
405
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
406
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
407
|
+
template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
408
|
+
}, z.core.$strict>>>;
|
|
409
|
+
scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
410
|
+
content: z.ZodOptional<z.ZodString>;
|
|
411
|
+
id: z.ZodOptional<z.ZodString>;
|
|
412
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
413
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
414
|
+
state: z.ZodString;
|
|
415
|
+
subject_expr: z.ZodObject<{
|
|
416
|
+
content: z.ZodOptional<z.ZodString>;
|
|
417
|
+
id: z.ZodOptional<z.ZodString>;
|
|
418
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
421
|
+
updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
422
|
+
adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
423
|
+
content: z.ZodOptional<z.ZodString>;
|
|
424
|
+
id: z.ZodOptional<z.ZodString>;
|
|
425
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
426
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
427
|
+
jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
428
|
+
content: z.ZodOptional<z.ZodString>;
|
|
429
|
+
id: z.ZodOptional<z.ZodString>;
|
|
430
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
431
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
432
|
+
op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
433
|
+
content: z.ZodOptional<z.ZodString>;
|
|
434
|
+
id: z.ZodOptional<z.ZodString>;
|
|
435
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
436
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
437
|
+
template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
438
|
+
}, z.core.$strict>>>;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
441
|
+
target_kind: z.ZodEnum<{
|
|
442
|
+
tool: "tool";
|
|
443
|
+
agent: "agent";
|
|
444
|
+
}>;
|
|
445
|
+
target_name: z.ZodString;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
total: z.ZodNumber;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
export type ConversationConfigs = z.infer<typeof conversationConfigs>;
|
|
450
|
+
/**
|
|
451
|
+
* The upsert reply: whether THIS call created the config (vs. replaced an existing
|
|
452
|
+
* one), its key, and the stored row.
|
|
453
|
+
*/
|
|
454
|
+
export declare const conversationConfigWritten: z.ZodObject<{
|
|
455
|
+
created: z.ZodBoolean;
|
|
456
|
+
target_kind: z.ZodEnum<{
|
|
457
|
+
tool: "tool";
|
|
458
|
+
agent: "agent";
|
|
459
|
+
}>;
|
|
460
|
+
target_name: z.ZodString;
|
|
461
|
+
config: z.ZodObject<{
|
|
462
|
+
greeting_template: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
463
|
+
multichannel: z.ZodDefault<z.ZodBoolean>;
|
|
464
|
+
state_binding: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
465
|
+
states: z.ZodArray<z.ZodObject<{
|
|
466
|
+
input_injections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
467
|
+
into: z.ZodString;
|
|
468
|
+
jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
469
|
+
content: z.ZodOptional<z.ZodString>;
|
|
470
|
+
id: z.ZodOptional<z.ZodString>;
|
|
471
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
472
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
473
|
+
template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
474
|
+
}, z.core.$strict>>>;
|
|
475
|
+
scope_expr: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
476
|
+
content: z.ZodOptional<z.ZodString>;
|
|
477
|
+
id: z.ZodOptional<z.ZodString>;
|
|
478
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
479
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
480
|
+
state: z.ZodString;
|
|
481
|
+
subject_expr: z.ZodObject<{
|
|
482
|
+
content: z.ZodOptional<z.ZodString>;
|
|
483
|
+
id: z.ZodOptional<z.ZodString>;
|
|
484
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
485
|
+
}, z.core.$strict>;
|
|
486
|
+
templates: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
487
|
+
updates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
488
|
+
adapter: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
489
|
+
content: z.ZodOptional<z.ZodString>;
|
|
490
|
+
id: z.ZodOptional<z.ZodString>;
|
|
491
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
492
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
493
|
+
jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
494
|
+
content: z.ZodOptional<z.ZodString>;
|
|
495
|
+
id: z.ZodOptional<z.ZodString>;
|
|
496
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
497
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
498
|
+
op_id: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
499
|
+
content: z.ZodOptional<z.ZodString>;
|
|
500
|
+
id: z.ZodOptional<z.ZodString>;
|
|
501
|
+
kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
502
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
503
|
+
template_jq: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
504
|
+
}, z.core.$strict>>>;
|
|
505
|
+
}, z.core.$strict>>;
|
|
506
|
+
}, z.core.$strict>, z.ZodNull]>>;
|
|
507
|
+
target_kind: z.ZodEnum<{
|
|
508
|
+
tool: "tool";
|
|
509
|
+
agent: "agent";
|
|
510
|
+
}>;
|
|
511
|
+
target_name: z.ZodString;
|
|
512
|
+
}, z.core.$strip>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
export type ConversationConfigWritten = z.infer<typeof conversationConfigWritten>;
|
|
515
|
+
/** The config-delete reply: `removed` is always `true` on success (an unknown key is a 404). */
|
|
516
|
+
export declare const conversationConfigDeleted: z.ZodObject<{
|
|
517
|
+
removed: z.ZodBoolean;
|
|
518
|
+
target_kind: z.ZodEnum<{
|
|
519
|
+
tool: "tool";
|
|
520
|
+
agent: "agent";
|
|
521
|
+
}>;
|
|
522
|
+
target_name: z.ZodString;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
export type ConversationConfigDeleted = z.infer<typeof conversationConfigDeleted>;
|
|
525
|
+
/**
|
|
526
|
+
* The admin-only failed-delivery listing (`GET /api/conversations/messages/failed`):
|
|
527
|
+
* every answer record whose delivery ended `failed`, across every route and caller.
|
|
528
|
+
* The records are the ADMIN projection (delivery bookkeeping and `error` included),
|
|
529
|
+
* so the row shape is {@link conversationMessage} exactly. It is NOT a paged window —
|
|
530
|
+
* the door returns `{items, total}` and nothing more.
|
|
531
|
+
*/
|
|
532
|
+
export declare const conversationFailedMessages: z.ZodObject<{
|
|
533
|
+
items: z.ZodArray<z.ZodObject<{
|
|
534
|
+
message_id: z.ZodString;
|
|
535
|
+
route_name: z.ZodString;
|
|
536
|
+
door: z.ZodEnum<{
|
|
537
|
+
channel: "channel";
|
|
538
|
+
api: "api";
|
|
539
|
+
}>;
|
|
540
|
+
thread_id: z.ZodString;
|
|
541
|
+
client_address: z.ZodString;
|
|
542
|
+
caller_principal: z.ZodNullable<z.ZodString>;
|
|
543
|
+
inbound_text: z.ZodString;
|
|
544
|
+
answer_status: z.ZodNullable<z.ZodEnum<{
|
|
545
|
+
error: "error";
|
|
546
|
+
silent: "silent";
|
|
547
|
+
answered: "answered";
|
|
548
|
+
}>>;
|
|
549
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
550
|
+
origin: z.ZodEnum<{
|
|
551
|
+
client: "client";
|
|
552
|
+
operator: "operator";
|
|
553
|
+
}>;
|
|
554
|
+
delivery_status: z.ZodEnum<{
|
|
555
|
+
failed: "failed";
|
|
556
|
+
accepted: "accepted";
|
|
557
|
+
pending_delivery: "pending_delivery";
|
|
558
|
+
provisional: "provisional";
|
|
559
|
+
delivered: "delivered";
|
|
560
|
+
shed: "shed";
|
|
561
|
+
silent: "silent";
|
|
562
|
+
}>;
|
|
563
|
+
created_at: z.ZodNumber;
|
|
564
|
+
updated_at: z.ZodNumber;
|
|
565
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
|
+
our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
+
provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
568
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
569
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
570
|
+
outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
571
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
total: z.ZodNumber;
|
|
574
|
+
}, z.core.$strip>;
|
|
575
|
+
export type ConversationFailedMessages = z.infer<typeof conversationFailedMessages>;
|
|
576
|
+
/**
|
|
577
|
+
* The thread-delete reply (`DELETE /api/conversations/{route_name}/thread?thread_id=`).
|
|
578
|
+
* `removed` is a COUNT of the answer records this call deleted — `0` when a prior
|
|
579
|
+
* run already cleared them, when they had aged out under retention, or when the id
|
|
580
|
+
* was never stored (forgetting is absolute, never a 404 on a valid id).
|
|
581
|
+
*/
|
|
582
|
+
export declare const conversationThreadDeleted: z.ZodObject<{
|
|
583
|
+
removed: z.ZodNumber;
|
|
584
|
+
route_name: z.ZodString;
|
|
585
|
+
thread_id: z.ZodString;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
export type ConversationThreadDeleted = z.infer<typeof conversationThreadDeleted>;
|
|
588
|
+
/**
|
|
589
|
+
* The person-erase reply (`DELETE /api/conversations/persons/{person_id}`).
|
|
590
|
+
* `removed` counts the answer records deleted across the person's routes; `erased`
|
|
591
|
+
* says whether THIS call removed the person row (`false` on a retry or an
|
|
592
|
+
* already-gone person — never a 404).
|
|
593
|
+
*/
|
|
594
|
+
export declare const conversationPersonDeleted: z.ZodObject<{
|
|
595
|
+
person_id: z.ZodString;
|
|
596
|
+
removed: z.ZodNumber;
|
|
597
|
+
erased: z.ZodBoolean;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
export type ConversationPersonDeleted = z.infer<typeof conversationPersonDeleted>;
|
|
600
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"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