run rule scans

This commit is contained in:
aecsocket
2026-07-22 19:34:18 +01:00
parent 3c77cc1502
commit 28154689f4
7 changed files with 669 additions and 37 deletions
@@ -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