Upload (Audio nur per Magic Bytes, versiegelt, 2 MiB), Text-Weg, Liste, Abruf, Wiederholen, Verwerfen, alle verwerfen, Konfiguration und Zähler unter /voice-captures. Rechte voice-captures:use plus inspections:create (eigener Guard, API-Schlüssel ausgeschlossen), Zähler nur mit system:manage; jede Abfrage auf den Besitzer begrenzt. Grenzen je Benutzer unter Advisory-Lock (10 offen, 30 je Tag, 10 je 60 s), Wiederholen ebenfalls begrenzt und gedrosselt, Audio für QUEUED nur unter 24 h. Verwerfen löscht Inhalt und Claim sofort. Keine Inhalte in Log oder Audit. Wächter gegen Sprachinhalte in Suche, Export und Berichten erweitert. Refs #27 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
22 lines
777 B
TypeScript
22 lines
777 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { InspectionCreateGuard } from './captures/inspection-create.guard';
|
|
import { VoiceCapturesController } from './captures/voice-captures.controller';
|
|
import { VoiceCapturesStatsService } from './captures/voice-captures-stats.service';
|
|
import { VoiceCapturesService } from './captures/voice-captures.service';
|
|
|
|
/**
|
|
* The voice note API (T7). Audit, the permission resolver and the Prisma
|
|
* client come from global modules. Later tasks add the confirmation service
|
|
* (task 8) and the handlers (task 9).
|
|
*/
|
|
@Module({
|
|
controllers: [VoiceCapturesController],
|
|
providers: [
|
|
VoiceCapturesService,
|
|
VoiceCapturesStatsService,
|
|
InspectionCreateGuard,
|
|
],
|
|
exports: [VoiceCapturesService],
|
|
})
|
|
export class VoiceModule {}
|