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