tstor/graphql/mutation.graphql

27 lines
517 B
GraphQL
Raw Normal View History

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
2024-05-14 21:40:38 +00:00
uploadFile(dir: String!, file: Upload!): Boolean!
2024-03-28 13:09:42 +00:00
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!
}