@agentdock/wire 0.0.96 → 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.
- package/dist/agentCapabilities.d.ts +5 -2
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCompatibility.d.ts +83 -0
- package/dist/agentCompatibility.js +1 -0
- package/dist/agentInstallGuide.js +1 -1
- package/dist/checkpointSchemas.d.ts +5 -0
- package/dist/checkpointSchemas.js +1 -1
- package/dist/enterpriseDirectory.d.ts +8 -8
- package/dist/enterpriseFileService.d.ts +7 -0
- package/dist/enterpriseFileService.js +1 -0
- package/dist/enterprisePolicy.d.ts +169 -0
- package/dist/enterprisePolicy.js +1 -1
- package/dist/enterprisePolicyExports.d.ts +4 -2
- package/dist/enterprisePolicyExports.js +1 -1
- package/dist/enterpriseRuntime.d.ts +445 -20
- package/dist/enterpriseRuntime.js +1 -1
- package/dist/enterpriseUserContainer.d.ts +2 -0
- package/dist/enterpriseUserContainer.js +1 -0
- package/dist/gateway.d.ts +6 -6
- package/dist/gatewayUsage.d.ts +26 -10
- package/dist/gatewayUsage.js +1 -1
- package/dist/inboundEvents.d.ts +0 -6
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +10 -4
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +2 -2
- package/dist/legacyProtocol.d.ts +36 -36
- package/dist/machine.d.ts +1 -6
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +9 -7
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +36 -36
- package/dist/ops.d.ts +112 -0
- package/dist/ops.js +1 -1
- package/dist/opsExports.d.ts +4 -0
- package/dist/opsExports.js +1 -0
- package/dist/pushPreferences.d.ts +12 -0
- package/dist/pushPreferences.js +1 -0
- package/dist/rpc.d.ts +537 -66
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +96 -21
- package/dist/scheduledTasks.js +1 -1
- package/dist/session.d.ts +4 -0
- package/dist/session.js +1 -0
- package/dist/sessionFiles.d.ts +70 -0
- package/dist/sessionFiles.js +1 -0
- package/dist/sessionSlashCommands.d.ts +15 -0
- package/dist/sessionSlashCommands.js +1 -0
- package/dist/spawnError.d.ts +3 -3
- package/dist/stats.d.ts +31 -31
- package/dist/sync.d.ts +45 -45
- package/dist/sync.js +1 -1
- package/dist/telemetry.d.ts +13 -13
- package/dist/telemetry.js +1 -1
- package/dist/workspaceFileReaderProtocol.d.ts +270 -0
- package/dist/workspaceFileReaderProtocol.js +1 -0
- package/dist/workspaceFileRelay.d.ts +188 -0
- package/dist/workspaceFileRelay.js +1 -0
- package/package.json +1 -1
- package/dist/agentRuntimeSettings.d.ts +0 -139
- package/dist/agentRuntimeSettings.js +0 -1
- package/dist/enterpriseGateway.d.ts +0 -214
- package/dist/enterpriseGateway.js +0 -1
- package/dist/goals.d.ts +0 -829
- package/dist/goals.js +0 -1
|
@@ -5,6 +5,8 @@ export type EnterpriseRuntimeAgent = (typeof ENTERPRISE_RUNTIME_AGENTS)[number];
|
|
|
5
5
|
export declare function isEnterpriseRuntimeAgent(value: string): value is EnterpriseRuntimeAgent;
|
|
6
6
|
export declare const EnterpriseRuntimeAgentSchema: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
7
7
|
|
|
8
|
+
export declare const ENTERPRISE_GATEWAY_PATHS: Readonly<Record<EnterpriseRuntimeAgent, string>>;
|
|
9
|
+
|
|
8
10
|
export declare const EnterpriseRuntimeProjectionSchema: z.ZodObject<{
|
|
9
11
|
edition: z.ZodLiteral<"enterprise">;
|
|
10
12
|
enterpriseId: z.ZodString;
|
|
@@ -119,6 +121,429 @@ export declare const EnterpriseRuntimeProjectionSchema: z.ZodObject<{
|
|
|
119
121
|
}>;
|
|
120
122
|
export type EnterpriseRuntimeProjection = z.infer<typeof EnterpriseRuntimeProjectionSchema>;
|
|
121
123
|
|
|
124
|
+
export type EnterpriseProjectionOverwriteDecision = 'replace' | 'duplicate' | 'stale';
|
|
125
|
+
|
|
126
|
+
export declare function sameProjectionIdentity(a: EnterpriseRuntimeProjection, b: EnterpriseRuntimeProjection): boolean;
|
|
127
|
+
|
|
128
|
+
export declare function resolveProjectionOverwrite(stored: EnterpriseRuntimeProjection, incoming: EnterpriseRuntimeProjection): EnterpriseProjectionOverwriteDecision;
|
|
129
|
+
|
|
130
|
+
export declare const EnterpriseRuntimeProjectionDeliverySchema: z.ZodObject<{
|
|
131
|
+
username: z.ZodString;
|
|
132
|
+
projection: z.ZodObject<{
|
|
133
|
+
edition: z.ZodLiteral<"enterprise">;
|
|
134
|
+
enterpriseId: z.ZodString;
|
|
135
|
+
userId: z.ZodString;
|
|
136
|
+
machineId: z.ZodString;
|
|
137
|
+
configVersion: z.ZodString;
|
|
138
|
+
issuedAt: z.ZodString;
|
|
139
|
+
expiresAt: z.ZodString;
|
|
140
|
+
gateway: z.ZodObject<{
|
|
141
|
+
url: z.ZodString;
|
|
142
|
+
platformToken: z.ZodString;
|
|
143
|
+
}, "strict", z.ZodTypeAny, {
|
|
144
|
+
url: string;
|
|
145
|
+
platformToken: string;
|
|
146
|
+
}, {
|
|
147
|
+
url: string;
|
|
148
|
+
platformToken: string;
|
|
149
|
+
}>;
|
|
150
|
+
agents: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
151
|
+
authorizedModels: z.ZodArray<z.ZodObject<{
|
|
152
|
+
modelId: z.ZodString;
|
|
153
|
+
displayName: z.ZodString;
|
|
154
|
+
status: z.ZodEnum<["authorized", "blocked"]>;
|
|
155
|
+
reason: z.ZodOptional<z.ZodEnum<["policy-blocked", "projection-stale"]>>;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
status: "authorized" | "blocked";
|
|
158
|
+
modelId: string;
|
|
159
|
+
displayName: string;
|
|
160
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
status: "authorized" | "blocked";
|
|
163
|
+
modelId: string;
|
|
164
|
+
displayName: string;
|
|
165
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
166
|
+
}>, "many">;
|
|
167
|
+
defaultModel: z.ZodNullable<z.ZodString>;
|
|
168
|
+
}, "strict", z.ZodTypeAny, {
|
|
169
|
+
authorizedModels: {
|
|
170
|
+
status: "authorized" | "blocked";
|
|
171
|
+
modelId: string;
|
|
172
|
+
displayName: string;
|
|
173
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
174
|
+
}[];
|
|
175
|
+
defaultModel: string | null;
|
|
176
|
+
}, {
|
|
177
|
+
authorizedModels: {
|
|
178
|
+
status: "authorized" | "blocked";
|
|
179
|
+
modelId: string;
|
|
180
|
+
displayName: string;
|
|
181
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
182
|
+
}[];
|
|
183
|
+
defaultModel: string | null;
|
|
184
|
+
}>, {
|
|
185
|
+
authorizedModels: {
|
|
186
|
+
status: "authorized" | "blocked";
|
|
187
|
+
modelId: string;
|
|
188
|
+
displayName: string;
|
|
189
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
190
|
+
}[];
|
|
191
|
+
defaultModel: string | null;
|
|
192
|
+
}, {
|
|
193
|
+
authorizedModels: {
|
|
194
|
+
status: "authorized" | "blocked";
|
|
195
|
+
modelId: string;
|
|
196
|
+
displayName: string;
|
|
197
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
198
|
+
}[];
|
|
199
|
+
defaultModel: string | null;
|
|
200
|
+
}>>;
|
|
201
|
+
}, "strict", z.ZodTypeAny, {
|
|
202
|
+
agents: Record<string, {
|
|
203
|
+
authorizedModels: {
|
|
204
|
+
status: "authorized" | "blocked";
|
|
205
|
+
modelId: string;
|
|
206
|
+
displayName: string;
|
|
207
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
208
|
+
}[];
|
|
209
|
+
defaultModel: string | null;
|
|
210
|
+
}>;
|
|
211
|
+
machineId: string;
|
|
212
|
+
edition: "enterprise";
|
|
213
|
+
enterpriseId: string;
|
|
214
|
+
userId: string;
|
|
215
|
+
configVersion: string;
|
|
216
|
+
issuedAt: string;
|
|
217
|
+
expiresAt: string;
|
|
218
|
+
gateway: {
|
|
219
|
+
url: string;
|
|
220
|
+
platformToken: string;
|
|
221
|
+
};
|
|
222
|
+
}, {
|
|
223
|
+
agents: Record<string, {
|
|
224
|
+
authorizedModels: {
|
|
225
|
+
status: "authorized" | "blocked";
|
|
226
|
+
modelId: string;
|
|
227
|
+
displayName: string;
|
|
228
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
229
|
+
}[];
|
|
230
|
+
defaultModel: string | null;
|
|
231
|
+
}>;
|
|
232
|
+
machineId: string;
|
|
233
|
+
edition: "enterprise";
|
|
234
|
+
enterpriseId: string;
|
|
235
|
+
userId: string;
|
|
236
|
+
configVersion: string;
|
|
237
|
+
issuedAt: string;
|
|
238
|
+
expiresAt: string;
|
|
239
|
+
gateway: {
|
|
240
|
+
url: string;
|
|
241
|
+
platformToken: string;
|
|
242
|
+
};
|
|
243
|
+
}>;
|
|
244
|
+
}, "strict", z.ZodTypeAny, {
|
|
245
|
+
username: string;
|
|
246
|
+
projection: {
|
|
247
|
+
agents: Record<string, {
|
|
248
|
+
authorizedModels: {
|
|
249
|
+
status: "authorized" | "blocked";
|
|
250
|
+
modelId: string;
|
|
251
|
+
displayName: string;
|
|
252
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
253
|
+
}[];
|
|
254
|
+
defaultModel: string | null;
|
|
255
|
+
}>;
|
|
256
|
+
machineId: string;
|
|
257
|
+
edition: "enterprise";
|
|
258
|
+
enterpriseId: string;
|
|
259
|
+
userId: string;
|
|
260
|
+
configVersion: string;
|
|
261
|
+
issuedAt: string;
|
|
262
|
+
expiresAt: string;
|
|
263
|
+
gateway: {
|
|
264
|
+
url: string;
|
|
265
|
+
platformToken: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}, {
|
|
269
|
+
username: string;
|
|
270
|
+
projection: {
|
|
271
|
+
agents: Record<string, {
|
|
272
|
+
authorizedModels: {
|
|
273
|
+
status: "authorized" | "blocked";
|
|
274
|
+
modelId: string;
|
|
275
|
+
displayName: string;
|
|
276
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
277
|
+
}[];
|
|
278
|
+
defaultModel: string | null;
|
|
279
|
+
}>;
|
|
280
|
+
machineId: string;
|
|
281
|
+
edition: "enterprise";
|
|
282
|
+
enterpriseId: string;
|
|
283
|
+
userId: string;
|
|
284
|
+
configVersion: string;
|
|
285
|
+
issuedAt: string;
|
|
286
|
+
expiresAt: string;
|
|
287
|
+
gateway: {
|
|
288
|
+
url: string;
|
|
289
|
+
platformToken: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
}>;
|
|
293
|
+
export type EnterpriseRuntimeProjectionDelivery = z.infer<typeof EnterpriseRuntimeProjectionDeliverySchema>;
|
|
294
|
+
|
|
295
|
+
export declare const EnterpriseRuntimeProjectionBatchSchema: z.ZodObject<{
|
|
296
|
+
edition: z.ZodLiteral<"enterprise">;
|
|
297
|
+
enterpriseId: z.ZodString;
|
|
298
|
+
projectionId: z.ZodString;
|
|
299
|
+
generatedAt: z.ZodString;
|
|
300
|
+
projections: z.ZodArray<z.ZodObject<{
|
|
301
|
+
username: z.ZodString;
|
|
302
|
+
projection: z.ZodObject<{
|
|
303
|
+
edition: z.ZodLiteral<"enterprise">;
|
|
304
|
+
enterpriseId: z.ZodString;
|
|
305
|
+
userId: z.ZodString;
|
|
306
|
+
machineId: z.ZodString;
|
|
307
|
+
configVersion: z.ZodString;
|
|
308
|
+
issuedAt: z.ZodString;
|
|
309
|
+
expiresAt: z.ZodString;
|
|
310
|
+
gateway: z.ZodObject<{
|
|
311
|
+
url: z.ZodString;
|
|
312
|
+
platformToken: z.ZodString;
|
|
313
|
+
}, "strict", z.ZodTypeAny, {
|
|
314
|
+
url: string;
|
|
315
|
+
platformToken: string;
|
|
316
|
+
}, {
|
|
317
|
+
url: string;
|
|
318
|
+
platformToken: string;
|
|
319
|
+
}>;
|
|
320
|
+
agents: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
321
|
+
authorizedModels: z.ZodArray<z.ZodObject<{
|
|
322
|
+
modelId: z.ZodString;
|
|
323
|
+
displayName: z.ZodString;
|
|
324
|
+
status: z.ZodEnum<["authorized", "blocked"]>;
|
|
325
|
+
reason: z.ZodOptional<z.ZodEnum<["policy-blocked", "projection-stale"]>>;
|
|
326
|
+
}, "strict", z.ZodTypeAny, {
|
|
327
|
+
status: "authorized" | "blocked";
|
|
328
|
+
modelId: string;
|
|
329
|
+
displayName: string;
|
|
330
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
331
|
+
}, {
|
|
332
|
+
status: "authorized" | "blocked";
|
|
333
|
+
modelId: string;
|
|
334
|
+
displayName: string;
|
|
335
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
336
|
+
}>, "many">;
|
|
337
|
+
defaultModel: z.ZodNullable<z.ZodString>;
|
|
338
|
+
}, "strict", z.ZodTypeAny, {
|
|
339
|
+
authorizedModels: {
|
|
340
|
+
status: "authorized" | "blocked";
|
|
341
|
+
modelId: string;
|
|
342
|
+
displayName: string;
|
|
343
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
344
|
+
}[];
|
|
345
|
+
defaultModel: string | null;
|
|
346
|
+
}, {
|
|
347
|
+
authorizedModels: {
|
|
348
|
+
status: "authorized" | "blocked";
|
|
349
|
+
modelId: string;
|
|
350
|
+
displayName: string;
|
|
351
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
352
|
+
}[];
|
|
353
|
+
defaultModel: string | null;
|
|
354
|
+
}>, {
|
|
355
|
+
authorizedModels: {
|
|
356
|
+
status: "authorized" | "blocked";
|
|
357
|
+
modelId: string;
|
|
358
|
+
displayName: string;
|
|
359
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
360
|
+
}[];
|
|
361
|
+
defaultModel: string | null;
|
|
362
|
+
}, {
|
|
363
|
+
authorizedModels: {
|
|
364
|
+
status: "authorized" | "blocked";
|
|
365
|
+
modelId: string;
|
|
366
|
+
displayName: string;
|
|
367
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
368
|
+
}[];
|
|
369
|
+
defaultModel: string | null;
|
|
370
|
+
}>>;
|
|
371
|
+
}, "strict", z.ZodTypeAny, {
|
|
372
|
+
agents: Record<string, {
|
|
373
|
+
authorizedModels: {
|
|
374
|
+
status: "authorized" | "blocked";
|
|
375
|
+
modelId: string;
|
|
376
|
+
displayName: string;
|
|
377
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
378
|
+
}[];
|
|
379
|
+
defaultModel: string | null;
|
|
380
|
+
}>;
|
|
381
|
+
machineId: string;
|
|
382
|
+
edition: "enterprise";
|
|
383
|
+
enterpriseId: string;
|
|
384
|
+
userId: string;
|
|
385
|
+
configVersion: string;
|
|
386
|
+
issuedAt: string;
|
|
387
|
+
expiresAt: string;
|
|
388
|
+
gateway: {
|
|
389
|
+
url: string;
|
|
390
|
+
platformToken: string;
|
|
391
|
+
};
|
|
392
|
+
}, {
|
|
393
|
+
agents: Record<string, {
|
|
394
|
+
authorizedModels: {
|
|
395
|
+
status: "authorized" | "blocked";
|
|
396
|
+
modelId: string;
|
|
397
|
+
displayName: string;
|
|
398
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
399
|
+
}[];
|
|
400
|
+
defaultModel: string | null;
|
|
401
|
+
}>;
|
|
402
|
+
machineId: string;
|
|
403
|
+
edition: "enterprise";
|
|
404
|
+
enterpriseId: string;
|
|
405
|
+
userId: string;
|
|
406
|
+
configVersion: string;
|
|
407
|
+
issuedAt: string;
|
|
408
|
+
expiresAt: string;
|
|
409
|
+
gateway: {
|
|
410
|
+
url: string;
|
|
411
|
+
platformToken: string;
|
|
412
|
+
};
|
|
413
|
+
}>;
|
|
414
|
+
}, "strict", z.ZodTypeAny, {
|
|
415
|
+
username: string;
|
|
416
|
+
projection: {
|
|
417
|
+
agents: Record<string, {
|
|
418
|
+
authorizedModels: {
|
|
419
|
+
status: "authorized" | "blocked";
|
|
420
|
+
modelId: string;
|
|
421
|
+
displayName: string;
|
|
422
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
423
|
+
}[];
|
|
424
|
+
defaultModel: string | null;
|
|
425
|
+
}>;
|
|
426
|
+
machineId: string;
|
|
427
|
+
edition: "enterprise";
|
|
428
|
+
enterpriseId: string;
|
|
429
|
+
userId: string;
|
|
430
|
+
configVersion: string;
|
|
431
|
+
issuedAt: string;
|
|
432
|
+
expiresAt: string;
|
|
433
|
+
gateway: {
|
|
434
|
+
url: string;
|
|
435
|
+
platformToken: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
}, {
|
|
439
|
+
username: string;
|
|
440
|
+
projection: {
|
|
441
|
+
agents: Record<string, {
|
|
442
|
+
authorizedModels: {
|
|
443
|
+
status: "authorized" | "blocked";
|
|
444
|
+
modelId: string;
|
|
445
|
+
displayName: string;
|
|
446
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
447
|
+
}[];
|
|
448
|
+
defaultModel: string | null;
|
|
449
|
+
}>;
|
|
450
|
+
machineId: string;
|
|
451
|
+
edition: "enterprise";
|
|
452
|
+
enterpriseId: string;
|
|
453
|
+
userId: string;
|
|
454
|
+
configVersion: string;
|
|
455
|
+
issuedAt: string;
|
|
456
|
+
expiresAt: string;
|
|
457
|
+
gateway: {
|
|
458
|
+
url: string;
|
|
459
|
+
platformToken: string;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
}>, "many">;
|
|
463
|
+
}, "strict", z.ZodTypeAny, {
|
|
464
|
+
edition: "enterprise";
|
|
465
|
+
enterpriseId: string;
|
|
466
|
+
projectionId: string;
|
|
467
|
+
generatedAt: string;
|
|
468
|
+
projections: {
|
|
469
|
+
username: string;
|
|
470
|
+
projection: {
|
|
471
|
+
agents: Record<string, {
|
|
472
|
+
authorizedModels: {
|
|
473
|
+
status: "authorized" | "blocked";
|
|
474
|
+
modelId: string;
|
|
475
|
+
displayName: string;
|
|
476
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
477
|
+
}[];
|
|
478
|
+
defaultModel: string | null;
|
|
479
|
+
}>;
|
|
480
|
+
machineId: string;
|
|
481
|
+
edition: "enterprise";
|
|
482
|
+
enterpriseId: string;
|
|
483
|
+
userId: string;
|
|
484
|
+
configVersion: string;
|
|
485
|
+
issuedAt: string;
|
|
486
|
+
expiresAt: string;
|
|
487
|
+
gateway: {
|
|
488
|
+
url: string;
|
|
489
|
+
platformToken: string;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
}[];
|
|
493
|
+
}, {
|
|
494
|
+
edition: "enterprise";
|
|
495
|
+
enterpriseId: string;
|
|
496
|
+
projectionId: string;
|
|
497
|
+
generatedAt: string;
|
|
498
|
+
projections: {
|
|
499
|
+
username: string;
|
|
500
|
+
projection: {
|
|
501
|
+
agents: Record<string, {
|
|
502
|
+
authorizedModels: {
|
|
503
|
+
status: "authorized" | "blocked";
|
|
504
|
+
modelId: string;
|
|
505
|
+
displayName: string;
|
|
506
|
+
reason?: "policy-blocked" | "projection-stale" | undefined;
|
|
507
|
+
}[];
|
|
508
|
+
defaultModel: string | null;
|
|
509
|
+
}>;
|
|
510
|
+
machineId: string;
|
|
511
|
+
edition: "enterprise";
|
|
512
|
+
enterpriseId: string;
|
|
513
|
+
userId: string;
|
|
514
|
+
configVersion: string;
|
|
515
|
+
issuedAt: string;
|
|
516
|
+
expiresAt: string;
|
|
517
|
+
gateway: {
|
|
518
|
+
url: string;
|
|
519
|
+
platformToken: string;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
}[];
|
|
523
|
+
}>;
|
|
524
|
+
export type EnterpriseRuntimeProjectionBatch = z.infer<typeof EnterpriseRuntimeProjectionBatchSchema>;
|
|
525
|
+
|
|
526
|
+
export declare const EnterpriseRuntimeProjectionAckSchema: z.ZodObject<{
|
|
527
|
+
username: z.ZodString;
|
|
528
|
+
machineId: z.ZodString;
|
|
529
|
+
configVersion: z.ZodString;
|
|
530
|
+
status: z.ZodEnum<["applied", "duplicate", "stale", "rejected", "failed"]>;
|
|
531
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, "strict", z.ZodTypeAny, {
|
|
533
|
+
status: "failed" | "duplicate" | "stale" | "applied" | "rejected";
|
|
534
|
+
machineId: string;
|
|
535
|
+
configVersion: string;
|
|
536
|
+
username: string;
|
|
537
|
+
errorCode?: string | undefined;
|
|
538
|
+
}, {
|
|
539
|
+
status: "failed" | "duplicate" | "stale" | "applied" | "rejected";
|
|
540
|
+
machineId: string;
|
|
541
|
+
configVersion: string;
|
|
542
|
+
username: string;
|
|
543
|
+
errorCode?: string | undefined;
|
|
544
|
+
}>;
|
|
545
|
+
export type EnterpriseRuntimeProjectionAck = z.infer<typeof EnterpriseRuntimeProjectionAckSchema>;
|
|
546
|
+
|
|
122
547
|
export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
|
|
123
548
|
edition: z.ZodLiteral<"enterprise">;
|
|
124
549
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
@@ -130,7 +555,7 @@ export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
|
|
|
130
555
|
allowedModels: z.ZodArray<z.ZodString, "many">;
|
|
131
556
|
defaultModel: z.ZodNullable<z.ZodString>;
|
|
132
557
|
}, "strict", z.ZodTypeAny, {
|
|
133
|
-
agent: "
|
|
558
|
+
agent: "claude" | "codex" | "opencode";
|
|
134
559
|
defaultModel: string | null;
|
|
135
560
|
edition: "enterprise";
|
|
136
561
|
configVersion: string;
|
|
@@ -140,7 +565,7 @@ export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
|
|
|
140
565
|
platformGatewayToken: string;
|
|
141
566
|
allowedModels: string[];
|
|
142
567
|
}, {
|
|
143
|
-
agent: "
|
|
568
|
+
agent: "claude" | "codex" | "opencode";
|
|
144
569
|
defaultModel: string | null;
|
|
145
570
|
edition: "enterprise";
|
|
146
571
|
configVersion: string;
|
|
@@ -168,7 +593,7 @@ export declare const EnterpriseAgentRuntimeConfigSchema: z.ZodObject<{
|
|
|
168
593
|
codexConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
169
594
|
opencodeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
170
595
|
}, "strict", z.ZodTypeAny, {
|
|
171
|
-
agent: "
|
|
596
|
+
agent: "claude" | "codex" | "opencode";
|
|
172
597
|
username: string;
|
|
173
598
|
machineId?: string | undefined;
|
|
174
599
|
defaultModel?: string | null | undefined;
|
|
@@ -183,7 +608,7 @@ export declare const EnterpriseAgentRuntimeConfigSchema: z.ZodObject<{
|
|
|
183
608
|
codexConfig?: Record<string, unknown> | undefined;
|
|
184
609
|
opencodeConfig?: Record<string, unknown> | undefined;
|
|
185
610
|
}, {
|
|
186
|
-
agent: "
|
|
611
|
+
agent: "claude" | "codex" | "opencode";
|
|
187
612
|
username: string;
|
|
188
613
|
machineId?: string | undefined;
|
|
189
614
|
defaultModel?: string | null | undefined;
|
|
@@ -215,7 +640,7 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
215
640
|
codexConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
216
641
|
opencodeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
217
642
|
}, "strict", z.ZodTypeAny, {
|
|
218
|
-
agent: "
|
|
643
|
+
agent: "claude" | "codex" | "opencode";
|
|
219
644
|
username: string;
|
|
220
645
|
machineId?: string | undefined;
|
|
221
646
|
defaultModel?: string | null | undefined;
|
|
@@ -230,7 +655,7 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
230
655
|
codexConfig?: Record<string, unknown> | undefined;
|
|
231
656
|
opencodeConfig?: Record<string, unknown> | undefined;
|
|
232
657
|
}, {
|
|
233
|
-
agent: "
|
|
658
|
+
agent: "claude" | "codex" | "opencode";
|
|
234
659
|
username: string;
|
|
235
660
|
machineId?: string | undefined;
|
|
236
661
|
defaultModel?: string | null | undefined;
|
|
@@ -247,7 +672,7 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
247
672
|
}>, "many">;
|
|
248
673
|
}, "strict", z.ZodTypeAny, {
|
|
249
674
|
configs: {
|
|
250
|
-
agent: "
|
|
675
|
+
agent: "claude" | "codex" | "opencode";
|
|
251
676
|
username: string;
|
|
252
677
|
machineId?: string | undefined;
|
|
253
678
|
defaultModel?: string | null | undefined;
|
|
@@ -264,7 +689,7 @@ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
|
|
|
264
689
|
}[];
|
|
265
690
|
}, {
|
|
266
691
|
configs: {
|
|
267
|
-
agent: "
|
|
692
|
+
agent: "claude" | "codex" | "opencode";
|
|
268
693
|
username: string;
|
|
269
694
|
machineId?: string | undefined;
|
|
270
695
|
defaultModel?: string | null | undefined;
|
|
@@ -299,14 +724,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
|
|
|
299
724
|
cleanupLastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
725
|
}, "strict", z.ZodTypeAny, {
|
|
301
726
|
status: "failed" | "active" | "revoked" | "expired";
|
|
302
|
-
agent: "
|
|
727
|
+
agent: "claude" | "codex" | "opencode";
|
|
303
728
|
id: string;
|
|
304
729
|
machineId: string;
|
|
305
730
|
configVersion: string;
|
|
306
731
|
issuedAt: string;
|
|
307
732
|
expiresAt: string;
|
|
308
|
-
allowedModels: string[];
|
|
309
733
|
username: string;
|
|
734
|
+
allowedModels: string[];
|
|
310
735
|
revokedAt: string | null;
|
|
311
736
|
lastErrorCode: string | null;
|
|
312
737
|
cleanupPending?: boolean | undefined;
|
|
@@ -315,14 +740,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
|
|
|
315
740
|
cleanupLastError?: string | null | undefined;
|
|
316
741
|
}, {
|
|
317
742
|
status: "failed" | "active" | "revoked" | "expired";
|
|
318
|
-
agent: "
|
|
743
|
+
agent: "claude" | "codex" | "opencode";
|
|
319
744
|
id: string;
|
|
320
745
|
machineId: string;
|
|
321
746
|
configVersion: string;
|
|
322
747
|
issuedAt: string;
|
|
323
748
|
expiresAt: string;
|
|
324
|
-
allowedModels: string[];
|
|
325
749
|
username: string;
|
|
750
|
+
allowedModels: string[];
|
|
326
751
|
revokedAt: string | null;
|
|
327
752
|
lastErrorCode: string | null;
|
|
328
753
|
cleanupPending?: boolean | undefined;
|
|
@@ -349,14 +774,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
349
774
|
cleanupLastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
775
|
}, "strict", z.ZodTypeAny, {
|
|
351
776
|
status: "failed" | "active" | "revoked" | "expired";
|
|
352
|
-
agent: "
|
|
777
|
+
agent: "claude" | "codex" | "opencode";
|
|
353
778
|
id: string;
|
|
354
779
|
machineId: string;
|
|
355
780
|
configVersion: string;
|
|
356
781
|
issuedAt: string;
|
|
357
782
|
expiresAt: string;
|
|
358
|
-
allowedModels: string[];
|
|
359
783
|
username: string;
|
|
784
|
+
allowedModels: string[];
|
|
360
785
|
revokedAt: string | null;
|
|
361
786
|
lastErrorCode: string | null;
|
|
362
787
|
cleanupPending?: boolean | undefined;
|
|
@@ -365,14 +790,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
365
790
|
cleanupLastError?: string | null | undefined;
|
|
366
791
|
}, {
|
|
367
792
|
status: "failed" | "active" | "revoked" | "expired";
|
|
368
|
-
agent: "
|
|
793
|
+
agent: "claude" | "codex" | "opencode";
|
|
369
794
|
id: string;
|
|
370
795
|
machineId: string;
|
|
371
796
|
configVersion: string;
|
|
372
797
|
issuedAt: string;
|
|
373
798
|
expiresAt: string;
|
|
374
|
-
allowedModels: string[];
|
|
375
799
|
username: string;
|
|
800
|
+
allowedModels: string[];
|
|
376
801
|
revokedAt: string | null;
|
|
377
802
|
lastErrorCode: string | null;
|
|
378
803
|
cleanupPending?: boolean | undefined;
|
|
@@ -383,14 +808,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
383
808
|
}, "strict", z.ZodTypeAny, {
|
|
384
809
|
bindings: {
|
|
385
810
|
status: "failed" | "active" | "revoked" | "expired";
|
|
386
|
-
agent: "
|
|
811
|
+
agent: "claude" | "codex" | "opencode";
|
|
387
812
|
id: string;
|
|
388
813
|
machineId: string;
|
|
389
814
|
configVersion: string;
|
|
390
815
|
issuedAt: string;
|
|
391
816
|
expiresAt: string;
|
|
392
|
-
allowedModels: string[];
|
|
393
817
|
username: string;
|
|
818
|
+
allowedModels: string[];
|
|
394
819
|
revokedAt: string | null;
|
|
395
820
|
lastErrorCode: string | null;
|
|
396
821
|
cleanupPending?: boolean | undefined;
|
|
@@ -401,14 +826,14 @@ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
|
|
|
401
826
|
}, {
|
|
402
827
|
bindings: {
|
|
403
828
|
status: "failed" | "active" | "revoked" | "expired";
|
|
404
|
-
agent: "
|
|
829
|
+
agent: "claude" | "codex" | "opencode";
|
|
405
830
|
id: string;
|
|
406
831
|
machineId: string;
|
|
407
832
|
configVersion: string;
|
|
408
833
|
issuedAt: string;
|
|
409
834
|
expiresAt: string;
|
|
410
|
-
allowedModels: string[];
|
|
411
835
|
username: string;
|
|
836
|
+
allowedModels: string[];
|
|
412
837
|
revokedAt: string | null;
|
|
413
838
|
lastErrorCode: string | null;
|
|
414
839
|
cleanupPending?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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),ENTERPRISE_GATEWAY_PATHS={claude:"/v1/gateway/anthropic",codex:"/v1/gateway/openai",opencode:"/v1/gateway/openai"};const r=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(),o=e.object({authorizedModels:e.array(r).max(200),defaultModel:e.string().min(1).nullable()}).strict().superRefine((t,n)=>{t.defaultModel!==null&&!t.authorizedModels.some(i=>i.modelId===t.defaultModel&&i.status==="authorized")&&n.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(o)}).strict();export function sameProjectionIdentity(t,n){return t.enterpriseId===n.enterpriseId&&t.userId===n.userId&&t.machineId===n.machineId}export function resolveProjectionOverwrite(t,n){return sameProjectionIdentity(t,n)?t.configVersion===n.configVersion&&t.expiresAt===n.expiresAt&&t.gateway.url===n.gateway.url&&t.gateway.platformToken===n.gateway.platformToken?"duplicate":new Date(n.expiresAt).getTime()<new Date(t.expiresAt).getTime()?"stale":"replace":"replace"}export const EnterpriseRuntimeProjectionDeliverySchema=e.object({username:e.string().min(1),projection:EnterpriseRuntimeProjectionSchema}).strict(),EnterpriseRuntimeProjectionBatchSchema=e.object({edition:e.literal("enterprise"),enterpriseId:e.string().min(1),projectionId:e.string().min(1),generatedAt:e.string().datetime(),projections:e.array(EnterpriseRuntimeProjectionDeliverySchema).max(1e4)}).strict(),EnterpriseRuntimeProjectionAckSchema=e.object({username:e.string().min(1),machineId:e.string().min(1),configVersion:e.string().min(1),status:e.enum(["applied","duplicate","stale","rejected","failed"]),errorCode:e.string().min(1).max(200).optional()}).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();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";export const ENTERPRISE_USER_CONTAINER_PREFIX="ccpark-";export function enterpriseUserContainerName(e){return`${ENTERPRISE_USER_CONTAINER_PREFIX}${e}`}
|
package/dist/gateway.d.ts
CHANGED
|
@@ -1024,14 +1024,14 @@ export declare const GatewayCapabilityViewSchema: z.ZodObject<{
|
|
|
1024
1024
|
status: z.ZodEnum<["ready", "unknown", "unavailable", "unsupported"]>;
|
|
1025
1025
|
}, "strict", z.ZodTypeAny, {
|
|
1026
1026
|
status: "unknown" | "ready" | "unsupported" | "unavailable";
|
|
1027
|
-
agent: "
|
|
1027
|
+
agent: "claude" | "codex";
|
|
1028
1028
|
models: string[];
|
|
1029
1029
|
connectionId: string;
|
|
1030
1030
|
connectionName: string;
|
|
1031
1031
|
requestProtocol: "anthropic_messages" | "openai_responses";
|
|
1032
1032
|
}, {
|
|
1033
1033
|
status: "unknown" | "ready" | "unsupported" | "unavailable";
|
|
1034
|
-
agent: "
|
|
1034
|
+
agent: "claude" | "codex";
|
|
1035
1035
|
models: string[];
|
|
1036
1036
|
connectionId: string;
|
|
1037
1037
|
connectionName: string;
|
|
@@ -1049,14 +1049,14 @@ export declare const GatewayCapabilityViewResponseSchema: z.ZodObject<{
|
|
|
1049
1049
|
status: z.ZodEnum<["ready", "unknown", "unavailable", "unsupported"]>;
|
|
1050
1050
|
}, "strict", z.ZodTypeAny, {
|
|
1051
1051
|
status: "unknown" | "ready" | "unsupported" | "unavailable";
|
|
1052
|
-
agent: "
|
|
1052
|
+
agent: "claude" | "codex";
|
|
1053
1053
|
models: string[];
|
|
1054
1054
|
connectionId: string;
|
|
1055
1055
|
connectionName: string;
|
|
1056
1056
|
requestProtocol: "anthropic_messages" | "openai_responses";
|
|
1057
1057
|
}, {
|
|
1058
1058
|
status: "unknown" | "ready" | "unsupported" | "unavailable";
|
|
1059
|
-
agent: "
|
|
1059
|
+
agent: "claude" | "codex";
|
|
1060
1060
|
models: string[];
|
|
1061
1061
|
connectionId: string;
|
|
1062
1062
|
connectionName: string;
|
|
@@ -1065,7 +1065,7 @@ export declare const GatewayCapabilityViewResponseSchema: z.ZodObject<{
|
|
|
1065
1065
|
}, "strict", z.ZodTypeAny, {
|
|
1066
1066
|
data: {
|
|
1067
1067
|
status: "unknown" | "ready" | "unsupported" | "unavailable";
|
|
1068
|
-
agent: "
|
|
1068
|
+
agent: "claude" | "codex";
|
|
1069
1069
|
models: string[];
|
|
1070
1070
|
connectionId: string;
|
|
1071
1071
|
connectionName: string;
|
|
@@ -1075,7 +1075,7 @@ export declare const GatewayCapabilityViewResponseSchema: z.ZodObject<{
|
|
|
1075
1075
|
}, {
|
|
1076
1076
|
data: {
|
|
1077
1077
|
status: "unknown" | "ready" | "unsupported" | "unavailable";
|
|
1078
|
-
agent: "
|
|
1078
|
+
agent: "claude" | "codex";
|
|
1079
1079
|
models: string[];
|
|
1080
1080
|
connectionId: string;
|
|
1081
1081
|
connectionName: string;
|