@letsmoe/otter-sdk 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +184 -2
  2. package/package.json +40 -4
  3. package/src/aes-gcm.ts +189 -0
  4. package/src/client.ts +23 -0
  5. package/src/context.ts +74 -0
  6. package/src/definition.ts +81 -0
  7. package/src/errors.ts +61 -0
  8. package/src/extract.ts +134 -0
  9. package/src/generated/index.ts +79 -0
  10. package/src/generated/runtime/batcher.ts +275 -0
  11. package/src/generated/runtime/createClient.ts +68 -0
  12. package/src/generated/runtime/error.ts +29 -0
  13. package/src/generated/runtime/fetcher.ts +97 -0
  14. package/src/generated/runtime/generateGraphqlOperation.ts +225 -0
  15. package/src/generated/runtime/index.ts +13 -0
  16. package/src/generated/runtime/linkTypeMap.ts +156 -0
  17. package/src/generated/runtime/typeSelection.ts +95 -0
  18. package/src/generated/runtime/types.ts +69 -0
  19. package/src/generated/schema.graphql +657 -0
  20. package/src/generated/schema.ts +1338 -0
  21. package/src/generated/types.ts +1495 -0
  22. package/src/hosters/dead-link.ts +55 -0
  23. package/src/hosters/dood.ts +69 -0
  24. package/src/hosters/filemoon.ts +152 -0
  25. package/src/hosters/generic.ts +63 -0
  26. package/src/hosters/index.ts +14 -0
  27. package/src/hosters/recaptcha.ts +61 -0
  28. package/src/hosters/registry.ts +74 -0
  29. package/src/hosters/streamtape.ts +63 -0
  30. package/src/hosters/vidara.ts +48 -0
  31. package/src/hosters/vinovo.ts +55 -0
  32. package/src/hosters/voe-decoding.ts +131 -0
  33. package/src/hosters/voe-domains.ts +39 -0
  34. package/src/hosters/voe.ts +82 -0
  35. package/src/http-client.ts +295 -0
  36. package/src/http.ts +97 -0
  37. package/src/index.ts +9 -0
  38. package/src/languages.ts +73 -0
  39. package/src/match.ts +120 -0
  40. package/src/model.ts +110 -0
  41. package/src/packer.ts +106 -0
  42. package/src/plugin.ts +4 -0
  43. package/src/run.ts +74 -0
  44. package/src/runtime.ts +254 -0
  45. package/src/testing.ts +120 -0
  46. package/src/timing.ts +11 -0
  47. package/src/types.ts +122 -0
  48. package/src/url.ts +60 -0
