@sequenceholdings/agent-spec 0.1.1 → 0.1.3

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 (72) hide show
  1. package/README.md +93 -0
  2. package/dist/agent-definition.d.ts +616 -0
  3. package/dist/agent-definition.js +240 -0
  4. package/dist/canonical-json.d.ts +2 -0
  5. package/dist/canonical-json.js +13 -0
  6. package/dist/index.d.ts +2 -117
  7. package/dist/index.js +2 -248
  8. package/dist/input-schema.d.ts +19 -0
  9. package/dist/input-schema.js +57 -0
  10. package/dist/voice-access.d.ts +40 -0
  11. package/dist/voice-access.js +34 -0
  12. package/dist/voice-actions-contracts.d.ts +423 -0
  13. package/dist/voice-actions-contracts.js +95 -0
  14. package/dist/voice-actions-transitions.d.ts +52 -0
  15. package/dist/voice-actions-transitions.js +170 -0
  16. package/dist/voice-actions.d.ts +2 -0
  17. package/dist/voice-actions.js +2 -0
  18. package/dist/voice-api.d.ts +1102 -0
  19. package/dist/voice-api.js +164 -0
  20. package/dist/voice-authoring.d.ts +463 -0
  21. package/dist/voice-authoring.js +132 -0
  22. package/dist/voice-authority-contracts.d.ts +247 -0
  23. package/dist/voice-authority-contracts.js +177 -0
  24. package/dist/voice-authority-evaluation.d.ts +29 -0
  25. package/dist/voice-authority-evaluation.js +80 -0
  26. package/dist/voice-authority-verification.d.ts +47 -0
  27. package/dist/voice-authority-verification.js +184 -0
  28. package/dist/voice-authority.d.ts +3 -0
  29. package/dist/voice-authority.js +3 -0
  30. package/dist/voice-common.d.ts +21 -0
  31. package/dist/voice-common.js +23 -0
  32. package/dist/voice-drafts.d.ts +441 -0
  33. package/dist/voice-drafts.js +75 -0
  34. package/dist/voice-grant.d.ts +19 -0
  35. package/dist/voice-grant.js +21 -0
  36. package/dist/voice-lifecycle-control.d.ts +130 -0
  37. package/dist/voice-lifecycle-control.js +138 -0
  38. package/dist/voice-lifecycle-session.d.ts +168 -0
  39. package/dist/voice-lifecycle-session.js +114 -0
  40. package/dist/voice-lifecycle-states.d.ts +96 -0
  41. package/dist/voice-lifecycle-states.js +139 -0
  42. package/dist/voice-lifecycle.d.ts +3 -0
  43. package/dist/voice-lifecycle.js +3 -0
  44. package/dist/voice-policy-duration.d.ts +46 -0
  45. package/dist/voice-policy-duration.js +166 -0
  46. package/dist/voice-policy-limits.d.ts +174 -0
  47. package/dist/voice-policy-limits.js +188 -0
  48. package/dist/voice-policy.d.ts +2 -0
  49. package/dist/voice-policy.js +2 -0
  50. package/dist/voice-provider-evidence.d.ts +80 -0
  51. package/dist/voice-provider-evidence.js +115 -0
  52. package/dist/voice-provider-publication.d.ts +319 -0
  53. package/dist/voice-provider-publication.js +117 -0
  54. package/dist/voice-provider-release.d.ts +386 -0
  55. package/dist/voice-provider-release.js +154 -0
  56. package/dist/voice-provider.d.ts +3 -0
  57. package/dist/voice-provider.js +3 -0
  58. package/dist/voice-release.d.ts +808 -0
  59. package/dist/voice-release.js +110 -0
  60. package/dist/voice-runs-audio.d.ts +157 -0
  61. package/dist/voice-runs-audio.js +85 -0
  62. package/dist/voice-runs-evidence.d.ts +183 -0
  63. package/dist/voice-runs-evidence.js +154 -0
  64. package/dist/voice-runs-model.d.ts +967 -0
  65. package/dist/voice-runs-model.js +199 -0
  66. package/dist/voice-runs-tooling.d.ts +88 -0
  67. package/dist/voice-runs-tooling.js +100 -0
  68. package/dist/voice-runs.d.ts +4 -0
  69. package/dist/voice-runs.js +4 -0
  70. package/dist/voice.d.ts +13 -0
  71. package/dist/voice.js +13 -0
  72. package/package.json +8 -3
