@agentdock/wire 0.0.95 → 0.0.97

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