2024-04-24 17:36:33 +00:00
|
|
|
directive @oneOf on INPUT_OBJECT | FIELD_DEFINITION
|
2024-07-07 20:09:13 +00:00
|
|
|
directive @resolver on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
|
2024-04-24 17:36:33 +00:00
|
|
|
directive @stream on FIELD_DEFINITION
|
|
|
|
input BooleanFilter @oneOf {
|
|
|
|
eq: Boolean
|
|
|
|
}
|
|
|
|
scalar DateTime
|
|
|
|
input DateTimeFilter @oneOf {
|
|
|
|
eq: DateTime
|
|
|
|
gt: DateTime
|
|
|
|
lt: DateTime
|
|
|
|
gte: DateTime
|
|
|
|
lte: DateTime
|
|
|
|
}
|
|
|
|
interface Dir implements FsEntry {
|
|
|
|
name: String!
|
|
|
|
entries: [FsEntry!]!
|
|
|
|
}
|
|
|
|
interface File implements FsEntry {
|
|
|
|
name: String!
|
|
|
|
size: Int!
|
|
|
|
}
|
|
|
|
interface FsEntry {
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
input IntFilter @oneOf {
|
|
|
|
eq: Int
|
|
|
|
gt: Int
|
|
|
|
lt: Int
|
|
|
|
gte: Int
|
|
|
|
lte: Int
|
|
|
|
in: [Int!]
|
|
|
|
}
|
|
|
|
type Mutation {
|
2024-11-15 13:39:56 +00:00
|
|
|
qbitTorrentDaemon: QBitTorrentDaemonMutation @resolver
|
2024-05-14 21:40:38 +00:00
|
|
|
uploadFile(dir: String!, file: Upload!): Boolean!
|
2024-04-24 17:36:33 +00:00
|
|
|
dedupeStorage: Int!
|
|
|
|
}
|
|
|
|
input Pagination {
|
|
|
|
offset: Int!
|
|
|
|
limit: Int!
|
|
|
|
}
|
|
|
|
interface Progress {
|
|
|
|
current: Int!
|
|
|
|
total: Int!
|
|
|
|
}
|
2024-11-24 17:33:44 +00:00
|
|
|
type QBitCleanupResponse {
|
|
|
|
count: Int!
|
|
|
|
hashes: [String!]!
|
|
|
|
}
|
2024-12-15 21:43:04 +00:00
|
|
|
type QBitCleanupUnregistredResponse {
|
|
|
|
count: Int!
|
|
|
|
hashes: [String!]!
|
|
|
|
}
|
2024-12-16 22:04:44 +00:00
|
|
|
input QBitTorrentDaemonFilter {
|
2025-01-07 22:25:46 +00:00
|
|
|
sourcesCount: IntFilter
|
2024-12-16 22:04:44 +00:00
|
|
|
}
|
2024-11-15 13:39:56 +00:00
|
|
|
type QBitTorrentDaemonMutation {
|
2024-11-24 17:33:44 +00:00
|
|
|
cleanup(run: Boolean!): QBitCleanupResponse! @resolver
|
2024-12-15 21:43:04 +00:00
|
|
|
cleanupUnregistred(run: Boolean!): QBitCleanupUnregistredResponse! @resolver
|
2024-11-15 13:39:56 +00:00
|
|
|
}
|
2024-10-19 01:24:14 +00:00
|
|
|
type QBitTorrentDaemonQuery {
|
2024-12-16 22:04:44 +00:00
|
|
|
torrents(filter: QBitTorrentDaemonFilter): [QTorrent!]! @resolver
|
2024-10-19 01:24:14 +00:00
|
|
|
}
|
|
|
|
type QTorrent {
|
|
|
|
name: String!
|
|
|
|
hash: String!
|
|
|
|
sourceFiles: [String!]! @resolver
|
|
|
|
}
|
2024-04-24 17:36:33 +00:00
|
|
|
type Query {
|
2024-11-15 13:39:56 +00:00
|
|
|
qbitTorrentDaemon: QBitTorrentDaemonQuery @resolver
|
2024-04-24 17:36:33 +00:00
|
|
|
fsEntry(path: String!): FsEntry
|
|
|
|
}
|
|
|
|
type ResolverFS implements Dir & FsEntry {
|
|
|
|
name: String!
|
2024-07-07 20:09:13 +00:00
|
|
|
entries: [FsEntry!]! @resolver
|
2024-04-24 17:36:33 +00:00
|
|
|
}
|
|
|
|
type Schema {
|
|
|
|
query: Query
|
|
|
|
mutation: Mutation
|
|
|
|
}
|
|
|
|
type SimpleDir implements Dir & FsEntry {
|
|
|
|
name: String!
|
2024-07-07 20:09:13 +00:00
|
|
|
entries: [FsEntry!]! @resolver
|
2024-04-24 17:36:33 +00:00
|
|
|
}
|
|
|
|
type SimpleFile implements File & FsEntry {
|
|
|
|
name: String!
|
|
|
|
size: Int!
|
|
|
|
}
|
|
|
|
input StringFilter @oneOf {
|
|
|
|
eq: String
|
|
|
|
substr: String
|
|
|
|
in: [String!]
|
|
|
|
}
|
|
|
|
type Subscription {
|
|
|
|
taskProgress(taskID: ID!): Progress
|
|
|
|
}
|
|
|
|
type Task {
|
|
|
|
id: ID!
|
|
|
|
}
|
2024-07-16 20:58:06 +00:00
|
|
|
scalar UInt
|
2024-05-13 16:56:20 +00:00
|
|
|
scalar Upload
|