@@ -0,0 +1,1102 @@
1
+ import { z } from 'zod';
2
+ import { type VoiceScope } from './voice-common.js';
3
+ import { voiceDraftSaveRequestSchema, voiceSkillCaptureRequestSchema, type VoiceDraft } from './voice-drafts.js';
4
+ import { type VoiceToolBinding, type VoiceToolOperationRequirement } from './voice-authority.js';
5
+ export declare const voiceErrorCodeSchema: z.ZodEnum<{
6
+ WAITING_FOR_IDLE: "WAITING_FOR_IDLE";
7
+ STALE_REVISION: "STALE_REVISION";
8
+ DEPENDENCY_MAINTENANCE: "DEPENDENCY_MAINTENANCE";
9
+ DISABLED: "DISABLED";
10
+ DENIED: "DENIED";
11
+ PROVIDER_FAILURE: "PROVIDER_FAILURE";
12
+ NOT_FOUND: "NOT_FOUND";
13
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
14
+ INVALID_DEFINITION: "INVALID_DEFINITION";
15
+ MODE_MISMATCH: "MODE_MISMATCH";
16
+ INVALID_BINDING: "INVALID_BINDING";
17
+ SOURCE_MISSING: "SOURCE_MISSING";
18
+ SOURCE_FORBIDDEN: "SOURCE_FORBIDDEN";
19
+ LIMIT_REACHED: "LIMIT_REACHED";
20
+ UNCERTAIN_OPERATION: "UNCERTAIN_OPERATION";
21
+ INCOMPLETE_EVIDENCE: "INCOMPLETE_EVIDENCE";
22
+ }>;
23
+ export declare const voiceErrorSchema: z.ZodObject<{
24
+ code: z.ZodEnum<{
25
+ WAITING_FOR_IDLE: "WAITING_FOR_IDLE";
26
+ STALE_REVISION: "STALE_REVISION";
27
+ DEPENDENCY_MAINTENANCE: "DEPENDENCY_MAINTENANCE";
28
+ DISABLED: "DISABLED";
29
+ DENIED: "DENIED";
30
+ PROVIDER_FAILURE: "PROVIDER_FAILURE";
31
+ NOT_FOUND: "NOT_FOUND";
32
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
33
+ INVALID_DEFINITION: "INVALID_DEFINITION";
34
+ MODE_MISMATCH: "MODE_MISMATCH";
35
+ INVALID_BINDING: "INVALID_BINDING";
36
+ SOURCE_MISSING: "SOURCE_MISSING";
37
+ SOURCE_FORBIDDEN: "SOURCE_FORBIDDEN";
38
+ LIMIT_REACHED: "LIMIT_REACHED";
39
+ UNCERTAIN_OPERATION: "UNCERTAIN_OPERATION";
40
+ INCOMPLETE_EVIDENCE: "INCOMPLETE_EVIDENCE";
41
+ }>;
42
+ message: z.ZodString;
43
+ correlationId: z.ZodString;
44
+ }, z.core.$strict>;
45
+ export type VoiceError = z.infer<typeof voiceErrorSchema>;
46
+ export type VoiceResult<T> = {
47
+ ok: true;
48
+ value: T;
49
+ } | {
50
+ ok: false;
51
+ error: VoiceError;
52
+ };
53
+ export interface VoiceHumanCommandContext {
54
+ scope: VoiceScope;
55
+ actorPrincipalId: string;
56
+ }
57
+ export declare const voicePublishRequestSchema: z.ZodObject<{
58
+ agentId: z.ZodString;
59
+ expectedDraftRevision: z.ZodNumber;
60
+ expectedDeploymentRevision: z.ZodNullable<z.ZodNumber>;
61
+ idempotencyKey: z.ZodString;
62
+ toolReviewConfirmations: z.ZodDefault<z.ZodArray<z.ZodObject<{
63
+ toolAlias: z.ZodString;
64
+ bindingHash: z.ZodString;
65
+ }, z.core.$strict>>>;
66
+ }, z.core.$strict>;
67
+ export type VoicePublishRequest = z.infer<typeof voicePublishRequestSchema>;
68
+ export declare const voicePublicationReadRequestSchema: z.ZodObject<{
69
+ agentId: z.ZodString;
70
+ operationId: z.ZodString;
71
+ }, z.core.$strict>;
72
+ export declare const voicePublicationResponseSchema: z.ZodObject<{
73
+ operation: z.ZodObject<{
74
+ tenantId: z.ZodString;
75
+ environmentId: z.ZodString;
76
+ agentId: z.ZodString;
77
+ publicationOperationId: z.ZodString;
78
+ idempotencyKey: z.ZodString;
79
+ expectedDeploymentRevision: z.ZodNullable<z.ZodNumber>;
80
+ previousActiveReleaseId: z.ZodNullable<z.ZodString>;
81
+ candidateReleaseId: z.ZodNullable<z.ZodString>;
82
+ state: z.ZodEnum<{
83
+ PREPARING: "PREPARING";
84
+ FAILED: "FAILED";
85
+ RECONCILIATION_REQUIRED: "RECONCILIATION_REQUIRED";
86
+ WAITING_FOR_IDLE: "WAITING_FOR_IDLE";
87
+ ACTIVATING: "ACTIVATING";
88
+ SUCCEEDED: "SUCCEEDED";
89
+ }>;
90
+ revision: z.ZodNumber;
91
+ createdByPrincipalId: z.ZodString;
92
+ createdAt: z.ZodISODateTime;
93
+ updatedAt: z.ZodISODateTime;
94
+ }, z.core.$strict>;
95
+ activeReleaseId: z.ZodNullable<z.ZodString>;
96
+ deploymentRevision: z.ZodNumber;
97
+ desiredEnabled: z.ZodBoolean;
98
+ publicationPaused: z.ZodBoolean;
99
+ maintenancePaused: z.ZodBoolean;
100
+ sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ status: z.ZodLiteral<"CURRENT">;
102
+ skillId: z.ZodString;
103
+ capturedContentHash: z.ZodString;
104
+ currentContentHash: z.ZodString;
105
+ }, z.core.$strict>, z.ZodObject<{
106
+ status: z.ZodLiteral<"CHANGED">;
107
+ skillId: z.ZodString;
108
+ capturedContentHash: z.ZodString;
109
+ currentContentHash: z.ZodString;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ status: z.ZodLiteral<"MISSING">;
112
+ skillId: z.ZodString;
113
+ capturedContentHash: z.ZodString;
114
+ }, z.core.$strict>, z.ZodObject<{
115
+ status: z.ZodLiteral<"FORBIDDEN">;
116
+ skillId: z.ZodString;
117
+ capturedContentHash: z.ZodString;
118
+ }, z.core.$strict>], "status">>;
119
+ }, z.core.$strict>;
120
+ export type VoicePublicationResponse = z.infer<typeof voicePublicationResponseSchema>;
121
+ export declare const voicePublishValidationRequestSchema: z.ZodObject<{
122
+ agentId: z.ZodString;
123
+ expectedDraftRevision: z.ZodNumber;
124
+ }, z.core.$strict>;
125
+ export declare const voicePublishValidationResponseSchema: z.ZodObject<{
126
+ agentId: z.ZodString;
127
+ draftRevision: z.ZodNumber;
128
+ deploymentRevision: z.ZodNumber;
129
+ activeReleaseId: z.ZodNullable<z.ZodString>;
130
+ authoredDefinitionHash: z.ZodString;
131
+ localProjectionHash: z.ZodString;
132
+ sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
133
+ status: z.ZodLiteral<"CURRENT">;
134
+ skillId: z.ZodString;
135
+ capturedContentHash: z.ZodString;
136
+ currentContentHash: z.ZodString;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ status: z.ZodLiteral<"CHANGED">;
139
+ skillId: z.ZodString;
140
+ capturedContentHash: z.ZodString;
141
+ currentContentHash: z.ZodString;
142
+ }, z.core.$strict>, z.ZodObject<{
143
+ status: z.ZodLiteral<"MISSING">;
144
+ skillId: z.ZodString;
145
+ capturedContentHash: z.ZodString;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ status: z.ZodLiteral<"FORBIDDEN">;
148
+ skillId: z.ZodString;
149
+ capturedContentHash: z.ZodString;
150
+ }, z.core.$strict>], "status">>;
151
+ tools: z.ZodArray<z.ZodObject<{
152
+ binding: z.ZodObject<{
153
+ toolAlias: z.ZodString;
154
+ operation: z.ZodString;
155
+ managedFunctionId: z.ZodString;
156
+ functionVersionId: z.ZodString;
157
+ sourceHash: z.ZodString;
158
+ manifestHash: z.ZodString;
159
+ dataBinding: z.ZodObject<{
160
+ attachedIdentityId: z.ZodString;
161
+ dataScopeHash: z.ZodString;
162
+ }, z.core.$strict>;
163
+ runtimeBinding: z.ZodObject<{
164
+ runtimeAccountId: z.ZodString;
165
+ permissionHash: z.ZodString;
166
+ }, z.core.$strict>;
167
+ }, z.core.$strict>;
168
+ requirement: z.ZodDiscriminatedUnion<[z.ZodObject<{
169
+ authority: z.ZodLiteral<"public">;
170
+ effect: z.ZodLiteral<"pure_input_computation">;
171
+ }, z.core.$strict>, z.ZodObject<{
172
+ authority: z.ZodLiteral<"public">;
173
+ effect: z.ZodLiteral<"unverified_write">;
174
+ }, z.core.$strict>, z.ZodObject<{
175
+ authority: z.ZodLiteral<"authentication">;
176
+ effect: z.ZodLiteral<"resource_verification">;
177
+ resourceKind: z.ZodString;
178
+ }, z.core.$strict>, z.ZodObject<{
179
+ authority: z.ZodLiteral<"protected">;
180
+ effect: z.ZodEnum<{
181
+ resource_read: "resource_read";
182
+ resource_write: "resource_write";
183
+ }>;
184
+ resourceKind: z.ZodString;
185
+ }, z.core.$strict>], "effect">;
186
+ bindingHash: z.ZodString;
187
+ requiresConfirmation: z.ZodBoolean;
188
+ }, z.core.$strict>>;
189
+ }, z.core.$strict>;
190
+ export declare function hashVoiceToolReviewBinding({ binding, requirement }: {
191
+ binding: VoiceToolBinding;
192
+ requirement: VoiceToolOperationRequirement;
193
+ }): string;
194
+ export declare const voiceOutboundCallRequestSchema: z.ZodObject<{
195
+ agentId: z.ZodString;
196
+ expectedActiveReleaseId: z.ZodString;
197
+ destinationId: z.ZodString;
198
+ fixtureId: z.ZodString;
199
+ idempotencyKey: z.ZodString;
200
+ }, z.core.$strict>;
201
+ export type VoiceOutboundCallRequest = z.infer<typeof voiceOutboundCallRequestSchema>;
202
+ export declare function hashVoiceOutboundRequest({ context, request }: {
203
+ context: VoiceHumanCommandContext;
204
+ request: VoiceOutboundCallRequest;
205
+ }): string;
206
+ export declare const voiceSettingsUpdateRequestSchema: z.ZodObject<{
207
+ expectedRevision: z.ZodNumber;
208
+ limits: z.ZodObject<{
209
+ maxConcurrentCalls: z.ZodNumber;
210
+ maxDailyCallAttempts: z.ZodNumber;
211
+ maxDailyOutboundAttemptsPerPerson: z.ZodNumber;
212
+ maxCallDurationSeconds: z.ZodNumber;
213
+ maxDailyInboundAttemptsPerNumber: z.ZodNumber;
214
+ maxConcurrentInboundCallsPerNumber: z.ZodNumber;
215
+ }, z.core.$strict>;
216
+ }, z.core.$strict>;
217
+ export declare const voiceViewerUsageSchema: z.ZodObject<{
218
+ policyRevision: z.ZodNumber;
219
+ limits: z.ZodObject<{
220
+ maxConcurrentCalls: z.ZodNumber;
221
+ maxDailyCallAttempts: z.ZodNumber;
222
+ maxDailyOutboundAttemptsPerPerson: z.ZodNumber;
223
+ maxDailyInboundAttemptsPerNumber: z.ZodDefault<z.ZodNumber>;
224
+ maxConcurrentInboundCallsPerNumber: z.ZodDefault<z.ZodNumber>;
225
+ maxCallDurationSeconds: z.ZodNumber;
226
+ }, z.core.$strict>;
227
+ utcDay: z.ZodISODate;
228
+ resetsAt: z.ZodISODateTime;
229
+ activeReservations: z.ZodNumber;
230
+ admittedAttempts: z.ZodNumber;
231
+ personalOutboundAttempts: z.ZodNumber;
232
+ }, z.core.$strict>;
233
+ export declare const voiceInboundAdmissionEvidenceSchema: z.ZodObject<{
234
+ tenantId: z.ZodString;
235
+ environmentId: z.ZodString;
236
+ agentId: z.ZodString;
237
+ twilioAccountSid: z.ZodString;
238
+ twilioCallSid: z.ZodString;
239
+ ownedNumberId: z.ZodString;
240
+ routeId: z.ZodString;
241
+ routeRevision: z.ZodNumber;
242
+ checkedAt: z.ZodISODateTime;
243
+ currentPreAnswerIdentityVerified: z.ZodLiteral<true>;
244
+ }, z.core.$strict>;
245
+ export type VoiceInboundAdmissionEvidence = z.infer<typeof voiceInboundAdmissionEvidenceSchema>;
246
+ export declare const voiceCallResponseSchema: z.ZodObject<{
247
+ sessionId: z.ZodString;
248
+ agentId: z.ZodString;
249
+ releaseId: z.ZodString;
250
+ revision: z.ZodNumber;
251
+ state: z.ZodEnum<{
252
+ ACTIVE: "ACTIVE";
253
+ FAILED: "FAILED";
254
+ RESERVED: "RESERVED";
255
+ DISPATCHING: "DISPATCHING";
256
+ CONNECTING: "CONNECTING";
257
+ ENDING: "ENDING";
258
+ COMPLETED: "COMPLETED";
259
+ UNKNOWN: "UNKNOWN";
260
+ CANCELLING: "CANCELLING";
261
+ CANCELLED: "CANCELLED";
262
+ }>;
263
+ }, z.core.$strict>;
264
+ export type VoiceCallResponse = z.infer<typeof voiceCallResponseSchema>;
265
+ export declare const voiceDispatchCallCommandSchema: z.ZodObject<{
266
+ tenantId: z.ZodString;
267
+ environmentId: z.ZodString;
268
+ sessionId: z.ZodString;
269
+ expectedRevision: z.ZodNumber;
270
+ operationId: z.ZodString;
271
+ }, z.core.$strict>;
272
+ export type VoiceDispatchCallCommand = z.infer<typeof voiceDispatchCallCommandSchema>;
273
+ export declare const voiceToolDispatchRequestSchema: z.ZodObject<{
274
+ toolAlias: z.ZodString;
275
+ providerDeliveryId: z.ZodString;
276
+ arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
277
+ }, z.core.$strict>;
278
+ export type VoiceToolDispatchRequest = z.infer<typeof voiceToolDispatchRequestSchema>;
279
+ export declare const voiceCompletionCommandSchema: z.ZodObject<{
280
+ tenantId: z.ZodString;
281
+ environmentId: z.ZodString;
282
+ sessionId: z.ZodString;
283
+ deliveryReceiptId: z.ZodString;
284
+ deliveryBodyHash: z.ZodString;
285
+ event: z.ZodObject<{
286
+ eventId: z.ZodString;
287
+ logicalIdentity: z.ZodObject<{
288
+ sessionId: z.ZodString;
289
+ kind: z.ZodLiteral<"CALL_COMPLETED">;
290
+ }, z.core.$strict>;
291
+ providerDeliveryIds: z.ZodArray<z.ZodString>;
292
+ evidenceStatus: z.ZodEnum<{
293
+ CONTRADICTORY: "CONTRADICTORY";
294
+ PENDING: "PENDING";
295
+ CONFIRMED: "CONFIRMED";
296
+ }>;
297
+ persistedAt: z.ZodISODateTime;
298
+ providerConversationId: z.ZodNullable<z.ZodString>;
299
+ }, z.core.$strict>;
300
+ }, z.core.$strict>;
301
+ export type VoiceCompletionCommand = z.infer<typeof voiceCompletionCommandSchema>;
302
+ export declare const voiceCompletionResponseSchema: z.ZodObject<{
303
+ sessionId: z.ZodString;
304
+ runId: z.ZodString;
305
+ completionEventId: z.ZodString;
306
+ duplicate: z.ZodBoolean;
307
+ writebackStatus: z.ZodEnum<{
308
+ FAILED: "FAILED";
309
+ RECONCILIATION_REQUIRED: "RECONCILIATION_REQUIRED";
310
+ COMPLETE: "COMPLETE";
311
+ PENDING: "PENDING";
312
+ }>;
313
+ }, z.core.$strict>;
314
+ export type VoiceCompletionResponse = z.infer<typeof voiceCompletionResponseSchema>;
315
+ export declare const voiceAgentControlRequestSchema: z.ZodObject<{
316
+ agentId: z.ZodString;
317
+ expectedRevision: z.ZodNumber;
318
+ action: z.ZodEnum<{
319
+ ENABLE: "ENABLE";
320
+ CLOSE_ADMISSION: "CLOSE_ADMISSION";
321
+ KILL: "KILL";
322
+ }>;
323
+ idempotencyKey: z.ZodString;
324
+ }, z.core.$strict>;
325
+ export declare const voiceAgentDisableRequestSchema: z.ZodObject<{
326
+ agentId: z.ZodString;
327
+ expectedRevision: z.ZodNumber;
328
+ }, z.core.$strict>;
329
+ export declare const voiceAgentDisableResponseSchema: z.ZodObject<{
330
+ agentId: z.ZodString;
331
+ revision: z.ZodNumber;
332
+ desiredEnabled: z.ZodLiteral<false>;
333
+ activeReleaseId: z.ZodNullable<z.ZodString>;
334
+ publicationPaused: z.ZodBoolean;
335
+ maintenancePaused: z.ZodBoolean;
336
+ }, z.core.$strict>;
337
+ export declare const voiceEnvironmentControlRequestSchema: z.ZodObject<{
338
+ expectedRevision: z.ZodNumber;
339
+ action: z.ZodEnum<{
340
+ ENABLE: "ENABLE";
341
+ CLOSE_ADMISSION: "CLOSE_ADMISSION";
342
+ KILL: "KILL";
343
+ }>;
344
+ idempotencyKey: z.ZodString;
345
+ }, z.core.$strict>;
346
+ export declare const voiceCallCancelRequestSchema: z.ZodObject<{
347
+ sessionId: z.ZodString;
348
+ expectedRevision: z.ZodNumber;
349
+ idempotencyKey: z.ZodString;
350
+ }, z.core.$strict>;
351
+ export declare const voiceInboundRouteUpdateRequestSchema: z.ZodObject<{
352
+ ownedNumberId: z.ZodString;
353
+ agentId: z.ZodString;
354
+ expectedRevision: z.ZodNullable<z.ZodNumber>;
355
+ enabled: z.ZodBoolean;
356
+ }, z.core.$strict>;
357
+ export declare const voiceDependencyMaintenanceRequestSchema: z.ZodObject<{
358
+ managedFunctionId: z.ZodString;
359
+ expectedRevision: z.ZodNullable<z.ZodNumber>;
360
+ action: z.ZodEnum<{
361
+ BEGIN: "BEGIN";
362
+ END: "END";
363
+ }>;
364
+ idempotencyKey: z.ZodString;
365
+ }, z.core.$strict>;
366
+ export interface VoiceAuthoringService {
367
+ validatePublication(input: {
368
+ context: VoiceHumanCommandContext;
369
+ request: z.infer<typeof voicePublishValidationRequestSchema>;
370
+ }): Promise<VoiceResult<z.infer<typeof voicePublishValidationResponseSchema>>>;
371
+ saveDraft(input: {
372
+ context: VoiceHumanCommandContext;
373
+ request: z.infer<typeof voiceDraftSaveRequestSchema>;
374
+ }): Promise<VoiceResult<VoiceDraft>>;
375
+ captureSkill(input: {
376
+ context: VoiceHumanCommandContext;
377
+ request: z.infer<typeof voiceSkillCaptureRequestSchema>;
378
+ }): Promise<VoiceResult<VoiceDraft>>;
379
+ publish(input: {
380
+ context: VoiceHumanCommandContext;
381
+ request: VoicePublishRequest;
382
+ }): Promise<VoiceResult<VoicePublicationResponse>>;
383
+ }
384
+ export interface VoiceCallService {
385
+ admitOutbound(input: {
386
+ context: VoiceHumanCommandContext;
387
+ request: VoiceOutboundCallRequest;
388
+ }): Promise<VoiceResult<VoiceCallResponse>>;
389
+ admitInbound(input: {
390
+ evidence: VoiceInboundAdmissionEvidence;
391
+ }): Promise<VoiceResult<VoiceCallResponse>>;
392
+ dispatchCall(input: VoiceDispatchCallCommand): Promise<VoiceResult<VoiceCallResponse>>;
393
+ complete(input: VoiceCompletionCommand): Promise<VoiceResult<VoiceCompletionResponse>>;
394
+ }
395
+ export declare const voiceDraftReadResponseSchema: z.ZodObject<{
396
+ tenantId: z.ZodString;
397
+ environmentId: z.ZodString;
398
+ agentId: z.ZodString;
399
+ revision: z.ZodNumber;
400
+ definition: z.ZodObject<{
401
+ name: z.ZodString;
402
+ description: z.ZodOptional<z.ZodString>;
403
+ id: z.ZodString;
404
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
405
+ type: z.ZodEnum<{
406
+ user: "user";
407
+ group: "group";
408
+ }>;
409
+ id: z.ZodString;
410
+ role: z.ZodEnum<{
411
+ owner: "owner";
412
+ editor: "editor";
413
+ invoker: "invoker";
414
+ outputs_viewer: "outputs_viewer";
415
+ }>;
416
+ }, z.core.$strip>>>;
417
+ mode: z.ZodLiteral<"voice">;
418
+ model: z.ZodObject<{
419
+ provider: z.ZodString;
420
+ name: z.ZodString;
421
+ }, z.core.$strict>;
422
+ systemPrompt: z.ZodString;
423
+ skills: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
424
+ voice: z.ZodPipe<z.ZodObject<{
425
+ schemaVersion: z.ZodLiteral<"1">;
426
+ voice: z.ZodString;
427
+ language: z.ZodString;
428
+ firstMessage: z.ZodString;
429
+ procedures: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
430
+ key: z.ZodString;
431
+ name: z.ZodString;
432
+ instructions: z.ZodString;
433
+ activationDescription: z.ZodString;
434
+ source: z.ZodObject<{
435
+ skillId: z.ZodString;
436
+ contentHash: z.ZodOptional<z.ZodString>;
437
+ }, z.core.$strict>;
438
+ toolAliases: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
439
+ subprocedures: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
440
+ }, z.core.$strict>, z.ZodTransform<{
441
+ source: {
442
+ skillId: string;
443
+ contentHash: string;
444
+ };
445
+ key: string;
446
+ name: string;
447
+ instructions: string;
448
+ activationDescription: string;
449
+ toolAliases: string[];
450
+ subprocedures: string[];
451
+ }, {
452
+ key: string;
453
+ name: string;
454
+ instructions: string;
455
+ activationDescription: string;
456
+ source: {
457
+ skillId: string;
458
+ contentHash?: string | undefined;
459
+ };
460
+ toolAliases: string[];
461
+ subprocedures: string[];
462
+ }>>>>;
463
+ tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
464
+ alias: z.ZodString;
465
+ description: z.ZodString;
466
+ managedFunction: z.ZodObject<{
467
+ ref: z.ZodString;
468
+ operation: z.ZodString;
469
+ }, z.core.$strict>;
470
+ inputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
471
+ argument: z.ZodString;
472
+ parameter: z.ZodString;
473
+ }, z.core.$strict>>>;
474
+ outputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
475
+ field: z.ZodString;
476
+ result: z.ZodString;
477
+ }, z.core.$strict>>>;
478
+ }, z.core.$strict>, z.ZodTransform<{
479
+ inputMappings: {
480
+ argument: string;
481
+ parameter: string;
482
+ }[];
483
+ outputMappings: {
484
+ field: string;
485
+ result: string;
486
+ }[];
487
+ alias: string;
488
+ description: string;
489
+ managedFunction: {
490
+ ref: string;
491
+ operation: string;
492
+ };
493
+ }, {
494
+ alias: string;
495
+ description: string;
496
+ managedFunction: {
497
+ ref: string;
498
+ operation: string;
499
+ };
500
+ inputMappings: {
501
+ argument: string;
502
+ parameter: string;
503
+ }[];
504
+ outputMappings: {
505
+ field: string;
506
+ result: string;
507
+ }[];
508
+ }>>>>;
509
+ }, z.core.$strict>, z.ZodTransform<{
510
+ procedures: {
511
+ source: {
512
+ skillId: string;
513
+ contentHash: string;
514
+ };
515
+ key: string;
516
+ name: string;
517
+ instructions: string;
518
+ activationDescription: string;
519
+ toolAliases: string[];
520
+ subprocedures: string[];
521
+ }[];
522
+ tools: {
523
+ inputMappings: {
524
+ argument: string;
525
+ parameter: string;
526
+ }[];
527
+ outputMappings: {
528
+ field: string;
529
+ result: string;
530
+ }[];
531
+ alias: string;
532
+ description: string;
533
+ managedFunction: {
534
+ ref: string;
535
+ operation: string;
536
+ };
537
+ }[];
538
+ schemaVersion: "1";
539
+ voice: string;
540
+ language: string;
541
+ firstMessage: string;
542
+ }, {
543
+ schemaVersion: "1";
544
+ voice: string;
545
+ language: string;
546
+ firstMessage: string;
547
+ procedures: {
548
+ source: {
549
+ skillId: string;
550
+ contentHash: string;
551
+ };
552
+ key: string;
553
+ name: string;
554
+ instructions: string;
555
+ activationDescription: string;
556
+ toolAliases: string[];
557
+ subprocedures: string[];
558
+ }[];
559
+ tools: {
560
+ inputMappings: {
561
+ argument: string;
562
+ parameter: string;
563
+ }[];
564
+ outputMappings: {
565
+ field: string;
566
+ result: string;
567
+ }[];
568
+ alias: string;
569
+ description: string;
570
+ managedFunction: {
571
+ ref: string;
572
+ operation: string;
573
+ };
574
+ }[];
575
+ }>>;
576
+ isPublic: z.ZodOptional<z.ZodLiteral<false>>;
577
+ publicOutputs: z.ZodOptional<z.ZodLiteral<false>>;
578
+ }, z.core.$strict>;
579
+ updatedByPrincipalId: z.ZodString;
580
+ updatedAt: z.ZodISODateTime;
581
+ }, z.core.$strict>;
582
+ export declare const voiceDefinitionExportResponseSchema: z.ZodObject<{
583
+ name: z.ZodString;
584
+ description: z.ZodOptional<z.ZodString>;
585
+ id: z.ZodString;
586
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
587
+ type: z.ZodEnum<{
588
+ user: "user";
589
+ group: "group";
590
+ }>;
591
+ id: z.ZodString;
592
+ role: z.ZodEnum<{
593
+ owner: "owner";
594
+ editor: "editor";
595
+ invoker: "invoker";
596
+ outputs_viewer: "outputs_viewer";
597
+ }>;
598
+ }, z.core.$strip>>>;
599
+ mode: z.ZodLiteral<"voice">;
600
+ model: z.ZodObject<{
601
+ provider: z.ZodString;
602
+ name: z.ZodString;
603
+ }, z.core.$strict>;
604
+ systemPrompt: z.ZodString;
605
+ skills: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
606
+ voice: z.ZodPipe<z.ZodObject<{
607
+ schemaVersion: z.ZodLiteral<"1">;
608
+ voice: z.ZodString;
609
+ language: z.ZodString;
610
+ firstMessage: z.ZodString;
611
+ procedures: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
612
+ key: z.ZodString;
613
+ name: z.ZodString;
614
+ instructions: z.ZodString;
615
+ activationDescription: z.ZodString;
616
+ source: z.ZodObject<{
617
+ skillId: z.ZodString;
618
+ contentHash: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strict>;
620
+ toolAliases: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
621
+ subprocedures: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
622
+ }, z.core.$strict>, z.ZodTransform<{
623
+ source: {
624
+ skillId: string;
625
+ contentHash: string;
626
+ };
627
+ key: string;
628
+ name: string;
629
+ instructions: string;
630
+ activationDescription: string;
631
+ toolAliases: string[];
632
+ subprocedures: string[];
633
+ }, {
634
+ key: string;
635
+ name: string;
636
+ instructions: string;
637
+ activationDescription: string;
638
+ source: {
639
+ skillId: string;
640
+ contentHash?: string | undefined;
641
+ };
642
+ toolAliases: string[];
643
+ subprocedures: string[];
644
+ }>>>>;
645
+ tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
646
+ alias: z.ZodString;
647
+ description: z.ZodString;
648
+ managedFunction: z.ZodObject<{
649
+ ref: z.ZodString;
650
+ operation: z.ZodString;
651
+ }, z.core.$strict>;
652
+ inputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
653
+ argument: z.ZodString;
654
+ parameter: z.ZodString;
655
+ }, z.core.$strict>>>;
656
+ outputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
657
+ field: z.ZodString;
658
+ result: z.ZodString;
659
+ }, z.core.$strict>>>;
660
+ }, z.core.$strict>, z.ZodTransform<{
661
+ inputMappings: {
662
+ argument: string;
663
+ parameter: string;
664
+ }[];
665
+ outputMappings: {
666
+ field: string;
667
+ result: string;
668
+ }[];
669
+ alias: string;
670
+ description: string;
671
+ managedFunction: {
672
+ ref: string;
673
+ operation: string;
674
+ };
675
+ }, {
676
+ alias: string;
677
+ description: string;
678
+ managedFunction: {
679
+ ref: string;
680
+ operation: string;
681
+ };
682
+ inputMappings: {
683
+ argument: string;
684
+ parameter: string;
685
+ }[];
686
+ outputMappings: {
687
+ field: string;
688
+ result: string;
689
+ }[];
690
+ }>>>>;
691
+ }, z.core.$strict>, z.ZodTransform<{
692
+ procedures: {
693
+ source: {
694
+ skillId: string;
695
+ contentHash: string;
696
+ };
697
+ key: string;
698
+ name: string;
699
+ instructions: string;
700
+ activationDescription: string;
701
+ toolAliases: string[];
702
+ subprocedures: string[];
703
+ }[];
704
+ tools: {
705
+ inputMappings: {
706
+ argument: string;
707
+ parameter: string;
708
+ }[];
709
+ outputMappings: {
710
+ field: string;
711
+ result: string;
712
+ }[];
713
+ alias: string;
714
+ description: string;
715
+ managedFunction: {
716
+ ref: string;
717
+ operation: string;
718
+ };
719
+ }[];
720
+ schemaVersion: "1";
721
+ voice: string;
722
+ language: string;
723
+ firstMessage: string;
724
+ }, {
725
+ schemaVersion: "1";
726
+ voice: string;
727
+ language: string;
728
+ firstMessage: string;
729
+ procedures: {
730
+ source: {
731
+ skillId: string;
732
+ contentHash: string;
733
+ };
734
+ key: string;
735
+ name: string;
736
+ instructions: string;
737
+ activationDescription: string;
738
+ toolAliases: string[];
739
+ subprocedures: string[];
740
+ }[];
741
+ tools: {
742
+ inputMappings: {
743
+ argument: string;
744
+ parameter: string;
745
+ }[];
746
+ outputMappings: {
747
+ field: string;
748
+ result: string;
749
+ }[];
750
+ alias: string;
751
+ description: string;
752
+ managedFunction: {
753
+ ref: string;
754
+ operation: string;
755
+ };
756
+ }[];
757
+ }>>;
758
+ isPublic: z.ZodOptional<z.ZodLiteral<false>>;
759
+ publicOutputs: z.ZodOptional<z.ZodLiteral<false>>;
760
+ }, z.core.$strict>;
761
+ export declare const voiceRunReadResponseSchema: z.ZodObject<{
762
+ callPolicy: z.ZodObject<{
763
+ policyRevision: z.ZodNumber;
764
+ admittedAt: z.ZodISODateTime;
765
+ setupAllowanceSeconds: z.ZodLiteral<120>;
766
+ maxCallDurationSeconds: z.ZodNumber;
767
+ providerReleaseDurationCeilingSeconds: z.ZodNumber;
768
+ absoluteExpiresAt: z.ZodISODateTime;
769
+ connectedAt: z.ZodNullable<z.ZodISODateTime>;
770
+ connectedDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
771
+ }, z.core.$strict>;
772
+ providerReferences: z.ZodObject<{
773
+ provider: z.ZodLiteral<"ELEVENLABS">;
774
+ providerAgentId: z.ZodNullable<z.ZodString>;
775
+ providerConversationId: z.ZodNullable<z.ZodString>;
776
+ conversationBindingStatus: z.ZodEnum<{
777
+ MISSING: "MISSING";
778
+ CONTRADICTORY: "CONTRADICTORY";
779
+ CORROBORATED: "CORROBORATED";
780
+ UNVERIFIED: "UNVERIFIED";
781
+ }>;
782
+ twilioCallSid: z.ZodNullable<z.ZodString>;
783
+ }, z.core.$strict>;
784
+ authentication: z.ZodObject<{
785
+ outcome: z.ZodEnum<{
786
+ unknown: "unknown";
787
+ verified: "verified";
788
+ locked: "locked";
789
+ rejected: "rejected";
790
+ not_attempted: "not_attempted";
791
+ }>;
792
+ authorityAtRunEnd: z.ZodEnum<{
793
+ unknown: "unknown";
794
+ expired: "expired";
795
+ revoked: "revoked";
796
+ active: "active";
797
+ }>;
798
+ method: z.ZodNullable<z.ZodString>;
799
+ attemptedAt: z.ZodNullable<z.ZodISODateTime>;
800
+ verifiedAt: z.ZodNullable<z.ZodISODateTime>;
801
+ verifiedResource: z.ZodNullable<z.ZodObject<{
802
+ kind: z.ZodString;
803
+ id: z.ZodString;
804
+ }, z.core.$strict>>;
805
+ verifierInvocationId: z.ZodNullable<z.ZodString>;
806
+ observedFunctionVersionId: z.ZodNullable<z.ZodString>;
807
+ }, z.core.$strict>;
808
+ toolOutcomes: z.ZodArray<z.ZodObject<{
809
+ toolInvocationId: z.ZodString;
810
+ providerToolCallId: z.ZodNullable<z.ZodString>;
811
+ functionInvocationId: z.ZodNullable<z.ZodString>;
812
+ actionIntentId: z.ZodNullable<z.ZodString>;
813
+ actionReceiptId: z.ZodNullable<z.ZodString>;
814
+ actionPhase: z.ZodNullable<z.ZodEnum<{
815
+ UNKNOWN: "UNKNOWN";
816
+ PREPARE: "PREPARE";
817
+ CONFIRM: "CONFIRM";
818
+ CANCEL: "CANCEL";
819
+ }>>;
820
+ actionResolution: z.ZodNullable<z.ZodEnum<{
821
+ CANCELLED: "CANCELLED";
822
+ COMMITTED: "COMMITTED";
823
+ }>>;
824
+ toolAlias: z.ZodString;
825
+ operationKind: z.ZodEnum<{
826
+ AUTHENTICATION: "AUTHENTICATION";
827
+ READ: "READ";
828
+ CALCULATION: "CALCULATION";
829
+ BUSINESS_ACTION: "BUSINESS_ACTION";
830
+ }>;
831
+ status: z.ZodEnum<{
832
+ FAILED: "FAILED";
833
+ SUCCEEDED: "SUCCEEDED";
834
+ UNKNOWN: "UNKNOWN";
835
+ CANCELLED: "CANCELLED";
836
+ DENIED: "DENIED";
837
+ }>;
838
+ startedAt: z.ZodISODateTime;
839
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
840
+ observedFunctionVersionId: z.ZodNullable<z.ZodString>;
841
+ validatedArguments: z.ZodNullable<z.ZodJSONSchema>;
842
+ boundedResult: z.ZodNullable<z.ZodJSONSchema>;
843
+ sanitizedError: z.ZodNullable<z.ZodObject<{
844
+ code: z.ZodString;
845
+ message: z.ZodString;
846
+ }, z.core.$strict>>;
847
+ }, z.core.$strict>>;
848
+ transcript: z.ZodDiscriminatedUnion<[z.ZodObject<{
849
+ status: z.ZodLiteral<"AVAILABLE">;
850
+ transcriptReferenceId: z.ZodString;
851
+ capturedAt: z.ZodISODateTime;
852
+ entries: z.ZodArray<z.ZodObject<{
853
+ sequence: z.ZodNumber;
854
+ speaker: z.ZodEnum<{
855
+ AGENT: "AGENT";
856
+ CALLER: "CALLER";
857
+ TOOL: "TOOL";
858
+ SYSTEM: "SYSTEM";
859
+ }>;
860
+ text: z.ZodString;
861
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
862
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
863
+ }, z.core.$strict>>;
864
+ sanitizedDetail: z.ZodNull;
865
+ }, z.core.$strict>, z.ZodObject<{
866
+ status: z.ZodEnum<{
867
+ MISSING: "MISSING";
868
+ PENDING: "PENDING";
869
+ }>;
870
+ transcriptReferenceId: z.ZodNull;
871
+ capturedAt: z.ZodNullable<z.ZodISODateTime>;
872
+ entries: z.ZodArray<z.ZodObject<{
873
+ sequence: z.ZodNumber;
874
+ speaker: z.ZodEnum<{
875
+ AGENT: "AGENT";
876
+ CALLER: "CALLER";
877
+ TOOL: "TOOL";
878
+ SYSTEM: "SYSTEM";
879
+ }>;
880
+ text: z.ZodString;
881
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
882
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
883
+ }, z.core.$strict>>;
884
+ sanitizedDetail: z.ZodString;
885
+ }, z.core.$strict>, z.ZodObject<{
886
+ status: z.ZodLiteral<"CONTRADICTORY">;
887
+ transcriptReferenceId: z.ZodNullable<z.ZodString>;
888
+ capturedAt: z.ZodNullable<z.ZodISODateTime>;
889
+ entries: z.ZodArray<z.ZodObject<{
890
+ sequence: z.ZodNumber;
891
+ speaker: z.ZodEnum<{
892
+ AGENT: "AGENT";
893
+ CALLER: "CALLER";
894
+ TOOL: "TOOL";
895
+ SYSTEM: "SYSTEM";
896
+ }>;
897
+ text: z.ZodString;
898
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
899
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
900
+ }, z.core.$strict>>;
901
+ sanitizedDetail: z.ZodString;
902
+ }, z.core.$strict>], "status">;
903
+ completionEvent: z.ZodNullable<z.ZodObject<{
904
+ eventId: z.ZodString;
905
+ logicalIdentity: z.ZodObject<{
906
+ sessionId: z.ZodString;
907
+ kind: z.ZodLiteral<"CALL_COMPLETED">;
908
+ }, z.core.$strict>;
909
+ providerDeliveryIds: z.ZodArray<z.ZodString>;
910
+ evidenceStatus: z.ZodEnum<{
911
+ CONTRADICTORY: "CONTRADICTORY";
912
+ PENDING: "PENDING";
913
+ CONFIRMED: "CONFIRMED";
914
+ }>;
915
+ persistedAt: z.ZodISODateTime;
916
+ providerConversationId: z.ZodNullable<z.ZodString>;
917
+ }, z.core.$strict>>;
918
+ missingEvidence: z.ZodArray<z.ZodObject<{
919
+ kind: z.ZodEnum<{
920
+ TRANSCRIPT: "TRANSCRIPT";
921
+ COMPLETION_EVENT: "COMPLETION_EVENT";
922
+ RECORDING: "RECORDING";
923
+ AUTHENTICATION: "AUTHENTICATION";
924
+ RUNTIME_IDENTITY: "RUNTIME_IDENTITY";
925
+ ENABLING_OPERATOR: "ENABLING_OPERATOR";
926
+ PROVIDER_BINDING: "PROVIDER_BINDING";
927
+ CALL_TIMING: "CALL_TIMING";
928
+ ACTION_RESULT: "ACTION_RESULT";
929
+ WRITEBACK: "WRITEBACK";
930
+ }>;
931
+ status: z.ZodEnum<{
932
+ MISSING: "MISSING";
933
+ CONTRADICTORY: "CONTRADICTORY";
934
+ PENDING: "PENDING";
935
+ }>;
936
+ firstObservedAt: z.ZodISODateTime;
937
+ sanitizedDetail: z.ZodString;
938
+ }, z.core.$strict>>;
939
+ costFacts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
940
+ source: z.ZodEnum<{
941
+ PROVIDER: "PROVIDER";
942
+ TWILIO: "TWILIO";
943
+ ATLAS: "ATLAS";
944
+ }>;
945
+ category: z.ZodEnum<{
946
+ TOOL: "TOOL";
947
+ CALL: "CALL";
948
+ MODEL: "MODEL";
949
+ TELEPHONY: "TELEPHONY";
950
+ }>;
951
+ currency: z.ZodString;
952
+ amountMinorUnits: z.ZodNumber;
953
+ }, z.core.$strict>, z.ZodObject<{
954
+ source: z.ZodLiteral<"PROVIDER">;
955
+ category: z.ZodLiteral<"CALL">;
956
+ unit: z.ZodLiteral<"CREDITS">;
957
+ amount: z.ZodNumber;
958
+ }, z.core.$strict>]>>;
959
+ latencyFacts: z.ZodArray<z.ZodObject<{
960
+ source: z.ZodEnum<{
961
+ PROVIDER: "PROVIDER";
962
+ TWILIO: "TWILIO";
963
+ ATLAS: "ATLAS";
964
+ }>;
965
+ metric: z.ZodEnum<{
966
+ FIRST_AUDIBLE_RESPONSE: "FIRST_AUDIBLE_RESPONSE";
967
+ FIRST_SUBSTANTIVE_RESPONSE: "FIRST_SUBSTANTIVE_RESPONSE";
968
+ TOOL_INVOCATION: "TOOL_INVOCATION";
969
+ COMPLETION_PROCESSING: "COMPLETION_PROCESSING";
970
+ }>;
971
+ milliseconds: z.ZodNumber;
972
+ }, z.core.$strict>>;
973
+ terminationReason: z.ZodEnum<{
974
+ UNKNOWN: "UNKNOWN";
975
+ REMOTE_HANGUP: "REMOTE_HANGUP";
976
+ ATLAS_CANCELLED: "ATLAS_CANCELLED";
977
+ DURATION_LIMIT: "DURATION_LIMIT";
978
+ PROVIDER_FAILURE: "PROVIDER_FAILURE";
979
+ TELEPHONY_FAILURE: "TELEPHONY_FAILURE";
980
+ ADMISSION_SHUTDOWN: "ADMISSION_SHUTDOWN";
981
+ }>;
982
+ schemaVersion: z.ZodLiteral<"1">;
983
+ scope: z.ZodObject<{
984
+ tenantId: z.ZodString;
985
+ environmentId: z.ZodString;
986
+ agentId: z.ZodString;
987
+ }, z.core.$strict>;
988
+ runId: z.ZodString;
989
+ sessionId: z.ZodString;
990
+ agentVersionId: z.ZodString;
991
+ releaseId: z.ZodString;
992
+ direction: z.ZodEnum<{
993
+ INBOUND: "INBOUND";
994
+ OUTBOUND: "OUTBOUND";
995
+ }>;
996
+ callerIdentity: z.ZodDiscriminatedUnion<[z.ZodObject<{
997
+ direction: z.ZodLiteral<"INBOUND">;
998
+ initiatingStaffPrincipalId: z.ZodNull;
999
+ phoneCaller: z.ZodObject<{
1000
+ classification: z.ZodLiteral<"UNAUTHENTICATED_PHONE_CALLER">;
1001
+ callerId: z.ZodNullable<z.ZodString>;
1002
+ }, z.core.$strict>;
1003
+ }, z.core.$strict>, z.ZodObject<{
1004
+ direction: z.ZodLiteral<"OUTBOUND">;
1005
+ initiatingStaffPrincipalId: z.ZodString;
1006
+ phoneCaller: z.ZodObject<{
1007
+ classification: z.ZodLiteral<"REGISTERED_DESTINATION">;
1008
+ destinationId: z.ZodString;
1009
+ }, z.core.$strict>;
1010
+ }, z.core.$strict>], "direction">;
1011
+ runtimeAccountId: z.ZodString;
1012
+ enablingOperatorPrincipalId: z.ZodNullable<z.ZodString>;
1013
+ admittedAt: z.ZodISODateTime;
1014
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
1015
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1016
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
1017
+ telephoneOutcome: z.ZodEnum<{
1018
+ FAILED: "FAILED";
1019
+ COMPLETED: "COMPLETED";
1020
+ UNKNOWN: "UNKNOWN";
1021
+ CANCELLED: "CANCELLED";
1022
+ }>;
1023
+ businessOutcome: z.ZodEnum<{
1024
+ FAILED: "FAILED";
1025
+ SUCCEEDED: "SUCCEEDED";
1026
+ UNKNOWN: "UNKNOWN";
1027
+ PARTIAL: "PARTIAL";
1028
+ NOT_REQUESTED: "NOT_REQUESTED";
1029
+ }>;
1030
+ writebackStatus: z.ZodEnum<{
1031
+ FAILED: "FAILED";
1032
+ RECONCILIATION_REQUIRED: "RECONCILIATION_REQUIRED";
1033
+ COMPLETE: "COMPLETE";
1034
+ PENDING: "PENDING";
1035
+ }>;
1036
+ evidenceStatus: z.ZodEnum<{
1037
+ COMPLETE: "COMPLETE";
1038
+ INCOMPLETE: "INCOMPLETE";
1039
+ CONTRADICTORY: "CONTRADICTORY";
1040
+ PENDING: "PENDING";
1041
+ }>;
1042
+ syntheticResource: z.ZodObject<{
1043
+ candidate: z.ZodNullable<z.ZodObject<{
1044
+ fixtureId: z.ZodString;
1045
+ syntheticResource: z.ZodObject<{
1046
+ kind: z.ZodString;
1047
+ id: z.ZodString;
1048
+ }, z.core.$strict>;
1049
+ }, z.core.$strict>>;
1050
+ verifiedResource: z.ZodNullable<z.ZodObject<{
1051
+ kind: z.ZodString;
1052
+ id: z.ZodString;
1053
+ }, z.core.$strict>>;
1054
+ verificationStatus: z.ZodEnum<{
1055
+ FAILED: "FAILED";
1056
+ UNKNOWN: "UNKNOWN";
1057
+ VERIFIED: "VERIFIED";
1058
+ NOT_VERIFIED: "NOT_VERIFIED";
1059
+ LOCKED: "LOCKED";
1060
+ EXPIRED: "EXPIRED";
1061
+ REVOKED: "REVOKED";
1062
+ }>;
1063
+ }, z.core.$strict>;
1064
+ retention: z.ZodObject<{
1065
+ policy: z.ZodLiteral<"UNLIMITED">;
1066
+ ageBasedExpiry: z.ZodLiteral<false>;
1067
+ appliesTo: z.ZodTuple<[z.ZodLiteral<"TRANSCRIPT">, z.ZodLiteral<"TOOL_EVIDENCE">, z.ZodLiteral<"COMPLETION_EVENT">, z.ZodLiteral<"RUN_METADATA">, z.ZodLiteral<"RECORDING">], null>;
1068
+ }, z.core.$strict>;
1069
+ recording: z.ZodDiscriminatedUnion<[z.ZodObject<{
1070
+ status: z.ZodLiteral<"DISABLED">;
1071
+ enabled: z.ZodLiteral<false>;
1072
+ providerRetention: z.ZodNull;
1073
+ sanitizedDetail: z.ZodString;
1074
+ }, z.core.$strict>, z.ZodObject<{
1075
+ status: z.ZodLiteral<"PENDING">;
1076
+ enabled: z.ZodLiteral<true>;
1077
+ providerRetention: z.ZodObject<{
1078
+ policy: z.ZodLiteral<"UNLIMITED">;
1079
+ providerRetentionDays: z.ZodLiteral<-1>;
1080
+ evidenceRef: z.ZodString;
1081
+ }, z.core.$strict>;
1082
+ sanitizedDetail: z.ZodNullable<z.ZodString>;
1083
+ }, z.core.$strict>, z.ZodObject<{
1084
+ status: z.ZodLiteral<"AVAILABLE">;
1085
+ enabled: z.ZodLiteral<true>;
1086
+ providerRetention: z.ZodObject<{
1087
+ policy: z.ZodLiteral<"UNLIMITED">;
1088
+ providerRetentionDays: z.ZodLiteral<-1>;
1089
+ evidenceRef: z.ZodString;
1090
+ }, z.core.$strict>;
1091
+ sanitizedDetail: z.ZodNull;
1092
+ }, z.core.$strict>, z.ZodObject<{
1093
+ status: z.ZodLiteral<"UNAVAILABLE">;
1094
+ enabled: z.ZodLiteral<true>;
1095
+ providerRetention: z.ZodObject<{
1096
+ policy: z.ZodLiteral<"UNLIMITED">;
1097
+ providerRetentionDays: z.ZodLiteral<-1>;
1098
+ evidenceRef: z.ZodString;
1099
+ }, z.core.$strict>;
1100
+ sanitizedDetail: z.ZodString;
1101
+ }, z.core.$strict>], "status">;
1102
+ }, z.core.$strict>;