2024-01-28 20:22:49 +00:00
|
|
|
type Mutation {
|
|
|
|
validateTorrents(filter: TorrentFilter!): Boolean!
|
|
|
|
cleanupTorrents(files: Boolean, dryRun: Boolean!): Int!
|
2024-03-17 21:00:34 +00:00
|
|
|
downloadTorrent(infohash: String!, file: String): DownloadTorrentResponse
|
2024-01-28 20:22:49 +00:00
|
|
|
}
|
|
|
|
|
2024-03-17 21:00:34 +00:00
|
|
|
|
2024-01-28 20:22:49 +00:00
|
|
|
input TorrentFilter @oneOf {
|
|
|
|
everything: Boolean
|
|
|
|
infohash: String
|
|
|
|
# pathGlob: String!
|
2024-03-17 21:00:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DownloadTorrentResponse {
|
|
|
|
task: Task
|
|
|
|
}
|
|
|
|
|
|
|
|
type Task {
|
|
|
|
id: ID!
|
2024-01-28 20:22:49 +00:00
|
|
|
}
|