@agentdock/wire 0.0.95 → 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.
- package/dist/enterpriseCurrency.d.ts +120 -0
- package/dist/enterpriseCurrency.js +1 -0
- package/dist/enterpriseDirectory.d.ts +636 -0
- package/dist/enterpriseDirectory.js +1 -0
- package/dist/enterpriseGatewayExports.d.ts +4 -0
- package/dist/enterpriseGatewayExports.js +1 -0
- package/dist/enterpriseOverview.d.ts +423 -0
- package/dist/enterpriseOverview.js +1 -0
- package/dist/enterprisePolicy.d.ts +283 -489
- package/dist/enterprisePolicy.js +1 -1
- package/dist/enterprisePolicyExports.d.ts +2 -2
- package/dist/enterprisePolicyExports.js +1 -1
- package/dist/enterpriseRange.d.ts +19 -0
- package/dist/enterpriseRange.js +1 -0
- package/dist/enterpriseRuntime.d.ts +135 -32
- package/dist/enterpriseRuntime.js +1 -1
- package/dist/gateway.d.ts +1390 -873
- package/dist/gateway.js +1 -1
- package/dist/gatewayBodyRetention.d.ts +149 -0
- package/dist/gatewayBodyRetention.js +2 -0
- package/dist/gatewayUsage.d.ts +3232 -0
- package/dist/gatewayUsage.js +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/sessionBtw.d.ts +2 -2
- package/package.json +1 -1
package/dist/enterprisePolicy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";const r=e.string().min(1).max(32),t=e.string().min(1).max(128);export const
|
|
1
|
+
"use strict";import{z as e}from"zod";const r=e.string().min(1).max(32),t=e.string().min(1).max(128);export const EnterpriseBuildAgentViewSchema=e.object({agent:r,source:e.literal("deployment_manifest"),enabled:e.boolean()}).strict(),EnterpriseBuildAgentListResponseSchema=e.object({ok:e.literal(!0),data:e.array(EnterpriseBuildAgentViewSchema).max(64)}).strict(),EnterprisePolicyBindingInputSchema=e.object({agent:r,model:t,isDefault:e.boolean().default(!1)}).strict(),EnterprisePolicyGroupCreateSchema=e.object({name:e.string().trim().min(1).max(64),priority:e.number().int().min(0).max(2147483647).optional(),status:e.enum(["active","disabled"]).default("disabled"),memberUserIds:e.array(e.string().min(1)).max(1e4).default([])}).strict(),EnterprisePolicyGroupUpdateSchema=EnterprisePolicyGroupCreateSchema.partial().strict(),EnterprisePolicyGroupReorderSchema=e.object({orderedGroupIds:e.array(e.string().min(1)).min(1).max(1e4)}).strict().refine(i=>new Set(i.orderedGroupIds).size===i.orderedGroupIds.length,{message:"orderedGroupIds must be unique"}),EnterprisePolicyGroupIdParamsSchema=e.object({id:e.string().min(1)}).strict(),EnterprisePolicyBindingViewSchema=e.object({id:e.string().min(1),agent:r,model:t,isDefault:e.boolean(),enabled:e.boolean()}).strict(),EnterprisePolicyGroupViewSchema=e.object({id:e.string().min(1),name:e.string().min(1),priority:e.number().int(),status:e.enum(["active","disabled"]),version:e.number().int().positive(),bindings:e.array(EnterprisePolicyBindingViewSchema),members:e.array(e.object({id:e.string().min(1),username:e.string().min(1),displayName:e.string().min(1)}).strict()),createdAt:e.string().datetime(),updatedAt:e.string().datetime()}).strict(),EnterpriseEffectiveModelSchema=e.object({model:t,sourceGroupId:e.string().min(1),sourceGroupName:e.string().min(1),sourceGroupPriority:e.number().int(),status:e.literal("active"),availability:e.enum(["ready","unknown","unavailable"]),availabilityReason:e.enum(["connection-not-active","no-key","models-unconfirmed","model-not-available","protocol-not-supported"]).optional()}).strict(),EnterpriseEffectiveAgentSchema=e.object({authorizedModels:e.array(EnterpriseEffectiveModelSchema),defaultModel:t.nullable()}).strict(),EnterpriseEffectiveConfigSchema=e.object({configVersion:e.string().min(1),status:e.enum(["ready","partially_ready","blocked"]),blockedReason:e.enum(["user-disabled","no-authorized-model"]).optional(),agents:e.record(EnterpriseEffectiveAgentSchema)}).strict(),EnterpriseEffectiveUserConfigSchema=e.object({user:e.object({id:e.string().min(1),username:e.string().min(1),displayName:e.string().min(1),enabled:e.boolean()}).strict(),config:EnterpriseEffectiveConfigSchema}).strict(),EnterpriseEffectiveConfigsSchema=e.object({users:e.array(EnterpriseEffectiveUserConfigSchema).max(1e4)}).strict(),EnterprisePolicyGroupViewResponseSchema=e.object({ok:e.literal(!0),data:e.array(EnterprisePolicyGroupViewSchema)}).strict(),EnterprisePolicyGroupResponseSchema=e.object({ok:e.literal(!0),data:EnterprisePolicyGroupViewSchema}).strict(),EnterpriseEffectiveConfigsResponseSchema=e.object({ok:e.literal(!0),data:EnterpriseEffectiveConfigsSchema}).strict(),EnterpriseEffectiveConfigResponseSchema=e.object({ok:e.literal(!0),data:EnterpriseEffectiveConfigSchema}).strict();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EnterprisePolicyBindingInputSchema, EnterprisePolicyGroupCreateSchema, EnterprisePolicyGroupUpdateSchema, EnterprisePolicyGroupReorderSchema, EnterprisePolicyGroupIdParamsSchema, EnterprisePolicyBindingViewSchema, EnterprisePolicyGroupViewSchema, EnterprisePolicyGroupViewResponseSchema, EnterprisePolicyGroupResponseSchema, EnterpriseEffectiveModelSchema, EnterpriseEffectiveAgentSchema, EnterpriseEffectiveConfigSchema, EnterpriseEffectiveUserConfigSchema, EnterpriseEffectiveConfigsSchema, EnterpriseEffectiveConfigsResponseSchema, } from './enterprisePolicy.js';
|
|
2
|
-
export type { EnterprisePolicyBindingInput, EnterprisePolicyGroupCreate, EnterprisePolicyGroupUpdate, EnterpriseEffectiveConfig, EnterpriseEffectiveConfigs, EnterprisePolicyGroupView, } from './enterprisePolicy.js';
|
|
1
|
+
export { EnterpriseBuildAgentViewSchema, EnterpriseBuildAgentListResponseSchema, EnterprisePolicyBindingInputSchema, EnterprisePolicyGroupCreateSchema, EnterprisePolicyGroupUpdateSchema, EnterprisePolicyGroupReorderSchema, EnterprisePolicyGroupIdParamsSchema, EnterprisePolicyBindingViewSchema, EnterprisePolicyGroupViewSchema, EnterprisePolicyGroupViewResponseSchema, EnterprisePolicyGroupResponseSchema, EnterpriseEffectiveModelSchema, EnterpriseEffectiveAgentSchema, EnterpriseEffectiveConfigSchema, EnterpriseEffectiveUserConfigSchema, EnterpriseEffectiveConfigsSchema, EnterpriseEffectiveConfigsResponseSchema, EnterpriseEffectiveConfigResponseSchema, } from './enterprisePolicy.js';
|
|
2
|
+
export type { EnterpriseBuildAgentView, EnterprisePolicyBindingInput, EnterprisePolicyGroupCreate, EnterprisePolicyGroupUpdate, EnterpriseEffectiveConfig, EnterpriseEffectiveConfigs, EnterprisePolicyGroupView, } from './enterprisePolicy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{EnterprisePolicyBindingInputSchema,EnterprisePolicyGroupCreateSchema,EnterprisePolicyGroupUpdateSchema,EnterprisePolicyGroupReorderSchema,EnterprisePolicyGroupIdParamsSchema,EnterprisePolicyBindingViewSchema,EnterprisePolicyGroupViewSchema,EnterprisePolicyGroupViewResponseSchema,EnterprisePolicyGroupResponseSchema,EnterpriseEffectiveModelSchema,EnterpriseEffectiveAgentSchema,EnterpriseEffectiveConfigSchema,EnterpriseEffectiveUserConfigSchema,EnterpriseEffectiveConfigsSchema,EnterpriseEffectiveConfigsResponseSchema}from"./enterprisePolicy.js";
|
|
1
|
+
"use strict";export{EnterpriseBuildAgentViewSchema,EnterpriseBuildAgentListResponseSchema,EnterprisePolicyBindingInputSchema,EnterprisePolicyGroupCreateSchema,EnterprisePolicyGroupUpdateSchema,EnterprisePolicyGroupReorderSchema,EnterprisePolicyGroupIdParamsSchema,EnterprisePolicyBindingViewSchema,EnterprisePolicyGroupViewSchema,EnterprisePolicyGroupViewResponseSchema,EnterprisePolicyGroupResponseSchema,EnterpriseEffectiveModelSchema,EnterpriseEffectiveAgentSchema,EnterpriseEffectiveConfigSchema,EnterpriseEffectiveUserConfigSchema,EnterpriseEffectiveConfigsSchema,EnterpriseEffectiveConfigsResponseSchema,EnterpriseEffectiveConfigResponseSchema}from"./enterprisePolicy.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const EnterpriseRangePresetSchema: z.ZodEnum<["today", "thisWeek", "thisMonth", "lastMonth"]>;
|
|
4
|
+
export type EnterpriseRangePreset = z.infer<typeof EnterpriseRangePresetSchema>;
|
|
5
|
+
|
|
6
|
+
export declare const EnterpriseRangeQuerySchema: z.ZodObject<{
|
|
7
|
+
range: z.ZodOptional<z.ZodEnum<["today", "thisWeek", "thisMonth", "lastMonth"]>>;
|
|
8
|
+
from: z.ZodOptional<z.ZodString>;
|
|
9
|
+
to: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
range?: "today" | "thisWeek" | "thisMonth" | "lastMonth" | undefined;
|
|
12
|
+
from?: string | undefined;
|
|
13
|
+
to?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
range?: "today" | "thisWeek" | "thisMonth" | "lastMonth" | undefined;
|
|
16
|
+
from?: string | undefined;
|
|
17
|
+
to?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type EnterpriseRangeQuery = z.infer<typeof EnterpriseRangeQuerySchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as t}from"zod";export const EnterpriseRangePresetSchema=t.enum(["today","thisWeek","thisMonth","lastMonth"]),EnterpriseRangeQuerySchema=t.object({range:EnterpriseRangePresetSchema.optional(),from:t.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),to:t.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional()}).strict();
|
|
@@ -1,5 +1,124 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
export declare const ENTERPRISE_RUNTIME_AGENTS: readonly ["claude", "codex", "opencode"];
|
|
4
|
+
export type EnterpriseRuntimeAgent = (typeof ENTERPRISE_RUNTIME_AGENTS)[number];
|
|
5
|
+
export declare function isEnterpriseRuntimeAgent(value: string): value is EnterpriseRuntimeAgent;
|
|
6
|
+
export declare const EnterpriseRuntimeAgentSchema: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
7
|
+
|
|
8
|
+
export declare const EnterpriseRuntimeProjectionSchema: z.ZodObject<{
|
|
9
|
+
edition: z.ZodLiteral<"enterprise">;
|
|
10
|
+
enterpriseId: z.ZodString;
|
|
11
|
+
userId: z.ZodString;
|
|
12
|
+
machineId: z.ZodString;
|
|
13
|
+
configVersion: z.ZodString;
|
|
14
|
+
issuedAt: z.ZodString;
|
|
15
|
+
expiresAt: z.ZodString;
|
|
16
|
+
gateway: z.ZodObject<{
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
platformToken: z.ZodString;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
url: string;
|
|
21
|
+
platformToken: string;
|
|
22
|
+
}, {
|
|
23
|
+
url: string;
|
|
24
|
+
platformToken: string;
|
|
25
|
+
}>;
|
|
26
|
+
agents: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
27
|
+
authorizedModels: z.ZodArray<z.ZodObject<{
|
|
28
|
+
modelId: z.ZodString;
|
|
29
|
+
displayName: z.ZodString;
|
|
30
|
+
status: z.ZodEnum<["authorized", "blocked"]>;
|
|
31
|
+
reason: z.ZodOptional<z.ZodEnum<["policy-blocked", "projection-stale"]>>;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
status: "authorized" | "blocked";
|
|
34
|
+
modelId: string;
|
|
35
|
+
displayName: string;
|
|
36
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
status: "authorized" | "blocked";
|
|
39
|
+
modelId: string;
|
|
40
|
+
displayName: string;
|
|
41
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
42
|
+
}>, "many">;
|
|
43
|
+
defaultModel: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
authorizedModels: {
|
|
46
|
+
status: "authorized" | "blocked";
|
|
47
|
+
modelId: string;
|
|
48
|
+
displayName: string;
|
|
49
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
defaultModel: string | null;
|
|
52
|
+
}, {
|
|
53
|
+
authorizedModels: {
|
|
54
|
+
status: "authorized" | "blocked";
|
|
55
|
+
modelId: string;
|
|
56
|
+
displayName: string;
|
|
57
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
58
|
+
}[];
|
|
59
|
+
defaultModel: string | null;
|
|
60
|
+
}>, {
|
|
61
|
+
authorizedModels: {
|
|
62
|
+
status: "authorized" | "blocked";
|
|
63
|
+
modelId: string;
|
|
64
|
+
displayName: string;
|
|
65
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
66
|
+
}[];
|
|
67
|
+
defaultModel: string | null;
|
|
68
|
+
}, {
|
|
69
|
+
authorizedModels: {
|
|
70
|
+
status: "authorized" | "blocked";
|
|
71
|
+
modelId: string;
|
|
72
|
+
displayName: string;
|
|
73
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
defaultModel: string | null;
|
|
76
|
+
}>>;
|
|
77
|
+
}, "strict", z.ZodTypeAny, {
|
|
78
|
+
agents: Record<string, {
|
|
79
|
+
authorizedModels: {
|
|
80
|
+
status: "authorized" | "blocked";
|
|
81
|
+
modelId: string;
|
|
82
|
+
displayName: string;
|
|
83
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
84
|
+
}[];
|
|
85
|
+
defaultModel: string | null;
|
|
86
|
+
}>;
|
|
87
|
+
machineId: string;
|
|
88
|
+
edition: "enterprise";
|
|
89
|
+
enterpriseId: string;
|
|
90
|
+
userId: string;
|
|
91
|
+
configVersion: string;
|
|
92
|
+
issuedAt: string;
|
|
93
|
+
expiresAt: string;
|
|
94
|
+
gateway: {
|
|
95
|
+
url: string;
|
|
96
|
+
platformToken: string;
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
agents: Record<string, {
|
|
100
|
+
authorizedModels: {
|
|
101
|
+
status: "authorized" | "blocked";
|
|
102
|
+
modelId: string;
|
|
103
|
+
displayName: string;
|
|
104
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
defaultModel: string | null;
|
|
107
|
+
}>;
|
|
108
|
+
machineId: string;
|
|
109
|
+
edition: "enterprise";
|
|
110
|
+
enterpriseId: string;
|
|
111
|
+
userId: string;
|
|
112
|
+
configVersion: string;
|
|
113
|
+
issuedAt: string;
|
|
114
|
+
expiresAt: string;
|
|
115
|
+
gateway: {
|
|
116
|
+
url: string;
|
|
117
|
+
platformToken: string;
|
|
118
|
+
};
|
|
119
|
+
}>;
|
|
120
|
+
export type EnterpriseRuntimeProjection = z.infer<typeof EnterpriseRuntimeProjectionSchema>;
|
|
121
|
+
|
|
3
122
|
export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
|
|
4
123
|
edition: z.ZodLiteral<"enterprise">;
|
|
5
124
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
@@ -13,8 +132,8 @@ export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
|
|
|
13
132
|
}, "strict", z.ZodTypeAny, {
|
|
14
133
|
agent: "codex" | "claude" | "opencode";
|
|
15
134
|
defaultModel: string | null;
|
|
16
|
-
configVersion: string;
|
|
17
135
|
edition: "enterprise";
|
|
136
|
+
configVersion: string;
|
|
18
137
|
issuedAt: string;
|
|
19
138
|
expiresAt: string;
|
|
20
139
|
gatewayUrl: string;
|
|
@@ -23,8 +142,8 @@ export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
|
|
|
23
142
|
}, {
|
|
24
143
|
agent: "codex" | "claude" | "opencode";
|
|
25
144
|
defaultModel: string | null;
|
|
26
|
-
configVersion: string;
|
|
27
145
|
edition: "enterprise";
|
|
146
|
+
configVersion: string;
|
|
28
147
|
issuedAt: string;
|
|
29
148
|
expiresAt: string;
|
|
30
149
|
gatewayUrl: string;
|
|
@@ -36,7 +155,6 @@ export type EnterpriseAgentRuntimeSettings = z.infer<typeof EnterpriseAgentRunti
|
|
|
36
155
|
export declare const EnterpriseAgentRuntimeConfigSchema: z.ZodObject<{
|
|
37
156
|
username: z.ZodString;
|
|
38
157
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
39
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
40
158
|
machineId: z.ZodOptional<z.ZodString>;
|
|
41
159
|
configVersion: z.ZodOptional<z.ZodString>;
|
|
42
160
|
issuedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -53,7 +171,6 @@ export declare const EnterpriseAgentRuntimeConfigSchema: z.ZodObject<{
|
|
|
53
171
|
agent: "codex" | "claude" | "opencode";
|
|
54
172
|
username: string;
|
|
55
173
|
machineId?: string | undefined;
|
|
56
|
-
routeId?: string | undefined;
|
|
57
174
|
defaultModel?: string | null | undefined;
|
|
58
175
|
configVersion?: string | undefined;
|
|
59
176
|
issuedAt?: string | undefined;
|
|
@@ -69,7 +186,6 @@ export declare const EnterpriseAgentRuntimeConfigSchema: z.ZodObject<{
|
|
|
69
186
|
agent: "codex" | "claude" | "opencode";
|
|
70
187
|
username: string;
|
|
71
188
|
machineId?: string | undefined;
|
|
72
|
-
routeId?: string | undefined;
|
|
73
189
|
defaultModel?: string | null | undefined;
|
|
74
190
|
configVersion?: string | undefined;
|
|
75
191
|
issuedAt?: string | undefined;
|
|
@@ -86,7 +202,6 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
86
202
|
configs: z.ZodArray<z.ZodObject<{
|
|
87
203
|
username: z.ZodString;
|
|
88
204
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
89
|
-
routeId: z.ZodOptional<z.ZodString>;
|
|
90
205
|
machineId: z.ZodOptional<z.ZodString>;
|
|
91
206
|
configVersion: z.ZodOptional<z.ZodString>;
|
|
92
207
|
issuedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -103,7 +218,6 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
103
218
|
agent: "codex" | "claude" | "opencode";
|
|
104
219
|
username: string;
|
|
105
220
|
machineId?: string | undefined;
|
|
106
|
-
routeId?: string | undefined;
|
|
107
221
|
defaultModel?: string | null | undefined;
|
|
108
222
|
configVersion?: string | undefined;
|
|
109
223
|
issuedAt?: string | undefined;
|
|
@@ -119,7 +233,6 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
119
233
|
agent: "codex" | "claude" | "opencode";
|
|
120
234
|
username: string;
|
|
121
235
|
machineId?: string | undefined;
|
|
122
|
-
routeId?: string | undefined;
|
|
123
236
|
defaultModel?: string | null | undefined;
|
|
124
237
|
configVersion?: string | undefined;
|
|
125
238
|
issuedAt?: string | undefined;
|
|
@@ -137,7 +250,6 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
137
250
|
agent: "codex" | "claude" | "opencode";
|
|
138
251
|
username: string;
|
|
139
252
|
machineId?: string | undefined;
|
|
140
|
-
routeId?: string | undefined;
|
|
141
253
|
defaultModel?: string | null | undefined;
|
|
142
254
|
configVersion?: string | undefined;
|
|
143
255
|
issuedAt?: string | undefined;
|
|
@@ -155,7 +267,6 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
155
267
|
agent: "codex" | "claude" | "opencode";
|
|
156
268
|
username: string;
|
|
157
269
|
machineId?: string | undefined;
|
|
158
|
-
routeId?: string | undefined;
|
|
159
270
|
defaultModel?: string | null | undefined;
|
|
160
271
|
configVersion?: string | undefined;
|
|
161
272
|
issuedAt?: string | undefined;
|
|
@@ -172,11 +283,10 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
172
283
|
export type EnterpriseAgentRuntimeConfig = z.infer<typeof EnterpriseAgentRuntimeConfigSchema>;
|
|
173
284
|
export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
|
|
174
285
|
id: z.ZodString;
|
|
175
|
-
routeId: z.ZodString;
|
|
176
|
-
model: z.ZodString;
|
|
177
286
|
username: z.ZodString;
|
|
178
287
|
machineId: z.ZodString;
|
|
179
288
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
289
|
+
allowedModels: z.ZodArray<z.ZodString, "many">;
|
|
180
290
|
status: z.ZodEnum<["active", "revoked", "expired", "failed"]>;
|
|
181
291
|
configVersion: z.ZodString;
|
|
182
292
|
issuedAt: z.ZodString;
|
|
@@ -189,15 +299,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
|
|
|
189
299
|
cleanupLastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
300
|
}, "strict", z.ZodTypeAny, {
|
|
191
301
|
status: "failed" | "active" | "revoked" | "expired";
|
|
192
|
-
model: string;
|
|
193
302
|
agent: "codex" | "claude" | "opencode";
|
|
194
303
|
id: string;
|
|
195
304
|
machineId: string;
|
|
196
|
-
routeId: string;
|
|
197
|
-
username: string;
|
|
198
305
|
configVersion: string;
|
|
199
306
|
issuedAt: string;
|
|
200
307
|
expiresAt: string;
|
|
308
|
+
allowedModels: string[];
|
|
309
|
+
username: string;
|
|
201
310
|
revokedAt: string | null;
|
|
202
311
|
lastErrorCode: string | null;
|
|
203
312
|
cleanupPending?: boolean | undefined;
|
|
@@ -206,15 +315,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
|
|
|
206
315
|
cleanupLastError?: string | null | undefined;
|
|
207
316
|
}, {
|
|
208
317
|
status: "failed" | "active" | "revoked" | "expired";
|
|
209
|
-
model: string;
|
|
210
318
|
agent: "codex" | "claude" | "opencode";
|
|
211
319
|
id: string;
|
|
212
320
|
machineId: string;
|
|
213
|
-
routeId: string;
|
|
214
|
-
username: string;
|
|
215
321
|
configVersion: string;
|
|
216
322
|
issuedAt: string;
|
|
217
323
|
expiresAt: string;
|
|
324
|
+
allowedModels: string[];
|
|
325
|
+
username: string;
|
|
218
326
|
revokedAt: string | null;
|
|
219
327
|
lastErrorCode: string | null;
|
|
220
328
|
cleanupPending?: boolean | undefined;
|
|
@@ -225,11 +333,10 @@ export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
|
|
|
225
333
|
export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
226
334
|
bindings: z.ZodArray<z.ZodObject<{
|
|
227
335
|
id: z.ZodString;
|
|
228
|
-
routeId: z.ZodString;
|
|
229
|
-
model: z.ZodString;
|
|
230
336
|
username: z.ZodString;
|
|
231
337
|
machineId: z.ZodString;
|
|
232
338
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
339
|
+
allowedModels: z.ZodArray<z.ZodString, "many">;
|
|
233
340
|
status: z.ZodEnum<["active", "revoked", "expired", "failed"]>;
|
|
234
341
|
configVersion: z.ZodString;
|
|
235
342
|
issuedAt: z.ZodString;
|
|
@@ -242,15 +349,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
242
349
|
cleanupLastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
350
|
}, "strict", z.ZodTypeAny, {
|
|
244
351
|
status: "failed" | "active" | "revoked" | "expired";
|
|
245
|
-
model: string;
|
|
246
352
|
agent: "codex" | "claude" | "opencode";
|
|
247
353
|
id: string;
|
|
248
354
|
machineId: string;
|
|
249
|
-
routeId: string;
|
|
250
|
-
username: string;
|
|
251
355
|
configVersion: string;
|
|
252
356
|
issuedAt: string;
|
|
253
357
|
expiresAt: string;
|
|
358
|
+
allowedModels: string[];
|
|
359
|
+
username: string;
|
|
254
360
|
revokedAt: string | null;
|
|
255
361
|
lastErrorCode: string | null;
|
|
256
362
|
cleanupPending?: boolean | undefined;
|
|
@@ -259,15 +365,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
259
365
|
cleanupLastError?: string | null | undefined;
|
|
260
366
|
}, {
|
|
261
367
|
status: "failed" | "active" | "revoked" | "expired";
|
|
262
|
-
model: string;
|
|
263
368
|
agent: "codex" | "claude" | "opencode";
|
|
264
369
|
id: string;
|
|
265
370
|
machineId: string;
|
|
266
|
-
routeId: string;
|
|
267
|
-
username: string;
|
|
268
371
|
configVersion: string;
|
|
269
372
|
issuedAt: string;
|
|
270
373
|
expiresAt: string;
|
|
374
|
+
allowedModels: string[];
|
|
375
|
+
username: string;
|
|
271
376
|
revokedAt: string | null;
|
|
272
377
|
lastErrorCode: string | null;
|
|
273
378
|
cleanupPending?: boolean | undefined;
|
|
@@ -278,15 +383,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
278
383
|
}, "strict", z.ZodTypeAny, {
|
|
279
384
|
bindings: {
|
|
280
385
|
status: "failed" | "active" | "revoked" | "expired";
|
|
281
|
-
model: string;
|
|
282
386
|
agent: "codex" | "claude" | "opencode";
|
|
283
387
|
id: string;
|
|
284
388
|
machineId: string;
|
|
285
|
-
routeId: string;
|
|
286
|
-
username: string;
|
|
287
389
|
configVersion: string;
|
|
288
390
|
issuedAt: string;
|
|
289
391
|
expiresAt: string;
|
|
392
|
+
allowedModels: string[];
|
|
393
|
+
username: string;
|
|
290
394
|
revokedAt: string | null;
|
|
291
395
|
lastErrorCode: string | null;
|
|
292
396
|
cleanupPending?: boolean | undefined;
|
|
@@ -297,15 +401,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
297
401
|
}, {
|
|
298
402
|
bindings: {
|
|
299
403
|
status: "failed" | "active" | "revoked" | "expired";
|
|
300
|
-
model: string;
|
|
301
404
|
agent: "codex" | "claude" | "opencode";
|
|
302
405
|
id: string;
|
|
303
406
|
machineId: string;
|
|
304
|
-
routeId: string;
|
|
305
|
-
username: string;
|
|
306
407
|
configVersion: string;
|
|
307
408
|
issuedAt: string;
|
|
308
409
|
expiresAt: string;
|
|
410
|
+
allowedModels: string[];
|
|
411
|
+
username: string;
|
|
309
412
|
revokedAt: string | null;
|
|
310
413
|
lastErrorCode: string | null;
|
|
311
414
|
cleanupPending?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as
|
|
1
|
+
"use strict";import{z as e}from"zod";export const ENTERPRISE_RUNTIME_AGENTS=["claude","codex","opencode"];export function isEnterpriseRuntimeAgent(t){return ENTERPRISE_RUNTIME_AGENTS.includes(t)}export const EnterpriseRuntimeAgentSchema=e.enum(ENTERPRISE_RUNTIME_AGENTS);const o=e.object({modelId:e.string().min(1),displayName:e.string().min(1),status:e.enum(["authorized","blocked"]),reason:e.enum(["policy-blocked","projection-stale"]).optional()}).strict(),r=e.object({authorizedModels:e.array(o).max(200),defaultModel:e.string().min(1).nullable()}).strict().superRefine((t,i)=>{t.defaultModel!==null&&!t.authorizedModels.some(n=>n.modelId===t.defaultModel&&n.status==="authorized")&&i.addIssue({code:e.ZodIssueCode.custom,path:["defaultModel"],message:"default-model-not-authorized"})});export const EnterpriseRuntimeProjectionSchema=e.object({edition:e.literal("enterprise"),enterpriseId:e.string().min(1),userId:e.string().min(1),machineId:e.string().min(1),configVersion:e.string().min(1),issuedAt:e.string().datetime(),expiresAt:e.string().datetime(),gateway:e.object({url:e.string().url(),platformToken:e.string().min(1)}).strict(),agents:e.record(r)}).strict(),EnterpriseAgentRuntimeSettingsSchema=e.object({edition:e.literal("enterprise"),agent:EnterpriseRuntimeAgentSchema,configVersion:e.string().min(1),issuedAt:e.string().datetime(),expiresAt:e.string().datetime(),gatewayUrl:e.string().url(),platformGatewayToken:e.string().min(1),allowedModels:e.array(e.string().min(1)).max(200),defaultModel:e.string().min(1).nullable()}).strict(),EnterpriseAgentRuntimeConfigSchema=e.object({username:e.string().min(1),agent:EnterpriseRuntimeAgentSchema,machineId:e.string().min(1).optional(),configVersion:e.string().min(1).optional(),issuedAt:e.string().datetime().optional(),expiresAt:e.string().datetime().optional(),gatewayUrl:e.string().url().optional(),platformGatewayToken:e.string().min(1).optional(),allowedModels:e.array(e.string().min(1)).max(200).optional(),defaultModel:e.string().min(1).nullable().optional(),clearGatewayCredentials:e.boolean().optional(),claudeConfig:e.record(e.unknown()).optional(),codexConfig:e.record(e.unknown()).optional(),opencodeConfig:e.record(e.unknown()).optional()}).strict(),EnterpriseAgentRuntimeConfigBatchSchema=e.object({configs:e.array(EnterpriseAgentRuntimeConfigSchema).max(1e4)}).strict(),EnterpriseRuntimeBindingDiagnosticSchema=e.object({id:e.string().min(1),username:e.string().min(1),machineId:e.string().min(1),agent:EnterpriseRuntimeAgentSchema,allowedModels:e.array(e.string().min(1)).max(200),status:e.enum(["active","revoked","expired","failed"]),configVersion:e.string().min(1),issuedAt:e.string().datetime(),expiresAt:e.string().datetime(),revokedAt:e.string().datetime().nullable(),lastErrorCode:e.string().min(1).max(200).nullable(),cleanupPending:e.boolean().optional(),cleanupAttempts:e.number().int().nonnegative().optional(),cleanupAvailableAt:e.string().datetime().nullable().optional(),cleanupLastError:e.string().max(200).nullable().optional()}).strict(),EnterpriseRuntimeBindingDiagnosticsSchema=e.object({bindings:e.array(EnterpriseRuntimeBindingDiagnosticSchema).max(1e4)}).strict();
|