fallow_api/
output_contracts.rs1pub type AuditOutput = fallow_output::AuditOutput<
6 crate::AuditVerdict,
7 crate::AuditSummary,
8 crate::AuditAttribution,
9 fallow_output::CheckOutput,
10 crate::DupesReportPayload,
11 fallow_output::HealthReport,
12>;
13
14pub type CombinedOutput = fallow_output::CombinedOutput<
16 fallow_output::CheckOutput,
17 crate::DupesReportPayload,
18 fallow_output::HealthReport,
19>;
20
21pub type ListBoundariesOutput = fallow_output::ListBoundariesOutput<
24 fallow_config::LogicalGroupStatus,
25 fallow_config::AuthoredRule,
26>;
27
28pub type WorkspacesOutput = fallow_output::WorkspacesOutput<fallow_config::WorkspaceDiagnostic>;
30
31pub type BoundariesListing = fallow_output::BoundariesListing<
33 fallow_config::LogicalGroupStatus,
34 fallow_config::AuthoredRule,
35>;
36
37pub type BoundariesListZone = fallow_output::BoundariesListZone;
39
40pub type BoundariesListRule = fallow_output::BoundariesListRule;
42
43pub type BoundariesListLogicalGroup = fallow_output::BoundariesListLogicalGroup<
45 fallow_config::LogicalGroupStatus,
46 fallow_config::AuthoredRule,
47>;
48
49pub type ListOutput =
52 fallow_output::ListOutput<BoundariesListing, fallow_config::WorkspaceDiagnostic>;
53
54pub type ListEntryPointOutput = fallow_output::ListEntryPointOutput;
56
57pub type ListPluginOutput = fallow_output::ListPluginOutput;
59
60pub type SecurityGate = fallow_output::SecurityGate<crate::SecurityGateMode>;
62
63pub type SecurityOutputConfig = fallow_output::SecurityOutputConfig<fallow_config::Severity>;
65
66pub type SecuritySummaryOutput =
68 fallow_output::SecuritySummaryOutput<SecurityOutputConfig, SecurityGate>;
69
70pub type SecurityOutput = fallow_output::SecurityOutput<SecurityOutputConfig, SecurityGate>;
72
73#[derive(Debug, serde::Serialize)]
78#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
79#[serde(untagged)]
80pub enum TraceOutput {
81 Export(Box<fallow_types::trace::ExportTrace>),
83 ClassMember(Box<fallow_types::trace::ClassMemberTrace>),
85 File(Box<fallow_types::trace::FileTrace>),
87 Dependency(Box<fallow_types::trace::DependencyTrace>),
89 Clone(Box<fallow_types::trace::CloneTrace>),
91 ImpactClosure(Box<fallow_types::trace::ImpactClosureTrace>),
93 SymbolChain(Box<fallow_types::trace_chain::SymbolChainTrace>),
95 SemanticSymbol(Box<fallow_types::semantic::SemanticSymbolTrace>),
97}
98
99#[derive(Debug, Clone, serde::Serialize)]
102#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
103#[serde(untagged)]
104pub enum ImpactOutput {
105 Project(Box<fallow_output::ImpactReport>),
107 SemanticSymbol(Box<fallow_types::semantic::SemanticSymbolImpact>),
109}
110
111#[allow(
113 clippy::type_complexity,
114 reason = "the concrete review brief contract names every typed wire section"
115)]
116pub type ReviewBriefWireOutput = fallow_output::ReviewBriefWireOutput<
117 fallow_output::FocusMap,
118 fallow_output::WeakeningSignal,
119 fallow_output::RoutingFacts,
120 fallow_output::DecisionSurface,
121 crate::AuditVerdict,
122 crate::AuditSummary,
123 crate::AuditAttribution,
124 fallow_output::CheckOutput,
125 crate::DupesReportPayload,
126 fallow_output::HealthReport,
127>;
128
129pub type SimilarCodeOutput = fallow_output::SimilarCodeOutput;
131
132pub type SimilarCodeCandidateSnapshot = fallow_output::SimilarCodeCandidateSnapshot;
134
135pub type SimilarCodeInspectOutput = fallow_output::SimilarCodeInspectOutput;
137
138pub type SimilarCodeReviewOutput = fallow_output::SimilarCodeReviewOutput;
140
141pub type SimilarCodeStatusOutput = fallow_output::SimilarCodeStatusOutput;
143
144pub type SimilarCodeCacheClearOutput = fallow_output::SimilarCodeCacheClearOutput;
146
147pub type SimilarCodeVerdictInput = fallow_output::SimilarCodeVerdictInput;
149
150#[allow(
153 clippy::type_complexity,
154 reason = "concrete root union intentionally fills every output payload slot"
155)]
156pub type FallowOutput = fallow_output::FallowOutput<
157 AuditOutput,
158 fallow_output::ExplainOutput,
159 fallow_output::InspectOutput,
160 TraceOutput,
161 fallow_output::ReviewEnvelopeOutput,
162 fallow_output::ReviewReconcileOutput,
163 fallow_output::CoverageSetupOutput,
164 fallow_output::CoverageAnalyzeOutput,
165 ListBoundariesOutput,
166 WorkspacesOutput,
167 fallow_output::HealthOutput<fallow_output::HealthReport, fallow_output::HealthGroup>,
168 fallow_output::DupesOutput<crate::DupesReportPayload, crate::DuplicationGroup>,
169 fallow_output::CheckGroupedOutput,
170 ImpactOutput,
171 fallow_output::CrossRepoImpactReport,
172 SecuritySummaryOutput,
173 SecurityOutput,
174 fallow_output::SecuritySurvivorsOutput,
175 fallow_output::SecurityBlindSpotsOutput,
176 fallow_output::CheckOutput,
177 CombinedOutput,
178 fallow_output::FeatureFlagsOutput,
179 ReviewBriefWireOutput,
180 fallow_output::DecisionSurfaceOutput,
181 fallow_output::StandardWalkthroughGuide,
182 fallow_output::WalkthroughValidation,
183 fallow_output::SuppressionInventoryOutput,
184 fallow_output::DoctorOutput,
185 fallow_output::TypeAwareStatusOutput,
186 SimilarCodeOutput,
187 SimilarCodeInspectOutput,
188 SimilarCodeReviewOutput,
189 SimilarCodeStatusOutput,
190 SimilarCodeCacheClearOutput,
191>;