@letsmoe/otter-sdk 0.1.0 → 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.
@@ -54,6 +54,8 @@ export interface Title {
54
54
  progress: (WatchProgress | null)
55
55
  rating: (Scalars['Float'] | null)
56
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']
57
59
  __typename: 'Title'
58
60
  }
59
61
 
@@ -280,6 +282,10 @@ export interface Settings {
280
282
  /** Whether the first-run TMDB key dialog was answered. */
281
283
  tmdbKeyPromptSeen: Scalars['Boolean']
282
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']
283
289
  disabledPlugins: Scalars['String'][]
284
290
  __typename: 'Settings'
285
291
  }
@@ -306,12 +312,32 @@ export interface Plugin {
306
312
  /** False when the plugin needs something missing here (e.g. FlareSolverr). */
307
313
  available: Scalars['Boolean']
308
314
  settings: PluginSettingField[]
315
+ /** Set when the plugin's site needs the user's account. */
316
+ account: (PluginAccount | null)
309
317
  __typename: 'Plugin'
310
318
  }
311
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
+
312
333
  export interface Status {
313
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. */
314
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']
315
341
  requireVpn: Scalars['Boolean']
316
342
  __typename: 'Status'
317
343
  }
@@ -455,10 +481,52 @@ export interface Query {
455
481
  checkTmdbKey: Scalars['Boolean']
456
482
  plugins: Plugin[]
457
483
  status: Status
484
+ /** The household's Neoworks account, which syncs profiles, history, lists, ratings and settings between devices. */
485
+ neoworksAccount: NeoworksAccount
458
486
  __typename: 'Query'
459
487
  }
460
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
+
461
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']
462
530
  /** Ask every streams plugin again for a movie or episode, in the background. */
463
531
  findStreams: Scalars['Boolean']
464
532
  /** Turn a stored stream into a playable URL; only succeeds when the link really delivers video. */
@@ -470,7 +538,11 @@ export interface Mutation {
470
538
  clearRating: Scalars['Boolean']
471
539
  addToWatchlist: Scalars['Boolean']
472
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']
473
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']
474
546
  /** Queue a movie or episode for download; a failed one is retried. streamId picks the link, otherwise the best ones are tried. */
475
547
  startDownload: Download
476
548
  /** Remove a download (stops it when running). */
@@ -486,22 +558,58 @@ export interface Mutation {
486
558
  adoptStream: Stream
487
559
  /** Send a JSON payload to everyone else in the room. */
488
560
  sendTogether: Scalars['Boolean']
561
+ /** The first profile's top language also becomes the TMDB language. */
489
562
  createProfile: Profile
490
563
  /** Changes the given fields; omitted fields stay. An empty pin removes the PIN; an empty subtitleLanguage clears it. */
491
564
  updateProfile: Profile
492
565
  deleteProfile: Scalars['Boolean']
493
566
  verifyPin: PinCheck
494
567
  updateSettings: Settings
568
+ /** Asks TMDB right now whether it answers; also updates Status.tmdbReachable. */
569
+ checkTmdbConnection: Scalars['Boolean']
495
570
  setPluginEnabled: Plugin
496
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']
497
588
  __typename: 'Mutation'
498
589
  }
499
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
+
500
606
  export interface Subscription {
501
607
  /** Stream list of a movie or episode as plugins answer. Starts a lookup when the stored links are stale. */
502
608
  streams: StreamUpdate
503
609
  /** The Watch Together room as it changes, and messages from the others. */
504
610
  together: TogetherUpdate
611
+ /** Bot checks to solve, for the phone app; while it listens, plugins that need solving are available. */
612
+ challenges: Challenge
505
613
  __typename: 'Subscription'
506
614
  }
507
615
 
@@ -546,6 +654,8 @@ export interface TitleGenqlSelection{
546
654
  progress?: (WatchProgressGenqlSelection & { __args: {profileId: Scalars['ID']} })
547
655
  rating?: { __args: {profileId: Scalars['ID']} }
548
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']} }
549
659
  __typename?: boolean | number
550
660
  __scalar?: boolean | number
551
661
  }
@@ -791,12 +901,16 @@ export interface SettingsGenqlSelection{
791
901
  /** Whether the first-run TMDB key dialog was answered. */
792
902
  tmdbKeyPromptSeen?: boolean | number
793
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
794
908
  disabledPlugins?: boolean | number
795
909
  __typename?: boolean | number
796
910
  __scalar?: boolean | number
797
911
  }
798
912
 
799
- export interface SettingsInput {tmdbApiKey?: (Scalars['String'] | null),tmdbLanguage?: (Scalars['String'] | null),tmdbKeyPromptSeen?: (Scalars['Boolean'] | null),requireVpn?: (Scalars['Boolean'] | null)}
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)}
800
914
 
