@agentdock/wire 0.0.96 → 0.0.97
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/agentCapabilities.d.ts +5 -2
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCompatibility.d.ts +83 -0
- package/dist/agentCompatibility.js +1 -0
- package/dist/agentInstallGuide.js +1 -1
- package/dist/checkpointSchemas.d.ts +5 -0
- package/dist/checkpointSchemas.js +1 -1
- package/dist/enterpriseDirectory.d.ts +8 -8
- package/dist/enterpriseFileService.d.ts +7 -0
- package/dist/enterpriseFileService.js +1 -0
- package/dist/enterprisePolicy.d.ts +169 -0
- package/dist/enterprisePolicy.js +1 -1
- package/dist/enterprisePolicyExports.d.ts +4 -2
- package/dist/enterprisePolicyExports.js +1 -1
- package/dist/enterpriseRuntime.d.ts +445 -20
- package/dist/enterpriseRuntime.js +1 -1
- package/dist/enterpriseUserContainer.d.ts +2 -0
- package/dist/enterpriseUserContainer.js +1 -0
- package/dist/gateway.d.ts +6 -6
- package/dist/gatewayUsage.d.ts +26 -10
- package/dist/gatewayUsage.js +1 -1
- package/dist/inboundEvents.d.ts +0 -6
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +10 -4
- 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 +1 -6
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +9 -7
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +36 -36
- package/dist/ops.d.ts +112 -0
- package/dist/ops.js +1 -1
- package/dist/opsExports.d.ts +4 -0
- package/dist/opsExports.js +1 -0
- package/dist/pushPreferences.d.ts +12 -0
- package/dist/pushPreferences.js +1 -0
- package/dist/rpc.d.ts +537 -66
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +96 -21
- package/dist/scheduledTasks.js +1 -1
- package/dist/session.d.ts +4 -0
- package/dist/session.js +1 -0
- package/dist/sessionFiles.d.ts +70 -0
- package/dist/sessionFiles.js +1 -0
- package/dist/sessionSlashCommands.d.ts +15 -0
- package/dist/sessionSlashCommands.js +1 -0
- package/dist/spawnError.d.ts +3 -3
- package/dist/stats.d.ts +31 -31
- package/dist/sync.d.ts +45 -45
- package/dist/sync.js +1 -1
- package/dist/telemetry.d.ts +13 -13
- package/dist/telemetry.js +1 -1
- package/dist/workspaceFileReaderProtocol.d.ts +270 -0
- package/dist/workspaceFileReaderProtocol.js +1 -0
- package/dist/workspaceFileRelay.d.ts +188 -0
- package/dist/workspaceFileRelay.js +1 -0
- package/package.json +1 -1
- package/dist/agentRuntimeSettings.d.ts +0 -139
- package/dist/agentRuntimeSettings.js +0 -1
- package/dist/enterpriseGateway.d.ts +0 -214
- package/dist/enterpriseGateway.js +0 -1
- package/dist/goals.d.ts +0 -829
- package/dist/goals.js +0 -1
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const RuntimeAgentSchema: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
3
|
-
export type RuntimeAgent = z.infer<typeof RuntimeAgentSchema>;
|
|
4
|
-
|
|
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">;
|
|
@@ -1 +0,0 @@
|
|
|
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);
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
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()});
|