mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
rules affect tech review detail statuses
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user