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