mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
run rule scans
This commit is contained in:
@@ -68,6 +68,15 @@ export class LabrinthTechReviewInternalModule extends AbstractModule {
|
||||
})
|
||||
}
|
||||
|
||||
public async scanRules(signal?: AbortSignal): Promise<ReadableStream<Uint8Array>> {
|
||||
return this.client.stream('/moderation/tech-review/rules/scan', {
|
||||
api: 'labrinth',
|
||||
version: 'internal',
|
||||
method: 'POST',
|
||||
signal,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Search for projects awaiting technical review.
|
||||
*
|
||||
|
||||
@@ -2265,6 +2265,20 @@ export namespace Labrinth {
|
||||
effects: Array<DelphiRuleEffect | null>
|
||||
}
|
||||
|
||||
export type DelphiRuleScanPhase = 'scanning' | 'publishing' | 'complete'
|
||||
|
||||
export type DelphiRuleScanEvent = {
|
||||
phase: DelphiRuleScanPhase
|
||||
revision: number
|
||||
scanned: number
|
||||
total: number
|
||||
effects: number
|
||||
}
|
||||
|
||||
export type DelphiRuleScanErrorEvent = {
|
||||
message: string
|
||||
}
|
||||
|
||||
export type SearchProjectsRequest = {
|
||||
limit?: number
|
||||
page?: number
|
||||
|
||||
Reference in New Issue
Block a user