@agentdock/wire 0.0.94 → 0.0.96

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.
Files changed (73) hide show
  1. package/dist/accountLanguage.d.ts +2 -8
  2. package/dist/activityPreferences.d.ts +0 -2
  3. package/dist/agentCapabilities.d.ts +16 -46
  4. package/dist/agentCommonEnv.d.ts +0 -9
  5. package/dist/agentInstallGuide.d.ts +0 -7
  6. package/dist/agentRuntimeSettings.d.ts +1 -2
  7. package/dist/bgTask.d.ts +13 -24
  8. package/dist/checkpointSchemas.d.ts +1 -2
  9. package/dist/controlLevel.d.ts +1 -9
  10. package/dist/edition.d.ts +0 -1
  11. package/dist/enterpriseCurrency.d.ts +120 -0
  12. package/dist/enterpriseCurrency.js +1 -0
  13. package/dist/enterpriseDirectory.d.ts +636 -0
  14. package/dist/enterpriseDirectory.js +1 -0
  15. package/dist/enterpriseGateway.d.ts +1 -2
  16. package/dist/enterpriseGatewayExports.d.ts +4 -0
  17. package/dist/enterpriseGatewayExports.js +1 -0
  18. package/dist/enterpriseOverview.d.ts +423 -0
  19. package/dist/enterpriseOverview.js +1 -0
  20. package/dist/enterprisePolicy.d.ts +1393 -0
  21. package/dist/enterprisePolicy.js +1 -0
  22. package/dist/enterprisePolicyExports.d.ts +2 -0
  23. package/dist/enterprisePolicyExports.js +1 -0
  24. package/dist/enterpriseRange.d.ts +19 -0
  25. package/dist/enterpriseRange.js +1 -0
  26. package/dist/enterpriseRuntime.d.ts +420 -0
  27. package/dist/enterpriseRuntime.js +1 -0
  28. package/dist/envelope.d.ts +18 -30
  29. package/dist/errorMessage.d.ts +0 -1
  30. package/dist/events.d.ts +55 -71
  31. package/dist/features.d.ts +14 -29
  32. package/dist/feedback.d.ts +3 -4
  33. package/dist/fileWhitelist.d.ts +7 -39
  34. package/dist/gateway.d.ts +1643 -328
  35. package/dist/gateway.js +1 -1
  36. package/dist/gatewayBodyRetention.d.ts +149 -0
  37. package/dist/gatewayBodyRetention.js +2 -0
  38. package/dist/gatewayUsage.d.ts +3232 -0
  39. package/dist/gatewayUsage.js +1 -0
  40. package/dist/goals.d.ts +0 -1
  41. package/dist/handoffBrief.d.ts +1 -2
  42. package/dist/inboundEvents.d.ts +32 -75
  43. package/dist/index.d.ts +11 -7
  44. package/dist/index.js +1 -1
  45. package/dist/interactionEvents.d.ts +49 -57
  46. package/dist/legacyProtocol.d.ts +0 -6
  47. package/dist/license.d.ts +36 -37
  48. package/dist/machine.d.ts +48 -56
  49. package/dist/messageMeta.d.ts +15 -17
  50. package/dist/messages.d.ts +13 -20
  51. package/dist/notification.d.ts +2 -3
  52. package/dist/ops.d.ts +9 -27
  53. package/dist/pairing.d.ts +9 -49
  54. package/dist/permissionSubject.d.ts +3 -26
  55. package/dist/protocol.d.ts +0 -6
  56. package/dist/rpc.d.ts +118 -162
  57. package/dist/rpc.js +1 -1
  58. package/dist/scheduledTasks.d.ts +9 -10
  59. package/dist/semver.d.ts +3 -22
  60. package/dist/sessionBtw.d.ts +6 -7
  61. package/dist/sessionBtw.js +1 -1
  62. package/dist/sessionResult.d.ts +21 -27
  63. package/dist/sessionTitle.d.ts +2 -9
  64. package/dist/socketEvents.d.ts +4 -5
  65. package/dist/sourceMetadata.d.ts +1 -14
  66. package/dist/spawnError.d.ts +7 -14
  67. package/dist/stats.d.ts +13 -20
  68. package/dist/sync.d.ts +75 -156
  69. package/dist/taskResult.d.ts +3 -20
  70. package/dist/telemetry.d.ts +1 -11
  71. package/dist/utils.d.ts +0 -1
  72. package/dist/workItems.d.ts +6 -30
  73. package/package.json +1 -1
package/dist/gateway.d.ts CHANGED
@@ -1,386 +1,1701 @@
1
1
  import { z } from 'zod';
2
- export declare const GatewayRouteStatusSchema: z.ZodEnum<["draft", "validating", "active", "disabled", "error"]>;
3
- export type GatewayRouteStatus = z.infer<typeof GatewayRouteStatusSchema>;
4
2
  export declare const GatewayProtocolSchema: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
5
3
  export type GatewayProtocol = z.infer<typeof GatewayProtocolSchema>;
6
- export declare const GatewayErrorCodeSchema: z.ZodEnum<["unauthorized", "route-not-found", "route-disabled", "connection-disabled", "protocol-not-supported", "request-too-large", "upstream-timeout", "upstream-unavailable", "client-aborted", "model-not-allowed", "invalid-request"]>;
4
+
5
+ export declare const GatewayErrorCodeSchema: z.ZodEnum<["unauthorized", "connection-unavailable", "protocol-not-supported", "request-too-large", "upstream-timeout", "upstream-unavailable", "client-aborted", "model-not-allowed", "model-disabled", "invalid-request", "logical-model-not-found", "deployment-not-ready", "connection-keys-not-equivalent", "logical-model-not-in-agent-config", "logical-model-not-authorized", "upstream-model-mapping-missing", "price-rule-conflict", "unsupported-pricing-currency"]>;
7
6
  export type GatewayErrorCode = z.infer<typeof GatewayErrorCodeSchema>;
8
- /** Internal server-side route shape. It is never returned by a REST endpoint. */
9
- export declare const GatewayRouteSchema: z.ZodObject<{
10
- id: z.ZodString;
11
- alias: z.ZodString;
12
- enterpriseId: z.ZodString;
13
- agent: z.ZodEnum<["claude", "codex", "opencode"]>;
14
- provider: z.ZodDefault<z.ZodString>;
15
- model: z.ZodString;
16
- requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
17
- upstreamProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
18
- status: z.ZodEnum<["draft", "validating", "active", "disabled", "error"]>;
19
- tokenGeneration: z.ZodNumber;
20
- connection: z.ZodObject<{
21
- status: z.ZodEnum<["active", "disabled"]>;
22
- messagesUrl: z.ZodString;
23
- apiKey: z.ZodString;
24
- authScheme: z.ZodEnum<["x-api-key", "bearer"]>;
25
- }, "strict", z.ZodTypeAny, {
26
- status: "active" | "disabled";
27
- apiKey: string;
28
- messagesUrl: string;
29
- authScheme: "x-api-key" | "bearer";
30
- }, {
31
- status: "active" | "disabled";
32
- apiKey: string;
33
- messagesUrl: string;
34
- authScheme: "x-api-key" | "bearer";
35
- }>;
36
- }, "strict", z.ZodTypeAny, {
37
- status: "error" | "active" | "draft" | "validating" | "disabled";
38
- model: string;
39
- agent: "codex" | "claude" | "opencode";
40
- id: string;
41
- provider: string;
42
- alias: string;
43
- enterpriseId: string;
44
- requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
45
- upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
46
- tokenGeneration: number;
47
- connection: {
48
- status: "active" | "disabled";
49
- apiKey: string;
50
- messagesUrl: string;
51
- authScheme: "x-api-key" | "bearer";
52
- };
53
- }, {
54
- status: "error" | "active" | "draft" | "validating" | "disabled";
55
- model: string;
56
- agent: "codex" | "claude" | "opencode";
57
- id: string;
58
- alias: string;
59
- enterpriseId: string;
60
- requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
61
- upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
62
- tokenGeneration: number;
63
- connection: {
64
- status: "active" | "disabled";
65
- apiKey: string;
66
- messagesUrl: string;
67
- authScheme: "x-api-key" | "bearer";
68
- };
69
- provider?: string | undefined;
70
- }>;
71
- export type GatewayRoute = z.infer<typeof GatewayRouteSchema>;
72
7
  export declare const GatewayTokenClaimsSchema: z.ZodObject<{
73
8
  enterpriseId: z.ZodString;
74
9
  userId: z.ZodString;
75
- machineId: z.ZodString;
76
- routeAlias: z.ZodString;
77
- tokenGeneration: z.ZodNumber;
78
10
  }, "strict", z.ZodTypeAny, {
79
- machineId: string;
80
11
  enterpriseId: string;
81
- tokenGeneration: number;
82
12
  userId: string;
83
- routeAlias: string;
84
13
  }, {
85
- machineId: string;
86
14
  enterpriseId: string;
87
- tokenGeneration: number;
88
15
  userId: string;
89
- routeAlias: string;
90
16
  }>;
91
17
  export type GatewayTokenClaims = z.infer<typeof GatewayTokenClaimsSchema>;
92
18
  export declare const GatewayConnectionCreateSchema: z.ZodObject<{
93
19
  name: z.ZodString;
94
- baseUrl: z.ZodEffects<z.ZodString, string, string>;
95
- credentialRef: z.ZodString;
20
+ baseUrl: z.ZodString;
96
21
  }, "strict", z.ZodTypeAny, {
97
22
  name: string;
98
23
  baseUrl: string;
99
- credentialRef: string;
100
24
  }, {
101
25
  name: string;
102
26
  baseUrl: string;
103
- credentialRef: string;
104
27
  }>;
105
28
  export type GatewayConnectionCreate = z.infer<typeof GatewayConnectionCreateSchema>;
106
29
  export declare const GatewayConnectionUpdateSchema: z.ZodObject<{
107
30
  name: z.ZodOptional<z.ZodString>;
108
- baseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
109
- credentialRef: z.ZodOptional<z.ZodString>;
31
+ baseUrl: z.ZodOptional<z.ZodString>;
110
32
  status: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
111
33
  }, "strict", z.ZodTypeAny, {
112
34
  status?: "active" | "disabled" | undefined;
113
35
  name?: string | undefined;
114
36
  baseUrl?: string | undefined;
115
- credentialRef?: string | undefined;
116
37
  }, {
117
38
  status?: "active" | "disabled" | undefined;
118
39
  name?: string | undefined;
119
40
  baseUrl?: string | undefined;
120
- credentialRef?: string | undefined;
121
41
  }>;
122
42
  export type GatewayConnectionUpdate = z.infer<typeof GatewayConnectionUpdateSchema>;
