@agentdock/wire 0.0.94 → 0.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/accountLanguage.d.ts +2 -8
  2. package/dist/activityPreferences.d.ts +0 -2
  3. package/dist/agentCapabilities.d.ts +16 -46
  4. package/dist/agentCommonEnv.d.ts +0 -9
  5. package/dist/agentInstallGuide.d.ts +0 -7
  6. package/dist/agentRuntimeSettings.d.ts +1 -2
  7. package/dist/bgTask.d.ts +13 -24
  8. package/dist/checkpointSchemas.d.ts +1 -2
  9. package/dist/controlLevel.d.ts +1 -9
  10. package/dist/edition.d.ts +0 -1
  11. package/dist/enterpriseGateway.d.ts +1 -2
  12. package/dist/enterprisePolicy.d.ts +1599 -0
  13. package/dist/enterprisePolicy.js +1 -0
  14. package/dist/enterprisePolicyExports.d.ts +2 -0
  15. package/dist/enterprisePolicyExports.js +1 -0
  16. package/dist/enterpriseRuntime.d.ts +317 -0
  17. package/dist/enterpriseRuntime.js +1 -0
  18. package/dist/envelope.d.ts +18 -30
  19. package/dist/errorMessage.d.ts +0 -1
  20. package/dist/events.d.ts +55 -71
  21. package/dist/features.d.ts +14 -29
  22. package/dist/feedback.d.ts +3 -4
  23. package/dist/fileWhitelist.d.ts +7 -39
  24. package/dist/gateway.d.ts +841 -43
  25. package/dist/gateway.js +1 -1
  26. package/dist/goals.d.ts +0 -1
  27. package/dist/handoffBrief.d.ts +1 -2
  28. package/dist/inboundEvents.d.ts +32 -75
  29. package/dist/index.d.ts +7 -6
  30. package/dist/index.js +1 -1
  31. package/dist/interactionEvents.d.ts +49 -57
  32. package/dist/legacyProtocol.d.ts +0 -6
  33. package/dist/license.d.ts +36 -37
  34. package/dist/machine.d.ts +48 -56
  35. package/dist/messageMeta.d.ts +15 -17
  36. package/dist/messages.d.ts +13 -20
  37. package/dist/notification.d.ts +2 -3
  38. package/dist/ops.d.ts +9 -27
  39. package/dist/pairing.d.ts +9 -49
  40. package/dist/permissionSubject.d.ts +3 -26
  41. package/dist/protocol.d.ts +0 -6
  42. package/dist/rpc.d.ts +118 -162
  43. package/dist/rpc.js +1 -1
  44. package/dist/scheduledTasks.d.ts +9 -10
  45. package/dist/semver.d.ts +3 -22
  46. package/dist/sessionBtw.d.ts +4 -5
  47. package/dist/sessionBtw.js +1 -1
  48. package/dist/sessionResult.d.ts +21 -27
  49. package/dist/sessionTitle.d.ts +2 -9
  50. package/dist/socketEvents.d.ts +4 -5
  51. package/dist/sourceMetadata.d.ts +1 -14
  52. package/dist/spawnError.d.ts +7 -14
  53. package/dist/stats.d.ts +13 -20
  54. package/dist/sync.d.ts +75 -156
  55. package/dist/taskResult.d.ts +3 -20
  56. package/dist/telemetry.d.ts +1 -11
  57. package/dist/utils.d.ts +0 -1
  58. package/dist/workItems.d.ts +6 -30
  59. package/package.json +1 -1
