@selleragent/api-contract 0.1.0

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 (50) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/auth.d.ts +457 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +122 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/commerce.d.ts +1393 -0
  7. package/dist/commerce.d.ts.map +1 -0
  8. package/dist/commerce.js +255 -0
  9. package/dist/commerce.js.map +1 -0
  10. package/dist/conversations.d.ts +1956 -0
  11. package/dist/conversations.d.ts.map +1 -0
  12. package/dist/conversations.js +234 -0
  13. package/dist/conversations.js.map +1 -0
  14. package/dist/customers.d.ts +1235 -0
  15. package/dist/customers.d.ts.map +1 -0
  16. package/dist/customers.js +214 -0
  17. package/dist/customers.js.map +1 -0
  18. package/dist/followups.d.ts +382 -0
  19. package/dist/followups.d.ts.map +1 -0
  20. package/dist/followups.js +99 -0
  21. package/dist/followups.js.map +1 -0
  22. package/dist/index.d.ts +22 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +588 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/judge-files.d.ts +873 -0
  27. package/dist/judge-files.d.ts.map +1 -0
  28. package/dist/judge-files.js +280 -0
  29. package/dist/judge-files.js.map +1 -0
  30. package/dist/operations.d.ts +23537 -0
  31. package/dist/operations.d.ts.map +1 -0
  32. package/dist/operations.js +1832 -0
  33. package/dist/operations.js.map +1 -0
  34. package/dist/ops.d.ts +4438 -0
  35. package/dist/ops.d.ts.map +1 -0
  36. package/dist/ops.js +537 -0
  37. package/dist/ops.js.map +1 -0
  38. package/dist/runtime.d.ts +1051 -0
  39. package/dist/runtime.d.ts.map +1 -0
  40. package/dist/runtime.js +325 -0
  41. package/dist/runtime.js.map +1 -0
  42. package/dist/semantic-eval.d.ts +1234 -0
  43. package/dist/semantic-eval.d.ts.map +1 -0
  44. package/dist/semantic-eval.js +162 -0
  45. package/dist/semantic-eval.js.map +1 -0
  46. package/dist/system.d.ts +69 -0
  47. package/dist/system.d.ts.map +1 -0
  48. package/dist/system.js +52 -0
  49. package/dist/system.js.map +1 -0
  50. package/package.json +38 -0
