@agentdock/wire 0.0.92 → 0.0.94
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/accountLanguage.d.ts +32 -0
- package/dist/accountLanguage.js +1 -0
- package/dist/agentCapabilities.d.ts +26 -0
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentRuntimeSettings.d.ts +140 -0
- package/dist/agentRuntimeSettings.js +1 -0
- package/dist/enterpriseGateway.d.ts +215 -0
- package/dist/enterpriseGateway.js +1 -0
- package/dist/envelope.d.ts +45 -30
- package/dist/events.d.ts +24 -12
- package/dist/events.js +1 -1
- package/dist/features.d.ts +7 -3
- package/dist/features.js +1 -1
- package/dist/feedback.d.ts +18 -18
- package/dist/gateway.d.ts +386 -0
- package/dist/gateway.js +1 -0
- package/dist/handoffBrief.d.ts +14 -0
- package/dist/handoffBrief.js +52 -0
- package/dist/inboundEvents.d.ts +70 -0
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +20 -12
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +2 -2
- package/dist/legacyProtocol.d.ts +36 -36
- package/dist/machine.d.ts +9 -0
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +6 -4
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +338 -216
- package/dist/messages.js +1 -1
- package/dist/notification.d.ts +1 -1
- package/dist/notification.js +1 -1
- package/dist/rpc.d.ts +884 -84
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +50 -50
- package/dist/sessionBtw.d.ts +153 -0
- package/dist/sessionBtw.js +1 -0
- package/dist/sessionTitle.d.ts +16 -0
- package/dist/sessionTitle.js +1 -0
- package/dist/socketEvents.d.ts +9 -0
- package/dist/socketEvents.js +1 -1
- package/dist/sourceMetadata.d.ts +2 -2
- package/dist/stats.d.ts +87 -49
- package/dist/stats.js +1 -1
- package/dist/sync.d.ts +315 -0
- package/dist/sync.js +1 -1
- package/dist/workItems.d.ts +345 -0
- package/dist/workItems.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Account-wide UI and generated-response language preference. */
|
|
3
|
+
export declare const ACCOUNT_LANGUAGES: readonly ["en", "zh-Hans"];
|
|
4
|
+
export declare const DEFAULT_ACCOUNT_LANGUAGE = "en";
|
|
5
|
+
/**
|
|
6
|
+
* Daemon capability flag (RFC-081 rolling-upgrade gate). The server only injects
|
|
7
|
+
* `responseLanguage` into spawn-session/ai-helper RPC params when the target
|
|
8
|
+
* daemon declared this capability at machine-register. Older daemons whose
|
|
9
|
+
* `SpawnSessionParamsSchema` is `.strict()` reject the unknown field outright.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ACCOUNT_LANGUAGE_CAPABILITY = "account-language";
|
|
12
|
+
export declare const AccountLanguageSchema: z.ZodEnum<["en", "zh-Hans"]>;
|
|
13
|
+
export type AccountLanguage = z.infer<typeof AccountLanguageSchema>;
|
|
14
|
+
export declare function isAccountLanguage(value: unknown): value is AccountLanguage;
|
|
15
|
+
export declare const AccountLanguageRequestSchema: z.ZodObject<{
|
|
16
|
+
language: z.ZodEnum<["en", "zh-Hans"]>;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
language: "en" | "zh-Hans";
|
|
19
|
+
}, {
|
|
20
|
+
language: "en" | "zh-Hans";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const AccountLanguageResponseSchema: z.ZodObject<{
|
|
23
|
+
language: z.ZodEnum<["en", "zh-Hans"]>;
|
|
24
|
+
initialized: z.ZodBoolean;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
language: "en" | "zh-Hans";
|
|
27
|
+
initialized: boolean;
|
|
28
|
+
}, {
|
|
29
|
+
language: "en" | "zh-Hans";
|
|
30
|
+
initialized: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
//# sourceMappingURL=accountLanguage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as e}from"zod";export const ACCOUNT_LANGUAGES=["en","zh-Hans"],DEFAULT_ACCOUNT_LANGUAGE="en",ACCOUNT_LANGUAGE_CAPABILITY="account-language",AccountLanguageSchema=e.enum(ACCOUNT_LANGUAGES);export function isAccountLanguage(t){return AccountLanguageSchema.safeParse(t).success}export const AccountLanguageRequestSchema=e.object({language:AccountLanguageSchema}).strict(),AccountLanguageResponseSchema=e.object({language:AccountLanguageSchema,initialized:e.boolean()}).strict();
|
|
@@ -21,6 +21,10 @@ export interface AgentCapability {
|
|
|
21
21
|
readonly supportsSystemPrompt: boolean;
|
|
22
22
|
readonly supportsToolConfig: boolean;
|
|
23
23
|
readonly supportsMcpConfig: boolean;
|
|
24
|
+
/** Whether the agent can receive a daemon-injected MCP server (session MCP
|
|
25
|
+
* injection, e.g. the handoff tool). Distinct from `supportsMcpConfig`, which is
|
|
26
|
+
* about the user filling a `--mcp-config` CLI flag. */
|
|
27
|
+
readonly supportsMcpInjection: boolean;
|
|
24
28
|
readonly supportsPermissionMode: boolean;
|
|
25
29
|
readonly supportsResume: boolean;
|
|
26
30
|
readonly supportsMaxTurns: boolean;
|
|
@@ -30,6 +34,15 @@ export interface AgentCapability {
|
|
|
30
34
|
readonly supportsInSessionModelSwitch: boolean;
|
|
31
35
|
/** Whether the agent supports switching permission mode mid-session (without restart). */
|
|
32
36
|
readonly supportsInSessionModeSwitch: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether dynamically-discovered agent-native ACP modes (e.g. hermes
|
|
39
|
+
* accept_edits, opencode build/plan, copilot URL IDs) can be forwarded to
|
|
40
|
+
* the agent's own mode mechanism (session/set_config_option / session/set_mode).
|
|
41
|
+
* Agents with this=false never expose runtime native modes in the permission
|
|
42
|
+
* pill (their reported "modes" are not permission modes, e.g. openclaw
|
|
43
|
+
* thinking levels). Codex routes its modes via its own policy instead.
|
|
44
|
+
*/
|
|
45
|
+
readonly supportsNativeModeForward: boolean;
|
|
33
46
|
/** Whether the agent supports real-time context window usage queries (getContextUsage). */
|
|
34
47
|
readonly supportsContextUsageQuery: boolean;
|
|
35
48
|
/** ACP agent — model/mode lists come from daemon cache, not static config. */
|
|
@@ -41,6 +54,19 @@ export interface AgentCapability {
|
|
|
41
54
|
/** Default permission mode value for this agent. */
|
|
42
55
|
readonly defaultPermissionMode: string;
|
|
43
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Semantic mapping of known agent-native mode IDs to AgentDock policy values.
|
|
59
|
+
* Only for native modes that ARE approval strategies (hermes). Unmapped/unknown
|
|
60
|
+
* native modes fall through to the open native channel (forwarded) — no schema
|
|
61
|
+
* or capability change needed for future agent modes.
|
|
62
|
+
*/
|
|
63
|
+
export declare const NATIVE_MODE_TO_POLICY: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
64
|
+
/**
|
|
65
|
+
* Resolve a permission-mode value to the AgentDock policy value the daemon
|
|
66
|
+
* should enforce, or null when the value is an agent-native mode to forward.
|
|
67
|
+
* Agent-aware: codex's native approval policies count as policy for codex.
|
|
68
|
+
*/
|
|
69
|
+
export declare function resolvePolicyMode(agentType: string, mode: string): string | null;
|
|
44
70
|
export declare const AGENT_CAPABILITIES: Readonly<Record<string, AgentCapability>>;
|
|
45
71
|
/** Update dynamic modes for an ACP agent (called by daemon when session reports modes). */
|
|
46
72
|
export declare function updateDynamicModes(agentType: string, modes: readonly {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=[{value:"default",labelKey:"permissionDefault"},{value:"acceptEdits",labelKey:"permissionAutoEdit"},{value:"auto",labelKey:"permissionAuto"},{value:"plan",labelKey:"permissionPlan"},{value:"bypassPermissions",labelKey:"permissionFullAuto"}],u=[{value:"sonnet",label:"Sonnet"},{value:"opus",label:"Opus"},{value:"haiku",label:"Haiku"}],p=new Set(["default","acceptEdits","bypassPermissions","yolo"]),l=new Set(["never","untrusted","on-failure","on-request"]);export const NATIVE_MODE_TO_POLICY={hermes:{accept_edits:"acceptEdits",dont_ask:"bypassPermissions"}};export function resolvePolicyMode(s,e){const o=NATIVE_MODE_TO_POLICY[s]?.[e];return o||((s==="codex"?new Set([...p,...l]):p).has(e)?e:null)}export const AGENT_CAPABILITIES={claude:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!0,supportsMcpConfig:!0,supportsMcpInjection:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!0,supportsSlashClear:!0,supportsSlashCompact:!0,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,supportsNativeModeForward:!1,supportsContextUsageQuery:!0,usesAcpConfig:!1,staticModels:u,permissionModes:r,defaultPermissionMode:"default"},copilot:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!0,supportsMcpConfig:!0,supportsMcpInjection:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!0,supportsNativeModeForward:!0,supportsContextUsageQuery:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},opencode:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!0,supportsMcpConfig:!0,supportsMcpInjection:!0,supportsPermissionMode:!1,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,supportsNativeModeForward:!0,supportsContextUsageQuery:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},codex:{controlLevel:2,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!1,supportsMcpConfig:!1,supportsMcpInjection:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!0,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,supportsNativeModeForward:!1,supportsContextUsageQuery:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},gemini:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!0,supportsMcpInjection:!0,supportsPermissionMode:!1,supportsResume:!1,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,supportsNativeModeForward:!1,supportsContextUsageQuery:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:"bypassPermissions"},hermes:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!0,supportsMcpInjection:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!0,supportsNativeModeForward:!0,supportsContextUsageQuery:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[{value:"default",labelKey:"permissionDefault"},{value:"acceptEdits",labelKey:"permissionAutoEdit"},{value:"bypassPermissions",labelKey:"permissionFullAuto"}],defaultPermissionMode:"default"},openclaw:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!1,supportsMcpInjection:!1,supportsPermissionMode:!1,supportsResume:!1,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,supportsNativeModeForward:!1,supportsContextUsageQuery:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""}};let t={};export function updateDynamicModes(s,e){e.length!==0&&(t={...t,[s]:e.map(o=>({value:o.id,labelKey:o.label}))})}export function getDynamicModes(s){return t[s]??null}export function getAgentCapability(s){return AGENT_CAPABILITIES[s]??{controlLevel:0,supportsModel:!1,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!1,supportsMcpInjection:!1,supportsPermissionMode:!1,supportsResume:!1,supportsMaxTurns:!1,supportsSlashClear:!1,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,supportsNativeModeForward:!1,supportsContextUsageQuery:!1,usesAcpConfig:!1,staticModels:[],permissionModes:[],defaultPermissionMode:"default"}}export function normalizeModelId(s){return s.replace(/(\d+)\.(\d+)/g,"$1-$2")}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RuntimeAgentSchema: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
3
|
+
export type RuntimeAgent = z.infer<typeof RuntimeAgentSchema>;
|
|
4
|
+
/** Versioned, credential-free settings delivered to an enterprise container. */
|
|
5
|
+
export declare const AgentRuntimeSettingsSchema: z.ZodObject<{
|
|
6
|
+
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
7
|
+
routeId: z.ZodString;
|
|
8
|
+
routeAlias: z.ZodString;
|
|
9
|
+
gatewayUrl: z.ZodString;
|
|
10
|
+
model: z.ZodString;
|
|
11
|
+
configVersion: z.ZodNumber;
|
|
12
|
+
issuedAt: z.ZodString;
|
|
13
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
forced: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
+
userOverrides: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
model: string;
|
|
18
|
+
agent: "codex" | "claude" | "opencode";
|
|
19
|
+
routeId: string;
|
|
20
|
+
routeAlias: string;
|
|
21
|
+
gatewayUrl: string;
|
|
22
|
+
configVersion: number;
|
|
23
|
+
issuedAt: string;
|
|
24
|
+
expiresAt: string | null;
|
|
25
|
+
forced: Record<string, unknown>;
|
|
26
|
+
userOverrides: Record<string, unknown>;
|
|
27
|
+
}, {
|
|
28
|
+
model: string;
|
|
29
|
+
agent: "codex" | "claude" | "opencode";
|
|
30
|
+
routeId: string;
|
|
31
|
+
routeAlias: string;
|
|
32
|
+
gatewayUrl: string;
|
|
33
|
+
configVersion: number;
|
|
34
|
+
issuedAt: string;
|
|
35
|
+
expiresAt: string | null;
|
|
36
|
+
forced: Record<string, unknown>;
|
|
37
|
+
userOverrides: Record<string, unknown>;
|
|
38
|
+
}>;
|
|
39
|
+
export type AgentRuntimeSettings = z.infer<typeof AgentRuntimeSettingsSchema>;
|
|
40
|
+
export declare const AgentRuntimeSettingsBundleSchema: z.ZodObject<{
|
|
41
|
+
settings: z.ZodArray<z.ZodObject<{
|
|
42
|
+
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
43
|
+
routeId: z.ZodString;
|
|
44
|
+
routeAlias: z.ZodString;
|
|
45
|
+
gatewayUrl: z.ZodString;
|
|
46
|
+
model: z.ZodString;
|
|
47
|
+
configVersion: z.ZodNumber;
|
|
48
|
+
issuedAt: z.ZodString;
|
|
49
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
50
|
+
forced: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
51
|
+
userOverrides: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
model: string;
|
|
54
|
+
agent: "codex" | "claude" | "opencode";
|
|
55
|
+
routeId: string;
|
|
56
|
+
routeAlias: string;
|
|
57
|
+
gatewayUrl: string;
|
|
58
|
+
configVersion: number;
|
|
59
|
+
issuedAt: string;
|
|
60
|
+
expiresAt: string | null;
|
|
61
|
+
forced: Record<string, unknown>;
|
|
62
|
+
userOverrides: Record<string, unknown>;
|
|
63
|
+
}, {
|
|
64
|
+
model: string;
|
|
65
|
+
agent: "codex" | "claude" | "opencode";
|
|
66
|
+
routeId: string;
|
|
67
|
+
routeAlias: string;
|
|
68
|
+
gatewayUrl: string;
|
|
69
|
+
configVersion: number;
|
|
70
|
+
issuedAt: string;
|
|
71
|
+
expiresAt: string | null;
|
|
72
|
+
forced: Record<string, unknown>;
|
|
73
|
+
userOverrides: Record<string, unknown>;
|
|
74
|
+
}>, "many">;
|
|
75
|
+
daemonCapability: z.ZodString;
|
|
76
|
+
}, "strict", z.ZodTypeAny, {
|
|
77
|
+
settings: {
|
|
78
|
+
model: string;
|
|
79
|
+
agent: "codex" | "claude" | "opencode";
|
|
80
|
+
routeId: string;
|
|
81
|
+
routeAlias: string;
|
|
82
|
+
gatewayUrl: string;
|
|
83
|
+
configVersion: number;
|
|
84
|
+
issuedAt: string;
|
|
85
|
+
expiresAt: string | null;
|
|
86
|
+
forced: Record<string, unknown>;
|
|
87
|
+
userOverrides: Record<string, unknown>;
|
|
88
|
+
}[];
|
|
89
|
+
daemonCapability: string;
|
|
90
|
+
}, {
|
|
91
|
+
settings: {
|
|
92
|
+
model: string;
|
|
93
|
+
agent: "codex" | "claude" | "opencode";
|
|
94
|
+
routeId: string;
|
|
95
|
+
routeAlias: string;
|
|
96
|
+
gatewayUrl: string;
|
|
97
|
+
configVersion: number;
|
|
98
|
+
issuedAt: string;
|
|
99
|
+
expiresAt: string | null;
|
|
100
|
+
forced: Record<string, unknown>;
|
|
101
|
+
userOverrides: Record<string, unknown>;
|
|
102
|
+
}[];
|
|
103
|
+
daemonCapability: string;
|
|
104
|
+
}>;
|
|
105
|
+
export type AgentRuntimeSettingsBundle = z.infer<typeof AgentRuntimeSettingsBundleSchema>;
|
|
106
|
+
export declare const AgentRuntimeSettingsListSchema: z.ZodArray<z.ZodObject<{
|
|
107
|
+
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
108
|
+
routeId: z.ZodString;
|
|
109
|
+
routeAlias: z.ZodString;
|
|
110
|
+
gatewayUrl: z.ZodString;
|
|
111
|
+
model: z.ZodString;
|
|
112
|
+
configVersion: z.ZodNumber;
|
|
113
|
+
issuedAt: z.ZodString;
|
|
114
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
115
|
+
forced: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
116
|
+
userOverrides: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
117
|
+
}, "strict", z.ZodTypeAny, {
|
|
118
|
+
model: string;
|
|
119
|
+
agent: "codex" | "claude" | "opencode";
|
|
120
|
+
routeId: string;
|
|
121
|
+
routeAlias: string;
|
|
122
|
+
gatewayUrl: string;
|
|
123
|
+
configVersion: number;
|
|
124
|
+
issuedAt: string;
|
|
125
|
+
expiresAt: string | null;
|
|
126
|
+
forced: Record<string, unknown>;
|
|
127
|
+
userOverrides: Record<string, unknown>;
|
|
128
|
+
}, {
|
|
129
|
+
model: string;
|
|
130
|
+
agent: "codex" | "claude" | "opencode";
|
|
131
|
+
routeId: string;
|
|
132
|
+
routeAlias: string;
|
|
133
|
+
gatewayUrl: string;
|
|
134
|
+
configVersion: number;
|
|
135
|
+
issuedAt: string;
|
|
136
|
+
expiresAt: string | null;
|
|
137
|
+
forced: Record<string, unknown>;
|
|
138
|
+
userOverrides: Record<string, unknown>;
|
|
139
|
+
}>, "many">;
|
|
140
|
+
//# sourceMappingURL=agentRuntimeSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as e}from"zod";export const RuntimeAgentSchema=e.enum(["claude","codex","opencode"]),AgentRuntimeSettingsSchema=e.object({agent:RuntimeAgentSchema,routeId:e.string().min(1),routeAlias:e.string().min(1),gatewayUrl:e.string().url(),model:e.string().min(1),configVersion:e.number().int().positive(),issuedAt:e.string().datetime(),expiresAt:e.string().datetime().nullable(),forced:e.record(e.unknown()),userOverrides:e.record(e.unknown())}).strict(),AgentRuntimeSettingsBundleSchema=e.object({settings:e.array(AgentRuntimeSettingsSchema),daemonCapability:e.string().min(1)}).strict(),AgentRuntimeSettingsListSchema=e.array(AgentRuntimeSettingsSchema);
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** RFC-090 Phase 0: the first native gateway slice is Claude Messages only. */
|
|
3
|
+
export declare const EnterpriseGatewayAgentSchema: z.ZodLiteral<"claude">;
|
|
4
|
+
export declare const EnterpriseGatewayProtocolSchema: z.ZodLiteral<"anthropic_messages">;
|
|
5
|
+
export declare const EnterpriseRouteStatusSchema: z.ZodEnum<["draft", "validating", "active", "disabled", "error", "needs-review"]>;
|
|
6
|
+
export declare const EnterpriseRouteCapabilitySchema: z.ZodObject<{
|
|
7
|
+
streaming: z.ZodBoolean;
|
|
8
|
+
toolCalls: z.ZodBoolean;
|
|
9
|
+
reasoning: z.ZodBoolean;
|
|
10
|
+
multiTurn: z.ZodBoolean;
|
|
11
|
+
tokenUsage: z.ZodEnum<["verified", "unknown"]>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
streaming: boolean;
|
|
14
|
+
toolCalls: boolean;
|
|
15
|
+
reasoning: boolean;
|
|
16
|
+
multiTurn: boolean;
|
|
17
|
+
tokenUsage: "unknown" | "verified";
|
|
18
|
+
}, {
|
|
19
|
+
streaming: boolean;
|
|
20
|
+
toolCalls: boolean;
|
|
21
|
+
reasoning: boolean;
|
|
22
|
+
multiTurn: boolean;
|
|
23
|
+
tokenUsage: "unknown" | "verified";
|
|
24
|
+
}>;
|
|
25
|
+
export declare const EnterpriseUpstreamConnectionSchema: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
enterpriseId: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
baseUrl: z.ZodString;
|
|
30
|
+
credentialMasked: z.ZodString;
|
|
31
|
+
status: z.ZodEnum<["active", "disabled", "error"]>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
status: "error" | "active" | "disabled";
|
|
34
|
+
name: string;
|
|
35
|
+
id: string;
|
|
36
|
+
baseUrl: string;
|
|
37
|
+
enterpriseId: string;
|
|
38
|
+
credentialMasked: string;
|
|
39
|
+
}, {
|
|
40
|
+
status: "error" | "active" | "disabled";
|
|
41
|
+
name: string;
|
|
42
|
+
id: string;
|
|
43
|
+
baseUrl: string;
|
|
44
|
+
enterpriseId: string;
|
|
45
|
+
credentialMasked: string;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const EnterpriseAgentModelRouteSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
enterpriseId: z.ZodString;
|
|
50
|
+
connectionId: z.ZodString;
|
|
51
|
+
agent: z.ZodLiteral<"claude">;
|
|
52
|
+
model: z.ZodString;
|
|
53
|
+
requestProtocol: z.ZodLiteral<"anthropic_messages">;
|
|
54
|
+
upstreamProtocol: z.ZodLiteral<"anthropic_messages">;
|
|
55
|
+
provider: z.ZodString;
|
|
56
|
+
alias: z.ZodString;
|
|
57
|
+
capabilities: z.ZodObject<{
|
|
58
|
+
streaming: z.ZodBoolean;
|
|
59
|
+
toolCalls: z.ZodBoolean;
|
|
60
|
+
reasoning: z.ZodBoolean;
|
|
61
|
+
multiTurn: z.ZodBoolean;
|
|
62
|
+
tokenUsage: z.ZodEnum<["verified", "unknown"]>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
streaming: boolean;
|
|
65
|
+
toolCalls: boolean;
|
|
66
|
+
reasoning: boolean;
|
|
67
|
+
multiTurn: boolean;
|
|
68
|
+
tokenUsage: "unknown" | "verified";
|
|
69
|
+
}, {
|
|
70
|
+
streaming: boolean;
|
|
71
|
+
toolCalls: boolean;
|
|
72
|
+
reasoning: boolean;
|
|
73
|
+
multiTurn: boolean;
|
|
74
|
+
tokenUsage: "unknown" | "verified";
|
|
75
|
+
}>;
|
|
76
|
+
status: z.ZodEnum<["draft", "validating", "active", "disabled", "error", "needs-review"]>;
|
|
77
|
+
configGeneration: z.ZodNumber;
|
|
78
|
+
lastValidationAt: z.ZodNullable<z.ZodString>;
|
|
79
|
+
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
status: "error" | "active" | "draft" | "validating" | "disabled" | "needs-review";
|
|
82
|
+
model: string;
|
|
83
|
+
agent: "claude";
|
|
84
|
+
id: string;
|
|
85
|
+
provider: string;
|
|
86
|
+
capabilities: {
|
|
87
|
+
streaming: boolean;
|
|
88
|
+
toolCalls: boolean;
|
|
89
|
+
reasoning: boolean;
|
|
90
|
+
multiTurn: boolean;
|
|
91
|
+
tokenUsage: "unknown" | "verified";
|
|
92
|
+
};
|
|
93
|
+
enterpriseId: string;
|
|
94
|
+
connectionId: string;
|
|
95
|
+
requestProtocol: "anthropic_messages";
|
|
96
|
+
upstreamProtocol: "anthropic_messages";
|
|
97
|
+
alias: string;
|
|
98
|
+
configGeneration: number;
|
|
99
|
+
lastValidationAt: string | null;
|
|
100
|
+
lastErrorCode: string | null;
|
|
101
|
+
}, {
|
|
102
|
+
status: "error" | "active" | "draft" | "validating" | "disabled" | "needs-review";
|
|
103
|
+
model: string;
|
|
104
|
+
agent: "claude";
|
|
105
|
+
id: string;
|
|
106
|
+
provider: string;
|
|
107
|
+
capabilities: {
|
|
108
|
+
streaming: boolean;
|
|
109
|
+
toolCalls: boolean;
|
|
110
|
+
reasoning: boolean;
|
|
111
|
+
multiTurn: boolean;
|
|
112
|
+
tokenUsage: "unknown" | "verified";
|
|
113
|
+
};
|
|
114
|
+
enterpriseId: string;
|
|
115
|
+
connectionId: string;
|
|
116
|
+
requestProtocol: "anthropic_messages";
|
|
117
|
+
upstreamProtocol: "anthropic_messages";
|
|
118
|
+
alias: string;
|
|
119
|
+
configGeneration: number;
|
|
120
|
+
lastValidationAt: string | null;
|
|
121
|
+
lastErrorCode: string | null;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const CreateEnterpriseUpstreamConnectionBodySchema: z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
baseUrl: z.ZodString;
|
|
126
|
+
apiKey: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
name: string;
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
apiKey: string;
|
|
131
|
+
}, {
|
|
132
|
+
name: string;
|
|
133
|
+
baseUrl: string;
|
|
134
|
+
apiKey: string;
|
|
135
|
+
}>;
|
|
136
|
+
export declare const CreateEnterpriseAgentModelRouteBodySchema: z.ZodObject<{
|
|
137
|
+
connectionId: z.ZodString;
|
|
138
|
+
agent: z.ZodLiteral<"claude">;
|
|
139
|
+
model: z.ZodString;
|
|
140
|
+
requestProtocol: z.ZodLiteral<"anthropic_messages">;
|
|
141
|
+
upstreamProtocol: z.ZodLiteral<"anthropic_messages">;
|
|
142
|
+
provider: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
model: string;
|
|
145
|
+
agent: "claude";
|
|
146
|
+
provider: string;
|
|
147
|
+
connectionId: string;
|
|
148
|
+
requestProtocol: "anthropic_messages";
|
|
149
|
+
upstreamProtocol: "anthropic_messages";
|
|
150
|
+
}, {
|
|
151
|
+
model: string;
|
|
152
|
+
agent: "claude";
|
|
153
|
+
provider: string;
|
|
154
|
+
connectionId: string;
|
|
155
|
+
requestProtocol: "anthropic_messages";
|
|
156
|
+
upstreamProtocol: "anthropic_messages";
|
|
157
|
+
}>;
|
|
158
|
+
export declare const EnterpriseRouteValidationResultSchema: z.ZodObject<{
|
|
159
|
+
routeId: z.ZodString;
|
|
160
|
+
status: z.ZodEnum<["draft", "validating", "active", "disabled", "error", "needs-review"]>;
|
|
161
|
+
protocolVerified: z.ZodBoolean;
|
|
162
|
+
capabilities: z.ZodObject<{
|
|
163
|
+
streaming: z.ZodBoolean;
|
|
164
|
+
toolCalls: z.ZodBoolean;
|
|
165
|
+
reasoning: z.ZodBoolean;
|
|
166
|
+
multiTurn: z.ZodBoolean;
|
|
167
|
+
tokenUsage: z.ZodEnum<["verified", "unknown"]>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
streaming: boolean;
|
|
170
|
+
toolCalls: boolean;
|
|
171
|
+
reasoning: boolean;
|
|
172
|
+
multiTurn: boolean;
|
|
173
|
+
tokenUsage: "unknown" | "verified";
|
|
174
|
+
}, {
|
|
175
|
+
streaming: boolean;
|
|
176
|
+
toolCalls: boolean;
|
|
177
|
+
reasoning: boolean;
|
|
178
|
+
multiTurn: boolean;
|
|
179
|
+
tokenUsage: "unknown" | "verified";
|
|
180
|
+
}>;
|
|
181
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
status: "error" | "active" | "draft" | "validating" | "disabled" | "needs-review";
|
|
184
|
+
capabilities: {
|
|
185
|
+
streaming: boolean;
|
|
186
|
+
toolCalls: boolean;
|
|
187
|
+
reasoning: boolean;
|
|
188
|
+
multiTurn: boolean;
|
|
189
|
+
tokenUsage: "unknown" | "verified";
|
|
190
|
+
};
|
|
191
|
+
routeId: string;
|
|
192
|
+
protocolVerified: boolean;
|
|
193
|
+
errorCode: string | null;
|
|
194
|
+
}, {
|
|
195
|
+
status: "error" | "active" | "draft" | "validating" | "disabled" | "needs-review";
|
|
196
|
+
capabilities: {
|
|
197
|
+
streaming: boolean;
|
|
198
|
+
toolCalls: boolean;
|
|
199
|
+
reasoning: boolean;
|
|
200
|
+
multiTurn: boolean;
|
|
201
|
+
tokenUsage: "unknown" | "verified";
|
|
202
|
+
};
|
|
203
|
+
routeId: string;
|
|
204
|
+
protocolVerified: boolean;
|
|
205
|
+
errorCode: string | null;
|
|
206
|
+
}>;
|
|
207
|
+
export type EnterpriseGatewayAgent = z.infer<typeof EnterpriseGatewayAgentSchema>;
|
|
208
|
+
export type EnterpriseGatewayProtocol = z.infer<typeof EnterpriseGatewayProtocolSchema>;
|
|
209
|
+
export type EnterpriseRouteCapability = z.infer<typeof EnterpriseRouteCapabilitySchema>;
|
|
210
|
+
export type EnterpriseUpstreamConnection = z.infer<typeof EnterpriseUpstreamConnectionSchema>;
|
|
211
|
+
export type EnterpriseAgentModelRoute = z.infer<typeof EnterpriseAgentModelRouteSchema>;
|
|
212
|
+
export type CreateEnterpriseUpstreamConnectionBody = z.infer<typeof CreateEnterpriseUpstreamConnectionBodySchema>;
|
|
213
|
+
export type CreateEnterpriseAgentModelRouteBody = z.infer<typeof CreateEnterpriseAgentModelRouteBodySchema>;
|
|
214
|
+
export type EnterpriseRouteValidationResult = z.infer<typeof EnterpriseRouteValidationResultSchema>;
|
|
215
|
+
//# sourceMappingURL=enterpriseGateway.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as e}from"zod";export const EnterpriseGatewayAgentSchema=e.literal("claude"),EnterpriseGatewayProtocolSchema=e.literal("anthropic_messages"),EnterpriseRouteStatusSchema=e.enum(["draft","validating","active","disabled","error","needs-review"]),EnterpriseRouteCapabilitySchema=e.object({streaming:e.boolean(),toolCalls:e.boolean(),reasoning:e.boolean(),multiTurn:e.boolean(),tokenUsage:e.enum(["verified","unknown"])}),EnterpriseUpstreamConnectionSchema=e.object({id:e.string().min(1),enterpriseId:e.string().min(1),name:e.string().min(1).max(128),baseUrl:e.string().url(),credentialMasked:e.string().min(1),status:e.enum(["active","disabled","error"])}),EnterpriseAgentModelRouteSchema=e.object({id:e.string().min(1),enterpriseId:e.string().min(1),connectionId:e.string().min(1),agent:EnterpriseGatewayAgentSchema,model:e.string().min(1).max(128),requestProtocol:EnterpriseGatewayProtocolSchema,upstreamProtocol:EnterpriseGatewayProtocolSchema,provider:e.string().min(1).max(64),alias:e.string().min(1).max(128),capabilities:EnterpriseRouteCapabilitySchema,status:EnterpriseRouteStatusSchema,configGeneration:e.number().int().nonnegative(),lastValidationAt:e.string().datetime().nullable(),lastErrorCode:e.string().min(1).nullable()}),CreateEnterpriseUpstreamConnectionBodySchema=e.object({name:e.string().min(1).max(128),baseUrl:e.string().url(),apiKey:e.string().min(1)}),CreateEnterpriseAgentModelRouteBodySchema=e.object({connectionId:e.string().min(1),agent:EnterpriseGatewayAgentSchema,model:e.string().min(1).max(128),requestProtocol:EnterpriseGatewayProtocolSchema,upstreamProtocol:EnterpriseGatewayProtocolSchema,provider:e.string().min(1).max(64)}),EnterpriseRouteValidationResultSchema=e.object({routeId:e.string().min(1),status:EnterpriseRouteStatusSchema,protocolVerified:e.boolean(),capabilities:EnterpriseRouteCapabilitySchema,errorCode:e.string().min(1).nullable()});
|
package/dist/envelope.d.ts
CHANGED
|
@@ -1143,22 +1143,25 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1143
1143
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1144
1144
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1145
1145
|
t: z.ZodLiteral<"compact-boundary">;
|
|
1146
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
1147
|
-
preTokens: z.ZodNumber
|
|
1146
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
1147
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
1148
1148
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1149
1149
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1150
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1150
1151
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1151
1152
|
t: z.ZodLiteral<"compact-boundary">;
|
|
1152
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
1153
|
-
preTokens: z.ZodNumber
|
|
1153
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
1154
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
1154
1155
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1155
1156
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1157
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1156
1158
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1157
1159
|
t: z.ZodLiteral<"compact-boundary">;
|
|
1158
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
1159
|
-
preTokens: z.ZodNumber
|
|
1160
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
1161
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
1160
1162
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1161
1163
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1164
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1162
1165
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1163
1166
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1164
1167
|
id: z.ZodString;
|
|
@@ -2296,22 +2299,25 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2296
2299
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2297
2300
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2298
2301
|
t: z.ZodLiteral<"compact-boundary">;
|
|
2299
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
2300
|
-
preTokens: z.ZodNumber
|
|
2302
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
2303
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
2301
2304
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2302
2305
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2306
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2303
2307
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2304
2308
|
t: z.ZodLiteral<"compact-boundary">;
|
|
2305
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
2306
|
-
preTokens: z.ZodNumber
|
|
2309
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
2310
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
2307
2311
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2308
2312
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2313
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2309
2314
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2310
2315
|
t: z.ZodLiteral<"compact-boundary">;
|
|
2311
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
2312
|
-
preTokens: z.ZodNumber
|
|
2316
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
2317
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
2313
2318
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2314
2319
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2320
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2315
2321
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2316
2322
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2317
2323
|
id: z.ZodString;
|
|
@@ -3449,22 +3455,25 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3449
3455
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3450
3456
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3451
3457
|
t: z.ZodLiteral<"compact-boundary">;
|
|
3452
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
3453
|
-
preTokens: z.ZodNumber
|
|
3458
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
3459
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
3454
3460
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
3455
3461
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3462
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3456
3463
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3457
3464
|
t: z.ZodLiteral<"compact-boundary">;
|
|
3458
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
3459
|
-
preTokens: z.ZodNumber
|
|
3465
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
3466
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
3460
3467
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
3461
3468
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3469
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3462
3470
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3463
3471
|
t: z.ZodLiteral<"compact-boundary">;
|
|
3464
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
3465
|
-
preTokens: z.ZodNumber
|
|
3472
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
3473
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
3466
3474
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
3467
3475
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3476
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3468
3477
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
3469
3478
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
3470
3479
|
id: z.ZodString;
|
|
@@ -4602,22 +4611,25 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4602
4611
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
4603
4612
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
4604
4613
|
t: z.ZodLiteral<"compact-boundary">;
|
|
4605
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
4606
|
-
preTokens: z.ZodNumber
|
|
4614
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
4615
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
4607
4616
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
4608
4617
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4618
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4609
4619
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4610
4620
|
t: z.ZodLiteral<"compact-boundary">;
|
|
4611
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
4612
|
-
preTokens: z.ZodNumber
|
|
4621
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
4622
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
4613
4623
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
4614
4624
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4625
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4615
4626
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4616
4627
|
t: z.ZodLiteral<"compact-boundary">;
|
|
4617
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
4618
|
-
preTokens: z.ZodNumber
|
|
4628
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
4629
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
4619
4630
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
4620
4631
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4632
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4621
4633
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
4622
4634
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4623
4635
|
id: z.ZodString;
|
|
@@ -5755,22 +5767,25 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5755
5767
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
5756
5768
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
5757
5769
|
t: z.ZodLiteral<"compact-boundary">;
|
|
5758
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
5759
|
-
preTokens: z.ZodNumber
|
|
5770
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
5771
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
5760
5772
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
5761
5773
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5774
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
5762
5775
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5763
5776
|
t: z.ZodLiteral<"compact-boundary">;
|
|
5764
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
5765
|
-
preTokens: z.ZodNumber
|
|
5777
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
5778
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
5766
5779
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
5767
5780
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5781
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
5768
5782
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5769
5783
|
t: z.ZodLiteral<"compact-boundary">;
|
|
5770
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
5771
|
-
preTokens: z.ZodNumber
|
|
5784
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
5785
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
5772
5786
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
5773
5787
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5788
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
5774
5789
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
5775
5790
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5776
5791
|
export type SessionEnvelope = z.infer<typeof SessionEnvelopeSchema>;
|