@stacknext/regression 0.0.0-stage → 0.6.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,1300 @@
1
+ import { z } from 'zod';
2
+ export declare const databaseNameSchema: z.ZodString;
3
+ export declare const instrumentationSnapshotSchema: z.ZodObject<{
4
+ verbose: z.ZodBoolean;
5
+ verboseSource: z.ZodString;
6
+ captureFetch: z.ZodBoolean;
7
+ captureErrors: z.ZodBoolean;
8
+ }, z.core.$strict>;
9
+ export declare const environmentSnapshotSchema: z.ZodObject<{
10
+ nodeVersion: z.ZodString;
11
+ nextVersion: z.ZodNullable<z.ZodString>;
12
+ platform: z.ZodString;
13
+ arch: z.ZodString;
14
+ runtime: z.ZodLiteral<"nodejs">;
15
+ databases: z.ZodArray<z.ZodString>;
16
+ instrumentation: z.ZodObject<{
17
+ verbose: z.ZodBoolean;
18
+ verboseSource: z.ZodString;
19
+ captureFetch: z.ZodBoolean;
20
+ captureErrors: z.ZodBoolean;
21
+ }, z.core.$strict>;
22
+ sdkVersion: z.ZodString;
23
+ playwrightVersion: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strict>;
25
+ export declare const scenarioIdentitySchema: z.ZodObject<{
26
+ id: z.ZodString;
27
+ source: z.ZodEnum<{
28
+ annotation: "annotation";
29
+ "test-id": "test-id";
30
+ title: "title";
31
+ }>;
32
+ title: z.ZodString;
33
+ file: z.ZodString;
34
+ project: z.ZodString;
35
+ tags: z.ZodArray<z.ZodString>;
36
+ }, z.core.$strict>;
37
+ export declare const capturedSpanSchema: z.ZodObject<{
38
+ key: z.ZodString;
39
+ name: z.ZodString;
40
+ kind: z.ZodEnum<{
41
+ internal: "internal";
42
+ server: "server";
43
+ client: "client";
44
+ producer: "producer";
45
+ consumer: "consumer";
46
+ }>;
47
+ category: z.ZodEnum<{
48
+ custom: "custom";
49
+ database: "database";
50
+ http: "http";
51
+ framework: "framework";
52
+ other: "other";
53
+ }>;
54
+ durationMs: z.ZodNumber;
55
+ status: z.ZodEnum<{
56
+ error: "error";
57
+ unset: "unset";
58
+ ok: "ok";
59
+ }>;
60
+ nextSpanType: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strict>;
62
+ export declare const capturedQuerySchema: z.ZodObject<{
63
+ key: z.ZodString;
64
+ shape: z.ZodString;
65
+ durationMs: z.ZodNullable<z.ZodNumber>;
66
+ source: z.ZodEnum<{
67
+ drizzle: "drizzle";
68
+ prisma: "prisma";
69
+ manual: "manual";
70
+ }>;
71
+ success: z.ZodBoolean;
72
+ }, z.core.$strict>;
73
+ export declare const capturedErrorSchema: z.ZodObject<{
74
+ key: z.ZodString;
75
+ name: z.ZodString;
76
+ message: z.ZodString;
77
+ route: z.ZodNullable<z.ZodString>;
78
+ }, z.core.$strict>;
79
+ export declare const capturedFindingSchema: z.ZodObject<{
80
+ key: z.ZodString;
81
+ ruleId: z.ZodEnum<{
82
+ "n-plus-one-queries": "n-plus-one-queries";
83
+ "slow-span": "slow-span";
84
+ "repeated-external-http": "repeated-external-http";
85
+ "error-fingerprint": "error-fingerprint";
86
+ }>;
87
+ category: z.ZodEnum<{
88
+ runtime: "runtime";
89
+ database: "database";
90
+ http: "http";
91
+ performance: "performance";
92
+ errors: "errors";
93
+ }>;
94
+ severity: z.ZodEnum<{
95
+ error: "error";
96
+ info: "info";
97
+ warning: "warning";
98
+ }>;
99
+ status: z.ZodEnum<{
100
+ observed: "observed";
101
+ possible: "possible";
102
+ "insufficient-evidence": "insufficient-evidence";
103
+ }>;
104
+ }, z.core.$strict>;
105
+ export declare const capturedTraceSchema: z.ZodObject<{
106
+ traceId: z.ZodString;
107
+ injectedSpanId: z.ZodString;
108
+ key: z.ZodString;
109
+ method: z.ZodNullable<z.ZodString>;
110
+ route: z.ZodNullable<z.ZodString>;
111
+ rootName: z.ZodString;
112
+ statusCode: z.ZodNullable<z.ZodNumber>;
113
+ durationMs: z.ZodNumber;
114
+ spanCount: z.ZodNumber;
115
+ errorCount: z.ZodNumber;
116
+ databaseQueryCount: z.ZodNumber;
117
+ fetchCount: z.ZodNumber;
118
+ spans: z.ZodArray<z.ZodObject<{
119
+ key: z.ZodString;
120
+ name: z.ZodString;
121
+ kind: z.ZodEnum<{
122
+ internal: "internal";
123
+ server: "server";
124
+ client: "client";
125
+ producer: "producer";
126
+ consumer: "consumer";
127
+ }>;
128
+ category: z.ZodEnum<{
129
+ custom: "custom";
130
+ database: "database";
131
+ http: "http";
132
+ framework: "framework";
133
+ other: "other";
134
+ }>;
135
+ durationMs: z.ZodNumber;
136
+ status: z.ZodEnum<{
137
+ error: "error";
138
+ unset: "unset";
139
+ ok: "ok";
140
+ }>;
141
+ nextSpanType: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strict>>;
143
+ queries: z.ZodArray<z.ZodObject<{
144
+ key: z.ZodString;
145
+ shape: z.ZodString;
146
+ durationMs: z.ZodNullable<z.ZodNumber>;
147
+ source: z.ZodEnum<{
148
+ drizzle: "drizzle";
149
+ prisma: "prisma";
150
+ manual: "manual";
151
+ }>;
152
+ success: z.ZodBoolean;
153
+ }, z.core.$strict>>;
154
+ errors: z.ZodArray<z.ZodObject<{
155
+ key: z.ZodString;
156
+ name: z.ZodString;
157
+ message: z.ZodString;
158
+ route: z.ZodNullable<z.ZodString>;
159
+ }, z.core.$strict>>;
160
+ }, z.core.$strict>;
161
+ export declare const correlationSchema: z.ZodObject<{
162
+ status: z.ZodEnum<{
163
+ incomplete: "incomplete";
164
+ verified: "verified";
165
+ }>;
166
+ reasons: z.ZodArray<z.ZodString>;
167
+ traces: z.ZodArray<z.ZodObject<{
168
+ traceId: z.ZodString;
169
+ injectedSpanId: z.ZodString;
170
+ key: z.ZodString;
171
+ method: z.ZodNullable<z.ZodString>;
172
+ route: z.ZodNullable<z.ZodString>;
173
+ rootName: z.ZodString;
174
+ statusCode: z.ZodNullable<z.ZodNumber>;
175
+ durationMs: z.ZodNumber;
176
+ spanCount: z.ZodNumber;
177
+ errorCount: z.ZodNumber;
178
+ databaseQueryCount: z.ZodNumber;
179
+ fetchCount: z.ZodNumber;
180
+ spans: z.ZodArray<z.ZodObject<{
181
+ key: z.ZodString;
182
+ name: z.ZodString;
183
+ kind: z.ZodEnum<{
184
+ internal: "internal";
185
+ server: "server";
186
+ client: "client";
187
+ producer: "producer";
188
+ consumer: "consumer";
189
+ }>;
190
+ category: z.ZodEnum<{
191
+ custom: "custom";
192
+ database: "database";
193
+ http: "http";
194
+ framework: "framework";
195
+ other: "other";
196
+ }>;
197
+ durationMs: z.ZodNumber;
198
+ status: z.ZodEnum<{
199
+ error: "error";
200
+ unset: "unset";
201
+ ok: "ok";
202
+ }>;
203
+ nextSpanType: z.ZodOptional<z.ZodString>;
204
+ }, z.core.$strict>>;
205
+ queries: z.ZodArray<z.ZodObject<{
206
+ key: z.ZodString;
207
+ shape: z.ZodString;
208
+ durationMs: z.ZodNullable<z.ZodNumber>;
209
+ source: z.ZodEnum<{
210
+ drizzle: "drizzle";
211
+ prisma: "prisma";
212
+ manual: "manual";
213
+ }>;
214
+ success: z.ZodBoolean;
215
+ }, z.core.$strict>>;
216
+ errors: z.ZodArray<z.ZodObject<{
217
+ key: z.ZodString;
218
+ name: z.ZodString;
219
+ message: z.ZodString;
220
+ route: z.ZodNullable<z.ZodString>;
221
+ }, z.core.$strict>>;
222
+ }, z.core.$strict>>;
223
+ }, z.core.$strict>;
224
+ export declare const capturedSampleSchema: z.ZodObject<{
225
+ id: z.ZodString;
226
+ status: z.ZodEnum<{
227
+ failed: "failed";
228
+ interrupted: "interrupted";
229
+ passed: "passed";
230
+ timedOut: "timedOut";
231
+ skipped: "skipped";
232
+ }>;
233
+ expectedStatus: z.ZodEnum<{
234
+ failed: "failed";
235
+ passed: "passed";
236
+ skipped: "skipped";
237
+ }>;
238
+ retry: z.ZodNumber;
239
+ repeatEachIndex: z.ZodNumber;
240
+ durationMs: z.ZodNumber;
241
+ capturedAt: z.ZodNumber;
242
+ correlation: z.ZodObject<{
243
+ status: z.ZodEnum<{
244
+ incomplete: "incomplete";
245
+ verified: "verified";
246
+ }>;
247
+ reasons: z.ZodArray<z.ZodString>;
248
+ traces: z.ZodArray<z.ZodObject<{
249
+ traceId: z.ZodString;
250
+ injectedSpanId: z.ZodString;
251
+ key: z.ZodString;
252
+ method: z.ZodNullable<z.ZodString>;
253
+ route: z.ZodNullable<z.ZodString>;
254
+ rootName: z.ZodString;
255
+ statusCode: z.ZodNullable<z.ZodNumber>;
256
+ durationMs: z.ZodNumber;
257
+ spanCount: z.ZodNumber;
258
+ errorCount: z.ZodNumber;
259
+ databaseQueryCount: z.ZodNumber;
260
+ fetchCount: z.ZodNumber;
261
+ spans: z.ZodArray<z.ZodObject<{
262
+ key: z.ZodString;
263
+ name: z.ZodString;
264
+ kind: z.ZodEnum<{
265
+ internal: "internal";
266
+ server: "server";
267
+ client: "client";
268
+ producer: "producer";
269
+ consumer: "consumer";
270
+ }>;
271
+ category: z.ZodEnum<{
272
+ custom: "custom";
273
+ database: "database";
274
+ http: "http";
275
+ framework: "framework";
276
+ other: "other";
277
+ }>;
278
+ durationMs: z.ZodNumber;
279
+ status: z.ZodEnum<{
280
+ error: "error";
281
+ unset: "unset";
282
+ ok: "ok";
283
+ }>;
284
+ nextSpanType: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strict>>;
286
+ queries: z.ZodArray<z.ZodObject<{
287
+ key: z.ZodString;
288
+ shape: z.ZodString;
289
+ durationMs: z.ZodNullable<z.ZodNumber>;
290
+ source: z.ZodEnum<{
291
+ drizzle: "drizzle";
292
+ prisma: "prisma";
293
+ manual: "manual";
294
+ }>;
295
+ success: z.ZodBoolean;
296
+ }, z.core.$strict>>;
297
+ errors: z.ZodArray<z.ZodObject<{
298
+ key: z.ZodString;
299
+ name: z.ZodString;
300
+ message: z.ZodString;
301
+ route: z.ZodNullable<z.ZodString>;
302
+ }, z.core.$strict>>;
303
+ }, z.core.$strict>>;
304
+ }, z.core.$strict>;
305
+ findings: z.ZodArray<z.ZodObject<{
306
+ key: z.ZodString;
307
+ ruleId: z.ZodEnum<{
308
+ "n-plus-one-queries": "n-plus-one-queries";
309
+ "slow-span": "slow-span";
310
+ "repeated-external-http": "repeated-external-http";
311
+ "error-fingerprint": "error-fingerprint";
312
+ }>;
313
+ category: z.ZodEnum<{
314
+ runtime: "runtime";
315
+ database: "database";
316
+ http: "http";
317
+ performance: "performance";
318
+ errors: "errors";
319
+ }>;
320
+ severity: z.ZodEnum<{
321
+ error: "error";
322
+ info: "info";
323
+ warning: "warning";
324
+ }>;
325
+ status: z.ZodEnum<{
326
+ observed: "observed";
327
+ possible: "possible";
328
+ "insufficient-evidence": "insufficient-evidence";
329
+ }>;
330
+ }, z.core.$strict>>;
331
+ }, z.core.$strict>;
332
+ export declare const scenarioSchema: z.ZodObject<{
333
+ identity: z.ZodObject<{
334
+ id: z.ZodString;
335
+ source: z.ZodEnum<{
336
+ annotation: "annotation";
337
+ "test-id": "test-id";
338
+ title: "title";
339
+ }>;
340
+ title: z.ZodString;
341
+ file: z.ZodString;
342
+ project: z.ZodString;
343
+ tags: z.ZodArray<z.ZodString>;
344
+ }, z.core.$strict>;
345
+ samples: z.ZodArray<z.ZodObject<{
346
+ id: z.ZodString;
347
+ status: z.ZodEnum<{
348
+ failed: "failed";
349
+ interrupted: "interrupted";
350
+ passed: "passed";
351
+ timedOut: "timedOut";
352
+ skipped: "skipped";
353
+ }>;
354
+ expectedStatus: z.ZodEnum<{
355
+ failed: "failed";
356
+ passed: "passed";
357
+ skipped: "skipped";
358
+ }>;
359
+ retry: z.ZodNumber;
360
+ repeatEachIndex: z.ZodNumber;
361
+ durationMs: z.ZodNumber;
362
+ capturedAt: z.ZodNumber;
363
+ correlation: z.ZodObject<{
364
+ status: z.ZodEnum<{
365
+ incomplete: "incomplete";
366
+ verified: "verified";
367
+ }>;
368
+ reasons: z.ZodArray<z.ZodString>;
369
+ traces: z.ZodArray<z.ZodObject<{
370
+ traceId: z.ZodString;
371
+ injectedSpanId: z.ZodString;
372
+ key: z.ZodString;
373
+ method: z.ZodNullable<z.ZodString>;
374
+ route: z.ZodNullable<z.ZodString>;
375
+ rootName: z.ZodString;
376
+ statusCode: z.ZodNullable<z.ZodNumber>;
377
+ durationMs: z.ZodNumber;
378
+ spanCount: z.ZodNumber;
379
+ errorCount: z.ZodNumber;
380
+ databaseQueryCount: z.ZodNumber;
381
+ fetchCount: z.ZodNumber;
382
+ spans: z.ZodArray<z.ZodObject<{
383
+ key: z.ZodString;
384
+ name: z.ZodString;
385
+ kind: z.ZodEnum<{
386
+ internal: "internal";
387
+ server: "server";
388
+ client: "client";
389
+ producer: "producer";
390
+ consumer: "consumer";
391
+ }>;
392
+ category: z.ZodEnum<{
393
+ custom: "custom";
394
+ database: "database";
395
+ http: "http";
396
+ framework: "framework";
397
+ other: "other";
398
+ }>;
399
+ durationMs: z.ZodNumber;
400
+ status: z.ZodEnum<{
401
+ error: "error";
402
+ unset: "unset";
403
+ ok: "ok";
404
+ }>;
405
+ nextSpanType: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strict>>;
407
+ queries: z.ZodArray<z.ZodObject<{
408
+ key: z.ZodString;
409
+ shape: z.ZodString;
410
+ durationMs: z.ZodNullable<z.ZodNumber>;
411
+ source: z.ZodEnum<{
412
+ drizzle: "drizzle";
413
+ prisma: "prisma";
414
+ manual: "manual";
415
+ }>;
416
+ success: z.ZodBoolean;
417
+ }, z.core.$strict>>;
418
+ errors: z.ZodArray<z.ZodObject<{
419
+ key: z.ZodString;
420
+ name: z.ZodString;
421
+ message: z.ZodString;
422
+ route: z.ZodNullable<z.ZodString>;
423
+ }, z.core.$strict>>;
424
+ }, z.core.$strict>>;
425
+ }, z.core.$strict>;
426
+ findings: z.ZodArray<z.ZodObject<{
427
+ key: z.ZodString;
428
+ ruleId: z.ZodEnum<{
429
+ "n-plus-one-queries": "n-plus-one-queries";
430
+ "slow-span": "slow-span";
431
+ "repeated-external-http": "repeated-external-http";
432
+ "error-fingerprint": "error-fingerprint";
433
+ }>;
434
+ category: z.ZodEnum<{
435
+ runtime: "runtime";
436
+ database: "database";
437
+ http: "http";
438
+ performance: "performance";
439
+ errors: "errors";
440
+ }>;
441
+ severity: z.ZodEnum<{
442
+ error: "error";
443
+ info: "info";
444
+ warning: "warning";
445
+ }>;
446
+ status: z.ZodEnum<{
447
+ observed: "observed";
448
+ possible: "possible";
449
+ "insufficient-evidence": "insufficient-evidence";
450
+ }>;
451
+ }, z.core.$strict>>;
452
+ }, z.core.$strict>>;
453
+ findings: z.ZodArray<z.ZodObject<{
454
+ key: z.ZodString;
455
+ ruleId: z.ZodEnum<{
456
+ "n-plus-one-queries": "n-plus-one-queries";
457
+ "slow-span": "slow-span";
458
+ "repeated-external-http": "repeated-external-http";
459
+ "error-fingerprint": "error-fingerprint";
460
+ }>;
461
+ category: z.ZodEnum<{
462
+ runtime: "runtime";
463
+ database: "database";
464
+ http: "http";
465
+ performance: "performance";
466
+ errors: "errors";
467
+ }>;
468
+ severity: z.ZodEnum<{
469
+ error: "error";
470
+ info: "info";
471
+ warning: "warning";
472
+ }>;
473
+ status: z.ZodEnum<{
474
+ observed: "observed";
475
+ possible: "possible";
476
+ "insufficient-evidence": "insufficient-evidence";
477
+ }>;
478
+ }, z.core.$strict>>;
479
+ notes: z.ZodArray<z.ZodString>;
480
+ limitations: z.ZodArray<z.ZodString>;
481
+ }, z.core.$strict>;
482
+ export declare const regressionStatsSchema: z.ZodObject<{
483
+ scenarios: z.ZodNumber;
484
+ samples: z.ZodNumber;
485
+ verifiedSamples: z.ZodNumber;
486
+ incompleteSamples: z.ZodNumber;
487
+ traces: z.ZodNumber;
488
+ requests: z.ZodNumber;
489
+ spans: z.ZodNumber;
490
+ errors: z.ZodNumber;
491
+ databaseQueries: z.ZodNumber;
492
+ }, z.core.$strict>;
493
+ export declare const commandSnapshotSchema: z.ZodObject<{
494
+ executable: z.ZodString;
495
+ args: z.ZodArray<z.ZodString>;
496
+ exitCode: z.ZodNullable<z.ZodNumber>;
497
+ signal: z.ZodNullable<z.ZodString>;
498
+ durationMs: z.ZodNumber;
499
+ }, z.core.$strict>;
500
+ export declare const runCollectorSchema: z.ZodObject<{
501
+ version: z.ZodString;
502
+ connected: z.ZodBoolean;
503
+ }, z.core.$strict>;
504
+ export declare const testRunSchema: z.ZodObject<{
505
+ format: z.ZodLiteral<"stacknext-test-run">;
506
+ version: z.ZodLiteral<1>;
507
+ id: z.ZodString;
508
+ name: z.ZodString;
509
+ projectName: z.ZodString;
510
+ status: z.ZodEnum<{
511
+ running: "running";
512
+ completed: "completed";
513
+ failed: "failed";
514
+ interrupted: "interrupted";
515
+ incomplete: "incomplete";
516
+ }>;
517
+ createdAt: z.ZodNumber;
518
+ completedAt: z.ZodNullable<z.ZodNumber>;
519
+ command: z.ZodObject<{
520
+ executable: z.ZodString;
521
+ args: z.ZodArray<z.ZodString>;
522
+ exitCode: z.ZodNullable<z.ZodNumber>;
523
+ signal: z.ZodNullable<z.ZodString>;
524
+ durationMs: z.ZodNumber;
525
+ }, z.core.$strict>;
526
+ environment: z.ZodObject<{
527
+ nodeVersion: z.ZodString;
528
+ nextVersion: z.ZodNullable<z.ZodString>;
529
+ platform: z.ZodString;
530
+ arch: z.ZodString;
531
+ runtime: z.ZodLiteral<"nodejs">;
532
+ databases: z.ZodArray<z.ZodString>;
533
+ instrumentation: z.ZodObject<{
534
+ verbose: z.ZodBoolean;
535
+ verboseSource: z.ZodString;
536
+ captureFetch: z.ZodBoolean;
537
+ captureErrors: z.ZodBoolean;
538
+ }, z.core.$strict>;
539
+ sdkVersion: z.ZodString;
540
+ playwrightVersion: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strict>;
542
+ collector: z.ZodObject<{
543
+ version: z.ZodString;
544
+ connected: z.ZodBoolean;
545
+ }, z.core.$strict>;
546
+ scenarios: z.ZodArray<z.ZodObject<{
547
+ identity: z.ZodObject<{
548
+ id: z.ZodString;
549
+ source: z.ZodEnum<{
550
+ annotation: "annotation";
551
+ "test-id": "test-id";
552
+ title: "title";
553
+ }>;
554
+ title: z.ZodString;
555
+ file: z.ZodString;
556
+ project: z.ZodString;
557
+ tags: z.ZodArray<z.ZodString>;
558
+ }, z.core.$strict>;
559
+ samples: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodString;
561
+ status: z.ZodEnum<{
562
+ failed: "failed";
563
+ interrupted: "interrupted";
564
+ passed: "passed";
565
+ timedOut: "timedOut";
566
+ skipped: "skipped";
567
+ }>;
568
+ expectedStatus: z.ZodEnum<{
569
+ failed: "failed";
570
+ passed: "passed";
571
+ skipped: "skipped";
572
+ }>;
573
+ retry: z.ZodNumber;
574
+ repeatEachIndex: z.ZodNumber;
575
+ durationMs: z.ZodNumber;
576
+ capturedAt: z.ZodNumber;
577
+ correlation: z.ZodObject<{
578
+ status: z.ZodEnum<{
579
+ incomplete: "incomplete";
580
+ verified: "verified";
581
+ }>;
582
+ reasons: z.ZodArray<z.ZodString>;
583
+ traces: z.ZodArray<z.ZodObject<{
584
+ traceId: z.ZodString;
585
+ injectedSpanId: z.ZodString;
586
+ key: z.ZodString;
587
+ method: z.ZodNullable<z.ZodString>;
588
+ route: z.ZodNullable<z.ZodString>;
589
+ rootName: z.ZodString;
590
+ statusCode: z.ZodNullable<z.ZodNumber>;
591
+ durationMs: z.ZodNumber;
592
+ spanCount: z.ZodNumber;
593
+ errorCount: z.ZodNumber;
594
+ databaseQueryCount: z.ZodNumber;
595
+ fetchCount: z.ZodNumber;
596
+ spans: z.ZodArray<z.ZodObject<{
597
+ key: z.ZodString;
598
+ name: z.ZodString;
599
+ kind: z.ZodEnum<{
600
+ internal: "internal";
601
+ server: "server";
602
+ client: "client";
603
+ producer: "producer";
604
+ consumer: "consumer";
605
+ }>;
606
+ category: z.ZodEnum<{
607
+ custom: "custom";
608
+ database: "database";
609
+ http: "http";
610
+ framework: "framework";
611
+ other: "other";
612
+ }>;
613
+ durationMs: z.ZodNumber;
614
+ status: z.ZodEnum<{
615
+ error: "error";
616
+ unset: "unset";
617
+ ok: "ok";
618
+ }>;
619
+ nextSpanType: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strict>>;
621
+ queries: z.ZodArray<z.ZodObject<{
622
+ key: z.ZodString;
623
+ shape: z.ZodString;
624
+ durationMs: z.ZodNullable<z.ZodNumber>;
625
+ source: z.ZodEnum<{
626
+ drizzle: "drizzle";
627
+ prisma: "prisma";
628
+ manual: "manual";
629
+ }>;
630
+ success: z.ZodBoolean;
631
+ }, z.core.$strict>>;
632
+ errors: z.ZodArray<z.ZodObject<{
633
+ key: z.ZodString;
634
+ name: z.ZodString;
635
+ message: z.ZodString;
636
+ route: z.ZodNullable<z.ZodString>;
637
+ }, z.core.$strict>>;
638
+ }, z.core.$strict>>;
639
+ }, z.core.$strict>;
640
+ findings: z.ZodArray<z.ZodObject<{
641
+ key: z.ZodString;
642
+ ruleId: z.ZodEnum<{
643
+ "n-plus-one-queries": "n-plus-one-queries";
644
+ "slow-span": "slow-span";
645
+ "repeated-external-http": "repeated-external-http";
646
+ "error-fingerprint": "error-fingerprint";
647
+ }>;
648
+ category: z.ZodEnum<{
649
+ runtime: "runtime";
650
+ database: "database";
651
+ http: "http";
652
+ performance: "performance";
653
+ errors: "errors";
654
+ }>;
655
+ severity: z.ZodEnum<{
656
+ error: "error";
657
+ info: "info";
658
+ warning: "warning";
659
+ }>;
660
+ status: z.ZodEnum<{
661
+ observed: "observed";
662
+ possible: "possible";
663
+ "insufficient-evidence": "insufficient-evidence";
664
+ }>;
665
+ }, z.core.$strict>>;
666
+ }, z.core.$strict>>;
667
+ findings: z.ZodArray<z.ZodObject<{
668
+ key: z.ZodString;
669
+ ruleId: z.ZodEnum<{
670
+ "n-plus-one-queries": "n-plus-one-queries";
671
+ "slow-span": "slow-span";
672
+ "repeated-external-http": "repeated-external-http";
673
+ "error-fingerprint": "error-fingerprint";
674
+ }>;
675
+ category: z.ZodEnum<{
676
+ runtime: "runtime";
677
+ database: "database";
678
+ http: "http";
679
+ performance: "performance";
680
+ errors: "errors";
681
+ }>;
682
+ severity: z.ZodEnum<{
683
+ error: "error";
684
+ info: "info";
685
+ warning: "warning";
686
+ }>;
687
+ status: z.ZodEnum<{
688
+ observed: "observed";
689
+ possible: "possible";
690
+ "insufficient-evidence": "insufficient-evidence";
691
+ }>;
692
+ }, z.core.$strict>>;
693
+ notes: z.ZodArray<z.ZodString>;
694
+ limitations: z.ZodArray<z.ZodString>;
695
+ }, z.core.$strict>>;
696
+ warnings: z.ZodArray<z.ZodString>;
697
+ notes: z.ZodArray<z.ZodString>;
698
+ limitations: z.ZodArray<z.ZodString>;
699
+ stats: z.ZodObject<{
700
+ scenarios: z.ZodNumber;
701
+ samples: z.ZodNumber;
702
+ verifiedSamples: z.ZodNumber;
703
+ incompleteSamples: z.ZodNumber;
704
+ traces: z.ZodNumber;
705
+ requests: z.ZodNumber;
706
+ spans: z.ZodNumber;
707
+ errors: z.ZodNumber;
708
+ databaseQueries: z.ZodNumber;
709
+ }, z.core.$strict>;
710
+ }, z.core.$strict>;
711
+ export declare const baselineSchema: z.ZodObject<{
712
+ format: z.ZodLiteral<"stacknext-baseline">;
713
+ version: z.ZodLiteral<1>;
714
+ id: z.ZodString;
715
+ name: z.ZodString;
716
+ projectName: z.ZodString;
717
+ createdAt: z.ZodNumber;
718
+ sourceRunId: z.ZodString;
719
+ environment: z.ZodObject<{
720
+ nodeVersion: z.ZodString;
721
+ nextVersion: z.ZodNullable<z.ZodString>;
722
+ platform: z.ZodString;
723
+ arch: z.ZodString;
724
+ runtime: z.ZodLiteral<"nodejs">;
725
+ databases: z.ZodArray<z.ZodString>;
726
+ instrumentation: z.ZodObject<{
727
+ verbose: z.ZodBoolean;
728
+ verboseSource: z.ZodString;
729
+ captureFetch: z.ZodBoolean;
730
+ captureErrors: z.ZodBoolean;
731
+ }, z.core.$strict>;
732
+ sdkVersion: z.ZodString;
733
+ playwrightVersion: z.ZodOptional<z.ZodString>;
734
+ }, z.core.$strict>;
735
+ scenarios: z.ZodArray<z.ZodObject<{
736
+ identity: z.ZodObject<{
737
+ id: z.ZodString;
738
+ source: z.ZodEnum<{
739
+ annotation: "annotation";
740
+ "test-id": "test-id";
741
+ title: "title";
742
+ }>;
743
+ title: z.ZodString;
744
+ file: z.ZodString;
745
+ project: z.ZodString;
746
+ tags: z.ZodArray<z.ZodString>;
747
+ }, z.core.$strict>;
748
+ samples: z.ZodArray<z.ZodObject<{
749
+ id: z.ZodString;
750
+ status: z.ZodEnum<{
751
+ failed: "failed";
752
+ interrupted: "interrupted";
753
+ passed: "passed";
754
+ timedOut: "timedOut";
755
+ skipped: "skipped";
756
+ }>;
757
+ expectedStatus: z.ZodEnum<{
758
+ failed: "failed";
759
+ passed: "passed";
760
+ skipped: "skipped";
761
+ }>;
762
+ retry: z.ZodNumber;
763
+ repeatEachIndex: z.ZodNumber;
764
+ durationMs: z.ZodNumber;
765
+ capturedAt: z.ZodNumber;
766
+ correlation: z.ZodObject<{
767
+ status: z.ZodEnum<{
768
+ incomplete: "incomplete";
769
+ verified: "verified";
770
+ }>;
771
+ reasons: z.ZodArray<z.ZodString>;
772
+ traces: z.ZodArray<z.ZodObject<{
773
+ traceId: z.ZodString;
774
+ injectedSpanId: z.ZodString;
775
+ key: z.ZodString;
776
+ method: z.ZodNullable<z.ZodString>;
777
+ route: z.ZodNullable<z.ZodString>;
778
+ rootName: z.ZodString;
779
+ statusCode: z.ZodNullable<z.ZodNumber>;
780
+ durationMs: z.ZodNumber;
781
+ spanCount: z.ZodNumber;
782
+ errorCount: z.ZodNumber;
783
+ databaseQueryCount: z.ZodNumber;
784
+ fetchCount: z.ZodNumber;
785
+ spans: z.ZodArray<z.ZodObject<{
786
+ key: z.ZodString;
787
+ name: z.ZodString;
788
+ kind: z.ZodEnum<{
789
+ internal: "internal";
790
+ server: "server";
791
+ client: "client";
792
+ producer: "producer";
793
+ consumer: "consumer";
794
+ }>;
795
+ category: z.ZodEnum<{
796
+ custom: "custom";
797
+ database: "database";
798
+ http: "http";
799
+ framework: "framework";
800
+ other: "other";
801
+ }>;
802
+ durationMs: z.ZodNumber;
803
+ status: z.ZodEnum<{
804
+ error: "error";
805
+ unset: "unset";
806
+ ok: "ok";
807
+ }>;
808
+ nextSpanType: z.ZodOptional<z.ZodString>;
809
+ }, z.core.$strict>>;
810
+ queries: z.ZodArray<z.ZodObject<{
811
+ key: z.ZodString;
812
+ shape: z.ZodString;
813
+ durationMs: z.ZodNullable<z.ZodNumber>;
814
+ source: z.ZodEnum<{
815
+ drizzle: "drizzle";
816
+ prisma: "prisma";
817
+ manual: "manual";
818
+ }>;
819
+ success: z.ZodBoolean;
820
+ }, z.core.$strict>>;
821
+ errors: z.ZodArray<z.ZodObject<{
822
+ key: z.ZodString;
823
+ name: z.ZodString;
824
+ message: z.ZodString;
825
+ route: z.ZodNullable<z.ZodString>;
826
+ }, z.core.$strict>>;
827
+ }, z.core.$strict>>;
828
+ }, z.core.$strict>;
829
+ findings: z.ZodArray<z.ZodObject<{
830
+ key: z.ZodString;
831
+ ruleId: z.ZodEnum<{
832
+ "n-plus-one-queries": "n-plus-one-queries";
833
+ "slow-span": "slow-span";
834
+ "repeated-external-http": "repeated-external-http";
835
+ "error-fingerprint": "error-fingerprint";
836
+ }>;
837
+ category: z.ZodEnum<{
838
+ runtime: "runtime";
839
+ database: "database";
840
+ http: "http";
841
+ performance: "performance";
842
+ errors: "errors";
843
+ }>;
844
+ severity: z.ZodEnum<{
845
+ error: "error";
846
+ info: "info";
847
+ warning: "warning";
848
+ }>;
849
+ status: z.ZodEnum<{
850
+ observed: "observed";
851
+ possible: "possible";
852
+ "insufficient-evidence": "insufficient-evidence";
853
+ }>;
854
+ }, z.core.$strict>>;
855
+ }, z.core.$strict>>;
856
+ findings: z.ZodArray<z.ZodObject<{
857
+ key: z.ZodString;
858
+ ruleId: z.ZodEnum<{
859
+ "n-plus-one-queries": "n-plus-one-queries";
860
+ "slow-span": "slow-span";
861
+ "repeated-external-http": "repeated-external-http";
862
+ "error-fingerprint": "error-fingerprint";
863
+ }>;
864
+ category: z.ZodEnum<{
865
+ runtime: "runtime";
866
+ database: "database";
867
+ http: "http";
868
+ performance: "performance";
869
+ errors: "errors";
870
+ }>;
871
+ severity: z.ZodEnum<{
872
+ error: "error";
873
+ info: "info";
874
+ warning: "warning";
875
+ }>;
876
+ status: z.ZodEnum<{
877
+ observed: "observed";
878
+ possible: "possible";
879
+ "insufficient-evidence": "insufficient-evidence";
880
+ }>;
881
+ }, z.core.$strict>>;
882
+ notes: z.ZodArray<z.ZodString>;
883
+ limitations: z.ZodArray<z.ZodString>;
884
+ }, z.core.$strict>>;
885
+ warnings: z.ZodArray<z.ZodString>;
886
+ notes: z.ZodArray<z.ZodString>;
887
+ limitations: z.ZodArray<z.ZodString>;
888
+ stats: z.ZodObject<{
889
+ scenarios: z.ZodNumber;
890
+ samples: z.ZodNumber;
891
+ verifiedSamples: z.ZodNumber;
892
+ incompleteSamples: z.ZodNumber;
893
+ traces: z.ZodNumber;
894
+ requests: z.ZodNumber;
895
+ spans: z.ZodNumber;
896
+ errors: z.ZodNumber;
897
+ databaseQueries: z.ZodNumber;
898
+ }, z.core.$strict>;
899
+ }, z.core.$strict>;
900
+ export declare const comparisonOptionsSchema: z.ZodObject<{
901
+ minSamples: z.ZodNumber;
902
+ durationRegressionPct: z.ZodNumber;
903
+ durationRegressionMs: z.ZodNumber;
904
+ durationImprovementPct: z.ZodNumber;
905
+ durationImprovementMs: z.ZodNumber;
906
+ countRegressionMin: z.ZodNumber;
907
+ ignoreEnvironment: z.ZodBoolean;
908
+ }, z.core.$strict>;
909
+ export declare const environmentDifferenceSchema: z.ZodObject<{
910
+ field: z.ZodString;
911
+ baseline: z.ZodString;
912
+ candidate: z.ZodString;
913
+ }, z.core.$strict>;
914
+ export declare const regressionMetricSchema: z.ZodObject<{
915
+ key: z.ZodString;
916
+ label: z.ZodString;
917
+ kind: z.ZodEnum<{
918
+ duration: "duration";
919
+ count: "count";
920
+ "test-status": "test-status";
921
+ error: "error";
922
+ finding: "finding";
923
+ }>;
924
+ status: z.ZodEnum<{
925
+ improved: "improved";
926
+ regressed: "regressed";
927
+ unchanged: "unchanged";
928
+ inconclusive: "inconclusive";
929
+ }>;
930
+ severity: z.ZodEnum<{
931
+ high: "high";
932
+ medium: "medium";
933
+ low: "low";
934
+ none: "none";
935
+ }>;
936
+ baselineValue: z.ZodNullable<z.ZodNumber>;
937
+ candidateValue: z.ZodNullable<z.ZodNumber>;
938
+ delta: z.ZodNullable<z.ZodNumber>;
939
+ percent: z.ZodNullable<z.ZodNumber>;
940
+ sampleCount: z.ZodNumber;
941
+ note: z.ZodOptional<z.ZodString>;
942
+ unmeasured: z.ZodOptional<z.ZodBoolean>;
943
+ }, z.core.$strict>;
944
+ export declare const scenarioComparisonSideSchema: z.ZodObject<{
945
+ samples: z.ZodNumber;
946
+ verifiedSamples: z.ZodNumber;
947
+ incompleteSamples: z.ZodNumber;
948
+ traces: z.ZodNumber;
949
+ findings: z.ZodNumber;
950
+ }, z.core.$strict>;
951
+ export declare const scenarioComparisonSchema: z.ZodObject<{
952
+ scenarioId: z.ZodString;
953
+ title: z.ZodString;
954
+ file: z.ZodString;
955
+ project: z.ZodString;
956
+ status: z.ZodEnum<{
957
+ improved: "improved";
958
+ regressed: "regressed";
959
+ unchanged: "unchanged";
960
+ inconclusive: "inconclusive";
961
+ }>;
962
+ severity: z.ZodEnum<{
963
+ high: "high";
964
+ medium: "medium";
965
+ low: "low";
966
+ none: "none";
967
+ }>;
968
+ reasons: z.ZodArray<z.ZodString>;
969
+ metrics: z.ZodArray<z.ZodObject<{
970
+ key: z.ZodString;
971
+ label: z.ZodString;
972
+ kind: z.ZodEnum<{
973
+ duration: "duration";
974
+ count: "count";
975
+ "test-status": "test-status";
976
+ error: "error";
977
+ finding: "finding";
978
+ }>;
979
+ status: z.ZodEnum<{
980
+ improved: "improved";
981
+ regressed: "regressed";
982
+ unchanged: "unchanged";
983
+ inconclusive: "inconclusive";
984
+ }>;
985
+ severity: z.ZodEnum<{
986
+ high: "high";
987
+ medium: "medium";
988
+ low: "low";
989
+ none: "none";
990
+ }>;
991
+ baselineValue: z.ZodNullable<z.ZodNumber>;
992
+ candidateValue: z.ZodNullable<z.ZodNumber>;
993
+ delta: z.ZodNullable<z.ZodNumber>;
994
+ percent: z.ZodNullable<z.ZodNumber>;
995
+ sampleCount: z.ZodNumber;
996
+ note: z.ZodOptional<z.ZodString>;
997
+ unmeasured: z.ZodOptional<z.ZodBoolean>;
998
+ }, z.core.$strict>>;
999
+ baseline: z.ZodObject<{
1000
+ samples: z.ZodNumber;
1001
+ verifiedSamples: z.ZodNumber;
1002
+ incompleteSamples: z.ZodNumber;
1003
+ traces: z.ZodNumber;
1004
+ findings: z.ZodNumber;
1005
+ }, z.core.$strict>;
1006
+ candidate: z.ZodObject<{
1007
+ samples: z.ZodNumber;
1008
+ verifiedSamples: z.ZodNumber;
1009
+ incompleteSamples: z.ZodNumber;
1010
+ traces: z.ZodNumber;
1011
+ findings: z.ZodNumber;
1012
+ }, z.core.$strict>;
1013
+ }, z.core.$strict>;
1014
+ export declare const comparisonSummarySchema: z.ZodObject<{
1015
+ scenarios: z.ZodNumber;
1016
+ regressed: z.ZodNumber;
1017
+ improved: z.ZodNumber;
1018
+ unchanged: z.ZodNumber;
1019
+ inconclusive: z.ZodNumber;
1020
+ }, z.core.$strict>;
1021
+ export declare const comparisonSchema: z.ZodObject<{
1022
+ format: z.ZodLiteral<"stacknext-comparison">;
1023
+ version: z.ZodLiteral<1>;
1024
+ id: z.ZodString;
1025
+ projectName: z.ZodString;
1026
+ createdAt: z.ZodNumber;
1027
+ baselineId: z.ZodString;
1028
+ candidateId: z.ZodString;
1029
+ status: z.ZodEnum<{
1030
+ improved: "improved";
1031
+ regressed: "regressed";
1032
+ unchanged: "unchanged";
1033
+ inconclusive: "inconclusive";
1034
+ }>;
1035
+ severity: z.ZodEnum<{
1036
+ high: "high";
1037
+ medium: "medium";
1038
+ low: "low";
1039
+ none: "none";
1040
+ }>;
1041
+ environment: z.ZodObject<{
1042
+ compatible: z.ZodBoolean;
1043
+ ignored: z.ZodBoolean;
1044
+ differences: z.ZodArray<z.ZodObject<{
1045
+ field: z.ZodString;
1046
+ baseline: z.ZodString;
1047
+ candidate: z.ZodString;
1048
+ }, z.core.$strict>>;
1049
+ }, z.core.$strict>;
1050
+ options: z.ZodObject<{
1051
+ minSamples: z.ZodNumber;
1052
+ durationRegressionPct: z.ZodNumber;
1053
+ durationRegressionMs: z.ZodNumber;
1054
+ durationImprovementPct: z.ZodNumber;
1055
+ durationImprovementMs: z.ZodNumber;
1056
+ countRegressionMin: z.ZodNumber;
1057
+ ignoreEnvironment: z.ZodBoolean;
1058
+ }, z.core.$strict>;
1059
+ summary: z.ZodObject<{
1060
+ scenarios: z.ZodNumber;
1061
+ regressed: z.ZodNumber;
1062
+ improved: z.ZodNumber;
1063
+ unchanged: z.ZodNumber;
1064
+ inconclusive: z.ZodNumber;
1065
+ }, z.core.$strict>;
1066
+ scenarios: z.ZodArray<z.ZodObject<{
1067
+ scenarioId: z.ZodString;
1068
+ title: z.ZodString;
1069
+ file: z.ZodString;
1070
+ project: z.ZodString;
1071
+ status: z.ZodEnum<{
1072
+ improved: "improved";
1073
+ regressed: "regressed";
1074
+ unchanged: "unchanged";
1075
+ inconclusive: "inconclusive";
1076
+ }>;
1077
+ severity: z.ZodEnum<{
1078
+ high: "high";
1079
+ medium: "medium";
1080
+ low: "low";
1081
+ none: "none";
1082
+ }>;
1083
+ reasons: z.ZodArray<z.ZodString>;
1084
+ metrics: z.ZodArray<z.ZodObject<{
1085
+ key: z.ZodString;
1086
+ label: z.ZodString;
1087
+ kind: z.ZodEnum<{
1088
+ duration: "duration";
1089
+ count: "count";
1090
+ "test-status": "test-status";
1091
+ error: "error";
1092
+ finding: "finding";
1093
+ }>;
1094
+ status: z.ZodEnum<{
1095
+ improved: "improved";
1096
+ regressed: "regressed";
1097
+ unchanged: "unchanged";
1098
+ inconclusive: "inconclusive";
1099
+ }>;
1100
+ severity: z.ZodEnum<{
1101
+ high: "high";
1102
+ medium: "medium";
1103
+ low: "low";
1104
+ none: "none";
1105
+ }>;
1106
+ baselineValue: z.ZodNullable<z.ZodNumber>;
1107
+ candidateValue: z.ZodNullable<z.ZodNumber>;
1108
+ delta: z.ZodNullable<z.ZodNumber>;
1109
+ percent: z.ZodNullable<z.ZodNumber>;
1110
+ sampleCount: z.ZodNumber;
1111
+ note: z.ZodOptional<z.ZodString>;
1112
+ unmeasured: z.ZodOptional<z.ZodBoolean>;
1113
+ }, z.core.$strict>>;
1114
+ baseline: z.ZodObject<{
1115
+ samples: z.ZodNumber;
1116
+ verifiedSamples: z.ZodNumber;
1117
+ incompleteSamples: z.ZodNumber;
1118
+ traces: z.ZodNumber;
1119
+ findings: z.ZodNumber;
1120
+ }, z.core.$strict>;
1121
+ candidate: z.ZodObject<{
1122
+ samples: z.ZodNumber;
1123
+ verifiedSamples: z.ZodNumber;
1124
+ incompleteSamples: z.ZodNumber;
1125
+ traces: z.ZodNumber;
1126
+ findings: z.ZodNumber;
1127
+ }, z.core.$strict>;
1128
+ }, z.core.$strict>>;
1129
+ warnings: z.ZodArray<z.ZodString>;
1130
+ limitations: z.ZodArray<z.ZodString>;
1131
+ }, z.core.$strict>;
1132
+ export declare const traceReferenceSchema: z.ZodObject<{
1133
+ traceId: z.ZodString;
1134
+ injectedSpanId: z.ZodString;
1135
+ }, z.core.$strict>;
1136
+ export declare const sampleSubmissionSchema: z.ZodObject<{
1137
+ id: z.ZodString;
1138
+ status: z.ZodEnum<{
1139
+ failed: "failed";
1140
+ interrupted: "interrupted";
1141
+ passed: "passed";
1142
+ timedOut: "timedOut";
1143
+ skipped: "skipped";
1144
+ }>;
1145
+ expectedStatus: z.ZodEnum<{
1146
+ failed: "failed";
1147
+ passed: "passed";
1148
+ skipped: "skipped";
1149
+ }>;
1150
+ retry: z.ZodNumber;
1151
+ repeatEachIndex: z.ZodNumber;
1152
+ durationMs: z.ZodNumber;
1153
+ capturedAt: z.ZodNumber;
1154
+ traces: z.ZodArray<z.ZodObject<{
1155
+ traceId: z.ZodString;
1156
+ injectedSpanId: z.ZodString;
1157
+ }, z.core.$strict>>;
1158
+ }, z.core.$strict>;
1159
+ export declare const createRunRequestSchema: z.ZodObject<{
1160
+ name: z.ZodString;
1161
+ projectName: z.ZodString;
1162
+ environment: z.ZodObject<{
1163
+ nodeVersion: z.ZodString;
1164
+ nextVersion: z.ZodNullable<z.ZodString>;
1165
+ platform: z.ZodString;
1166
+ arch: z.ZodString;
1167
+ runtime: z.ZodLiteral<"nodejs">;
1168
+ databases: z.ZodArray<z.ZodString>;
1169
+ instrumentation: z.ZodObject<{
1170
+ verbose: z.ZodBoolean;
1171
+ verboseSource: z.ZodString;
1172
+ captureFetch: z.ZodBoolean;
1173
+ captureErrors: z.ZodBoolean;
1174
+ }, z.core.$strict>;
1175
+ sdkVersion: z.ZodString;
1176
+ playwrightVersion: z.ZodOptional<z.ZodString>;
1177
+ }, z.core.$strict>;
1178
+ collectorVersion: z.ZodString;
1179
+ command: z.ZodObject<{
1180
+ executable: z.ZodString;
1181
+ args: z.ZodArray<z.ZodString>;
1182
+ exitCode: z.ZodNullable<z.ZodNumber>;
1183
+ signal: z.ZodNullable<z.ZodString>;
1184
+ durationMs: z.ZodNumber;
1185
+ }, z.core.$strict>;
1186
+ }, z.core.$strict>;
1187
+ export declare const submitSampleRequestSchema: z.ZodObject<{
1188
+ scenario: z.ZodObject<{
1189
+ id: z.ZodString;
1190
+ source: z.ZodEnum<{
1191
+ annotation: "annotation";
1192
+ "test-id": "test-id";
1193
+ title: "title";
1194
+ }>;
1195
+ title: z.ZodString;
1196
+ file: z.ZodString;
1197
+ project: z.ZodString;
1198
+ tags: z.ZodArray<z.ZodString>;
1199
+ }, z.core.$strict>;
1200
+ sample: z.ZodObject<{
1201
+ id: z.ZodString;
1202
+ status: z.ZodEnum<{
1203
+ failed: "failed";
1204
+ interrupted: "interrupted";
1205
+ passed: "passed";
1206
+ timedOut: "timedOut";
1207
+ skipped: "skipped";
1208
+ }>;
1209
+ expectedStatus: z.ZodEnum<{
1210
+ failed: "failed";
1211
+ passed: "passed";
1212
+ skipped: "skipped";
1213
+ }>;
1214
+ retry: z.ZodNumber;
1215
+ repeatEachIndex: z.ZodNumber;
1216
+ durationMs: z.ZodNumber;
1217
+ capturedAt: z.ZodNumber;
1218
+ traces: z.ZodArray<z.ZodObject<{
1219
+ traceId: z.ZodString;
1220
+ injectedSpanId: z.ZodString;
1221
+ }, z.core.$strict>>;
1222
+ }, z.core.$strict>;
1223
+ }, z.core.$strict>;
1224
+ export declare const completeRunRequestSchema: z.ZodObject<{
1225
+ status: z.ZodEnum<{
1226
+ completed: "completed";
1227
+ failed: "failed";
1228
+ interrupted: "interrupted";
1229
+ incomplete: "incomplete";
1230
+ }>;
1231
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1232
+ command: z.ZodOptional<z.ZodObject<{
1233
+ executable: z.ZodString;
1234
+ args: z.ZodArray<z.ZodString>;
1235
+ exitCode: z.ZodNullable<z.ZodNumber>;
1236
+ signal: z.ZodNullable<z.ZodString>;
1237
+ durationMs: z.ZodNumber;
1238
+ }, z.core.$strict>>;
1239
+ }, z.core.$strict>;
1240
+ export type DatabaseName = z.infer<typeof databaseNameSchema>;
1241
+ export type EnvironmentSnapshot = z.infer<typeof environmentSnapshotSchema>;
1242
+ export type ScenarioIdentity = z.infer<typeof scenarioIdentitySchema>;
1243
+ export type CapturedSpan = z.infer<typeof capturedSpanSchema>;
1244
+ export type CapturedQuery = z.infer<typeof capturedQuerySchema>;
1245
+ export type CapturedError = z.infer<typeof capturedErrorSchema>;
1246
+ export type CapturedFinding = z.infer<typeof capturedFindingSchema>;
1247
+ export type CapturedTrace = z.infer<typeof capturedTraceSchema>;
1248
+ export type CapturedSample = z.infer<typeof capturedSampleSchema>;
1249
+ export type CapturedScenario = z.infer<typeof scenarioSchema>;
1250
+ export type RegressionStats = z.infer<typeof regressionStatsSchema>;
1251
+ export type CommandSnapshot = z.infer<typeof commandSnapshotSchema>;
1252
+ export type TestRun = z.infer<typeof testRunSchema>;
1253
+ export type Baseline = z.infer<typeof baselineSchema>;
1254
+ export type ComparisonOptions = z.infer<typeof comparisonOptionsSchema>;
1255
+ export type EnvironmentDifference = z.infer<typeof environmentDifferenceSchema>;
1256
+ export type RegressionMetric = z.infer<typeof regressionMetricSchema>;
1257
+ export type ScenarioComparison = z.infer<typeof scenarioComparisonSchema>;
1258
+ export type ComparisonSummary = z.infer<typeof comparisonSummarySchema>;
1259
+ export type Comparison = z.infer<typeof comparisonSchema>;
1260
+ export type TraceReference = z.infer<typeof traceReferenceSchema>;
1261
+ export type SampleSubmission = z.infer<typeof sampleSubmissionSchema>;
1262
+ export type CreateRunRequest = z.infer<typeof createRunRequestSchema>;
1263
+ export type SubmitSampleRequest = z.infer<typeof submitSampleRequestSchema>;
1264
+ export type CompleteRunRequest = z.infer<typeof completeRunRequestSchema>;
1265
+ export interface RunSummary {
1266
+ id: string;
1267
+ name: string;
1268
+ projectName: string;
1269
+ status: TestRun['status'];
1270
+ createdAt: number;
1271
+ completedAt: number | null;
1272
+ durationMs: number | null;
1273
+ scenarios: number;
1274
+ samples: number;
1275
+ verifiedSamples: number;
1276
+ incompleteSamples: number;
1277
+ environment: EnvironmentSnapshot;
1278
+ }
1279
+ export interface BaselineSummary {
1280
+ id: string;
1281
+ name: string;
1282
+ projectName: string;
1283
+ createdAt: number;
1284
+ sourceRunId: string;
1285
+ scenarios: number;
1286
+ samples: number;
1287
+ environment: EnvironmentSnapshot;
1288
+ }
1289
+ export interface ComparisonSummaryItem {
1290
+ id: string;
1291
+ projectName: string;
1292
+ baselineId: string;
1293
+ candidateId: string;
1294
+ createdAt: number;
1295
+ status: Comparison['status'];
1296
+ severity: Comparison['severity'];
1297
+ summary: ComparisonSummary;
1298
+ environmentCompatible: boolean;
1299
+ }
1300
+ //# sourceMappingURL=schema.d.ts.map