123
- export declare const GatewayRouteCreateSchema: z.ZodDiscriminatedUnion<"agent", [z.ZodObject<{
43
+ export declare const GatewayConnectionDiscoveryViewSchema: z.ZodObject<{
44
+ status: z.ZodEnum<["unknown", "succeeded", "empty", "unsupported", "authentication_failed", "unavailable", "timeout"]>;
45
+ checkedAt: z.ZodNullable<z.ZodString>;
46
+ failureCode: z.ZodNullable<z.ZodString>;
47
+ models: z.ZodArray<z.ZodObject<{
48
+ modelId: z.ZodString;
49
+ firstDiscoveredAt: z.ZodString;
50
+ lastDiscoveredAt: z.ZodString;
51
+ }, "strict", z.ZodTypeAny, {
52
+ modelId: string;
53
+ firstDiscoveredAt: string;
54
+ lastDiscoveredAt: string;
55
+ }, {
56
+ modelId: string;
57
+ firstDiscoveredAt: string;
58
+ lastDiscoveredAt: string;
59
+ }>, "many">;
60
+ }, "strict", z.ZodTypeAny, {
61
+ status: "unknown" | "timeout" | "succeeded" | "empty" | "unsupported" | "authentication_failed" | "unavailable";
62
+ models: {
63
+ modelId: string;
64
+ firstDiscoveredAt: string;
65
+ lastDiscoveredAt: string;
66
+ }[];
67
+ checkedAt: string | null;
68
+ failureCode: string | null;
69
+ }, {
70
+ status: "unknown" | "timeout" | "succeeded" | "empty" | "unsupported" | "authentication_failed" | "unavailable";
71
+ models: {
72
+ modelId: string;
73
+ firstDiscoveredAt: string;
74
+ lastDiscoveredAt: string;
75
+ }[];
76
+ checkedAt: string | null;
77
+ failureCode: string | null;
78
+ }>;
79
+ export type GatewayConnectionDiscoveryView = z.infer<typeof GatewayConnectionDiscoveryViewSchema>;
80
+ export declare const GatewayConnectionDiscoveryResponseSchema: z.ZodObject<{
81
+ ok: z.ZodLiteral<true>;
82
+ data: z.ZodObject<{
83
+ status: z.ZodEnum<["unknown", "succeeded", "empty", "unsupported", "authentication_failed", "unavailable", "timeout"]>;
84
+ checkedAt: z.ZodNullable<z.ZodString>;
85
+ failureCode: z.ZodNullable<z.ZodString>;
86
+ models: z.ZodArray<z.ZodObject<{
87
+ modelId: z.ZodString;
88
+ firstDiscoveredAt: z.ZodString;
89
+ lastDiscoveredAt: z.ZodString;
90
+ }, "strict", z.ZodTypeAny, {
91
+ modelId: string;
92
+ firstDiscoveredAt: string;
93
+ lastDiscoveredAt: string;
94
+ }, {
95
+ modelId: string;
96
+ firstDiscoveredAt: string;
97
+ lastDiscoveredAt: string;
98
+ }>, "many">;
99
+ }, "strict", z.ZodTypeAny, {
100
+ status: "unknown" | "timeout" | "succeeded" | "empty" | "unsupported" | "authentication_failed" | "unavailable";
101
+ models: {
102
+ modelId: string;
103
+ firstDiscoveredAt: string;
104
+ lastDiscoveredAt: string;
105
+ }[];
106
+ checkedAt: string | null;
107
+ failureCode: string | null;
108
+ }, {
109
+ status: "unknown" | "timeout" | "succeeded" | "empty" | "unsupported" | "authentication_failed" | "unavailable";
110
+ models: {
111
+ modelId: string;
112
+ firstDiscoveredAt: string;
113
+ lastDiscoveredAt: string;
114
+ }[];
115
+ checkedAt: string | null;
116
+ failureCode: string | null;
117
+ }>;
118
+ }, "strict", z.ZodTypeAny, {
119
+ data: {
120
+ status: "unknown" | "timeout" | "succeeded" | "empty" | "unsupported" | "authentication_failed" | "unavailable";
121
+ models: {
122
+ modelId: string;
123
+ firstDiscoveredAt: string;
124
+ lastDiscoveredAt: string;
125
+ }[];
126
+ checkedAt: string | null;
127
+ failureCode: string | null;
128
+ };
129
+ ok: true;
130
+ }, {
131
+ data: {
132
+ status: "unknown" | "timeout" | "succeeded" | "empty" | "unsupported" | "authentication_failed" | "unavailable";
133
+ models: {
134
+ modelId: string;
135
+ firstDiscoveredAt: string;
136
+ lastDiscoveredAt: string;
137
+ }[];
138
+ checkedAt: string | null;
139
+ failureCode: string | null;
140
+ };
141
+ ok: true;
142
+ }>;
143
+ export declare const GatewayConnectionProtocolCapabilityViewSchema: z.ZodObject<{
144
+ protocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
145
+ status: z.ZodEnum<["supported", "unsupported", "unknown"]>;
146
+
147
+ authScheme: z.ZodNullable<z.ZodEnum<["bearer", "x-api-key"]>>;
148
+ evidenceSource: z.ZodString;
149
+ checkedAt: z.ZodString;
150
+ failureCode: z.ZodNullable<z.ZodString>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ status: "unknown" | "unsupported" | "supported";
153
+ checkedAt: string;
154
+ failureCode: string | null;
155
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
156
+ authScheme: "bearer" | "x-api-key" | null;
157
+ evidenceSource: string;
158
+ }, {
159
+ status: "unknown" | "unsupported" | "supported";
160
+ checkedAt: string;
161
+ failureCode: string | null;
162
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
163
+ authScheme: "bearer" | "x-api-key" | null;
164
+ evidenceSource: string;
165
+ }>;
166
+ export declare const GatewayConnectionProtocolCapabilityResponseSchema: z.ZodObject<{
167
+ ok: z.ZodLiteral<true>;
168
+ data: z.ZodArray<z.ZodObject<{
169
+ protocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
170
+ status: z.ZodEnum<["supported", "unsupported", "unknown"]>;
171
+
172
+ authScheme: z.ZodNullable<z.ZodEnum<["bearer", "x-api-key"]>>;
173
+ evidenceSource: z.ZodString;
174
+ checkedAt: z.ZodString;
175
+ failureCode: z.ZodNullable<z.ZodString>;
176
+ }, "strict", z.ZodTypeAny, {
177
+ status: "unknown" | "unsupported" | "supported";
178
+ checkedAt: string;
179
+ failureCode: string | null;
180
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
181
+ authScheme: "bearer" | "x-api-key" | null;
182
+ evidenceSource: string;
183
+ }, {
184
+ status: "unknown" | "unsupported" | "supported";
185
+ checkedAt: string;
186
+ failureCode: string | null;
187
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
188
+ authScheme: "bearer" | "x-api-key" | null;
189
+ evidenceSource: string;
190
+ }>, "many">;
191
+ }, "strict", z.ZodTypeAny, {
192
+ data: {
193
+ status: "unknown" | "unsupported" | "supported";
194
+ checkedAt: string;
195
+ failureCode: string | null;
196
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
197
+ authScheme: "bearer" | "x-api-key" | null;
198
+ evidenceSource: string;
199
+ }[];
200
+ ok: true;
201
+ }, {
202
+ data: {
203
+ status: "unknown" | "unsupported" | "supported";
204
+ checkedAt: string;
205
+ failureCode: string | null;
206
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
207
+ authScheme: "bearer" | "x-api-key" | null;
208
+ evidenceSource: string;
209
+ }[];
210
+ ok: true;
211
+ }>;
212
+
213
+ export declare const GatewayProtocolProbeRequestSchema: z.ZodObject<{
214
+ protocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
215
+ modelId: z.ZodString;
216
+ }, "strict", z.ZodTypeAny, {
217
+ modelId: string;
218
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
219
+ }, {
220
+ modelId: string;
221
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
222
+ }>;
223
+ export type GatewayProtocolProbeRequest = z.infer<typeof GatewayProtocolProbeRequestSchema>;
224
+ export declare const GatewayConnectionModelsUpdateSchema: z.ZodObject<{
225
+ models: z.ZodArray<z.ZodString, "many">;
226
+ }, "strict", z.ZodTypeAny, {
227
+ models: string[];
228
+ }, {
229
+ models: string[];
230
+ }>;
231
+ export type GatewayConnectionModelsUpdate = z.infer<typeof GatewayConnectionModelsUpdateSchema>;
232
+ export declare const GatewayConnectionModelsEditorSchema: z.ZodObject<{
124
233
  connectionId: z.ZodString;
125
- userId: z.ZodString;
126
- machineId: z.ZodString;
127
- agent: z.ZodLiteral<"claude">;
128
- model: z.ZodString;
129
- requestProtocol: z.ZodLiteral<"anthropic_messages">;
130
- upstreamProtocol: z.ZodLiteral<"anthropic_messages">;
131
- provider: z.ZodString;
132
- alias: z.ZodString;
133
- }, "strict", z.ZodTypeAny, {
134
- model: string;
135
- agent: "claude";
136
- machineId: string;
137
- provider: string;
138
- alias: string;
139
- requestProtocol: "anthropic_messages";
140
- upstreamProtocol: "anthropic_messages";
141
- userId: string;
234
+ modelsConfirmed: z.ZodBoolean;
235
+ availableModels: z.ZodArray<z.ZodString, "many">;
236
+
237
+ overallMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
238
+
239
+ perModelMultipliers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>>;
240
+
241
+ catalogDisabledModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
242
+ discovered: z.ZodArray<z.ZodObject<{
243
+ model: z.ZodString;
244
+ inCatalog: z.ZodBoolean;
245
+
246
+ catalogStatus: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
247
+ }, "strict", z.ZodTypeAny, {
248
+ model: string;
249
+ inCatalog: boolean;
250
+ catalogStatus?: "active" | "disabled" | undefined;
251
+ }, {
252
+ model: string;
253
+ inCatalog: boolean;
254
+ catalogStatus?: "active" | "disabled" | undefined;
255
+ }>, "many">;
256
+ }, "strict", z.ZodTypeAny, {
142
257
  connectionId: string;
258
+ modelsConfirmed: boolean;
259
+ availableModels: string[];
260
+ discovered: {
261
+ model: string;
262
+ inCatalog: boolean;
263
+ catalogStatus?: "active" | "disabled" | undefined;
264
+ }[];
265
+ overallMultiplier?: number | undefined;
266
+ perModelMultipliers?: Record<string, number | null> | undefined;
267
+ catalogDisabledModels?: string[] | undefined;
143
268
  }, {
144
- model: string;
145
- agent: "claude";
146
- machineId: string;
147
- provider: string;
148
- alias: string;
149
- requestProtocol: "anthropic_messages";
150
- upstreamProtocol: "anthropic_messages";
151
- userId: string;
152
269
  connectionId: string;
153
- }>, z.ZodObject<{
270
+ modelsConfirmed: boolean;
271
+ availableModels: string[];
272
+ discovered: {
273
+ model: string;
274
+ inCatalog: boolean;
275
+ catalogStatus?: "active" | "disabled" | undefined;
276
+ }[];
277
+ overallMultiplier?: number | undefined;
278
+ perModelMultipliers?: Record<string, number | null> | undefined;
279
+ catalogDisabledModels?: string[] | undefined;
280
+ }>;
281
+ export type GatewayConnectionModelsEditor = z.infer<typeof GatewayConnectionModelsEditorSchema>;
282
+ export declare const GatewayConnectionModelsEditorResponseSchema: z.ZodObject<{
283
+ ok: z.ZodLiteral<true>;
284
+ data: z.ZodObject<{
285
+ connectionId: z.ZodString;
286
+ modelsConfirmed: z.ZodBoolean;
287
+ availableModels: z.ZodArray<z.ZodString, "many">;
288
+
289
+ overallMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
290
+
291
+ perModelMultipliers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>>;
292
+
293
+ catalogDisabledModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
294
+ discovered: z.ZodArray<z.ZodObject<{
295
+ model: z.ZodString;
296
+ inCatalog: z.ZodBoolean;
297
+
298
+ catalogStatus: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
299
+ }, "strict", z.ZodTypeAny, {
300
+ model: string;
301
+ inCatalog: boolean;
302
+ catalogStatus?: "active" | "disabled" | undefined;
303
+ }, {
304
+ model: string;
305
+ inCatalog: boolean;
306
+ catalogStatus?: "active" | "disabled" | undefined;
307
+ }>, "many">;
308
+ }, "strict", z.ZodTypeAny, {
309
+ connectionId: string;
310
+ modelsConfirmed: boolean;
311
+ availableModels: string[];
312
+ discovered: {
313
+ model: string;
314
+ inCatalog: boolean;
315
+ catalogStatus?: "active" | "disabled" | undefined;
316
+ }[];
317
+ overallMultiplier?: number | undefined;
318
+ perModelMultipliers?: Record<string, number | null> | undefined;
319
+ catalogDisabledModels?: string[] | undefined;
320
+ }, {
321
+ connectionId: string;
322
+ modelsConfirmed: boolean;
323
+ availableModels: string[];
324
+ discovered: {
325
+ model: string;
326
+ inCatalog: boolean;
327
+ catalogStatus?: "active" | "disabled" | undefined;
328
+ }[];
329
+ overallMultiplier?: number | undefined;
330
+ perModelMultipliers?: Record<string, number | null> | undefined;
331
+ catalogDisabledModels?: string[] | undefined;
332
+ }>;
333
+ }, "strict", z.ZodTypeAny, {
334
+ data: {
335
+ connectionId: string;
336
+ modelsConfirmed: boolean;
337
+ availableModels: string[];
338
+ discovered: {
339
+ model: string;
340
+ inCatalog: boolean;
341
+ catalogStatus?: "active" | "disabled" | undefined;
342
+ }[];
343
+ overallMultiplier?: number | undefined;
344
+ perModelMultipliers?: Record<string, number | null> | undefined;
345
+ catalogDisabledModels?: string[] | undefined;
346
+ };
347
+ ok: true;
348
+ }, {
349
+ data: {
350
+ connectionId: string;
351
+ modelsConfirmed: boolean;
352
+ availableModels: string[];
353
+ discovered: {
354
+ model: string;
355
+ inCatalog: boolean;
356
+ catalogStatus?: "active" | "disabled" | undefined;
357
+ }[];
358
+ overallMultiplier?: number | undefined;
359
+ perModelMultipliers?: Record<string, number | null> | undefined;
360
+ catalogDisabledModels?: string[] | undefined;
361
+ };
362
+ ok: true;
363
+ }>;
364
+
365
+ export declare const GatewayConnectionPriceMultipliersUpdateSchema: z.ZodEffects<z.ZodObject<{
366
+ overallMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
367
+ perModelMultipliers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>>;
368
+ }, "strict", z.ZodTypeAny, {
369
+ overallMultiplier?: number | undefined;
370
+ perModelMultipliers?: Record<string, number | null> | undefined;
371
+ }, {
372
+ overallMultiplier?: number | undefined;
373
+ perModelMultipliers?: Record<string, number | null> | undefined;
374
+ }>, {
375
+ overallMultiplier?: number | undefined;
376
+ perModelMultipliers?: Record<string, number | null> | undefined;
377
+ }, {
378
+ overallMultiplier?: number | undefined;
379
+ perModelMultipliers?: Record<string, number | null> | undefined;
380
+ }>;
381
+ export type GatewayConnectionPriceMultipliersUpdate = z.infer<typeof GatewayConnectionPriceMultipliersUpdateSchema>;
382
+ export declare const GatewayConnectionViewSchema: z.ZodObject<{
383
+ id: z.ZodString;
384
+ enterpriseId: z.ZodString;
385
+ name: z.ZodString;
386
+ baseUrl: z.ZodString;
387
+ status: z.ZodEnum<["active", "disabled"]>;
388
+ metadata: z.ZodUnknown;
389
+ apiKeyCount: z.ZodDefault<z.ZodNumber>;
390
+
391
+ verifiedActiveKeyCount: z.ZodDefault<z.ZodNumber>;
392
+ costMultiplier: z.ZodOptional<z.ZodNumber>;
393
+ modelsConfirmed: z.ZodOptional<z.ZodBoolean>;
394
+ availableModels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
395
+
396
+ protocolCapabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
397
+ protocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
398
+ status: z.ZodEnum<["supported", "unsupported", "unknown"]>;
399
+
400
+ authScheme: z.ZodNullable<z.ZodEnum<["bearer", "x-api-key"]>>;
401
+ evidenceSource: z.ZodString;
402
+ checkedAt: z.ZodString;
403
+ failureCode: z.ZodNullable<z.ZodString>;
404
+ }, "strict", z.ZodTypeAny, {
405
+ status: "unknown" | "unsupported" | "supported";
406
+ checkedAt: string;
407
+ failureCode: string | null;
408
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
409
+ authScheme: "bearer" | "x-api-key" | null;
410
+ evidenceSource: string;
411
+ }, {
412
+ status: "unknown" | "unsupported" | "supported";
413
+ checkedAt: string;
414
+ failureCode: string | null;
415
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
416
+ authScheme: "bearer" | "x-api-key" | null;
417
+ evidenceSource: string;
418
+ }>, "many">>;
419
+ apiKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
420
+ fingerprint: z.ZodString;
421
+ masked: z.ZodString;
422
+ status: z.ZodString;
423
+ verified: z.ZodBoolean;
424
+ isDefault: z.ZodBoolean;
425
+ createdAt: z.ZodString;
426
+ updatedAt: z.ZodString;
427
+ }, "strict", z.ZodTypeAny, {
428
+ status: string;
429
+ createdAt: string;
430
+ updatedAt: string;
431
+ isDefault: boolean;
432
+ fingerprint: string;
433
+ masked: string;
434
+ verified: boolean;
435
+ }, {
436
+ status: string;
437
+ createdAt: string;
438
+ updatedAt: string;
439
+ isDefault: boolean;
440
+ fingerprint: string;
441
+ masked: string;
442
+ verified: boolean;
443
+ }>, "many">>;
444
+ createdAt: z.ZodString;
445
+ updatedAt: z.ZodString;
446
+ }, "strict", z.ZodTypeAny, {
447
+ status: "active" | "disabled";
448
+ name: string;
449
+ id: string;
450
+ createdAt: string;
451
+ updatedAt: string;
452
+ baseUrl: string;
453
+ enterpriseId: string;
454
+ availableModels: string[];
455
+ apiKeyCount: number;
456
+ verifiedActiveKeyCount: number;
457
+ modelsConfirmed?: boolean | undefined;
458
+ metadata?: unknown;
459
+ costMultiplier?: number | undefined;
460
+ protocolCapabilities?: {
461
+ status: "unknown" | "unsupported" | "supported";
462
+ checkedAt: string;
463
+ failureCode: string | null;
464
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
465
+ authScheme: "bearer" | "x-api-key" | null;
466
+ evidenceSource: string;
467
+ }[] | undefined;
468
+ apiKeys?: {
469
+ status: string;
470
+ createdAt: string;
471
+ updatedAt: string;
472
+ isDefault: boolean;
473
+ fingerprint: string;
474
+ masked: string;
475
+ verified: boolean;
476
+ }[] | undefined;
477
+ }, {
478
+ status: "active" | "disabled";
479
+ name: string;
480
+ id: string;
481
+ createdAt: string;
482
+ updatedAt: string;
483
+ baseUrl: string;
484
+ enterpriseId: string;
485
+ modelsConfirmed?: boolean | undefined;
486
+ availableModels?: string[] | undefined;
487
+ metadata?: unknown;
488
+ apiKeyCount?: number | undefined;
489
+ verifiedActiveKeyCount?: number | undefined;
490
+ costMultiplier?: number | undefined;
491
+ protocolCapabilities?: {
492
+ status: "unknown" | "unsupported" | "supported";
493
+ checkedAt: string;
494
+ failureCode: string | null;
495
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
496
+ authScheme: "bearer" | "x-api-key" | null;
497
+ evidenceSource: string;
498
+ }[] | undefined;
499
+ apiKeys?: {
500
+ status: string;
501
+ createdAt: string;
502
+ updatedAt: string;
503
+ isDefault: boolean;
504
+ fingerprint: string;
505
+ masked: string;
506
+ verified: boolean;
507
+ }[] | undefined;
508
+ }>;
509
+ export type GatewayConnectionView = z.infer<typeof GatewayConnectionViewSchema>;
510
+ export declare const GatewayConnectionViewResponseSchema: z.ZodObject<{
511
+ ok: z.ZodLiteral<true>;
512
+ data: z.ZodArray<z.ZodObject<{
513
+ id: z.ZodString;
514
+ enterpriseId: z.ZodString;
515
+ name: z.ZodString;
516
+ baseUrl: z.ZodString;
517
+ status: z.ZodEnum<["active", "disabled"]>;
518
+ metadata: z.ZodUnknown;
519
+ apiKeyCount: z.ZodDefault<z.ZodNumber>;
520
+
521
+ verifiedActiveKeyCount: z.ZodDefault<z.ZodNumber>;
522
+ costMultiplier: z.ZodOptional<z.ZodNumber>;
523
+ modelsConfirmed: z.ZodOptional<z.ZodBoolean>;
524
+ availableModels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
525
+
526
+ protocolCapabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
527
+ protocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
528
+ status: z.ZodEnum<["supported", "unsupported", "unknown"]>;
529
+
530
+ authScheme: z.ZodNullable<z.ZodEnum<["bearer", "x-api-key"]>>;
531
+ evidenceSource: z.ZodString;
532
+ checkedAt: z.ZodString;
533
+ failureCode: z.ZodNullable<z.ZodString>;
534
+ }, "strict", z.ZodTypeAny, {
535
+ status: "unknown" | "unsupported" | "supported";
536
+ checkedAt: string;
537
+ failureCode: string | null;
538
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
539
+ authScheme: "bearer" | "x-api-key" | null;
540
+ evidenceSource: string;
541
+ }, {
542
+ status: "unknown" | "unsupported" | "supported";
543
+ checkedAt: string;
544
+ failureCode: string | null;
545
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
546
+ authScheme: "bearer" | "x-api-key" | null;
547
+ evidenceSource: string;
548
+ }>, "many">>;
549
+ apiKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
550
+ fingerprint: z.ZodString;
551
+ masked: z.ZodString;
552
+ status: z.ZodString;
553
+ verified: z.ZodBoolean;
554
+ isDefault: z.ZodBoolean;
555
+ createdAt: z.ZodString;
556
+ updatedAt: z.ZodString;
557
+ }, "strict", z.ZodTypeAny, {
558
+ status: string;
559
+ createdAt: string;
560
+ updatedAt: string;
561
+ isDefault: boolean;
562
+ fingerprint: string;
563
+ masked: string;
564
+ verified: boolean;
565
+ }, {
566
+ status: string;
567
+ createdAt: string;
568
+ updatedAt: string;
569
+ isDefault: boolean;
570
+ fingerprint: string;
571
+ masked: string;
572
+ verified: boolean;
573
+ }>, "many">>;
574
+ createdAt: z.ZodString;
575
+ updatedAt: z.ZodString;
576
+ }, "strict", z.ZodTypeAny, {
577
+ status: "active" | "disabled";
578
+ name: string;
579
+ id: string;
580
+ createdAt: string;
581
+ updatedAt: string;
582
+ baseUrl: string;
583
+ enterpriseId: string;
584
+ availableModels: string[];
585
+ apiKeyCount: number;
586
+ verifiedActiveKeyCount: number;
587
+ modelsConfirmed?: boolean | undefined;
588
+ metadata?: unknown;
589
+ costMultiplier?: number | undefined;
590
+ protocolCapabilities?: {
591
+ status: "unknown" | "unsupported" | "supported";
592
+ checkedAt: string;
593
+ failureCode: string | null;
594
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
595
+ authScheme: "bearer" | "x-api-key" | null;
596
+ evidenceSource: string;
597
+ }[] | undefined;
598
+ apiKeys?: {
599
+ status: string;
600
+ createdAt: string;
601
+ updatedAt: string;
602
+ isDefault: boolean;
603
+ fingerprint: string;
604
+ masked: string;
605
+ verified: boolean;
606
+ }[] | undefined;
607
+ }, {
608
+ status: "active" | "disabled";
609
+ name: string;
610
+ id: string;
611
+ createdAt: string;
612
+ updatedAt: string;
613
+ baseUrl: string;
614
+ enterpriseId: string;
615
+ modelsConfirmed?: boolean | undefined;
616
+ availableModels?: string[] | undefined;
617
+ metadata?: unknown;
618
+ apiKeyCount?: number | undefined;
619
+ verifiedActiveKeyCount?: number | undefined;
620
+ costMultiplier?: number | undefined;
621
+ protocolCapabilities?: {
622
+ status: "unknown" | "unsupported" | "supported";
623
+ checkedAt: string;
624
+ failureCode: string | null;
625
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
626
+ authScheme: "bearer" | "x-api-key" | null;
627
+ evidenceSource: string;
628
+ }[] | undefined;
629
+ apiKeys?: {
630
+ status: string;
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ isDefault: boolean;
634
+ fingerprint: string;
635
+ masked: string;
636
+ verified: boolean;
637
+ }[] | undefined;
638
+ }>, "many">;
639
+ }, "strict", z.ZodTypeAny, {
640
+ data: {
641
+ status: "active" | "disabled";
642
+ name: string;
643
+ id: string;
644
+ createdAt: string;
645
+ updatedAt: string;
646
+ baseUrl: string;
647
+ enterpriseId: string;
648
+ availableModels: string[];
649
+ apiKeyCount: number;
650
+ verifiedActiveKeyCount: number;
651
+ modelsConfirmed?: boolean | undefined;
652
+ metadata?: unknown;
653
+ costMultiplier?: number | undefined;
654
+ protocolCapabilities?: {
655
+ status: "unknown" | "unsupported" | "supported";
656
+ checkedAt: string;
657
+ failureCode: string | null;
658
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
659
+ authScheme: "bearer" | "x-api-key" | null;
660
+ evidenceSource: string;
661
+ }[] | undefined;
662
+ apiKeys?: {
663
+ status: string;
664
+ createdAt: string;
665
+ updatedAt: string;
666
+ isDefault: boolean;
667
+ fingerprint: string;
668
+ masked: string;
669
+ verified: boolean;
670
+ }[] | undefined;
671
+ }[];
672
+ ok: true;
673
+ }, {
674
+ data: {
675
+ status: "active" | "disabled";
676
+ name: string;
677
+ id: string;
678
+ createdAt: string;
679
+ updatedAt: string;
680
+ baseUrl: string;
681
+ enterpriseId: string;
682
+ modelsConfirmed?: boolean | undefined;
683
+ availableModels?: string[] | undefined;
684
+ metadata?: unknown;
685
+ apiKeyCount?: number | undefined;
686
+ verifiedActiveKeyCount?: number | undefined;
687
+ costMultiplier?: number | undefined;
688
+ protocolCapabilities?: {
689
+ status: "unknown" | "unsupported" | "supported";
690
+ checkedAt: string;
691
+ failureCode: string | null;
692
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
693
+ authScheme: "bearer" | "x-api-key" | null;
694
+ evidenceSource: string;
695
+ }[] | undefined;
696
+ apiKeys?: {
697
+ status: string;
698
+ createdAt: string;
699
+ updatedAt: string;
700
+ isDefault: boolean;
701
+ fingerprint: string;
702
+ masked: string;
703
+ verified: boolean;
704
+ }[] | undefined;
705
+ }[];
706
+ ok: true;
707
+ }>;
708
+ export declare const GatewayConnectionMutationResponseSchema: z.ZodObject<{
709
+ ok: z.ZodLiteral<true>;
710
+ data: z.ZodObject<{
711
+ id: z.ZodString;
712
+ enterpriseId: z.ZodString;
713
+ name: z.ZodString;
714
+ baseUrl: z.ZodString;
715
+ status: z.ZodEnum<["active", "disabled"]>;
716
+ metadata: z.ZodUnknown;
717
+ apiKeyCount: z.ZodDefault<z.ZodNumber>;
718
+
719
+ verifiedActiveKeyCount: z.ZodDefault<z.ZodNumber>;
720
+ costMultiplier: z.ZodOptional<z.ZodNumber>;
721
+ modelsConfirmed: z.ZodOptional<z.ZodBoolean>;
722
+ availableModels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
723
+
724
+ protocolCapabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
725
+ protocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
726
+ status: z.ZodEnum<["supported", "unsupported", "unknown"]>;
727
+
728
+ authScheme: z.ZodNullable<z.ZodEnum<["bearer", "x-api-key"]>>;
729
+ evidenceSource: z.ZodString;
730
+ checkedAt: z.ZodString;
731
+ failureCode: z.ZodNullable<z.ZodString>;
732
+ }, "strict", z.ZodTypeAny, {
733
+ status: "unknown" | "unsupported" | "supported";
734
+ checkedAt: string;
735
+ failureCode: string | null;
736
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
737
+ authScheme: "bearer" | "x-api-key" | null;
738
+ evidenceSource: string;
739
+ }, {
740
+ status: "unknown" | "unsupported" | "supported";
741
+ checkedAt: string;
742
+ failureCode: string | null;
743
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
744
+ authScheme: "bearer" | "x-api-key" | null;
745
+ evidenceSource: string;
746
+ }>, "many">>;
747
+ apiKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
748
+ fingerprint: z.ZodString;
749
+ masked: z.ZodString;
750
+ status: z.ZodString;
751
+ verified: z.ZodBoolean;
752
+ isDefault: z.ZodBoolean;
753
+ createdAt: z.ZodString;
754
+ updatedAt: z.ZodString;
755
+ }, "strict", z.ZodTypeAny, {
756
+ status: string;
757
+ createdAt: string;
758
+ updatedAt: string;
759
+ isDefault: boolean;
760
+ fingerprint: string;
761
+ masked: string;
762
+ verified: boolean;
763
+ }, {
764
+ status: string;
765
+ createdAt: string;
766
+ updatedAt: string;
767
+ isDefault: boolean;
768
+ fingerprint: string;
769
+ masked: string;
770
+ verified: boolean;
771
+ }>, "many">>;
772
+ createdAt: z.ZodString;
773
+ updatedAt: z.ZodString;
774
+ }, "strict", z.ZodTypeAny, {
775
+ status: "active" | "disabled";
776
+ name: string;
777
+ id: string;
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ baseUrl: string;
781
+ enterpriseId: string;
782
+ availableModels: string[];
783
+ apiKeyCount: number;
784
+ verifiedActiveKeyCount: number;
785
+ modelsConfirmed?: boolean | undefined;
786
+ metadata?: unknown;
787
+ costMultiplier?: number | undefined;
788
+ protocolCapabilities?: {
789
+ status: "unknown" | "unsupported" | "supported";
790
+ checkedAt: string;
791
+ failureCode: string | null;
792
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
793
+ authScheme: "bearer" | "x-api-key" | null;
794
+ evidenceSource: string;
795
+ }[] | undefined;
796
+ apiKeys?: {
797
+ status: string;
798
+ createdAt: string;
799
+ updatedAt: string;
800
+ isDefault: boolean;
801
+ fingerprint: string;
802
+ masked: string;
803
+ verified: boolean;
804
+ }[] | undefined;
805
+ }, {
806
+ status: "active" | "disabled";
807
+ name: string;
808
+ id: string;
809
+ createdAt: string;
810
+ updatedAt: string;
811
+ baseUrl: string;
812
+ enterpriseId: string;
813
+ modelsConfirmed?: boolean | undefined;
814
+ availableModels?: string[] | undefined;
815
+ metadata?: unknown;
816
+ apiKeyCount?: number | undefined;
817
+ verifiedActiveKeyCount?: number | undefined;
818
+ costMultiplier?: number | undefined;
819
+ protocolCapabilities?: {
820
+ status: "unknown" | "unsupported" | "supported";
821
+ checkedAt: string;
822
+ failureCode: string | null;
823
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
824
+ authScheme: "bearer" | "x-api-key" | null;
825
+ evidenceSource: string;
826
+ }[] | undefined;
827
+ apiKeys?: {
828
+ status: string;
829
+ createdAt: string;
830
+ updatedAt: string;
831
+ isDefault: boolean;
832
+ fingerprint: string;
833
+ masked: string;
834
+ verified: boolean;
835
+ }[] | undefined;
836
+ }>;
837
+ }, "strict", z.ZodTypeAny, {
838
+ data: {
839
+ status: "active" | "disabled";
840
+ name: string;
841
+ id: string;
842
+ createdAt: string;
843
+ updatedAt: string;
844
+ baseUrl: string;
845
+ enterpriseId: string;
846
+ availableModels: string[];
847
+ apiKeyCount: number;
848
+ verifiedActiveKeyCount: number;
849
+ modelsConfirmed?: boolean | undefined;
850
+ metadata?: unknown;
851
+ costMultiplier?: number | undefined;
852
+ protocolCapabilities?: {
853
+ status: "unknown" | "unsupported" | "supported";
854
+ checkedAt: string;
855
+ failureCode: string | null;
856
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
857
+ authScheme: "bearer" | "x-api-key" | null;
858
+ evidenceSource: string;
859
+ }[] | undefined;
860
+ apiKeys?: {
861
+ status: string;
862
+ createdAt: string;
863
+ updatedAt: string;
864
+ isDefault: boolean;
865
+ fingerprint: string;
866
+ masked: string;
867
+ verified: boolean;
868
+ }[] | undefined;
869
+ };
870
+ ok: true;
871
+ }, {
872
+ data: {
873
+ status: "active" | "disabled";
874
+ name: string;
875
+ id: string;
876
+ createdAt: string;
877
+ updatedAt: string;
878
+ baseUrl: string;
879
+ enterpriseId: string;
880
+ modelsConfirmed?: boolean | undefined;
881
+ availableModels?: string[] | undefined;
882
+ metadata?: unknown;
883
+ apiKeyCount?: number | undefined;
884
+ verifiedActiveKeyCount?: number | undefined;
885
+ costMultiplier?: number | undefined;
886
+ protocolCapabilities?: {
887
+ status: "unknown" | "unsupported" | "supported";
888
+ checkedAt: string;
889
+ failureCode: string | null;
890
+ protocol: "anthropic_messages" | "openai_responses" | "openai_chat";
891
+ authScheme: "bearer" | "x-api-key" | null;
892
+ evidenceSource: string;
893
+ }[] | undefined;
894
+ apiKeys?: {
895
+ status: string;
896
+ createdAt: string;
897
+ updatedAt: string;
898
+ isDefault: boolean;
899
+ fingerprint: string;
900
+ masked: string;
901
+ verified: boolean;
902
+ }[] | undefined;
903
+ };
904
+ ok: true;
905
+ }>;
906
+
907
+ export declare const GatewayConnectionChangeUpstreamRequestSchema: z.ZodObject<{
908
+ baseUrl: z.ZodString;
909
+ apiKey: z.ZodOptional<z.ZodString>;
910
+ }, "strict", z.ZodTypeAny, {
911
+ baseUrl: string;
912
+ apiKey?: string | undefined;
913
+ }, {
914
+ baseUrl: string;
915
+ apiKey?: string | undefined;
916
+ }>;
917
+ export type GatewayConnectionChangeUpstreamRequest = z.infer<typeof GatewayConnectionChangeUpstreamRequestSchema>;
918
+
919
+ export declare const GatewayConnectionChangeUpstreamAffectedSchema: z.ZodObject<{
920
+ groupCount: z.ZodNumber;
921
+ agentCount: z.ZodNumber;
922
+ modelCount: z.ZodNumber;
923
+ }, "strict", z.ZodTypeAny, {
924
+ groupCount: number;
925
+ agentCount: number;
926
+ modelCount: number;
927
+ }, {
928
+ groupCount: number;
929
+ agentCount: number;
930
+ modelCount: number;
931
+ }>;
932
+ export type GatewayConnectionChangeUpstreamAffected = z.infer<typeof GatewayConnectionChangeUpstreamAffectedSchema>;
933
+
934
+ export declare const GatewayConnectionChangeUpstreamPreviewSchema: z.ZodObject<{
935
+ baseUrl: z.ZodString;
936
+ affected: z.ZodObject<{
937
+ groupCount: z.ZodNumber;
938
+ agentCount: z.ZodNumber;
939
+ modelCount: z.ZodNumber;
940
+ }, "strict", z.ZodTypeAny, {
941
+ groupCount: number;
942
+ agentCount: number;
943
+ modelCount: number;
944
+ }, {
945
+ groupCount: number;
946
+ agentCount: number;
947
+ modelCount: number;
948
+ }>;
949
+ }, "strict", z.ZodTypeAny, {
950
+ baseUrl: string;
951
+ affected: {
952
+ groupCount: number;
953
+ agentCount: number;
954
+ modelCount: number;
955
+ };
956
+ }, {
957
+ baseUrl: string;
958
+ affected: {
959
+ groupCount: number;
960
+ agentCount: number;
961
+ modelCount: number;
962
+ };
963
+ }>;
964
+ export type GatewayConnectionChangeUpstreamPreview = z.infer<typeof GatewayConnectionChangeUpstreamPreviewSchema>;
965
+ export declare const GatewayConnectionChangeUpstreamPreviewResponseSchema: z.ZodObject<{
966
+ ok: z.ZodLiteral<true>;
967
+ data: z.ZodObject<{
968
+ baseUrl: z.ZodString;
969
+ affected: z.ZodObject<{
970
+ groupCount: z.ZodNumber;
971
+ agentCount: z.ZodNumber;
972
+ modelCount: z.ZodNumber;
973
+ }, "strict", z.ZodTypeAny, {
974
+ groupCount: number;
975
+ agentCount: number;
976
+ modelCount: number;
977
+ }, {
978
+ groupCount: number;
979
+ agentCount: number;
980
+ modelCount: number;
981
+ }>;
982
+ }, "strict", z.ZodTypeAny, {
983
+ baseUrl: string;
984
+ affected: {
985
+ groupCount: number;
986
+ agentCount: number;
987
+ modelCount: number;
988
+ };
989
+ }, {
990
+ baseUrl: string;
991
+ affected: {
992
+ groupCount: number;
993
+ agentCount: number;
994
+ modelCount: number;
995
+ };
996
+ }>;
997
+ }, "strict", z.ZodTypeAny, {
998
+ data: {
999
+ baseUrl: string;
1000
+ affected: {
1001
+ groupCount: number;
1002
+ agentCount: number;
1003
+ modelCount: number;
1004
+ };
1005
+ };
1006
+ ok: true;
1007
+ }, {
1008
+ data: {
1009
+ baseUrl: string;
1010
+ affected: {
1011
+ groupCount: number;
1012
+ agentCount: number;
1013
+ modelCount: number;
1014
+ };
1015
+ };
1016
+ ok: true;
1017
+ }>;
1018
+ export declare const GatewayCapabilityViewSchema: z.ZodObject<{
154
1019
  connectionId: z.ZodString;
155
- userId: z.ZodString;
156
- machineId: z.ZodString;
157
- agent: z.ZodLiteral<"codex">;
158
- model: z.ZodString;
159
- requestProtocol: z.ZodLiteral<"openai_responses">;
160
- upstreamProtocol: z.ZodLiteral<"openai_responses">;
161
- provider: z.ZodString;
162
- alias: z.ZodString;
163
- }, "strict", z.ZodTypeAny, {
164
- model: string;
165
- agent: "codex";
166
- machineId: string;
167
- provider: string;
168
- alias: string;
169
- requestProtocol: "openai_responses";
170
- upstreamProtocol: "openai_responses";
171
- userId: string;
1020
+ connectionName: z.ZodString;
1021
+ agent: z.ZodEnum<["claude", "codex"]>;
1022
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses"]>;
1023
+ models: z.ZodArray<z.ZodString, "many">;
1024
+ status: z.ZodEnum<["ready", "unknown", "unavailable", "unsupported"]>;
1025
+ }, "strict", z.ZodTypeAny, {
1026
+ status: "unknown" | "ready" | "unsupported" | "unavailable";
1027
+ agent: "codex" | "claude";
1028
+ models: string[];
172
1029
  connectionId: string;
1030
+ connectionName: string;
1031
+ requestProtocol: "anthropic_messages" | "openai_responses";
173
1032
  }, {
174
- model: string;
175
- agent: "codex";
176
- machineId: string;
177
- provider: string;
178
- alias: string;
179
- requestProtocol: "openai_responses";
180
- upstreamProtocol: "openai_responses";
181
- userId: string;
1033
+ status: "unknown" | "ready" | "unsupported" | "unavailable";
1034
+ agent: "codex" | "claude";
1035
+ models: string[];
182
1036
  connectionId: string;
183
- }>]>;
184
- export type GatewayRouteCreate = z.infer<typeof GatewayRouteCreateSchema>;
185
- export declare const GatewayRouteUpdateSchema: z.ZodObject<{
186
- model: z.ZodOptional<z.ZodString>;
187
- provider: z.ZodOptional<z.ZodString>;
188
- status: z.ZodOptional<z.ZodEnum<["disabled", "error"]>>;
189
- }, "strict", z.ZodTypeAny, {
190
- status?: "error" | "disabled" | undefined;
191
- model?: string | undefined;
192
- provider?: string | undefined;
193
- }, {
194
- status?: "error" | "disabled" | undefined;
195
- model?: string | undefined;
196
- provider?: string | undefined;
197
- }>;
198
- export type GatewayRouteUpdate = z.infer<typeof GatewayRouteUpdateSchema>;
199
- export declare const GatewayRequestListQuerySchema: z.ZodObject<{
200
- from: z.ZodOptional<z.ZodString>;
201
- to: z.ZodOptional<z.ZodString>;
202
- userId: z.ZodOptional<z.ZodString>;
203
- machineId: z.ZodOptional<z.ZodString>;
204
- routeId: z.ZodOptional<z.ZodString>;
205
- agent: z.ZodOptional<z.ZodString>;
206
- model: z.ZodOptional<z.ZodString>;
207
- provider: z.ZodOptional<z.ZodString>;
208
- outcome: z.ZodOptional<z.ZodString>;
209
- limit: z.ZodNumber;
210
- offset: z.ZodNumber;
211
- cursor: z.ZodOptional<z.ZodString>;
212
- }, "strict", z.ZodTypeAny, {
213
- limit: number;
214
- offset: number;
215
- model?: string | undefined;
216
- agent?: string | undefined;
217
- machineId?: string | undefined;
218
- provider?: string | undefined;
219
- userId?: string | undefined;
220
- from?: string | undefined;
221
- to?: string | undefined;
222
- routeId?: string | undefined;
223
- outcome?: string | undefined;
224
- cursor?: string | undefined;
225
- }, {
226
- limit: number;
227
- offset: number;
228
- model?: string | undefined;
229
- agent?: string | undefined;
230
- machineId?: string | undefined;
231
- provider?: string | undefined;
232
- userId?: string | undefined;
233
- from?: string | undefined;
234
- to?: string | undefined;
235
- routeId?: string | undefined;
236
- outcome?: string | undefined;
237
- cursor?: string | undefined;
238
- }>;
239
- export declare const GatewayUsageSummarySchema: z.ZodObject<{
240
- requestCount: z.ZodNumber;
241
- inputTokens: z.ZodNumber;
242
- outputTokens: z.ZodNumber;
243
- cacheReadTokens: z.ZodNumber;
244
- cacheWriteTokens: z.ZodNumber;
245
- reasoningTokens: z.ZodNumber;
246
- totalTokens: z.ZodNumber;
247
- costMicros: z.ZodNullable<z.ZodNumber>;
248
- pricedCount: z.ZodNumber;
249
- unpricedCount: z.ZodNumber;
250
- errorCount: z.ZodNumber;
251
- errorRate: z.ZodNumber;
252
- latencyMs: z.ZodObject<{
253
- p50: z.ZodNullable<z.ZodNumber>;
254
- p95: z.ZodNullable<z.ZodNumber>;
1037
+ connectionName: string;
1038
+ requestProtocol: "anthropic_messages" | "openai_responses";
1039
+ }>;
1040
+ export type GatewayCapabilityView = z.infer<typeof GatewayCapabilityViewSchema>;
1041
+ export declare const GatewayCapabilityViewResponseSchema: z.ZodObject<{
1042
+ ok: z.ZodLiteral<true>;
1043
+ data: z.ZodArray<z.ZodObject<{
1044
+ connectionId: z.ZodString;
1045
+ connectionName: z.ZodString;
1046
+ agent: z.ZodEnum<["claude", "codex"]>;
1047
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses"]>;
1048
+ models: z.ZodArray<z.ZodString, "many">;
1049
+ status: z.ZodEnum<["ready", "unknown", "unavailable", "unsupported"]>;
255
1050
  }, "strict", z.ZodTypeAny, {
256
- p50: number | null;
257
- p95: number | null;
1051
+ status: "unknown" | "ready" | "unsupported" | "unavailable";
1052
+ agent: "codex" | "claude";
1053
+ models: string[];
1054
+ connectionId: string;
1055
+ connectionName: string;
1056
+ requestProtocol: "anthropic_messages" | "openai_responses";
258
1057
  }, {
259
- p50: number | null;
260
- p95: number | null;
261
- }>;
262
- breakdown: z.ZodArray<z.ZodObject<{
263
- agent: z.ZodNullable<z.ZodString>;
264
- model: z.ZodNullable<z.ZodString>;
265
- provider: z.ZodNullable<z.ZodString>;
266
- requestCount: z.ZodNumber;
267
- inputTokens: z.ZodNumber;
268
- outputTokens: z.ZodNumber;
269
- totalTokens: z.ZodNumber;
270
- costMicros: z.ZodNullable<z.ZodNumber>;
1058
+ status: "unknown" | "ready" | "unsupported" | "unavailable";
1059
+ agent: "codex" | "claude";
1060
+ models: string[];
1061
+ connectionId: string;
1062
+ connectionName: string;
1063
+ requestProtocol: "anthropic_messages" | "openai_responses";
1064
+ }>, "many">;
1065
+ }, "strict", z.ZodTypeAny, {
1066
+ data: {
1067
+ status: "unknown" | "ready" | "unsupported" | "unavailable";
1068
+ agent: "codex" | "claude";
1069
+ models: string[];
1070
+ connectionId: string;
1071
+ connectionName: string;
1072
+ requestProtocol: "anthropic_messages" | "openai_responses";
1073
+ }[];
1074
+ ok: true;
1075
+ }, {
1076
+ data: {
1077
+ status: "unknown" | "ready" | "unsupported" | "unavailable";
1078
+ agent: "codex" | "claude";
1079
+ models: string[];
1080
+ connectionId: string;
1081
+ connectionName: string;
1082
+ requestProtocol: "anthropic_messages" | "openai_responses";
1083
+ }[];
1084
+ ok: true;
1085
+ }>;
1086
+ export declare const GatewayConnectionKeyFingerprintSchema: z.ZodString;
1087
+
1088
+ export declare const MANAGED_MODEL_VENDORS: readonly ["openai", "anthropic", "deepseek", "google", "meta", "mistral", "qwen", "zhipu", "moonshot", "minimax", "other"];
1089
+ export declare const ManagedModelVendorSchema: z.ZodEnum<["openai", "anthropic", "deepseek", "google", "meta", "mistral", "qwen", "zhipu", "moonshot", "minimax", "other"]>;
1090
+ export type ManagedModelVendor = z.infer<typeof ManagedModelVendorSchema>;
1091
+ export declare const ManagedModelCurrencySchema: z.ZodString;
1092
+ export declare const ManagedModelCreateSchema: z.ZodObject<{
1093
+ modelId: z.ZodString;
1094
+ vendor: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "deepseek", "google", "meta", "mistral", "qwen", "zhipu", "moonshot", "minimax", "other"]>>;
1095
+ contextWindow: z.ZodOptional<z.ZodNumber>;
1096
+ currency: z.ZodOptional<z.ZodString>;
1097
+ }, "strict", z.ZodTypeAny, {
1098
+ modelId: string;
1099
+ currency?: string | undefined;
1100
+ vendor?: "meta" | "openai" | "anthropic" | "deepseek" | "google" | "mistral" | "qwen" | "zhipu" | "moonshot" | "minimax" | "other" | undefined;
1101
+ contextWindow?: number | undefined;
1102
+ }, {
1103
+ modelId: string;
1104
+ currency?: string | undefined;
1105
+ vendor?: "meta" | "openai" | "anthropic" | "deepseek" | "google" | "mistral" | "qwen" | "zhipu" | "moonshot" | "minimax" | "other" | undefined;
1106
+ contextWindow?: number | undefined;
1107
+ }>;
1108
+ export declare const ManagedModelUpdateSchema: z.ZodEffects<z.ZodObject<{
1109
+ status: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
1110
+ vendor: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "deepseek", "google", "meta", "mistral", "qwen", "zhipu", "moonshot", "minimax", "other"]>>;
1111
+ contextWindow: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1112
+ currency: z.ZodOptional<z.ZodString>;
1113
+ }, "strict", z.ZodTypeAny, {
1114
+ status?: "active" | "disabled" | undefined;
1115
+ currency?: string | undefined;
1116
+ vendor?: "meta" | "openai" | "anthropic" | "deepseek" | "google" | "mistral" | "qwen" | "zhipu" | "moonshot" | "minimax" | "other" | undefined;
1117
+ contextWindow?: number | null | undefined;
1118
+ }, {
1119
+ status?: "active" | "disabled" | undefined;
1120
+ currency?: string | undefined;
1121
+ vendor?: "meta" | "openai" | "anthropic" | "deepseek" | "google" | "mistral" | "qwen" | "zhipu" | "moonshot" | "minimax" | "other" | undefined;
1122
+ contextWindow?: number | null | undefined;
1123
+ }>, {
1124
+ status?: "active" | "disabled" | undefined;
1125
+ currency?: string | undefined;
1126
+ vendor?: "meta" | "openai" | "anthropic" | "deepseek" | "google" | "mistral" | "qwen" | "zhipu" | "moonshot" | "minimax" | "other" | undefined;
1127
+ contextWindow?: number | null | undefined;
1128
+ }, {
1129
+ status?: "active" | "disabled" | undefined;
1130
+ currency?: string | undefined;
1131
+ vendor?: "meta" | "openai" | "anthropic" | "deepseek" | "google" | "mistral" | "qwen" | "zhipu" | "moonshot" | "minimax" | "other" | undefined;
1132
+ contextWindow?: number | null | undefined;
1133
+ }>;
1134
+ export declare const ManagedModelViewSchema: z.ZodObject<{
1135
+ id: z.ZodString;
1136
+ modelId: z.ZodString;
1137
+ status: z.ZodEnum<["active", "disabled"]>;
1138
+ vendor: z.ZodString;
1139
+ contextWindow: z.ZodNullable<z.ZodNumber>;
1140
+ currency: z.ZodString;
1141
+ discoveredConnectionIds: z.ZodArray<z.ZodString, "many">;
1142
+ createdAt: z.ZodString;
1143
+ updatedAt: z.ZodString;
1144
+ }, "strict", z.ZodTypeAny, {
1145
+ status: "active" | "disabled";
1146
+ id: string;
1147
+ createdAt: string;
1148
+ updatedAt: string;
1149
+ modelId: string;
1150
+ currency: string;
1151
+ vendor: string;
1152
+ contextWindow: number | null;
1153
+ discoveredConnectionIds: string[];
1154
+ }, {
1155
+ status: "active" | "disabled";
1156
+ id: string;
1157
+ createdAt: string;
1158
+ updatedAt: string;
1159
+ modelId: string;
1160
+ currency: string;
1161
+ vendor: string;
1162
+ contextWindow: number | null;
1163
+ discoveredConnectionIds: string[];
1164
+ }>;
1165
+ export declare const ManagedModelListResponseSchema: z.ZodObject<{
1166
+ ok: z.ZodLiteral<true>;
1167
+ data: z.ZodArray<z.ZodObject<{
1168
+ id: z.ZodString;
1169
+ modelId: z.ZodString;
1170
+ status: z.ZodEnum<["active", "disabled"]>;
1171
+ vendor: z.ZodString;
1172
+ contextWindow: z.ZodNullable<z.ZodNumber>;
1173
+ currency: z.ZodString;
1174
+ discoveredConnectionIds: z.ZodArray<z.ZodString, "many">;
1175
+ createdAt: z.ZodString;
1176
+ updatedAt: z.ZodString;
271
1177
  }, "strict", z.ZodTypeAny, {
272
- model: string | null;
273
- inputTokens: number;
274
- outputTokens: number;
275
- totalTokens: number;
276
- agent: string | null;
277
- provider: string | null;
278
- requestCount: number;
279
- costMicros: number | null;
1178
+ status: "active" | "disabled";
1179
+ id: string;
1180
+ createdAt: string;
1181
+ updatedAt: string;
1182
+ modelId: string;
1183
+ currency: string;
1184
+ vendor: string;
1185
+ contextWindow: number | null;
1186
+ discoveredConnectionIds: string[];
280
1187
  }, {
281
- model: string | null;
282
- inputTokens: number;
283
- outputTokens: number;
284
- totalTokens: number;
285
- agent: string | null;
286
- provider: string | null;
287
- requestCount: number;
288
- costMicros: number | null;
1188
+ status: "active" | "disabled";
1189
+ id: string;
1190
+ createdAt: string;
1191
+ updatedAt: string;
1192
+ modelId: string;
1193
+ currency: string;
1194
+ vendor: string;
1195
+ contextWindow: number | null;
1196
+ discoveredConnectionIds: string[];
289
1197
  }>, "many">;
290
1198
  }, "strict", z.ZodTypeAny, {
291
- inputTokens: number;
292
- outputTokens: number;
293
- cacheReadTokens: number;
294
- cacheWriteTokens: number;
295
- totalTokens: number;
296
- requestCount: number;
297
- reasoningTokens: number;
298
- costMicros: number | null;
299
- pricedCount: number;
300
- unpricedCount: number;
301
- errorCount: number;
302
- errorRate: number;
303
- latencyMs: {
304
- p50: number | null;
305
- p95: number | null;
1199
+ data: {
1200
+ status: "active" | "disabled";
1201
+ id: string;
1202
+ createdAt: string;
1203
+ updatedAt: string;
1204
+ modelId: string;
1205
+ currency: string;
1206
+ vendor: string;
1207
+ contextWindow: number | null;
1208
+ discoveredConnectionIds: string[];
1209
+ }[];
1210
+ ok: true;
1211
+ }, {
1212
+ data: {
1213
+ status: "active" | "disabled";
1214
+ id: string;
1215
+ createdAt: string;
1216
+ updatedAt: string;
1217
+ modelId: string;
1218
+ currency: string;
1219
+ vendor: string;
1220
+ contextWindow: number | null;
1221
+ discoveredConnectionIds: string[];
1222
+ }[];
1223
+ ok: true;
1224
+ }>;
1225
+ export declare const ManagedModelResponseSchema: z.ZodObject<{
1226
+ ok: z.ZodLiteral<true>;
1227
+ data: z.ZodObject<{
1228
+ id: z.ZodString;
1229
+ modelId: z.ZodString;
1230
+ status: z.ZodEnum<["active", "disabled"]>;
1231
+ vendor: z.ZodString;
1232
+ contextWindow: z.ZodNullable<z.ZodNumber>;
1233
+ currency: z.ZodString;
1234
+ discoveredConnectionIds: z.ZodArray<z.ZodString, "many">;
1235
+ createdAt: z.ZodString;
1236
+ updatedAt: z.ZodString;
1237
+ }, "strict", z.ZodTypeAny, {
1238
+ status: "active" | "disabled";
1239
+ id: string;
1240
+ createdAt: string;
1241
+ updatedAt: string;
1242
+ modelId: string;
1243
+ currency: string;
1244
+ vendor: string;
1245
+ contextWindow: number | null;
1246
+ discoveredConnectionIds: string[];
1247
+ }, {
1248
+ status: "active" | "disabled";
1249
+ id: string;
1250
+ createdAt: string;
1251
+ updatedAt: string;
1252
+ modelId: string;
1253
+ currency: string;
1254
+ vendor: string;
1255
+ contextWindow: number | null;
1256
+ discoveredConnectionIds: string[];
1257
+ }>;
1258
+ }, "strict", z.ZodTypeAny, {
1259
+ data: {
1260
+ status: "active" | "disabled";
1261
+ id: string;
1262
+ createdAt: string;
1263
+ updatedAt: string;
1264
+ modelId: string;
1265
+ currency: string;
1266
+ vendor: string;
1267
+ contextWindow: number | null;
1268
+ discoveredConnectionIds: string[];
1269
+ };
1270
+ ok: true;
1271
+ }, {
1272
+ data: {
1273
+ status: "active" | "disabled";
1274
+ id: string;
1275
+ createdAt: string;
1276
+ updatedAt: string;
1277
+ modelId: string;
1278
+ currency: string;
1279
+ vendor: string;
1280
+ contextWindow: number | null;
1281
+ discoveredConnectionIds: string[];
306
1282
  };
307
- breakdown: {
308
- model: string | null;
309
- inputTokens: number;
310
- outputTokens: number;
311
- totalTokens: number;
312
- agent: string | null;
313
- provider: string | null;
314
- requestCount: number;
315
- costMicros: number | null;
1283
+ ok: true;
1284
+ }>;
1285
+ export declare const ManagedModelPriceInputSchema: z.ZodEffects<z.ZodObject<{
1286
+ scope: z.ZodEnum<["default", "connection_override"]>;
1287
+ connectionId: z.ZodOptional<z.ZodString>;
1288
+ currency: z.ZodString;
1289
+ inputMicrosPerMillion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1290
+ outputMicrosPerMillion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1291
+ cacheReadMicrosPerMillion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1292
+ cacheWriteMicrosPerMillion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1293
+ effectiveFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1294
+ effectiveUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
+ status: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
1296
+ }, "strict", z.ZodTypeAny, {
1297
+ currency: string;
1298
+ scope: "default" | "connection_override";
1299
+ status?: "active" | "disabled" | undefined;
1300
+ connectionId?: string | undefined;
1301
+ inputMicrosPerMillion?: string | null | undefined;
1302
+ outputMicrosPerMillion?: string | null | undefined;
1303
+ cacheReadMicrosPerMillion?: string | null | undefined;
1304
+ cacheWriteMicrosPerMillion?: string | null | undefined;
1305
+ effectiveFrom?: string | null | undefined;
1306
+ effectiveUntil?: string | null | undefined;
1307
+ }, {
1308
+ currency: string;
1309
+ scope: "default" | "connection_override";
1310
+ status?: "active" | "disabled" | undefined;
1311
+ connectionId?: string | undefined;
1312
+ inputMicrosPerMillion?: string | null | undefined;
1313
+ outputMicrosPerMillion?: string | null | undefined;
1314
+ cacheReadMicrosPerMillion?: string | null | undefined;
1315
+ cacheWriteMicrosPerMillion?: string | null | undefined;
1316
+ effectiveFrom?: string | null | undefined;
1317
+ effectiveUntil?: string | null | undefined;
1318
+ }>, {
1319
+ currency: string;
1320
+ scope: "default" | "connection_override";
1321
+ status?: "active" | "disabled" | undefined;
1322
+ connectionId?: string | undefined;
1323
+ inputMicrosPerMillion?: string | null | undefined;
1324
+ outputMicrosPerMillion?: string | null | undefined;
1325
+ cacheReadMicrosPerMillion?: string | null | undefined;
1326
+ cacheWriteMicrosPerMillion?: string | null | undefined;
1327
+ effectiveFrom?: string | null | undefined;
1328
+ effectiveUntil?: string | null | undefined;
1329
+ }, {
1330
+ currency: string;
1331
+ scope: "default" | "connection_override";
1332
+ status?: "active" | "disabled" | undefined;
1333
+ connectionId?: string | undefined;
1334
+ inputMicrosPerMillion?: string | null | undefined;
1335
+ outputMicrosPerMillion?: string | null | undefined;
1336
+ cacheReadMicrosPerMillion?: string | null | undefined;
1337
+ cacheWriteMicrosPerMillion?: string | null | undefined;
1338
+ effectiveFrom?: string | null | undefined;
1339
+ effectiveUntil?: string | null | undefined;
1340
+ }>;
1341
+ export declare const ManagedModelPriceUpdateSchema: z.ZodObject<{
1342
+ scope: z.ZodOptional<z.ZodEnum<["default", "connection_override"]>>;
1343
+ connectionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1344
+ currency: z.ZodOptional<z.ZodString>;
1345
+ inputMicrosPerMillion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1346
+ outputMicrosPerMillion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1347
+ cacheReadMicrosPerMillion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1348
+ cacheWriteMicrosPerMillion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1349
+ effectiveFrom: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1350
+ effectiveUntil: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1351
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["active", "disabled"]>>>;
1352
+ }, "strict", z.ZodTypeAny, {
1353
+ status?: "active" | "disabled" | undefined;
1354
+ currency?: string | undefined;
1355
+ connectionId?: string | undefined;
1356
+ scope?: "default" | "connection_override" | undefined;
1357
+ inputMicrosPerMillion?: string | null | undefined;
1358
+ outputMicrosPerMillion?: string | null | undefined;
1359
+ cacheReadMicrosPerMillion?: string | null | undefined;
1360
+ cacheWriteMicrosPerMillion?: string | null | undefined;
1361
+ effectiveFrom?: string | null | undefined;
1362
+ effectiveUntil?: string | null | undefined;
1363
+ }, {
1364
+ status?: "active" | "disabled" | undefined;
1365
+ currency?: string | undefined;
1366
+ connectionId?: string | undefined;
1367
+ scope?: "default" | "connection_override" | undefined;
1368
+ inputMicrosPerMillion?: string | null | undefined;
1369
+ outputMicrosPerMillion?: string | null | undefined;
1370
+ cacheReadMicrosPerMillion?: string | null | undefined;
1371
+ cacheWriteMicrosPerMillion?: string | null | undefined;
1372
+ effectiveFrom?: string | null | undefined;
1373
+ effectiveUntil?: string | null | undefined;
1374
+ }>;
1375
+ export declare const ManagedModelPriceViewSchema: z.ZodObject<{
1376
+ scope: z.ZodEnum<["default", "connection_override"]>;
1377
+ currency: z.ZodString;
1378
+ effectiveFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1379
+ effectiveUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1380
+ } & {
1381
+ id: z.ZodString;
1382
+ managedModelId: z.ZodString;
1383
+ connectionId: z.ZodNullable<z.ZodString>;
1384
+ inputMicrosPerMillion: z.ZodNullable<z.ZodString>;
1385
+ outputMicrosPerMillion: z.ZodNullable<z.ZodString>;
1386
+ cacheReadMicrosPerMillion: z.ZodNullable<z.ZodString>;
1387
+ cacheWriteMicrosPerMillion: z.ZodNullable<z.ZodString>;
1388
+ status: z.ZodEnum<["active", "disabled"]>;
1389
+ createdAt: z.ZodString;
1390
+ updatedAt: z.ZodString;
1391
+ }, "strict", z.ZodTypeAny, {
1392
+ status: "active" | "disabled";
1393
+ id: string;
1394
+ createdAt: string;
1395
+ updatedAt: string;
1396
+ currency: string;
1397
+ connectionId: string | null;
1398
+ scope: "default" | "connection_override";
1399
+ inputMicrosPerMillion: string | null;
1400
+ outputMicrosPerMillion: string | null;
1401
+ cacheReadMicrosPerMillion: string | null;
1402
+ cacheWriteMicrosPerMillion: string | null;
1403
+ managedModelId: string;
1404
+ effectiveFrom?: string | null | undefined;
1405
+ effectiveUntil?: string | null | undefined;
1406
+ }, {
1407
+ status: "active" | "disabled";
1408
+ id: string;
1409
+ createdAt: string;
1410
+ updatedAt: string;
1411
+ currency: string;
1412
+ connectionId: string | null;
1413
+ scope: "default" | "connection_override";
1414
+ inputMicrosPerMillion: string | null;
1415
+ outputMicrosPerMillion: string | null;
1416
+ cacheReadMicrosPerMillion: string | null;
1417
+ cacheWriteMicrosPerMillion: string | null;
1418
+ managedModelId: string;
1419
+ effectiveFrom?: string | null | undefined;
1420
+ effectiveUntil?: string | null | undefined;
1421
+ }>;
1422
+ export declare const ManagedModelPriceListResponseSchema: z.ZodObject<{
1423
+ ok: z.ZodLiteral<true>;
1424
+ data: z.ZodArray<z.ZodObject<{
1425
+ scope: z.ZodEnum<["default", "connection_override"]>;
1426
+ currency: z.ZodString;
1427
+ effectiveFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1428
+ effectiveUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1429
+ } & {
1430
+ id: z.ZodString;
1431
+ managedModelId: z.ZodString;
1432
+ connectionId: z.ZodNullable<z.ZodString>;
1433
+ inputMicrosPerMillion: z.ZodNullable<z.ZodString>;
1434
+ outputMicrosPerMillion: z.ZodNullable<z.ZodString>;
1435
+ cacheReadMicrosPerMillion: z.ZodNullable<z.ZodString>;
1436
+ cacheWriteMicrosPerMillion: z.ZodNullable<z.ZodString>;
1437
+ status: z.ZodEnum<["active", "disabled"]>;
1438
+ createdAt: z.ZodString;
1439
+ updatedAt: z.ZodString;
1440
+ }, "strict", z.ZodTypeAny, {
1441
+ status: "active" | "disabled";
1442
+ id: string;
1443
+ createdAt: string;
1444
+ updatedAt: string;
1445
+ currency: string;
1446
+ connectionId: string | null;
1447
+ scope: "default" | "connection_override";
1448
+ inputMicrosPerMillion: string | null;
1449
+ outputMicrosPerMillion: string | null;
1450
+ cacheReadMicrosPerMillion: string | null;
1451
+ cacheWriteMicrosPerMillion: string | null;
1452
+ managedModelId: string;
1453
+ effectiveFrom?: string | null | undefined;
1454
+ effectiveUntil?: string | null | undefined;
1455
+ }, {
1456
+ status: "active" | "disabled";
1457
+ id: string;
1458
+ createdAt: string;
1459
+ updatedAt: string;
1460
+ currency: string;
1461
+ connectionId: string | null;
1462
+ scope: "default" | "connection_override";
1463
+ inputMicrosPerMillion: string | null;
1464
+ outputMicrosPerMillion: string | null;
1465
+ cacheReadMicrosPerMillion: string | null;
1466
+ cacheWriteMicrosPerMillion: string | null;
1467
+ managedModelId: string;
1468
+ effectiveFrom?: string | null | undefined;
1469
+ effectiveUntil?: string | null | undefined;
1470
+ }>, "many">;
1471
+ }, "strict", z.ZodTypeAny, {
1472
+ data: {
1473
+ status: "active" | "disabled";
1474
+ id: string;
1475
+ createdAt: string;
1476
+ updatedAt: string;
1477
+ currency: string;
1478
+ connectionId: string | null;
1479
+ scope: "default" | "connection_override";
1480
+ inputMicrosPerMillion: string | null;
1481
+ outputMicrosPerMillion: string | null;
1482
+ cacheReadMicrosPerMillion: string | null;
1483
+ cacheWriteMicrosPerMillion: string | null;
1484
+ managedModelId: string;
1485
+ effectiveFrom?: string | null | undefined;
1486
+ effectiveUntil?: string | null | undefined;
1487
+ }[];
1488
+ ok: true;
1489
+ }, {
1490
+ data: {
1491
+ status: "active" | "disabled";
1492
+ id: string;
1493
+ createdAt: string;
1494
+ updatedAt: string;
1495
+ currency: string;
1496
+ connectionId: string | null;
1497
+ scope: "default" | "connection_override";
1498
+ inputMicrosPerMillion: string | null;
1499
+ outputMicrosPerMillion: string | null;
1500
+ cacheReadMicrosPerMillion: string | null;
1501
+ cacheWriteMicrosPerMillion: string | null;
1502
+ managedModelId: string;
1503
+ effectiveFrom?: string | null | undefined;
1504
+ effectiveUntil?: string | null | undefined;
316
1505
  }[];
1506
+ ok: true;
1507
+ }>;
1508
+ export declare const ManagedModelPriceResponseSchema: z.ZodObject<{
1509
+ ok: z.ZodLiteral<true>;
1510
+ data: z.ZodObject<{
1511
+ scope: z.ZodEnum<["default", "connection_override"]>;
1512
+ currency: z.ZodString;
1513
+ effectiveFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
+ effectiveUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
+ } & {
1516
+ id: z.ZodString;
1517
+ managedModelId: z.ZodString;
1518
+ connectionId: z.ZodNullable<z.ZodString>;
1519
+ inputMicrosPerMillion: z.ZodNullable<z.ZodString>;
1520
+ outputMicrosPerMillion: z.ZodNullable<z.ZodString>;
1521
+ cacheReadMicrosPerMillion: z.ZodNullable<z.ZodString>;
1522
+ cacheWriteMicrosPerMillion: z.ZodNullable<z.ZodString>;
1523
+ status: z.ZodEnum<["active", "disabled"]>;
1524
+ createdAt: z.ZodString;
1525
+ updatedAt: z.ZodString;
1526
+ }, "strict", z.ZodTypeAny, {
1527
+ status: "active" | "disabled";
1528
+ id: string;
1529
+ createdAt: string;
1530
+ updatedAt: string;
1531
+ currency: string;
1532
+ connectionId: string | null;
1533
+ scope: "default" | "connection_override";
1534
+ inputMicrosPerMillion: string | null;
1535
+ outputMicrosPerMillion: string | null;
1536
+ cacheReadMicrosPerMillion: string | null;
1537
+ cacheWriteMicrosPerMillion: string | null;
1538
+ managedModelId: string;
1539
+ effectiveFrom?: string | null | undefined;
1540
+ effectiveUntil?: string | null | undefined;
1541
+ }, {
1542
+ status: "active" | "disabled";
1543
+ id: string;
1544
+ createdAt: string;
1545
+ updatedAt: string;
1546
+ currency: string;
1547
+ connectionId: string | null;
1548
+ scope: "default" | "connection_override";
1549
+ inputMicrosPerMillion: string | null;
1550
+ outputMicrosPerMillion: string | null;
1551
+ cacheReadMicrosPerMillion: string | null;
1552
+ cacheWriteMicrosPerMillion: string | null;
1553
+ managedModelId: string;
1554
+ effectiveFrom?: string | null | undefined;
1555
+ effectiveUntil?: string | null | undefined;
1556
+ }>;
1557
+ }, "strict", z.ZodTypeAny, {
1558
+ data: {
1559
+ status: "active" | "disabled";
1560
+ id: string;
1561
+ createdAt: string;
1562
+ updatedAt: string;
1563
+ currency: string;
1564
+ connectionId: string | null;
1565
+ scope: "default" | "connection_override";
1566
+ inputMicrosPerMillion: string | null;
1567
+ outputMicrosPerMillion: string | null;
1568
+ cacheReadMicrosPerMillion: string | null;
1569
+ cacheWriteMicrosPerMillion: string | null;
1570
+ managedModelId: string;
1571
+ effectiveFrom?: string | null | undefined;
1572
+ effectiveUntil?: string | null | undefined;
1573
+ };
1574
+ ok: true;
317
1575
  }, {
318
- inputTokens: number;
319
- outputTokens: number;
320
- cacheReadTokens: number;
321
- cacheWriteTokens: number;
322
- totalTokens: number;
323
- requestCount: number;
324
- reasoningTokens: number;
325
- costMicros: number | null;
326
- pricedCount: number;
327
- unpricedCount: number;
328
- errorCount: number;
329
- errorRate: number;
330
- latencyMs: {
331
- p50: number | null;
332
- p95: number | null;
1576
+ data: {
1577
+ status: "active" | "disabled";
1578
+ id: string;
1579
+ createdAt: string;
1580
+ updatedAt: string;
1581
+ currency: string;
1582
+ connectionId: string | null;
1583
+ scope: "default" | "connection_override";
1584
+ inputMicrosPerMillion: string | null;
1585
+ outputMicrosPerMillion: string | null;
1586
+ cacheReadMicrosPerMillion: string | null;
1587
+ cacheWriteMicrosPerMillion: string | null;
1588
+ managedModelId: string;
1589
+ effectiveFrom?: string | null | undefined;
1590
+ effectiveUntil?: string | null | undefined;
333
1591
  };
334
- breakdown: {
335
- model: string | null;
336
- inputTokens: number;
337
- outputTokens: number;
338
- totalTokens: number;
339
- agent: string | null;
340
- provider: string | null;
341
- requestCount: number;
342
- costMicros: number | null;
1592
+ ok: true;
1593
+ }>;
1594
+ export type ManagedModelView = z.infer<typeof ManagedModelViewSchema>;
1595
+ export type ManagedModelPriceView = z.infer<typeof ManagedModelPriceViewSchema>;
1596
+
1597
+ export declare const GatewayLogicalConnectionKeyCreateSchema: z.ZodObject<{
1598
+ apiKey: z.ZodString;
1599
+ }, "strict", z.ZodTypeAny, {
1600
+ apiKey: string;
1601
+ }, {
1602
+ apiKey: string;
1603
+ }>;
1604
+ export type GatewayLogicalConnectionKeyCreate = z.infer<typeof GatewayLogicalConnectionKeyCreateSchema>;
1605
+ export declare const GatewayLogicalConnectionKeyUpdateSchema: z.ZodEffects<z.ZodObject<{
1606
+ status: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
1607
+ isDefault: z.ZodOptional<z.ZodBoolean>;
1608
+ }, "strict", z.ZodTypeAny, {
1609
+ status?: "active" | "disabled" | undefined;
1610
+ isDefault?: boolean | undefined;
1611
+ }, {
1612
+ status?: "active" | "disabled" | undefined;
1613
+ isDefault?: boolean | undefined;
1614
+ }>, {
1615
+ status?: "active" | "disabled" | undefined;
1616
+ isDefault?: boolean | undefined;
1617
+ }, {
1618
+ status?: "active" | "disabled" | undefined;
1619
+ isDefault?: boolean | undefined;
1620
+ }>;
1621
+ export type GatewayLogicalConnectionKeyUpdate = z.infer<typeof GatewayLogicalConnectionKeyUpdateSchema>;
1622
+ export declare const GatewayLogicalConnectionKeyViewSchema: z.ZodObject<{
1623
+ id: z.ZodString;
1624
+ fingerprint: z.ZodString;
1625
+ status: z.ZodEnum<["active", "disabled"]>;
1626
+
1627
+ verified: z.ZodBoolean;
1628
+
1629
+ isDefault: z.ZodBoolean;
1630
+ createdAt: z.ZodString;
1631
+ updatedAt: z.ZodString;
1632
+ }, "strict", z.ZodTypeAny, {
1633
+ status: "active" | "disabled";
1634
+ id: string;
1635
+ createdAt: string;
1636
+ updatedAt: string;
1637
+ isDefault: boolean;
1638
+ fingerprint: string;
1639
+ verified: boolean;
1640
+ }, {
1641
+ status: "active" | "disabled";
1642
+ id: string;
1643
+ createdAt: string;
1644
+ updatedAt: string;
1645
+ isDefault: boolean;
1646
+ fingerprint: string;
1647
+ verified: boolean;
1648
+ }>;
1649
+ export type GatewayLogicalConnectionKeyView = z.infer<typeof GatewayLogicalConnectionKeyViewSchema>;
1650
+ export declare const GatewayLogicalConnectionKeyListResponseSchema: z.ZodObject<{
1651
+ ok: z.ZodLiteral<true>;
1652
+ data: z.ZodArray<z.ZodObject<{
1653
+ id: z.ZodString;
1654
+ fingerprint: z.ZodString;
1655
+ status: z.ZodEnum<["active", "disabled"]>;
1656
+
1657
+ verified: z.ZodBoolean;
1658
+
1659
+ isDefault: z.ZodBoolean;
1660
+ createdAt: z.ZodString;
1661
+ updatedAt: z.ZodString;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ status: "active" | "disabled";
1664
+ id: string;
1665
+ createdAt: string;
1666
+ updatedAt: string;
1667
+ isDefault: boolean;
1668
+ fingerprint: string;
1669
+ verified: boolean;
1670
+ }, {
1671
+ status: "active" | "disabled";
1672
+ id: string;
1673
+ createdAt: string;
1674
+ updatedAt: string;
1675
+ isDefault: boolean;
1676
+ fingerprint: string;
1677
+ verified: boolean;
1678
+ }>, "many">;
1679
+ }, "strict", z.ZodTypeAny, {
1680
+ data: {
1681
+ status: "active" | "disabled";
1682
+ id: string;
1683
+ createdAt: string;
1684
+ updatedAt: string;
1685
+ isDefault: boolean;
1686
+ fingerprint: string;
1687
+ verified: boolean;
1688
+ }[];
1689
+ ok: true;
1690
+ }, {
1691
+ data: {
1692
+ status: "active" | "disabled";
1693
+ id: string;
1694
+ createdAt: string;
1695
+ updatedAt: string;
1696
+ isDefault: boolean;
1697
+ fingerprint: string;
1698
+ verified: boolean;
343
1699
  }[];
1700
+ ok: true;
344
1701
  }>;
345
- export type GatewayUsageSummary = z.infer<typeof GatewayUsageSummarySchema>;
346
- export declare const GatewayDailyUsageSchema: z.ZodObject<{
347
- day: z.ZodString;
348
- agent: z.ZodNullable<z.ZodString>;
349
- model: z.ZodNullable<z.ZodString>;
350
- provider: z.ZodNullable<z.ZodString>;
351
- requestCount: z.ZodNumber;
352
- inputTokens: z.ZodNumber;
353
- outputTokens: z.ZodNumber;
354
- cacheReadTokens: z.ZodNumber;
355
- cacheWriteTokens: z.ZodNumber;
356
- totalTokens: z.ZodNumber;
357
- costMicros: z.ZodNullable<z.ZodNumber>;
358
- currency: z.ZodNullable<z.ZodString>;
359
- }, "strict", z.ZodTypeAny, {
360
- model: string | null;
361
- inputTokens: number;
362
- outputTokens: number;
363
- cacheReadTokens: number;
364
- cacheWriteTokens: number;
365
- totalTokens: number;
366
- agent: string | null;
367
- provider: string | null;
368
- requestCount: number;
369
- costMicros: number | null;
370
- day: string;
371
- currency: string | null;
372
- }, {
373
- model: string | null;
374
- inputTokens: number;
375
- outputTokens: number;
376
- cacheReadTokens: number;
377
- cacheWriteTokens: number;
378
- totalTokens: number;
379
- agent: string | null;
380
- provider: string | null;
381
- requestCount: number;
382
- costMicros: number | null;
383
- day: string;
384
- currency: string | null;
385
- }>;
386
- //# sourceMappingURL=gateway.d.ts.map