@agentdock/wire 0.0.94 → 0.0.96

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