@agentdock/wire 0.0.94 → 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 (59) 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/enterpriseGateway.d.ts +1 -2
  12. package/dist/enterprisePolicy.d.ts +1599 -0
  13. package/dist/enterprisePolicy.js +1 -0
  14. package/dist/enterprisePolicyExports.d.ts +2 -0
  15. package/dist/enterprisePolicyExports.js +1 -0
  16. package/dist/enterpriseRuntime.d.ts +317 -0
  17. package/dist/enterpriseRuntime.js +1 -0
  18. package/dist/envelope.d.ts +18 -30
  19. package/dist/errorMessage.d.ts +0 -1
  20. package/dist/events.d.ts +55 -71
  21. package/dist/features.d.ts +14 -29
  22. package/dist/feedback.d.ts +3 -4
  23. package/dist/fileWhitelist.d.ts +7 -39
  24. package/dist/gateway.d.ts +841 -43
  25. package/dist/gateway.js +1 -1
  26. package/dist/goals.d.ts +0 -1
  27. package/dist/handoffBrief.d.ts +1 -2
  28. package/dist/inboundEvents.d.ts +32 -75
  29. package/dist/index.d.ts +7 -6
  30. package/dist/index.js +1 -1
  31. package/dist/interactionEvents.d.ts +49 -57
  32. package/dist/legacyProtocol.d.ts +0 -6
  33. package/dist/license.d.ts +36 -37
  34. package/dist/machine.d.ts +48 -56
  35. package/dist/messageMeta.d.ts +15 -17
  36. package/dist/messages.d.ts +13 -20
  37. package/dist/notification.d.ts +2 -3
  38. package/dist/ops.d.ts +9 -27
  39. package/dist/pairing.d.ts +9 -49
  40. package/dist/permissionSubject.d.ts +3 -26
  41. package/dist/protocol.d.ts +0 -6
  42. package/dist/rpc.d.ts +118 -162
  43. package/dist/rpc.js +1 -1
  44. package/dist/scheduledTasks.d.ts +9 -10
  45. package/dist/semver.d.ts +3 -22
  46. package/dist/sessionBtw.d.ts +4 -5
  47. package/dist/sessionBtw.js +1 -1
  48. package/dist/sessionResult.d.ts +21 -27
  49. package/dist/sessionTitle.d.ts +2 -9
  50. package/dist/socketEvents.d.ts +4 -5
  51. package/dist/sourceMetadata.d.ts +1 -14
  52. package/dist/spawnError.d.ts +7 -14
  53. package/dist/stats.d.ts +13 -20
  54. package/dist/sync.d.ts +75 -156
  55. package/dist/taskResult.d.ts +3 -20
  56. package/dist/telemetry.d.ts +1 -11
  57. package/dist/utils.d.ts +0 -1
  58. package/dist/workItems.d.ts +6 -30
  59. package/package.json +1 -1
