rules affect tech review detail statuses

This commit is contained in:
aecsocket
2026-07-24 13:49:20 +01:00
parent 4b07ed720e
commit 8d82c228cf
17 changed files with 760 additions and 210 deletions
@@ -28,6 +28,19 @@ export class LabrinthTechReviewInternalModule extends AbstractModule {
)
}
public async getDetailRuleInput(
detailId: string,
): Promise<Labrinth.TechReview.Internal.RuleInput> {
return this.client.request<Labrinth.TechReview.Internal.RuleInput>(
`/moderation/tech-review/rules/details/${detailId}/input`,
{
api: 'labrinth',
version: 'internal',
method: 'GET',
},
)
}
public async getRuleAffectedDetails(
id: number,
): Promise<Labrinth.TechReview.Internal.DelphiRuleAffectedDetail[]> {
@@ -2289,6 +2289,30 @@ export namespace Labrinth {
components: Record<string, DelphiRuleSchema>
}
export type RuleInput = {
schema_version: number
trace: {
key: string
issue_type: string
severity: DelphiSeverity
jar: string | null
file_path: string
data: Record<string, unknown>
}
scan: {
delphi_version: number
}
artifact: {
size: number | null
hashes: Record<string, string>
}
scope: {
project_id: string | null
version_id: string | null
file_id: string | null
}
}
export type TestDelphiRuleResponse = {
effects: Array<DelphiRuleEffect | null>
}