@agentdock/wire 0.0.93 → 0.0.95

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 (75) hide show
  1. package/dist/accountLanguage.d.ts +26 -0
  2. package/dist/accountLanguage.js +1 -0
  3. package/dist/activityPreferences.d.ts +0 -2
  4. package/dist/agentCapabilities.d.ts +20 -24
  5. package/dist/agentCapabilities.js +1 -1
  6. package/dist/agentCommonEnv.d.ts +0 -9
  7. package/dist/agentInstallGuide.d.ts +0 -7
  8. package/dist/agentRuntimeSettings.d.ts +139 -0
  9. package/dist/agentRuntimeSettings.js +1 -0
  10. package/dist/bgTask.d.ts +13 -24
  11. package/dist/checkpointSchemas.d.ts +1 -2
  12. package/dist/controlLevel.d.ts +1 -9
  13. package/dist/edition.d.ts +0 -1
  14. package/dist/enterpriseGateway.d.ts +214 -0
  15. package/dist/enterpriseGateway.js +1 -0
  16. package/dist/enterprisePolicy.d.ts +1599 -0
  17. package/dist/enterprisePolicy.js +1 -0
  18. package/dist/enterprisePolicyExports.d.ts +2 -0
  19. package/dist/enterprisePolicyExports.js +1 -0
  20. package/dist/enterpriseRuntime.d.ts +317 -0
  21. package/dist/enterpriseRuntime.js +1 -0
  22. package/dist/envelope.d.ts +63 -60
  23. package/dist/errorMessage.d.ts +0 -1
  24. package/dist/events.d.ts +73 -77
  25. package/dist/events.js +1 -1
  26. package/dist/features.d.ts +19 -30
  27. package/dist/features.js +1 -1
  28. package/dist/feedback.d.ts +21 -22
  29. package/dist/fileWhitelist.d.ts +7 -39
  30. package/dist/gateway.d.ts +1184 -0
  31. package/dist/gateway.js +1 -0
  32. package/dist/goals.d.ts +0 -1
  33. package/dist/handoffBrief.d.ts +13 -0
  34. package/dist/handoffBrief.js +52 -0
  35. package/dist/inboundEvents.d.ts +83 -56
  36. package/dist/inboundEvents.js +1 -1
  37. package/dist/index.d.ts +25 -16
  38. package/dist/index.js +1 -1
  39. package/dist/interactionEvents.d.ts +51 -59
  40. package/dist/legacyProtocol.d.ts +36 -42
  41. package/dist/license.d.ts +36 -37
  42. package/dist/machine.d.ts +54 -53
  43. package/dist/machine.js +1 -1
  44. package/dist/messageMeta.d.ts +20 -20
  45. package/dist/messageMeta.js +1 -1
  46. package/dist/messages.d.ts +338 -223
  47. package/dist/messages.js +1 -1
  48. package/dist/notification.d.ts +2 -3
  49. package/dist/ops.d.ts +9 -27
  50. package/dist/pairing.d.ts +9 -49
  51. package/dist/permissionSubject.d.ts +3 -26
  52. package/dist/protocol.d.ts +0 -6
  53. package/dist/rpc.d.ts +957 -196
  54. package/dist/rpc.js +1 -1
  55. package/dist/scheduledTasks.d.ts +59 -60
  56. package/dist/semver.d.ts +3 -22
  57. package/dist/sessionBtw.d.ts +152 -0
  58. package/dist/sessionBtw.js +1 -0
  59. package/dist/sessionResult.d.ts +21 -27
  60. package/dist/sessionTitle.d.ts +9 -0
  61. package/dist/sessionTitle.js +1 -0
  62. package/dist/socketEvents.d.ts +12 -4
  63. package/dist/socketEvents.js +1 -1
  64. package/dist/sourceMetadata.d.ts +3 -16
  65. package/dist/spawnError.d.ts +7 -14
  66. package/dist/stats.d.ts +99 -68
  67. package/dist/stats.js +1 -1
  68. package/dist/sync.d.ts +285 -51
  69. package/dist/sync.js +1 -1
  70. package/dist/taskResult.d.ts +3 -20
  71. package/dist/telemetry.d.ts +1 -11
  72. package/dist/utils.d.ts +0 -1
  73. package/dist/workItems.d.ts +321 -0
  74. package/dist/workItems.js +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,1184 @@
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
+ export declare const GatewayProtocolSchema: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
5
+ 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"]>;
7
+ export type GatewayErrorCode = z.infer<typeof GatewayErrorCodeSchema>;
8
+
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
+ connection: z.ZodObject<{
20
+ status: z.ZodEnum<["active", "disabled"]>;
21
+ baseUrl: z.ZodString;
22
+ apiKey: z.ZodString;
23
+ authScheme: z.ZodEnum<["x-api-key", "bearer"]>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ status: "active" | "disabled";
26
+ baseUrl: string;
27
+ apiKey: string;
28
+ authScheme: "x-api-key" | "bearer";
29
+ }, {
30
+ status: "active" | "disabled";
31
+ baseUrl: string;
32
+ apiKey: string;
33
+ authScheme: "x-api-key" | "bearer";
34
+ }>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ status: "error" | "active" | "disabled" | "draft" | "validating";
37
+ model: string;
38
+ agent: "codex" | "claude" | "opencode";
39
+ id: string;
40
+ provider: string;
41
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
42
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
43
+ alias: string;
44
+ enterpriseId: string;
45
+ connection: {
46
+ status: "active" | "disabled";
47
+ baseUrl: string;
48
+ apiKey: string;
49
+ authScheme: "x-api-key" | "bearer";
50
+ };
51
+ }, {
52
+ status: "error" | "active" | "disabled" | "draft" | "validating";
53
+ model: string;
54
+ agent: "codex" | "claude" | "opencode";
55
+ id: string;
56
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
57
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
58
+ alias: string;
59
+ enterpriseId: string;
60
+ connection: {
61
+ status: "active" | "disabled";
62
+ baseUrl: string;
63
+ apiKey: string;
64
+ authScheme: "x-api-key" | "bearer";
65
+ };
66
+ provider?: string | undefined;
67
+ }>;
68
+ export type GatewayRoute = z.infer<typeof GatewayRouteSchema>;
69
+ export declare const GatewayTokenClaimsSchema: z.ZodObject<{
70
+ enterpriseId: z.ZodString;
71
+ userId: z.ZodString;
72
+ }, "strict", z.ZodTypeAny, {
73
+ enterpriseId: string;
74
+ userId: string;
75
+ }, {
76
+ enterpriseId: string;
77
+ userId: string;
78
+ }>;
79
+ export type GatewayTokenClaims = z.infer<typeof GatewayTokenClaimsSchema>;
80
+ export declare const GatewayConnectionCreateSchema: z.ZodObject<{
81
+ name: z.ZodString;
82
+ baseUrl: z.ZodString;
83
+ apiKeys: z.ZodArray<z.ZodString, "many">;
84
+ }, "strict", z.ZodTypeAny, {
85
+ name: string;
86
+ baseUrl: string;
87
+ apiKeys: string[];
88
+ }, {
89
+ name: string;
90
+ baseUrl: string;
91
+ apiKeys: string[];
92
+ }>;
93
+ export type GatewayConnectionCreate = z.infer<typeof GatewayConnectionCreateSchema>;
94
+ export declare const GatewayConnectionUpdateSchema: z.ZodObject<{
95
+ name: z.ZodOptional<z.ZodString>;
96
+ baseUrl: z.ZodOptional<z.ZodString>;
97
+ apiKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
+ status: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
99
+ }, "strict", z.ZodTypeAny, {
100
+ status?: "active" | "disabled" | undefined;
101
+ name?: string | undefined;
102
+ baseUrl?: string | undefined;
103
+ apiKeys?: string[] | undefined;
104
+ }, {
105
+ status?: "active" | "disabled" | undefined;
106
+ name?: string | undefined;
107
+ baseUrl?: string | undefined;
108
+ apiKeys?: string[] | undefined;
109
+ }>;
110
+ export type GatewayConnectionUpdate = z.infer<typeof GatewayConnectionUpdateSchema>;
111
+ export declare const GatewayConnectionKeyAddSchema: z.ZodObject<{
112
+ apiKey: z.ZodString;
113
+ }, "strict", z.ZodTypeAny, {
114
+ apiKey: string;
115
+ }, {
116
+ apiKey: string;
117
+ }>;
118
+ export type GatewayConnectionKeyAdd = z.infer<typeof GatewayConnectionKeyAddSchema>;
119
+ export declare const GatewayConnectionViewSchema: z.ZodObject<{
120
+ id: z.ZodString;
121
+ enterpriseId: z.ZodString;
122
+ name: z.ZodString;
123
+ baseUrl: z.ZodString;
124
+ apiKeyCount: z.ZodNumber;
125
+ apiKeys: z.ZodArray<z.ZodObject<{
126
+ fingerprint: z.ZodString;
127
+ masked: z.ZodString;
128
+ }, "strict", z.ZodTypeAny, {
129
+ fingerprint: string;
130
+ masked: string;
131
+ }, {
132
+ fingerprint: string;
133
+ masked: string;
134
+ }>, "many">;
135
+ status: z.ZodEnum<["active", "disabled"]>;
136
+ metadata: z.ZodUnknown;
137
+ createdAt: z.ZodString;
138
+ updatedAt: z.ZodString;
139
+ }, "strict", z.ZodTypeAny, {
140
+ status: "active" | "disabled";
141
+ name: string;
142
+ id: string;
143
+ createdAt: string;
144
+ updatedAt: string;
145
+ baseUrl: string;
146
+ enterpriseId: string;
147
+ apiKeys: {
148
+ fingerprint: string;
149
+ masked: string;
150
+ }[];
151
+ apiKeyCount: number;
152
+ metadata?: unknown;
153
+ }, {
154
+ status: "active" | "disabled";
155
+ name: string;
156
+ id: string;
157
+ createdAt: string;
158
+ updatedAt: string;
159
+ baseUrl: string;
160
+ enterpriseId: string;
161
+ apiKeys: {
162
+ fingerprint: string;
163
+ masked: string;
164
+ }[];
165
+ apiKeyCount: number;
166
+ metadata?: unknown;
167
+ }>;
168
+ export type GatewayConnectionView = z.infer<typeof GatewayConnectionViewSchema>;
169
+ export declare const GatewayConnectionViewResponseSchema: z.ZodObject<{
170
+ ok: z.ZodLiteral<true>;
171
+ data: z.ZodArray<z.ZodObject<{
172
+ id: z.ZodString;
173
+ enterpriseId: z.ZodString;
174
+ name: z.ZodString;
175
+ baseUrl: z.ZodString;
176
+ apiKeyCount: z.ZodNumber;
177
+ apiKeys: z.ZodArray<z.ZodObject<{
178
+ fingerprint: z.ZodString;
179
+ masked: z.ZodString;
180
+ }, "strict", z.ZodTypeAny, {
181
+ fingerprint: string;
182
+ masked: string;
183
+ }, {
184
+ fingerprint: string;
185
+ masked: string;
186
+ }>, "many">;
187
+ status: z.ZodEnum<["active", "disabled"]>;
188
+ metadata: z.ZodUnknown;
189
+ createdAt: z.ZodString;
190
+ updatedAt: z.ZodString;
191
+ }, "strict", z.ZodTypeAny, {
192
+ status: "active" | "disabled";
193
+ name: string;
194
+ id: string;
195
+ createdAt: string;
196
+ updatedAt: string;
197
+ baseUrl: string;
198
+ enterpriseId: string;
199
+ apiKeys: {
200
+ fingerprint: string;
201
+ masked: string;
202
+ }[];
203
+ apiKeyCount: number;
204
+ metadata?: unknown;
205
+ }, {
206
+ status: "active" | "disabled";
207
+ name: string;
208
+ id: string;
209
+ createdAt: string;
210
+ updatedAt: string;
211
+ baseUrl: string;
212
+ enterpriseId: string;
213
+ apiKeys: {
214
+ fingerprint: string;
215
+ masked: string;
216
+ }[];
217
+ apiKeyCount: number;
218
+ metadata?: unknown;
219
+ }>, "many">;
220
+ }, "strict", z.ZodTypeAny, {
221
+ data: {
222
+ status: "active" | "disabled";
223
+ name: string;
224
+ id: string;
225
+ createdAt: string;
226
+ updatedAt: string;
227
+ baseUrl: string;
228
+ enterpriseId: string;
229
+ apiKeys: {
230
+ fingerprint: string;
231
+ masked: string;
232
+ }[];
233
+ apiKeyCount: number;
234
+ metadata?: unknown;
235
+ }[];
236
+ ok: true;
237
+ }, {
238
+ data: {
239
+ status: "active" | "disabled";
240
+ name: string;
241
+ id: string;
242
+ createdAt: string;
243
+ updatedAt: string;
244
+ baseUrl: string;
245
+ enterpriseId: string;
246
+ apiKeys: {
247
+ fingerprint: string;
248
+ masked: string;
249
+ }[];
250
+ apiKeyCount: number;
251
+ metadata?: unknown;
252
+ }[];
253
+ ok: true;
254
+ }>;
255
+ export declare const GatewayConnectionMutationResponseSchema: z.ZodObject<{
256
+ ok: z.ZodLiteral<true>;
257
+ data: z.ZodObject<{
258
+ id: z.ZodString;
259
+ enterpriseId: z.ZodString;
260
+ name: z.ZodString;
261
+ baseUrl: z.ZodString;
262
+ apiKeyCount: z.ZodNumber;
263
+ apiKeys: z.ZodArray<z.ZodObject<{
264
+ fingerprint: z.ZodString;
265
+ masked: z.ZodString;
266
+ }, "strict", z.ZodTypeAny, {
267
+ fingerprint: string;
268
+ masked: string;
269
+ }, {
270
+ fingerprint: string;
271
+ masked: string;
272
+ }>, "many">;
273
+ status: z.ZodEnum<["active", "disabled"]>;
274
+ metadata: z.ZodUnknown;
275
+ createdAt: z.ZodString;
276
+ updatedAt: z.ZodString;
277
+ }, "strict", z.ZodTypeAny, {
278
+ status: "active" | "disabled";
279
+ name: string;
280
+ id: string;
281
+ createdAt: string;
282
+ updatedAt: string;
283
+ baseUrl: string;
284
+ enterpriseId: string;
285
+ apiKeys: {
286
+ fingerprint: string;
287
+ masked: string;
288
+ }[];
289
+ apiKeyCount: number;
290
+ metadata?: unknown;
291
+ }, {
292
+ status: "active" | "disabled";
293
+ name: string;
294
+ id: string;
295
+ createdAt: string;
296
+ updatedAt: string;
297
+ baseUrl: string;
298
+ enterpriseId: string;
299
+ apiKeys: {
300
+ fingerprint: string;
301
+ masked: string;
302
+ }[];
303
+ apiKeyCount: number;
304
+ metadata?: unknown;
305
+ }>;
306
+ }, "strict", z.ZodTypeAny, {
307
+ data: {
308
+ status: "active" | "disabled";
309
+ name: string;
310
+ id: string;
311
+ createdAt: string;
312
+ updatedAt: string;
313
+ baseUrl: string;
314
+ enterpriseId: string;
315
+ apiKeys: {
316
+ fingerprint: string;
317
+ masked: string;
318
+ }[];
319
+ apiKeyCount: number;
320
+ metadata?: unknown;
321
+ };
322
+ ok: true;
323
+ }, {
324
+ data: {
325
+ status: "active" | "disabled";
326
+ name: string;
327
+ id: string;
328
+ createdAt: string;
329
+ updatedAt: string;
330
+ baseUrl: string;
331
+ enterpriseId: string;
332
+ apiKeys: {
333
+ fingerprint: string;
334
+ masked: string;
335
+ }[];
336
+ apiKeyCount: number;
337
+ metadata?: unknown;
338
+ };
339
+ ok: true;
340
+ }>;
341
+ export declare const GatewayCapabilityViewSchema: z.ZodObject<{
342
+ connectionId: z.ZodString;
343
+ connectionName: z.ZodString;
344
+ agent: z.ZodEnum<["claude", "codex"]>;
345
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses"]>;
346
+ models: z.ZodArray<z.ZodString, "many">;
347
+ status: z.ZodEnum<["ready", "unknown", "unavailable", "unsupported"]>;
348
+ }, "strict", z.ZodTypeAny, {
349
+ status: "unknown" | "ready" | "unavailable" | "unsupported";
350
+ agent: "codex" | "claude";
351
+ connectionId: string;
352
+ requestProtocol: "anthropic_messages" | "openai_responses";
353
+ connectionName: string;
354
+ models: string[];
355
+ }, {
356
+ status: "unknown" | "ready" | "unavailable" | "unsupported";
357
+ agent: "codex" | "claude";
358
+ connectionId: string;
359
+ requestProtocol: "anthropic_messages" | "openai_responses";
360
+ connectionName: string;
361
+ models: string[];
362
+ }>;
363
+ export type GatewayCapabilityView = z.infer<typeof GatewayCapabilityViewSchema>;
364
+ export declare const GatewayCapabilityViewResponseSchema: z.ZodObject<{
365
+ ok: z.ZodLiteral<true>;
366
+ data: z.ZodArray<z.ZodObject<{
367
+ connectionId: z.ZodString;
368
+ connectionName: z.ZodString;
369
+ agent: z.ZodEnum<["claude", "codex"]>;
370
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses"]>;
371
+ models: z.ZodArray<z.ZodString, "many">;
372
+ status: z.ZodEnum<["ready", "unknown", "unavailable", "unsupported"]>;
373
+ }, "strict", z.ZodTypeAny, {
374
+ status: "unknown" | "ready" | "unavailable" | "unsupported";
375
+ agent: "codex" | "claude";
376
+ connectionId: string;
377
+ requestProtocol: "anthropic_messages" | "openai_responses";
378
+ connectionName: string;
379
+ models: string[];
380
+ }, {
381
+ status: "unknown" | "ready" | "unavailable" | "unsupported";
382
+ agent: "codex" | "claude";
383
+ connectionId: string;
384
+ requestProtocol: "anthropic_messages" | "openai_responses";
385
+ connectionName: string;
386
+ models: string[];
387
+ }>, "many">;
388
+ }, "strict", z.ZodTypeAny, {
389
+ data: {
390
+ status: "unknown" | "ready" | "unavailable" | "unsupported";
391
+ agent: "codex" | "claude";
392
+ connectionId: string;
393
+ requestProtocol: "anthropic_messages" | "openai_responses";
394
+ connectionName: string;
395
+ models: string[];
396
+ }[];
397
+ ok: true;
398
+ }, {
399
+ data: {
400
+ status: "unknown" | "ready" | "unavailable" | "unsupported";
401
+ agent: "codex" | "claude";
402
+ connectionId: string;
403
+ requestProtocol: "anthropic_messages" | "openai_responses";
404
+ connectionName: string;
405
+ models: string[];
406
+ }[];
407
+ ok: true;
408
+ }>;
409
+ export declare const GatewayConnectionKeyFingerprintSchema: z.ZodString;
410
+ export declare const GatewayRouteCreateSchema: z.ZodDiscriminatedUnion<"agent", [z.ZodObject<{
411
+ connectionId: z.ZodString;
412
+ userId: z.ZodString;
413
+ machineId: z.ZodString;
414
+ agent: z.ZodLiteral<"claude">;
415
+ model: z.ZodString;
416
+ requestProtocol: z.ZodLiteral<"anthropic_messages">;
417
+ upstreamProtocol: z.ZodLiteral<"anthropic_messages">;
418
+ provider: z.ZodString;
419
+ alias: z.ZodString;
420
+ }, "strict", z.ZodTypeAny, {
421
+ model: string;
422
+ agent: "claude";
423
+ machineId: string;
424
+ provider: string;
425
+ connectionId: string;
426
+ requestProtocol: "anthropic_messages";
427
+ upstreamProtocol: "anthropic_messages";
428
+ alias: string;
429
+ userId: string;
430
+ }, {
431
+ model: string;
432
+ agent: "claude";
433
+ machineId: string;
434
+ provider: string;
435
+ connectionId: string;
436
+ requestProtocol: "anthropic_messages";
437
+ upstreamProtocol: "anthropic_messages";
438
+ alias: string;
439
+ userId: string;
440
+ }>, z.ZodObject<{
441
+ connectionId: z.ZodString;
442
+ userId: z.ZodString;
443
+ machineId: z.ZodString;
444
+ agent: z.ZodLiteral<"codex">;
445
+ model: z.ZodString;
446
+ requestProtocol: z.ZodLiteral<"openai_responses">;
447
+ upstreamProtocol: z.ZodLiteral<"openai_responses">;
448
+ provider: z.ZodString;
449
+ alias: z.ZodString;
450
+ }, "strict", z.ZodTypeAny, {
451
+ model: string;
452
+ agent: "codex";
453
+ machineId: string;
454
+ provider: string;
455
+ connectionId: string;
456
+ requestProtocol: "openai_responses";
457
+ upstreamProtocol: "openai_responses";
458
+ alias: string;
459
+ userId: string;
460
+ }, {
461
+ model: string;
462
+ agent: "codex";
463
+ machineId: string;
464
+ provider: string;
465
+ connectionId: string;
466
+ requestProtocol: "openai_responses";
467
+ upstreamProtocol: "openai_responses";
468
+ alias: string;
469
+ userId: string;
470
+ }>]>;
471
+ export type GatewayRouteCreate = z.infer<typeof GatewayRouteCreateSchema>;
472
+ export declare const GatewayRouteUpdateSchema: z.ZodObject<{
473
+ model: z.ZodOptional<z.ZodString>;
474
+ provider: z.ZodOptional<z.ZodString>;
475
+ status: z.ZodOptional<z.ZodEnum<["disabled", "error"]>>;
476
+ }, "strict", z.ZodTypeAny, {
477
+ status?: "error" | "disabled" | undefined;
478
+ model?: string | undefined;
479
+ provider?: string | undefined;
480
+ }, {
481
+ status?: "error" | "disabled" | undefined;
482
+ model?: string | undefined;
483
+ provider?: string | undefined;
484
+ }>;
485
+ export type GatewayRouteUpdate = z.infer<typeof GatewayRouteUpdateSchema>;
486
+ export declare const GatewayRouteViewSchema: z.ZodObject<{
487
+ id: z.ZodString;
488
+ enterpriseId: z.ZodString;
489
+ alias: z.ZodString;
490
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
491
+ provider: z.ZodString;
492
+ model: z.ZodString;
493
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
494
+ upstreamProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
495
+ status: z.ZodEnum<["draft", "validating", "active", "disabled", "error"]>;
496
+ connection: z.ZodOptional<z.ZodObject<{
497
+ id: z.ZodString;
498
+ name: z.ZodString;
499
+ status: z.ZodEnum<["active", "disabled"]>;
500
+ }, "strict", z.ZodTypeAny, {
501
+ status: "active" | "disabled";
502
+ name: string;
503
+ id: string;
504
+ }, {
505
+ status: "active" | "disabled";
506
+ name: string;
507
+ id: string;
508
+ }>>;
509
+ } & {
510
+ connectionId: z.ZodString;
511
+ lastValidationAt: z.ZodNullable<z.ZodString>;
512
+ lastErrorCode: z.ZodNullable<z.ZodString>;
513
+ runtimeBinding: z.ZodNullable<z.ZodObject<{
514
+ id: z.ZodString;
515
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
516
+ expiresAt: z.ZodNullable<z.ZodString>;
517
+ }, "strict", z.ZodTypeAny, {
518
+ status: "active" | "revoked" | "expired";
519
+ id: string;
520
+ expiresAt: string | null;
521
+ }, {
522
+ status: "active" | "revoked" | "expired";
523
+ id: string;
524
+ expiresAt: string | null;
525
+ }>>;
526
+ }, "strict", z.ZodTypeAny, {
527
+ status: "error" | "active" | "disabled" | "draft" | "validating";
528
+ model: string;
529
+ agent: "codex" | "claude" | "opencode";
530
+ id: string;
531
+ provider: string;
532
+ connectionId: string;
533
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
534
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
535
+ lastErrorCode: string | null;
536
+ alias: string;
537
+ enterpriseId: string;
538
+ lastValidationAt: string | null;
539
+ runtimeBinding: {
540
+ status: "active" | "revoked" | "expired";
541
+ id: string;
542
+ expiresAt: string | null;
543
+ } | null;
544
+ connection?: {
545
+ status: "active" | "disabled";
546
+ name: string;
547
+ id: string;
548
+ } | undefined;
549
+ }, {
550
+ status: "error" | "active" | "disabled" | "draft" | "validating";
551
+ model: string;
552
+ agent: "codex" | "claude" | "opencode";
553
+ id: string;
554
+ provider: string;
555
+ connectionId: string;
556
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
557
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
558
+ lastErrorCode: string | null;
559
+ alias: string;
560
+ enterpriseId: string;
561
+ lastValidationAt: string | null;
562
+ runtimeBinding: {
563
+ status: "active" | "revoked" | "expired";
564
+ id: string;
565
+ expiresAt: string | null;
566
+ } | null;
567
+ connection?: {
568
+ status: "active" | "disabled";
569
+ name: string;
570
+ id: string;
571
+ } | undefined;
572
+ }>;
573
+ export type GatewayRouteView = z.infer<typeof GatewayRouteViewSchema>;
574
+ export declare const GatewayRouteViewResponseSchema: z.ZodObject<{
575
+ ok: z.ZodLiteral<true>;
576
+ data: z.ZodArray<z.ZodObject<{
577
+ id: z.ZodString;
578
+ enterpriseId: z.ZodString;
579
+ alias: z.ZodString;
580
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
581
+ provider: z.ZodString;
582
+ model: z.ZodString;
583
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
584
+ upstreamProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
585
+ status: z.ZodEnum<["draft", "validating", "active", "disabled", "error"]>;
586
+ connection: z.ZodOptional<z.ZodObject<{
587
+ id: z.ZodString;
588
+ name: z.ZodString;
589
+ status: z.ZodEnum<["active", "disabled"]>;
590
+ }, "strict", z.ZodTypeAny, {
591
+ status: "active" | "disabled";
592
+ name: string;
593
+ id: string;
594
+ }, {
595
+ status: "active" | "disabled";
596
+ name: string;
597
+ id: string;
598
+ }>>;
599
+ } & {
600
+ connectionId: z.ZodString;
601
+ lastValidationAt: z.ZodNullable<z.ZodString>;
602
+ lastErrorCode: z.ZodNullable<z.ZodString>;
603
+ runtimeBinding: z.ZodNullable<z.ZodObject<{
604
+ id: z.ZodString;
605
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
606
+ expiresAt: z.ZodNullable<z.ZodString>;
607
+ }, "strict", z.ZodTypeAny, {
608
+ status: "active" | "revoked" | "expired";
609
+ id: string;
610
+ expiresAt: string | null;
611
+ }, {
612
+ status: "active" | "revoked" | "expired";
613
+ id: string;
614
+ expiresAt: string | null;
615
+ }>>;
616
+ }, "strict", z.ZodTypeAny, {
617
+ status: "error" | "active" | "disabled" | "draft" | "validating";
618
+ model: string;
619
+ agent: "codex" | "claude" | "opencode";
620
+ id: string;
621
+ provider: string;
622
+ connectionId: string;
623
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
624
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
625
+ lastErrorCode: string | null;
626
+ alias: string;
627
+ enterpriseId: string;
628
+ lastValidationAt: string | null;
629
+ runtimeBinding: {
630
+ status: "active" | "revoked" | "expired";
631
+ id: string;
632
+ expiresAt: string | null;
633
+ } | null;
634
+ connection?: {
635
+ status: "active" | "disabled";
636
+ name: string;
637
+ id: string;
638
+ } | undefined;
639
+ }, {
640
+ status: "error" | "active" | "disabled" | "draft" | "validating";
641
+ model: string;
642
+ agent: "codex" | "claude" | "opencode";
643
+ id: string;
644
+ provider: string;
645
+ connectionId: string;
646
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
647
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
648
+ lastErrorCode: string | null;
649
+ alias: string;
650
+ enterpriseId: string;
651
+ lastValidationAt: string | null;
652
+ runtimeBinding: {
653
+ status: "active" | "revoked" | "expired";
654
+ id: string;
655
+ expiresAt: string | null;
656
+ } | null;
657
+ connection?: {
658
+ status: "active" | "disabled";
659
+ name: string;
660
+ id: string;
661
+ } | undefined;
662
+ }>, "many">;
663
+ }, "strict", z.ZodTypeAny, {
664
+ data: {
665
+ status: "error" | "active" | "disabled" | "draft" | "validating";
666
+ model: string;
667
+ agent: "codex" | "claude" | "opencode";
668
+ id: string;
669
+ provider: string;
670
+ connectionId: string;
671
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
672
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
673
+ lastErrorCode: string | null;
674
+ alias: string;
675
+ enterpriseId: string;
676
+ lastValidationAt: string | null;
677
+ runtimeBinding: {
678
+ status: "active" | "revoked" | "expired";
679
+ id: string;
680
+ expiresAt: string | null;
681
+ } | null;
682
+ connection?: {
683
+ status: "active" | "disabled";
684
+ name: string;
685
+ id: string;
686
+ } | undefined;
687
+ }[];
688
+ ok: true;
689
+ }, {
690
+ data: {
691
+ status: "error" | "active" | "disabled" | "draft" | "validating";
692
+ model: string;
693
+ agent: "codex" | "claude" | "opencode";
694
+ id: string;
695
+ provider: string;
696
+ connectionId: string;
697
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
698
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
699
+ lastErrorCode: string | null;
700
+ alias: string;
701
+ enterpriseId: string;
702
+ lastValidationAt: string | null;
703
+ runtimeBinding: {
704
+ status: "active" | "revoked" | "expired";
705
+ id: string;
706
+ expiresAt: string | null;
707
+ } | null;
708
+ connection?: {
709
+ status: "active" | "disabled";
710
+ name: string;
711
+ id: string;
712
+ } | undefined;
713
+ }[];
714
+ ok: true;
715
+ }>;
716
+ export declare const GatewayRouteMutationResponseSchema: z.ZodObject<{
717
+ ok: z.ZodLiteral<true>;
718
+ data: z.ZodObject<{
719
+ route: z.ZodObject<{
720
+ id: z.ZodString;
721
+ enterpriseId: z.ZodString;
722
+ alias: z.ZodString;
723
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
724
+ provider: z.ZodString;
725
+ model: z.ZodString;
726
+ requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
727
+ upstreamProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
728
+ status: z.ZodEnum<["draft", "validating", "active", "disabled", "error"]>;
729
+ connection: z.ZodOptional<z.ZodObject<{
730
+ id: z.ZodString;
731
+ name: z.ZodString;
732
+ status: z.ZodEnum<["active", "disabled"]>;
733
+ }, "strict", z.ZodTypeAny, {
734
+ status: "active" | "disabled";
735
+ name: string;
736
+ id: string;
737
+ }, {
738
+ status: "active" | "disabled";
739
+ name: string;
740
+ id: string;
741
+ }>>;
742
+ } & {
743
+ connectionId: z.ZodString;
744
+ lastValidationAt: z.ZodNullable<z.ZodString>;
745
+ lastErrorCode: z.ZodNullable<z.ZodString>;
746
+ runtimeBinding: z.ZodNullable<z.ZodObject<{
747
+ id: z.ZodString;
748
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
749
+ expiresAt: z.ZodNullable<z.ZodString>;
750
+ }, "strict", z.ZodTypeAny, {
751
+ status: "active" | "revoked" | "expired";
752
+ id: string;
753
+ expiresAt: string | null;
754
+ }, {
755
+ status: "active" | "revoked" | "expired";
756
+ id: string;
757
+ expiresAt: string | null;
758
+ }>>;
759
+ }, "strict", z.ZodTypeAny, {
760
+ status: "error" | "active" | "disabled" | "draft" | "validating";
761
+ model: string;
762
+ agent: "codex" | "claude" | "opencode";
763
+ id: string;
764
+ provider: string;
765
+ connectionId: string;
766
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
767
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
768
+ lastErrorCode: string | null;
769
+ alias: string;
770
+ enterpriseId: string;
771
+ lastValidationAt: string | null;
772
+ runtimeBinding: {
773
+ status: "active" | "revoked" | "expired";
774
+ id: string;
775
+ expiresAt: string | null;
776
+ } | null;
777
+ connection?: {
778
+ status: "active" | "disabled";
779
+ name: string;
780
+ id: string;
781
+ } | undefined;
782
+ }, {
783
+ status: "error" | "active" | "disabled" | "draft" | "validating";
784
+ model: string;
785
+ agent: "codex" | "claude" | "opencode";
786
+ id: string;
787
+ provider: string;
788
+ connectionId: string;
789
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
790
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
791
+ lastErrorCode: string | null;
792
+ alias: string;
793
+ enterpriseId: string;
794
+ lastValidationAt: string | null;
795
+ runtimeBinding: {
796
+ status: "active" | "revoked" | "expired";
797
+ id: string;
798
+ expiresAt: string | null;
799
+ } | null;
800
+ connection?: {
801
+ status: "active" | "disabled";
802
+ name: string;
803
+ id: string;
804
+ } | undefined;
805
+ }>;
806
+ }, "strict", z.ZodTypeAny, {
807
+ route: {
808
+ status: "error" | "active" | "disabled" | "draft" | "validating";
809
+ model: string;
810
+ agent: "codex" | "claude" | "opencode";
811
+ id: string;
812
+ provider: string;
813
+ connectionId: string;
814
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
815
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
816
+ lastErrorCode: string | null;
817
+ alias: string;
818
+ enterpriseId: string;
819
+ lastValidationAt: string | null;
820
+ runtimeBinding: {
821
+ status: "active" | "revoked" | "expired";
822
+ id: string;
823
+ expiresAt: string | null;
824
+ } | null;
825
+ connection?: {
826
+ status: "active" | "disabled";
827
+ name: string;
828
+ id: string;
829
+ } | undefined;
830
+ };
831
+ }, {
832
+ route: {
833
+ status: "error" | "active" | "disabled" | "draft" | "validating";
834
+ model: string;
835
+ agent: "codex" | "claude" | "opencode";
836
+ id: string;
837
+ provider: string;
838
+ connectionId: string;
839
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
840
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
841
+ lastErrorCode: string | null;
842
+ alias: string;
843
+ enterpriseId: string;
844
+ lastValidationAt: string | null;
845
+ runtimeBinding: {
846
+ status: "active" | "revoked" | "expired";
847
+ id: string;
848
+ expiresAt: string | null;
849
+ } | null;
850
+ connection?: {
851
+ status: "active" | "disabled";
852
+ name: string;
853
+ id: string;
854
+ } | undefined;
855
+ };
856
+ }>;
857
+ }, "strict", z.ZodTypeAny, {
858
+ data: {
859
+ route: {
860
+ status: "error" | "active" | "disabled" | "draft" | "validating";
861
+ model: string;
862
+ agent: "codex" | "claude" | "opencode";
863
+ id: string;
864
+ provider: string;
865
+ connectionId: string;
866
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
867
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
868
+ lastErrorCode: string | null;
869
+ alias: string;
870
+ enterpriseId: string;
871
+ lastValidationAt: string | null;
872
+ runtimeBinding: {
873
+ status: "active" | "revoked" | "expired";
874
+ id: string;
875
+ expiresAt: string | null;
876
+ } | null;
877
+ connection?: {
878
+ status: "active" | "disabled";
879
+ name: string;
880
+ id: string;
881
+ } | undefined;
882
+ };
883
+ };
884
+ ok: true;
885
+ }, {
886
+ data: {
887
+ route: {
888
+ status: "error" | "active" | "disabled" | "draft" | "validating";
889
+ model: string;
890
+ agent: "codex" | "claude" | "opencode";
891
+ id: string;
892
+ provider: string;
893
+ connectionId: string;
894
+ requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
895
+ upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
896
+ lastErrorCode: string | null;
897
+ alias: string;
898
+ enterpriseId: string;
899
+ lastValidationAt: string | null;
900
+ runtimeBinding: {
901
+ status: "active" | "revoked" | "expired";
902
+ id: string;
903
+ expiresAt: string | null;
904
+ } | null;
905
+ connection?: {
906
+ status: "active" | "disabled";
907
+ name: string;
908
+ id: string;
909
+ } | undefined;
910
+ };
911
+ };
912
+ ok: true;
913
+ }>;
914
+ export declare const EnterpriseNativeModelCatalogEntrySchema: z.ZodObject<{
915
+ model: z.ZodString;
916
+ provider: z.ZodString;
917
+ mode: z.ZodString;
918
+ inputCostPerToken: z.ZodNullable<z.ZodNumber>;
919
+ outputCostPerToken: z.ZodNullable<z.ZodNumber>;
920
+ maxInputTokens: z.ZodNullable<z.ZodNumber>;
921
+ maxOutputTokens: z.ZodNullable<z.ZodNumber>;
922
+ source: z.ZodEnum<["github", "custom"]>;
923
+ }, "strict", z.ZodTypeAny, {
924
+ model: string;
925
+ mode: string;
926
+ source: "custom" | "github";
927
+ provider: string;
928
+ inputCostPerToken: number | null;
929
+ outputCostPerToken: number | null;
930
+ maxInputTokens: number | null;
931
+ maxOutputTokens: number | null;
932
+ }, {
933
+ model: string;
934
+ mode: string;
935
+ source: "custom" | "github";
936
+ provider: string;
937
+ inputCostPerToken: number | null;
938
+ outputCostPerToken: number | null;
939
+ maxInputTokens: number | null;
940
+ maxOutputTokens: number | null;
941
+ }>;
942
+ export type EnterpriseNativeModelCatalogEntry = z.infer<typeof EnterpriseNativeModelCatalogEntrySchema>;
943
+ export declare const EnterpriseNativeModelCatalogResponseSchema: z.ZodObject<{
944
+ ok: z.ZodLiteral<true>;
945
+ data: z.ZodArray<z.ZodObject<{
946
+ model: z.ZodString;
947
+ provider: z.ZodString;
948
+ mode: z.ZodString;
949
+ inputCostPerToken: z.ZodNullable<z.ZodNumber>;
950
+ outputCostPerToken: z.ZodNullable<z.ZodNumber>;
951
+ maxInputTokens: z.ZodNullable<z.ZodNumber>;
952
+ maxOutputTokens: z.ZodNullable<z.ZodNumber>;
953
+ source: z.ZodEnum<["github", "custom"]>;
954
+ }, "strict", z.ZodTypeAny, {
955
+ model: string;
956
+ mode: string;
957
+ source: "custom" | "github";
958
+ provider: string;
959
+ inputCostPerToken: number | null;
960
+ outputCostPerToken: number | null;
961
+ maxInputTokens: number | null;
962
+ maxOutputTokens: number | null;
963
+ }, {
964
+ model: string;
965
+ mode: string;
966
+ source: "custom" | "github";
967
+ provider: string;
968
+ inputCostPerToken: number | null;
969
+ outputCostPerToken: number | null;
970
+ maxInputTokens: number | null;
971
+ maxOutputTokens: number | null;
972
+ }>, "many">;
973
+ }, "strict", z.ZodTypeAny, {
974
+ data: {
975
+ model: string;
976
+ mode: string;
977
+ source: "custom" | "github";
978
+ provider: string;
979
+ inputCostPerToken: number | null;
980
+ outputCostPerToken: number | null;
981
+ maxInputTokens: number | null;
982
+ maxOutputTokens: number | null;
983
+ }[];
984
+ ok: true;
985
+ }, {
986
+ data: {
987
+ model: string;
988
+ mode: string;
989
+ source: "custom" | "github";
990
+ provider: string;
991
+ inputCostPerToken: number | null;
992
+ outputCostPerToken: number | null;
993
+ maxInputTokens: number | null;
994
+ maxOutputTokens: number | null;
995
+ }[];
996
+ ok: true;
997
+ }>;
998
+ export declare const GatewayRequestListQuerySchema: z.ZodObject<{
999
+ from: z.ZodOptional<z.ZodString>;
1000
+ to: z.ZodOptional<z.ZodString>;
1001
+ userId: z.ZodOptional<z.ZodString>;
1002
+ machineId: z.ZodOptional<z.ZodString>;
1003
+ routeId: z.ZodOptional<z.ZodString>;
1004
+ agent: z.ZodOptional<z.ZodString>;
1005
+ model: z.ZodOptional<z.ZodString>;
1006
+ provider: z.ZodOptional<z.ZodString>;
1007
+ outcome: z.ZodOptional<z.ZodString>;
1008
+ limit: z.ZodNumber;
1009
+ offset: z.ZodNumber;
1010
+ cursor: z.ZodOptional<z.ZodString>;
1011
+ }, "strict", z.ZodTypeAny, {
1012
+ limit: number;
1013
+ offset: number;
1014
+ model?: string | undefined;
1015
+ agent?: string | undefined;
1016
+ machineId?: string | undefined;
1017
+ provider?: string | undefined;
1018
+ routeId?: string | undefined;
1019
+ userId?: string | undefined;
1020
+ from?: string | undefined;
1021
+ to?: string | undefined;
1022
+ outcome?: string | undefined;
1023
+ cursor?: string | undefined;
1024
+ }, {
1025
+ limit: number;
1026
+ offset: number;
1027
+ model?: string | undefined;
1028
+ agent?: string | undefined;
1029
+ machineId?: string | undefined;
1030
+ provider?: string | undefined;
1031
+ routeId?: string | undefined;
1032
+ userId?: string | undefined;
1033
+ from?: string | undefined;
1034
+ to?: string | undefined;
1035
+ outcome?: string | undefined;
1036
+ cursor?: string | undefined;
1037
+ }>;
1038
+ export declare const GatewayUsageSummarySchema: z.ZodObject<{
1039
+ requestCount: z.ZodNumber;
1040
+ inputTokens: z.ZodNumber;
1041
+ outputTokens: z.ZodNumber;
1042
+ cacheReadTokens: z.ZodNumber;
1043
+ cacheWriteTokens: z.ZodNumber;
1044
+ reasoningTokens: z.ZodNumber;
1045
+ totalTokens: z.ZodNumber;
1046
+ costMicros: z.ZodNullable<z.ZodNumber>;
1047
+ pricedCount: z.ZodNumber;
1048
+ unpricedCount: z.ZodNumber;
1049
+ errorCount: z.ZodNumber;
1050
+ errorRate: z.ZodNumber;
1051
+ latencyMs: z.ZodObject<{
1052
+ p50: z.ZodNullable<z.ZodNumber>;
1053
+ p95: z.ZodNullable<z.ZodNumber>;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ p50: number | null;
1056
+ p95: number | null;
1057
+ }, {
1058
+ p50: number | null;
1059
+ p95: number | null;
1060
+ }>;
1061
+ breakdown: z.ZodArray<z.ZodObject<{
1062
+ agent: z.ZodNullable<z.ZodString>;
1063
+ model: z.ZodNullable<z.ZodString>;
1064
+ provider: z.ZodNullable<z.ZodString>;
1065
+ requestCount: z.ZodNumber;
1066
+ inputTokens: z.ZodNumber;
1067
+ outputTokens: z.ZodNumber;
1068
+ totalTokens: z.ZodNumber;
1069
+ costMicros: z.ZodNullable<z.ZodNumber>;
1070
+ }, "strict", z.ZodTypeAny, {
1071
+ model: string | null;
1072
+ inputTokens: number;
1073
+ outputTokens: number;
1074
+ totalTokens: number;
1075
+ agent: string | null;
1076
+ provider: string | null;
1077
+ requestCount: number;
1078
+ costMicros: number | null;
1079
+ }, {
1080
+ model: string | null;
1081
+ inputTokens: number;
1082
+ outputTokens: number;
1083
+ totalTokens: number;
1084
+ agent: string | null;
1085
+ provider: string | null;
1086
+ requestCount: number;
1087
+ costMicros: number | null;
1088
+ }>, "many">;
1089
+ }, "strict", z.ZodTypeAny, {
1090
+ inputTokens: number;
1091
+ outputTokens: number;
1092
+ cacheReadTokens: number;
1093
+ cacheWriteTokens: number;
1094
+ totalTokens: number;
1095
+ requestCount: number;
1096
+ reasoningTokens: number;
1097
+ costMicros: number | null;
1098
+ pricedCount: number;
1099
+ unpricedCount: number;
1100
+ errorCount: number;
1101
+ errorRate: number;
1102
+ latencyMs: {
1103
+ p50: number | null;
1104
+ p95: number | null;
1105
+ };
1106
+ breakdown: {
1107
+ model: string | null;
1108
+ inputTokens: number;
1109
+ outputTokens: number;
1110
+ totalTokens: number;
1111
+ agent: string | null;
1112
+ provider: string | null;
1113
+ requestCount: number;
1114
+ costMicros: number | null;
1115
+ }[];
1116
+ }, {
1117
+ inputTokens: number;
1118
+ outputTokens: number;
1119
+ cacheReadTokens: number;
1120
+ cacheWriteTokens: number;
1121
+ totalTokens: number;
1122
+ requestCount: number;
1123
+ reasoningTokens: number;
1124
+ costMicros: number | null;
1125
+ pricedCount: number;
1126
+ unpricedCount: number;
1127
+ errorCount: number;
1128
+ errorRate: number;
1129
+ latencyMs: {
1130
+ p50: number | null;
1131
+ p95: number | null;
1132
+ };
1133
+ breakdown: {
1134
+ model: string | null;
1135
+ inputTokens: number;
1136
+ outputTokens: number;
1137
+ totalTokens: number;
1138
+ agent: string | null;
1139
+ provider: string | null;
1140
+ requestCount: number;
1141
+ costMicros: number | null;
1142
+ }[];
1143
+ }>;
1144
+ export type GatewayUsageSummary = z.infer<typeof GatewayUsageSummarySchema>;
1145
+ export declare const GatewayDailyUsageSchema: z.ZodObject<{
1146
+ day: z.ZodString;
1147
+ agent: z.ZodNullable<z.ZodString>;
1148
+ model: z.ZodNullable<z.ZodString>;
1149
+ provider: z.ZodNullable<z.ZodString>;
1150
+ requestCount: z.ZodNumber;
1151
+ inputTokens: z.ZodNumber;
1152
+ outputTokens: z.ZodNumber;
1153
+ cacheReadTokens: z.ZodNumber;
1154
+ cacheWriteTokens: z.ZodNumber;
1155
+ totalTokens: z.ZodNumber;
1156
+ costMicros: z.ZodNullable<z.ZodNumber>;
1157
+ currency: z.ZodNullable<z.ZodString>;
1158
+ }, "strict", z.ZodTypeAny, {
1159
+ model: string | null;
1160
+ inputTokens: number;
1161
+ outputTokens: number;
1162
+ cacheReadTokens: number;
1163
+ cacheWriteTokens: number;
1164
+ totalTokens: number;
1165
+ agent: string | null;
1166
+ provider: string | null;
1167
+ requestCount: number;
1168
+ costMicros: number | null;
1169
+ day: string;
1170
+ currency: string | null;
1171
+ }, {
1172
+ model: string | null;
1173
+ inputTokens: number;
1174
+ outputTokens: number;
1175
+ cacheReadTokens: number;
1176
+ cacheWriteTokens: number;
1177
+ totalTokens: number;
1178
+ agent: string | null;
1179
+ provider: string | null;
1180
+ requestCount: number;
1181
+ costMicros: number | null;
1182
+ day: string;
1183
+ currency: string | null;
1184
+ }>;