-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
115 lines (103 loc) · 2.14 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
type Query {
episodesRecentWatched: [Episode!]
episodeById(id: ID): Episode
seasonById(id: ID): Season
showsRecentAdded: [Show!]
moviesRecentAdded: [Movie!]
movieById(id: ID): Movie
showById(id: ID): Show
}
type Mutation {
createPlayQueueForShow(showId: ID!, episodeId: ID!): PlayQueue
createPlayQueueForMovie(movieId: ID!): PlayQueue
updatePlayQueue(id: ID!, progressInMilliseconds: Int!, playQueueItemId: ID!): Boolean
startTranscoding(playQueueId: ID!, mediaFileId: ID!, startTimeInSeconds: Int!, audioId: ID, subtitleId: ID): ID!
readyTranscoding(id: ID!): Boolean!
stopTranscoding(id: ID!): Boolean!
}
type Episode {
id: ID!
number: Int
show: Show
images: [Image!]
season: Season
metadata: [Metadata!]
watchStatus: [WatchStatus!]
mediaFile: [MediaFile!]
}
type Image {
id: ID!
path: String!
type: String!
language: String
sourceUri: String
show: Show
}
type MediaFile {
id: ID!
episodes: [Episode!]
path: String!
size: Float!
durationInMilliseconds: Int
mediaFileStreams: [MediaFileStream]
}
type MediaFileStream {
id: ID!
streamIndex: Int
codecName: String!
codecType: String!
width: Int!
height: Int!
path: String!
language: String
title: String
}
type Metadata {
id: ID!
sourceUri: String
language: String
title: String
description: String
}
type Movie {
id: ID!
name: String!
releaseYear: Int!
images: [Image!]
metadata: [Metadata!]
watchStatus: [WatchStatus!]
mediaFile: [MediaFile!]
}
type PlayQueue {
id: ID!
currentItem: String
playQueueItems: [PlayQueueItem!]
}
type PlayQueueItem {
id: ID!
itemId: String!
type: String!
}
type Season {
id: ID!
episodes: [Episode!]
show: Show!
number: Int!
}
type Show {
id: ID!
name: String!
releaseYear: Int!
episodes: [Episode!]
seasons: [Season!]
images: [Image!]
metadata: [Metadata!]
}
type WatchStatus {
id: ID!
playQueueItemId: String!
episode: Episode
movie: Movie
watched: Boolean!
progressInMilliseconds: Int!
}