package/dist/gateway.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare const GatewayProtocolSchema: z.ZodEnum<["anthropic_messages", "op
5
5
  export type GatewayProtocol = z.infer<typeof GatewayProtocolSchema>;
6
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
7
  export type GatewayErrorCode = z.infer<typeof GatewayErrorCodeSchema>;
8
- /** Internal server-side route shape. It is never returned by a REST endpoint. */
8
+
9
9
  export declare const GatewayRouteSchema: z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  alias: z.ZodString;
@@ -16,54 +16,51 @@ export declare const GatewayRouteSchema: z.ZodObject<{
16
16
  requestProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
17
17
  upstreamProtocol: z.ZodEnum<["anthropic_messages", "openai_responses", "openai_chat"]>;
18
18
  status: z.ZodEnum<["draft", "validating", "active", "disabled", "error"]>;
19
- tokenGeneration: z.ZodNumber;
20
19
  connection: z.ZodObject<{
21
20
  status: z.ZodEnum<["active", "disabled"]>;
22
- messagesUrl: z.ZodString;
21
+ baseUrl: z.ZodString;
23
22
  apiKey: z.ZodString;
24
23
  authScheme: z.ZodEnum<["x-api-key", "bearer"]>;
25
24
  }, "strict", z.ZodTypeAny, {
26
25
  status: "active" | "disabled";
26
+ baseUrl: string;
27
27
  apiKey: string;
28
- messagesUrl: string;
29
28
  authScheme: "x-api-key" | "bearer";
30
29
  }, {
31
30
  status: "active" | "disabled";
31
+ baseUrl: string;
32
32
  apiKey: string;
33
- messagesUrl: string;
34
33
  authScheme: "x-api-key" | "bearer";
35
34
  }>;
36
35
  }, "strict", z.ZodTypeAny, {
37
- status: "error" | "active" | "draft" | "validating" | "disabled";
36
+ status: "error" | "active" | "disabled" | "draft" | "validating";
38
37
  model: string;
39
38
  agent: "codex" | "claude" | "opencode";
40
39
  id: string;
41
40
  provider: string;
42
- alias: string;
43
- enterpriseId: string;
44
41
  requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
45
42
  upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
46
- tokenGeneration: number;
43
+ alias: string;
44
+ enterpriseId: string;
47
45
  connection: {
48
46
  status: "active" | "disabled";
47
+ baseUrl: string;
49
48
  apiKey: string;
50
- messagesUrl: string;
51
49
  authScheme: "x-api-key" | "bearer";
52
50
  };
53
51
  }, {
54
- status: "error" | "active" | "draft" | "validating" | "disabled";
52
+ status: "error" | "active" | "disabled" | "draft" | "validating";
55
53
  model: string;
56
54
  agent: "codex" | "claude" | "opencode";
57
55
  id: string;
58
- alias: string;
59
- enterpriseId: string;
60
56
  requestProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
61
57
  upstreamProtocol: "anthropic_messages" | "openai_responses" | "openai_chat";
62
- tokenGeneration: number;
58
+ alias: string;
59
+ enterpriseId: string;
63
60
  connection: {
64
61
  status: "active" | "disabled";
62
+ baseUrl: string;
65
63
  apiKey: string;
66
- messagesUrl: string;
67
64
  authScheme: "x-api-key" | "bearer";
68
65
  };
69
66
  provider?: string | undefined;
@@ -72,54 +69,344 @@ export type GatewayRoute = z.infer<typeof GatewayRouteSchema>;
72
69
  export declare const GatewayTokenClaimsSchema: z.ZodObject<{
73
70
  enterpriseId: z.ZodString;
74
71
  userId: z.ZodString;
75
- machineId: z.ZodString;
76
- routeAlias: z.ZodString;
77
- tokenGeneration: z.ZodNumber;
78
72
  }, "strict", z.ZodTypeAny, {
79
- machineId: string;
80
73
  enterpriseId: string;
81
- tokenGeneration: number;
82
74
  userId: string;
83
- routeAlias: string;
84
75
  }, {
85
- machineId: string;
86
76
  enterpriseId: string;
87
- tokenGeneration: number;
88
77
  userId: string;
89
- routeAlias: string;
90
78
  }>;
91
79
  export type GatewayTokenClaims = z.infer<typeof GatewayTokenClaimsSchema>;
92
80
  export declare const GatewayConnectionCreateSchema: z.ZodObject<{
93
81
  name: z.ZodString;
94
- baseUrl: z.ZodEffects<z.ZodString, string, string>;
95
- credentialRef: z.ZodString;
82
+ baseUrl: z.ZodString;
83
+ apiKeys: z.ZodArray<z.ZodString, "many">;
96
84
  }, "strict", z.ZodTypeAny, {
97
85
  name: string;
98
86
  baseUrl: string;
99
- credentialRef: string;
87
+ apiKeys: string[];
100
88
  }, {
101
89
  name: string;
102
90
  baseUrl: string;
103
- credentialRef: string;
91
+ apiKeys: string[];
104
92
  }>;
105
93
  export type GatewayConnectionCreate = z.infer<typeof GatewayConnectionCreateSchema>;
106
94
  export declare const GatewayConnectionUpdateSchema: z.ZodObject<{
107
95
  name: z.ZodOptional<z.ZodString>;
108
- baseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
109
- credentialRef: z.ZodOptional<z.ZodString>;
96
+ baseUrl: z.ZodOptional<z.ZodString>;
97
+ apiKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
98
  status: z.ZodOptional<z.ZodEnum<["active", "disabled"]>>;
111
99
  }, "strict", z.ZodTypeAny, {
112
100
  status?: "active" | "disabled" | undefined;
113
101
  name?: string | undefined;
114
102
  baseUrl?: string | undefined;
115
- credentialRef?: string | undefined;
103
+ apiKeys?: string[] | undefined;
116
104
  }, {
117
105
  status?: "active" | "disabled" | undefined;
118
106
  name?: string | undefined;
119
107
  baseUrl?: string | undefined;
120
- credentialRef?: string | undefined;
108
+ apiKeys?: string[] | undefined;
121
109
  }>;
122
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;
123
410
  export declare const GatewayRouteCreateSchema: z.ZodDiscriminatedUnion<"agent", [z.ZodObject<{
124
411
  connectionId: z.ZodString;
125
412
  userId: z.ZodString;
@@ -135,21 +422,21 @@ export declare const GatewayRouteCreateSchema: z.ZodDiscriminatedUnion<"agent",
135
422
  agent: "claude";
136
423
  machineId: string;
137
424
  provider: string;
138
- alias: string;
425
+ connectionId: string;
139
426
  requestProtocol: "anthropic_messages";
140
427
  upstreamProtocol: "anthropic_messages";
428
+ alias: string;
141
429
  userId: string;
142
- connectionId: string;
143
430
  }, {
144
431
  model: string;
145
432
  agent: "claude";
146
433
  machineId: string;
147
434
  provider: string;
148
- alias: string;
435
+ connectionId: string;
149
436
  requestProtocol: "anthropic_messages";
150
437
  upstreamProtocol: "anthropic_messages";
438
+ alias: string;
151
439
  userId: string;
152
- connectionId: string;
153
440
  }>, z.ZodObject<{
154
441
  connectionId: z.ZodString;
155
442
  userId: z.ZodString;
@@ -165,21 +452,21 @@ export declare const GatewayRouteCreateSchema: z.ZodDiscriminatedUnion<"agent",
165
452
  agent: "codex";
166
453
  machineId: string;
167
454
  provider: string;
168
- alias: string;
455
+ connectionId: string;
169
456
  requestProtocol: "openai_responses";
170
457
  upstreamProtocol: "openai_responses";
458
+ alias: string;
171
459
  userId: string;
172
- connectionId: string;
173
460
  }, {
174
461
  model: string;
175
462
  agent: "codex";
176
463
  machineId: string;
177
464
  provider: string;
178
- alias: string;
465
+ connectionId: string;
179
466
  requestProtocol: "openai_responses";
180
467
  upstreamProtocol: "openai_responses";
468
+ alias: string;
181
469
  userId: string;
182
- connectionId: string;
183
470
  }>]>;
184
471
  export type GatewayRouteCreate = z.infer<typeof GatewayRouteCreateSchema>;
185
472
  export declare const GatewayRouteUpdateSchema: z.ZodObject<{
@@ -196,6 +483,518 @@ export declare const GatewayRouteUpdateSchema: z.ZodObject<{
196
483
  provider?: string | undefined;
197
484
  }>;
198
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
+ }>;
199
998
  export declare const GatewayRequestListQuerySchema: z.ZodObject<{
200
999
  from: z.ZodOptional<z.ZodString>;
201
1000
  to: z.ZodOptional<z.ZodString>;
@@ -216,10 +1015,10 @@ export declare const GatewayRequestListQuerySchema: z.ZodObject<{
216
1015
  agent?: string | undefined;
217
1016
  machineId?: string | undefined;
218
1017
  provider?: string | undefined;
1018
+ routeId?: string | undefined;
219
1019
  userId?: string | undefined;
220
1020
  from?: string | undefined;
221
1021
  to?: string | undefined;
222
- routeId?: string | undefined;
223
1022
  outcome?: string | undefined;
224
1023
  cursor?: string | undefined;
225
1024
  }, {
@@ -229,10 +1028,10 @@ export declare const GatewayRequestListQuerySchema: z.ZodObject<{
229
1028
  agent?: string | undefined;
230
1029
  machineId?: string | undefined;
231
1030
  provider?: string | undefined;
1031
+ routeId?: string | undefined;
232
1032
  userId?: string | undefined;
233
1033
  from?: string | undefined;
234
1034
  to?: string | undefined;
235
- routeId?: string | undefined;
236
1035
  outcome?: string | undefined;
237
1036
  cursor?: string | undefined;
238
1037
  }>;
@@ -383,4 +1182,3 @@ export declare const GatewayDailyUsageSchema: z.ZodObject<{
383
1182
  day: string;
384
1183
  currency: string | null;
385
1184
  }>;
386
- //# sourceMappingURL=gateway.d.ts.map