@@ -0,0 +1,1234 @@
1
+ import { z } from 'zod';
2
+ export declare const semanticEvalTargetKindSchema: z.ZodEnum<{
3
+ turn: "turn";
4
+ journey: "journey";
5
+ }>;
6
+ export declare const semanticEvalContextPolicySchema: z.ZodEnum<{
7
+ minimal_only: "minimal_only";
8
+ allow_windowed: "allow_windowed";
9
+ allow_full: "allow_full";
10
+ }>;
11
+ export declare const semanticEvalContextLevelSchema: z.ZodEnum<{
12
+ minimal: "minimal";
13
+ windowed: "windowed";
14
+ full: "full";
15
+ }>;
16
+ export declare const semanticEvalVerdictSchema: z.ZodEnum<{
17
+ pass: "pass";
18
+ soft_fail: "soft_fail";
19
+ fail: "fail";
20
+ inconclusive: "inconclusive";
21
+ contract_error: "contract_error";
22
+ }>;
23
+ export declare const semanticEvalFindingStatusSchema: z.ZodEnum<{
24
+ matched: "matched";
25
+ missed: "missed";
26
+ violated: "violated";
27
+ ambiguous: "ambiguous";
28
+ }>;
29
+ export declare const semanticEvidenceRefSchema: z.ZodObject<{
30
+ ref: z.ZodString;
31
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
32
+ }, z.core.$strip>;
33
+ export type SemanticEvidenceRef = z.infer<typeof semanticEvidenceRefSchema>;
34
+ export declare const semanticExpectationClauseSchema: z.ZodObject<{
35
+ expectationId: z.ZodString;
36
+ label: z.ZodString;
37
+ description: z.ZodString;
38
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
39
+ weight: z.ZodDefault<z.ZodNumber>;
40
+ }, z.core.$strip>;
41
+ export type SemanticExpectationClause = z.infer<typeof semanticExpectationClauseSchema>;
42
+ export declare const expectationContractSchema: z.ZodObject<{
43
+ contractId: z.ZodString;
44
+ contractVersion: z.ZodString;
45
+ kind: z.ZodEnum<{
46
+ turn: "turn";
47
+ journey: "journey";
48
+ }>;
49
+ stageLabel: z.ZodString;
50
+ contextPolicy: z.ZodEnum<{
51
+ minimal_only: "minimal_only";
52
+ allow_windowed: "allow_windowed";
53
+ allow_full: "allow_full";
54
+ }>;
55
+ evaluationQuestion: z.ZodString;
56
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
57
+ expectationId: z.ZodString;
58
+ label: z.ZodString;
59
+ description: z.ZodString;
60
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
61
+ weight: z.ZodDefault<z.ZodNumber>;
62
+ }, z.core.$strip>>>;
63
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
64
+ expectationId: z.ZodString;
65
+ label: z.ZodString;
66
+ description: z.ZodString;
67
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ weight: z.ZodDefault<z.ZodNumber>;
69
+ }, z.core.$strip>>>;
70
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
71
+ expectationId: z.ZodString;
72
+ label: z.ZodString;
73
+ description: z.ZodString;
74
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
75
+ weight: z.ZodDefault<z.ZodNumber>;
76
+ }, z.core.$strip>>>;
77
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
78
+ expectationId: z.ZodString;
79
+ label: z.ZodString;
80
+ description: z.ZodString;
81
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
82
+ weight: z.ZodDefault<z.ZodNumber>;
83
+ }, z.core.$strip>>>;
84
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
85
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
86
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
87
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
88
+ }, z.core.$strip>;
89
+ export type ExpectationContract = z.infer<typeof expectationContractSchema>;
90
+ export declare const semanticEvalMessageSchema: z.ZodObject<{
91
+ ref: z.ZodString;
92
+ author: z.ZodEnum<{
93
+ customer: "customer";
94
+ bot: "bot";
95
+ operator: "operator";
96
+ system: "system";
97
+ }>;
98
+ text: z.ZodString;
99
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
100
+ }, z.core.$strip>;
101
+ export type SemanticEvalMessage = z.infer<typeof semanticEvalMessageSchema>;
102
+ export declare const semanticEvalEvidenceIndexEntrySchema: z.ZodObject<{
103
+ ref: z.ZodString;
104
+ label: z.ZodString;
105
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
106
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
107
+ }, z.core.$strip>;
108
+ export type SemanticEvalEvidenceIndexEntry = z.infer<typeof semanticEvalEvidenceIndexEntrySchema>;
109
+ export declare const semanticJudgeInputMinimalSchema: z.ZodObject<{
110
+ scenarioId: z.ZodString;
111
+ scenarioRunId: z.ZodString;
112
+ targetId: z.ZodString;
113
+ targetKind: z.ZodEnum<{
114
+ turn: "turn";
115
+ journey: "journey";
116
+ }>;
117
+ contextPacketHash: z.ZodString;
118
+ expectationContract: z.ZodObject<{
119
+ contractId: z.ZodString;
120
+ contractVersion: z.ZodString;
121
+ kind: z.ZodEnum<{
122
+ turn: "turn";
123
+ journey: "journey";
124
+ }>;
125
+ stageLabel: z.ZodString;
126
+ contextPolicy: z.ZodEnum<{
127
+ minimal_only: "minimal_only";
128
+ allow_windowed: "allow_windowed";
129
+ allow_full: "allow_full";
130
+ }>;
131
+ evaluationQuestion: z.ZodString;
132
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
133
+ expectationId: z.ZodString;
134
+ label: z.ZodString;
135
+ description: z.ZodString;
136
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
137
+ weight: z.ZodDefault<z.ZodNumber>;
138
+ }, z.core.$strip>>>;
139
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
140
+ expectationId: z.ZodString;
141
+ label: z.ZodString;
142
+ description: z.ZodString;
143
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
144
+ weight: z.ZodDefault<z.ZodNumber>;
145
+ }, z.core.$strip>>>;
146
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
147
+ expectationId: z.ZodString;
148
+ label: z.ZodString;
149
+ description: z.ZodString;
150
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
151
+ weight: z.ZodDefault<z.ZodNumber>;
152
+ }, z.core.$strip>>>;
153
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
154
+ expectationId: z.ZodString;
155
+ label: z.ZodString;
156
+ description: z.ZodString;
157
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
158
+ weight: z.ZodDefault<z.ZodNumber>;
159
+ }, z.core.$strip>>>;
160
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
161
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
162
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
163
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
164
+ }, z.core.$strip>;
165
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
166
+ ref: z.ZodString;
167
+ author: z.ZodEnum<{
168
+ customer: "customer";
169
+ bot: "bot";
170
+ operator: "operator";
171
+ system: "system";
172
+ }>;
173
+ text: z.ZodString;
174
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
175
+ }, z.core.$strip>>>;
176
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
177
+ ref: z.ZodString;
178
+ author: z.ZodEnum<{
179
+ customer: "customer";
180
+ bot: "bot";
181
+ operator: "operator";
182
+ system: "system";
183
+ }>;
184
+ text: z.ZodString;
185
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
186
+ }, z.core.$strip>>>;
187
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
188
+ ref: z.ZodString;
189
+ label: z.ZodString;
190
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
191
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
192
+ }, z.core.$strip>>>;
193
+ contextLevel: z.ZodLiteral<"minimal">;
194
+ minimalContext: z.ZodObject<{
195
+ stageLabel: z.ZodString;
196
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
197
+ }, z.core.$strip>;
198
+ }, z.core.$strip>;
199
+ export declare const semanticJudgeInputWindowedSchema: z.ZodObject<{
200
+ scenarioId: z.ZodString;
201
+ scenarioRunId: z.ZodString;
202
+ targetId: z.ZodString;
203
+ targetKind: z.ZodEnum<{
204
+ turn: "turn";
205
+ journey: "journey";
206
+ }>;
207
+ contextPacketHash: z.ZodString;
208
+ expectationContract: z.ZodObject<{
209
+ contractId: z.ZodString;
210
+ contractVersion: z.ZodString;
211
+ kind: z.ZodEnum<{
212
+ turn: "turn";
213
+ journey: "journey";
214
+ }>;
215
+ stageLabel: z.ZodString;
216
+ contextPolicy: z.ZodEnum<{
217
+ minimal_only: "minimal_only";
218
+ allow_windowed: "allow_windowed";
219
+ allow_full: "allow_full";
220
+ }>;
221
+ evaluationQuestion: z.ZodString;
222
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
223
+ expectationId: z.ZodString;
224
+ label: z.ZodString;
225
+ description: z.ZodString;
226
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
227
+ weight: z.ZodDefault<z.ZodNumber>;
228
+ }, z.core.$strip>>>;
229
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
230
+ expectationId: z.ZodString;
231
+ label: z.ZodString;
232
+ description: z.ZodString;
233
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
234
+ weight: z.ZodDefault<z.ZodNumber>;
235
+ }, z.core.$strip>>>;
236
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
237
+ expectationId: z.ZodString;
238
+ label: z.ZodString;
239
+ description: z.ZodString;
240
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
241
+ weight: z.ZodDefault<z.ZodNumber>;
242
+ }, z.core.$strip>>>;
243
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
244
+ expectationId: z.ZodString;
245
+ label: z.ZodString;
246
+ description: z.ZodString;
247
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
248
+ weight: z.ZodDefault<z.ZodNumber>;
249
+ }, z.core.$strip>>>;
250
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
251
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
252
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
253
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
254
+ }, z.core.$strip>;
255
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
256
+ ref: z.ZodString;
257
+ author: z.ZodEnum<{
258
+ customer: "customer";
259
+ bot: "bot";
260
+ operator: "operator";
261
+ system: "system";
262
+ }>;
263
+ text: z.ZodString;
264
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
265
+ }, z.core.$strip>>>;
266
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
267
+ ref: z.ZodString;
268
+ author: z.ZodEnum<{
269
+ customer: "customer";
270
+ bot: "bot";
271
+ operator: "operator";
272
+ system: "system";
273
+ }>;
274
+ text: z.ZodString;
275
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
276
+ }, z.core.$strip>>>;
277
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
278
+ ref: z.ZodString;
279
+ label: z.ZodString;
280
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
281
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
282
+ }, z.core.$strip>>>;
283
+ contextLevel: z.ZodLiteral<"windowed">;
284
+ windowedContext: z.ZodObject<{
285
+ stageLabel: z.ZodString;
286
+ recentTurns: z.ZodDefault<z.ZodArray<z.ZodObject<{
287
+ ref: z.ZodString;
288
+ author: z.ZodEnum<{
289
+ customer: "customer";
290
+ bot: "bot";
291
+ operator: "operator";
292
+ system: "system";
293
+ }>;
294
+ text: z.ZodString;
295
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
296
+ }, z.core.$strip>>>;
297
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
298
+ }, z.core.$strip>;
299
+ }, z.core.$strip>;
300
+ export declare const semanticJudgeInputFullSchema: z.ZodObject<{
301
+ scenarioId: z.ZodString;
302
+ scenarioRunId: z.ZodString;
303
+ targetId: z.ZodString;
304
+ targetKind: z.ZodEnum<{
305
+ turn: "turn";
306
+ journey: "journey";
307
+ }>;
308
+ contextPacketHash: z.ZodString;
309
+ expectationContract: z.ZodObject<{
310
+ contractId: z.ZodString;
311
+ contractVersion: z.ZodString;
312
+ kind: z.ZodEnum<{
313
+ turn: "turn";
314
+ journey: "journey";
315
+ }>;
316
+ stageLabel: z.ZodString;
317
+ contextPolicy: z.ZodEnum<{
318
+ minimal_only: "minimal_only";
319
+ allow_windowed: "allow_windowed";
320
+ allow_full: "allow_full";
321
+ }>;
322
+ evaluationQuestion: z.ZodString;
323
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
324
+ expectationId: z.ZodString;
325
+ label: z.ZodString;
326
+ description: z.ZodString;
327
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
328
+ weight: z.ZodDefault<z.ZodNumber>;
329
+ }, z.core.$strip>>>;
330
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
331
+ expectationId: z.ZodString;
332
+ label: z.ZodString;
333
+ description: z.ZodString;
334
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
335
+ weight: z.ZodDefault<z.ZodNumber>;
336
+ }, z.core.$strip>>>;
337
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
338
+ expectationId: z.ZodString;
339
+ label: z.ZodString;
340
+ description: z.ZodString;
341
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
342
+ weight: z.ZodDefault<z.ZodNumber>;
343
+ }, z.core.$strip>>>;
344
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
345
+ expectationId: z.ZodString;
346
+ label: z.ZodString;
347
+ description: z.ZodString;
348
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
349
+ weight: z.ZodDefault<z.ZodNumber>;
350
+ }, z.core.$strip>>>;
351
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
352
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
353
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
354
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
355
+ }, z.core.$strip>;
356
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
357
+ ref: z.ZodString;
358
+ author: z.ZodEnum<{
359
+ customer: "customer";
360
+ bot: "bot";
361
+ operator: "operator";
362
+ system: "system";
363
+ }>;
364
+ text: z.ZodString;
365
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
366
+ }, z.core.$strip>>>;
367
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
368
+ ref: z.ZodString;
369
+ author: z.ZodEnum<{
370
+ customer: "customer";
371
+ bot: "bot";
372
+ operator: "operator";
373
+ system: "system";
374
+ }>;
375
+ text: z.ZodString;
376
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
377
+ }, z.core.$strip>>>;
378
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
379
+ ref: z.ZodString;
380
+ label: z.ZodString;
381
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
382
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
383
+ }, z.core.$strip>>>;
384
+ contextLevel: z.ZodLiteral<"full">;
385
+ fullContext: z.ZodObject<{
386
+ stageLabel: z.ZodString;
387
+ packedContextSummary: z.ZodString;
388
+ traceSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
389
+ recentTurns: z.ZodDefault<z.ZodArray<z.ZodObject<{
390
+ ref: z.ZodString;
391
+ author: z.ZodEnum<{
392
+ customer: "customer";
393
+ bot: "bot";
394
+ operator: "operator";
395
+ system: "system";
396
+ }>;
397
+ text: z.ZodString;
398
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
399
+ }, z.core.$strip>>>;
400
+ }, z.core.$strip>;
401
+ }, z.core.$strip>;
402
+ export declare const semanticJudgeInputPacketSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
403
+ scenarioId: z.ZodString;
404
+ scenarioRunId: z.ZodString;
405
+ targetId: z.ZodString;
406
+ targetKind: z.ZodEnum<{
407
+ turn: "turn";
408
+ journey: "journey";
409
+ }>;
410
+ contextPacketHash: z.ZodString;
411
+ expectationContract: z.ZodObject<{
412
+ contractId: z.ZodString;
413
+ contractVersion: z.ZodString;
414
+ kind: z.ZodEnum<{
415
+ turn: "turn";
416
+ journey: "journey";
417
+ }>;
418
+ stageLabel: z.ZodString;
419
+ contextPolicy: z.ZodEnum<{
420
+ minimal_only: "minimal_only";
421
+ allow_windowed: "allow_windowed";
422
+ allow_full: "allow_full";
423
+ }>;
424
+ evaluationQuestion: z.ZodString;
425
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
426
+ expectationId: z.ZodString;
427
+ label: z.ZodString;
428
+ description: z.ZodString;
429
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
430
+ weight: z.ZodDefault<z.ZodNumber>;
431
+ }, z.core.$strip>>>;
432
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
433
+ expectationId: z.ZodString;
434
+ label: z.ZodString;
435
+ description: z.ZodString;
436
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
437
+ weight: z.ZodDefault<z.ZodNumber>;
438
+ }, z.core.$strip>>>;
439
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
440
+ expectationId: z.ZodString;
441
+ label: z.ZodString;
442
+ description: z.ZodString;
443
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
444
+ weight: z.ZodDefault<z.ZodNumber>;
445
+ }, z.core.$strip>>>;
446
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
447
+ expectationId: z.ZodString;
448
+ label: z.ZodString;
449
+ description: z.ZodString;
450
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
451
+ weight: z.ZodDefault<z.ZodNumber>;
452
+ }, z.core.$strip>>>;
453
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
454
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
455
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
456
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
457
+ }, z.core.$strip>;
458
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
459
+ ref: z.ZodString;
460
+ author: z.ZodEnum<{
461
+ customer: "customer";
462
+ bot: "bot";
463
+ operator: "operator";
464
+ system: "system";
465
+ }>;
466
+ text: z.ZodString;
467
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
468
+ }, z.core.$strip>>>;
469
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
470
+ ref: z.ZodString;
471
+ author: z.ZodEnum<{
472
+ customer: "customer";
473
+ bot: "bot";
474
+ operator: "operator";
475
+ system: "system";
476
+ }>;
477
+ text: z.ZodString;
478
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
479
+ }, z.core.$strip>>>;
480
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
481
+ ref: z.ZodString;
482
+ label: z.ZodString;
483
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
484
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
485
+ }, z.core.$strip>>>;
486
+ contextLevel: z.ZodLiteral<"minimal">;
487
+ minimalContext: z.ZodObject<{
488
+ stageLabel: z.ZodString;
489
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
490
+ }, z.core.$strip>;
491
+ }, z.core.$strip>, z.ZodObject<{
492
+ scenarioId: z.ZodString;
493
+ scenarioRunId: z.ZodString;
494
+ targetId: z.ZodString;
495
+ targetKind: z.ZodEnum<{
496
+ turn: "turn";
497
+ journey: "journey";
498
+ }>;
499
+ contextPacketHash: z.ZodString;
500
+ expectationContract: z.ZodObject<{
501
+ contractId: z.ZodString;
502
+ contractVersion: z.ZodString;
503
+ kind: z.ZodEnum<{
504
+ turn: "turn";
505
+ journey: "journey";
506
+ }>;
507
+ stageLabel: z.ZodString;
508
+ contextPolicy: z.ZodEnum<{
509
+ minimal_only: "minimal_only";
510
+ allow_windowed: "allow_windowed";
511
+ allow_full: "allow_full";
512
+ }>;
513
+ evaluationQuestion: z.ZodString;
514
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
515
+ expectationId: z.ZodString;
516
+ label: z.ZodString;
517
+ description: z.ZodString;
518
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
519
+ weight: z.ZodDefault<z.ZodNumber>;
520
+ }, z.core.$strip>>>;
521
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
522
+ expectationId: z.ZodString;
523
+ label: z.ZodString;
524
+ description: z.ZodString;
525
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
526
+ weight: z.ZodDefault<z.ZodNumber>;
527
+ }, z.core.$strip>>>;
528
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
529
+ expectationId: z.ZodString;
530
+ label: z.ZodString;
531
+ description: z.ZodString;
532
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
533
+ weight: z.ZodDefault<z.ZodNumber>;
534
+ }, z.core.$strip>>>;
535
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
536
+ expectationId: z.ZodString;
537
+ label: z.ZodString;
538
+ description: z.ZodString;
539
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
540
+ weight: z.ZodDefault<z.ZodNumber>;
541
+ }, z.core.$strip>>>;
542
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
543
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
544
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
545
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
546
+ }, z.core.$strip>;
547
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
548
+ ref: z.ZodString;
549
+ author: z.ZodEnum<{
550
+ customer: "customer";
551
+ bot: "bot";
552
+ operator: "operator";
553
+ system: "system";
554
+ }>;
555
+ text: z.ZodString;
556
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
557
+ }, z.core.$strip>>>;
558
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
559
+ ref: z.ZodString;
560
+ author: z.ZodEnum<{
561
+ customer: "customer";
562
+ bot: "bot";
563
+ operator: "operator";
564
+ system: "system";
565
+ }>;
566
+ text: z.ZodString;
567
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
568
+ }, z.core.$strip>>>;
569
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
570
+ ref: z.ZodString;
571
+ label: z.ZodString;
572
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
573
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
574
+ }, z.core.$strip>>>;
575
+ contextLevel: z.ZodLiteral<"windowed">;
576
+ windowedContext: z.ZodObject<{
577
+ stageLabel: z.ZodString;
578
+ recentTurns: z.ZodDefault<z.ZodArray<z.ZodObject<{
579
+ ref: z.ZodString;
580
+ author: z.ZodEnum<{
581
+ customer: "customer";
582
+ bot: "bot";
583
+ operator: "operator";
584
+ system: "system";
585
+ }>;
586
+ text: z.ZodString;
587
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
588
+ }, z.core.$strip>>>;
589
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
590
+ }, z.core.$strip>;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ scenarioId: z.ZodString;
593
+ scenarioRunId: z.ZodString;
594
+ targetId: z.ZodString;
595
+ targetKind: z.ZodEnum<{
596
+ turn: "turn";
597
+ journey: "journey";
598
+ }>;
599
+ contextPacketHash: z.ZodString;
600
+ expectationContract: z.ZodObject<{
601
+ contractId: z.ZodString;
602
+ contractVersion: z.ZodString;
603
+ kind: z.ZodEnum<{
604
+ turn: "turn";
605
+ journey: "journey";
606
+ }>;
607
+ stageLabel: z.ZodString;
608
+ contextPolicy: z.ZodEnum<{
609
+ minimal_only: "minimal_only";
610
+ allow_windowed: "allow_windowed";
611
+ allow_full: "allow_full";
612
+ }>;
613
+ evaluationQuestion: z.ZodString;
614
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
615
+ expectationId: z.ZodString;
616
+ label: z.ZodString;
617
+ description: z.ZodString;
618
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
619
+ weight: z.ZodDefault<z.ZodNumber>;
620
+ }, z.core.$strip>>>;
621
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
622
+ expectationId: z.ZodString;
623
+ label: z.ZodString;
624
+ description: z.ZodString;
625
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
626
+ weight: z.ZodDefault<z.ZodNumber>;
627
+ }, z.core.$strip>>>;
628
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
629
+ expectationId: z.ZodString;
630
+ label: z.ZodString;
631
+ description: z.ZodString;
632
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
633
+ weight: z.ZodDefault<z.ZodNumber>;
634
+ }, z.core.$strip>>>;
635
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
636
+ expectationId: z.ZodString;
637
+ label: z.ZodString;
638
+ description: z.ZodString;
639
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
640
+ weight: z.ZodDefault<z.ZodNumber>;
641
+ }, z.core.$strip>>>;
642
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
643
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
644
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
645
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
646
+ }, z.core.$strip>;
647
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
648
+ ref: z.ZodString;
649
+ author: z.ZodEnum<{
650
+ customer: "customer";
651
+ bot: "bot";
652
+ operator: "operator";
653
+ system: "system";
654
+ }>;
655
+ text: z.ZodString;
656
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
657
+ }, z.core.$strip>>>;
658
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
659
+ ref: z.ZodString;
660
+ author: z.ZodEnum<{
661
+ customer: "customer";
662
+ bot: "bot";
663
+ operator: "operator";
664
+ system: "system";
665
+ }>;
666
+ text: z.ZodString;
667
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
668
+ }, z.core.$strip>>>;
669
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
670
+ ref: z.ZodString;
671
+ label: z.ZodString;
672
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
673
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
674
+ }, z.core.$strip>>>;
675
+ contextLevel: z.ZodLiteral<"full">;
676
+ fullContext: z.ZodObject<{
677
+ stageLabel: z.ZodString;
678
+ packedContextSummary: z.ZodString;
679
+ traceSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
680
+ recentTurns: z.ZodDefault<z.ZodArray<z.ZodObject<{
681
+ ref: z.ZodString;
682
+ author: z.ZodEnum<{
683
+ customer: "customer";
684
+ bot: "bot";
685
+ operator: "operator";
686
+ system: "system";
687
+ }>;
688
+ text: z.ZodString;
689
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
690
+ }, z.core.$strip>>>;
691
+ }, z.core.$strip>;
692
+ }, z.core.$strip>], "contextLevel">;
693
+ export type SemanticJudgeInputPacket = z.infer<typeof semanticJudgeInputPacketSchema>;
694
+ export declare const semanticJudgeFindingSchema: z.ZodObject<{
695
+ expectationId: z.ZodString;
696
+ status: z.ZodEnum<{
697
+ matched: "matched";
698
+ missed: "missed";
699
+ violated: "violated";
700
+ ambiguous: "ambiguous";
701
+ }>;
702
+ because: z.ZodString;
703
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
704
+ ref: z.ZodString;
705
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
706
+ }, z.core.$strip>>>;
707
+ }, z.core.$strip>;
708
+ export type SemanticJudgeFinding = z.infer<typeof semanticJudgeFindingSchema>;
709
+ export declare const semanticJudgeContractErrorSchema: z.ZodObject<{
710
+ code: z.ZodString;
711
+ message: z.ZodString;
712
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
713
+ ref: z.ZodString;
714
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
715
+ }, z.core.$strip>>>;
716
+ }, z.core.$strip>;
717
+ export type SemanticJudgeContractError = z.infer<typeof semanticJudgeContractErrorSchema>;
718
+ export declare const semanticJudgeResultSchema: z.ZodObject<{
719
+ decision: z.ZodObject<{
720
+ verdict: z.ZodEnum<{
721
+ pass: "pass";
722
+ soft_fail: "soft_fail";
723
+ fail: "fail";
724
+ inconclusive: "inconclusive";
725
+ contract_error: "contract_error";
726
+ }>;
727
+ confidence: z.ZodNumber;
728
+ score: z.ZodNumber;
729
+ summary: z.ZodString;
730
+ contractId: z.ZodString;
731
+ contractVersion: z.ZodString;
732
+ contextPacketHash: z.ZodString;
733
+ }, z.core.$strip>;
734
+ analysis: z.ZodObject<{
735
+ matchedExpectations: z.ZodDefault<z.ZodArray<z.ZodObject<{
736
+ expectationId: z.ZodString;
737
+ status: z.ZodEnum<{
738
+ matched: "matched";
739
+ missed: "missed";
740
+ violated: "violated";
741
+ ambiguous: "ambiguous";
742
+ }>;
743
+ because: z.ZodString;
744
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
745
+ ref: z.ZodString;
746
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
747
+ }, z.core.$strip>>>;
748
+ }, z.core.$strip>>>;
749
+ missedExpectations: z.ZodDefault<z.ZodArray<z.ZodObject<{
750
+ expectationId: z.ZodString;
751
+ status: z.ZodEnum<{
752
+ matched: "matched";
753
+ missed: "missed";
754
+ violated: "violated";
755
+ ambiguous: "ambiguous";
756
+ }>;
757
+ because: z.ZodString;
758
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
759
+ ref: z.ZodString;
760
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
761
+ }, z.core.$strip>>>;
762
+ }, z.core.$strip>>>;
763
+ violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
764
+ expectationId: z.ZodString;
765
+ status: z.ZodEnum<{
766
+ matched: "matched";
767
+ missed: "missed";
768
+ violated: "violated";
769
+ ambiguous: "ambiguous";
770
+ }>;
771
+ because: z.ZodString;
772
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
773
+ ref: z.ZodString;
774
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
775
+ }, z.core.$strip>>>;
776
+ }, z.core.$strip>>>;
777
+ ambiguities: z.ZodDefault<z.ZodArray<z.ZodObject<{
778
+ expectationId: z.ZodString;
779
+ status: z.ZodEnum<{
780
+ matched: "matched";
781
+ missed: "missed";
782
+ violated: "violated";
783
+ ambiguous: "ambiguous";
784
+ }>;
785
+ because: z.ZodString;
786
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
787
+ ref: z.ZodString;
788
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
789
+ }, z.core.$strip>>>;
790
+ }, z.core.$strip>>>;
791
+ missingContextItems: z.ZodDefault<z.ZodArray<z.ZodString>>;
792
+ contextUsed: z.ZodEnum<{
793
+ minimal: "minimal";
794
+ windowed: "windowed";
795
+ full: "full";
796
+ }>;
797
+ needsMoreContext: z.ZodBoolean;
798
+ escalationUsed: z.ZodBoolean;
799
+ escalationReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
800
+ contractErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
801
+ code: z.ZodString;
802
+ message: z.ZodString;
803
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
804
+ ref: z.ZodString;
805
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
806
+ }, z.core.$strip>>>;
807
+ }, z.core.$strip>>>;
808
+ }, z.core.$strip>;
809
+ error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
810
+ code: z.ZodString;
811
+ message: z.ZodString;
812
+ }, z.core.$strip>>>;
813
+ }, z.core.$strip>;
814
+ export type SemanticJudgeResult = z.infer<typeof semanticJudgeResultSchema>;
815
+ export declare const semanticJudgeRunMetadataSchema: z.ZodObject<{
816
+ provider: z.ZodString;
817
+ modelId: z.ZodString;
818
+ finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
819
+ latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
820
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
821
+ inputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
822
+ outputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
823
+ totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
824
+ }, z.core.$strip>>>;
825
+ promptHash: z.ZodString;
826
+ systemPromptHash: z.ZodString;
827
+ userPromptHash: z.ZodString;
828
+ }, z.core.$strip>;
829
+ export type SemanticJudgeRunMetadata = z.infer<typeof semanticJudgeRunMetadataSchema>;
830
+ export declare const semanticJudgeExecutionEnvelopeSchema: z.ZodObject<{
831
+ packet: z.ZodDiscriminatedUnion<[z.ZodObject<{
832
+ scenarioId: z.ZodString;
833
+ scenarioRunId: z.ZodString;
834
+ targetId: z.ZodString;
835
+ targetKind: z.ZodEnum<{
836
+ turn: "turn";
837
+ journey: "journey";
838
+ }>;
839
+ contextPacketHash: z.ZodString;
840
+ expectationContract: z.ZodObject<{
841
+ contractId: z.ZodString;
842
+ contractVersion: z.ZodString;
843
+ kind: z.ZodEnum<{
844
+ turn: "turn";
845
+ journey: "journey";
846
+ }>;
847
+ stageLabel: z.ZodString;
848
+ contextPolicy: z.ZodEnum<{
849
+ minimal_only: "minimal_only";
850
+ allow_windowed: "allow_windowed";
851
+ allow_full: "allow_full";
852
+ }>;
853
+ evaluationQuestion: z.ZodString;
854
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
855
+ expectationId: z.ZodString;
856
+ label: z.ZodString;
857
+ description: z.ZodString;
858
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
859
+ weight: z.ZodDefault<z.ZodNumber>;
860
+ }, z.core.$strip>>>;
861
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
862
+ expectationId: z.ZodString;
863
+ label: z.ZodString;
864
+ description: z.ZodString;
865
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
866
+ weight: z.ZodDefault<z.ZodNumber>;
867
+ }, z.core.$strip>>>;
868
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
869
+ expectationId: z.ZodString;
870
+ label: z.ZodString;
871
+ description: z.ZodString;
872
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
873
+ weight: z.ZodDefault<z.ZodNumber>;
874
+ }, z.core.$strip>>>;
875
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
876
+ expectationId: z.ZodString;
877
+ label: z.ZodString;
878
+ description: z.ZodString;
879
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
880
+ weight: z.ZodDefault<z.ZodNumber>;
881
+ }, z.core.$strip>>>;
882
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
883
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
884
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
885
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
886
+ }, z.core.$strip>;
887
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
888
+ ref: z.ZodString;
889
+ author: z.ZodEnum<{
890
+ customer: "customer";
891
+ bot: "bot";
892
+ operator: "operator";
893
+ system: "system";
894
+ }>;
895
+ text: z.ZodString;
896
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
897
+ }, z.core.$strip>>>;
898
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
899
+ ref: z.ZodString;
900
+ author: z.ZodEnum<{
901
+ customer: "customer";
902
+ bot: "bot";
903
+ operator: "operator";
904
+ system: "system";
905
+ }>;
906
+ text: z.ZodString;
907
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
908
+ }, z.core.$strip>>>;
909
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
910
+ ref: z.ZodString;
911
+ label: z.ZodString;
912
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
913
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
914
+ }, z.core.$strip>>>;
915
+ contextLevel: z.ZodLiteral<"minimal">;
916
+ minimalContext: z.ZodObject<{
917
+ stageLabel: z.ZodString;
918
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
919
+ }, z.core.$strip>;
920
+ }, z.core.$strip>, z.ZodObject<{
921
+ scenarioId: z.ZodString;
922
+ scenarioRunId: z.ZodString;
923
+ targetId: z.ZodString;
924
+ targetKind: z.ZodEnum<{
925
+ turn: "turn";
926
+ journey: "journey";
927
+ }>;
928
+ contextPacketHash: z.ZodString;
929
+ expectationContract: z.ZodObject<{
930
+ contractId: z.ZodString;
931
+ contractVersion: z.ZodString;
932
+ kind: z.ZodEnum<{
933
+ turn: "turn";
934
+ journey: "journey";
935
+ }>;
936
+ stageLabel: z.ZodString;
937
+ contextPolicy: z.ZodEnum<{
938
+ minimal_only: "minimal_only";
939
+ allow_windowed: "allow_windowed";
940
+ allow_full: "allow_full";
941
+ }>;
942
+ evaluationQuestion: z.ZodString;
943
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
944
+ expectationId: z.ZodString;
945
+ label: z.ZodString;
946
+ description: z.ZodString;
947
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
948
+ weight: z.ZodDefault<z.ZodNumber>;
949
+ }, z.core.$strip>>>;
950
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
951
+ expectationId: z.ZodString;
952
+ label: z.ZodString;
953
+ description: z.ZodString;
954
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
955
+ weight: z.ZodDefault<z.ZodNumber>;
956
+ }, z.core.$strip>>>;
957
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
958
+ expectationId: z.ZodString;
959
+ label: z.ZodString;
960
+ description: z.ZodString;
961
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
962
+ weight: z.ZodDefault<z.ZodNumber>;
963
+ }, z.core.$strip>>>;
964
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
965
+ expectationId: z.ZodString;
966
+ label: z.ZodString;
967
+ description: z.ZodString;
968
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
969
+ weight: z.ZodDefault<z.ZodNumber>;
970
+ }, z.core.$strip>>>;
971
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
972
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
973
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
974
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
975
+ }, z.core.$strip>;
976
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
977
+ ref: z.ZodString;
978
+ author: z.ZodEnum<{
979
+ customer: "customer";
980
+ bot: "bot";
981
+ operator: "operator";
982
+ system: "system";
983
+ }>;
984
+ text: z.ZodString;
985
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
986
+ }, z.core.$strip>>>;
987
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
988
+ ref: z.ZodString;
989
+ author: z.ZodEnum<{
990
+ customer: "customer";
991
+ bot: "bot";
992
+ operator: "operator";
993
+ system: "system";
994
+ }>;
995
+ text: z.ZodString;
996
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
997
+ }, z.core.$strip>>>;
998
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
999
+ ref: z.ZodString;
1000
+ label: z.ZodString;
1001
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1002
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1003
+ }, z.core.$strip>>>;
1004
+ contextLevel: z.ZodLiteral<"windowed">;
1005
+ windowedContext: z.ZodObject<{
1006
+ stageLabel: z.ZodString;
1007
+ recentTurns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1008
+ ref: z.ZodString;
1009
+ author: z.ZodEnum<{
1010
+ customer: "customer";
1011
+ bot: "bot";
1012
+ operator: "operator";
1013
+ system: "system";
1014
+ }>;
1015
+ text: z.ZodString;
1016
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1017
+ }, z.core.$strip>>>;
1018
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1019
+ }, z.core.$strip>;
1020
+ }, z.core.$strip>, z.ZodObject<{
1021
+ scenarioId: z.ZodString;
1022
+ scenarioRunId: z.ZodString;
1023
+ targetId: z.ZodString;
1024
+ targetKind: z.ZodEnum<{
1025
+ turn: "turn";
1026
+ journey: "journey";
1027
+ }>;
1028
+ contextPacketHash: z.ZodString;
1029
+ expectationContract: z.ZodObject<{
1030
+ contractId: z.ZodString;
1031
+ contractVersion: z.ZodString;
1032
+ kind: z.ZodEnum<{
1033
+ turn: "turn";
1034
+ journey: "journey";
1035
+ }>;
1036
+ stageLabel: z.ZodString;
1037
+ contextPolicy: z.ZodEnum<{
1038
+ minimal_only: "minimal_only";
1039
+ allow_windowed: "allow_windowed";
1040
+ allow_full: "allow_full";
1041
+ }>;
1042
+ evaluationQuestion: z.ZodString;
1043
+ goodSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
1044
+ expectationId: z.ZodString;
1045
+ label: z.ZodString;
1046
+ description: z.ZodString;
1047
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
1048
+ weight: z.ZodDefault<z.ZodNumber>;
1049
+ }, z.core.$strip>>>;
1050
+ badSignals: z.ZodDefault<z.ZodArray<z.ZodObject<{
1051
+ expectationId: z.ZodString;
1052
+ label: z.ZodString;
1053
+ description: z.ZodString;
1054
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
1055
+ weight: z.ZodDefault<z.ZodNumber>;
1056
+ }, z.core.$strip>>>;
1057
+ mustDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
1058
+ expectationId: z.ZodString;
1059
+ label: z.ZodString;
1060
+ description: z.ZodString;
1061
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
1062
+ weight: z.ZodDefault<z.ZodNumber>;
1063
+ }, z.core.$strip>>>;
1064
+ mustNotDo: z.ZodDefault<z.ZodArray<z.ZodObject<{
1065
+ expectationId: z.ZodString;
1066
+ label: z.ZodString;
1067
+ description: z.ZodString;
1068
+ evidenceHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
1069
+ weight: z.ZodDefault<z.ZodNumber>;
1070
+ }, z.core.$strip>>>;
1071
+ domainAnchors: z.ZodDefault<z.ZodArray<z.ZodString>>;
1072
+ expectedNextStepKinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1073
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
1074
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1075
+ }, z.core.$strip>;
1076
+ customerMessage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1077
+ ref: z.ZodString;
1078
+ author: z.ZodEnum<{
1079
+ customer: "customer";
1080
+ bot: "bot";
1081
+ operator: "operator";
1082
+ system: "system";
1083
+ }>;
1084
+ text: z.ZodString;
1085
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1086
+ }, z.core.$strip>>>;
1087
+ botReply: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1088
+ ref: z.ZodString;
1089
+ author: z.ZodEnum<{
1090
+ customer: "customer";
1091
+ bot: "bot";
1092
+ operator: "operator";
1093
+ system: "system";
1094
+ }>;
1095
+ text: z.ZodString;
1096
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1097
+ }, z.core.$strip>>>;
1098
+ evidenceIndex: z.ZodDefault<z.ZodArray<z.ZodObject<{
1099
+ ref: z.ZodString;
1100
+ label: z.ZodString;
1101
+ content: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1102
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1103
+ }, z.core.$strip>>>;
1104
+ contextLevel: z.ZodLiteral<"full">;
1105
+ fullContext: z.ZodObject<{
1106
+ stageLabel: z.ZodString;
1107
+ packedContextSummary: z.ZodString;
1108
+ traceSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1109
+ recentTurns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1110
+ ref: z.ZodString;
1111
+ author: z.ZodEnum<{
1112
+ customer: "customer";
1113
+ bot: "bot";
1114
+ operator: "operator";
1115
+ system: "system";
1116
+ }>;
1117
+ text: z.ZodString;
1118
+ createdAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1119
+ }, z.core.$strip>>>;
1120
+ }, z.core.$strip>;
1121
+ }, z.core.$strip>], "contextLevel">;
1122
+ result: z.ZodObject<{
1123
+ decision: z.ZodObject<{
1124
+ verdict: z.ZodEnum<{
1125
+ pass: "pass";
1126
+ soft_fail: "soft_fail";
1127
+ fail: "fail";
1128
+ inconclusive: "inconclusive";
1129
+ contract_error: "contract_error";
1130
+ }>;
1131
+ confidence: z.ZodNumber;
1132
+ score: z.ZodNumber;
1133
+ summary: z.ZodString;
1134
+ contractId: z.ZodString;
1135
+ contractVersion: z.ZodString;
1136
+ contextPacketHash: z.ZodString;
1137
+ }, z.core.$strip>;
1138
+ analysis: z.ZodObject<{
1139
+ matchedExpectations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1140
+ expectationId: z.ZodString;
1141
+ status: z.ZodEnum<{
1142
+ matched: "matched";
1143
+ missed: "missed";
1144
+ violated: "violated";
1145
+ ambiguous: "ambiguous";
1146
+ }>;
1147
+ because: z.ZodString;
1148
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1149
+ ref: z.ZodString;
1150
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1151
+ }, z.core.$strip>>>;
1152
+ }, z.core.$strip>>>;
1153
+ missedExpectations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1154
+ expectationId: z.ZodString;
1155
+ status: z.ZodEnum<{
1156
+ matched: "matched";
1157
+ missed: "missed";
1158
+ violated: "violated";
1159
+ ambiguous: "ambiguous";
1160
+ }>;
1161
+ because: z.ZodString;
1162
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1163
+ ref: z.ZodString;
1164
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1165
+ }, z.core.$strip>>>;
1166
+ }, z.core.$strip>>>;
1167
+ violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1168
+ expectationId: z.ZodString;
1169
+ status: z.ZodEnum<{
1170
+ matched: "matched";
1171
+ missed: "missed";
1172
+ violated: "violated";
1173
+ ambiguous: "ambiguous";
1174
+ }>;
1175
+ because: z.ZodString;
1176
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1177
+ ref: z.ZodString;
1178
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1179
+ }, z.core.$strip>>>;
1180
+ }, z.core.$strip>>>;
1181
+ ambiguities: z.ZodDefault<z.ZodArray<z.ZodObject<{
1182
+ expectationId: z.ZodString;
1183
+ status: z.ZodEnum<{
1184
+ matched: "matched";
1185
+ missed: "missed";
1186
+ violated: "violated";
1187
+ ambiguous: "ambiguous";
1188
+ }>;
1189
+ because: z.ZodString;
1190
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1191
+ ref: z.ZodString;
1192
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1193
+ }, z.core.$strip>>>;
1194
+ }, z.core.$strip>>>;
1195
+ missingContextItems: z.ZodDefault<z.ZodArray<z.ZodString>>;
1196
+ contextUsed: z.ZodEnum<{
1197
+ minimal: "minimal";
1198
+ windowed: "windowed";
1199
+ full: "full";
1200
+ }>;
1201
+ needsMoreContext: z.ZodBoolean;
1202
+ escalationUsed: z.ZodBoolean;
1203
+ escalationReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1204
+ contractErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
1205
+ code: z.ZodString;
1206
+ message: z.ZodString;
1207
+ evidenceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1208
+ ref: z.ZodString;
1209
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1210
+ }, z.core.$strip>>>;
1211
+ }, z.core.$strip>>>;
1212
+ }, z.core.$strip>;
1213
+ error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1214
+ code: z.ZodString;
1215
+ message: z.ZodString;
1216
+ }, z.core.$strip>>>;
1217
+ }, z.core.$strip>;
1218
+ metadata: z.ZodObject<{
1219
+ provider: z.ZodString;
1220
+ modelId: z.ZodString;
1221
+ finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1222
+ latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1223
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1224
+ inputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1225
+ outputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1226
+ totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1227
+ }, z.core.$strip>>>;
1228
+ promptHash: z.ZodString;
1229
+ systemPromptHash: z.ZodString;
1230
+ userPromptHash: z.ZodString;
1231
+ }, z.core.$strip>;
1232
+ }, z.core.$strip>;
1233
+ export type SemanticJudgeExecutionEnvelope = z.infer<typeof semanticJudgeExecutionEnvelopeSchema>;
1234
+ //# sourceMappingURL=semantic-eval.d.ts.map