@@ -0,0 +1,1338 @@
1
+ // @ts-nocheck
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ export type Scalars = {
7
+ ID: string,
8
+ Int: number,
9
+ String: string,
10
+ Float: number,
11
+ Boolean: boolean,
12
+ }
13
+
14
+ export type MediaType = 'MOVIE' | 'SERIES' | 'EPISODE'
15
+
16
+
17
+ /** A movie or a series. */
18
+ export interface Title {
19
+ id: Scalars['ID']
20
+ mediaType: MediaType
21
+ tmdbId: Scalars['Int']
22
+ imdbId: (Scalars['String'] | null)
23
+ title: Scalars['String']
24
+ originalTitle: (Scalars['String'] | null)
25
+ overview: (Scalars['String'] | null)
26
+ tagline: (Scalars['String'] | null)
27
+ /** Release date of a movie, first air date of a series. */
28
+ releaseDate: (Scalars['String'] | null)
29
+ year: (Scalars['Int'] | null)
30
+ /** Minutes; movies only. */
31
+ runtime: (Scalars['Int'] | null)
32
+ status: (Scalars['String'] | null)
33
+ voteAverage: Scalars['Float']
34
+ voteCount: Scalars['Int']
35
+ popularity: Scalars['Float']
36
+ posterPath: (Scalars['String'] | null)
37
+ backdropPath: (Scalars['String'] | null)
38
+ logoPath: (Scalars['String'] | null)
39
+ /** YouTube key of the trailer. */
40
+ trailerKey: (Scalars['String'] | null)
41
+ genres: Scalars['String'][]
42
+ keywords: Scalars['String'][]
43
+ /** False for titles only seen in lists; reading them through Query.title fetches the rest. */
44
+ detailFetched: Scalars['Boolean']
45
+ credits: Credit[]
46
+ /** TMDB recommendations first, then other work of the director and leads. */
47
+ related: Title[]
48
+ /** Series only. */
49
+ seasons: Season[]
50
+ /** Series only: regular seasons, without specials. 0 until the detail was fetched. */
51
+ seasonCount: Scalars['Int']
52
+ /** Movies only. Stored links; Subscription.streams finds new ones. */
53
+ streams: Stream[]
54
+ progress: (WatchProgress | null)
55
+ rating: (Scalars['Float'] | null)
56
+ inWatchlist: Scalars['Boolean']
57
+ __typename: 'Title'
58
+ }
59
+
60
+ export interface Season {
61
+ id: Scalars['ID']
62
+ seasonNumber: Scalars['Int']
63
+ name: (Scalars['String'] | null)
64
+ overview: (Scalars['String'] | null)
65
+ airDate: (Scalars['String'] | null)
66
+ posterPath: (Scalars['String'] | null)
67
+ episodeCount: Scalars['Int']
68
+ /** Fetched from TMDB on first read. */
69
+ episodes: Episode[]
70
+ __typename: 'Season'
71
+ }
72
+
73
+ export interface Episode {
74
+ id: Scalars['ID']
75
+ tmdbId: Scalars['Int']
76
+ seasonNumber: Scalars['Int']
77
+ episodeNumber: Scalars['Int']
78
+ name: (Scalars['String'] | null)
79
+ overview: (Scalars['String'] | null)
80
+ airDate: (Scalars['String'] | null)
81
+ runtime: (Scalars['Int'] | null)
82
+ stillPath: (Scalars['String'] | null)
83
+ voteAverage: Scalars['Float']
84
+ series: Title
85
+ streams: Stream[]
86
+ progress: (WatchProgress | null)
87
+ /** The episode after this one, crossing seasons. */
88
+ next: (Episode | null)
89
+ /** Parts viewers skip (intro, recap, credits, preview), from TheIntroDB; empty when nobody timed them. */
90
+ skipSegments: SkipSegment[]
91
+ __typename: 'Episode'
92
+ }
93
+
94
+
95
+ /** A skippable part of an episode. */
96
+ export interface SkipSegment {
97
+ /** intro, recap, credits or preview */
98
+ kind: Scalars['String']
99
+ startSeconds: Scalars['Float']
100
+ /** Null when it runs to the end. */
101
+ endSeconds: (Scalars['Float'] | null)
102
+ __typename: 'SkipSegment'
103
+ }
104
+
105
+ export interface Person {
106
+ id: Scalars['ID']
107
+ tmdbId: Scalars['Int']
108
+ name: Scalars['String']
109
+ profilePath: (Scalars['String'] | null)
110
+ biography: (Scalars['String'] | null)
111
+ birthday: (Scalars['String'] | null)
112
+ deathday: (Scalars['String'] | null)
113
+ placeOfBirth: (Scalars['String'] | null)
114
+ knownForDepartment: (Scalars['String'] | null)
115
+ /** Titles the person is credited on, newest first; job (e.g. "Director") keeps only those crew credits. */
116
+ filmography: Title[]
117
+ /** Actors who appear most often alongside this person in their best-known roles. */
118
+ coStars: CoStar[]
119
+ /** This person's titles that fit the profile's taste best, without disliked or finished ones. */
120
+ recommendedFor: Title[]
121
+ __typename: 'Person'
122
+ }
123
+
124
+ export interface CoStar {
125
+ person: Person
126
+ /** How many of this person's titles they share. */
127
+ sharedTitles: Scalars['Int']
128
+ __typename: 'CoStar'
129
+ }
130
+
131
+ export interface Credit {
132
+ person: Person
133
+ /** cast or crew */
134
+ role: Scalars['String']
135
+ job: (Scalars['String'] | null)
136
+ character: (Scalars['String'] | null)
137
+ order: Scalars['Int']
138
+ __typename: 'Credit'
139
+ }
140
+
141
+ export interface Stream {
142
+ id: Scalars['ID']
143
+ plugin: Scalars['String']
144
+ url: Scalars['String']
145
+ label: (Scalars['String'] | null)
146
+ quality: (Scalars['String'] | null)
147
+ language: (Scalars['String'] | null)
148
+ format: (Scalars['String'] | null)
149
+ sizeBytes: (Scalars['Float'] | null)
150
+ speedBps: (Scalars['Float'] | null)
151
+ /** Null until someone tried to play it. */
152
+ playable: (Scalars['Boolean'] | null)
153
+ foundAt: Scalars['String']
154
+ __typename: 'Stream'
155
+ }
156
+
157
+ export interface StreamUpdate {
158
+ streams: Stream[]
159
+ /** True on the last update of a lookup. */
160
+ done: Scalars['Boolean']
161
+ __typename: 'StreamUpdate'
162
+ }
163
+
164
+ export interface ResolvedStream {
165
+ /** Playable URL, proxied through the backend when the host needs headers. */
166
+ url: Scalars['String']
167
+ mimeType: Scalars['String']
168
+ quality: (Scalars['String'] | null)
169
+ /** The stored link this was resolved from. */
170
+ streamId: (Scalars['ID'] | null)
171
+ __typename: 'ResolvedStream'
172
+ }
173
+
174
+ export interface WatchProgress {
175
+ mediaId: Scalars['ID']
176
+ progressSeconds: Scalars['Float']
177
+ durationSeconds: Scalars['Float']
178
+ completed: Scalars['Boolean']
179
+ updatedAt: Scalars['String']
180
+ __typename: 'WatchProgress'
181
+ }
182
+
183
+ export interface ContinueItem {
184
+ title: Title
185
+ /** For series: the episode to continue or the next one. */
186
+ episode: (Episode | null)
187
+ progress: (WatchProgress | null)
188
+ __typename: 'ContinueItem'
189
+ }
190
+
191
+ export interface HistoryEntry {
192
+ title: Title
193
+ episode: (Episode | null)
194
+ progress: WatchProgress
195
+ __typename: 'HistoryEntry'
196
+ }
197
+
198
+ export interface Recommendation {
199
+ title: Title
200
+ /** Why, e.g. "Because you watched Heat". */
201
+ reason: Scalars['String']
202
+ source: Scalars['String']
203
+ score: Scalars['Float']
204
+ __typename: 'Recommendation'
205
+ }
206
+
207
+
208
+ /** Titles featuring the lead actor of a title the profile rated well. */
209
+ export interface MoreWithRow {
210
+ person: Person
211
+ becauseOf: Title
212
+ items: Title[]
213
+ __typename: 'MoreWithRow'
214
+ }
215
+
216
+ export interface RecommendationRow {
217
+ key: Scalars['String']
218
+ title: Scalars['String']
219
+ items: Title[]
220
+ __typename: 'RecommendationRow'
221
+ }
222
+
223
+ export interface Profile {
224
+ id: Scalars['ID']
225
+ name: Scalars['String']
226
+ avatarUrl: (Scalars['String'] | null)
227
+ hasPin: Scalars['Boolean']
228
+ isChild: Scalars['Boolean']
229
+ /** Audio languages, most preferred first (ISO 639-1, e.g. de, en). Links in these languages are tried first, dubs before subs. */
230
+ languages: Scalars['String'][]
231
+ /** Show captions by default */
232
+ subtitlesEnabled: Scalars['Boolean']
233
+ /** Preferred caption language (ISO 639-1); null = the profile's first language */
234
+ subtitleLanguage: (Scalars['String'] | null)
235
+ subtitleSize: SubtitleSize
236
+ /** Boost dialogue over music and effects */
237
+ voiceBoost: Scalars['Boolean']
238
+ __typename: 'Profile'
239
+ }
240
+
241
+
242
+ /** An external subtitle file for a movie or episode, found by a subtitles plugin. */
243
+ export interface Subtitle {
244
+ id: Scalars['ID']
245
+ /** ISO 639-1, e.g. de, en */
246
+ language: Scalars['String']
247
+ /** Display label, e.g. 'Deutsch' or 'English (SDH)' */
248
+ label: Scalars['String']
249
+ /** Release name the file was made for, when the source says */
250
+ release: (Scalars['String'] | null)
251
+ hearingImpaired: Scalars['Boolean']
252
+ /** Plugin that found it */
253
+ source: Scalars['String']
254
+ /** Path on the backend, e.g. /api/subtitles/<id>.vtt; clients prefix their backend origin */
255
+ vttUrl: Scalars['String']
256
+ /** Same file as SRT (for DLNA TVs), /api/subtitles/<id>.srt */
257
+ srtUrl: Scalars['String']
258
+ __typename: 'Subtitle'
259
+ }
260
+
261
+ export type SubtitleSize = 'SMALL' | 'MEDIUM' | 'LARGE'
262
+
263
+ export interface PinCheck {
264
+ success: Scalars['Boolean']
265
+ /** After a failure, seconds until the next attempt is allowed. */
266
+ waitSeconds: Scalars['Int']
267
+ __typename: 'PinCheck'
268
+ }
269
+
270
+ export type TmdbKeyStatus = 'OK' | 'MISSING' | 'INVALID'
271
+
272
+ export interface Settings {
273
+ /** The user's own key; empty while the built-in one is used. */
274
+ tmdbApiKey: Scalars['String']
275
+ tmdbLanguage: Scalars['String']
276
+ tmdbKeyStatus: TmdbKeyStatus
277
+ usesDefaultTmdbKey: Scalars['Boolean']
278
+ /** Whether this build has a built-in key to fall back to (in use or not). */
279
+ hasDefaultTmdbKey: Scalars['Boolean']
280
+ /** Whether the first-run TMDB key dialog was answered. */
281
+ tmdbKeyPromptSeen: Scalars['Boolean']
282
+ requireVpn: Scalars['Boolean']
283
+ disabledPlugins: Scalars['String'][]
284
+ __typename: 'Settings'
285
+ }
286
+
287
+ export interface PluginSettingField {
288
+ key: Scalars['String']
289
+ label: Scalars['String']
290
+ description: (Scalars['String'] | null)
291
+ type: Scalars['String']
292
+ required: Scalars['Boolean']
293
+ default: (Scalars['String'] | null)
294
+ value: (Scalars['String'] | null)
295
+ __typename: 'PluginSettingField'
296
+ }
297
+
298
+ export interface Plugin {
299
+ name: Scalars['String']
300
+ displayName: (Scalars['String'] | null)
301
+ description: (Scalars['String'] | null)
302
+ icon: (Scalars['String'] | null)
303
+ version: Scalars['String']
304
+ capabilities: Scalars['String'][]
305
+ enabled: Scalars['Boolean']
306
+ /** False when the plugin needs something missing here (e.g. FlareSolverr). */
307
+ available: Scalars['Boolean']
308
+ settings: PluginSettingField[]
309
+ __typename: 'Plugin'
310
+ }
311
+
312
+ export interface Status {
313
+ tmdbConfigured: Scalars['Boolean']
314
+ vpnConnected: Scalars['Boolean']
315
+ requireVpn: Scalars['Boolean']
316
+ __typename: 'Status'
317
+ }
318
+
319
+ export type NotificationKind = 'AVAILABLE' | 'NEW_EPISODE' | 'COMING_SOON'
320
+
321
+ export interface Notification {
322
+ id: Scalars['ID']
323
+ kind: NotificationKind
324
+ /** E.g. "Now available", "Coming 11 February". */
325
+ heading: Scalars['String']
326
+ body: (Scalars['String'] | null)
327
+ createdAt: Scalars['String']
328
+ read: Scalars['Boolean']
329
+ /** The movie or series. */
330
+ title: Title
331
+ /** Set when the notification is about one episode. */
332
+ episode: (Episode | null)
333
+ __typename: 'Notification'
334
+ }
335
+
336
+ export type DownloadStatus = 'QUEUED' | 'DOWNLOADING' | 'DONE' | 'FAILED'
337
+
338
+
339
+ /** A movie or episode saved for offline playback. */
340
+ export interface Download {
341
+ id: Scalars['ID']
342
+ status: DownloadStatus
343
+ /** 0..1 */
344
+ progress: Scalars['Float']
345
+ /** Bytes received so far (the full size once done). */
346
+ sizeBytes: Scalars['Float']
347
+ error: (Scalars['String'] | null)
348
+ createdAt: Scalars['String']
349
+ /** The movie, or the episode's series. */
350
+ title: Title
351
+ episode: (Episode | null)
352
+ /** Local playable URL once done. */
353
+ url: (Scalars['String'] | null)
354
+ mimeType: (Scalars['String'] | null)
355
+ __typename: 'Download'
356
+ }
357
+
358
+ export type TogetherStatus = 'WAITING' | 'CONNECTING' | 'CONNECTED' | 'CLOSED' | 'FAILED'
359
+
360
+
361
+ /** Someone in a Watch Together room. */
362
+ export interface TogetherPeer {
363
+ id: Scalars['ID']
364
+ name: Scalars['String']
365
+ /** The profile's avatar (e.g. otter:classic). */
366
+ avatar: (Scalars['String'] | null)
367
+ __typename: 'TogetherPeer'
368
+ }
369
+
370
+
371
+ /** A Watch Together room: peers meet over Nostr relays, then sync peer-to-peer. */
372
+ export interface TogetherRoom {
373
+ /** Eight characters; share it so others can join. */
374
+ code: Scalars['String']
375
+ hosting: Scalars['Boolean']
376
+ status: TogetherStatus
377
+ self: TogetherPeer
378
+ /** Everyone connected, including self. */
379
+ peers: TogetherPeer[]
380
+ __typename: 'TogetherRoom'
381
+ }
382
+
383
+
384
+ /** An app payload (JSON) from another participant. */
385
+ export interface TogetherMessage {
386
+ from: TogetherPeer
387
+ payload: Scalars['String']
388
+ __typename: 'TogetherMessage'
389
+ }
390
+
391
+ export interface TogetherUpdate {
392
+ /** Null when there is no room. */
393
+ room: (TogetherRoom | null)
394
+ message: (TogetherMessage | null)
395
+ __typename: 'TogetherUpdate'
396
+ }
397
+
398
+ export type CatalogSort = 'POPULAR' | 'TOP_RATED'
399
+
400
+
401
+ /** Curated discover rows. Blockbusters are movies only, bingeworthy is series only; the others work for both. */
402
+ export type CatalogTheme = 'HIDDEN_GEMS' | 'BLOCKBUSTERS' | 'FEEL_GOOD' | 'BINGEWORTHY'
403
+
404
+ export interface CatalogRow {
405
+ genre: Scalars['String']
406
+ items: Title[]
407
+ __typename: 'CatalogRow'
408
+ }
409
+
410
+ export interface Query {
411
+ /** A movie or series, fetched from TMDB when missing or stale. */
412
+ title: (Title | null)
413
+ episode: (Episode | null)
414
+ /** A person with biography and filmography, fetched when missing or stale. */
415
+ person: (Person | null)
416
+ /** TMDB search; results are stored as titles. */
417
+ search: Title[]
418
+ trending: Title[]
419
+ /** Upcoming releases (soonest first), then recent ones (newest first). Series: currently airing. */
420
+ newAndComingSoon: Title[]
421
+ /** Lead actors of the profile's most recently watched titles of one type, the most frequent first; empty before any history. */
422
+ watchedActors: Person[]
423
+ /** More titles with the lead actor of the profile's latest well-rated title; null before any good rating. */
424
+ moreWith: (MoreWithRow | null)
425
+ /** Stored titles of one type, most popular first. */
426
+ browse: Title[]
427
+ genres: Scalars['String'][]
428
+ /** Popular or top-rated titles straight from TMDB's catalog (stored as titles), to fill Home before the profile has history. */
429
+ catalog: Title[]
430
+ /** One themed row of TMDB's catalog (stored as titles); empty when the theme doesn't fit the media type. */
431
+ catalogTheme: Title[]
432
+ /** Up to count genre rows of popular TMDB titles, skipping the genre names in exclude. */
433
+ catalogRows: CatalogRow[]
434
+ recommendations: Recommendation[]
435
+ recommendationRows: RecommendationRow[]
436
+ continueWatching: ContinueItem[]
437
+ history: HistoryEntry[]
438
+ watchlist: Title[]
439
+ /** Titles the profile rated well (I like this, Love this), latest rating first. */
440
+ likedTitles: Title[]
441
+ /** Newest first. */
442
+ notifications: Notification[]
443
+ unreadNotificationCount: Scalars['Int']
444
+ /** Newest first. */
445
+ downloads: Download[]
446
+ /** Folder finished downloads are saved to as named video files; null when they are not. */
447
+ downloadsFolder: (Scalars['String'] | null)
448
+ /** The open Watch Together room, if any. */
449
+ togetherRoom: (TogetherRoom | null)
450
+ /** Subtitle files for a movie or episode (same id as streams/findStreams), best first. Ranked by the profile's caption language, then its other languages; at most 3 per language. Asks subtitles plugins when nothing fresh is stored. */
451
+ subtitles: Subtitle[]
452
+ profiles: Profile[]
453
+ settings: Settings
454
+ /** Whether TMDB accepts the key; errors when TMDB can't be reached. */
455
+ checkTmdbKey: Scalars['Boolean']
456
+ plugins: Plugin[]
457
+ status: Status
458
+ __typename: 'Query'
459
+ }
460
+
461
+ export interface Mutation {
462
+ /** Ask every streams plugin again for a movie or episode, in the background. */
463
+ findStreams: Scalars['Boolean']
464
+ /** Turn a stored stream into a playable URL; only succeeds when the link really delivers video. */
465
+ resolveStream: ResolvedStream
466
+ /** Resolves several links at once (most preferred first) and returns the fastest that really delivers video. Fails only when none plays. */
467
+ resolveBestStream: ResolvedStream
468
+ recordProgress: WatchProgress
469
+ setRating: Scalars['Boolean']
470
+ clearRating: Scalars['Boolean']
471
+ addToWatchlist: Scalars['Boolean']
472
+ removeFromWatchlist: Scalars['Boolean']
473
+ markNotificationsRead: Scalars['Boolean']
474
+ /** Queue a movie or episode for download; a failed one is retried. streamId picks the link, otherwise the best ones are tried. */
475
+ startDownload: Download
476
+ /** Remove a download (stops it when running). */
477
+ deleteDownload: Scalars['Boolean']
478
+ /** Open the downloads folder in the file manager of the machine the backend runs on. */
479
+ openDownloadsFolder: Scalars['Boolean']
480
+ /** Open a Watch Together room as the profile; replaces any open room. */
481
+ hostTogether: TogetherRoom
482
+ /** Join a room by its code as the profile; replaces any open room. */
483
+ joinTogether: TogetherRoom
484
+ leaveTogether: Scalars['Boolean']
485
+ /** Store a link another Watch Together participant plays, so it can be resolved here. */
486
+ adoptStream: Stream
487
+ /** Send a JSON payload to everyone else in the room. */
488
+ sendTogether: Scalars['Boolean']
489
+ createProfile: Profile
490
+ /** Changes the given fields; omitted fields stay. An empty pin removes the PIN; an empty subtitleLanguage clears it. */
491
+ updateProfile: Profile
492
+ deleteProfile: Scalars['Boolean']
493
+ verifyPin: PinCheck
494
+ updateSettings: Settings
495
+ setPluginEnabled: Plugin
496
+ setPluginSettings: Plugin
497
+ __typename: 'Mutation'
498
+ }
499
+
500
+ export interface Subscription {
501
+ /** Stream list of a movie or episode as plugins answer. Starts a lookup when the stored links are stale. */
502
+ streams: StreamUpdate
503
+ /** The Watch Together room as it changes, and messages from the others. */
504
+ together: TogetherUpdate
505
+ __typename: 'Subscription'
506
+ }
507
+
508
+
509
+ /** A movie or a series. */
510
+ export interface TitleGenqlSelection{
511
+ id?: boolean | number
512
+ mediaType?: boolean | number
513
+ tmdbId?: boolean | number
514
+ imdbId?: boolean | number
515
+ title?: boolean | number
516
+ originalTitle?: boolean | number
517
+ overview?: boolean | number
518
+ tagline?: boolean | number
519
+ /** Release date of a movie, first air date of a series. */
520
+ releaseDate?: boolean | number
521
+ year?: boolean | number
522
+ /** Minutes; movies only. */
523
+ runtime?: boolean | number
524
+ status?: boolean | number
525
+ voteAverage?: boolean | number
526
+ voteCount?: boolean | number
527
+ popularity?: boolean | number
528
+ posterPath?: boolean | number
529
+ backdropPath?: boolean | number
530
+ logoPath?: boolean | number
531
+ /** YouTube key of the trailer. */
532
+ trailerKey?: boolean | number
533
+ genres?: boolean | number
534
+ keywords?: boolean | number
535
+ /** False for titles only seen in lists; reading them through Query.title fetches the rest. */
536
+ detailFetched?: boolean | number
537
+ credits?: CreditGenqlSelection
538
+ /** TMDB recommendations first, then other work of the director and leads. */
539
+ related?: (TitleGenqlSelection & { __args?: {limit?: (Scalars['Int'] | null)} })
540
+ /** Series only. */
541
+ seasons?: SeasonGenqlSelection
542
+ /** Series only: regular seasons, without specials. 0 until the detail was fetched. */
543
+ seasonCount?: boolean | number
544
+ /** Movies only. Stored links; Subscription.streams finds new ones. */
545
+ streams?: StreamGenqlSelection
546
+ progress?: (WatchProgressGenqlSelection & { __args: {profileId: Scalars['ID']} })
547
+ rating?: { __args: {profileId: Scalars['ID']} }
548
+ inWatchlist?: { __args: {profileId: Scalars['ID']} }
549
+ __typename?: boolean | number
550
+ __scalar?: boolean | number
551
+ }
552
+
553
+ export interface SeasonGenqlSelection{
554
+ id?: boolean | number
555
+ seasonNumber?: boolean | number
556
+ name?: boolean | number
557
+ overview?: boolean | number
558
+ airDate?: boolean | number
559
+ posterPath?: boolean | number
560
+ episodeCount?: boolean | number
561
+ /** Fetched from TMDB on first read. */
562
+ episodes?: EpisodeGenqlSelection
563
+ __typename?: boolean | number
564
+ __scalar?: boolean | number
565
+ }
566
+
567
+ export interface EpisodeGenqlSelection{
568
+ id?: boolean | number
569
+ tmdbId?: boolean | number
570
+ seasonNumber?: boolean | number
571
+ episodeNumber?: boolean | number
572
+ name?: boolean | number
573
+ overview?: boolean | number
574
+ airDate?: boolean | number
575
+ runtime?: boolean | number
576
+ stillPath?: boolean | number
577
+ voteAverage?: boolean | number
578
+ series?: TitleGenqlSelection
579
+ streams?: StreamGenqlSelection
580
+ progress?: (WatchProgressGenqlSelection & { __args: {profileId: Scalars['ID']} })
581
+ /** The episode after this one, crossing seasons. */
582
+ next?: EpisodeGenqlSelection
583
+ /** Parts viewers skip (intro, recap, credits, preview), from TheIntroDB; empty when nobody timed them. */
584
+ skipSegments?: SkipSegmentGenqlSelection
585
+ __typename?: boolean | number
586
+ __scalar?: boolean | number
587
+ }
588
+
589
+
590
+ /** A skippable part of an episode. */
591
+ export interface SkipSegmentGenqlSelection{
592
+ /** intro, recap, credits or preview */
593
+ kind?: boolean | number
594
+ startSeconds?: boolean | number
595
+ /** Null when it runs to the end. */
596
+ endSeconds?: boolean | number
597
+ __typename?: boolean | number
598
+ __scalar?: boolean | number
599
+ }
600
+
601
+ export interface PersonGenqlSelection{
602
+ id?: boolean | number
603
+ tmdbId?: boolean | number
604
+ name?: boolean | number
605
+ profilePath?: boolean | number
606
+ biography?: boolean | number
607
+ birthday?: boolean | number
608
+ deathday?: boolean | number
609
+ placeOfBirth?: boolean | number
610
+ knownForDepartment?: boolean | number
611
+ /** Titles the person is credited on, newest first; job (e.g. "Director") keeps only those crew credits. */
612
+ filmography?: (TitleGenqlSelection & { __args?: {job?: (Scalars['String'] | null)} })
613
+ /** Actors who appear most often alongside this person in their best-known roles. */
614
+ coStars?: (CoStarGenqlSelection & { __args?: {limit?: (Scalars['Int'] | null)} })
615
+ /** This person's titles that fit the profile's taste best, without disliked or finished ones. */
616
+ recommendedFor?: (TitleGenqlSelection & { __args: {profileId: Scalars['ID'], limit?: (Scalars['Int'] | null)} })
617
+ __typename?: boolean | number
618
+ __scalar?: boolean | number
619
+ }
620
+
621
+ export interface CoStarGenqlSelection{
622
+ person?: PersonGenqlSelection
623
+ /** How many of this person's titles they share. */
624
+ sharedTitles?: boolean | number
625
+ __typename?: boolean | number
626
+ __scalar?: boolean | number
627
+ }
628
+
629
+ export interface CreditGenqlSelection{
630
+ person?: PersonGenqlSelection
631
+ /** cast or crew */
632
+ role?: boolean | number
633
+ job?: boolean | number
634
+ character?: boolean | number
635
+ order?: boolean | number
636
+ __typename?: boolean | number
637
+ __scalar?: boolean | number
638
+ }
639
+
640
+ export interface StreamGenqlSelection{
641
+ id?: boolean | number
642
+ plugin?: boolean | number
643
+ url?: boolean | number
644
+ label?: boolean | number
645
+ quality?: boolean | number
646
+ language?: boolean | number
647
+ format?: boolean | number
648
+ sizeBytes?: boolean | number
649
+ speedBps?: boolean | number
650
+ /** Null until someone tried to play it. */
651
+ playable?: boolean | number
652
+ foundAt?: boolean | number
653
+ __typename?: boolean | number
654
+ __scalar?: boolean | number
655
+ }
656
+
657
+ export interface StreamUpdateGenqlSelection{
658
+ streams?: StreamGenqlSelection
659
+ /** True on the last update of a lookup. */
660
+ done?: boolean | number
661
+ __typename?: boolean | number
662
+ __scalar?: boolean | number
663
+ }
664
+
665
+ export interface ResolvedStreamGenqlSelection{
666
+ /** Playable URL, proxied through the backend when the host needs headers. */
667
+ url?: boolean | number
668
+ mimeType?: boolean | number
669
+ quality?: boolean | number
670
+ /** The stored link this was resolved from. */
671
+ streamId?: boolean | number
672
+ __typename?: boolean | number
673
+ __scalar?: boolean | number
674
+ }
675
+
676
+ export interface WatchProgressGenqlSelection{
677
+ mediaId?: boolean | number
678
+ progressSeconds?: boolean | number
679
+ durationSeconds?: boolean | number
680
+ completed?: boolean | number
681
+ updatedAt?: boolean | number
682
+ __typename?: boolean | number
683
+ __scalar?: boolean | number
684
+ }
685
+
686
+ export interface ContinueItemGenqlSelection{
687
+ title?: TitleGenqlSelection
688
+ /** For series: the episode to continue or the next one. */
689
+ episode?: EpisodeGenqlSelection
690
+ progress?: WatchProgressGenqlSelection
691
+ __typename?: boolean | number
692
+ __scalar?: boolean | number
693
+ }
694
+
695
+ export interface HistoryEntryGenqlSelection{
696
+ title?: TitleGenqlSelection
697
+ episode?: EpisodeGenqlSelection
698
+ progress?: WatchProgressGenqlSelection
699
+ __typename?: boolean | number
700
+ __scalar?: boolean | number
701
+ }
702
+
703
+ export interface RecommendationGenqlSelection{
704
+ title?: TitleGenqlSelection
705
+ /** Why, e.g. "Because you watched Heat". */
706
+ reason?: boolean | number
707
+ source?: boolean | number
708
+ score?: boolean | number
709
+ __typename?: boolean | number
710
+ __scalar?: boolean | number
711
+ }
712
+
713
+
714
+ /** Narrows search results; omitted fields don't filter. Runtime is in minutes. */
715
+ export interface TitleFilter {minRating?: (Scalars['Float'] | null),minRuntime?: (Scalars['Int'] | null),maxRuntime?: (Scalars['Int'] | null),minSeasons?: (Scalars['Int'] | null),maxSeasons?: (Scalars['Int'] | null)}
716
+
717
+
718
+ /** Titles featuring the lead actor of a title the profile rated well. */
719
+ export interface MoreWithRowGenqlSelection{
720
+ person?: PersonGenqlSelection
721
+ becauseOf?: TitleGenqlSelection
722
+ items?: TitleGenqlSelection
723
+ __typename?: boolean | number
724
+ __scalar?: boolean | number
725
+ }
726
+
727
+ export interface RecommendationRowGenqlSelection{
728
+ key?: boolean | number
729
+ title?: boolean | number
730
+ items?: TitleGenqlSelection
731
+ __typename?: boolean | number
732
+ __scalar?: boolean | number
733
+ }
734
+
735
+ export interface ProfileGenqlSelection{
736
+ id?: boolean | number
737
+ name?: boolean | number
738
+ avatarUrl?: boolean | number
739
+ hasPin?: boolean | number
740
+ isChild?: boolean | number
741
+ /** Audio languages, most preferred first (ISO 639-1, e.g. de, en). Links in these languages are tried first, dubs before subs. */
742
+ languages?: boolean | number
743
+ /** Show captions by default */
744
+ subtitlesEnabled?: boolean | number
745
+ /** Preferred caption language (ISO 639-1); null = the profile's first language */
746
+ subtitleLanguage?: boolean | number
747
+ subtitleSize?: boolean | number
748
+ /** Boost dialogue over music and effects */
749
+ voiceBoost?: boolean | number
750
+ __typename?: boolean | number
751
+ __scalar?: boolean | number
752
+ }
753
+
754
+
755
+ /** An external subtitle file for a movie or episode, found by a subtitles plugin. */
756
+ export interface SubtitleGenqlSelection{
757
+ id?: boolean | number
758
+ /** ISO 639-1, e.g. de, en */
759
+ language?: boolean | number
760
+ /** Display label, e.g. 'Deutsch' or 'English (SDH)' */
761
+ label?: boolean | number
762
+ /** Release name the file was made for, when the source says */
763
+ release?: boolean | number
764
+ hearingImpaired?: boolean | number
765
+ /** Plugin that found it */
766
+ source?: boolean | number
767
+ /** Path on the backend, e.g. /api/subtitles/<id>.vtt; clients prefix their backend origin */
768
+ vttUrl?: boolean | number
769
+ /** Same file as SRT (for DLNA TVs), /api/subtitles/<id>.srt */
770
+ srtUrl?: boolean | number
771
+ __typename?: boolean | number
772
+ __scalar?: boolean | number
773
+ }
774
+
775
+ export interface PinCheckGenqlSelection{
776
+ success?: boolean | number
777
+ /** After a failure, seconds until the next attempt is allowed. */
778
+ waitSeconds?: boolean | number
779
+ __typename?: boolean | number
780
+ __scalar?: boolean | number
781
+ }
782
+
783
+ export interface SettingsGenqlSelection{
784
+ /** The user's own key; empty while the built-in one is used. */
785
+ tmdbApiKey?: boolean | number
786
+ tmdbLanguage?: boolean | number
787
+ tmdbKeyStatus?: boolean | number
788
+ usesDefaultTmdbKey?: boolean | number
789
+ /** Whether this build has a built-in key to fall back to (in use or not). */
790
+ hasDefaultTmdbKey?: boolean | number
791
+ /** Whether the first-run TMDB key dialog was answered. */
792
+ tmdbKeyPromptSeen?: boolean | number
793
+ requireVpn?: boolean | number
794
+ disabledPlugins?: boolean | number
795
+ __typename?: boolean | number
796
+ __scalar?: boolean | number
797
+ }
798
+
799
+ export interface SettingsInput {tmdbApiKey?: (Scalars['String'] | null),tmdbLanguage?: (Scalars['String'] | null),tmdbKeyPromptSeen?: (Scalars['Boolean'] | null),requireVpn?: (Scalars['Boolean'] | null)}
800
+
801
+ export interface PluginSettingFieldGenqlSelection{
802
+ key?: boolean | number
803
+ label?: boolean | number
804
+ description?: boolean | number
805
+ type?: boolean | number
806
+ required?: boolean | number
807
+ default?: boolean | number
808
+ value?: boolean | number
809
+ __typename?: boolean | number
810
+ __scalar?: boolean | number
811
+ }
812
+
813
+ export interface PluginSettingInput {key: Scalars['String'],value: Scalars['String']}
814
+
815
+ export interface PluginGenqlSelection{
816
+ name?: boolean | number
817
+ displayName?: boolean | number
818
+ description?: boolean | number
819
+ icon?: boolean | number
820
+ version?: boolean | number
821
+ capabilities?: boolean | number
822
+ enabled?: boolean | number
823
+ /** False when the plugin needs something missing here (e.g. FlareSolverr). */
824
+ available?: boolean | number
825
+ settings?: PluginSettingFieldGenqlSelection
826
+ __typename?: boolean | number
827
+ __scalar?: boolean | number
828
+ }
829
+
830
+ export interface StatusGenqlSelection{
831
+ tmdbConfigured?: boolean | number
832
+ vpnConnected?: boolean | number
833
+ requireVpn?: boolean | number
834
+ __typename?: boolean | number
835
+ __scalar?: boolean | number
836
+ }
837
+
838
+ export interface NotificationGenqlSelection{
839
+ id?: boolean | number
840
+ kind?: boolean | number
841
+ /** E.g. "Now available", "Coming 11 February". */
842
+ heading?: boolean | number
843
+ body?: boolean | number
844
+ createdAt?: boolean | number
845
+ read?: boolean | number
846
+ /** The movie or series. */
847
+ title?: TitleGenqlSelection
848
+ /** Set when the notification is about one episode. */
849
+ episode?: EpisodeGenqlSelection
850
+ __typename?: boolean | number
851
+ __scalar?: boolean | number
852
+ }
853
+
854
+
855
+ /** A movie or episode saved for offline playback. */
856
+ export interface DownloadGenqlSelection{
857
+ id?: boolean | number
858
+ status?: boolean | number
859
+ /** 0..1 */
860
+ progress?: boolean | number
861
+ /** Bytes received so far (the full size once done). */
862
+ sizeBytes?: boolean | number
863
+ error?: boolean | number
864
+ createdAt?: boolean | number
865
+ /** The movie, or the episode's series. */
866
+ title?: TitleGenqlSelection
867
+ episode?: EpisodeGenqlSelection
868
+ /** Local playable URL once done. */
869
+ url?: boolean | number
870
+ mimeType?: boolean | number
871
+ __typename?: boolean | number
872
+ __scalar?: boolean | number
873
+ }
874
+
875
+
876
+ /** Someone in a Watch Together room. */
877
+ export interface TogetherPeerGenqlSelection{
878
+ id?: boolean | number
879
+ name?: boolean | number
880
+ /** The profile's avatar (e.g. otter:classic). */
881
+ avatar?: boolean | number
882
+ __typename?: boolean | number
883
+ __scalar?: boolean | number
884
+ }
885
+
886
+
887
+ /** A Watch Together room: peers meet over Nostr relays, then sync peer-to-peer. */
888
+ export interface TogetherRoomGenqlSelection{
889
+ /** Eight characters; share it so others can join. */
890
+ code?: boolean | number
891
+ hosting?: boolean | number
892
+ status?: boolean | number
893
+ self?: TogetherPeerGenqlSelection
894
+ /** Everyone connected, including self. */
895
+ peers?: TogetherPeerGenqlSelection
896
+ __typename?: boolean | number
897
+ __scalar?: boolean | number
898
+ }
899
+
900
+
901
+ /** An app payload (JSON) from another participant. */
902
+ export interface TogetherMessageGenqlSelection{
903
+ from?: TogetherPeerGenqlSelection
904
+ payload?: boolean | number
905
+ __typename?: boolean | number
906
+ __scalar?: boolean | number
907
+ }
908
+
909
+ export interface TogetherUpdateGenqlSelection{
910
+ /** Null when there is no room. */
911
+ room?: TogetherRoomGenqlSelection
912
+ message?: TogetherMessageGenqlSelection
913
+ __typename?: boolean | number
914
+ __scalar?: boolean | number
915
+ }
916
+
917
+ export interface CatalogRowGenqlSelection{
918
+ genre?: boolean | number
919
+ items?: TitleGenqlSelection
920
+ __typename?: boolean | number
921
+ __scalar?: boolean | number
922
+ }
923
+
924
+ export interface QueryGenqlSelection{
925
+ /** A movie or series, fetched from TMDB when missing or stale. */
926
+ title?: (TitleGenqlSelection & { __args: {id: Scalars['ID']} })
927
+ episode?: (EpisodeGenqlSelection & { __args: {id: Scalars['ID']} })
928
+ /** A person with biography and filmography, fetched when missing or stale. */
929
+ person?: (PersonGenqlSelection & { __args: {id: Scalars['ID']} })
930
+ /** TMDB search; results are stored as titles. */
931
+ search?: (TitleGenqlSelection & { __args: {query: Scalars['String'], mediaType?: (MediaType | null), limit?: (Scalars['Int'] | null), filter?: (TitleFilter | null)} })
932
+ trending?: (TitleGenqlSelection & { __args?: {mediaType?: (MediaType | null)} })
933
+ /** Upcoming releases (soonest first), then recent ones (newest first). Series: currently airing. */
934
+ newAndComingSoon?: (TitleGenqlSelection & { __args: {mediaType: MediaType} })
935
+ /** Lead actors of the profile's most recently watched titles of one type, the most frequent first; empty before any history. */
936
+ watchedActors?: (PersonGenqlSelection & { __args: {profileId: Scalars['ID'], mediaType: MediaType, limit?: (Scalars['Int'] | null)} })
937
+ /** More titles with the lead actor of the profile's latest well-rated title; null before any good rating. */
938
+ moreWith?: (MoreWithRowGenqlSelection & { __args: {profileId: Scalars['ID'], mediaType: MediaType} })
939
+ /** Stored titles of one type, most popular first. */
940
+ browse?: (TitleGenqlSelection & { __args: {mediaType: MediaType, genre?: (Scalars['String'] | null), limit?: (Scalars['Int'] | null), offset?: (Scalars['Int'] | null)} })
941
+ genres?: boolean | number
942
+ /** Popular or top-rated titles straight from TMDB's catalog (stored as titles), to fill Home before the profile has history. */
943
+ catalog?: (TitleGenqlSelection & { __args: {mediaType: MediaType, sort?: (CatalogSort | null)} })
944
+ /** One themed row of TMDB's catalog (stored as titles); empty when the theme doesn't fit the media type. */
945
+ catalogTheme?: (TitleGenqlSelection & { __args: {mediaType: MediaType, theme: CatalogTheme} })
946
+ /** Up to count genre rows of popular TMDB titles, skipping the genre names in exclude. */
947
+ catalogRows?: (CatalogRowGenqlSelection & { __args: {mediaType: MediaType, count?: (Scalars['Int'] | null), exclude?: (Scalars['String'][] | null)} })
948
+ recommendations?: (RecommendationGenqlSelection & { __args: {profileId: Scalars['ID'], mediaType?: (MediaType | null), limit?: (Scalars['Int'] | null), offset?: (Scalars['Int'] | null), refresh?: (Scalars['Boolean'] | null)} })
949
+ recommendationRows?: (RecommendationRowGenqlSelection & { __args: {profileId: Scalars['ID'], rows?: (Scalars['Int'] | null), perRow?: (Scalars['Int'] | null)} })
950
+ continueWatching?: (ContinueItemGenqlSelection & { __args: {profileId: Scalars['ID'], limit?: (Scalars['Int'] | null)} })
951
+ history?: (HistoryEntryGenqlSelection & { __args: {profileId: Scalars['ID'], limit?: (Scalars['Int'] | null)} })
952
+ watchlist?: (TitleGenqlSelection & { __args: {profileId: Scalars['ID']} })
953
+ /** Titles the profile rated well (I like this, Love this), latest rating first. */
954
+ likedTitles?: (TitleGenqlSelection & { __args: {profileId: Scalars['ID'], limit?: (Scalars['Int'] | null)} })
955
+ /** Newest first. */
956
+ notifications?: (NotificationGenqlSelection & { __args: {profileId: Scalars['ID'], limit?: (Scalars['Int'] | null)} })
957
+ unreadNotificationCount?: { __args: {profileId: Scalars['ID']} }
958
+ /** Newest first. */
959
+ downloads?: (DownloadGenqlSelection & { __args: {profileId: Scalars['ID']} })
960
+ /** Folder finished downloads are saved to as named video files; null when they are not. */
961
+ downloadsFolder?: boolean | number
962
+ /** The open Watch Together room, if any. */
963
+ togetherRoom?: TogetherRoomGenqlSelection
964
+ /** Subtitle files for a movie or episode (same id as streams/findStreams), best first. Ranked by the profile's caption language, then its other languages; at most 3 per language. Asks subtitles plugins when nothing fresh is stored. */
965
+ subtitles?: (SubtitleGenqlSelection & { __args: {mediaId: Scalars['ID'], profileId?: (Scalars['ID'] | null)} })
966
+ profiles?: ProfileGenqlSelection
967
+ settings?: SettingsGenqlSelection
968
+ /** Whether TMDB accepts the key; errors when TMDB can't be reached. */
969
+ checkTmdbKey?: { __args: {key: Scalars['String']} }
970
+ plugins?: PluginGenqlSelection
971
+ status?: StatusGenqlSelection
972
+ __typename?: boolean | number
973
+ __scalar?: boolean | number
974
+ }
975
+
976
+ export interface MutationGenqlSelection{
977
+ /** Ask every streams plugin again for a movie or episode, in the background. */
978
+ findStreams?: { __args: {id: Scalars['ID']} }
979
+ /** Turn a stored stream into a playable URL; only succeeds when the link really delivers video. */
980
+ resolveStream?: (ResolvedStreamGenqlSelection & { __args: {streamId: Scalars['ID']} })
981
+ /** Resolves several links at once (most preferred first) and returns the fastest that really delivers video. Fails only when none plays. */
982
+ resolveBestStream?: (ResolvedStreamGenqlSelection & { __args: {streamIds: Scalars['ID'][]} })
983
+ recordProgress?: (WatchProgressGenqlSelection & { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID'], progressSeconds: Scalars['Float'], durationSeconds: Scalars['Float']} })
984
+ setRating?: { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID'], rating: Scalars['Float']} }
985
+ clearRating?: { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID']} }
986
+ addToWatchlist?: { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID']} }
987
+ removeFromWatchlist?: { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID']} }
988
+ markNotificationsRead?: { __args: {profileId: Scalars['ID']} }
989
+ /** Queue a movie or episode for download; a failed one is retried. streamId picks the link, otherwise the best ones are tried. */
990
+ startDownload?: (DownloadGenqlSelection & { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID'], streamId?: (Scalars['ID'] | null)} })
991
+ /** Remove a download (stops it when running). */
992
+ deleteDownload?: { __args: {id: Scalars['ID']} }
993
+ /** Open the downloads folder in the file manager of the machine the backend runs on. */
994
+ openDownloadsFolder?: boolean | number
995
+ /** Open a Watch Together room as the profile; replaces any open room. */
996
+ hostTogether?: (TogetherRoomGenqlSelection & { __args: {profileId: Scalars['ID']} })
997
+ /** Join a room by its code as the profile; replaces any open room. */
998
+ joinTogether?: (TogetherRoomGenqlSelection & { __args: {profileId: Scalars['ID'], code: Scalars['String']} })
999
+ leaveTogether?: boolean | number
1000
+ /** Store a link another Watch Together participant plays, so it can be resolved here. */
1001
+ adoptStream?: (StreamGenqlSelection & { __args: {mediaId: Scalars['ID'], url: Scalars['String'], plugin: Scalars['String'], label?: (Scalars['String'] | null)} })
1002
+ /** Send a JSON payload to everyone else in the room. */
1003
+ sendTogether?: { __args: {payload: Scalars['String']} }
1004
+ createProfile?: (ProfileGenqlSelection & { __args: {name: Scalars['String'], avatarUrl?: (Scalars['String'] | null), pin?: (Scalars['String'] | null), isChild?: (Scalars['Boolean'] | null), languages?: (Scalars['String'][] | null)} })
1005
+ /** Changes the given fields; omitted fields stay. An empty pin removes the PIN; an empty subtitleLanguage clears it. */
1006
+ updateProfile?: (ProfileGenqlSelection & { __args: {id: Scalars['ID'], name?: (Scalars['String'] | null), avatarUrl?: (Scalars['String'] | null), isChild?: (Scalars['Boolean'] | null), pin?: (Scalars['String'] | null), languages?: (Scalars['String'][] | null), subtitlesEnabled?: (Scalars['Boolean'] | null), subtitleLanguage?: (Scalars['String'] | null), subtitleSize?: (SubtitleSize | null), voiceBoost?: (Scalars['Boolean'] | null)} })
1007
+ deleteProfile?: { __args: {id: Scalars['ID']} }
1008
+ verifyPin?: (PinCheckGenqlSelection & { __args: {profileId: Scalars['ID'], pin: Scalars['String']} })
1009
+ updateSettings?: (SettingsGenqlSelection & { __args: {input: SettingsInput} })
1010
+ setPluginEnabled?: (PluginGenqlSelection & { __args: {name: Scalars['String'], enabled: Scalars['Boolean']} })
1011
+ setPluginSettings?: (PluginGenqlSelection & { __args: {name: Scalars['String'], values: PluginSettingInput[]} })
1012
+ __typename?: boolean | number
1013
+ __scalar?: boolean | number
1014
+ }
1015
+
1016
+ export interface SubscriptionGenqlSelection{
1017
+ /** Stream list of a movie or episode as plugins answer. Starts a lookup when the stored links are stale. */
1018
+ streams?: (StreamUpdateGenqlSelection & { __args: {id: Scalars['ID']} })
1019
+ /** The Watch Together room as it changes, and messages from the others. */
1020
+ together?: TogetherUpdateGenqlSelection
1021
+ __typename?: boolean | number
1022
+ __scalar?: boolean | number
1023
+ }
1024
+
1025
+
1026
+ const Title_possibleTypes: string[] = ['Title']
1027
+ export const isTitle = (obj?: { __typename?: any } | null): obj is Title => {
1028
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTitle"')
1029
+ return Title_possibleTypes.includes(obj.__typename)
1030
+ }
1031
+
1032
+
1033
+
1034
+ const Season_possibleTypes: string[] = ['Season']
1035
+ export const isSeason = (obj?: { __typename?: any } | null): obj is Season => {
1036
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSeason"')
1037
+ return Season_possibleTypes.includes(obj.__typename)
1038
+ }
1039
+
1040
+
1041
+
1042
+ const Episode_possibleTypes: string[] = ['Episode']
1043
+ export const isEpisode = (obj?: { __typename?: any } | null): obj is Episode => {
1044
+ if (!obj?.__typename) throw new Error('__typename is missing in "isEpisode"')
1045
+ return Episode_possibleTypes.includes(obj.__typename)
1046
+ }
1047
+
1048
+
1049
+
1050
+ const SkipSegment_possibleTypes: string[] = ['SkipSegment']
1051
+ export const isSkipSegment = (obj?: { __typename?: any } | null): obj is SkipSegment => {
1052
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSkipSegment"')
1053
+ return SkipSegment_possibleTypes.includes(obj.__typename)
1054
+ }
1055
+
1056
+
1057
+
1058
+ const Person_possibleTypes: string[] = ['Person']
1059
+ export const isPerson = (obj?: { __typename?: any } | null): obj is Person => {
1060
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPerson"')
1061
+ return Person_possibleTypes.includes(obj.__typename)
1062
+ }
1063
+
1064
+
1065
+
1066
+ const CoStar_possibleTypes: string[] = ['CoStar']
1067
+ export const isCoStar = (obj?: { __typename?: any } | null): obj is CoStar => {
1068
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCoStar"')
1069
+ return CoStar_possibleTypes.includes(obj.__typename)
1070
+ }
1071
+
1072
+
1073
+
1074
+ const Credit_possibleTypes: string[] = ['Credit']
1075
+ export const isCredit = (obj?: { __typename?: any } | null): obj is Credit => {
1076
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCredit"')
1077
+ return Credit_possibleTypes.includes(obj.__typename)
1078
+ }
1079
+
1080
+
1081
+
1082
+ const Stream_possibleTypes: string[] = ['Stream']
1083
+ export const isStream = (obj?: { __typename?: any } | null): obj is Stream => {
1084
+ if (!obj?.__typename) throw new Error('__typename is missing in "isStream"')
1085
+ return Stream_possibleTypes.includes(obj.__typename)
1086
+ }
1087
+
1088
+
1089
+
1090
+ const StreamUpdate_possibleTypes: string[] = ['StreamUpdate']
1091
+ export const isStreamUpdate = (obj?: { __typename?: any } | null): obj is StreamUpdate => {
1092
+ if (!obj?.__typename) throw new Error('__typename is missing in "isStreamUpdate"')
1093
+ return StreamUpdate_possibleTypes.includes(obj.__typename)
1094
+ }
1095
+
1096
+
1097
+
1098
+ const ResolvedStream_possibleTypes: string[] = ['ResolvedStream']
1099
+ export const isResolvedStream = (obj?: { __typename?: any } | null): obj is ResolvedStream => {
1100
+ if (!obj?.__typename) throw new Error('__typename is missing in "isResolvedStream"')
1101
+ return ResolvedStream_possibleTypes.includes(obj.__typename)
1102
+ }
1103
+
1104
+
1105
+
1106
+ const WatchProgress_possibleTypes: string[] = ['WatchProgress']
1107
+ export const isWatchProgress = (obj?: { __typename?: any } | null): obj is WatchProgress => {
1108
+ if (!obj?.__typename) throw new Error('__typename is missing in "isWatchProgress"')
1109
+ return WatchProgress_possibleTypes.includes(obj.__typename)
1110
+ }
1111
+
1112
+
1113
+
1114
+ const ContinueItem_possibleTypes: string[] = ['ContinueItem']
1115
+ export const isContinueItem = (obj?: { __typename?: any } | null): obj is ContinueItem => {
1116
+ if (!obj?.__typename) throw new Error('__typename is missing in "isContinueItem"')
1117
+ return ContinueItem_possibleTypes.includes(obj.__typename)
1118
+ }
1119
+
1120
+
1121
+
1122
+ const HistoryEntry_possibleTypes: string[] = ['HistoryEntry']
1123
+ export const isHistoryEntry = (obj?: { __typename?: any } | null): obj is HistoryEntry => {
1124
+ if (!obj?.__typename) throw new Error('__typename is missing in "isHistoryEntry"')
1125
+ return HistoryEntry_possibleTypes.includes(obj.__typename)
1126
+ }
1127
+
1128
+
1129
+
1130
+ const Recommendation_possibleTypes: string[] = ['Recommendation']
1131
+ export const isRecommendation = (obj?: { __typename?: any } | null): obj is Recommendation => {
1132
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRecommendation"')
1133
+ return Recommendation_possibleTypes.includes(obj.__typename)
1134
+ }
1135
+
1136
+
1137
+
1138
+ const MoreWithRow_possibleTypes: string[] = ['MoreWithRow']
1139
+ export const isMoreWithRow = (obj?: { __typename?: any } | null): obj is MoreWithRow => {
1140
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMoreWithRow"')
1141
+ return MoreWithRow_possibleTypes.includes(obj.__typename)
1142
+ }
1143
+
1144
+
1145
+
1146
+ const RecommendationRow_possibleTypes: string[] = ['RecommendationRow']
1147
+ export const isRecommendationRow = (obj?: { __typename?: any } | null): obj is RecommendationRow => {
1148
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRecommendationRow"')
1149
+ return RecommendationRow_possibleTypes.includes(obj.__typename)
1150
+ }
1151
+
1152
+
1153
+
1154
+ const Profile_possibleTypes: string[] = ['Profile']
1155
+ export const isProfile = (obj?: { __typename?: any } | null): obj is Profile => {
1156
+ if (!obj?.__typename) throw new Error('__typename is missing in "isProfile"')
1157
+ return Profile_possibleTypes.includes(obj.__typename)
1158
+ }
1159
+
1160
+
1161
+
1162
+ const Subtitle_possibleTypes: string[] = ['Subtitle']
1163
+ export const isSubtitle = (obj?: { __typename?: any } | null): obj is Subtitle => {
1164
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSubtitle"')
1165
+ return Subtitle_possibleTypes.includes(obj.__typename)
1166
+ }
1167
+
1168
+
1169
+
1170
+ const PinCheck_possibleTypes: string[] = ['PinCheck']
1171
+ export const isPinCheck = (obj?: { __typename?: any } | null): obj is PinCheck => {
1172
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPinCheck"')
1173
+ return PinCheck_possibleTypes.includes(obj.__typename)
1174
+ }
1175
+
1176
+
1177
+
1178
+ const Settings_possibleTypes: string[] = ['Settings']
1179
+ export const isSettings = (obj?: { __typename?: any } | null): obj is Settings => {
1180
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSettings"')
1181
+ return Settings_possibleTypes.includes(obj.__typename)
1182
+ }
1183
+
1184
+
1185
+
1186
+ const PluginSettingField_possibleTypes: string[] = ['PluginSettingField']
1187
+ export const isPluginSettingField = (obj?: { __typename?: any } | null): obj is PluginSettingField => {
1188
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPluginSettingField"')
1189
+ return PluginSettingField_possibleTypes.includes(obj.__typename)
1190
+ }
1191
+
1192
+
1193
+
1194
+ const Plugin_possibleTypes: string[] = ['Plugin']
1195
+ export const isPlugin = (obj?: { __typename?: any } | null): obj is Plugin => {
1196
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPlugin"')
1197
+ return Plugin_possibleTypes.includes(obj.__typename)
1198
+ }
1199
+
1200
+
1201
+
1202
+ const Status_possibleTypes: string[] = ['Status']
1203
+ export const isStatus = (obj?: { __typename?: any } | null): obj is Status => {
1204
+ if (!obj?.__typename) throw new Error('__typename is missing in "isStatus"')
1205
+ return Status_possibleTypes.includes(obj.__typename)
1206
+ }
1207
+
1208
+
1209
+
1210
+ const Notification_possibleTypes: string[] = ['Notification']
1211
+ export const isNotification = (obj?: { __typename?: any } | null): obj is Notification => {
1212
+ if (!obj?.__typename) throw new Error('__typename is missing in "isNotification"')
1213
+ return Notification_possibleTypes.includes(obj.__typename)
1214
+ }
1215
+
1216
+
1217
+
1218
+ const Download_possibleTypes: string[] = ['Download']
1219
+ export const isDownload = (obj?: { __typename?: any } | null): obj is Download => {
1220
+ if (!obj?.__typename) throw new Error('__typename is missing in "isDownload"')
1221
+ return Download_possibleTypes.includes(obj.__typename)
1222
+ }
1223
+
1224
+
1225
+
1226
+ const TogetherPeer_possibleTypes: string[] = ['TogetherPeer']
1227
+ export const isTogetherPeer = (obj?: { __typename?: any } | null): obj is TogetherPeer => {
1228
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTogetherPeer"')
1229
+ return TogetherPeer_possibleTypes.includes(obj.__typename)
1230
+ }
1231
+
1232
+
1233
+
1234
+ const TogetherRoom_possibleTypes: string[] = ['TogetherRoom']
1235
+ export const isTogetherRoom = (obj?: { __typename?: any } | null): obj is TogetherRoom => {
1236
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTogetherRoom"')
1237
+ return TogetherRoom_possibleTypes.includes(obj.__typename)
1238
+ }
1239
+
1240
+
1241
+
1242
+ const TogetherMessage_possibleTypes: string[] = ['TogetherMessage']
1243
+ export const isTogetherMessage = (obj?: { __typename?: any } | null): obj is TogetherMessage => {
1244
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTogetherMessage"')
1245
+ return TogetherMessage_possibleTypes.includes(obj.__typename)
1246
+ }
1247
+
1248
+
1249
+
1250
+ const TogetherUpdate_possibleTypes: string[] = ['TogetherUpdate']
1251
+ export const isTogetherUpdate = (obj?: { __typename?: any } | null): obj is TogetherUpdate => {
1252
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTogetherUpdate"')
1253
+ return TogetherUpdate_possibleTypes.includes(obj.__typename)
1254
+ }
1255
+
1256
+
1257
+
1258
+ const CatalogRow_possibleTypes: string[] = ['CatalogRow']
1259
+ export const isCatalogRow = (obj?: { __typename?: any } | null): obj is CatalogRow => {
1260
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCatalogRow"')
1261
+ return CatalogRow_possibleTypes.includes(obj.__typename)
1262
+ }
1263
+
1264
+
1265
+
1266
+ const Query_possibleTypes: string[] = ['Query']
1267
+ export const isQuery = (obj?: { __typename?: any } | null): obj is Query => {
1268
+ if (!obj?.__typename) throw new Error('__typename is missing in "isQuery"')
1269
+ return Query_possibleTypes.includes(obj.__typename)
1270
+ }
1271
+
1272
+
1273
+
1274
+ const Mutation_possibleTypes: string[] = ['Mutation']
1275
+ export const isMutation = (obj?: { __typename?: any } | null): obj is Mutation => {
1276
+ if (!obj?.__typename) throw new Error('__typename is missing in "isMutation"')
1277
+ return Mutation_possibleTypes.includes(obj.__typename)
1278
+ }
1279
+
1280
+
1281
+
1282
+ const Subscription_possibleTypes: string[] = ['Subscription']
1283
+ export const isSubscription = (obj?: { __typename?: any } | null): obj is Subscription => {
1284
+ if (!obj?.__typename) throw new Error('__typename is missing in "isSubscription"')
1285
+ return Subscription_possibleTypes.includes(obj.__typename)
1286
+ }
1287
+
1288
+
1289
+ export const enumMediaType = {
1290
+ MOVIE: 'MOVIE' as const,
1291
+ SERIES: 'SERIES' as const,
1292
+ EPISODE: 'EPISODE' as const
1293
+ }
1294
+
1295
+ export const enumSubtitleSize = {
1296
+ SMALL: 'SMALL' as const,
1297
+ MEDIUM: 'MEDIUM' as const,
1298
+ LARGE: 'LARGE' as const
1299
+ }
1300
+
1301
+ export const enumTmdbKeyStatus = {
1302
+ OK: 'OK' as const,
1303
+ MISSING: 'MISSING' as const,
1304
+ INVALID: 'INVALID' as const
1305
+ }
1306
+
1307
+ export const enumNotificationKind = {
1308
+ AVAILABLE: 'AVAILABLE' as const,
1309
+ NEW_EPISODE: 'NEW_EPISODE' as const,
1310
+ COMING_SOON: 'COMING_SOON' as const
1311
+ }
1312
+
1313
+ export const enumDownloadStatus = {
1314
+ QUEUED: 'QUEUED' as const,
1315
+ DOWNLOADING: 'DOWNLOADING' as const,
1316
+ DONE: 'DONE' as const,
1317
+ FAILED: 'FAILED' as const
1318
+ }
1319
+
1320
+ export const enumTogetherStatus = {
1321
+ WAITING: 'WAITING' as const,
1322
+ CONNECTING: 'CONNECTING' as const,
1323
+ CONNECTED: 'CONNECTED' as const,
1324
+ CLOSED: 'CLOSED' as const,
1325
+ FAILED: 'FAILED' as const
1326
+ }
1327
+
1328
+ export const enumCatalogSort = {
1329
+ POPULAR: 'POPULAR' as const,
1330
+ TOP_RATED: 'TOP_RATED' as const
1331
+ }
1332
+
1333
+ export const enumCatalogTheme = {
1334
+ HIDDEN_GEMS: 'HIDDEN_GEMS' as const,
1335
+ BLOCKBUSTERS: 'BLOCKBUSTERS' as const,
1336
+ FEEL_GOOD: 'FEEL_GOOD' as const,
1337
+ BINGEWORTHY: 'BINGEWORTHY' as const
1338
+ }