lib/nzb (buildNzb, parseNzb) from the current app; NzbService builds a release's NZB from its chunks; GET /api/v1/releases?q= (every word of the name) and GET /api/v1/releases/:id/nzb behind the api guard. A test stores a batch, finds the release and reads its NZB back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
888 B
TypeScript
36 lines
888 B
TypeScript
/* eslint-disable prettier/prettier */
|
|
import type { routes } from './index.ts'
|
|
|
|
export interface ApiDefinition {
|
|
auth: {
|
|
newAccount: {
|
|
store: typeof routes['auth.new_account.store']
|
|
}
|
|
accessTokens: {
|
|
store: typeof routes['auth.access_tokens.store']
|
|
}
|
|
}
|
|
profile: {
|
|
profile: {
|
|
show: typeof routes['profile.profile.show']
|
|
}
|
|
accessTokens: {
|
|
destroy: typeof routes['profile.access_tokens.destroy']
|
|
}
|
|
}
|
|
releases: {
|
|
index: typeof routes['releases.index']
|
|
nzb: typeof routes['releases.nzb']
|
|
}
|
|
node: {
|
|
node: {
|
|
lease: typeof routes['node.node.lease']
|
|
stream: typeof routes['node.node.stream']
|
|
batch: typeof routes['node.node.batch']
|
|
heartbeat: typeof routes['node.node.heartbeat']
|
|
finish: typeof routes['node.node.finish']
|
|
release: typeof routes['node.node.release']
|
|
}
|
|
}
|
|
}
|