@@ -0,0 +1 @@
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 EnterprisePolicyBindingInputSchema=e.object({agent:r,model:t,connectionId:e.string().min(1),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),status:e.enum(["active","disabled"]).default("active"),bindings:e.array(EnterprisePolicyBindingInputSchema).max(200),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,connectionId:e.string().min(1),isDefault:e.boolean(),enabled:e.boolean(),routeId:e.string().min(1),requestProtocol:e.string().min(1),upstreamProtocol:e.string().min(1),provider:e.string().min(1),routeAlias:e.string().min(1).nullable(),routeStatus:e.string().min(1),connectionStatus:e.string().min(1)}).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,routeId:e.string().min(1),routeAlias:e.string().min(1).nullable(),sourceGroupId:e.string().min(1),sourceGroupName:e.string().min(1),sourceGroupPriority:e.number().int(),status:e.enum(["active","blocked"]),availability:e.enum(["ready","unknown","unavailable"]),availabilityReason:e.enum(["route-not-active","connection-not-active"]).optional(),blockedReason:e.enum(["route-not-found","route-not-active","connection-not-active","binding-route-mismatch"]).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();
@@ -0,0 +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';
@@ -0,0 +1 @@
1
+ "use strict";export{EnterprisePolicyBindingInputSchema,EnterprisePolicyGroupCreateSchema,EnterprisePolicyGroupUpdateSchema,EnterprisePolicyGroupReorderSchema,EnterprisePolicyGroupIdParamsSchema,EnterprisePolicyBindingViewSchema,EnterprisePolicyGroupViewSchema,EnterprisePolicyGroupViewResponseSchema,EnterprisePolicyGroupResponseSchema,EnterpriseEffectiveModelSchema,EnterpriseEffectiveAgentSchema,EnterpriseEffectiveConfigSchema,EnterpriseEffectiveUserConfigSchema,EnterpriseEffectiveConfigsSchema,EnterpriseEffectiveConfigsResponseSchema}from"./enterprisePolicy.js";
@@ -0,0 +1,317 @@
1
+ import { z } from 'zod';
2
+
3
+ export declare const EnterpriseAgentRuntimeSettingsSchema: z.ZodObject<{
4
+ edition: z.ZodLiteral<"enterprise">;
5
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
6
+ configVersion: z.ZodString;
7
+ issuedAt: z.ZodString;
8
+ expiresAt: z.ZodString;
9
+ gatewayUrl: z.ZodString;
10
+ platformGatewayToken: z.ZodString;
11
+ allowedModels: z.ZodArray<z.ZodString, "many">;
12
+ defaultModel: z.ZodNullable<z.ZodString>;
13
+ }, "strict", z.ZodTypeAny, {
14
+ agent: "codex" | "claude" | "opencode";
15
+ defaultModel: string | null;
16
+ configVersion: string;
17
+ edition: "enterprise";
18
+ issuedAt: string;
19
+ expiresAt: string;
20
+ gatewayUrl: string;
21
+ platformGatewayToken: string;
22
+ allowedModels: string[];
23
+ }, {
24
+ agent: "codex" | "claude" | "opencode";
25
+ defaultModel: string | null;
26
+ configVersion: string;
27
+ edition: "enterprise";
28
+ issuedAt: string;
29
+ expiresAt: string;
30
+ gatewayUrl: string;
31
+ platformGatewayToken: string;
32
+ allowedModels: string[];
33
+ }>;
34
+ export type EnterpriseAgentRuntimeSettings = z.infer<typeof EnterpriseAgentRuntimeSettingsSchema>;
35
+
36
+ export declare const EnterpriseAgentRuntimeConfigSchema: z.ZodObject<{
37
+ username: z.ZodString;
38
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
39
+ routeId: z.ZodOptional<z.ZodString>;
40
+ machineId: z.ZodOptional<z.ZodString>;
41
+ configVersion: z.ZodOptional<z.ZodString>;
42
+ issuedAt: z.ZodOptional<z.ZodString>;
43
+ expiresAt: z.ZodOptional<z.ZodString>;
44
+ gatewayUrl: z.ZodOptional<z.ZodString>;
45
+ platformGatewayToken: z.ZodOptional<z.ZodString>;
46
+ allowedModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
+ defaultModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ clearGatewayCredentials: z.ZodOptional<z.ZodBoolean>;
49
+ claudeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
+ codexConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
51
+ opencodeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ }, "strict", z.ZodTypeAny, {
53
+ agent: "codex" | "claude" | "opencode";
54
+ username: string;
55
+ machineId?: string | undefined;
56
+ routeId?: string | undefined;
57
+ defaultModel?: string | null | undefined;
58
+ configVersion?: string | undefined;
59
+ issuedAt?: string | undefined;
60
+ expiresAt?: string | undefined;
61
+ gatewayUrl?: string | undefined;
62
+ platformGatewayToken?: string | undefined;
63
+ allowedModels?: string[] | undefined;
64
+ clearGatewayCredentials?: boolean | undefined;
65
+ claudeConfig?: Record<string, unknown> | undefined;
66
+ codexConfig?: Record<string, unknown> | undefined;
67
+ opencodeConfig?: Record<string, unknown> | undefined;
68
+ }, {
69
+ agent: "codex" | "claude" | "opencode";
70
+ username: string;
71
+ machineId?: string | undefined;
72
+ routeId?: string | undefined;
73
+ defaultModel?: string | null | undefined;
74
+ configVersion?: string | undefined;
75
+ issuedAt?: string | undefined;
76
+ expiresAt?: string | undefined;
77
+ gatewayUrl?: string | undefined;
78
+ platformGatewayToken?: string | undefined;
79
+ allowedModels?: string[] | undefined;
80
+ clearGatewayCredentials?: boolean | undefined;
81
+ claudeConfig?: Record<string, unknown> | undefined;
82
+ codexConfig?: Record<string, unknown> | undefined;
83
+ opencodeConfig?: Record<string, unknown> | undefined;
84
+ }>;
85
+ export declare const EnterpriseAgentRuntimeConfigBatchSchema: z.ZodObject<{
86
+ configs: z.ZodArray<z.ZodObject<{
87
+ username: z.ZodString;
88
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
89
+ routeId: z.ZodOptional<z.ZodString>;
90
+ machineId: z.ZodOptional<z.ZodString>;
91
+ configVersion: z.ZodOptional<z.ZodString>;
92
+ issuedAt: z.ZodOptional<z.ZodString>;
93
+ expiresAt: z.ZodOptional<z.ZodString>;
94
+ gatewayUrl: z.ZodOptional<z.ZodString>;
95
+ platformGatewayToken: z.ZodOptional<z.ZodString>;
96
+ allowedModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
97
+ defaultModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ clearGatewayCredentials: z.ZodOptional<z.ZodBoolean>;
99
+ claudeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
100
+ codexConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
101
+ opencodeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ agent: "codex" | "claude" | "opencode";
104
+ username: string;
105
+ machineId?: string | undefined;
106
+ routeId?: string | undefined;
107
+ defaultModel?: string | null | undefined;
108
+ configVersion?: string | undefined;
109
+ issuedAt?: string | undefined;
110
+ expiresAt?: string | undefined;
111
+ gatewayUrl?: string | undefined;
112
+ platformGatewayToken?: string | undefined;
113
+ allowedModels?: string[] | undefined;
114
+ clearGatewayCredentials?: boolean | undefined;
115
+ claudeConfig?: Record<string, unknown> | undefined;
116
+ codexConfig?: Record<string, unknown> | undefined;
117
+ opencodeConfig?: Record<string, unknown> | undefined;
118
+ }, {
119
+ agent: "codex" | "claude" | "opencode";
120
+ username: string;
121
+ machineId?: string | undefined;
122
+ routeId?: string | undefined;
123
+ defaultModel?: string | null | undefined;
124
+ configVersion?: string | undefined;
125
+ issuedAt?: string | undefined;
126
+ expiresAt?: string | undefined;
127
+ gatewayUrl?: string | undefined;
128
+ platformGatewayToken?: string | undefined;
129
+ allowedModels?: string[] | undefined;
130
+ clearGatewayCredentials?: boolean | undefined;
131
+ claudeConfig?: Record<string, unknown> | undefined;
132
+ codexConfig?: Record<string, unknown> | undefined;
133
+ opencodeConfig?: Record<string, unknown> | undefined;
134
+ }>, "many">;
135
+ }, "strict", z.ZodTypeAny, {
136
+ configs: {
137
+ agent: "codex" | "claude" | "opencode";
138
+ username: string;
139
+ machineId?: string | undefined;
140
+ routeId?: string | undefined;
141
+ defaultModel?: string | null | undefined;
142
+ configVersion?: string | undefined;
143
+ issuedAt?: string | undefined;
144
+ expiresAt?: string | undefined;
145
+ gatewayUrl?: string | undefined;
146
+ platformGatewayToken?: string | undefined;
147
+ allowedModels?: string[] | undefined;
148
+ clearGatewayCredentials?: boolean | undefined;
149
+ claudeConfig?: Record<string, unknown> | undefined;
150
+ codexConfig?: Record<string, unknown> | undefined;
151
+ opencodeConfig?: Record<string, unknown> | undefined;
152
+ }[];
153
+ }, {
154
+ configs: {
155
+ agent: "codex" | "claude" | "opencode";
156
+ username: string;
157
+ machineId?: string | undefined;
158
+ routeId?: string | undefined;
159
+ defaultModel?: string | null | undefined;
160
+ configVersion?: string | undefined;
161
+ issuedAt?: string | undefined;
162
+ expiresAt?: string | undefined;
163
+ gatewayUrl?: string | undefined;
164
+ platformGatewayToken?: string | undefined;
165
+ allowedModels?: string[] | undefined;
166
+ clearGatewayCredentials?: boolean | undefined;
167
+ claudeConfig?: Record<string, unknown> | undefined;
168
+ codexConfig?: Record<string, unknown> | undefined;
169
+ opencodeConfig?: Record<string, unknown> | undefined;
170
+ }[];
171
+ }>;
172
+ export type EnterpriseAgentRuntimeConfig = z.infer<typeof EnterpriseAgentRuntimeConfigSchema>;
173
+ export declare const EnterpriseRuntimeBindingDiagnosticSchema: z.ZodObject<{
174
+ id: z.ZodString;
175
+ routeId: z.ZodString;
176
+ model: z.ZodString;
177
+ username: z.ZodString;
178
+ machineId: z.ZodString;
179
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
180
+ status: z.ZodEnum<["active", "revoked", "expired", "failed"]>;
181
+ configVersion: z.ZodString;
182
+ issuedAt: z.ZodString;
183
+ expiresAt: z.ZodString;
184
+ revokedAt: z.ZodNullable<z.ZodString>;
185
+ lastErrorCode: z.ZodNullable<z.ZodString>;
186
+ cleanupPending: z.ZodOptional<z.ZodBoolean>;
187
+ cleanupAttempts: z.ZodOptional<z.ZodNumber>;
188
+ cleanupAvailableAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ cleanupLastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ }, "strict", z.ZodTypeAny, {
191
+ status: "failed" | "active" | "revoked" | "expired";
192
+ model: string;
193
+ agent: "codex" | "claude" | "opencode";
194
+ id: string;
195
+ machineId: string;
196
+ routeId: string;
197
+ username: string;
198
+ configVersion: string;
199
+ issuedAt: string;
200
+ expiresAt: string;
201
+ revokedAt: string | null;
202
+ lastErrorCode: string | null;
203
+ cleanupPending?: boolean | undefined;
204
+ cleanupAttempts?: number | undefined;
205
+ cleanupAvailableAt?: string | null | undefined;
206
+ cleanupLastError?: string | null | undefined;
207
+ }, {
208
+ status: "failed" | "active" | "revoked" | "expired";
209
+ model: string;
210
+ agent: "codex" | "claude" | "opencode";
211
+ id: string;
212
+ machineId: string;
213
+ routeId: string;
214
+ username: string;
215
+ configVersion: string;
216
+ issuedAt: string;
217
+ expiresAt: string;
218
+ revokedAt: string | null;
219
+ lastErrorCode: string | null;
220
+ cleanupPending?: boolean | undefined;
221
+ cleanupAttempts?: number | undefined;
222
+ cleanupAvailableAt?: string | null | undefined;
223
+ cleanupLastError?: string | null | undefined;
224
+ }>;
225
+ export declare const EnterpriseRuntimeBindingDiagnosticsSchema: z.ZodObject<{
226
+ bindings: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ routeId: z.ZodString;
229
+ model: z.ZodString;
230
+ username: z.ZodString;
231
+ machineId: z.ZodString;
232
+ agent: z.ZodEnum<["claude", "codex", "opencode"]>;
233
+ status: z.ZodEnum<["active", "revoked", "expired", "failed"]>;
234
+ configVersion: z.ZodString;
235
+ issuedAt: z.ZodString;
236
+ expiresAt: z.ZodString;
237
+ revokedAt: z.ZodNullable<z.ZodString>;
238
+ lastErrorCode: z.ZodNullable<z.ZodString>;
239
+ cleanupPending: z.ZodOptional<z.ZodBoolean>;
240
+ cleanupAttempts: z.ZodOptional<z.ZodNumber>;
241
+ cleanupAvailableAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ cleanupLastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
243
+ }, "strict", z.ZodTypeAny, {
244
+ status: "failed" | "active" | "revoked" | "expired";
245
+ model: string;
246
+ agent: "codex" | "claude" | "opencode";
247
+ id: string;
248
+ machineId: string;
249
+ routeId: string;
250
+ username: string;
251
+ configVersion: string;
252
+ issuedAt: string;
253
+ expiresAt: string;
254
+ revokedAt: string | null;
255
+ lastErrorCode: string | null;
256
+ cleanupPending?: boolean | undefined;
257
+ cleanupAttempts?: number | undefined;
258
+ cleanupAvailableAt?: string | null | undefined;
259
+ cleanupLastError?: string | null | undefined;
260
+ }, {
261
+ status: "failed" | "active" | "revoked" | "expired";
262
+ model: string;
263
+ agent: "codex" | "claude" | "opencode";
264
+ id: string;
265
+ machineId: string;
266
+ routeId: string;
267
+ username: string;
268
+ configVersion: string;
269
+ issuedAt: string;
270
+ expiresAt: string;
271
+ revokedAt: string | null;
272
+ lastErrorCode: string | null;
273
+ cleanupPending?: boolean | undefined;
274
+ cleanupAttempts?: number | undefined;
275
+ cleanupAvailableAt?: string | null | undefined;
276
+ cleanupLastError?: string | null | undefined;
277
+ }>, "many">;
278
+ }, "strict", z.ZodTypeAny, {
279
+ bindings: {
280
+ status: "failed" | "active" | "revoked" | "expired";
281
+ model: string;
282
+ agent: "codex" | "claude" | "opencode";
283
+ id: string;
284
+ machineId: string;
285
+ routeId: string;
286
+ username: string;
287
+ configVersion: string;
288
+ issuedAt: string;
289
+ expiresAt: string;
290
+ revokedAt: string | null;
291
+ lastErrorCode: string | null;
292
+ cleanupPending?: boolean | undefined;
293
+ cleanupAttempts?: number | undefined;
294
+ cleanupAvailableAt?: string | null | undefined;
295
+ cleanupLastError?: string | null | undefined;
296
+ }[];
297
+ }, {
298
+ bindings: {
299
+ status: "failed" | "active" | "revoked" | "expired";
300
+ model: string;
301
+ agent: "codex" | "claude" | "opencode";
302
+ id: string;
303
+ machineId: string;
304
+ routeId: string;
305
+ username: string;
306
+ configVersion: string;
307
+ issuedAt: string;
308
+ expiresAt: string;
309
+ revokedAt: string | null;
310
+ lastErrorCode: string | null;
311
+ cleanupPending?: boolean | undefined;
312
+ cleanupAttempts?: number | undefined;
313
+ cleanupAvailableAt?: string | null | undefined;
314
+ cleanupLastError?: string | null | undefined;
315
+ }[];
316
+ }>;
317
+ export type EnterpriseRuntimeBindingDiagnostic = z.infer<typeof EnterpriseRuntimeBindingDiagnosticSchema>;
@@ -0,0 +1 @@
1
+ "use strict";import{z as n}from"zod";const t=n.enum(["claude","codex","opencode"]);export const EnterpriseAgentRuntimeSettingsSchema=n.object({edition:n.literal("enterprise"),agent:t,configVersion:n.string().min(1),issuedAt:n.string().datetime(),expiresAt:n.string().datetime(),gatewayUrl:n.string().url(),platformGatewayToken:n.string().min(1),allowedModels:n.array(n.string().min(1)).max(200),defaultModel:n.string().min(1).nullable()}).strict(),EnterpriseAgentRuntimeConfigSchema=n.object({username:n.string().min(1),agent:t,routeId:n.string().min(1).optional(),machineId:n.string().min(1).optional(),configVersion:n.string().min(1).optional(),issuedAt:n.string().datetime().optional(),expiresAt:n.string().datetime().optional(),gatewayUrl:n.string().url().optional(),platformGatewayToken:n.string().min(1).optional(),allowedModels:n.array(n.string().min(1)).max(200).optional(),defaultModel:n.string().min(1).nullable().optional(),clearGatewayCredentials:n.boolean().optional(),claudeConfig:n.record(n.unknown()).optional(),codexConfig:n.record(n.unknown()).optional(),opencodeConfig:n.record(n.unknown()).optional()}).strict(),EnterpriseAgentRuntimeConfigBatchSchema=n.object({configs:n.array(EnterpriseAgentRuntimeConfigSchema).max(1e4)}).strict(),EnterpriseRuntimeBindingDiagnosticSchema=n.object({id:n.string().min(1),routeId:n.string().min(1),model:n.string().min(1),username:n.string().min(1),machineId:n.string().min(1),agent:t,status:n.enum(["active","revoked","expired","failed"]),configVersion:n.string().min(1),issuedAt:n.string().datetime(),expiresAt:n.string().datetime(),revokedAt:n.string().datetime().nullable(),lastErrorCode:n.string().min(1).max(200).nullable(),cleanupPending:n.boolean().optional(),cleanupAttempts:n.number().int().nonnegative().optional(),cleanupAvailableAt:n.string().datetime().nullable().optional(),cleanupLastError:n.string().max(200).nullable().optional()}).strict(),EnterpriseRuntimeBindingDiagnosticsSchema=n.object({bindings:n.array(EnterpriseRuntimeBindingDiagnosticSchema).max(1e4)}).strict();
@@ -1,8 +1,3 @@
1
- /**
2
- * Session envelope schema.
3
- *
4
- * Wraps a SessionEvent with metadata (id, time, role, turn, subagent).
5
- */
6
1
  import { z } from 'zod';
