@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
@@ -0,0 +1,1599 @@
1
+ import { z } from 'zod';
2
+ export declare const EnterprisePolicyBindingInputSchema: z.ZodObject<{
3
+ agent: z.ZodString;
4
+ model: z.ZodString;
5
+ connectionId: z.ZodString;
6
+ isDefault: z.ZodDefault<z.ZodBoolean>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ model: string;
9
+ agent: string;
10
+ isDefault: boolean;
11
+ connectionId: string;
12
+ }, {
13
+ model: string;
14
+ agent: string;
15
+ connectionId: string;
16
+ isDefault?: boolean | undefined;
17
+ }>;
18
+ export declare const EnterprisePolicyGroupCreateSchema: z.ZodObject<{
19
+ name: z.ZodString;
20
+ priority: z.ZodNumber;
21
+ status: z.ZodDefault<z.ZodEnum<["active", "disabled"]>>;
22
+ bindings: z.ZodArray<z.ZodObject<{
23
+ agent: z.ZodString;
24
+ model: z.ZodString;
25
+ connectionId: z.ZodString;
26
+ isDefault: z.ZodDefault<z.ZodBoolean>;
27
+ }, "strict", z.ZodTypeAny, {
28
+ model: string;
29
+ agent: string;
30
+ isDefault: boolean;
31
+ connectionId: string;
32
+ }, {
33
+ model: string;
34
+ agent: string;
35
+ connectionId: string;
36
+ isDefault?: boolean | undefined;
37
+ }>, "many">;
38
+ memberUserIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ status: "active" | "disabled";
41
+ name: string;
42
+ priority: number;
43
+ bindings: {
44
+ model: string;
45
+ agent: string;
46
+ isDefault: boolean;
47
+ connectionId: string;
48
+ }[];
49
+ memberUserIds: string[];
50
+ }, {
51
+ name: string;
52
+ priority: number;
53
+ bindings: {
54
+ model: string;
55
+ agent: string;
56
+ connectionId: string;
57
+ isDefault?: boolean | undefined;
58
+ }[];
59
+ status?: "active" | "disabled" | undefined;
60
+ memberUserIds?: string[] | undefined;
61
+ }>;
62
+ export declare const EnterprisePolicyGroupUpdateSchema: z.ZodObject<{
63
+ name: z.ZodOptional<z.ZodString>;
64
+ priority: z.ZodOptional<z.ZodNumber>;
65
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "disabled"]>>>;
66
+ bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ agent: z.ZodString;
68
+ model: z.ZodString;
69
+ connectionId: z.ZodString;
70
+ isDefault: z.ZodDefault<z.ZodBoolean>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ model: string;
73
+ agent: string;
74
+ isDefault: boolean;
75
+ connectionId: string;
76
+ }, {
77
+ model: string;
78
+ agent: string;
79
+ connectionId: string;
80
+ isDefault?: boolean | undefined;
81
+ }>, "many">>;
82
+ memberUserIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ status?: "active" | "disabled" | undefined;
85
+ name?: string | undefined;
86
+ priority?: number | undefined;
87
+ bindings?: {
88
+ model: string;
89
+ agent: string;
90
+ isDefault: boolean;
91
+ connectionId: string;
92
+ }[] | undefined;
93
+ memberUserIds?: string[] | undefined;
94
+ }, {
95
+ status?: "active" | "disabled" | undefined;
96
+ name?: string | undefined;
97
+ priority?: number | undefined;
98
+ bindings?: {
99
+ model: string;
100
+ agent: string;
101
+ connectionId: string;
102
+ isDefault?: boolean | undefined;
103
+ }[] | undefined;
104
+ memberUserIds?: string[] | undefined;
105
+ }>;
106
+ export declare const EnterprisePolicyGroupReorderSchema: z.ZodEffects<z.ZodObject<{
107
+ orderedGroupIds: z.ZodArray<z.ZodString, "many">;
108
+ }, "strict", z.ZodTypeAny, {
109
+ orderedGroupIds: string[];
110
+ }, {
111
+ orderedGroupIds: string[];
112
+ }>, {
113
+ orderedGroupIds: string[];
114
+ }, {
115
+ orderedGroupIds: string[];
116
+ }>;
117
+ export declare const EnterprisePolicyGroupIdParamsSchema: z.ZodObject<{
118
+ id: z.ZodString;
119
+ }, "strict", z.ZodTypeAny, {
120
+ id: string;
121
+ }, {
122
+ id: string;
123
+ }>;
124
+ export declare const EnterprisePolicyBindingViewSchema: z.ZodObject<{
125
+ id: z.ZodString;
126
+ agent: z.ZodString;
127
+ model: z.ZodString;
128
+ connectionId: z.ZodString;
129
+ isDefault: z.ZodBoolean;
130
+ enabled: z.ZodBoolean;
131
+ routeId: z.ZodString;
132
+ requestProtocol: z.ZodString;
133
+ upstreamProtocol: z.ZodString;
134
+ provider: z.ZodString;
135
+ routeAlias: z.ZodNullable<z.ZodString>;
136
+ routeStatus: z.ZodString;
137
+ connectionStatus: z.ZodString;
138
+ }, "strict", z.ZodTypeAny, {
139
+ model: string;
140
+ agent: string;
141
+ id: string;
142
+ enabled: boolean;
143
+ provider: string;
144
+ isDefault: boolean;
145
+ connectionId: string;
146
+ routeId: string;
147
+ requestProtocol: string;
148
+ upstreamProtocol: string;
149
+ routeAlias: string | null;
150
+ routeStatus: string;
151
+ connectionStatus: string;
152
+ }, {
153
+ model: string;
154
+ agent: string;
155
+ id: string;
156
+ enabled: boolean;
157
+ provider: string;
158
+ isDefault: boolean;
159
+ connectionId: string;
160
+ routeId: string;
161
+ requestProtocol: string;
162
+ upstreamProtocol: string;
163
+ routeAlias: string | null;
164
+ routeStatus: string;
165
+ connectionStatus: string;
166
+ }>;
167
+ export declare const EnterprisePolicyGroupViewSchema: z.ZodObject<{
168
+ id: z.ZodString;
169
+ name: z.ZodString;
170
+ priority: z.ZodNumber;
171
+ status: z.ZodEnum<["active", "disabled"]>;
172
+ version: z.ZodNumber;
173
+ bindings: z.ZodArray<z.ZodObject<{
174
+ id: z.ZodString;
175
+ agent: z.ZodString;
176
+ model: z.ZodString;
177
+ connectionId: z.ZodString;
178
+ isDefault: z.ZodBoolean;
179
+ enabled: z.ZodBoolean;
180
+ routeId: z.ZodString;
181
+ requestProtocol: z.ZodString;
182
+ upstreamProtocol: z.ZodString;
183
+ provider: z.ZodString;
184
+ routeAlias: z.ZodNullable<z.ZodString>;
185
+ routeStatus: z.ZodString;
186
+ connectionStatus: z.ZodString;
187
+ }, "strict", z.ZodTypeAny, {
188
+ model: string;
189
+ agent: string;
190
+ id: string;
191
+ enabled: boolean;
192
+ provider: string;
193
+ isDefault: boolean;
194
+ connectionId: string;
195
+ routeId: string;
196
+ requestProtocol: string;
197
+ upstreamProtocol: string;
198
+ routeAlias: string | null;
199
+ routeStatus: string;
200
+ connectionStatus: string;
201
+ }, {
202
+ model: string;
203
+ agent: string;
204
+ id: string;
205
+ enabled: boolean;
206
+ provider: string;
207
+ isDefault: boolean;
208
+ connectionId: string;
209
+ routeId: string;
210
+ requestProtocol: string;
211
+ upstreamProtocol: string;
212
+ routeAlias: string | null;
213
+ routeStatus: string;
214
+ connectionStatus: string;
215
+ }>, "many">;
216
+ members: z.ZodArray<z.ZodObject<{
217
+ id: z.ZodString;
218
+ username: z.ZodString;
219
+ displayName: z.ZodString;
220
+ }, "strict", z.ZodTypeAny, {
221
+ id: string;
222
+ displayName: string;
223
+ username: string;
224
+ }, {
225
+ id: string;
226
+ displayName: string;
227
+ username: string;
228
+ }>, "many">;
229
+ createdAt: z.ZodString;
230
+ updatedAt: z.ZodString;
231
+ }, "strict", z.ZodTypeAny, {
232
+ status: "active" | "disabled";
233
+ name: string;
234
+ id: string;
235
+ createdAt: string;
236
+ updatedAt: string;
237
+ version: number;
238
+ priority: number;
239
+ bindings: {
240
+ model: string;
241
+ agent: string;
242
+ id: string;
243
+ enabled: boolean;
244
+ provider: string;
245
+ isDefault: boolean;
246
+ connectionId: string;
247
+ routeId: string;
248
+ requestProtocol: string;
249
+ upstreamProtocol: string;
250
+ routeAlias: string | null;
251
+ routeStatus: string;
252
+ connectionStatus: string;
253
+ }[];
254
+ members: {
255
+ id: string;
256
+ displayName: string;
257
+ username: string;
258
+ }[];
259
+ }, {
260
+ status: "active" | "disabled";
261
+ name: string;
262
+ id: string;
263
+ createdAt: string;
264
+ updatedAt: string;
265
+ version: number;
266
+ priority: number;
267
+ bindings: {
268
+ model: string;
269
+ agent: string;
270
+ id: string;
271
+ enabled: boolean;
272
+ provider: string;
273
+ isDefault: boolean;
274
+ connectionId: string;
275
+ routeId: string;
276
+ requestProtocol: string;
277
+ upstreamProtocol: string;
278
+ routeAlias: string | null;
279
+ routeStatus: string;
280
+ connectionStatus: string;
281
+ }[];
282
+ members: {
283
+ id: string;
284
+ displayName: string;
285
+ username: string;
286
+ }[];
287
+ }>;
288
+ export declare const EnterpriseEffectiveModelSchema: z.ZodObject<{
289
+ model: z.ZodString;
290
+ routeId: z.ZodString;
291
+ routeAlias: z.ZodNullable<z.ZodString>;
292
+ sourceGroupId: z.ZodString;
293
+ sourceGroupName: z.ZodString;
294
+ sourceGroupPriority: z.ZodNumber;
295
+ status: z.ZodEnum<["active", "blocked"]>;
296
+ availability: z.ZodEnum<["ready", "unknown", "unavailable"]>;
297
+ availabilityReason: z.ZodOptional<z.ZodEnum<["route-not-active", "connection-not-active"]>>;
298
+ blockedReason: z.ZodOptional<z.ZodEnum<["route-not-found", "route-not-active", "connection-not-active", "binding-route-mismatch"]>>;
299
+ }, "strict", z.ZodTypeAny, {
300
+ status: "active" | "blocked";
301
+ model: string;
302
+ routeId: string;
303
+ routeAlias: string | null;
304
+ sourceGroupId: string;
305
+ sourceGroupName: string;
306
+ sourceGroupPriority: number;
307
+ availability: "unknown" | "ready" | "unavailable";
308
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
309
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
310
+ }, {
311
+ status: "active" | "blocked";
312
+ model: string;
313
+ routeId: string;
314
+ routeAlias: string | null;
315
+ sourceGroupId: string;
316
+ sourceGroupName: string;
317
+ sourceGroupPriority: number;
318
+ availability: "unknown" | "ready" | "unavailable";
319
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
320
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
321
+ }>;
322
+ export declare const EnterpriseEffectiveAgentSchema: z.ZodObject<{
323
+ authorizedModels: z.ZodArray<z.ZodObject<{
324
+ model: z.ZodString;
325
+ routeId: z.ZodString;
326
+ routeAlias: z.ZodNullable<z.ZodString>;
327
+ sourceGroupId: z.ZodString;
328
+ sourceGroupName: z.ZodString;
329
+ sourceGroupPriority: z.ZodNumber;
330
+ status: z.ZodEnum<["active", "blocked"]>;
331
+ availability: z.ZodEnum<["ready", "unknown", "unavailable"]>;
332
+ availabilityReason: z.ZodOptional<z.ZodEnum<["route-not-active", "connection-not-active"]>>;
333
+ blockedReason: z.ZodOptional<z.ZodEnum<["route-not-found", "route-not-active", "connection-not-active", "binding-route-mismatch"]>>;
334
+ }, "strict", z.ZodTypeAny, {
335
+ status: "active" | "blocked";
336
+ model: string;
337
+ routeId: string;
338
+ routeAlias: string | null;
339
+ sourceGroupId: string;
340
+ sourceGroupName: string;
341
+ sourceGroupPriority: number;
342
+ availability: "unknown" | "ready" | "unavailable";
343
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
344
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
345
+ }, {
346
+ status: "active" | "blocked";
347
+ model: string;
348
+ routeId: string;
349
+ routeAlias: string | null;
350
+ sourceGroupId: string;
351
+ sourceGroupName: string;
352
+ sourceGroupPriority: number;
353
+ availability: "unknown" | "ready" | "unavailable";
354
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
355
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
356
+ }>, "many">;
357
+ defaultModel: z.ZodNullable<z.ZodString>;
358
+ }, "strict", z.ZodTypeAny, {
359
+ authorizedModels: {
360
+ status: "active" | "blocked";
361
+ model: string;
362
+ routeId: string;
363
+ routeAlias: string | null;
364
+ sourceGroupId: string;
365
+ sourceGroupName: string;
366
+ sourceGroupPriority: number;
367
+ availability: "unknown" | "ready" | "unavailable";
368
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
369
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
370
+ }[];
371
+ defaultModel: string | null;
372
+ }, {
373
+ authorizedModels: {
374
+ status: "active" | "blocked";
375
+ model: string;
376
+ routeId: string;
377
+ routeAlias: string | null;
378
+ sourceGroupId: string;
379
+ sourceGroupName: string;
380
+ sourceGroupPriority: number;
381
+ availability: "unknown" | "ready" | "unavailable";
382
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
383
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
384
+ }[];
385
+ defaultModel: string | null;
386
+ }>;
387
+ export declare const EnterpriseEffectiveConfigSchema: z.ZodObject<{
388
+ configVersion: z.ZodString;
389
+ status: z.ZodEnum<["ready", "partially_ready", "blocked"]>;
390
+ blockedReason: z.ZodOptional<z.ZodEnum<["user-disabled", "no-authorized-model"]>>;
391
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
392
+ authorizedModels: z.ZodArray<z.ZodObject<{
393
+ model: z.ZodString;
394
+ routeId: z.ZodString;
395
+ routeAlias: z.ZodNullable<z.ZodString>;
396
+ sourceGroupId: z.ZodString;
397
+ sourceGroupName: z.ZodString;
398
+ sourceGroupPriority: z.ZodNumber;
399
+ status: z.ZodEnum<["active", "blocked"]>;
400
+ availability: z.ZodEnum<["ready", "unknown", "unavailable"]>;
401
+ availabilityReason: z.ZodOptional<z.ZodEnum<["route-not-active", "connection-not-active"]>>;
402
+ blockedReason: z.ZodOptional<z.ZodEnum<["route-not-found", "route-not-active", "connection-not-active", "binding-route-mismatch"]>>;
403
+ }, "strict", z.ZodTypeAny, {
404
+ status: "active" | "blocked";
405
+ model: string;
406
+ routeId: string;
407
+ routeAlias: string | null;
408
+ sourceGroupId: string;
409
+ sourceGroupName: string;
410
+ sourceGroupPriority: number;
411
+ availability: "unknown" | "ready" | "unavailable";
412
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
413
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
414
+ }, {
415
+ status: "active" | "blocked";
416
+ model: string;
417
+ routeId: string;
418
+ routeAlias: string | null;
419
+ sourceGroupId: string;
420
+ sourceGroupName: string;
421
+ sourceGroupPriority: number;
422
+ availability: "unknown" | "ready" | "unavailable";
423
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
424
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
425
+ }>, "many">;
426
+ defaultModel: z.ZodNullable<z.ZodString>;
427
+ }, "strict", z.ZodTypeAny, {
428
+ authorizedModels: {
429
+ status: "active" | "blocked";
430
+ model: string;
431
+ routeId: string;
432
+ routeAlias: string | null;
433
+ sourceGroupId: string;
434
+ sourceGroupName: string;
435
+ sourceGroupPriority: number;
436
+ availability: "unknown" | "ready" | "unavailable";
437
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
438
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
439
+ }[];
440
+ defaultModel: string | null;
441
+ }, {
442
+ authorizedModels: {
443
+ status: "active" | "blocked";
444
+ model: string;
445
+ routeId: string;
446
+ routeAlias: string | null;
447
+ sourceGroupId: string;
448
+ sourceGroupName: string;
449
+ sourceGroupPriority: number;
450
+ availability: "unknown" | "ready" | "unavailable";
451
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
452
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
453
+ }[];
454
+ defaultModel: string | null;
455
+ }>>;
456
+ }, "strict", z.ZodTypeAny, {
457
+ status: "ready" | "blocked" | "partially_ready";
458
+ agents: Record<string, {
459
+ authorizedModels: {
460
+ status: "active" | "blocked";
461
+ model: string;
462
+ routeId: string;
463
+ routeAlias: string | null;
464
+ sourceGroupId: string;
465
+ sourceGroupName: string;
466
+ sourceGroupPriority: number;
467
+ availability: "unknown" | "ready" | "unavailable";
468
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
469
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
470
+ }[];
471
+ defaultModel: string | null;
472
+ }>;
473
+ configVersion: string;
474
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
475
+ }, {
476
+ status: "ready" | "blocked" | "partially_ready";
477
+ agents: Record<string, {
478
+ authorizedModels: {
479
+ status: "active" | "blocked";
480
+ model: string;
481
+ routeId: string;
482
+ routeAlias: string | null;
483
+ sourceGroupId: string;
484
+ sourceGroupName: string;
485
+ sourceGroupPriority: number;
486
+ availability: "unknown" | "ready" | "unavailable";
487
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
488
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
489
+ }[];
490
+ defaultModel: string | null;
491
+ }>;
492
+ configVersion: string;
493
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
494
+ }>;
495
+ export declare const EnterpriseEffectiveUserConfigSchema: z.ZodObject<{
496
+ user: z.ZodObject<{
497
+ id: z.ZodString;
498
+ username: z.ZodString;
499
+ displayName: z.ZodString;
500
+ enabled: z.ZodBoolean;
501
+ }, "strict", z.ZodTypeAny, {
502
+ id: string;
503
+ enabled: boolean;
504
+ displayName: string;
505
+ username: string;
506
+ }, {
507
+ id: string;
508
+ enabled: boolean;
509
+ displayName: string;
510
+ username: string;
511
+ }>;
512
+ config: z.ZodObject<{
513
+ configVersion: z.ZodString;
514
+ status: z.ZodEnum<["ready", "partially_ready", "blocked"]>;
515
+ blockedReason: z.ZodOptional<z.ZodEnum<["user-disabled", "no-authorized-model"]>>;
516
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
517
+ authorizedModels: z.ZodArray<z.ZodObject<{
518
+ model: z.ZodString;
519
+ routeId: z.ZodString;
520
+ routeAlias: z.ZodNullable<z.ZodString>;
521
+ sourceGroupId: z.ZodString;
522
+ sourceGroupName: z.ZodString;
523
+ sourceGroupPriority: z.ZodNumber;
524
+ status: z.ZodEnum<["active", "blocked"]>;
525
+ availability: z.ZodEnum<["ready", "unknown", "unavailable"]>;
526
+ availabilityReason: z.ZodOptional<z.ZodEnum<["route-not-active", "connection-not-active"]>>;
527
+ blockedReason: z.ZodOptional<z.ZodEnum<["route-not-found", "route-not-active", "connection-not-active", "binding-route-mismatch"]>>;
528
+ }, "strict", z.ZodTypeAny, {
529
+ status: "active" | "blocked";
530
+ model: string;
531
+ routeId: string;
532
+ routeAlias: string | null;
533
+ sourceGroupId: string;
534
+ sourceGroupName: string;
535
+ sourceGroupPriority: number;
536
+ availability: "unknown" | "ready" | "unavailable";
537
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
538
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
539
+ }, {
540
+ status: "active" | "blocked";
541
+ model: string;
542
+ routeId: string;
543
+ routeAlias: string | null;
544
+ sourceGroupId: string;
545
+ sourceGroupName: string;
546
+ sourceGroupPriority: number;
547
+ availability: "unknown" | "ready" | "unavailable";
548
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
549
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
550
+ }>, "many">;
551
+ defaultModel: z.ZodNullable<z.ZodString>;
552
+ }, "strict", z.ZodTypeAny, {
553
+ authorizedModels: {
554
+ status: "active" | "blocked";
555
+ model: string;
556
+ routeId: string;
557
+ routeAlias: string | null;
558
+ sourceGroupId: string;
559
+ sourceGroupName: string;
560
+ sourceGroupPriority: number;
561
+ availability: "unknown" | "ready" | "unavailable";
562
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
563
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
564
+ }[];
565
+ defaultModel: string | null;
566
+ }, {
567
+ authorizedModels: {
568
+ status: "active" | "blocked";
569
+ model: string;
570
+ routeId: string;
571
+ routeAlias: string | null;
572
+ sourceGroupId: string;
573
+ sourceGroupName: string;
574
+ sourceGroupPriority: number;
575
+ availability: "unknown" | "ready" | "unavailable";
576
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
577
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
578
+ }[];
579
+ defaultModel: string | null;
580
+ }>>;
581
+ }, "strict", z.ZodTypeAny, {
582
+ status: "ready" | "blocked" | "partially_ready";
583
+ agents: Record<string, {
584
+ authorizedModels: {
585
+ status: "active" | "blocked";
586
+ model: string;
587
+ routeId: string;
588
+ routeAlias: string | null;
589
+ sourceGroupId: string;
590
+ sourceGroupName: string;
591
+ sourceGroupPriority: number;
592
+ availability: "unknown" | "ready" | "unavailable";
593
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
594
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
595
+ }[];
596
+ defaultModel: string | null;
597
+ }>;
598
+ configVersion: string;
599
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
600
+ }, {
601
+ status: "ready" | "blocked" | "partially_ready";
602
+ agents: Record<string, {
603
+ authorizedModels: {
604
+ status: "active" | "blocked";
605
+ model: string;
606
+ routeId: string;
607
+ routeAlias: string | null;
608
+ sourceGroupId: string;
609
+ sourceGroupName: string;
610
+ sourceGroupPriority: number;
611
+ availability: "unknown" | "ready" | "unavailable";
612
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
613
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
614
+ }[];
615
+ defaultModel: string | null;
616
+ }>;
617
+ configVersion: string;
618
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
619
+ }>;
620
+ }, "strict", z.ZodTypeAny, {
621
+ user: {
622
+ id: string;
623
+ enabled: boolean;
624
+ displayName: string;
625
+ username: string;
626
+ };
627
+ config: {
628
+ status: "ready" | "blocked" | "partially_ready";
629
+ agents: Record<string, {
630
+ authorizedModels: {
631
+ status: "active" | "blocked";
632
+ model: string;
633
+ routeId: string;
634
+ routeAlias: string | null;
635
+ sourceGroupId: string;
636
+ sourceGroupName: string;
637
+ sourceGroupPriority: number;
638
+ availability: "unknown" | "ready" | "unavailable";
639
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
640
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
641
+ }[];
642
+ defaultModel: string | null;
643
+ }>;
644
+ configVersion: string;
645
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
646
+ };
647
+ }, {
648
+ user: {
649
+ id: string;
650
+ enabled: boolean;
651
+ displayName: string;
652
+ username: string;
653
+ };
654
+ config: {
655
+ status: "ready" | "blocked" | "partially_ready";
656
+ agents: Record<string, {
657
+ authorizedModels: {
658
+ status: "active" | "blocked";
659
+ model: string;
660
+ routeId: string;
661
+ routeAlias: string | null;
662
+ sourceGroupId: string;
663
+ sourceGroupName: string;
664
+ sourceGroupPriority: number;
665
+ availability: "unknown" | "ready" | "unavailable";
666
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
667
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
668
+ }[];
669
+ defaultModel: string | null;
670
+ }>;
671
+ configVersion: string;
672
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
673
+ };
674
+ }>;
675
+ export declare const EnterpriseEffectiveConfigsSchema: z.ZodObject<{
676
+ users: z.ZodArray<z.ZodObject<{
677
+ user: z.ZodObject<{
678
+ id: z.ZodString;
679
+ username: z.ZodString;
680
+ displayName: z.ZodString;
681
+ enabled: z.ZodBoolean;
682
+ }, "strict", z.ZodTypeAny, {
683
+ id: string;
684
+ enabled: boolean;
685
+ displayName: string;
686
+ username: string;
687
+ }, {
688
+ id: string;
689
+ enabled: boolean;
690
+ displayName: string;
691
+ username: string;
692
+ }>;
693
+ config: z.ZodObject<{
694
+ configVersion: z.ZodString;
695
+ status: z.ZodEnum<["ready", "partially_ready", "blocked"]>;
696
+ blockedReason: z.ZodOptional<z.ZodEnum<["user-disabled", "no-authorized-model"]>>;
697
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
698
+ authorizedModels: z.ZodArray<z.ZodObject<{
699
+ model: z.ZodString;
700
+ routeId: z.ZodString;
701
+ routeAlias: z.ZodNullable<z.ZodString>;
702
+ sourceGroupId: z.ZodString;
703
+ sourceGroupName: z.ZodString;
704
+ sourceGroupPriority: z.ZodNumber;
705
+ status: z.ZodEnum<["active", "blocked"]>;
706
+ availability: z.ZodEnum<["ready", "unknown", "unavailable"]>;
707
+ availabilityReason: z.ZodOptional<z.ZodEnum<["route-not-active", "connection-not-active"]>>;
708
+ blockedReason: z.ZodOptional<z.ZodEnum<["route-not-found", "route-not-active", "connection-not-active", "binding-route-mismatch"]>>;
709
+ }, "strict", z.ZodTypeAny, {
710
+ status: "active" | "blocked";
711
+ model: string;
712
+ routeId: string;
713
+ routeAlias: string | null;
714
+ sourceGroupId: string;
715
+ sourceGroupName: string;
716
+ sourceGroupPriority: number;
717
+ availability: "unknown" | "ready" | "unavailable";
718
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
719
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
720
+ }, {
721
+ status: "active" | "blocked";
722
+ model: string;
723
+ routeId: string;
724
+ routeAlias: string | null;
725
+ sourceGroupId: string;
726
+ sourceGroupName: string;
727
+ sourceGroupPriority: number;
728
+ availability: "unknown" | "ready" | "unavailable";
729
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
730
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
731
+ }>, "many">;
732
+ defaultModel: z.ZodNullable<z.ZodString>;
733
+ }, "strict", z.ZodTypeAny, {
734
+ authorizedModels: {
735
+ status: "active" | "blocked";
736
+ model: string;
737
+ routeId: string;
738
+ routeAlias: string | null;
739
+ sourceGroupId: string;
740
+ sourceGroupName: string;
741
+ sourceGroupPriority: number;
742
+ availability: "unknown" | "ready" | "unavailable";
743
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
744
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
745
+ }[];
746
+ defaultModel: string | null;
747
+ }, {
748
+ authorizedModels: {
749
+ status: "active" | "blocked";
750
+ model: string;
751
+ routeId: string;
752
+ routeAlias: string | null;
753
+ sourceGroupId: string;
754
+ sourceGroupName: string;
755
+ sourceGroupPriority: number;
756
+ availability: "unknown" | "ready" | "unavailable";
757
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
758
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
759
+ }[];
760
+ defaultModel: string | null;
761
+ }>>;
762
+ }, "strict", z.ZodTypeAny, {
763
+ status: "ready" | "blocked" | "partially_ready";
764
+ agents: Record<string, {
765
+ authorizedModels: {
766
+ status: "active" | "blocked";
767
+ model: string;
768
+ routeId: string;
769
+ routeAlias: string | null;
770
+ sourceGroupId: string;
771
+ sourceGroupName: string;
772
+ sourceGroupPriority: number;
773
+ availability: "unknown" | "ready" | "unavailable";
774
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
775
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
776
+ }[];
777
+ defaultModel: string | null;
778
+ }>;
779
+ configVersion: string;
780
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
781
+ }, {
782
+ status: "ready" | "blocked" | "partially_ready";
783
+ agents: Record<string, {
784
+ authorizedModels: {
785
+ status: "active" | "blocked";
786
+ model: string;
787
+ routeId: string;
788
+ routeAlias: string | null;
789
+ sourceGroupId: string;
790
+ sourceGroupName: string;
791
+ sourceGroupPriority: number;
792
+ availability: "unknown" | "ready" | "unavailable";
793
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
794
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
795
+ }[];
796
+ defaultModel: string | null;
797
+ }>;
798
+ configVersion: string;
799
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
800
+ }>;
801
+ }, "strict", z.ZodTypeAny, {
802
+ user: {
803
+ id: string;
804
+ enabled: boolean;
805
+ displayName: string;
806
+ username: string;
807
+ };
808
+ config: {
809
+ status: "ready" | "blocked" | "partially_ready";
810
+ agents: Record<string, {
811
+ authorizedModels: {
812
+ status: "active" | "blocked";
813
+ model: string;
814
+ routeId: string;
815
+ routeAlias: string | null;
816
+ sourceGroupId: string;
817
+ sourceGroupName: string;
818
+ sourceGroupPriority: number;
819
+ availability: "unknown" | "ready" | "unavailable";
820
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
821
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
822
+ }[];
823
+ defaultModel: string | null;
824
+ }>;
825
+ configVersion: string;
826
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
827
+ };
828
+ }, {
829
+ user: {
830
+ id: string;
831
+ enabled: boolean;
832
+ displayName: string;
833
+ username: string;
834
+ };
835
+ config: {
836
+ status: "ready" | "blocked" | "partially_ready";
837
+ agents: Record<string, {
838
+ authorizedModels: {
839
+ status: "active" | "blocked";
840
+ model: string;
841
+ routeId: string;
842
+ routeAlias: string | null;
843
+ sourceGroupId: string;
844
+ sourceGroupName: string;
845
+ sourceGroupPriority: number;
846
+ availability: "unknown" | "ready" | "unavailable";
847
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
848
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
849
+ }[];
850
+ defaultModel: string | null;
851
+ }>;
852
+ configVersion: string;
853
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
854
+ };
855
+ }>, "many">;
856
+ }, "strict", z.ZodTypeAny, {
857
+ users: {
858
+ user: {
859
+ id: string;
860
+ enabled: boolean;
861
+ displayName: string;
862
+ username: string;
863
+ };
864
+ config: {
865
+ status: "ready" | "blocked" | "partially_ready";
866
+ agents: Record<string, {
867
+ authorizedModels: {
868
+ status: "active" | "blocked";
869
+ model: string;
870
+ routeId: string;
871
+ routeAlias: string | null;
872
+ sourceGroupId: string;
873
+ sourceGroupName: string;
874
+ sourceGroupPriority: number;
875
+ availability: "unknown" | "ready" | "unavailable";
876
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
877
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
878
+ }[];
879
+ defaultModel: string | null;
880
+ }>;
881
+ configVersion: string;
882
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
883
+ };
884
+ }[];
885
+ }, {
886
+ users: {
887
+ user: {
888
+ id: string;
889
+ enabled: boolean;
890
+ displayName: string;
891
+ username: string;
892
+ };
893
+ config: {
894
+ status: "ready" | "blocked" | "partially_ready";
895
+ agents: Record<string, {
896
+ authorizedModels: {
897
+ status: "active" | "blocked";
898
+ model: string;
899
+ routeId: string;
900
+ routeAlias: string | null;
901
+ sourceGroupId: string;
902
+ sourceGroupName: string;
903
+ sourceGroupPriority: number;
904
+ availability: "unknown" | "ready" | "unavailable";
905
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
906
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
907
+ }[];
908
+ defaultModel: string | null;
909
+ }>;
910
+ configVersion: string;
911
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
912
+ };
913
+ }[];
914
+ }>;
915
+ export type EnterprisePolicyBindingInput = z.infer<typeof EnterprisePolicyBindingInputSchema>;
916
+ export type EnterprisePolicyGroupCreate = z.infer<typeof EnterprisePolicyGroupCreateSchema>;
917
+ export type EnterprisePolicyGroupUpdate = z.infer<typeof EnterprisePolicyGroupUpdateSchema>;
918
+ export type EnterprisePolicyGroupView = z.infer<typeof EnterprisePolicyGroupViewSchema>;
919
+ export declare const EnterprisePolicyGroupViewResponseSchema: z.ZodObject<{
920
+ ok: z.ZodLiteral<true>;
921
+ data: z.ZodArray<z.ZodObject<{
922
+ id: z.ZodString;
923
+ name: z.ZodString;
924
+ priority: z.ZodNumber;
925
+ status: z.ZodEnum<["active", "disabled"]>;
926
+ version: z.ZodNumber;
927
+ bindings: z.ZodArray<z.ZodObject<{
928
+ id: z.ZodString;
929
+ agent: z.ZodString;
930
+ model: z.ZodString;
931
+ connectionId: z.ZodString;
932
+ isDefault: z.ZodBoolean;
933
+ enabled: z.ZodBoolean;
934
+ routeId: z.ZodString;
935
+ requestProtocol: z.ZodString;
936
+ upstreamProtocol: z.ZodString;
937
+ provider: z.ZodString;
938
+ routeAlias: z.ZodNullable<z.ZodString>;
939
+ routeStatus: z.ZodString;
940
+ connectionStatus: z.ZodString;
941
+ }, "strict", z.ZodTypeAny, {
942
+ model: string;
943
+ agent: string;
944
+ id: string;
945
+ enabled: boolean;
946
+ provider: string;
947
+ isDefault: boolean;
948
+ connectionId: string;
949
+ routeId: string;
950
+ requestProtocol: string;
951
+ upstreamProtocol: string;
952
+ routeAlias: string | null;
953
+ routeStatus: string;
954
+ connectionStatus: string;
955
+ }, {
956
+ model: string;
957
+ agent: string;
958
+ id: string;
959
+ enabled: boolean;
960
+ provider: string;
961
+ isDefault: boolean;
962
+ connectionId: string;
963
+ routeId: string;
964
+ requestProtocol: string;
965
+ upstreamProtocol: string;
966
+ routeAlias: string | null;
967
+ routeStatus: string;
968
+ connectionStatus: string;
969
+ }>, "many">;
970
+ members: z.ZodArray<z.ZodObject<{
971
+ id: z.ZodString;
972
+ username: z.ZodString;
973
+ displayName: z.ZodString;
974
+ }, "strict", z.ZodTypeAny, {
975
+ id: string;
976
+ displayName: string;
977
+ username: string;
978
+ }, {
979
+ id: string;
980
+ displayName: string;
981
+ username: string;
982
+ }>, "many">;
983
+ createdAt: z.ZodString;
984
+ updatedAt: z.ZodString;
985
+ }, "strict", z.ZodTypeAny, {
986
+ status: "active" | "disabled";
987
+ name: string;
988
+ id: string;
989
+ createdAt: string;
990
+ updatedAt: string;
991
+ version: number;
992
+ priority: number;
993
+ bindings: {
994
+ model: string;
995
+ agent: string;
996
+ id: string;
997
+ enabled: boolean;
998
+ provider: string;
999
+ isDefault: boolean;
1000
+ connectionId: string;
1001
+ routeId: string;
1002
+ requestProtocol: string;
1003
+ upstreamProtocol: string;
1004
+ routeAlias: string | null;
1005
+ routeStatus: string;
1006
+ connectionStatus: string;
1007
+ }[];
1008
+ members: {
1009
+ id: string;
1010
+ displayName: string;
1011
+ username: string;
1012
+ }[];
1013
+ }, {
1014
+ status: "active" | "disabled";
1015
+ name: string;
1016
+ id: string;
1017
+ createdAt: string;
1018
+ updatedAt: string;
1019
+ version: number;
1020
+ priority: number;
1021
+ bindings: {
1022
+ model: string;
1023
+ agent: string;
1024
+ id: string;
1025
+ enabled: boolean;
1026
+ provider: string;
1027
+ isDefault: boolean;
1028
+ connectionId: string;
1029
+ routeId: string;
1030
+ requestProtocol: string;
1031
+ upstreamProtocol: string;
1032
+ routeAlias: string | null;
1033
+ routeStatus: string;
1034
+ connectionStatus: string;
1035
+ }[];
1036
+ members: {
1037
+ id: string;
1038
+ displayName: string;
1039
+ username: string;
1040
+ }[];
1041
+ }>, "many">;
1042
+ }, "strict", z.ZodTypeAny, {
1043
+ data: {
1044
+ status: "active" | "disabled";
1045
+ name: string;
1046
+ id: string;
1047
+ createdAt: string;
1048
+ updatedAt: string;
1049
+ version: number;
1050
+ priority: number;
1051
+ bindings: {
1052
+ model: string;
1053
+ agent: string;
1054
+ id: string;
1055
+ enabled: boolean;
1056
+ provider: string;
1057
+ isDefault: boolean;
1058
+ connectionId: string;
1059
+ routeId: string;
1060
+ requestProtocol: string;
1061
+ upstreamProtocol: string;
1062
+ routeAlias: string | null;
1063
+ routeStatus: string;
1064
+ connectionStatus: string;
1065
+ }[];
1066
+ members: {
1067
+ id: string;
1068
+ displayName: string;
1069
+ username: string;
1070
+ }[];
1071
+ }[];
1072
+ ok: true;
1073
+ }, {
1074
+ data: {
1075
+ status: "active" | "disabled";
1076
+ name: string;
1077
+ id: string;
1078
+ createdAt: string;
1079
+ updatedAt: string;
1080
+ version: number;
1081
+ priority: number;
1082
+ bindings: {
1083
+ model: string;
1084
+ agent: string;
1085
+ id: string;
1086
+ enabled: boolean;
1087
+ provider: string;
1088
+ isDefault: boolean;
1089
+ connectionId: string;
1090
+ routeId: string;
1091
+ requestProtocol: string;
1092
+ upstreamProtocol: string;
1093
+ routeAlias: string | null;
1094
+ routeStatus: string;
1095
+ connectionStatus: string;
1096
+ }[];
1097
+ members: {
1098
+ id: string;
1099
+ displayName: string;
1100
+ username: string;
1101
+ }[];
1102
+ }[];
1103
+ ok: true;
1104
+ }>;
1105
+ export declare const EnterprisePolicyGroupResponseSchema: z.ZodObject<{
1106
+ ok: z.ZodLiteral<true>;
1107
+ data: z.ZodObject<{
1108
+ id: z.ZodString;
1109
+ name: z.ZodString;
1110
+ priority: z.ZodNumber;
1111
+ status: z.ZodEnum<["active", "disabled"]>;
1112
+ version: z.ZodNumber;
1113
+ bindings: z.ZodArray<z.ZodObject<{
1114
+ id: z.ZodString;
1115
+ agent: z.ZodString;
1116
+ model: z.ZodString;
1117
+ connectionId: z.ZodString;
1118
+ isDefault: z.ZodBoolean;
1119
+ enabled: z.ZodBoolean;
1120
+ routeId: z.ZodString;
1121
+ requestProtocol: z.ZodString;
1122
+ upstreamProtocol: z.ZodString;
1123
+ provider: z.ZodString;
1124
+ routeAlias: z.ZodNullable<z.ZodString>;
1125
+ routeStatus: z.ZodString;
1126
+ connectionStatus: z.ZodString;
1127
+ }, "strict", z.ZodTypeAny, {
1128
+ model: string;
1129
+ agent: string;
1130
+ id: string;
1131
+ enabled: boolean;
1132
+ provider: string;
1133
+ isDefault: boolean;
1134
+ connectionId: string;
1135
+ routeId: string;
1136
+ requestProtocol: string;
1137
+ upstreamProtocol: string;
1138
+ routeAlias: string | null;
1139
+ routeStatus: string;
1140
+ connectionStatus: string;
1141
+ }, {
1142
+ model: string;
1143
+ agent: string;
1144
+ id: string;
1145
+ enabled: boolean;
1146
+ provider: string;
1147
+ isDefault: boolean;
1148
+ connectionId: string;
1149
+ routeId: string;
1150
+ requestProtocol: string;
1151
+ upstreamProtocol: string;
1152
+ routeAlias: string | null;
1153
+ routeStatus: string;
1154
+ connectionStatus: string;
1155
+ }>, "many">;
1156
+ members: z.ZodArray<z.ZodObject<{
1157
+ id: z.ZodString;
1158
+ username: z.ZodString;
1159
+ displayName: z.ZodString;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ id: string;
1162
+ displayName: string;
1163
+ username: string;
1164
+ }, {
1165
+ id: string;
1166
+ displayName: string;
1167
+ username: string;
1168
+ }>, "many">;
1169
+ createdAt: z.ZodString;
1170
+ updatedAt: z.ZodString;
1171
+ }, "strict", z.ZodTypeAny, {
1172
+ status: "active" | "disabled";
1173
+ name: string;
1174
+ id: string;
1175
+ createdAt: string;
1176
+ updatedAt: string;
1177
+ version: number;
1178
+ priority: number;
1179
+ bindings: {
1180
+ model: string;
1181
+ agent: string;
1182
+ id: string;
1183
+ enabled: boolean;
1184
+ provider: string;
1185
+ isDefault: boolean;
1186
+ connectionId: string;
1187
+ routeId: string;
1188
+ requestProtocol: string;
1189
+ upstreamProtocol: string;
1190
+ routeAlias: string | null;
1191
+ routeStatus: string;
1192
+ connectionStatus: string;
1193
+ }[];
1194
+ members: {
1195
+ id: string;
1196
+ displayName: string;
1197
+ username: string;
1198
+ }[];
1199
+ }, {
1200
+ status: "active" | "disabled";
1201
+ name: string;
1202
+ id: string;
1203
+ createdAt: string;
1204
+ updatedAt: string;
1205
+ version: number;
1206
+ priority: number;
1207
+ bindings: {
1208
+ model: string;
1209
+ agent: string;
1210
+ id: string;
1211
+ enabled: boolean;
1212
+ provider: string;
1213
+ isDefault: boolean;
1214
+ connectionId: string;
1215
+ routeId: string;
1216
+ requestProtocol: string;
1217
+ upstreamProtocol: string;
1218
+ routeAlias: string | null;
1219
+ routeStatus: string;
1220
+ connectionStatus: string;
1221
+ }[];
1222
+ members: {
1223
+ id: string;
1224
+ displayName: string;
1225
+ username: string;
1226
+ }[];
1227
+ }>;
1228
+ }, "strict", z.ZodTypeAny, {
1229
+ data: {
1230
+ status: "active" | "disabled";
1231
+ name: string;
1232
+ id: string;
1233
+ createdAt: string;
1234
+ updatedAt: string;
1235
+ version: number;
1236
+ priority: number;
1237
+ bindings: {
1238
+ model: string;
1239
+ agent: string;
1240
+ id: string;
1241
+ enabled: boolean;
1242
+ provider: string;
1243
+ isDefault: boolean;
1244
+ connectionId: string;
1245
+ routeId: string;
1246
+ requestProtocol: string;
1247
+ upstreamProtocol: string;
1248
+ routeAlias: string | null;
1249
+ routeStatus: string;
1250
+ connectionStatus: string;
1251
+ }[];
1252
+ members: {
1253
+ id: string;
1254
+ displayName: string;
1255
+ username: string;
1256
+ }[];
1257
+ };
1258
+ ok: true;
1259
+ }, {
1260
+ data: {
1261
+ status: "active" | "disabled";
1262
+ name: string;
1263
+ id: string;
1264
+ createdAt: string;
1265
+ updatedAt: string;
1266
+ version: number;
1267
+ priority: number;
1268
+ bindings: {
1269
+ model: string;
1270
+ agent: string;
1271
+ id: string;
1272
+ enabled: boolean;
1273
+ provider: string;
1274
+ isDefault: boolean;
1275
+ connectionId: string;
1276
+ routeId: string;
1277
+ requestProtocol: string;
1278
+ upstreamProtocol: string;
1279
+ routeAlias: string | null;
1280
+ routeStatus: string;
1281
+ connectionStatus: string;
1282
+ }[];
1283
+ members: {
1284
+ id: string;
1285
+ displayName: string;
1286
+ username: string;
1287
+ }[];
1288
+ };
1289
+ ok: true;
1290
+ }>;
1291
+ export type EnterpriseEffectiveConfig = z.infer<typeof EnterpriseEffectiveConfigSchema>;
1292
+ export type EnterpriseEffectiveConfigs = z.infer<typeof EnterpriseEffectiveConfigsSchema>;
1293
+ export declare const EnterpriseEffectiveConfigsResponseSchema: z.ZodObject<{
1294
+ ok: z.ZodLiteral<true>;
1295
+ data: z.ZodObject<{
1296
+ users: z.ZodArray<z.ZodObject<{
1297
+ user: z.ZodObject<{
1298
+ id: z.ZodString;
1299
+ username: z.ZodString;
1300
+ displayName: z.ZodString;
1301
+ enabled: z.ZodBoolean;
1302
+ }, "strict", z.ZodTypeAny, {
1303
+ id: string;
1304
+ enabled: boolean;
1305
+ displayName: string;
1306
+ username: string;
1307
+ }, {
1308
+ id: string;
1309
+ enabled: boolean;
1310
+ displayName: string;
1311
+ username: string;
1312
+ }>;
1313
+ config: z.ZodObject<{
1314
+ configVersion: z.ZodString;
1315
+ status: z.ZodEnum<["ready", "partially_ready", "blocked"]>;
1316
+ blockedReason: z.ZodOptional<z.ZodEnum<["user-disabled", "no-authorized-model"]>>;
1317
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
1318
+ authorizedModels: z.ZodArray<z.ZodObject<{
1319
+ model: z.ZodString;
1320
+ routeId: z.ZodString;
1321
+ routeAlias: z.ZodNullable<z.ZodString>;
1322
+ sourceGroupId: z.ZodString;
1323
+ sourceGroupName: z.ZodString;
1324
+ sourceGroupPriority: z.ZodNumber;
1325
+ status: z.ZodEnum<["active", "blocked"]>;
1326
+ availability: z.ZodEnum<["ready", "unknown", "unavailable"]>;
1327
+ availabilityReason: z.ZodOptional<z.ZodEnum<["route-not-active", "connection-not-active"]>>;
1328
+ blockedReason: z.ZodOptional<z.ZodEnum<["route-not-found", "route-not-active", "connection-not-active", "binding-route-mismatch"]>>;
1329
+ }, "strict", z.ZodTypeAny, {
1330
+ status: "active" | "blocked";
1331
+ model: string;
1332
+ routeId: string;
1333
+ routeAlias: string | null;
1334
+ sourceGroupId: string;
1335
+ sourceGroupName: string;
1336
+ sourceGroupPriority: number;
1337
+ availability: "unknown" | "ready" | "unavailable";
1338
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1339
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1340
+ }, {
1341
+ status: "active" | "blocked";
1342
+ model: string;
1343
+ routeId: string;
1344
+ routeAlias: string | null;
1345
+ sourceGroupId: string;
1346
+ sourceGroupName: string;
1347
+ sourceGroupPriority: number;
1348
+ availability: "unknown" | "ready" | "unavailable";
1349
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1350
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1351
+ }>, "many">;
1352
+ defaultModel: z.ZodNullable<z.ZodString>;
1353
+ }, "strict", z.ZodTypeAny, {
1354
+ authorizedModels: {
1355
+ status: "active" | "blocked";
1356
+ model: string;
1357
+ routeId: string;
1358
+ routeAlias: string | null;
1359
+ sourceGroupId: string;
1360
+ sourceGroupName: string;
1361
+ sourceGroupPriority: number;
1362
+ availability: "unknown" | "ready" | "unavailable";
1363
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1364
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1365
+ }[];
1366
+ defaultModel: string | null;
1367
+ }, {
1368
+ authorizedModels: {
1369
+ status: "active" | "blocked";
1370
+ model: string;
1371
+ routeId: string;
1372
+ routeAlias: string | null;
1373
+ sourceGroupId: string;
1374
+ sourceGroupName: string;
1375
+ sourceGroupPriority: number;
1376
+ availability: "unknown" | "ready" | "unavailable";
1377
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1378
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1379
+ }[];
1380
+ defaultModel: string | null;
1381
+ }>>;
1382
+ }, "strict", z.ZodTypeAny, {
1383
+ status: "ready" | "blocked" | "partially_ready";
1384
+ agents: Record<string, {
1385
+ authorizedModels: {
1386
+ status: "active" | "blocked";
1387
+ model: string;
1388
+ routeId: string;
1389
+ routeAlias: string | null;
1390
+ sourceGroupId: string;
1391
+ sourceGroupName: string;
1392
+ sourceGroupPriority: number;
1393
+ availability: "unknown" | "ready" | "unavailable";
1394
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1395
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1396
+ }[];
1397
+ defaultModel: string | null;
1398
+ }>;
1399
+ configVersion: string;
1400
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1401
+ }, {
1402
+ status: "ready" | "blocked" | "partially_ready";
1403
+ agents: Record<string, {
1404
+ authorizedModels: {
1405
+ status: "active" | "blocked";
1406
+ model: string;
1407
+ routeId: string;
1408
+ routeAlias: string | null;
1409
+ sourceGroupId: string;
1410
+ sourceGroupName: string;
1411
+ sourceGroupPriority: number;
1412
+ availability: "unknown" | "ready" | "unavailable";
1413
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1414
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1415
+ }[];
1416
+ defaultModel: string | null;
1417
+ }>;
1418
+ configVersion: string;
1419
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1420
+ }>;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ user: {
1423
+ id: string;
1424
+ enabled: boolean;
1425
+ displayName: string;
1426
+ username: string;
1427
+ };
1428
+ config: {
1429
+ status: "ready" | "blocked" | "partially_ready";
1430
+ agents: Record<string, {
1431
+ authorizedModels: {
1432
+ status: "active" | "blocked";
1433
+ model: string;
1434
+ routeId: string;
1435
+ routeAlias: string | null;
1436
+ sourceGroupId: string;
1437
+ sourceGroupName: string;
1438
+ sourceGroupPriority: number;
1439
+ availability: "unknown" | "ready" | "unavailable";
1440
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1441
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1442
+ }[];
1443
+ defaultModel: string | null;
1444
+ }>;
1445
+ configVersion: string;
1446
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1447
+ };
1448
+ }, {
1449
+ user: {
1450
+ id: string;
1451
+ enabled: boolean;
1452
+ displayName: string;
1453
+ username: string;
1454
+ };
1455
+ config: {
1456
+ status: "ready" | "blocked" | "partially_ready";
1457
+ agents: Record<string, {
1458
+ authorizedModels: {
1459
+ status: "active" | "blocked";
1460
+ model: string;
1461
+ routeId: string;
1462
+ routeAlias: string | null;
1463
+ sourceGroupId: string;
1464
+ sourceGroupName: string;
1465
+ sourceGroupPriority: number;
1466
+ availability: "unknown" | "ready" | "unavailable";
1467
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1468
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1469
+ }[];
1470
+ defaultModel: string | null;
1471
+ }>;
1472
+ configVersion: string;
1473
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1474
+ };
1475
+ }>, "many">;
1476
+ }, "strict", z.ZodTypeAny, {
1477
+ users: {
1478
+ user: {
1479
+ id: string;
1480
+ enabled: boolean;
1481
+ displayName: string;
1482
+ username: string;
1483
+ };
1484
+ config: {
1485
+ status: "ready" | "blocked" | "partially_ready";
1486
+ agents: Record<string, {
1487
+ authorizedModels: {
1488
+ status: "active" | "blocked";
1489
+ model: string;
1490
+ routeId: string;
1491
+ routeAlias: string | null;
1492
+ sourceGroupId: string;
1493
+ sourceGroupName: string;
1494
+ sourceGroupPriority: number;
1495
+ availability: "unknown" | "ready" | "unavailable";
1496
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1497
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1498
+ }[];
1499
+ defaultModel: string | null;
1500
+ }>;
1501
+ configVersion: string;
1502
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1503
+ };
1504
+ }[];
1505
+ }, {
1506
+ users: {
1507
+ user: {
1508
+ id: string;
1509
+ enabled: boolean;
1510
+ displayName: string;
1511
+ username: string;
1512
+ };
1513
+ config: {
1514
+ status: "ready" | "blocked" | "partially_ready";
1515
+ agents: Record<string, {
1516
+ authorizedModels: {
1517
+ status: "active" | "blocked";
1518
+ model: string;
1519
+ routeId: string;
1520
+ routeAlias: string | null;
1521
+ sourceGroupId: string;
1522
+ sourceGroupName: string;
1523
+ sourceGroupPriority: number;
1524
+ availability: "unknown" | "ready" | "unavailable";
1525
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1526
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1527
+ }[];
1528
+ defaultModel: string | null;
1529
+ }>;
1530
+ configVersion: string;
1531
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1532
+ };
1533
+ }[];
1534
+ }>;
1535
+ }, "strict", z.ZodTypeAny, {
1536
+ data: {
1537
+ users: {
1538
+ user: {
1539
+ id: string;
1540
+ enabled: boolean;
1541
+ displayName: string;
1542
+ username: string;
1543
+ };
1544
+ config: {
1545
+ status: "ready" | "blocked" | "partially_ready";
1546
+ agents: Record<string, {
1547
+ authorizedModels: {
1548
+ status: "active" | "blocked";
1549
+ model: string;
1550
+ routeId: string;
1551
+ routeAlias: string | null;
1552
+ sourceGroupId: string;
1553
+ sourceGroupName: string;
1554
+ sourceGroupPriority: number;
1555
+ availability: "unknown" | "ready" | "unavailable";
1556
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1557
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1558
+ }[];
1559
+ defaultModel: string | null;
1560
+ }>;
1561
+ configVersion: string;
1562
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1563
+ };
1564
+ }[];
1565
+ };
1566
+ ok: true;
1567
+ }, {
1568
+ data: {
1569
+ users: {
1570
+ user: {
1571
+ id: string;
1572
+ enabled: boolean;
1573
+ displayName: string;
1574
+ username: string;
1575
+ };
1576
+ config: {
1577
+ status: "ready" | "blocked" | "partially_ready";
1578
+ agents: Record<string, {
1579
+ authorizedModels: {
1580
+ status: "active" | "blocked";
1581
+ model: string;
1582
+ routeId: string;
1583
+ routeAlias: string | null;
1584
+ sourceGroupId: string;
1585
+ sourceGroupName: string;
1586
+ sourceGroupPriority: number;
1587
+ availability: "unknown" | "ready" | "unavailable";
1588
+ availabilityReason?: "route-not-active" | "connection-not-active" | undefined;
1589
+ blockedReason?: "route-not-active" | "connection-not-active" | "route-not-found" | "binding-route-mismatch" | undefined;
1590
+ }[];
1591
+ defaultModel: string | null;
1592
+ }>;
1593
+ configVersion: string;
1594
+ blockedReason?: "user-disabled" | "no-authorized-model" | undefined;
1595
+ };
1596
+ }[];
1597
+ };
1598
+ ok: true;
1599
+ }>;