@sentry/warden-service-api 0.46.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.
@@ -0,0 +1,1373 @@
1
+ import { z } from 'zod';
2
+ export declare const SERVICE_PROTOCOL_VERSION: 1;
3
+ export declare const DataProfileSchema: z.ZodEnum<{
4
+ metrics: "metrics";
5
+ findings: "findings";
6
+ code: "code";
7
+ }>;
8
+ export type DataProfile = z.infer<typeof DataProfileSchema>;
9
+ export declare const RepositoryIdentitySchema: z.ZodObject<{
10
+ provider: z.ZodEnum<{
11
+ github: "github";
12
+ gitlab: "gitlab";
13
+ local: "local";
14
+ }>;
15
+ owner: z.ZodString;
16
+ name: z.ZodString;
17
+ fullName: z.ZodString;
18
+ }, z.core.$strict>;
19
+ export type RepositoryIdentity = z.infer<typeof RepositoryIdentitySchema>;
20
+ export declare const UsageLineItemSchema: z.ZodObject<{
21
+ lane: z.ZodString;
22
+ operation: z.ZodOptional<z.ZodString>;
23
+ provider: z.ZodOptional<z.ZodString>;
24
+ model: z.ZodOptional<z.ZodString>;
25
+ runtime: z.ZodOptional<z.ZodString>;
26
+ inputTokens: z.ZodOptional<z.ZodNumber>;
27
+ outputTokens: z.ZodOptional<z.ZodNumber>;
28
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
29
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
30
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
31
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
32
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
33
+ costUsd: z.ZodNullable<z.ZodNumber>;
34
+ costBasis: z.ZodEnum<{
35
+ reported: "reported";
36
+ estimated: "estimated";
37
+ unknown: "unknown";
38
+ }>;
39
+ }, z.core.$strict>;
40
+ export type UsageLineItem = z.infer<typeof UsageLineItemSchema>;
41
+ export declare const FindingCountsSchema: z.ZodObject<{
42
+ total: z.ZodNumber;
43
+ bySeverity: z.ZodObject<{
44
+ high: z.ZodNumber;
45
+ medium: z.ZodNumber;
46
+ low: z.ZodNumber;
47
+ }, z.core.$strict>;
48
+ }, z.core.$strict>;
49
+ export type FindingCounts = z.infer<typeof FindingCountsSchema>;
50
+ export declare const SkillExecutionSchema: z.ZodObject<{
51
+ executionId: z.ZodString;
52
+ skill: z.ZodString;
53
+ skillDigest: z.ZodOptional<z.ZodString>;
54
+ triggerId: z.ZodOptional<z.ZodString>;
55
+ triggerName: z.ZodOptional<z.ZodString>;
56
+ model: z.ZodOptional<z.ZodString>;
57
+ runtime: z.ZodOptional<z.ZodString>;
58
+ status: z.ZodEnum<{
59
+ success: "success";
60
+ failure: "failure";
61
+ cancelled: "cancelled";
62
+ skipped: "skipped";
63
+ }>;
64
+ errorCode: z.ZodOptional<z.ZodString>;
65
+ durationMs: z.ZodOptional<z.ZodNumber>;
66
+ findingCounts: z.ZodObject<{
67
+ total: z.ZodNumber;
68
+ bySeverity: z.ZodObject<{
69
+ high: z.ZodNumber;
70
+ medium: z.ZodNumber;
71
+ low: z.ZodNumber;
72
+ }, z.core.$strict>;
73
+ }, z.core.$strict>;
74
+ usage: z.ZodArray<z.ZodObject<{
75
+ lane: z.ZodString;
76
+ operation: z.ZodOptional<z.ZodString>;
77
+ provider: z.ZodOptional<z.ZodString>;
78
+ model: z.ZodOptional<z.ZodString>;
79
+ runtime: z.ZodOptional<z.ZodString>;
80
+ inputTokens: z.ZodOptional<z.ZodNumber>;
81
+ outputTokens: z.ZodOptional<z.ZodNumber>;
82
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
83
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
84
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
85
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
86
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
87
+ costUsd: z.ZodNullable<z.ZodNumber>;
88
+ costBasis: z.ZodEnum<{
89
+ reported: "reported";
90
+ estimated: "estimated";
91
+ unknown: "unknown";
92
+ }>;
93
+ }, z.core.$strict>>;
94
+ }, z.core.$strict>;
95
+ export type SkillExecution = z.infer<typeof SkillExecutionSchema>;
96
+ export declare const FindingLocationSchema: z.ZodObject<{
97
+ path: z.ZodString;
98
+ startLine: z.ZodNumber;
99
+ endLine: z.ZodOptional<z.ZodNumber>;
100
+ }, z.core.$strict>;
101
+ export type FindingLocation = z.infer<typeof FindingLocationSchema>;
102
+ export declare const FindingProvenanceSchema: z.ZodObject<{
103
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
104
+ originModel: z.ZodOptional<z.ZodString>;
105
+ verification: z.ZodOptional<z.ZodObject<{
106
+ outcome: z.ZodLiteral<"revised">;
107
+ model: z.ZodOptional<z.ZodString>;
108
+ evidence: z.ZodOptional<z.ZodString>;
109
+ before: z.ZodObject<{
110
+ title: z.ZodString;
111
+ description: z.ZodString;
112
+ severity: z.ZodEnum<{
113
+ high: "high";
114
+ medium: "medium";
115
+ low: "low";
116
+ }>;
117
+ confidence: z.ZodOptional<z.ZodEnum<{
118
+ high: "high";
119
+ medium: "medium";
120
+ low: "low";
121
+ }>>;
122
+ }, z.core.$strict>;
123
+ }, z.core.$strict>>;
124
+ merge: z.ZodOptional<z.ZodObject<{
125
+ model: z.ZodOptional<z.ZodString>;
126
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
127
+ }, z.core.$strict>>;
128
+ }, z.core.$strict>;
129
+ export type FindingProvenance = z.infer<typeof FindingProvenanceSchema>;
130
+ export declare const FindingRecordSchema: z.ZodObject<{
131
+ id: z.ZodString;
132
+ reportedId: z.ZodOptional<z.ZodString>;
133
+ skillExecutionId: z.ZodString;
134
+ severity: z.ZodEnum<{
135
+ high: "high";
136
+ medium: "medium";
137
+ low: "low";
138
+ }>;
139
+ confidence: z.ZodOptional<z.ZodEnum<{
140
+ high: "high";
141
+ medium: "medium";
142
+ low: "low";
143
+ }>>;
144
+ title: z.ZodString;
145
+ description: z.ZodString;
146
+ verification: z.ZodOptional<z.ZodString>;
147
+ location: z.ZodOptional<z.ZodObject<{
148
+ path: z.ZodString;
149
+ startLine: z.ZodNumber;
150
+ endLine: z.ZodOptional<z.ZodNumber>;
151
+ }, z.core.$strict>>;
152
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ path: z.ZodString;
154
+ startLine: z.ZodNumber;
155
+ endLine: z.ZodOptional<z.ZodNumber>;
156
+ }, z.core.$strict>>>;
157
+ provenance: z.ZodOptional<z.ZodObject<{
158
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
159
+ originModel: z.ZodOptional<z.ZodString>;
160
+ verification: z.ZodOptional<z.ZodObject<{
161
+ outcome: z.ZodLiteral<"revised">;
162
+ model: z.ZodOptional<z.ZodString>;
163
+ evidence: z.ZodOptional<z.ZodString>;
164
+ before: z.ZodObject<{
165
+ title: z.ZodString;
166
+ description: z.ZodString;
167
+ severity: z.ZodEnum<{
168
+ high: "high";
169
+ medium: "medium";
170
+ low: "low";
171
+ }>;
172
+ confidence: z.ZodOptional<z.ZodEnum<{
173
+ high: "high";
174
+ medium: "medium";
175
+ low: "low";
176
+ }>>;
177
+ }, z.core.$strict>;
178
+ }, z.core.$strict>>;
179
+ merge: z.ZodOptional<z.ZodObject<{
180
+ model: z.ZodOptional<z.ZodString>;
181
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
182
+ }, z.core.$strict>>;
183
+ }, z.core.$strict>>;
184
+ }, z.core.$strict>;
185
+ export type FindingRecord = z.infer<typeof FindingRecordSchema>;
186
+ export declare const SourceEvidenceSchema: z.ZodObject<{
187
+ path: z.ZodString;
188
+ language: z.ZodOptional<z.ZodString>;
189
+ startLine: z.ZodNumber;
190
+ endLine: z.ZodNumber;
191
+ targetStartLine: z.ZodNumber;
192
+ targetEndLine: z.ZodNumber;
193
+ content: z.ZodString;
194
+ }, z.core.$strict>;
195
+ export type SourceEvidence = z.infer<typeof SourceEvidenceSchema>;
196
+ export declare const CodeFindingRecordSchema: z.ZodObject<{
197
+ id: z.ZodString;
198
+ reportedId: z.ZodOptional<z.ZodString>;
199
+ skillExecutionId: z.ZodString;
200
+ severity: z.ZodEnum<{
201
+ high: "high";
202
+ medium: "medium";
203
+ low: "low";
204
+ }>;
205
+ confidence: z.ZodOptional<z.ZodEnum<{
206
+ high: "high";
207
+ medium: "medium";
208
+ low: "low";
209
+ }>>;
210
+ title: z.ZodString;
211
+ description: z.ZodString;
212
+ verification: z.ZodOptional<z.ZodString>;
213
+ location: z.ZodOptional<z.ZodObject<{
214
+ path: z.ZodString;
215
+ startLine: z.ZodNumber;
216
+ endLine: z.ZodOptional<z.ZodNumber>;
217
+ }, z.core.$strict>>;
218
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ path: z.ZodString;
220
+ startLine: z.ZodNumber;
221
+ endLine: z.ZodOptional<z.ZodNumber>;
222
+ }, z.core.$strict>>>;
223
+ provenance: z.ZodOptional<z.ZodObject<{
224
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
225
+ originModel: z.ZodOptional<z.ZodString>;
226
+ verification: z.ZodOptional<z.ZodObject<{
227
+ outcome: z.ZodLiteral<"revised">;
228
+ model: z.ZodOptional<z.ZodString>;
229
+ evidence: z.ZodOptional<z.ZodString>;
230
+ before: z.ZodObject<{
231
+ title: z.ZodString;
232
+ description: z.ZodString;
233
+ severity: z.ZodEnum<{
234
+ high: "high";
235
+ medium: "medium";
236
+ low: "low";
237
+ }>;
238
+ confidence: z.ZodOptional<z.ZodEnum<{
239
+ high: "high";
240
+ medium: "medium";
241
+ low: "low";
242
+ }>>;
243
+ }, z.core.$strict>;
244
+ }, z.core.$strict>>;
245
+ merge: z.ZodOptional<z.ZodObject<{
246
+ model: z.ZodOptional<z.ZodString>;
247
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
248
+ }, z.core.$strict>>;
249
+ }, z.core.$strict>>;
250
+ sourceEvidence: z.ZodOptional<z.ZodObject<{
251
+ path: z.ZodString;
252
+ language: z.ZodOptional<z.ZodString>;
253
+ startLine: z.ZodNumber;
254
+ endLine: z.ZodNumber;
255
+ targetStartLine: z.ZodNumber;
256
+ targetEndLine: z.ZodNumber;
257
+ content: z.ZodString;
258
+ }, z.core.$strict>>;
259
+ }, z.core.$strict>;
260
+ export type CodeFindingRecord = z.infer<typeof CodeFindingRecordSchema>;
261
+ export declare const FindingObservationSchema: z.ZodObject<{
262
+ findingId: z.ZodString;
263
+ skillExecutionId: z.ZodOptional<z.ZodString>;
264
+ outcome: z.ZodEnum<{
265
+ skipped: "skipped";
266
+ revised: "revised";
267
+ posted: "posted";
268
+ deduped: "deduped";
269
+ resolved: "resolved";
270
+ failed: "failed";
271
+ rejected: "rejected";
272
+ }>;
273
+ reason: z.ZodOptional<z.ZodString>;
274
+ observedAt: z.ZodString;
275
+ }, z.core.$strict>;
276
+ export type FindingObservation = z.infer<typeof FindingObservationSchema>;
277
+ export declare const RecalledMemoryReferenceSchema: z.ZodObject<{
278
+ id: z.ZodString;
279
+ version: z.ZodNumber;
280
+ }, z.core.$strict>;
281
+ export type RecalledMemoryReference = z.infer<typeof RecalledMemoryReferenceSchema>;
282
+ export declare const MetricsRunEnvelopeSchema: z.ZodObject<{
283
+ protocolVersion: z.ZodLiteral<1>;
284
+ clientRunId: z.ZodString;
285
+ source: z.ZodEnum<{
286
+ cli: "cli";
287
+ action: "action";
288
+ sdk: "sdk";
289
+ replay: "replay";
290
+ }>;
291
+ wardenVersion: z.ZodString;
292
+ startedAt: z.ZodString;
293
+ completedAt: z.ZodString;
294
+ outcome: z.ZodEnum<{
295
+ success: "success";
296
+ failure: "failure";
297
+ cancelled: "cancelled";
298
+ skipped: "skipped";
299
+ }>;
300
+ traceId: z.ZodOptional<z.ZodString>;
301
+ repository: z.ZodObject<{
302
+ provider: z.ZodEnum<{
303
+ github: "github";
304
+ gitlab: "gitlab";
305
+ local: "local";
306
+ }>;
307
+ owner: z.ZodString;
308
+ name: z.ZodString;
309
+ fullName: z.ZodString;
310
+ }, z.core.$strict>;
311
+ headSha: z.ZodOptional<z.ZodString>;
312
+ event: z.ZodOptional<z.ZodString>;
313
+ pullRequest: z.ZodOptional<z.ZodObject<{
314
+ number: z.ZodNumber;
315
+ author: z.ZodOptional<z.ZodString>;
316
+ title: z.ZodOptional<z.ZodString>;
317
+ baseBranch: z.ZodOptional<z.ZodString>;
318
+ headBranch: z.ZodOptional<z.ZodString>;
319
+ }, z.core.$strict>>;
320
+ findingCounts: z.ZodObject<{
321
+ total: z.ZodNumber;
322
+ bySeverity: z.ZodObject<{
323
+ high: z.ZodNumber;
324
+ medium: z.ZodNumber;
325
+ low: z.ZodNumber;
326
+ }, z.core.$strict>;
327
+ }, z.core.$strict>;
328
+ skills: z.ZodArray<z.ZodObject<{
329
+ executionId: z.ZodString;
330
+ skill: z.ZodString;
331
+ skillDigest: z.ZodOptional<z.ZodString>;
332
+ triggerId: z.ZodOptional<z.ZodString>;
333
+ triggerName: z.ZodOptional<z.ZodString>;
334
+ model: z.ZodOptional<z.ZodString>;
335
+ runtime: z.ZodOptional<z.ZodString>;
336
+ status: z.ZodEnum<{
337
+ success: "success";
338
+ failure: "failure";
339
+ cancelled: "cancelled";
340
+ skipped: "skipped";
341
+ }>;
342
+ errorCode: z.ZodOptional<z.ZodString>;
343
+ durationMs: z.ZodOptional<z.ZodNumber>;
344
+ findingCounts: z.ZodObject<{
345
+ total: z.ZodNumber;
346
+ bySeverity: z.ZodObject<{
347
+ high: z.ZodNumber;
348
+ medium: z.ZodNumber;
349
+ low: z.ZodNumber;
350
+ }, z.core.$strict>;
351
+ }, z.core.$strict>;
352
+ usage: z.ZodArray<z.ZodObject<{
353
+ lane: z.ZodString;
354
+ operation: z.ZodOptional<z.ZodString>;
355
+ provider: z.ZodOptional<z.ZodString>;
356
+ model: z.ZodOptional<z.ZodString>;
357
+ runtime: z.ZodOptional<z.ZodString>;
358
+ inputTokens: z.ZodOptional<z.ZodNumber>;
359
+ outputTokens: z.ZodOptional<z.ZodNumber>;
360
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
361
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
362
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
363
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
364
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
365
+ costUsd: z.ZodNullable<z.ZodNumber>;
366
+ costBasis: z.ZodEnum<{
367
+ reported: "reported";
368
+ estimated: "estimated";
369
+ unknown: "unknown";
370
+ }>;
371
+ }, z.core.$strict>>;
372
+ }, z.core.$strict>>;
373
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
+ id: z.ZodString;
375
+ version: z.ZodNumber;
376
+ }, z.core.$strict>>>;
377
+ memoryRecallId: z.ZodOptional<z.ZodString>;
378
+ dataProfile: z.ZodLiteral<"metrics">;
379
+ features: z.ZodObject<{
380
+ memory: z.ZodLiteral<false>;
381
+ }, z.core.$strict>;
382
+ }, z.core.$strict>;
383
+ export type MetricsRunEnvelope = z.infer<typeof MetricsRunEnvelopeSchema>;
384
+ export declare const FindingsRunEnvelopeSchema: z.ZodObject<{
385
+ protocolVersion: z.ZodLiteral<1>;
386
+ clientRunId: z.ZodString;
387
+ source: z.ZodEnum<{
388
+ cli: "cli";
389
+ action: "action";
390
+ sdk: "sdk";
391
+ replay: "replay";
392
+ }>;
393
+ wardenVersion: z.ZodString;
394
+ startedAt: z.ZodString;
395
+ completedAt: z.ZodString;
396
+ outcome: z.ZodEnum<{
397
+ success: "success";
398
+ failure: "failure";
399
+ cancelled: "cancelled";
400
+ skipped: "skipped";
401
+ }>;
402
+ traceId: z.ZodOptional<z.ZodString>;
403
+ repository: z.ZodObject<{
404
+ provider: z.ZodEnum<{
405
+ github: "github";
406
+ gitlab: "gitlab";
407
+ local: "local";
408
+ }>;
409
+ owner: z.ZodString;
410
+ name: z.ZodString;
411
+ fullName: z.ZodString;
412
+ }, z.core.$strict>;
413
+ headSha: z.ZodOptional<z.ZodString>;
414
+ event: z.ZodOptional<z.ZodString>;
415
+ pullRequest: z.ZodOptional<z.ZodObject<{
416
+ number: z.ZodNumber;
417
+ author: z.ZodOptional<z.ZodString>;
418
+ title: z.ZodOptional<z.ZodString>;
419
+ baseBranch: z.ZodOptional<z.ZodString>;
420
+ headBranch: z.ZodOptional<z.ZodString>;
421
+ }, z.core.$strict>>;
422
+ features: z.ZodObject<{
423
+ memory: z.ZodBoolean;
424
+ }, z.core.$strict>;
425
+ findingCounts: z.ZodObject<{
426
+ total: z.ZodNumber;
427
+ bySeverity: z.ZodObject<{
428
+ high: z.ZodNumber;
429
+ medium: z.ZodNumber;
430
+ low: z.ZodNumber;
431
+ }, z.core.$strict>;
432
+ }, z.core.$strict>;
433
+ skills: z.ZodArray<z.ZodObject<{
434
+ executionId: z.ZodString;
435
+ skill: z.ZodString;
436
+ skillDigest: z.ZodOptional<z.ZodString>;
437
+ triggerId: z.ZodOptional<z.ZodString>;
438
+ triggerName: z.ZodOptional<z.ZodString>;
439
+ model: z.ZodOptional<z.ZodString>;
440
+ runtime: z.ZodOptional<z.ZodString>;
441
+ status: z.ZodEnum<{
442
+ success: "success";
443
+ failure: "failure";
444
+ cancelled: "cancelled";
445
+ skipped: "skipped";
446
+ }>;
447
+ errorCode: z.ZodOptional<z.ZodString>;
448
+ durationMs: z.ZodOptional<z.ZodNumber>;
449
+ findingCounts: z.ZodObject<{
450
+ total: z.ZodNumber;
451
+ bySeverity: z.ZodObject<{
452
+ high: z.ZodNumber;
453
+ medium: z.ZodNumber;
454
+ low: z.ZodNumber;
455
+ }, z.core.$strict>;
456
+ }, z.core.$strict>;
457
+ usage: z.ZodArray<z.ZodObject<{
458
+ lane: z.ZodString;
459
+ operation: z.ZodOptional<z.ZodString>;
460
+ provider: z.ZodOptional<z.ZodString>;
461
+ model: z.ZodOptional<z.ZodString>;
462
+ runtime: z.ZodOptional<z.ZodString>;
463
+ inputTokens: z.ZodOptional<z.ZodNumber>;
464
+ outputTokens: z.ZodOptional<z.ZodNumber>;
465
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
466
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
467
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
468
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
469
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
470
+ costUsd: z.ZodNullable<z.ZodNumber>;
471
+ costBasis: z.ZodEnum<{
472
+ reported: "reported";
473
+ estimated: "estimated";
474
+ unknown: "unknown";
475
+ }>;
476
+ }, z.core.$strict>>;
477
+ }, z.core.$strict>>;
478
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
479
+ id: z.ZodString;
480
+ version: z.ZodNumber;
481
+ }, z.core.$strict>>>;
482
+ memoryRecallId: z.ZodOptional<z.ZodString>;
483
+ dataProfile: z.ZodLiteral<"findings">;
484
+ findings: z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ reportedId: z.ZodOptional<z.ZodString>;
487
+ skillExecutionId: z.ZodString;
488
+ severity: z.ZodEnum<{
489
+ high: "high";
490
+ medium: "medium";
491
+ low: "low";
492
+ }>;
493
+ confidence: z.ZodOptional<z.ZodEnum<{
494
+ high: "high";
495
+ medium: "medium";
496
+ low: "low";
497
+ }>>;
498
+ title: z.ZodString;
499
+ description: z.ZodString;
500
+ verification: z.ZodOptional<z.ZodString>;
501
+ location: z.ZodOptional<z.ZodObject<{
502
+ path: z.ZodString;
503
+ startLine: z.ZodNumber;
504
+ endLine: z.ZodOptional<z.ZodNumber>;
505
+ }, z.core.$strict>>;
506
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
507
+ path: z.ZodString;
508
+ startLine: z.ZodNumber;
509
+ endLine: z.ZodOptional<z.ZodNumber>;
510
+ }, z.core.$strict>>>;
511
+ provenance: z.ZodOptional<z.ZodObject<{
512
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
513
+ originModel: z.ZodOptional<z.ZodString>;
514
+ verification: z.ZodOptional<z.ZodObject<{
515
+ outcome: z.ZodLiteral<"revised">;
516
+ model: z.ZodOptional<z.ZodString>;
517
+ evidence: z.ZodOptional<z.ZodString>;
518
+ before: z.ZodObject<{
519
+ title: z.ZodString;
520
+ description: z.ZodString;
521
+ severity: z.ZodEnum<{
522
+ high: "high";
523
+ medium: "medium";
524
+ low: "low";
525
+ }>;
526
+ confidence: z.ZodOptional<z.ZodEnum<{
527
+ high: "high";
528
+ medium: "medium";
529
+ low: "low";
530
+ }>>;
531
+ }, z.core.$strict>;
532
+ }, z.core.$strict>>;
533
+ merge: z.ZodOptional<z.ZodObject<{
534
+ model: z.ZodOptional<z.ZodString>;
535
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
536
+ }, z.core.$strict>>;
537
+ }, z.core.$strict>>;
538
+ }, z.core.$strict>>;
539
+ observations: z.ZodArray<z.ZodObject<{
540
+ findingId: z.ZodString;
541
+ skillExecutionId: z.ZodOptional<z.ZodString>;
542
+ outcome: z.ZodEnum<{
543
+ skipped: "skipped";
544
+ revised: "revised";
545
+ posted: "posted";
546
+ deduped: "deduped";
547
+ resolved: "resolved";
548
+ failed: "failed";
549
+ rejected: "rejected";
550
+ }>;
551
+ reason: z.ZodOptional<z.ZodString>;
552
+ observedAt: z.ZodString;
553
+ }, z.core.$strict>>;
554
+ }, z.core.$strict>;
555
+ export type FindingsRunEnvelope = z.infer<typeof FindingsRunEnvelopeSchema>;
556
+ export declare const CodeRunEnvelopeSchema: z.ZodObject<{
557
+ protocolVersion: z.ZodLiteral<1>;
558
+ clientRunId: z.ZodString;
559
+ source: z.ZodEnum<{
560
+ cli: "cli";
561
+ action: "action";
562
+ sdk: "sdk";
563
+ replay: "replay";
564
+ }>;
565
+ wardenVersion: z.ZodString;
566
+ startedAt: z.ZodString;
567
+ completedAt: z.ZodString;
568
+ outcome: z.ZodEnum<{
569
+ success: "success";
570
+ failure: "failure";
571
+ cancelled: "cancelled";
572
+ skipped: "skipped";
573
+ }>;
574
+ traceId: z.ZodOptional<z.ZodString>;
575
+ repository: z.ZodObject<{
576
+ provider: z.ZodEnum<{
577
+ github: "github";
578
+ gitlab: "gitlab";
579
+ local: "local";
580
+ }>;
581
+ owner: z.ZodString;
582
+ name: z.ZodString;
583
+ fullName: z.ZodString;
584
+ }, z.core.$strict>;
585
+ headSha: z.ZodOptional<z.ZodString>;
586
+ event: z.ZodOptional<z.ZodString>;
587
+ pullRequest: z.ZodOptional<z.ZodObject<{
588
+ number: z.ZodNumber;
589
+ author: z.ZodOptional<z.ZodString>;
590
+ title: z.ZodOptional<z.ZodString>;
591
+ baseBranch: z.ZodOptional<z.ZodString>;
592
+ headBranch: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strict>>;
594
+ features: z.ZodObject<{
595
+ memory: z.ZodBoolean;
596
+ }, z.core.$strict>;
597
+ findingCounts: z.ZodObject<{
598
+ total: z.ZodNumber;
599
+ bySeverity: z.ZodObject<{
600
+ high: z.ZodNumber;
601
+ medium: z.ZodNumber;
602
+ low: z.ZodNumber;
603
+ }, z.core.$strict>;
604
+ }, z.core.$strict>;
605
+ skills: z.ZodArray<z.ZodObject<{
606
+ executionId: z.ZodString;
607
+ skill: z.ZodString;
608
+ skillDigest: z.ZodOptional<z.ZodString>;
609
+ triggerId: z.ZodOptional<z.ZodString>;
610
+ triggerName: z.ZodOptional<z.ZodString>;
611
+ model: z.ZodOptional<z.ZodString>;
612
+ runtime: z.ZodOptional<z.ZodString>;
613
+ status: z.ZodEnum<{
614
+ success: "success";
615
+ failure: "failure";
616
+ cancelled: "cancelled";
617
+ skipped: "skipped";
618
+ }>;
619
+ errorCode: z.ZodOptional<z.ZodString>;
620
+ durationMs: z.ZodOptional<z.ZodNumber>;
621
+ findingCounts: z.ZodObject<{
622
+ total: z.ZodNumber;
623
+ bySeverity: z.ZodObject<{
624
+ high: z.ZodNumber;
625
+ medium: z.ZodNumber;
626
+ low: z.ZodNumber;
627
+ }, z.core.$strict>;
628
+ }, z.core.$strict>;
629
+ usage: z.ZodArray<z.ZodObject<{
630
+ lane: z.ZodString;
631
+ operation: z.ZodOptional<z.ZodString>;
632
+ provider: z.ZodOptional<z.ZodString>;
633
+ model: z.ZodOptional<z.ZodString>;
634
+ runtime: z.ZodOptional<z.ZodString>;
635
+ inputTokens: z.ZodOptional<z.ZodNumber>;
636
+ outputTokens: z.ZodOptional<z.ZodNumber>;
637
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
638
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
639
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
640
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
641
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
642
+ costUsd: z.ZodNullable<z.ZodNumber>;
643
+ costBasis: z.ZodEnum<{
644
+ reported: "reported";
645
+ estimated: "estimated";
646
+ unknown: "unknown";
647
+ }>;
648
+ }, z.core.$strict>>;
649
+ }, z.core.$strict>>;
650
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
651
+ id: z.ZodString;
652
+ version: z.ZodNumber;
653
+ }, z.core.$strict>>>;
654
+ memoryRecallId: z.ZodOptional<z.ZodString>;
655
+ dataProfile: z.ZodLiteral<"code">;
656
+ findings: z.ZodArray<z.ZodObject<{
657
+ id: z.ZodString;
658
+ reportedId: z.ZodOptional<z.ZodString>;
659
+ skillExecutionId: z.ZodString;
660
+ severity: z.ZodEnum<{
661
+ high: "high";
662
+ medium: "medium";
663
+ low: "low";
664
+ }>;
665
+ confidence: z.ZodOptional<z.ZodEnum<{
666
+ high: "high";
667
+ medium: "medium";
668
+ low: "low";
669
+ }>>;
670
+ title: z.ZodString;
671
+ description: z.ZodString;
672
+ verification: z.ZodOptional<z.ZodString>;
673
+ location: z.ZodOptional<z.ZodObject<{
674
+ path: z.ZodString;
675
+ startLine: z.ZodNumber;
676
+ endLine: z.ZodOptional<z.ZodNumber>;
677
+ }, z.core.$strict>>;
678
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
+ path: z.ZodString;
680
+ startLine: z.ZodNumber;
681
+ endLine: z.ZodOptional<z.ZodNumber>;
682
+ }, z.core.$strict>>>;
683
+ provenance: z.ZodOptional<z.ZodObject<{
684
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
685
+ originModel: z.ZodOptional<z.ZodString>;
686
+ verification: z.ZodOptional<z.ZodObject<{
687
+ outcome: z.ZodLiteral<"revised">;
688
+ model: z.ZodOptional<z.ZodString>;
689
+ evidence: z.ZodOptional<z.ZodString>;
690
+ before: z.ZodObject<{
691
+ title: z.ZodString;
692
+ description: z.ZodString;
693
+ severity: z.ZodEnum<{
694
+ high: "high";
695
+ medium: "medium";
696
+ low: "low";
697
+ }>;
698
+ confidence: z.ZodOptional<z.ZodEnum<{
699
+ high: "high";
700
+ medium: "medium";
701
+ low: "low";
702
+ }>>;
703
+ }, z.core.$strict>;
704
+ }, z.core.$strict>>;
705
+ merge: z.ZodOptional<z.ZodObject<{
706
+ model: z.ZodOptional<z.ZodString>;
707
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
708
+ }, z.core.$strict>>;
709
+ }, z.core.$strict>>;
710
+ sourceEvidence: z.ZodOptional<z.ZodObject<{
711
+ path: z.ZodString;
712
+ language: z.ZodOptional<z.ZodString>;
713
+ startLine: z.ZodNumber;
714
+ endLine: z.ZodNumber;
715
+ targetStartLine: z.ZodNumber;
716
+ targetEndLine: z.ZodNumber;
717
+ content: z.ZodString;
718
+ }, z.core.$strict>>;
719
+ }, z.core.$strict>>;
720
+ observations: z.ZodArray<z.ZodObject<{
721
+ findingId: z.ZodString;
722
+ skillExecutionId: z.ZodOptional<z.ZodString>;
723
+ outcome: z.ZodEnum<{
724
+ skipped: "skipped";
725
+ revised: "revised";
726
+ posted: "posted";
727
+ deduped: "deduped";
728
+ resolved: "resolved";
729
+ failed: "failed";
730
+ rejected: "rejected";
731
+ }>;
732
+ reason: z.ZodOptional<z.ZodString>;
733
+ observedAt: z.ZodString;
734
+ }, z.core.$strict>>;
735
+ }, z.core.$strict>;
736
+ export type CodeRunEnvelope = z.infer<typeof CodeRunEnvelopeSchema>;
737
+ export declare const RunEnvelopeV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
738
+ protocolVersion: z.ZodLiteral<1>;
739
+ clientRunId: z.ZodString;
740
+ source: z.ZodEnum<{
741
+ cli: "cli";
742
+ action: "action";
743
+ sdk: "sdk";
744
+ replay: "replay";
745
+ }>;
746
+ wardenVersion: z.ZodString;
747
+ startedAt: z.ZodString;
748
+ completedAt: z.ZodString;
749
+ outcome: z.ZodEnum<{
750
+ success: "success";
751
+ failure: "failure";
752
+ cancelled: "cancelled";
753
+ skipped: "skipped";
754
+ }>;
755
+ traceId: z.ZodOptional<z.ZodString>;
756
+ repository: z.ZodObject<{
757
+ provider: z.ZodEnum<{
758
+ github: "github";
759
+ gitlab: "gitlab";
760
+ local: "local";
761
+ }>;
762
+ owner: z.ZodString;
763
+ name: z.ZodString;
764
+ fullName: z.ZodString;
765
+ }, z.core.$strict>;
766
+ headSha: z.ZodOptional<z.ZodString>;
767
+ event: z.ZodOptional<z.ZodString>;
768
+ pullRequest: z.ZodOptional<z.ZodObject<{
769
+ number: z.ZodNumber;
770
+ author: z.ZodOptional<z.ZodString>;
771
+ title: z.ZodOptional<z.ZodString>;
772
+ baseBranch: z.ZodOptional<z.ZodString>;
773
+ headBranch: z.ZodOptional<z.ZodString>;
774
+ }, z.core.$strict>>;
775
+ findingCounts: z.ZodObject<{
776
+ total: z.ZodNumber;
777
+ bySeverity: z.ZodObject<{
778
+ high: z.ZodNumber;
779
+ medium: z.ZodNumber;
780
+ low: z.ZodNumber;
781
+ }, z.core.$strict>;
782
+ }, z.core.$strict>;
783
+ skills: z.ZodArray<z.ZodObject<{
784
+ executionId: z.ZodString;
785
+ skill: z.ZodString;
786
+ skillDigest: z.ZodOptional<z.ZodString>;
787
+ triggerId: z.ZodOptional<z.ZodString>;
788
+ triggerName: z.ZodOptional<z.ZodString>;
789
+ model: z.ZodOptional<z.ZodString>;
790
+ runtime: z.ZodOptional<z.ZodString>;
791
+ status: z.ZodEnum<{
792
+ success: "success";
793
+ failure: "failure";
794
+ cancelled: "cancelled";
795
+ skipped: "skipped";
796
+ }>;
797
+ errorCode: z.ZodOptional<z.ZodString>;
798
+ durationMs: z.ZodOptional<z.ZodNumber>;
799
+ findingCounts: z.ZodObject<{
800
+ total: z.ZodNumber;
801
+ bySeverity: z.ZodObject<{
802
+ high: z.ZodNumber;
803
+ medium: z.ZodNumber;
804
+ low: z.ZodNumber;
805
+ }, z.core.$strict>;
806
+ }, z.core.$strict>;
807
+ usage: z.ZodArray<z.ZodObject<{
808
+ lane: z.ZodString;
809
+ operation: z.ZodOptional<z.ZodString>;
810
+ provider: z.ZodOptional<z.ZodString>;
811
+ model: z.ZodOptional<z.ZodString>;
812
+ runtime: z.ZodOptional<z.ZodString>;
813
+ inputTokens: z.ZodOptional<z.ZodNumber>;
814
+ outputTokens: z.ZodOptional<z.ZodNumber>;
815
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
816
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
817
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
818
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
819
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
820
+ costUsd: z.ZodNullable<z.ZodNumber>;
821
+ costBasis: z.ZodEnum<{
822
+ reported: "reported";
823
+ estimated: "estimated";
824
+ unknown: "unknown";
825
+ }>;
826
+ }, z.core.$strict>>;
827
+ }, z.core.$strict>>;
828
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
829
+ id: z.ZodString;
830
+ version: z.ZodNumber;
831
+ }, z.core.$strict>>>;
832
+ memoryRecallId: z.ZodOptional<z.ZodString>;
833
+ dataProfile: z.ZodLiteral<"metrics">;
834
+ features: z.ZodObject<{
835
+ memory: z.ZodLiteral<false>;
836
+ }, z.core.$strict>;
837
+ }, z.core.$strict>, z.ZodObject<{
838
+ protocolVersion: z.ZodLiteral<1>;
839
+ clientRunId: z.ZodString;
840
+ source: z.ZodEnum<{
841
+ cli: "cli";
842
+ action: "action";
843
+ sdk: "sdk";
844
+ replay: "replay";
845
+ }>;
846
+ wardenVersion: z.ZodString;
847
+ startedAt: z.ZodString;
848
+ completedAt: z.ZodString;
849
+ outcome: z.ZodEnum<{
850
+ success: "success";
851
+ failure: "failure";
852
+ cancelled: "cancelled";
853
+ skipped: "skipped";
854
+ }>;
855
+ traceId: z.ZodOptional<z.ZodString>;
856
+ repository: z.ZodObject<{
857
+ provider: z.ZodEnum<{
858
+ github: "github";
859
+ gitlab: "gitlab";
860
+ local: "local";
861
+ }>;
862
+ owner: z.ZodString;
863
+ name: z.ZodString;
864
+ fullName: z.ZodString;
865
+ }, z.core.$strict>;
866
+ headSha: z.ZodOptional<z.ZodString>;
867
+ event: z.ZodOptional<z.ZodString>;
868
+ pullRequest: z.ZodOptional<z.ZodObject<{
869
+ number: z.ZodNumber;
870
+ author: z.ZodOptional<z.ZodString>;
871
+ title: z.ZodOptional<z.ZodString>;
872
+ baseBranch: z.ZodOptional<z.ZodString>;
873
+ headBranch: z.ZodOptional<z.ZodString>;
874
+ }, z.core.$strict>>;
875
+ features: z.ZodObject<{
876
+ memory: z.ZodBoolean;
877
+ }, z.core.$strict>;
878
+ findingCounts: z.ZodObject<{
879
+ total: z.ZodNumber;
880
+ bySeverity: z.ZodObject<{
881
+ high: z.ZodNumber;
882
+ medium: z.ZodNumber;
883
+ low: z.ZodNumber;
884
+ }, z.core.$strict>;
885
+ }, z.core.$strict>;
886
+ skills: z.ZodArray<z.ZodObject<{
887
+ executionId: z.ZodString;
888
+ skill: z.ZodString;
889
+ skillDigest: z.ZodOptional<z.ZodString>;
890
+ triggerId: z.ZodOptional<z.ZodString>;
891
+ triggerName: z.ZodOptional<z.ZodString>;
892
+ model: z.ZodOptional<z.ZodString>;
893
+ runtime: z.ZodOptional<z.ZodString>;
894
+ status: z.ZodEnum<{
895
+ success: "success";
896
+ failure: "failure";
897
+ cancelled: "cancelled";
898
+ skipped: "skipped";
899
+ }>;
900
+ errorCode: z.ZodOptional<z.ZodString>;
901
+ durationMs: z.ZodOptional<z.ZodNumber>;
902
+ findingCounts: z.ZodObject<{
903
+ total: z.ZodNumber;
904
+ bySeverity: z.ZodObject<{
905
+ high: z.ZodNumber;
906
+ medium: z.ZodNumber;
907
+ low: z.ZodNumber;
908
+ }, z.core.$strict>;
909
+ }, z.core.$strict>;
910
+ usage: z.ZodArray<z.ZodObject<{
911
+ lane: z.ZodString;
912
+ operation: z.ZodOptional<z.ZodString>;
913
+ provider: z.ZodOptional<z.ZodString>;
914
+ model: z.ZodOptional<z.ZodString>;
915
+ runtime: z.ZodOptional<z.ZodString>;
916
+ inputTokens: z.ZodOptional<z.ZodNumber>;
917
+ outputTokens: z.ZodOptional<z.ZodNumber>;
918
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
919
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
920
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
921
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
922
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
923
+ costUsd: z.ZodNullable<z.ZodNumber>;
924
+ costBasis: z.ZodEnum<{
925
+ reported: "reported";
926
+ estimated: "estimated";
927
+ unknown: "unknown";
928
+ }>;
929
+ }, z.core.$strict>>;
930
+ }, z.core.$strict>>;
931
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
932
+ id: z.ZodString;
933
+ version: z.ZodNumber;
934
+ }, z.core.$strict>>>;
935
+ memoryRecallId: z.ZodOptional<z.ZodString>;
936
+ dataProfile: z.ZodLiteral<"findings">;
937
+ findings: z.ZodArray<z.ZodObject<{
938
+ id: z.ZodString;
939
+ reportedId: z.ZodOptional<z.ZodString>;
940
+ skillExecutionId: z.ZodString;
941
+ severity: z.ZodEnum<{
942
+ high: "high";
943
+ medium: "medium";
944
+ low: "low";
945
+ }>;
946
+ confidence: z.ZodOptional<z.ZodEnum<{
947
+ high: "high";
948
+ medium: "medium";
949
+ low: "low";
950
+ }>>;
951
+ title: z.ZodString;
952
+ description: z.ZodString;
953
+ verification: z.ZodOptional<z.ZodString>;
954
+ location: z.ZodOptional<z.ZodObject<{
955
+ path: z.ZodString;
956
+ startLine: z.ZodNumber;
957
+ endLine: z.ZodOptional<z.ZodNumber>;
958
+ }, z.core.$strict>>;
959
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
960
+ path: z.ZodString;
961
+ startLine: z.ZodNumber;
962
+ endLine: z.ZodOptional<z.ZodNumber>;
963
+ }, z.core.$strict>>>;
964
+ provenance: z.ZodOptional<z.ZodObject<{
965
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
966
+ originModel: z.ZodOptional<z.ZodString>;
967
+ verification: z.ZodOptional<z.ZodObject<{
968
+ outcome: z.ZodLiteral<"revised">;
969
+ model: z.ZodOptional<z.ZodString>;
970
+ evidence: z.ZodOptional<z.ZodString>;
971
+ before: z.ZodObject<{
972
+ title: z.ZodString;
973
+ description: z.ZodString;
974
+ severity: z.ZodEnum<{
975
+ high: "high";
976
+ medium: "medium";
977
+ low: "low";
978
+ }>;
979
+ confidence: z.ZodOptional<z.ZodEnum<{
980
+ high: "high";
981
+ medium: "medium";
982
+ low: "low";
983
+ }>>;
984
+ }, z.core.$strict>;
985
+ }, z.core.$strict>>;
986
+ merge: z.ZodOptional<z.ZodObject<{
987
+ model: z.ZodOptional<z.ZodString>;
988
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
989
+ }, z.core.$strict>>;
990
+ }, z.core.$strict>>;
991
+ }, z.core.$strict>>;
992
+ observations: z.ZodArray<z.ZodObject<{
993
+ findingId: z.ZodString;
994
+ skillExecutionId: z.ZodOptional<z.ZodString>;
995
+ outcome: z.ZodEnum<{
996
+ skipped: "skipped";
997
+ revised: "revised";
998
+ posted: "posted";
999
+ deduped: "deduped";
1000
+ resolved: "resolved";
1001
+ failed: "failed";
1002
+ rejected: "rejected";
1003
+ }>;
1004
+ reason: z.ZodOptional<z.ZodString>;
1005
+ observedAt: z.ZodString;
1006
+ }, z.core.$strict>>;
1007
+ }, z.core.$strict>, z.ZodObject<{
1008
+ protocolVersion: z.ZodLiteral<1>;
1009
+ clientRunId: z.ZodString;
1010
+ source: z.ZodEnum<{
1011
+ cli: "cli";
1012
+ action: "action";
1013
+ sdk: "sdk";
1014
+ replay: "replay";
1015
+ }>;
1016
+ wardenVersion: z.ZodString;
1017
+ startedAt: z.ZodString;
1018
+ completedAt: z.ZodString;
1019
+ outcome: z.ZodEnum<{
1020
+ success: "success";
1021
+ failure: "failure";
1022
+ cancelled: "cancelled";
1023
+ skipped: "skipped";
1024
+ }>;
1025
+ traceId: z.ZodOptional<z.ZodString>;
1026
+ repository: z.ZodObject<{
1027
+ provider: z.ZodEnum<{
1028
+ github: "github";
1029
+ gitlab: "gitlab";
1030
+ local: "local";
1031
+ }>;
1032
+ owner: z.ZodString;
1033
+ name: z.ZodString;
1034
+ fullName: z.ZodString;
1035
+ }, z.core.$strict>;
1036
+ headSha: z.ZodOptional<z.ZodString>;
1037
+ event: z.ZodOptional<z.ZodString>;
1038
+ pullRequest: z.ZodOptional<z.ZodObject<{
1039
+ number: z.ZodNumber;
1040
+ author: z.ZodOptional<z.ZodString>;
1041
+ title: z.ZodOptional<z.ZodString>;
1042
+ baseBranch: z.ZodOptional<z.ZodString>;
1043
+ headBranch: z.ZodOptional<z.ZodString>;
1044
+ }, z.core.$strict>>;
1045
+ features: z.ZodObject<{
1046
+ memory: z.ZodBoolean;
1047
+ }, z.core.$strict>;
1048
+ findingCounts: z.ZodObject<{
1049
+ total: z.ZodNumber;
1050
+ bySeverity: z.ZodObject<{
1051
+ high: z.ZodNumber;
1052
+ medium: z.ZodNumber;
1053
+ low: z.ZodNumber;
1054
+ }, z.core.$strict>;
1055
+ }, z.core.$strict>;
1056
+ skills: z.ZodArray<z.ZodObject<{
1057
+ executionId: z.ZodString;
1058
+ skill: z.ZodString;
1059
+ skillDigest: z.ZodOptional<z.ZodString>;
1060
+ triggerId: z.ZodOptional<z.ZodString>;
1061
+ triggerName: z.ZodOptional<z.ZodString>;
1062
+ model: z.ZodOptional<z.ZodString>;
1063
+ runtime: z.ZodOptional<z.ZodString>;
1064
+ status: z.ZodEnum<{
1065
+ success: "success";
1066
+ failure: "failure";
1067
+ cancelled: "cancelled";
1068
+ skipped: "skipped";
1069
+ }>;
1070
+ errorCode: z.ZodOptional<z.ZodString>;
1071
+ durationMs: z.ZodOptional<z.ZodNumber>;
1072
+ findingCounts: z.ZodObject<{
1073
+ total: z.ZodNumber;
1074
+ bySeverity: z.ZodObject<{
1075
+ high: z.ZodNumber;
1076
+ medium: z.ZodNumber;
1077
+ low: z.ZodNumber;
1078
+ }, z.core.$strict>;
1079
+ }, z.core.$strict>;
1080
+ usage: z.ZodArray<z.ZodObject<{
1081
+ lane: z.ZodString;
1082
+ operation: z.ZodOptional<z.ZodString>;
1083
+ provider: z.ZodOptional<z.ZodString>;
1084
+ model: z.ZodOptional<z.ZodString>;
1085
+ runtime: z.ZodOptional<z.ZodString>;
1086
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1087
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1088
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1089
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
1090
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
1091
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
1092
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
1093
+ costUsd: z.ZodNullable<z.ZodNumber>;
1094
+ costBasis: z.ZodEnum<{
1095
+ reported: "reported";
1096
+ estimated: "estimated";
1097
+ unknown: "unknown";
1098
+ }>;
1099
+ }, z.core.$strict>>;
1100
+ }, z.core.$strict>>;
1101
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1102
+ id: z.ZodString;
1103
+ version: z.ZodNumber;
1104
+ }, z.core.$strict>>>;
1105
+ memoryRecallId: z.ZodOptional<z.ZodString>;
1106
+ dataProfile: z.ZodLiteral<"code">;
1107
+ findings: z.ZodArray<z.ZodObject<{
1108
+ id: z.ZodString;
1109
+ reportedId: z.ZodOptional<z.ZodString>;
1110
+ skillExecutionId: z.ZodString;
1111
+ severity: z.ZodEnum<{
1112
+ high: "high";
1113
+ medium: "medium";
1114
+ low: "low";
1115
+ }>;
1116
+ confidence: z.ZodOptional<z.ZodEnum<{
1117
+ high: "high";
1118
+ medium: "medium";
1119
+ low: "low";
1120
+ }>>;
1121
+ title: z.ZodString;
1122
+ description: z.ZodString;
1123
+ verification: z.ZodOptional<z.ZodString>;
1124
+ location: z.ZodOptional<z.ZodObject<{
1125
+ path: z.ZodString;
1126
+ startLine: z.ZodNumber;
1127
+ endLine: z.ZodOptional<z.ZodNumber>;
1128
+ }, z.core.$strict>>;
1129
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1130
+ path: z.ZodString;
1131
+ startLine: z.ZodNumber;
1132
+ endLine: z.ZodOptional<z.ZodNumber>;
1133
+ }, z.core.$strict>>>;
1134
+ provenance: z.ZodOptional<z.ZodObject<{
1135
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
1136
+ originModel: z.ZodOptional<z.ZodString>;
1137
+ verification: z.ZodOptional<z.ZodObject<{
1138
+ outcome: z.ZodLiteral<"revised">;
1139
+ model: z.ZodOptional<z.ZodString>;
1140
+ evidence: z.ZodOptional<z.ZodString>;
1141
+ before: z.ZodObject<{
1142
+ title: z.ZodString;
1143
+ description: z.ZodString;
1144
+ severity: z.ZodEnum<{
1145
+ high: "high";
1146
+ medium: "medium";
1147
+ low: "low";
1148
+ }>;
1149
+ confidence: z.ZodOptional<z.ZodEnum<{
1150
+ high: "high";
1151
+ medium: "medium";
1152
+ low: "low";
1153
+ }>>;
1154
+ }, z.core.$strict>;
1155
+ }, z.core.$strict>>;
1156
+ merge: z.ZodOptional<z.ZodObject<{
1157
+ model: z.ZodOptional<z.ZodString>;
1158
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
1159
+ }, z.core.$strict>>;
1160
+ }, z.core.$strict>>;
1161
+ sourceEvidence: z.ZodOptional<z.ZodObject<{
1162
+ path: z.ZodString;
1163
+ language: z.ZodOptional<z.ZodString>;
1164
+ startLine: z.ZodNumber;
1165
+ endLine: z.ZodNumber;
1166
+ targetStartLine: z.ZodNumber;
1167
+ targetEndLine: z.ZodNumber;
1168
+ content: z.ZodString;
1169
+ }, z.core.$strict>>;
1170
+ }, z.core.$strict>>;
1171
+ observations: z.ZodArray<z.ZodObject<{
1172
+ findingId: z.ZodString;
1173
+ skillExecutionId: z.ZodOptional<z.ZodString>;
1174
+ outcome: z.ZodEnum<{
1175
+ skipped: "skipped";
1176
+ revised: "revised";
1177
+ posted: "posted";
1178
+ deduped: "deduped";
1179
+ resolved: "resolved";
1180
+ failed: "failed";
1181
+ rejected: "rejected";
1182
+ }>;
1183
+ reason: z.ZodOptional<z.ZodString>;
1184
+ observedAt: z.ZodString;
1185
+ }, z.core.$strict>>;
1186
+ }, z.core.$strict>], "dataProfile">;
1187
+ export type RunEnvelopeV1 = z.infer<typeof RunEnvelopeV1Schema>;
1188
+ export declare const RunProjectionSchema: z.ZodObject<{
1189
+ findingCounts: z.ZodObject<{
1190
+ total: z.ZodNumber;
1191
+ bySeverity: z.ZodObject<{
1192
+ high: z.ZodNumber;
1193
+ medium: z.ZodNumber;
1194
+ low: z.ZodNumber;
1195
+ }, z.core.$strict>;
1196
+ }, z.core.$strict>;
1197
+ outcome: z.ZodEnum<{
1198
+ success: "success";
1199
+ failure: "failure";
1200
+ cancelled: "cancelled";
1201
+ skipped: "skipped";
1202
+ }>;
1203
+ clientRunId: z.ZodString;
1204
+ startedAt: z.ZodString;
1205
+ completedAt: z.ZodString;
1206
+ repository: z.ZodObject<{
1207
+ provider: z.ZodEnum<{
1208
+ github: "github";
1209
+ gitlab: "gitlab";
1210
+ local: "local";
1211
+ }>;
1212
+ owner: z.ZodString;
1213
+ name: z.ZodString;
1214
+ fullName: z.ZodString;
1215
+ }, z.core.$strict>;
1216
+ protocolVersion: z.ZodLiteral<1>;
1217
+ source: z.ZodEnum<{
1218
+ cli: "cli";
1219
+ action: "action";
1220
+ sdk: "sdk";
1221
+ replay: "replay";
1222
+ }>;
1223
+ wardenVersion: z.ZodString;
1224
+ traceId: z.ZodOptional<z.ZodString>;
1225
+ headSha: z.ZodOptional<z.ZodString>;
1226
+ event: z.ZodOptional<z.ZodString>;
1227
+ pullRequest: z.ZodOptional<z.ZodObject<{
1228
+ number: z.ZodNumber;
1229
+ author: z.ZodOptional<z.ZodString>;
1230
+ title: z.ZodOptional<z.ZodString>;
1231
+ baseBranch: z.ZodOptional<z.ZodString>;
1232
+ headBranch: z.ZodOptional<z.ZodString>;
1233
+ }, z.core.$strict>>;
1234
+ features: z.ZodObject<{
1235
+ memory: z.ZodBoolean;
1236
+ }, z.core.$strict>;
1237
+ skills: z.ZodArray<z.ZodObject<{
1238
+ executionId: z.ZodString;
1239
+ skill: z.ZodString;
1240
+ skillDigest: z.ZodOptional<z.ZodString>;
1241
+ triggerId: z.ZodOptional<z.ZodString>;
1242
+ triggerName: z.ZodOptional<z.ZodString>;
1243
+ model: z.ZodOptional<z.ZodString>;
1244
+ runtime: z.ZodOptional<z.ZodString>;
1245
+ status: z.ZodEnum<{
1246
+ success: "success";
1247
+ failure: "failure";
1248
+ cancelled: "cancelled";
1249
+ skipped: "skipped";
1250
+ }>;
1251
+ errorCode: z.ZodOptional<z.ZodString>;
1252
+ durationMs: z.ZodOptional<z.ZodNumber>;
1253
+ findingCounts: z.ZodObject<{
1254
+ total: z.ZodNumber;
1255
+ bySeverity: z.ZodObject<{
1256
+ high: z.ZodNumber;
1257
+ medium: z.ZodNumber;
1258
+ low: z.ZodNumber;
1259
+ }, z.core.$strict>;
1260
+ }, z.core.$strict>;
1261
+ usage: z.ZodArray<z.ZodObject<{
1262
+ lane: z.ZodString;
1263
+ operation: z.ZodOptional<z.ZodString>;
1264
+ provider: z.ZodOptional<z.ZodString>;
1265
+ model: z.ZodOptional<z.ZodString>;
1266
+ runtime: z.ZodOptional<z.ZodString>;
1267
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1268
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1269
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1270
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
1271
+ cacheCreation5mInputTokens: z.ZodOptional<z.ZodNumber>;
1272
+ cacheCreation1hInputTokens: z.ZodOptional<z.ZodNumber>;
1273
+ webSearchRequests: z.ZodOptional<z.ZodNumber>;
1274
+ costUsd: z.ZodNullable<z.ZodNumber>;
1275
+ costBasis: z.ZodEnum<{
1276
+ reported: "reported";
1277
+ estimated: "estimated";
1278
+ unknown: "unknown";
1279
+ }>;
1280
+ }, z.core.$strict>>;
1281
+ }, z.core.$strict>>;
1282
+ recalledMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1283
+ id: z.ZodString;
1284
+ version: z.ZodNumber;
1285
+ }, z.core.$strict>>>;
1286
+ memoryRecallId: z.ZodOptional<z.ZodString>;
1287
+ dataProfile: z.ZodEnum<{
1288
+ metrics: "metrics";
1289
+ findings: "findings";
1290
+ code: "code";
1291
+ }>;
1292
+ findings: z.ZodArray<z.ZodObject<{
1293
+ id: z.ZodString;
1294
+ reportedId: z.ZodOptional<z.ZodString>;
1295
+ skillExecutionId: z.ZodString;
1296
+ severity: z.ZodEnum<{
1297
+ high: "high";
1298
+ medium: "medium";
1299
+ low: "low";
1300
+ }>;
1301
+ confidence: z.ZodOptional<z.ZodEnum<{
1302
+ high: "high";
1303
+ medium: "medium";
1304
+ low: "low";
1305
+ }>>;
1306
+ title: z.ZodString;
1307
+ description: z.ZodString;
1308
+ verification: z.ZodOptional<z.ZodString>;
1309
+ location: z.ZodOptional<z.ZodObject<{
1310
+ path: z.ZodString;
1311
+ startLine: z.ZodNumber;
1312
+ endLine: z.ZodOptional<z.ZodNumber>;
1313
+ }, z.core.$strict>>;
1314
+ additionalLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1315
+ path: z.ZodString;
1316
+ startLine: z.ZodNumber;
1317
+ endLine: z.ZodOptional<z.ZodNumber>;
1318
+ }, z.core.$strict>>>;
1319
+ provenance: z.ZodOptional<z.ZodObject<{
1320
+ originSkillExecutionId: z.ZodOptional<z.ZodString>;
1321
+ originModel: z.ZodOptional<z.ZodString>;
1322
+ verification: z.ZodOptional<z.ZodObject<{
1323
+ outcome: z.ZodLiteral<"revised">;
1324
+ model: z.ZodOptional<z.ZodString>;
1325
+ evidence: z.ZodOptional<z.ZodString>;
1326
+ before: z.ZodObject<{
1327
+ title: z.ZodString;
1328
+ description: z.ZodString;
1329
+ severity: z.ZodEnum<{
1330
+ high: "high";
1331
+ medium: "medium";
1332
+ low: "low";
1333
+ }>;
1334
+ confidence: z.ZodOptional<z.ZodEnum<{
1335
+ high: "high";
1336
+ medium: "medium";
1337
+ low: "low";
1338
+ }>>;
1339
+ }, z.core.$strict>;
1340
+ }, z.core.$strict>>;
1341
+ merge: z.ZodOptional<z.ZodObject<{
1342
+ model: z.ZodOptional<z.ZodString>;
1343
+ absorbedFindingIds: z.ZodArray<z.ZodString>;
1344
+ }, z.core.$strict>>;
1345
+ }, z.core.$strict>>;
1346
+ sourceEvidence: z.ZodOptional<z.ZodObject<{
1347
+ path: z.ZodString;
1348
+ language: z.ZodOptional<z.ZodString>;
1349
+ startLine: z.ZodNumber;
1350
+ endLine: z.ZodNumber;
1351
+ targetStartLine: z.ZodNumber;
1352
+ targetEndLine: z.ZodNumber;
1353
+ content: z.ZodString;
1354
+ }, z.core.$strict>>;
1355
+ }, z.core.$strict>>;
1356
+ observations: z.ZodArray<z.ZodObject<{
1357
+ findingId: z.ZodString;
1358
+ skillExecutionId: z.ZodOptional<z.ZodString>;
1359
+ outcome: z.ZodEnum<{
1360
+ skipped: "skipped";
1361
+ revised: "revised";
1362
+ posted: "posted";
1363
+ deduped: "deduped";
1364
+ resolved: "resolved";
1365
+ failed: "failed";
1366
+ rejected: "rejected";
1367
+ }>;
1368
+ reason: z.ZodOptional<z.ZodString>;
1369
+ observedAt: z.ZodString;
1370
+ }, z.core.$strict>>;
1371
+ }, z.core.$strict>;
1372
+ export type RunProjection = z.input<typeof RunProjectionSchema>;
1373
+ //# sourceMappingURL=protocol.d.ts.map