7
2
  import type { SessionEvent } from './events.js';
8
3
  export declare const SessionRoleSchema: z.ZodEnum<["user", "agent"]>;
@@ -13,11 +8,11 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
13
8
  role: z.ZodEnum<["user", "agent"]>;
14
9
  turn: z.ZodOptional<z.ZodString>;
15
10
  subagent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
- /** Claude CLI message UUID — used for precise conversation rollback. */
11
+
17
12
  messageUuid: z.ZodOptional<z.ZodString>;
18
- /** Tool call ID — routes child events (e.g. bg-task:completed) to the parent card. */
13
+
19
14
  toolCallId: z.ZodOptional<z.ZodString>;
20
- /** Non-hierarchical origin label for multiplexed provider subagent output. */
15
+
21
16
  sourceAgent: z.ZodOptional<z.ZodObject<{
22
17
  threadId: z.ZodString;
23
18
  label: z.ZodString;
@@ -1169,11 +1164,11 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
1169
1164
  role: z.ZodEnum<["user", "agent"]>;
1170
1165
  turn: z.ZodOptional<z.ZodString>;
1171
1166
  subagent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1172
- /** Claude CLI message UUID — used for precise conversation rollback. */
1167
+
1173
1168
  messageUuid: z.ZodOptional<z.ZodString>;
1174
- /** Tool call ID — routes child events (e.g. bg-task:completed) to the parent card. */
1169
+
1175
1170
  toolCallId: z.ZodOptional<z.ZodString>;
1176
- /** Non-hierarchical origin label for multiplexed provider subagent output. */
1171
+
1177
1172
  sourceAgent: z.ZodOptional<z.ZodObject<{
1178
1173
  threadId: z.ZodString;
1179
1174
  label: z.ZodString;
@@ -2325,11 +2320,11 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
2325
2320
  role: z.ZodEnum<["user", "agent"]>;
2326
2321
  turn: z.ZodOptional<z.ZodString>;
2327
2322
  subagent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2328
- /** Claude CLI message UUID — used for precise conversation rollback. */
2323
+
2329
2324
  messageUuid: z.ZodOptional<z.ZodString>;
2330
- /** Tool call ID — routes child events (e.g. bg-task:completed) to the parent card. */
2325
+
2331
2326
  toolCallId: z.ZodOptional<z.ZodString>;
2332
- /** Non-hierarchical origin label for multiplexed provider subagent output. */
2327
+
2333
2328
  sourceAgent: z.ZodOptional<z.ZodObject<{
2334
2329
  threadId: z.ZodString;
2335
2330
  label: z.ZodString;
@@ -3481,11 +3476,11 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
3481
3476
  role: z.ZodEnum<["user", "agent"]>;
3482
3477
  turn: z.ZodOptional<z.ZodString>;
3483
3478
  subagent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3484
- /** Claude CLI message UUID — used for precise conversation rollback. */
3479
+
3485
3480
  messageUuid: z.ZodOptional<z.ZodString>;
3486
- /** Tool call ID — routes child events (e.g. bg-task:completed) to the parent card. */
3481
+
3487
3482
  toolCallId: z.ZodOptional<z.ZodString>;
3488
- /** Non-hierarchical origin label for multiplexed provider subagent output. */
3483
+
3489
3484
  sourceAgent: z.ZodOptional<z.ZodObject<{
3490
3485
  threadId: z.ZodString;
3491
3486
  label: z.ZodString;
@@ -4637,11 +4632,11 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
4637
4632
  role: z.ZodEnum<["user", "agent"]>;
4638
4633
  turn: z.ZodOptional<z.ZodString>;
4639
4634
  subagent: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4640
- /** Claude CLI message UUID — used for precise conversation rollback. */
4635
+
4641
4636
  messageUuid: z.ZodOptional<z.ZodString>;
4642
- /** Tool call ID — routes child events (e.g. bg-task:completed) to the parent card. */
4637
+
4643
4638
  toolCallId: z.ZodOptional<z.ZodString>;
4644
- /** Non-hierarchical origin label for multiplexed provider subagent output. */
4639
+
4645
4640
  sourceAgent: z.ZodOptional<z.ZodObject<{
4646
4641
  threadId: z.ZodString;
4647
4642
  label: z.ZodString;
@@ -5794,9 +5789,9 @@ export interface CreateEnvelopeOptions {
5794
5789
  readonly time?: number;
5795
5790
  readonly turn?: string;
5796
5791
  readonly subagent?: string;
5797
- /** Claude CLI message UUID — used for precise conversation rollback. */
5792
+
5798
5793
  readonly messageUuid?: string;
5799
- /** Tool call ID — used to route child events (e.g. bg-task:completed) to parent card. */
5794
+
5800
5795
  readonly toolCallId?: string;
5801
5796
  readonly sourceAgent?: {
5802
5797
  readonly threadId: string;
@@ -5804,12 +5799,5 @@ export interface CreateEnvelopeOptions {
5804
5799
  readonly parentSpawnCallId?: string;
5805
5800
  };
5806
5801
  }
5807
- /**
5808
- * Create a SessionEnvelope by direct construction (hot path).
5809
- *
5810
- * Skips Zod `.parse()` for performance — the discriminated union with
5811
- * 14 variants + 4 superRefine checks is expensive on every streaming token.
5812
- * Validation still happens at ingress boundaries (server API handlers).
5813
- */
5802
+
5814
5803
  export declare function createEnvelope(role: SessionRole, ev: SessionEvent, opts?: CreateEnvelopeOptions): SessionEnvelope;
5815
- //# sourceMappingURL=envelope.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function errorMessage(err: unknown): string;
2
- //# sourceMappingURL=errorMessage.d.ts.map