@uluops/ops-sdk 0.7.0 → 0.8.1

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.
@@ -254,10 +254,11 @@ export declare const PaginationResponseSchema: z.ZodObject<{
254
254
  export declare const ProjectResponseSchema: z.ZodObject<{
255
255
  id: z.ZodString;
256
256
  name: z.ZodString;
257
- ownerId: z.ZodOptional<z.ZodString>;
257
+ domain: z.ZodOptional<z.ZodString>;
258
+ ownerId: z.ZodString;
259
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
260
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
259
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
260
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
261
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
261
262
  }, z.core.$strip>;
262
263
  export declare const ProjectSummaryStatsResponseSchema: z.ZodObject<{
263
264
  totalIssues: z.ZodNumber;
@@ -273,10 +274,11 @@ export declare const ProjectSummaryResponseSchema: z.ZodObject<{
273
274
  project: z.ZodObject<{
274
275
  id: z.ZodString;
275
276
  name: z.ZodString;
276
- ownerId: z.ZodOptional<z.ZodString>;
277
+ domain: z.ZodOptional<z.ZodString>;
278
+ ownerId: z.ZodString;
279
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
280
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
278
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
279
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
281
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
280
282
  }, z.core.$strip>;
281
283
  stats: z.ZodObject<{
282
284
  totalIssues: z.ZodNumber;
@@ -299,17 +301,17 @@ export declare const TrendDataPointResponseSchema: z.ZodObject<{
299
301
  }, z.core.$strip>;
300
302
  export declare const IssueResponseSchema: z.ZodObject<{
301
303
  id: z.ZodString;
302
- projectId: z.ZodOptional<z.ZodString>;
303
- fingerprint: z.ZodOptional<z.ZodString>;
304
+ projectId: z.ZodString;
305
+ fingerprint: z.ZodString;
304
306
  title: z.ZodString;
305
- status: z.ZodOptional<z.ZodEnum<{
307
+ status: z.ZodEnum<{
306
308
  open: "open";
307
309
  completed: "completed";
308
310
  deferred: "deferred";
309
311
  wontfix: "wontfix";
310
312
  merged: "merged";
311
313
  "false-positive": "false-positive";
312
- }>>;
314
+ }>;
313
315
  priority: z.ZodEnum<{
314
316
  critical: "critical";
315
317
  suggested: "suggested";
@@ -354,14 +356,14 @@ export declare const IssueResponseSchema: z.ZodObject<{
354
356
  }>>>;
355
357
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
358
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
357
- timesSeen: z.ZodOptional<z.ZodNumber>;
358
- firstSeenRunId: z.ZodOptional<z.ZodString>;
359
- lastSeenRunId: z.ZodOptional<z.ZodString>;
359
+ timesSeen: z.ZodNumber;
360
+ firstSeenRunId: z.ZodString;
361
+ lastSeenRunId: z.ZodString;
360
362
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
361
363
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
364
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
363
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
364
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
365
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
366
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
365
367
  }, z.core.$strip>;
366
368
  export declare const OccurrenceResponseSchema: z.ZodObject<{
367
369
  id: z.ZodOptional<z.ZodString>;
@@ -438,17 +440,17 @@ export declare const StatusHistoryResponseSchema: z.ZodObject<{
438
440
  export declare const IssueDetailsResponseSchema: z.ZodObject<{
439
441
  issue: z.ZodObject<{
440
442
  id: z.ZodString;
441
- projectId: z.ZodOptional<z.ZodString>;
442
- fingerprint: z.ZodOptional<z.ZodString>;
443
+ projectId: z.ZodString;
444
+ fingerprint: z.ZodString;
443
445
  title: z.ZodString;
444
- status: z.ZodOptional<z.ZodEnum<{
446
+ status: z.ZodEnum<{
445
447
  open: "open";
446
448
  completed: "completed";
447
449
  deferred: "deferred";
448
450
  wontfix: "wontfix";
449
451
  merged: "merged";
450
452
  "false-positive": "false-positive";
451
- }>>;
453
+ }>;
452
454
  priority: z.ZodEnum<{
453
455
  critical: "critical";
454
456
  suggested: "suggested";
@@ -493,14 +495,14 @@ export declare const IssueDetailsResponseSchema: z.ZodObject<{
493
495
  }>>>;
494
496
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
495
497
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
496
- timesSeen: z.ZodOptional<z.ZodNumber>;
497
- firstSeenRunId: z.ZodOptional<z.ZodString>;
498
- lastSeenRunId: z.ZodOptional<z.ZodString>;
498
+ timesSeen: z.ZodNumber;
499
+ firstSeenRunId: z.ZodString;
500
+ lastSeenRunId: z.ZodString;
499
501
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
500
502
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
503
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
502
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
503
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
504
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
505
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
504
506
  }, z.core.$strip>;
505
507
  occurrences: z.ZodArray<z.ZodObject<{
506
508
  id: z.ZodOptional<z.ZodString>;
@@ -600,35 +602,58 @@ export declare const StatusUpdateResultResponseSchema: z.ZodObject<{
600
602
  }, z.core.$strip>;
601
603
  export declare const RunResponseSchema: z.ZodObject<{
602
604
  id: z.ZodString;
603
- projectId: z.ZodOptional<z.ZodString>;
605
+ projectId: z.ZodString;
606
+ runNumber: z.ZodNumber;
607
+ workflowType: z.ZodString;
608
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
609
+ allGatesPassed: z.ZodBoolean;
610
+ averageScore: z.ZodNullable<z.ZodNumber>;
611
+ rawMarkdown: z.ZodNullable<z.ZodString>;
612
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
613
+ archiveReason: z.ZodNullable<z.ZodString>;
614
+ idempotencyKey: z.ZodNullable<z.ZodString>;
615
+ definitionType: z.ZodNullable<z.ZodString>;
616
+ definitionName: z.ZodNullable<z.ZodString>;
617
+ definitionVersion: z.ZodNullable<z.ZodString>;
618
+ definitionHash: z.ZodNullable<z.ZodString>;
619
+ registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
620
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
621
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
622
+ }, z.core.$strip>;
623
+ /** Run summary schema for list endpoints — enriched with aggregate fields, omits detail-only fields */
624
+ export declare const RunSummaryResponseSchema: z.ZodObject<{
625
+ id: z.ZodString;
626
+ projectId: z.ZodString;
604
627
  runNumber: z.ZodNumber;
605
628
  workflowType: z.ZodString;
606
629
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
607
630
  allGatesPassed: z.ZodBoolean;
608
631
  averageScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
609
- rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
632
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
611
633
  archiveReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
- idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
614
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
634
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
635
+ totalRecommendations: z.ZodNumber;
636
+ criticalCount: z.ZodNumber;
637
+ suggestedCount: z.ZodNumber;
638
+ backlogCount: z.ZodNumber;
639
+ agentScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
615
640
  }, z.core.$strip>;
616
641
  export declare const AgentSnapshotResponseSchema: z.ZodObject<{
617
- id: z.ZodOptional<z.ZodString>;
618
- runId: z.ZodOptional<z.ZodString>;
642
+ id: z.ZodString;
643
+ runId: z.ZodString;
619
644
  name: z.ZodString;
620
645
  score: z.ZodNumber;
621
- maxScore: z.ZodOptional<z.ZodNumber>;
622
- status: z.ZodString;
623
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
- inputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
625
- outputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
626
- cacheCreationTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
627
- cacheReadTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
628
- totalEffectiveTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
629
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
630
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
631
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
646
+ maxScore: z.ZodNumber;
647
+ decision: z.ZodString;
648
+ model: z.ZodNullable<z.ZodString>;
649
+ inputTokens: z.ZodNullable<z.ZodNumber>;
650
+ outputTokens: z.ZodNullable<z.ZodNumber>;
651
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
652
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
653
+ totalEffectiveTokens: z.ZodNullable<z.ZodNumber>;
654
+ durationMs: z.ZodNullable<z.ZodNumber>;
655
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
656
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
632
657
  }, z.core.$strip>;
633
658
  export declare const CorrelationResultResponseSchema: z.ZodObject<{
634
659
  newIssues: z.ZodNumber;
@@ -638,35 +663,40 @@ export declare const CorrelationResultResponseSchema: z.ZodObject<{
638
663
  export declare const SaveRunResponseSchema: z.ZodObject<{
639
664
  run: z.ZodObject<{
640
665
  id: z.ZodString;
641
- projectId: z.ZodOptional<z.ZodString>;
666
+ projectId: z.ZodString;
642
667
  runNumber: z.ZodNumber;
643
668
  workflowType: z.ZodString;
644
669
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
670
  allGatesPassed: z.ZodBoolean;
646
- averageScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
647
- rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
649
- archiveReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
- idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
652
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
671
+ averageScore: z.ZodNullable<z.ZodNumber>;
672
+ rawMarkdown: z.ZodNullable<z.ZodString>;
673
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
674
+ archiveReason: z.ZodNullable<z.ZodString>;
675
+ idempotencyKey: z.ZodNullable<z.ZodString>;
676
+ definitionType: z.ZodNullable<z.ZodString>;
677
+ definitionName: z.ZodNullable<z.ZodString>;
678
+ definitionVersion: z.ZodNullable<z.ZodString>;
679
+ definitionHash: z.ZodNullable<z.ZodString>;
680
+ registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
681
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
682
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
653
683
  }, z.core.$strip>;
654
684
  agents: z.ZodArray<z.ZodObject<{
655
- id: z.ZodOptional<z.ZodString>;
656
- runId: z.ZodOptional<z.ZodString>;
685
+ id: z.ZodString;
686
+ runId: z.ZodString;
657
687
  name: z.ZodString;
658
688
  score: z.ZodNumber;
659
- maxScore: z.ZodOptional<z.ZodNumber>;
660
- status: z.ZodString;
661
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
- inputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
663
- outputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
664
- cacheCreationTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
665
- cacheReadTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
666
- totalEffectiveTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
667
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
668
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
669
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
689
+ maxScore: z.ZodNumber;
690
+ decision: z.ZodString;
691
+ model: z.ZodNullable<z.ZodString>;
692
+ inputTokens: z.ZodNullable<z.ZodNumber>;
693
+ outputTokens: z.ZodNullable<z.ZodNumber>;
694
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
695
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
696
+ totalEffectiveTokens: z.ZodNullable<z.ZodNumber>;
697
+ durationMs: z.ZodNullable<z.ZodNumber>;
698
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
699
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
670
700
  }, z.core.$strip>>;
671
701
  correlation: z.ZodObject<{
672
702
  newIssues: z.ZodNumber;
@@ -674,6 +704,37 @@ export declare const SaveRunResponseSchema: z.ZodObject<{
674
704
  regressions: z.ZodNumber;
675
705
  }, z.core.$strip>;
676
706
  deduplicated: z.ZodBoolean;
707
+ analysisRecords: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
708
+ id: z.ZodString;
709
+ runId: z.ZodString;
710
+ agentName: z.ZodString;
711
+ agentType: z.ZodString;
712
+ recordType: z.ZodString;
713
+ recordId: z.ZodString;
714
+ title: z.ZodString;
715
+ classification: z.ZodNullable<z.ZodString>;
716
+ severity: z.ZodNullable<z.ZodString>;
717
+ recordData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
718
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
719
+ }, z.core.$strip>>>>;
720
+ analysisSummary: z.ZodOptional<z.ZodLazy<z.ZodObject<{
721
+ id: z.ZodString;
722
+ runId: z.ZodString;
723
+ agentName: z.ZodString;
724
+ agentType: z.ZodString;
725
+ decision: z.ZodString;
726
+ score: z.ZodNumber;
727
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
728
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
729
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
730
+ name: z.ZodString;
731
+ weight: z.ZodNumber;
732
+ score: z.ZodNumber;
733
+ }, z.core.$strip>>>;
734
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
735
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
736
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
737
+ }, z.core.$strip>>>;
677
738
  }, z.core.$strip>;
678
739
  export declare const DiffIssueRefResponseSchema: z.ZodObject<{
679
740
  issueId: z.ZodString;
@@ -688,33 +749,43 @@ export declare const AgentChangeResponseSchema: z.ZodObject<{
688
749
  export declare const RunDiffResultResponseSchema: z.ZodObject<{
689
750
  baseRun: z.ZodObject<{
690
751
  id: z.ZodString;
691
- projectId: z.ZodOptional<z.ZodString>;
752
+ projectId: z.ZodString;
692
753
  runNumber: z.ZodNumber;
693
754
  workflowType: z.ZodString;
694
755
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
695
756
  allGatesPassed: z.ZodBoolean;
696
- averageScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
697
- rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
699
- archiveReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
- idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
702
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
757
+ averageScore: z.ZodNullable<z.ZodNumber>;
758
+ rawMarkdown: z.ZodNullable<z.ZodString>;
759
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
760
+ archiveReason: z.ZodNullable<z.ZodString>;
761
+ idempotencyKey: z.ZodNullable<z.ZodString>;
762
+ definitionType: z.ZodNullable<z.ZodString>;
763
+ definitionName: z.ZodNullable<z.ZodString>;
764
+ definitionVersion: z.ZodNullable<z.ZodString>;
765
+ definitionHash: z.ZodNullable<z.ZodString>;
766
+ registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
767
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
768
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
703
769
  }, z.core.$strip>;
704
770
  compareRun: z.ZodObject<{
705
771
  id: z.ZodString;
706
- projectId: z.ZodOptional<z.ZodString>;
772
+ projectId: z.ZodString;
707
773
  runNumber: z.ZodNumber;
708
774
  workflowType: z.ZodString;
709
775
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
710
776
  allGatesPassed: z.ZodBoolean;
711
- averageScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
712
- rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
713
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
714
- archiveReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
- idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
717
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
777
+ averageScore: z.ZodNullable<z.ZodNumber>;
778
+ rawMarkdown: z.ZodNullable<z.ZodString>;
779
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
780
+ archiveReason: z.ZodNullable<z.ZodString>;
781
+ idempotencyKey: z.ZodNullable<z.ZodString>;
782
+ definitionType: z.ZodNullable<z.ZodString>;
783
+ definitionName: z.ZodNullable<z.ZodString>;
784
+ definitionVersion: z.ZodNullable<z.ZodString>;
785
+ definitionHash: z.ZodNullable<z.ZodString>;
786
+ registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
787
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
788
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
718
789
  }, z.core.$strip>;
719
790
  fixed: z.ZodArray<z.ZodObject<{
720
791
  issueId: z.ZodString;
@@ -738,74 +809,225 @@ export declare const RunDiffResultResponseSchema: z.ZodObject<{
738
809
  export declare const RunDetailsResponseSchema: z.ZodObject<{
739
810
  run: z.ZodObject<{
740
811
  id: z.ZodString;
741
- projectId: z.ZodOptional<z.ZodString>;
812
+ projectId: z.ZodString;
742
813
  runNumber: z.ZodNumber;
743
814
  workflowType: z.ZodString;
744
815
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
745
816
  allGatesPassed: z.ZodBoolean;
746
- averageScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
747
- rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
748
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
749
- archiveReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
- idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
752
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
817
+ averageScore: z.ZodNullable<z.ZodNumber>;
818
+ rawMarkdown: z.ZodNullable<z.ZodString>;
819
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
820
+ archiveReason: z.ZodNullable<z.ZodString>;
821
+ idempotencyKey: z.ZodNullable<z.ZodString>;
822
+ definitionType: z.ZodNullable<z.ZodString>;
823
+ definitionName: z.ZodNullable<z.ZodString>;
824
+ definitionVersion: z.ZodNullable<z.ZodString>;
825
+ definitionHash: z.ZodNullable<z.ZodString>;
826
+ registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
827
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
828
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
753
829
  }, z.core.$strip>;
754
830
  agents: z.ZodArray<z.ZodObject<{
755
- id: z.ZodOptional<z.ZodString>;
756
- runId: z.ZodOptional<z.ZodString>;
831
+ id: z.ZodString;
832
+ runId: z.ZodString;
757
833
  name: z.ZodString;
758
834
  score: z.ZodNumber;
759
- maxScore: z.ZodOptional<z.ZodNumber>;
760
- status: z.ZodString;
761
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
- inputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
763
- outputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
764
- cacheCreationTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
765
- cacheReadTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
766
- totalEffectiveTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
767
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
768
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
769
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
835
+ maxScore: z.ZodNumber;
836
+ decision: z.ZodString;
837
+ model: z.ZodNullable<z.ZodString>;
838
+ inputTokens: z.ZodNullable<z.ZodNumber>;
839
+ outputTokens: z.ZodNullable<z.ZodNumber>;
840
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
841
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
842
+ totalEffectiveTokens: z.ZodNullable<z.ZodNumber>;
843
+ durationMs: z.ZodNullable<z.ZodNumber>;
844
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
845
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
770
846
  }, z.core.$strip>>;
771
847
  recommendations: z.ZodArray<z.ZodObject<{
772
- id: z.ZodString;
848
+ issueId: z.ZodString;
773
849
  title: z.ZodString;
774
850
  priority: z.ZodEnum<{
775
851
  critical: "critical";
776
852
  suggested: "suggested";
777
853
  backlog: "backlog";
778
854
  }>;
779
- severity: z.ZodNullable<z.ZodEnum<{
780
- critical: "critical";
781
- high: "high";
782
- medium: "medium";
783
- low: "low";
784
- info: "info";
785
- }>>;
786
855
  agent: z.ZodString;
787
856
  status: z.ZodString;
788
- correlation: z.ZodEnum<{
789
- new: "new";
790
- recurring: "recurring";
791
- regression: "regression";
792
- }>;
793
857
  }, z.core.$strip>>;
794
858
  }, z.core.$strip>;
859
+ export declare const ValidateRunResponseSchema: z.ZodObject<{
860
+ wouldCreate: z.ZodNumber;
861
+ wouldUpdate: z.ZodNumber;
862
+ wouldRegress: z.ZodNumber;
863
+ validationErrors: z.ZodArray<z.ZodString>;
864
+ preview: z.ZodOptional<z.ZodObject<{
865
+ run: z.ZodObject<{
866
+ id: z.ZodString;
867
+ projectId: z.ZodString;
868
+ runNumber: z.ZodNumber;
869
+ workflowType: z.ZodString;
870
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
871
+ allGatesPassed: z.ZodBoolean;
872
+ averageScore: z.ZodNullable<z.ZodNumber>;
873
+ rawMarkdown: z.ZodNullable<z.ZodString>;
874
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
875
+ archiveReason: z.ZodNullable<z.ZodString>;
876
+ idempotencyKey: z.ZodNullable<z.ZodString>;
877
+ definitionType: z.ZodNullable<z.ZodString>;
878
+ definitionName: z.ZodNullable<z.ZodString>;
879
+ definitionVersion: z.ZodNullable<z.ZodString>;
880
+ definitionHash: z.ZodNullable<z.ZodString>;
881
+ registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
882
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
883
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
884
+ }, z.core.$strip>;
885
+ agents: z.ZodArray<z.ZodObject<{
886
+ id: z.ZodString;
887
+ runId: z.ZodString;
888
+ name: z.ZodString;
889
+ score: z.ZodNumber;
890
+ maxScore: z.ZodNumber;
891
+ decision: z.ZodString;
892
+ model: z.ZodNullable<z.ZodString>;
893
+ inputTokens: z.ZodNullable<z.ZodNumber>;
894
+ outputTokens: z.ZodNullable<z.ZodNumber>;
895
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
896
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
897
+ totalEffectiveTokens: z.ZodNullable<z.ZodNumber>;
898
+ durationMs: z.ZodNullable<z.ZodNumber>;
899
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
900
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
901
+ }, z.core.$strip>>;
902
+ }, z.core.$strip>>;
903
+ }, z.core.$strip>;
904
+ export declare const ArchiveRunsResultResponseSchema: z.ZodObject<{
905
+ archivedCount: z.ZodNumber;
906
+ }, z.core.$strip>;
907
+ export declare const DeleteResultResponseSchema: z.ZodObject<{
908
+ deleted: z.ZodLiteral<true>;
909
+ }, z.core.$strip>;
910
+ /** Analysis record returned by getAnalysis / queryAnalysisRecords */
911
+ export declare const AnalysisRecordResponseSchema: z.ZodObject<{
912
+ id: z.ZodString;
913
+ runId: z.ZodString;
914
+ agentName: z.ZodString;
915
+ agentType: z.ZodString;
916
+ recordType: z.ZodString;
917
+ recordId: z.ZodString;
918
+ title: z.ZodString;
919
+ classification: z.ZodNullable<z.ZodString>;
920
+ severity: z.ZodNullable<z.ZodString>;
921
+ recordData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
922
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
923
+ }, z.core.$strip>;
924
+ /** Analysis summary returned by getProjectAnalysis */
925
+ export declare const AnalysisSummaryResponseSchema: z.ZodObject<{
926
+ id: z.ZodString;
927
+ runId: z.ZodString;
928
+ agentName: z.ZodString;
929
+ agentType: z.ZodString;
930
+ decision: z.ZodString;
931
+ score: z.ZodNumber;
932
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
933
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
934
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
935
+ name: z.ZodString;
936
+ weight: z.ZodNumber;
937
+ score: z.ZodNumber;
938
+ }, z.core.$strip>>>;
939
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
940
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
941
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
942
+ }, z.core.$strip>;
943
+ /** Full analysis response for a single run */
944
+ export declare const RunAnalysisResponseSchema: z.ZodObject<{
945
+ records: z.ZodArray<z.ZodObject<{
946
+ id: z.ZodString;
947
+ runId: z.ZodString;
948
+ agentName: z.ZodString;
949
+ agentType: z.ZodString;
950
+ recordType: z.ZodString;
951
+ recordId: z.ZodString;
952
+ title: z.ZodString;
953
+ classification: z.ZodNullable<z.ZodString>;
954
+ severity: z.ZodNullable<z.ZodString>;
955
+ recordData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
956
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
957
+ }, z.core.$strip>>;
958
+ summaries: z.ZodArray<z.ZodObject<{
959
+ id: z.ZodString;
960
+ runId: z.ZodString;
961
+ agentName: z.ZodString;
962
+ agentType: z.ZodString;
963
+ decision: z.ZodString;
964
+ score: z.ZodNumber;
965
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
966
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
967
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
968
+ name: z.ZodString;
969
+ weight: z.ZodNumber;
970
+ score: z.ZodNumber;
971
+ }, z.core.$strip>>>;
972
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
973
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
974
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
975
+ }, z.core.$strip>>;
976
+ total: z.ZodNumber;
977
+ }, z.core.$strip>;
978
+ /** Paginated analysis summaries response (getProjectAnalysis) */
979
+ export declare const ProjectAnalysisListResponseSchema: z.ZodObject<{
980
+ data: z.ZodArray<z.ZodObject<{
981
+ id: z.ZodString;
982
+ runId: z.ZodString;
983
+ agentName: z.ZodString;
984
+ agentType: z.ZodString;
985
+ decision: z.ZodString;
986
+ score: z.ZodNumber;
987
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
988
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
989
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
990
+ name: z.ZodString;
991
+ weight: z.ZodNumber;
992
+ score: z.ZodNumber;
993
+ }, z.core.$strip>>>;
994
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
995
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
996
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
997
+ }, z.core.$strip>>;
998
+ total: z.ZodNumber;
999
+ }, z.core.$strip>;
1000
+ /** Paginated analysis records response (queryAnalysisRecords) */
1001
+ export declare const AnalysisRecordsListResponseSchema: z.ZodObject<{
1002
+ data: z.ZodArray<z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ runId: z.ZodString;
1005
+ agentName: z.ZodString;
1006
+ agentType: z.ZodString;
1007
+ recordType: z.ZodString;
1008
+ recordId: z.ZodString;
1009
+ title: z.ZodString;
1010
+ classification: z.ZodNullable<z.ZodString>;
1011
+ severity: z.ZodNullable<z.ZodString>;
1012
+ recordData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1013
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1014
+ }, z.core.$strip>>;
1015
+ total: z.ZodNumber;
1016
+ }, z.core.$strip>;
795
1017
  export declare const MergeIssuesResultResponseSchema: z.ZodObject<{
796
1018
  targetIssue: z.ZodOptional<z.ZodObject<{
797
1019
  id: z.ZodString;
798
- projectId: z.ZodOptional<z.ZodString>;
799
- fingerprint: z.ZodOptional<z.ZodString>;
1020
+ projectId: z.ZodString;
1021
+ fingerprint: z.ZodString;
800
1022
  title: z.ZodString;
801
- status: z.ZodOptional<z.ZodEnum<{
1023
+ status: z.ZodEnum<{
802
1024
  open: "open";
803
1025
  completed: "completed";
804
1026
  deferred: "deferred";
805
1027
  wontfix: "wontfix";
806
1028
  merged: "merged";
807
1029
  "false-positive": "false-positive";
808
- }>>;
1030
+ }>;
809
1031
  priority: z.ZodEnum<{
810
1032
  critical: "critical";
811
1033
  suggested: "suggested";
@@ -850,14 +1072,14 @@ export declare const MergeIssuesResultResponseSchema: z.ZodObject<{
850
1072
  }>>>;
851
1073
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
852
1074
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
853
- timesSeen: z.ZodOptional<z.ZodNumber>;
854
- firstSeenRunId: z.ZodOptional<z.ZodString>;
855
- lastSeenRunId: z.ZodOptional<z.ZodString>;
1075
+ timesSeen: z.ZodNumber;
1076
+ firstSeenRunId: z.ZodString;
1077
+ lastSeenRunId: z.ZodString;
856
1078
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
857
1079
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
1080
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
859
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
860
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1081
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1082
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
861
1083
  }, z.core.$strip>>;
862
1084
  targetIssueId: z.ZodOptional<z.ZodString>;
863
1085
  mergedCount: z.ZodNumber;
@@ -910,27 +1132,28 @@ export declare const ProjectListResponseSchema: z.ZodObject<{
910
1132
  data: z.ZodArray<z.ZodObject<{
911
1133
  id: z.ZodString;
912
1134
  name: z.ZodString;
913
- ownerId: z.ZodOptional<z.ZodString>;
1135
+ domain: z.ZodOptional<z.ZodString>;
1136
+ ownerId: z.ZodString;
1137
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
914
1138
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
915
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
916
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1139
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
917
1140
  }, z.core.$strip>>;
918
1141
  count: z.ZodOptional<z.ZodNumber>;
919
1142
  }, z.core.$strip>;
920
1143
  export declare const IssueListResponseSchema: z.ZodObject<{
921
1144
  data: z.ZodArray<z.ZodObject<{
922
1145
  id: z.ZodString;
923
- projectId: z.ZodOptional<z.ZodString>;
924
- fingerprint: z.ZodOptional<z.ZodString>;
1146
+ projectId: z.ZodString;
1147
+ fingerprint: z.ZodString;
925
1148
  title: z.ZodString;
926
- status: z.ZodOptional<z.ZodEnum<{
1149
+ status: z.ZodEnum<{
927
1150
  open: "open";
928
1151
  completed: "completed";
929
1152
  deferred: "deferred";
930
1153
  wontfix: "wontfix";
931
1154
  merged: "merged";
932
1155
  "false-positive": "false-positive";
933
- }>>;
1156
+ }>;
934
1157
  priority: z.ZodEnum<{
935
1158
  critical: "critical";
936
1159
  suggested: "suggested";
@@ -975,14 +1198,14 @@ export declare const IssueListResponseSchema: z.ZodObject<{
975
1198
  }>>>;
976
1199
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
1200
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
978
- timesSeen: z.ZodOptional<z.ZodNumber>;
979
- firstSeenRunId: z.ZodOptional<z.ZodString>;
980
- lastSeenRunId: z.ZodOptional<z.ZodString>;
1201
+ timesSeen: z.ZodNumber;
1202
+ firstSeenRunId: z.ZodString;
1203
+ lastSeenRunId: z.ZodString;
981
1204
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
982
1205
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
983
1206
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
984
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
985
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1207
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1208
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
986
1209
  }, z.core.$strip>>;
987
1210
  count: z.ZodOptional<z.ZodNumber>;
988
1211
  }, z.core.$strip>;
@@ -1067,27 +1290,28 @@ export declare const ProjectApiResponseSchema: z.ZodObject<{
1067
1290
  data: z.ZodObject<{
1068
1291
  id: z.ZodString;
1069
1292
  name: z.ZodString;
1070
- ownerId: z.ZodOptional<z.ZodString>;
1293
+ domain: z.ZodOptional<z.ZodString>;
1294
+ ownerId: z.ZodString;
1295
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
1296
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1072
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1073
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1297
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1074
1298
  }, z.core.$strip>;
1075
1299
  message: z.ZodOptional<z.ZodString>;
1076
1300
  }, z.core.$strip>;
1077
1301
  export declare const IssueApiResponseSchema: z.ZodObject<{
1078
1302
  data: z.ZodObject<{
1079
1303
  id: z.ZodString;
1080
- projectId: z.ZodOptional<z.ZodString>;
1081
- fingerprint: z.ZodOptional<z.ZodString>;
1304
+ projectId: z.ZodString;
1305
+ fingerprint: z.ZodString;
1082
1306
  title: z.ZodString;
1083
- status: z.ZodOptional<z.ZodEnum<{
1307
+ status: z.ZodEnum<{
1084
1308
  open: "open";
1085
1309
  completed: "completed";
1086
1310
  deferred: "deferred";
1087
1311
  wontfix: "wontfix";
1088
1312
  merged: "merged";
1089
1313
  "false-positive": "false-positive";
1090
- }>>;
1314
+ }>;
1091
1315
  priority: z.ZodEnum<{
1092
1316
  critical: "critical";
1093
1317
  suggested: "suggested";
@@ -1132,14 +1356,14 @@ export declare const IssueApiResponseSchema: z.ZodObject<{
1132
1356
  }>>>;
1133
1357
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1134
1358
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1135
- timesSeen: z.ZodOptional<z.ZodNumber>;
1136
- firstSeenRunId: z.ZodOptional<z.ZodString>;
1137
- lastSeenRunId: z.ZodOptional<z.ZodString>;
1359
+ timesSeen: z.ZodNumber;
1360
+ firstSeenRunId: z.ZodString;
1361
+ lastSeenRunId: z.ZodString;
1138
1362
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1139
1363
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
1364
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1141
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1142
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1365
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1366
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1143
1367
  }, z.core.$strip>;
1144
1368
  message: z.ZodOptional<z.ZodString>;
1145
1369
  }, z.core.$strip>;
@@ -1147,17 +1371,17 @@ export declare const IssueDetailsApiResponseSchema: z.ZodObject<{
1147
1371
  data: z.ZodObject<{
1148
1372
  issue: z.ZodObject<{
1149
1373
  id: z.ZodString;
1150
- projectId: z.ZodOptional<z.ZodString>;
1151
- fingerprint: z.ZodOptional<z.ZodString>;
1374
+ projectId: z.ZodString;
1375
+ fingerprint: z.ZodString;
1152
1376
  title: z.ZodString;
1153
- status: z.ZodOptional<z.ZodEnum<{
1377
+ status: z.ZodEnum<{
1154
1378
  open: "open";
1155
1379
  completed: "completed";
1156
1380
  deferred: "deferred";
1157
1381
  wontfix: "wontfix";
1158
1382
  merged: "merged";
1159
1383
  "false-positive": "false-positive";
1160
- }>>;
1384
+ }>;
1161
1385
  priority: z.ZodEnum<{
1162
1386
  critical: "critical";
1163
1387
  suggested: "suggested";
@@ -1202,14 +1426,14 @@ export declare const IssueDetailsApiResponseSchema: z.ZodObject<{
1202
1426
  }>>>;
1203
1427
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1204
1428
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1205
- timesSeen: z.ZodOptional<z.ZodNumber>;
1206
- firstSeenRunId: z.ZodOptional<z.ZodString>;
1207
- lastSeenRunId: z.ZodOptional<z.ZodString>;
1429
+ timesSeen: z.ZodNumber;
1430
+ firstSeenRunId: z.ZodString;
1431
+ lastSeenRunId: z.ZodString;
1208
1432
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1209
1433
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
1434
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1211
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1212
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1435
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1436
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1213
1437
  }, z.core.$strip>;
1214
1438
  occurrences: z.ZodArray<z.ZodObject<{
1215
1439
  id: z.ZodOptional<z.ZodString>;
@@ -1306,10 +1530,11 @@ export declare const ProjectSummaryApiResponseSchema: z.ZodObject<{
1306
1530
  project: z.ZodObject<{
1307
1531
  id: z.ZodString;
1308
1532
  name: z.ZodString;
1309
- ownerId: z.ZodOptional<z.ZodString>;
1533
+ domain: z.ZodOptional<z.ZodString>;
1534
+ ownerId: z.ZodString;
1535
+ orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1310
1536
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1311
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1312
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1537
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1313
1538
  }, z.core.$strip>;
1314
1539
  stats: z.ZodObject<{
1315
1540
  totalIssues: z.ZodNumber;
@@ -1328,17 +1553,17 @@ export declare const MergeIssuesApiResponseSchema: z.ZodObject<{
1328
1553
  data: z.ZodObject<{
1329
1554
  targetIssue: z.ZodOptional<z.ZodObject<{
1330
1555
  id: z.ZodString;
1331
- projectId: z.ZodOptional<z.ZodString>;
1332
- fingerprint: z.ZodOptional<z.ZodString>;
1556
+ projectId: z.ZodString;
1557
+ fingerprint: z.ZodString;
1333
1558
  title: z.ZodString;
1334
- status: z.ZodOptional<z.ZodEnum<{
1559
+ status: z.ZodEnum<{
1335
1560
  open: "open";
1336
1561
  completed: "completed";
1337
1562
  deferred: "deferred";
1338
1563
  wontfix: "wontfix";
1339
1564
  merged: "merged";
1340
1565
  "false-positive": "false-positive";
1341
- }>>;
1566
+ }>;
1342
1567
  priority: z.ZodEnum<{
1343
1568
  critical: "critical";
1344
1569
  suggested: "suggested";
@@ -1383,14 +1608,14 @@ export declare const MergeIssuesApiResponseSchema: z.ZodObject<{
1383
1608
  }>>>;
1384
1609
  filePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1385
1610
  lineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1386
- timesSeen: z.ZodOptional<z.ZodNumber>;
1387
- firstSeenRunId: z.ZodOptional<z.ZodString>;
1388
- lastSeenRunId: z.ZodOptional<z.ZodString>;
1611
+ timesSeen: z.ZodNumber;
1612
+ firstSeenRunId: z.ZodString;
1613
+ lastSeenRunId: z.ZodString;
1389
1614
  resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1390
1615
  resolutionRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1391
1616
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1392
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1393
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1617
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1618
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1394
1619
  }, z.core.$strip>>;
1395
1620
  targetIssueId: z.ZodOptional<z.ZodString>;
1396
1621
  mergedCount: z.ZodNumber;
@@ -1433,21 +1658,21 @@ export type AgentSnapshotResponse = z.infer<typeof AgentSnapshotResponseSchema>;
1433
1658
  export type ValidatorSnapshotResponse = AgentSnapshotResponse;
1434
1659
  /** @deprecated Use AgentSnapshotResponseSchema instead */
1435
1660
  export declare const ValidatorSnapshotResponseSchema: z.ZodObject<{
1436
- id: z.ZodOptional<z.ZodString>;
1437
- runId: z.ZodOptional<z.ZodString>;
1661
+ id: z.ZodString;
1662
+ runId: z.ZodString;
1438
1663
  name: z.ZodString;
1439
1664
  score: z.ZodNumber;
1440
- maxScore: z.ZodOptional<z.ZodNumber>;
1441
- status: z.ZodString;
1442
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1443
- inputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1444
- outputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1445
- cacheCreationTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1446
- cacheReadTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1447
- totalEffectiveTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1448
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1449
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1450
- updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1665
+ maxScore: z.ZodNumber;
1666
+ decision: z.ZodString;
1667
+ model: z.ZodNullable<z.ZodString>;
1668
+ inputTokens: z.ZodNullable<z.ZodNumber>;
1669
+ outputTokens: z.ZodNullable<z.ZodNumber>;
1670
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
1671
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
1672
+ totalEffectiveTokens: z.ZodNullable<z.ZodNumber>;
1673
+ durationMs: z.ZodNullable<z.ZodNumber>;
1674
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1675
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1451
1676
  }, z.core.$strip>;
1452
1677
  /** @deprecated Use AgentChangeResponseSchema instead */
1453
1678
  export declare const ValidatorChangeResponseSchema: z.ZodObject<{