@sequenceholdings/agent-spec 0.1.2 → 0.1.4

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 (76) hide show
  1. package/README.md +152 -0
  2. package/dist/agent-definition.d.ts +626 -0
  3. package/dist/agent-definition.js +250 -0
  4. package/dist/canonical-json.d.ts +2 -0
  5. package/dist/canonical-json.js +13 -0
  6. package/dist/client-proposals.d.ts +20 -0
  7. package/dist/client-proposals.js +172 -0
  8. package/dist/index.d.ts +4 -116
  9. package/dist/index.js +4 -247
  10. package/dist/input-schema.d.ts +19 -0
  11. package/dist/input-schema.js +57 -0
  12. package/dist/job-request-hash.d.ts +27 -0
  13. package/dist/job-request-hash.js +54 -0
  14. package/dist/voice-access.d.ts +40 -0
  15. package/dist/voice-access.js +34 -0
  16. package/dist/voice-actions-contracts.d.ts +423 -0
  17. package/dist/voice-actions-contracts.js +95 -0
  18. package/dist/voice-actions-transitions.d.ts +52 -0
  19. package/dist/voice-actions-transitions.js +170 -0
  20. package/dist/voice-actions.d.ts +2 -0
  21. package/dist/voice-actions.js +2 -0
  22. package/dist/voice-api.d.ts +1102 -0
  23. package/dist/voice-api.js +164 -0
  24. package/dist/voice-authoring.d.ts +463 -0
  25. package/dist/voice-authoring.js +132 -0
  26. package/dist/voice-authority-contracts.d.ts +247 -0
  27. package/dist/voice-authority-contracts.js +177 -0
  28. package/dist/voice-authority-evaluation.d.ts +29 -0
  29. package/dist/voice-authority-evaluation.js +80 -0
  30. package/dist/voice-authority-verification.d.ts +47 -0
  31. package/dist/voice-authority-verification.js +184 -0
  32. package/dist/voice-authority.d.ts +3 -0
  33. package/dist/voice-authority.js +3 -0
  34. package/dist/voice-common.d.ts +21 -0
  35. package/dist/voice-common.js +23 -0
  36. package/dist/voice-drafts.d.ts +441 -0
  37. package/dist/voice-drafts.js +75 -0
  38. package/dist/voice-grant.d.ts +19 -0
  39. package/dist/voice-grant.js +21 -0
  40. package/dist/voice-lifecycle-control.d.ts +130 -0
  41. package/dist/voice-lifecycle-control.js +138 -0
  42. package/dist/voice-lifecycle-session.d.ts +168 -0
  43. package/dist/voice-lifecycle-session.js +114 -0
  44. package/dist/voice-lifecycle-states.d.ts +96 -0
  45. package/dist/voice-lifecycle-states.js +139 -0
  46. package/dist/voice-lifecycle.d.ts +3 -0
  47. package/dist/voice-lifecycle.js +3 -0
  48. package/dist/voice-policy-duration.d.ts +46 -0
  49. package/dist/voice-policy-duration.js +166 -0
  50. package/dist/voice-policy-limits.d.ts +174 -0
  51. package/dist/voice-policy-limits.js +188 -0
  52. package/dist/voice-policy.d.ts +2 -0
  53. package/dist/voice-policy.js +2 -0
  54. package/dist/voice-provider-evidence.d.ts +80 -0
  55. package/dist/voice-provider-evidence.js +115 -0
  56. package/dist/voice-provider-publication.d.ts +319 -0
  57. package/dist/voice-provider-publication.js +117 -0
  58. package/dist/voice-provider-release.d.ts +386 -0
  59. package/dist/voice-provider-release.js +154 -0
  60. package/dist/voice-provider.d.ts +3 -0
  61. package/dist/voice-provider.js +3 -0
  62. package/dist/voice-release.d.ts +808 -0
  63. package/dist/voice-release.js +110 -0
  64. package/dist/voice-runs-audio.d.ts +157 -0
  65. package/dist/voice-runs-audio.js +85 -0
  66. package/dist/voice-runs-evidence.d.ts +183 -0
  67. package/dist/voice-runs-evidence.js +154 -0
  68. package/dist/voice-runs-model.d.ts +967 -0
  69. package/dist/voice-runs-model.js +199 -0
  70. package/dist/voice-runs-tooling.d.ts +88 -0
  71. package/dist/voice-runs-tooling.js +100 -0
  72. package/dist/voice-runs.d.ts +4 -0
  73. package/dist/voice-runs.js +4 -0
  74. package/dist/voice.d.ts +13 -0
  75. package/dist/voice.js +13 -0
  76. package/package.json +8 -3