801
915
  export interface PluginSettingFieldGenqlSelection{
802
916
  key?: boolean | number
@@ -823,13 +937,34 @@ export interface PluginGenqlSelection{
823
937
  /** False when the plugin needs something missing here (e.g. FlareSolverr). */
824
938
  available?: boolean | number
825
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
826
956
  __typename?: boolean | number
827
957
  __scalar?: boolean | number
828
958
  }
829
959
 
830
960
  export interface StatusGenqlSelection{
831
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. */
832
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
833
968
  requireVpn?: boolean | number
834
969
  __typename?: boolean | number
835
970
  __scalar?: boolean | number
@@ -969,11 +1104,54 @@ export interface QueryGenqlSelection{
969
1104
  checkTmdbKey?: { __args: {key: Scalars['String']} }
970
1105
  plugins?: PluginGenqlSelection
971
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
972
1146
  __typename?: boolean | number
973
1147
  __scalar?: boolean | number
974
1148
  }
975
1149
 
976
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']} }
977
1155
  /** Ask every streams plugin again for a movie or episode, in the background. */
978
1156
  findStreams?: { __args: {id: Scalars['ID']} }
979
1157
  /** Turn a stored stream into a playable URL; only succeeds when the link really delivers video. */
@@ -985,7 +1163,11 @@ export interface MutationGenqlSelection{
985
1163
  clearRating?: { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID']} }
986
1164
  addToWatchlist?: { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID']} }
987
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']} }
988
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
989
1171
  /** Queue a movie or episode for download; a failed one is retried. streamId picks the link, otherwise the best ones are tried. */
990
1172
  startDownload?: (DownloadGenqlSelection & { __args: {profileId: Scalars['ID'], mediaId: Scalars['ID'], streamId?: (Scalars['ID'] | null)} })
991
1173
  /** Remove a download (stops it when running). */
@@ -1001,14 +1183,50 @@ export interface MutationGenqlSelection{
1001
1183
  adoptStream?: (StreamGenqlSelection & { __args: {mediaId: Scalars['ID'], url: Scalars['String'], plugin: Scalars['String'], label?: (Scalars['String'] | null)} })
1002
1184
  /** Send a JSON payload to everyone else in the room. */
1003
1185
  sendTogether?: { __args: {payload: Scalars['String']} }
1186
+ /** The first profile's top language also becomes the TMDB language. */
1004
1187
  createProfile?: (ProfileGenqlSelection & { __args: {name: Scalars['String'], avatarUrl?: (Scalars['String'] | null), pin?: (Scalars['String'] | null), isChild?: (Scalars['Boolean'] | null), languages?: (Scalars['String'][] | null)} })
1005
1188
  /** Changes the given fields; omitted fields stay. An empty pin removes the PIN; an empty subtitleLanguage clears it. */
1006
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)} })
1007
1190
  deleteProfile?: { __args: {id: Scalars['ID']} }
1008
1191
  verifyPin?: (PinCheckGenqlSelection & { __args: {profileId: Scalars['ID'], pin: Scalars['String']} })
1009
1192
  updateSettings?: (SettingsGenqlSelection & { __args: {input: SettingsInput} })
1193
+ /** Asks TMDB right now whether it answers; also updates Status.tmdbReachable. */
1194
+ checkTmdbConnection?: boolean | number
1010
1195
  setPluginEnabled?: (PluginGenqlSelection & { __args: {name: Scalars['String'], enabled: Scalars['Boolean']} })
1011
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
1012
1230
  __typename?: boolean | number
1013
1231
  __scalar?: boolean | number
1014
1232
  }
@@ -1018,6 +1236,8 @@ export interface SubscriptionGenqlSelection{
1018
1236
  streams?: (StreamUpdateGenqlSelection & { __args: {id: Scalars['ID']} })
1019
1237
  /** The Watch Together room as it changes, and messages from the others. */
1020
1238
  together?: TogetherUpdateGenqlSelection
1239
+ /** Bot checks to solve, for the phone app; while it listens, plugins that need solving are available. */
1240
+ challenges?: ChallengeGenqlSelection
1021
1241
  __typename?: boolean | number
1022
1242
  __scalar?: boolean | number
1023
1243
  }
@@ -1199,6 +1419,14 @@ export interface SubscriptionGenqlSelection{
1199
1419
 
1200
1420
 
1201
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
+
1202
1430
  const Status_possibleTypes: string[] = ['Status']
1203
1431
  export const isStatus = (obj?: { __typename?: any } | null): obj is Status => {
1204
1432
  if (!obj?.__typename) throw new Error('__typename is missing in "isStatus"')
@@ -1271,6 +1499,30 @@ export interface SubscriptionGenqlSelection{
1271
1499
 
1272
1500
 
1273
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
+
1274
1526
  const Mutation_possibleTypes: string[] = ['Mutation']
1275
1527
  export const isMutation = (obj?: { __typename?: any } | null): obj is Mutation => {
1276
1528
  if (!obj?.__typename) throw new Error('__typename is missing in "isMutation"')
@@ -1279,6 +1531,22 @@ export interface SubscriptionGenqlSelection{
1279
1531
 
1280
1532
 
1281
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
+
1282
1550
  const Subscription_possibleTypes: string[] = ['Subscription']
1283
1551
  export const isSubscription = (obj?: { __typename?: any } | null): obj is Subscription => {
1284
1552
  if (!obj?.__typename) throw new Error('__typename is missing in "isSubscription"')
@@ -1336,3 +1604,8 @@ export const enumCatalogTheme = {
1336
1604
  FEEL_GOOD: 'FEEL_GOOD' as const,
1337
1605
  BINGEWORTHY: 'BINGEWORTHY' as const
1338
1606
  }
1607
+
1608
+ export const enumChallengeKind = {
1609
+ CLEARANCE: 'CLEARANCE' as const,
1610
+ NAVIGATION: 'NAVIGATION' as const
1611
+ }