@@ -0,0 +1,626 @@
1
+ import { z } from 'zod';
2
+ export { canonicalJson } from './canonical-json.js';
3
+ export { voiceDeclarationSchema } from './voice-authoring.js';
4
+ export type { VoiceDeclaration, VoiceDeclarationInput } from './voice-authoring.js';
5
+ export type UnsupportedConstraint = {
6
+ path: string;
7
+ type: string;
8
+ keyword: string;
9
+ };
10
+ export declare function collectUnsupportedConstraints({ schema, path, }: {
11
+ schema: unknown;
12
+ path?: string;
13
+ }): UnsupportedConstraint[];
14
+ export declare const AGENT_PERMISSION_ROLES: readonly ["owner", "editor", "invoker", "outputs_viewer"];
15
+ export type AgentPermissionRole = (typeof AGENT_PERMISSION_ROLES)[number];
16
+ export declare const AGENT_REFERENCE_KINDS: readonly ["mcp_server", "skill", "subagent", "managed_function"];
17
+ export type AgentReferenceKind = (typeof AGENT_REFERENCE_KINDS)[number];
18
+ export declare const agentReferenceSchema: z.ZodObject<{
19
+ kind: z.ZodEnum<{
20
+ mcp_server: "mcp_server";
21
+ skill: "skill";
22
+ subagent: "subagent";
23
+ managed_function: "managed_function";
24
+ }>;
25
+ id: z.ZodString;
26
+ }, z.core.$strict>;
27
+ export type AgentReference = z.infer<typeof agentReferenceSchema>;
28
+ export declare const textAgentDefinitionSchema: z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ description: z.ZodOptional<z.ZodString>;
32
+ framework: z.ZodOptional<z.ZodEnum<{
33
+ vercel: "vercel";
34
+ "claude-agent": "claude-agent";
35
+ }>>;
36
+ vmBackend: z.ZodOptional<z.ZodEnum<{
37
+ gce: "gce";
38
+ e2b: "e2b";
39
+ }>>;
40
+ idleTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
41
+ agentCapabilities: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ claudeToolSearch: z.ZodOptional<z.ZodEnum<{
43
+ enabled: "enabled";
44
+ disabled: "disabled";
45
+ auto: "auto";
46
+ }>>;
47
+ claudeBuiltInTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
48
+ openaiCodeInterpreter: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodObject<{
49
+ enabled: z.ZodBoolean;
50
+ containerId: z.ZodOptional<z.ZodString>;
51
+ fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ }, z.core.$strip>>>>;
53
+ model: z.ZodDefault<z.ZodObject<{
54
+ provider: z.ZodString;
55
+ name: z.ZodString;
56
+ }, z.core.$strip>>;
57
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ systemPrompt: z.ZodOptional<z.ZodString>;
61
+ tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
62
+ clientProposals: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ name: z.ZodString;
64
+ description: z.ZodString;
65
+ inputSchema: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
+ }, z.core.$strict>>>;
67
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ requiredMcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
69
+ requiredReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ kind: z.ZodEnum<{
71
+ mcp_server: "mcp_server";
72
+ skill: "skill";
73
+ subagent: "subagent";
74
+ managed_function: "managed_function";
75
+ }>;
76
+ id: z.ZodString;
77
+ }, z.core.$strict>>>;
78
+ managedFunctions: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
+ excludedMcpTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
80
+ hideIntermediateText: z.ZodOptional<z.ZodBoolean>;
81
+ middleware: z.ZodDefault<z.ZodArray<z.ZodString>>;
82
+ subagents: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
83
+ id: z.ZodString;
84
+ forkContext: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strip>]>>>;
86
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
87
+ contextFileIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
88
+ structuredOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ inputSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
90
+ fields: z.ZodArray<z.ZodObject<{
91
+ name: z.ZodString;
92
+ label: z.ZodOptional<z.ZodString>;
93
+ description: z.ZodOptional<z.ZodString>;
94
+ type: z.ZodEnum<{
95
+ string: "string";
96
+ number: "number";
97
+ boolean: "boolean";
98
+ text: "text";
99
+ enum: "enum";
100
+ }>;
101
+ required: z.ZodOptional<z.ZodBoolean>;
102
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
103
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ placeholder: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>>;
106
+ }, z.core.$strip>>>;
107
+ promptTemplate: z.ZodOptional<z.ZodString>;
108
+ webhooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ mcpServerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
+ stubConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
111
+ maxTtlSeconds: z.ZodOptional<z.ZodNumber>;
112
+ agentPermissions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
113
+ apiPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ managedBy: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"automation">>>;
115
+ isPublic: z.ZodOptional<z.ZodBoolean>;
116
+ publicOutputs: z.ZodOptional<z.ZodBoolean>;
117
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ type: z.ZodEnum<{
119
+ user: "user";
120
+ group: "group";
121
+ }>;
122
+ id: z.ZodString;
123
+ role: z.ZodEnum<{
124
+ owner: "owner";
125
+ editor: "editor";
126
+ invoker: "invoker";
127
+ outputs_viewer: "outputs_viewer";
128
+ }>;
129
+ }, z.core.$strip>>>;
130
+ mode: z.ZodOptional<z.ZodLiteral<"text">>;
131
+ voice: z.ZodOptional<z.ZodNever>;
132
+ }, z.core.$strict>;
133
+ export declare const voiceAgentDefinitionSchema: z.ZodObject<{
134
+ name: z.ZodString;
135
+ description: z.ZodOptional<z.ZodString>;
136
+ id: z.ZodString;
137
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ type: z.ZodEnum<{
139
+ user: "user";
140
+ group: "group";
141
+ }>;
142
+ id: z.ZodString;
143
+ role: z.ZodEnum<{
144
+ owner: "owner";
145
+ editor: "editor";
146
+ invoker: "invoker";
147
+ outputs_viewer: "outputs_viewer";
148
+ }>;
149
+ }, z.core.$strip>>>;
150
+ mode: z.ZodLiteral<"voice">;
151
+ model: z.ZodObject<{
152
+ provider: z.ZodString;
153
+ name: z.ZodString;
154
+ }, z.core.$strict>;
155
+ systemPrompt: z.ZodString;
156
+ skills: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
157
+ voice: z.ZodPipe<z.ZodObject<{
158
+ schemaVersion: z.ZodLiteral<"1">;
159
+ voice: z.ZodString;
160
+ language: z.ZodString;
161
+ firstMessage: z.ZodString;
162
+ procedures: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
163
+ key: z.ZodString;
164
+ name: z.ZodString;
165
+ instructions: z.ZodString;
166
+ activationDescription: z.ZodString;
167
+ source: z.ZodObject<{
168
+ skillId: z.ZodString;
169
+ contentHash: z.ZodOptional<z.ZodString>;
170
+ }, z.core.$strict>;
171
+ toolAliases: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
172
+ subprocedures: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
173
+ }, z.core.$strict>, z.ZodTransform<{
174
+ source: {
175
+ skillId: string;
176
+ contentHash: string;
177
+ };
178
+ key: string;
179
+ name: string;
180
+ instructions: string;
181
+ activationDescription: string;
182
+ toolAliases: string[];
183
+ subprocedures: string[];
184
+ }, {
185
+ key: string;
186
+ name: string;
187
+ instructions: string;
188
+ activationDescription: string;
189
+ source: {
190
+ skillId: string;
191
+ contentHash?: string | undefined;
192
+ };
193
+ toolAliases: string[];
194
+ subprocedures: string[];
195
+ }>>>>;
196
+ tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
197
+ alias: z.ZodString;
198
+ description: z.ZodString;
199
+ managedFunction: z.ZodObject<{
200
+ ref: z.ZodString;
201
+ operation: z.ZodString;
202
+ }, z.core.$strict>;
203
+ inputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
204
+ argument: z.ZodString;
205
+ parameter: z.ZodString;
206
+ }, z.core.$strict>>>;
207
+ outputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
208
+ field: z.ZodString;
209
+ result: z.ZodString;
210
+ }, z.core.$strict>>>;
211
+ }, z.core.$strict>, z.ZodTransform<{
212
+ inputMappings: {
213
+ argument: string;
214
+ parameter: string;
215
+ }[];
216
+ outputMappings: {
217
+ field: string;
218
+ result: string;
219
+ }[];
220
+ alias: string;
221
+ description: string;
222
+ managedFunction: {
223
+ ref: string;
224
+ operation: string;
225
+ };
226
+ }, {
227
+ alias: string;
228
+ description: string;
229
+ managedFunction: {
230
+ ref: string;
231
+ operation: string;
232
+ };
233
+ inputMappings: {
234
+ argument: string;
235
+ parameter: string;
236
+ }[];
237
+ outputMappings: {
238
+ field: string;
239
+ result: string;
240
+ }[];
241
+ }>>>>;
242
+ }, z.core.$strict>, z.ZodTransform<{
243
+ procedures: {
244
+ source: {
245
+ skillId: string;
246
+ contentHash: string;
247
+ };
248
+ key: string;
249
+ name: string;
250
+ instructions: string;
251
+ activationDescription: string;
252
+ toolAliases: string[];
253
+ subprocedures: string[];
254
+ }[];
255
+ tools: {
256
+ inputMappings: {
257
+ argument: string;
258
+ parameter: string;
259
+ }[];
260
+ outputMappings: {
261
+ field: string;
262
+ result: string;
263
+ }[];
264
+ alias: string;
265
+ description: string;
266
+ managedFunction: {
267
+ ref: string;
268
+ operation: string;
269
+ };
270
+ }[];
271
+ schemaVersion: "1";
272
+ voice: string;
273
+ language: string;
274
+ firstMessage: string;
275
+ }, {
276
+ schemaVersion: "1";
277
+ voice: string;
278
+ language: string;
279
+ firstMessage: string;
280
+ procedures: {
281
+ source: {
282
+ skillId: string;
283
+ contentHash: string;
284
+ };
285
+ key: string;
286
+ name: string;
287
+ instructions: string;
288
+ activationDescription: string;
289
+ toolAliases: string[];
290
+ subprocedures: string[];
291
+ }[];
292
+ tools: {
293
+ inputMappings: {
294
+ argument: string;
295
+ parameter: string;
296
+ }[];
297
+ outputMappings: {
298
+ field: string;
299
+ result: string;
300
+ }[];
301
+ alias: string;
302
+ description: string;
303
+ managedFunction: {
304
+ ref: string;
305
+ operation: string;
306
+ };
307
+ }[];
308
+ }>>;
309
+ isPublic: z.ZodOptional<z.ZodLiteral<false>>;
310
+ publicOutputs: z.ZodOptional<z.ZodLiteral<false>>;
311
+ }, z.core.$strict>;
312
+ export declare const agentDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
313
+ id: z.ZodString;
314
+ name: z.ZodString;
315
+ description: z.ZodOptional<z.ZodString>;
316
+ framework: z.ZodOptional<z.ZodEnum<{
317
+ vercel: "vercel";
318
+ "claude-agent": "claude-agent";
319
+ }>>;
320
+ vmBackend: z.ZodOptional<z.ZodEnum<{
321
+ gce: "gce";
322
+ e2b: "e2b";
323
+ }>>;
324
+ idleTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
325
+ agentCapabilities: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
326
+ claudeToolSearch: z.ZodOptional<z.ZodEnum<{
327
+ enabled: "enabled";
328
+ disabled: "disabled";
329
+ auto: "auto";
330
+ }>>;
331
+ claudeBuiltInTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
332
+ openaiCodeInterpreter: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodObject<{
333
+ enabled: z.ZodBoolean;
334
+ containerId: z.ZodOptional<z.ZodString>;
335
+ fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
336
+ }, z.core.$strip>>>>;
337
+ model: z.ZodDefault<z.ZodObject<{
338
+ provider: z.ZodString;
339
+ name: z.ZodString;
340
+ }, z.core.$strip>>;
341
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
342
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
344
+ systemPrompt: z.ZodOptional<z.ZodString>;
345
+ tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
346
+ clientProposals: z.ZodOptional<z.ZodArray<z.ZodObject<{
347
+ name: z.ZodString;
348
+ description: z.ZodString;
349
+ inputSchema: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
350
+ }, z.core.$strict>>>;
351
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
352
+ requiredMcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
353
+ requiredReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
+ kind: z.ZodEnum<{
355
+ mcp_server: "mcp_server";
356
+ skill: "skill";
357
+ subagent: "subagent";
358
+ managed_function: "managed_function";
359
+ }>;
360
+ id: z.ZodString;
361
+ }, z.core.$strict>>>;
362
+ managedFunctions: z.ZodOptional<z.ZodArray<z.ZodString>>;
363
+ excludedMcpTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
364
+ hideIntermediateText: z.ZodOptional<z.ZodBoolean>;
365
+ middleware: z.ZodDefault<z.ZodArray<z.ZodString>>;
366
+ subagents: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
367
+ id: z.ZodString;
368
+ forkContext: z.ZodOptional<z.ZodBoolean>;
369
+ }, z.core.$strip>]>>>;
370
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
371
+ contextFileIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
372
+ structuredOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373
+ inputSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
374
+ fields: z.ZodArray<z.ZodObject<{
375
+ name: z.ZodString;
376
+ label: z.ZodOptional<z.ZodString>;
377
+ description: z.ZodOptional<z.ZodString>;
378
+ type: z.ZodEnum<{
379
+ string: "string";
380
+ number: "number";
381
+ boolean: "boolean";
382
+ text: "text";
383
+ enum: "enum";
384
+ }>;
385
+ required: z.ZodOptional<z.ZodBoolean>;
386
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
387
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
+ placeholder: z.ZodOptional<z.ZodString>;
389
+ }, z.core.$strip>>;
390
+ }, z.core.$strip>>>;
391
+ promptTemplate: z.ZodOptional<z.ZodString>;
392
+ webhooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
393
+ mcpServerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
394
+ stubConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
395
+ maxTtlSeconds: z.ZodOptional<z.ZodNumber>;
396
+ agentPermissions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
397
+ apiPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
398
+ managedBy: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"automation">>>;
399
+ isPublic: z.ZodOptional<z.ZodBoolean>;
400
+ publicOutputs: z.ZodOptional<z.ZodBoolean>;
401
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
+ type: z.ZodEnum<{
403
+ user: "user";
404
+ group: "group";
405
+ }>;
406
+ id: z.ZodString;
407
+ role: z.ZodEnum<{
408
+ owner: "owner";
409
+ editor: "editor";
410
+ invoker: "invoker";
411
+ outputs_viewer: "outputs_viewer";
412
+ }>;
413
+ }, z.core.$strip>>>;
414
+ mode: z.ZodOptional<z.ZodLiteral<"text">>;
415
+ voice: z.ZodOptional<z.ZodNever>;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ name: z.ZodString;
418
+ description: z.ZodOptional<z.ZodString>;
419
+ id: z.ZodString;
420
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
421
+ type: z.ZodEnum<{
422
+ user: "user";
423
+ group: "group";
424
+ }>;
425
+ id: z.ZodString;
426
+ role: z.ZodEnum<{
427
+ owner: "owner";
428
+ editor: "editor";
429
+ invoker: "invoker";
430
+ outputs_viewer: "outputs_viewer";
431
+ }>;
432
+ }, z.core.$strip>>>;
433
+ mode: z.ZodLiteral<"voice">;
434
+ model: z.ZodObject<{
435
+ provider: z.ZodString;
436
+ name: z.ZodString;
437
+ }, z.core.$strict>;
438
+ systemPrompt: z.ZodString;
439
+ skills: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
440
+ voice: z.ZodPipe<z.ZodObject<{
441
+ schemaVersion: z.ZodLiteral<"1">;
442
+ voice: z.ZodString;
443
+ language: z.ZodString;
444
+ firstMessage: z.ZodString;
445
+ procedures: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
446
+ key: z.ZodString;
447
+ name: z.ZodString;
448
+ instructions: z.ZodString;
449
+ activationDescription: z.ZodString;
450
+ source: z.ZodObject<{
451
+ skillId: z.ZodString;
452
+ contentHash: z.ZodOptional<z.ZodString>;
453
+ }, z.core.$strict>;
454
+ toolAliases: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
455
+ subprocedures: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
456
+ }, z.core.$strict>, z.ZodTransform<{
457
+ source: {
458
+ skillId: string;
459
+ contentHash: string;
460
+ };
461
+ key: string;
462
+ name: string;
463
+ instructions: string;
464
+ activationDescription: string;
465
+ toolAliases: string[];
466
+ subprocedures: string[];
467
+ }, {
468
+ key: string;
469
+ name: string;
470
+ instructions: string;
471
+ activationDescription: string;
472
+ source: {
473
+ skillId: string;
474
+ contentHash?: string | undefined;
475
+ };
476
+ toolAliases: string[];
477
+ subprocedures: string[];
478
+ }>>>>;
479
+ tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
480
+ alias: z.ZodString;
481
+ description: z.ZodString;
482
+ managedFunction: z.ZodObject<{
483
+ ref: z.ZodString;
484
+ operation: z.ZodString;
485
+ }, z.core.$strict>;
486
+ inputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
487
+ argument: z.ZodString;
488
+ parameter: z.ZodString;
489
+ }, z.core.$strict>>>;
490
+ outputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
491
+ field: z.ZodString;
492
+ result: z.ZodString;
493
+ }, z.core.$strict>>>;
494
+ }, z.core.$strict>, z.ZodTransform<{
495
+ inputMappings: {
496
+ argument: string;
497
+ parameter: string;
498
+ }[];
499
+ outputMappings: {
500
+ field: string;
501
+ result: string;
502
+ }[];
503
+ alias: string;
504
+ description: string;
505
+ managedFunction: {
506
+ ref: string;
507
+ operation: string;
508
+ };
509
+ }, {
510
+ alias: string;
511
+ description: string;
512
+ managedFunction: {
513
+ ref: string;
514
+ operation: string;
515
+ };
516
+ inputMappings: {
517
+ argument: string;
518
+ parameter: string;
519
+ }[];
520
+ outputMappings: {
521
+ field: string;
522
+ result: string;
523
+ }[];
524
+ }>>>>;
525
+ }, z.core.$strict>, z.ZodTransform<{
526
+ procedures: {
527
+ source: {
528
+ skillId: string;
529
+ contentHash: string;
530
+ };
531
+ key: string;
532
+ name: string;
533
+ instructions: string;
534
+ activationDescription: string;
535
+ toolAliases: string[];
536
+ subprocedures: string[];
537
+ }[];
538
+ tools: {
539
+ inputMappings: {
540
+ argument: string;
541
+ parameter: string;
542
+ }[];
543
+ outputMappings: {
544
+ field: string;
545
+ result: string;
546
+ }[];
547
+ alias: string;
548
+ description: string;
549
+ managedFunction: {
550
+ ref: string;
551
+ operation: string;
552
+ };
553
+ }[];
554
+ schemaVersion: "1";
555
+ voice: string;
556
+ language: string;
557
+ firstMessage: string;
558
+ }, {
559
+ schemaVersion: "1";
560
+ voice: string;
561
+ language: string;
562
+ firstMessage: string;
563
+ procedures: {
564
+ source: {
565
+ skillId: string;
566
+ contentHash: string;
567
+ };
568
+ key: string;
569
+ name: string;
570
+ instructions: string;
571
+ activationDescription: string;
572
+ toolAliases: string[];
573
+ subprocedures: string[];
574
+ }[];
575
+ tools: {
576
+ inputMappings: {
577
+ argument: string;
578
+ parameter: string;
579
+ }[];
580
+ outputMappings: {
581
+ field: string;
582
+ result: string;
583
+ }[];
584
+ alias: string;
585
+ description: string;
586
+ managedFunction: {
587
+ ref: string;
588
+ operation: string;
589
+ };
590
+ }[];
591
+ }>>;
592
+ isPublic: z.ZodOptional<z.ZodLiteral<false>>;
593
+ publicOutputs: z.ZodOptional<z.ZodLiteral<false>>;
594
+ }, z.core.$strict>], "mode">;
595
+ export type AgentDefinition = z.infer<typeof agentDefinitionSchema>;
596
+ export type AgentDefinitionInput = z.input<typeof agentDefinitionSchema>;
597
+ export type TextAgentDefinition = z.infer<typeof textAgentDefinitionSchema>;
598
+ export type VoiceAgentDefinition = z.infer<typeof voiceAgentDefinitionSchema>;
599
+ export type AgentMode = 'text' | 'voice';
600
+ export declare function defineAgent(input: z.input<typeof textAgentDefinitionSchema>): TextAgentDefinition;
601
+ export declare function defineAgent(input: z.input<typeof voiceAgentDefinitionSchema>): VoiceAgentDefinition;
602
+ export declare function defineAgent(input: AgentDefinitionInput): AgentDefinition;
603
+ export declare function getAgentMode({ definition }: {
604
+ definition: {
605
+ mode?: AgentMode;
606
+ };
607
+ }): AgentMode;
608
+ export declare function validateAgentModeUpdate({ existing, incoming }: {
609
+ existing: {
610
+ id: string;
611
+ mode?: AgentMode;
612
+ };
613
+ incoming: unknown;
614
+ }): AgentDefinition;
615
+ export declare function canonicalAgentJson(definition: AgentDefinition): string;
616
+ export declare function hashAgentBundle({ definitions, }: {
617
+ definitions: AgentDefinition[];
618
+ }): string;
619
+ export declare function formatAgentSource({ definition, exportName, }: {
620
+ definition: unknown;
621
+ exportName?: string;
622
+ }): string;
623
+ export declare function generateAgentSource({ definition, exportName, }: {
624
+ definition: AgentDefinition;
625
+ exportName?: string;
626
+ }): string;