From 5465f1e74cf69623caf111cdfec1c72c3326b3e2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 8 Sep 2024 17:41:10 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.392.1 --- .speakeasy/gen.lock | 307 +++++++++++++++++- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- README.md | 17 +- RELEASES.md | 12 +- codeSamples.yaml | 2 +- .../errors/addplaylistcontentserrors.md | 16 +- .../addplaylistcontentsplaylistserrors.md | 21 ++ ...ddplaylistcontentsplaylistsresponsebody.md | 18 + .../errors/addplaylistcontentsresponsebody.md | 2 +- docs/sdk/models/errors/applyupdateserrors.md | 16 +- .../models/errors/applyupdatesresponsebody.md | 2 +- .../errors/applyupdatesupdatererrors.md | 21 ++ .../errors/applyupdatesupdaterresponsebody.md | 18 + .../cancelserveractivitiesactivitieserrors.md | 21 ++ ...lserveractivitiesactivitiesresponsebody.md | 18 + .../errors/cancelserveractivitieserrors.md | 16 +- .../cancelserveractivitiesresponsebody.md | 2 +- .../models/errors/checkforupdateserrors.md | 16 +- .../errors/checkforupdatesresponsebody.md | 2 +- .../errors/checkforupdatesupdatererrors.md | 21 ++ .../checkforupdatesupdaterresponsebody.md | 18 + .../errors/clearplaylistcontentserrors.md | 16 +- .../clearplaylistcontentsplaylistserrors.md | 21 ++ ...arplaylistcontentsplaylistsresponsebody.md | 18 + .../clearplaylistcontentsresponsebody.md | 2 +- .../sdk/models/errors/createplaylisterrors.md | 16 +- .../errors/createplaylistplaylistserrors.md | 21 ++ .../createplaylistplaylistsresponsebody.md | 18 + .../errors/createplaylistresponsebody.md | 2 +- docs/sdk/models/errors/deletelibraryerrors.md | 16 +- .../errors/deletelibrarylibraryerrors.md | 21 ++ .../deletelibrarylibraryresponsebody.md | 18 + .../errors/deletelibraryresponsebody.md | 2 +- .../sdk/models/errors/deleteplaylisterrors.md | 16 +- .../errors/deleteplaylistplaylistserrors.md | 21 ++ .../deleteplaylistplaylistsresponsebody.md | 18 + .../errors/deleteplaylistresponsebody.md | 2 +- .../models/errors/enablepapertrailerrors.md | 16 +- .../errors/enablepapertraillogerrors.md | 21 ++ .../errors/enablepapertraillogresponsebody.md | 18 + .../errors/enablepapertrailresponsebody.md | 2 +- docs/sdk/models/errors/errors.md | 16 +- .../models/errors/getalllibrarieserrors.md | 16 +- .../errors/getalllibrarieslibraryerrors.md | 21 ++ .../getalllibrarieslibraryresponsebody.md | 18 + .../errors/getalllibrariesresponsebody.md | 2 +- .../errors/getavailableclientserrors.md | 16 +- .../errors/getavailableclientsresponsebody.md | 2 +- .../errors/getavailableclientsservererrors.md | 21 ++ .../getavailableclientsserverresponsebody.md | 18 + .../errors/getbandwidthstatisticserrors.md | 16 +- .../getbandwidthstatisticsresponsebody.md | 2 +- .../getbandwidthstatisticsstatisticserrors.md | 21 ++ ...ndwidthstatisticsstatisticsresponsebody.md | 18 + .../sdk/models/errors/getbannerimageerrors.md | 16 +- .../errors/getbannerimagemediaerrors.md | 21 ++ .../errors/getbannerimagemediaresponsebody.md | 18 + .../errors/getbannerimageresponsebody.md | 2 +- .../errors/getbutlertasksbutlererrors.md | 21 ++ .../getbutlertasksbutlerresponsebody.md | 18 + .../sdk/models/errors/getbutlertaskserrors.md | 16 +- .../errors/getbutlertasksresponsebody.md | 2 +- .../models/errors/getcompanionsdataerrors.md | 16 +- .../errors/getcompanionsdataplexerrors.md | 21 ++ .../getcompanionsdataplexresponsebody.md | 18 + .../errors/getcompanionsdataresponsebody.md | 2 +- docs/sdk/models/errors/getdeviceserrors.md | 16 +- .../models/errors/getdevicesresponsebody.md | 2 +- .../models/errors/getdevicesservererrors.md | 21 ++ .../errors/getdevicesserverresponsebody.md | 18 + docs/sdk/models/errors/getfilehasherrors.md | 16 +- .../models/errors/getfilehashlibraryerrors.md | 21 ++ .../errors/getfilehashlibraryresponsebody.md | 18 + .../models/errors/getfilehashresponsebody.md | 2 +- docs/sdk/models/errors/getgeodataerrors.md | 16 +- .../sdk/models/errors/getgeodataplexerrors.md | 21 ++ .../errors/getgeodataplexresponsebody.md | 18 + .../models/errors/getgeodataresponsebody.md | 2 +- docs/sdk/models/errors/getglobalhubserrors.md | 16 +- .../models/errors/getglobalhubshubserrors.md | 21 ++ .../errors/getglobalhubshubsresponsebody.md | 18 + .../errors/getglobalhubsresponsebody.md | 2 +- docs/sdk/models/errors/gethomedataerrors.md | 16 +- .../models/errors/gethomedataplexerrors.md | 21 ++ .../errors/gethomedataplexresponsebody.md | 18 + .../models/errors/gethomedataresponsebody.md | 2 +- .../models/errors/getlibrarydetailserrors.md | 16 +- .../errors/getlibrarydetailslibraryerrors.md | 21 ++ .../getlibrarydetailslibraryresponsebody.md | 18 + .../errors/getlibrarydetailsresponsebody.md | 2 +- .../sdk/models/errors/getlibraryhubserrors.md | 16 +- .../models/errors/getlibraryhubshubserrors.md | 21 ++ .../errors/getlibraryhubshubsresponsebody.md | 18 + .../errors/getlibraryhubsresponsebody.md | 2 +- .../models/errors/getlibraryitemserrors.md | 16 +- .../errors/getlibraryitemslibraryerrors.md | 21 ++ .../getlibraryitemslibraryresponsebody.md | 18 + .../errors/getlibraryitemsresponsebody.md | 2 +- .../models/errors/getmediaproviderserrors.md | 16 +- .../errors/getmediaprovidersresponsebody.md | 2 +- .../errors/getmediaprovidersservererrors.md | 21 ++ .../getmediaprovidersserverresponsebody.md | 18 + .../errors/getmetadatabyratingkeyerrors.md | 16 +- .../getmetadatabyratingkeylibraryerrors.md | 21 ++ ...tmetadatabyratingkeylibraryresponsebody.md | 18 + .../getmetadatabyratingkeyresponsebody.md | 2 +- .../errors/getmetadatachildrenerrors.md | 16 +- .../getmetadatachildrenlibraryerrors.md | 21 ++ .../getmetadatachildrenlibraryresponsebody.md | 18 + .../errors/getmetadatachildrenresponsebody.md | 2 +- .../models/errors/getmyplexaccounterrors.md | 16 +- .../errors/getmyplexaccountresponsebody.md | 2 +- .../errors/getmyplexaccountservererrors.md | 21 ++ .../getmyplexaccountserverresponsebody.md | 18 + docs/sdk/models/errors/getondeckerrors.md | 16 +- .../models/errors/getondecklibraryerrors.md | 21 ++ .../errors/getondecklibraryresponsebody.md | 18 + .../models/errors/getondeckresponsebody.md | 2 +- .../errors/getplaylistcontentserrors.md | 16 +- .../getplaylistcontentsplaylistserrors.md | 21 ++ ...etplaylistcontentsplaylistsresponsebody.md | 18 + .../errors/getplaylistcontentsresponsebody.md | 2 +- docs/sdk/models/errors/getplaylisterrors.md | 16 +- .../errors/getplaylistplaylistserrors.md | 21 ++ .../getplaylistplaylistsresponsebody.md | 18 + .../models/errors/getplaylistresponsebody.md | 2 +- docs/sdk/models/errors/getplaylistserrors.md | 16 +- .../errors/getplaylistsplaylistserrors.md | 21 ++ .../getplaylistsplaylistsresponsebody.md | 18 + .../models/errors/getplaylistsresponsebody.md | 2 +- .../models/errors/getrecentlyaddederrors.md | 16 +- .../errors/getrecentlyaddedlibraryerrors.md | 21 ++ .../getrecentlyaddedlibraryresponsebody.md | 18 + .../errors/getrecentlyaddedresponsebody.md | 2 +- .../errors/getrefreshlibrarymetadataerrors.md | 16 +- .../getrefreshlibrarymetadatalibraryerrors.md | 21 ++ ...freshlibrarymetadatalibraryresponsebody.md | 18 + .../getrefreshlibrarymetadataresponsebody.md | 2 +- .../models/errors/getresizedphotoerrors.md | 16 +- .../errors/getresizedphotoresponsebody.md | 2 +- .../errors/getresizedphotoservererrors.md | 21 ++ .../getresizedphotoserverresponsebody.md | 18 + .../errors/getresourcesstatisticserrors.md | 16 +- .../getresourcesstatisticsresponsebody.md | 2 +- .../getresourcesstatisticsstatisticserrors.md | 21 ++ ...sourcesstatisticsstatisticsresponsebody.md | 18 + .../models/errors/getsearchlibraryerrors.md | 16 +- .../errors/getsearchlibrarylibraryerrors.md | 21 ++ .../getsearchlibrarylibraryresponsebody.md | 18 + .../errors/getsearchlibraryresponsebody.md | 2 +- .../models/errors/getsearchresultserrors.md | 16 +- .../errors/getsearchresultsresponsebody.md | 2 +- .../errors/getsearchresultssearcherrors.md | 21 ++ .../getsearchresultssearchresponsebody.md | 18 + .../getserveractivitiesactivitieserrors.md | 21 ++ ...tserveractivitiesactivitiesresponsebody.md | 18 + .../errors/getserveractivitieserrors.md | 16 +- .../errors/getserveractivitiesresponsebody.md | 2 +- .../errors/getservercapabilitieserrors.md | 21 ++ .../getservercapabilitiesresponsebody.md | 2 +- ...getservercapabilitiesserverresponsebody.md | 18 + docs/sdk/models/errors/getserverlisterrors.md | 16 +- .../errors/getserverlistresponsebody.md | 2 +- .../errors/getserverlistservererrors.md | 21 ++ .../errors/getserverlistserverresponsebody.md | 18 + .../errors/getserverpreferenceserrors.md | 16 +- .../getserverpreferencesresponsebody.md | 2 +- .../getserverpreferencesservererrors.md | 21 ++ .../getserverpreferencesserverresponsebody.md | 18 + .../models/errors/getserverresourceserrors.md | 16 +- .../errors/getserverresourcesplexerrors.md | 21 ++ .../getserverresourcesplexresponsebody.md | 18 + .../errors/getserverresourcesresponsebody.md | 2 +- .../models/errors/getsessionhistoryerrors.md | 16 +- .../errors/getsessionhistoryresponsebody.md | 2 +- .../errors/getsessionhistorysessionserrors.md | 21 ++ .../getsessionhistorysessionsresponsebody.md | 18 + docs/sdk/models/errors/getsessionserrors.md | 16 +- .../models/errors/getsessionsresponsebody.md | 2 +- .../errors/getsessionssessionserrors.md | 21 ++ .../errors/getsessionssessionsresponsebody.md | 18 + ...nnectioninformationauthenticationerrors.md | 21 ++ ...oninformationauthenticationresponsebody.md | 18 + .../getsourceconnectioninformationerrors.md | 16 +- ...sourceconnectioninformationresponsebody.md | 2 +- docs/sdk/models/errors/getstatisticserrors.md | 16 +- .../errors/getstatisticsresponsebody.md | 2 +- .../errors/getstatisticsstatisticserrors.md | 21 ++ .../getstatisticsstatisticsresponsebody.md | 18 + docs/sdk/models/errors/getthumbimageerrors.md | 16 +- .../models/errors/getthumbimagemediaerrors.md | 21 ++ .../errors/getthumbimagemediaresponsebody.md | 18 + .../errors/getthumbimageresponsebody.md | 2 +- docs/sdk/models/errors/gettimelineerrors.md | 16 +- .../models/errors/gettimelineresponsebody.md | 2 +- .../models/errors/gettimelinevideoerrors.md | 21 ++ .../errors/gettimelinevideoresponsebody.md | 18 + .../errors/gettopwatchedcontenterrors.md | 16 +- .../gettopwatchedcontentlibraryerrors.md | 21 ++ ...gettopwatchedcontentlibraryresponsebody.md | 18 + .../gettopwatchedcontentresponsebody.md | 2 +- .../errors/gettranscodesessionserrors.md | 16 +- .../gettranscodesessionsresponsebody.md | 2 +- .../gettranscodesessionssessionserrors.md | 21 ++ ...ettranscodesessionssessionsresponsebody.md | 18 + .../gettransienttokenauthenticationerrors.md | 21 ++ ...ransienttokenauthenticationresponsebody.md | 18 + .../models/errors/gettransienttokenerrors.md | 16 +- .../errors/gettransienttokenresponsebody.md | 2 +- .../models/errors/getupdatestatuserrors.md | 16 +- .../errors/getupdatestatusresponsebody.md | 2 +- .../errors/getupdatestatusupdatererrors.md | 21 ++ .../getupdatestatusupdaterresponsebody.md | 18 + .../getuserdetailsauthenticationerrors.md | 21 ++ ...etuserdetailsauthenticationresponsebody.md | 18 + .../sdk/models/errors/getuserdetailserrors.md | 16 +- .../errors/getuserdetailsresponsebody.md | 2 +- .../sdk/models/errors/getuserfriendserrors.md | 16 +- .../models/errors/getuserfriendsplexerrors.md | 21 ++ .../errors/getuserfriendsplexresponsebody.md | 18 + .../errors/getuserfriendsresponsebody.md | 2 +- docs/sdk/models/errors/getwatchlisterrors.md | 16 +- .../models/errors/getwatchlistresponsebody.md | 2 +- .../errors/getwatchlistwatchlisterrors.md | 21 ++ .../getwatchlistwatchlistresponsebody.md | 18 + docs/sdk/models/errors/loglineerrors.md | 16 +- docs/sdk/models/errors/loglinelogerrors.md | 21 ++ .../models/errors/loglinelogresponsebody.md | 18 + docs/sdk/models/errors/loglineresponsebody.md | 2 +- docs/sdk/models/errors/logmultilineerrors.md | 16 +- .../models/errors/logmultilinelogerrors.md | 21 ++ .../errors/logmultilinelogresponsebody.md | 18 + .../models/errors/logmultilineresponsebody.md | 2 +- docs/sdk/models/errors/markplayederrors.md | 16 +- .../models/errors/markplayedmediaerrors.md | 21 ++ .../errors/markplayedmediaresponsebody.md | 18 + .../models/errors/markplayedresponsebody.md | 2 +- docs/sdk/models/errors/markunplayederrors.md | 16 +- .../models/errors/markunplayedmediaerrors.md | 21 ++ .../errors/markunplayedmediaresponsebody.md | 18 + .../models/errors/markunplayedresponsebody.md | 2 +- docs/sdk/models/errors/performsearcherrors.md | 16 +- .../errors/performsearchresponsebody.md | 2 +- .../errors/performsearchsearcherrors.md | 21 ++ .../errors/performsearchsearchresponsebody.md | 18 + .../models/errors/performvoicesearcherrors.md | 16 +- .../errors/performvoicesearchresponsebody.md | 2 +- .../errors/performvoicesearchsearcherrors.md | 21 ++ .../performvoicesearchsearchresponsebody.md | 18 + ...postuserssignindataauthenticationerrors.md | 21 ++ ...erssignindataauthenticationresponsebody.md | 18 + .../errors/postuserssignindataerrors.md | 16 +- .../errors/postuserssignindataresponsebody.md | 2 +- .../errors/startalltasksbutlererrors.md | 21 ++ .../errors/startalltasksbutlerresponsebody.md | 18 + docs/sdk/models/errors/startalltaskserrors.md | 16 +- .../errors/startalltasksresponsebody.md | 2 +- .../models/errors/starttaskbutlererrors.md | 21 ++ .../errors/starttaskbutlerresponsebody.md | 18 + docs/sdk/models/errors/starttaskerrors.md | 16 +- .../models/errors/starttaskresponsebody.md | 2 +- .../errors/startuniversaltranscodeerrors.md | 16 +- .../startuniversaltranscoderesponsebody.md | 2 +- .../startuniversaltranscodevideoerrors.md | 21 ++ ...tartuniversaltranscodevideoresponsebody.md | 18 + .../models/errors/stopalltasksbutlererrors.md | 21 ++ .../errors/stopalltasksbutlerresponsebody.md | 18 + docs/sdk/models/errors/stopalltaskserrors.md | 16 +- .../models/errors/stopalltasksresponsebody.md | 2 +- .../sdk/models/errors/stoptaskbutlererrors.md | 21 ++ .../errors/stoptaskbutlerresponsebody.md | 18 + docs/sdk/models/errors/stoptaskerrors.md | 16 +- .../sdk/models/errors/stoptaskresponsebody.md | 2 +- .../errors/stoptranscodesessionerrors.md | 16 +- .../stoptranscodesessionresponsebody.md | 2 +- .../stoptranscodesessionsessionserrors.md | 21 ++ ...toptranscodesessionsessionsresponsebody.md | 18 + .../sdk/models/errors/updateplaylisterrors.md | 16 +- .../errors/updateplaylistplaylistserrors.md | 21 ++ .../updateplaylistplaylistsresponsebody.md | 18 + .../errors/updateplaylistresponsebody.md | 2 +- .../models/errors/updateplayprogresserrors.md | 16 +- .../errors/updateplayprogressmediaerrors.md | 21 ++ .../updateplayprogressmediaresponsebody.md | 18 + .../errors/updateplayprogressresponsebody.md | 2 +- .../sdk/models/errors/uploadplaylisterrors.md | 16 +- .../errors/uploadplaylistplaylistserrors.md | 21 ++ .../uploadplaylistplaylistsresponsebody.md | 18 + .../errors/uploadplaylistresponsebody.md | 2 +- .../getuserdetailsuserplexaccount.md | 4 +- .../operations/postuserssignindatarequest.md | 1 + .../postuserssignindatarequestbody.md | 4 +- .../postuserssignindatauserplexaccount.md | 4 +- docs/sdks/activities/README.md | 18 +- docs/sdks/authentication/README.md | 40 ++- docs/sdks/butler/README.md | 45 +-- docs/sdks/hubs/README.md | 18 +- docs/sdks/library/README.md | 108 +++--- docs/sdks/log/README.md | 27 +- docs/sdks/media/README.md | 45 +-- docs/sdks/playlists/README.md | 81 +++-- docs/sdks/plex/README.md | 45 +-- docs/sdks/search/README.md | 27 +- docs/sdks/server/README.md | 72 ++-- docs/sdks/sessions/README.md | 36 +- docs/sdks/statistics/README.md | 27 +- docs/sdks/updater/README.md | 27 +- docs/sdks/video/README.md | 18 +- docs/sdks/watchlist/README.md | 9 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/activitiesCancelServerActivities.ts | 7 +- src/funcs/activitiesGetServerActivities.ts | 7 +- ...nticationGetSourceConnectionInformation.ts | 10 +- src/funcs/authenticationGetTransientToken.ts | 7 +- src/funcs/authenticationGetUserDetails.ts | 7 +- .../authenticationPostUsersSignInData.ts | 9 +- src/funcs/butlerGetButlerTasks.ts | 7 +- src/funcs/butlerStartAllTasks.ts | 7 +- src/funcs/butlerStartTask.ts | 7 +- src/funcs/butlerStopAllTasks.ts | 7 +- src/funcs/butlerStopTask.ts | 7 +- src/funcs/hubsGetGlobalHubs.ts | 7 +- src/funcs/hubsGetLibraryHubs.ts | 7 +- src/funcs/libraryDeleteLibrary.ts | 7 +- src/funcs/libraryGetAllLibraries.ts | 7 +- src/funcs/libraryGetFileHash.ts | 7 +- src/funcs/libraryGetLibraryDetails.ts | 7 +- src/funcs/libraryGetLibraryItems.ts | 7 +- src/funcs/libraryGetMetaDataByRatingKey.ts | 7 +- src/funcs/libraryGetMetadataChildren.ts | 7 +- src/funcs/libraryGetOnDeck.ts | 7 +- src/funcs/libraryGetRecentlyAdded.ts | 7 +- src/funcs/libraryGetRefreshLibraryMetadata.ts | 7 +- src/funcs/libraryGetSearchLibrary.ts | 7 +- src/funcs/libraryGetTopWatchedContent.ts | 7 +- src/funcs/logEnablePaperTrail.ts | 7 +- src/funcs/logLogLine.ts | 7 +- src/funcs/logLogMultiLine.ts | 7 +- src/funcs/mediaGetBannerImage.ts | 7 +- src/funcs/mediaGetThumbImage.ts | 7 +- src/funcs/mediaMarkPlayed.ts | 7 +- src/funcs/mediaMarkUnplayed.ts | 7 +- src/funcs/mediaUpdatePlayProgress.ts | 7 +- src/funcs/playlistsAddPlaylistContents.ts | 7 +- src/funcs/playlistsClearPlaylistContents.ts | 7 +- src/funcs/playlistsCreatePlaylist.ts | 7 +- src/funcs/playlistsDeletePlaylist.ts | 7 +- src/funcs/playlistsGetPlaylist.ts | 7 +- src/funcs/playlistsGetPlaylistContents.ts | 7 +- src/funcs/playlistsGetPlaylists.ts | 7 +- src/funcs/playlistsUpdatePlaylist.ts | 7 +- src/funcs/playlistsUploadPlaylist.ts | 7 +- src/funcs/plexGetCompanionsData.ts | 7 +- src/funcs/plexGetGeoData.ts | 7 +- src/funcs/plexGetHomeData.ts | 7 +- src/funcs/plexGetServerResources.ts | 7 +- src/funcs/plexGetUserFriends.ts | 7 +- src/funcs/searchGetSearchResults.ts | 7 +- src/funcs/searchPerformSearch.ts | 7 +- src/funcs/searchPerformVoiceSearch.ts | 7 +- src/funcs/serverGetAvailableClients.ts | 7 +- src/funcs/serverGetDevices.ts | 7 +- src/funcs/serverGetMediaProviders.ts | 7 +- src/funcs/serverGetMyPlexAccount.ts | 7 +- src/funcs/serverGetResizedPhoto.ts | 7 +- src/funcs/serverGetServerCapabilities.ts | 7 +- src/funcs/serverGetServerList.ts | 7 +- src/funcs/serverGetServerPreferences.ts | 7 +- src/funcs/sessionsGetSessionHistory.ts | 7 +- src/funcs/sessionsGetSessions.ts | 7 +- src/funcs/sessionsGetTranscodeSessions.ts | 7 +- src/funcs/sessionsStopTranscodeSession.ts | 7 +- src/funcs/statisticsGetBandwidthStatistics.ts | 7 +- src/funcs/statisticsGetResourcesStatistics.ts | 7 +- src/funcs/statisticsGetStatistics.ts | 7 +- src/funcs/updaterApplyUpdates.ts | 7 +- src/funcs/updaterCheckForUpdates.ts | 7 +- src/funcs/updaterGetUpdateStatus.ts | 7 +- src/funcs/videoGetTimeline.ts | 7 +- src/funcs/videoStartUniversalTranscode.ts | 7 +- src/funcs/watchlistGetWatchList.ts | 7 +- src/lib/config.ts | 4 +- src/sdk/authentication.ts | 2 +- src/sdk/models/errors/addplaylistcontents.ts | 168 +++++++++- src/sdk/models/errors/applyupdates.ts | 166 +++++++++- .../models/errors/cancelserveractivities.ts | 170 +++++++++- src/sdk/models/errors/checkforupdates.ts | 168 +++++++++- .../models/errors/clearplaylistcontents.ts | 170 +++++++++- src/sdk/models/errors/createplaylist.ts | 168 +++++++++- src/sdk/models/errors/deletelibrary.ts | 166 +++++++++- src/sdk/models/errors/deleteplaylist.ts | 168 +++++++++- src/sdk/models/errors/enablepapertrail.ts | 166 +++++++++- src/sdk/models/errors/getalllibraries.ts | 168 +++++++++- src/sdk/models/errors/getavailableclients.ts | 168 +++++++++- .../models/errors/getbandwidthstatistics.ts | 170 +++++++++- src/sdk/models/errors/getbannerimage.ts | 166 +++++++++- src/sdk/models/errors/getbutlertasks.ts | 166 +++++++++- src/sdk/models/errors/getcompanionsdata.ts | 168 +++++++++- src/sdk/models/errors/getdevices.ts | 166 +++++++++- src/sdk/models/errors/getfilehash.ts | 166 +++++++++- src/sdk/models/errors/getgeodata.ts | 166 +++++++++- src/sdk/models/errors/getglobalhubs.ts | 166 +++++++++- src/sdk/models/errors/gethomedata.ts | 166 +++++++++- src/sdk/models/errors/getlibrarydetails.ts | 168 +++++++++- src/sdk/models/errors/getlibraryhubs.ts | 166 +++++++++- src/sdk/models/errors/getlibraryitems.ts | 168 +++++++++- src/sdk/models/errors/getmediaproviders.ts | 168 +++++++++- .../models/errors/getmetadatabyratingkey.ts | 168 +++++++++- src/sdk/models/errors/getmetadatachildren.ts | 168 +++++++++- src/sdk/models/errors/getmyplexaccount.ts | 168 +++++++++- src/sdk/models/errors/getondeck.ts | 166 +++++++++- src/sdk/models/errors/getplaylist.ts | 166 +++++++++- src/sdk/models/errors/getplaylistcontents.ts | 168 +++++++++- src/sdk/models/errors/getplaylists.ts | 168 +++++++++- src/sdk/models/errors/getrecentlyadded.ts | 168 +++++++++- .../errors/getrefreshlibrarymetadata.ts | 170 +++++++++- src/sdk/models/errors/getresizedphoto.ts | 168 +++++++++- .../models/errors/getresourcesstatistics.ts | 170 +++++++++- src/sdk/models/errors/getsearchlibrary.ts | 168 +++++++++- src/sdk/models/errors/getsearchresults.ts | 168 +++++++++- src/sdk/models/errors/getserveractivities.ts | 168 +++++++++- .../models/errors/getservercapabilities.ts | 170 +++++++++- src/sdk/models/errors/getserveridentity.ts | 5 +- src/sdk/models/errors/getserverlist.ts | 166 +++++++++- src/sdk/models/errors/getserverpreferences.ts | 168 +++++++++- src/sdk/models/errors/getserverresources.ts | 168 +++++++++- src/sdk/models/errors/getsessionhistory.ts | 168 +++++++++- src/sdk/models/errors/getsessions.ts | 166 +++++++++- .../errors/getsourceconnectioninformation.ts | 176 +++++++++- src/sdk/models/errors/getstatistics.ts | 168 +++++++++- src/sdk/models/errors/getthumbimage.ts | 166 +++++++++- src/sdk/models/errors/gettimeline.ts | 166 +++++++++- src/sdk/models/errors/gettopwatchedcontent.ts | 168 +++++++++- src/sdk/models/errors/gettranscodesessions.ts | 168 +++++++++- src/sdk/models/errors/gettransienttoken.ts | 170 +++++++++- src/sdk/models/errors/getupdatestatus.ts | 168 +++++++++- src/sdk/models/errors/getuserdetails.ts | 168 +++++++++- src/sdk/models/errors/getuserfriends.ts | 166 +++++++++- src/sdk/models/errors/getwatchlist.ts | 168 +++++++++- src/sdk/models/errors/logline.ts | 163 +++++++++- src/sdk/models/errors/logmultiline.ts | 166 +++++++++- src/sdk/models/errors/markplayed.ts | 166 +++++++++- src/sdk/models/errors/markunplayed.ts | 166 +++++++++- src/sdk/models/errors/performsearch.ts | 166 +++++++++- src/sdk/models/errors/performvoicesearch.ts | 168 +++++++++- src/sdk/models/errors/postuserssignindata.ts | 170 +++++++++- src/sdk/models/errors/startalltasks.ts | 166 +++++++++- src/sdk/models/errors/starttask.ts | 166 +++++++++- .../models/errors/startuniversaltranscode.ts | 168 +++++++++- src/sdk/models/errors/stopalltasks.ts | 166 +++++++++- src/sdk/models/errors/stoptask.ts | 166 +++++++++- src/sdk/models/errors/stoptranscodesession.ts | 168 +++++++++- src/sdk/models/errors/updateplaylist.ts | 168 +++++++++- src/sdk/models/errors/updateplayprogress.ts | 168 +++++++++- src/sdk/models/errors/uploadplaylist.ts | 168 +++++++++- src/sdk/models/operations/getuserdetails.ts | 4 +- .../models/operations/postuserssignindata.ts | 8 +- 460 files changed, 15950 insertions(+), 1531 deletions(-) create mode 100644 docs/sdk/models/errors/addplaylistcontentsplaylistserrors.md create mode 100644 docs/sdk/models/errors/addplaylistcontentsplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/applyupdatesupdatererrors.md create mode 100644 docs/sdk/models/errors/applyupdatesupdaterresponsebody.md create mode 100644 docs/sdk/models/errors/cancelserveractivitiesactivitieserrors.md create mode 100644 docs/sdk/models/errors/cancelserveractivitiesactivitiesresponsebody.md create mode 100644 docs/sdk/models/errors/checkforupdatesupdatererrors.md create mode 100644 docs/sdk/models/errors/checkforupdatesupdaterresponsebody.md create mode 100644 docs/sdk/models/errors/clearplaylistcontentsplaylistserrors.md create mode 100644 docs/sdk/models/errors/clearplaylistcontentsplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/createplaylistplaylistserrors.md create mode 100644 docs/sdk/models/errors/createplaylistplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/deletelibrarylibraryerrors.md create mode 100644 docs/sdk/models/errors/deletelibrarylibraryresponsebody.md create mode 100644 docs/sdk/models/errors/deleteplaylistplaylistserrors.md create mode 100644 docs/sdk/models/errors/deleteplaylistplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/enablepapertraillogerrors.md create mode 100644 docs/sdk/models/errors/enablepapertraillogresponsebody.md create mode 100644 docs/sdk/models/errors/getalllibrarieslibraryerrors.md create mode 100644 docs/sdk/models/errors/getalllibrarieslibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getavailableclientsservererrors.md create mode 100644 docs/sdk/models/errors/getavailableclientsserverresponsebody.md create mode 100644 docs/sdk/models/errors/getbandwidthstatisticsstatisticserrors.md create mode 100644 docs/sdk/models/errors/getbandwidthstatisticsstatisticsresponsebody.md create mode 100644 docs/sdk/models/errors/getbannerimagemediaerrors.md create mode 100644 docs/sdk/models/errors/getbannerimagemediaresponsebody.md create mode 100644 docs/sdk/models/errors/getbutlertasksbutlererrors.md create mode 100644 docs/sdk/models/errors/getbutlertasksbutlerresponsebody.md create mode 100644 docs/sdk/models/errors/getcompanionsdataplexerrors.md create mode 100644 docs/sdk/models/errors/getcompanionsdataplexresponsebody.md create mode 100644 docs/sdk/models/errors/getdevicesservererrors.md create mode 100644 docs/sdk/models/errors/getdevicesserverresponsebody.md create mode 100644 docs/sdk/models/errors/getfilehashlibraryerrors.md create mode 100644 docs/sdk/models/errors/getfilehashlibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getgeodataplexerrors.md create mode 100644 docs/sdk/models/errors/getgeodataplexresponsebody.md create mode 100644 docs/sdk/models/errors/getglobalhubshubserrors.md create mode 100644 docs/sdk/models/errors/getglobalhubshubsresponsebody.md create mode 100644 docs/sdk/models/errors/gethomedataplexerrors.md create mode 100644 docs/sdk/models/errors/gethomedataplexresponsebody.md create mode 100644 docs/sdk/models/errors/getlibrarydetailslibraryerrors.md create mode 100644 docs/sdk/models/errors/getlibrarydetailslibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getlibraryhubshubserrors.md create mode 100644 docs/sdk/models/errors/getlibraryhubshubsresponsebody.md create mode 100644 docs/sdk/models/errors/getlibraryitemslibraryerrors.md create mode 100644 docs/sdk/models/errors/getlibraryitemslibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getmediaprovidersservererrors.md create mode 100644 docs/sdk/models/errors/getmediaprovidersserverresponsebody.md create mode 100644 docs/sdk/models/errors/getmetadatabyratingkeylibraryerrors.md create mode 100644 docs/sdk/models/errors/getmetadatabyratingkeylibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getmetadatachildrenlibraryerrors.md create mode 100644 docs/sdk/models/errors/getmetadatachildrenlibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getmyplexaccountservererrors.md create mode 100644 docs/sdk/models/errors/getmyplexaccountserverresponsebody.md create mode 100644 docs/sdk/models/errors/getondecklibraryerrors.md create mode 100644 docs/sdk/models/errors/getondecklibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getplaylistcontentsplaylistserrors.md create mode 100644 docs/sdk/models/errors/getplaylistcontentsplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/getplaylistplaylistserrors.md create mode 100644 docs/sdk/models/errors/getplaylistplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/getplaylistsplaylistserrors.md create mode 100644 docs/sdk/models/errors/getplaylistsplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/getrecentlyaddedlibraryerrors.md create mode 100644 docs/sdk/models/errors/getrecentlyaddedlibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getrefreshlibrarymetadatalibraryerrors.md create mode 100644 docs/sdk/models/errors/getrefreshlibrarymetadatalibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getresizedphotoservererrors.md create mode 100644 docs/sdk/models/errors/getresizedphotoserverresponsebody.md create mode 100644 docs/sdk/models/errors/getresourcesstatisticsstatisticserrors.md create mode 100644 docs/sdk/models/errors/getresourcesstatisticsstatisticsresponsebody.md create mode 100644 docs/sdk/models/errors/getsearchlibrarylibraryerrors.md create mode 100644 docs/sdk/models/errors/getsearchlibrarylibraryresponsebody.md create mode 100644 docs/sdk/models/errors/getsearchresultssearcherrors.md create mode 100644 docs/sdk/models/errors/getsearchresultssearchresponsebody.md create mode 100644 docs/sdk/models/errors/getserveractivitiesactivitieserrors.md create mode 100644 docs/sdk/models/errors/getserveractivitiesactivitiesresponsebody.md create mode 100644 docs/sdk/models/errors/getservercapabilitieserrors.md create mode 100644 docs/sdk/models/errors/getservercapabilitiesserverresponsebody.md create mode 100644 docs/sdk/models/errors/getserverlistservererrors.md create mode 100644 docs/sdk/models/errors/getserverlistserverresponsebody.md create mode 100644 docs/sdk/models/errors/getserverpreferencesservererrors.md create mode 100644 docs/sdk/models/errors/getserverpreferencesserverresponsebody.md create mode 100644 docs/sdk/models/errors/getserverresourcesplexerrors.md create mode 100644 docs/sdk/models/errors/getserverresourcesplexresponsebody.md create mode 100644 docs/sdk/models/errors/getsessionhistorysessionserrors.md create mode 100644 docs/sdk/models/errors/getsessionhistorysessionsresponsebody.md create mode 100644 docs/sdk/models/errors/getsessionssessionserrors.md create mode 100644 docs/sdk/models/errors/getsessionssessionsresponsebody.md create mode 100644 docs/sdk/models/errors/getsourceconnectioninformationauthenticationerrors.md create mode 100644 docs/sdk/models/errors/getsourceconnectioninformationauthenticationresponsebody.md create mode 100644 docs/sdk/models/errors/getstatisticsstatisticserrors.md create mode 100644 docs/sdk/models/errors/getstatisticsstatisticsresponsebody.md create mode 100644 docs/sdk/models/errors/getthumbimagemediaerrors.md create mode 100644 docs/sdk/models/errors/getthumbimagemediaresponsebody.md create mode 100644 docs/sdk/models/errors/gettimelinevideoerrors.md create mode 100644 docs/sdk/models/errors/gettimelinevideoresponsebody.md create mode 100644 docs/sdk/models/errors/gettopwatchedcontentlibraryerrors.md create mode 100644 docs/sdk/models/errors/gettopwatchedcontentlibraryresponsebody.md create mode 100644 docs/sdk/models/errors/gettranscodesessionssessionserrors.md create mode 100644 docs/sdk/models/errors/gettranscodesessionssessionsresponsebody.md create mode 100644 docs/sdk/models/errors/gettransienttokenauthenticationerrors.md create mode 100644 docs/sdk/models/errors/gettransienttokenauthenticationresponsebody.md create mode 100644 docs/sdk/models/errors/getupdatestatusupdatererrors.md create mode 100644 docs/sdk/models/errors/getupdatestatusupdaterresponsebody.md create mode 100644 docs/sdk/models/errors/getuserdetailsauthenticationerrors.md create mode 100644 docs/sdk/models/errors/getuserdetailsauthenticationresponsebody.md create mode 100644 docs/sdk/models/errors/getuserfriendsplexerrors.md create mode 100644 docs/sdk/models/errors/getuserfriendsplexresponsebody.md create mode 100644 docs/sdk/models/errors/getwatchlistwatchlisterrors.md create mode 100644 docs/sdk/models/errors/getwatchlistwatchlistresponsebody.md create mode 100644 docs/sdk/models/errors/loglinelogerrors.md create mode 100644 docs/sdk/models/errors/loglinelogresponsebody.md create mode 100644 docs/sdk/models/errors/logmultilinelogerrors.md create mode 100644 docs/sdk/models/errors/logmultilinelogresponsebody.md create mode 100644 docs/sdk/models/errors/markplayedmediaerrors.md create mode 100644 docs/sdk/models/errors/markplayedmediaresponsebody.md create mode 100644 docs/sdk/models/errors/markunplayedmediaerrors.md create mode 100644 docs/sdk/models/errors/markunplayedmediaresponsebody.md create mode 100644 docs/sdk/models/errors/performsearchsearcherrors.md create mode 100644 docs/sdk/models/errors/performsearchsearchresponsebody.md create mode 100644 docs/sdk/models/errors/performvoicesearchsearcherrors.md create mode 100644 docs/sdk/models/errors/performvoicesearchsearchresponsebody.md create mode 100644 docs/sdk/models/errors/postuserssignindataauthenticationerrors.md create mode 100644 docs/sdk/models/errors/postuserssignindataauthenticationresponsebody.md create mode 100644 docs/sdk/models/errors/startalltasksbutlererrors.md create mode 100644 docs/sdk/models/errors/startalltasksbutlerresponsebody.md create mode 100644 docs/sdk/models/errors/starttaskbutlererrors.md create mode 100644 docs/sdk/models/errors/starttaskbutlerresponsebody.md create mode 100644 docs/sdk/models/errors/startuniversaltranscodevideoerrors.md create mode 100644 docs/sdk/models/errors/startuniversaltranscodevideoresponsebody.md create mode 100644 docs/sdk/models/errors/stopalltasksbutlererrors.md create mode 100644 docs/sdk/models/errors/stopalltasksbutlerresponsebody.md create mode 100644 docs/sdk/models/errors/stoptaskbutlererrors.md create mode 100644 docs/sdk/models/errors/stoptaskbutlerresponsebody.md create mode 100644 docs/sdk/models/errors/stoptranscodesessionsessionserrors.md create mode 100644 docs/sdk/models/errors/stoptranscodesessionsessionsresponsebody.md create mode 100644 docs/sdk/models/errors/updateplaylistplaylistserrors.md create mode 100644 docs/sdk/models/errors/updateplaylistplaylistsresponsebody.md create mode 100644 docs/sdk/models/errors/updateplayprogressmediaerrors.md create mode 100644 docs/sdk/models/errors/updateplayprogressmediaresponsebody.md create mode 100644 docs/sdk/models/errors/uploadplaylistplaylistserrors.md create mode 100644 docs/sdk/models/errors/uploadplaylistplaylistsresponsebody.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 9d4fa3f5..89166ebb 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 16f22cbf-f23f-4419-8924-3a4b06381947 management: - docChecksum: e86dd5a81cd11202edc0a62b99f0e4ff + docChecksum: 75338df5d596b761fe73fe6ff177a197 docVersion: 0.0.3 speakeasyVersion: 1.392.1 generationVersion: 2.411.9 - releaseVersion: 0.20.2 - configChecksum: 82c9b6fbb4fc184a9c738a1c06d6e1c7 + releaseVersion: 0.21.0 + configChecksum: 44a3ea9646a2c078d60b643b0bcf56da repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -20,6 +20,7 @@ features: deprecations: 2.81.1 downloadStreams: 0.1.1 envVarSecurityUsage: 0.1.1 + errors: 2.82.2 flattening: 2.81.1 globalSecurity: 2.82.11 globalSecurityCallbacks: 0.1.0 @@ -43,153 +44,295 @@ generatedFiles: - USAGE.md - docs/lib/utils/retryconfig.md - docs/sdk/models/errors/addplaylistcontentserrors.md + - docs/sdk/models/errors/addplaylistcontentsplaylistserrors.md + - docs/sdk/models/errors/addplaylistcontentsplaylistsresponsebody.md - docs/sdk/models/errors/addplaylistcontentsresponsebody.md - docs/sdk/models/errors/applyupdateserrors.md - docs/sdk/models/errors/applyupdatesresponsebody.md + - docs/sdk/models/errors/applyupdatesupdatererrors.md + - docs/sdk/models/errors/applyupdatesupdaterresponsebody.md + - docs/sdk/models/errors/cancelserveractivitiesactivitieserrors.md + - docs/sdk/models/errors/cancelserveractivitiesactivitiesresponsebody.md - docs/sdk/models/errors/cancelserveractivitieserrors.md - docs/sdk/models/errors/cancelserveractivitiesresponsebody.md - docs/sdk/models/errors/checkforupdateserrors.md - docs/sdk/models/errors/checkforupdatesresponsebody.md + - docs/sdk/models/errors/checkforupdatesupdatererrors.md + - docs/sdk/models/errors/checkforupdatesupdaterresponsebody.md - docs/sdk/models/errors/clearplaylistcontentserrors.md + - docs/sdk/models/errors/clearplaylistcontentsplaylistserrors.md + - docs/sdk/models/errors/clearplaylistcontentsplaylistsresponsebody.md - docs/sdk/models/errors/clearplaylistcontentsresponsebody.md - docs/sdk/models/errors/createplaylisterrors.md + - docs/sdk/models/errors/createplaylistplaylistserrors.md + - docs/sdk/models/errors/createplaylistplaylistsresponsebody.md - docs/sdk/models/errors/createplaylistresponsebody.md - docs/sdk/models/errors/deletelibraryerrors.md + - docs/sdk/models/errors/deletelibrarylibraryerrors.md + - docs/sdk/models/errors/deletelibrarylibraryresponsebody.md - docs/sdk/models/errors/deletelibraryresponsebody.md - docs/sdk/models/errors/deleteplaylisterrors.md + - docs/sdk/models/errors/deleteplaylistplaylistserrors.md + - docs/sdk/models/errors/deleteplaylistplaylistsresponsebody.md - docs/sdk/models/errors/deleteplaylistresponsebody.md - docs/sdk/models/errors/enablepapertrailerrors.md + - docs/sdk/models/errors/enablepapertraillogerrors.md + - docs/sdk/models/errors/enablepapertraillogresponsebody.md - docs/sdk/models/errors/enablepapertrailresponsebody.md - docs/sdk/models/errors/errors.md - docs/sdk/models/errors/getalllibrarieserrors.md + - docs/sdk/models/errors/getalllibrarieslibraryerrors.md + - docs/sdk/models/errors/getalllibrarieslibraryresponsebody.md - docs/sdk/models/errors/getalllibrariesresponsebody.md - docs/sdk/models/errors/getavailableclientserrors.md - docs/sdk/models/errors/getavailableclientsresponsebody.md + - docs/sdk/models/errors/getavailableclientsservererrors.md + - docs/sdk/models/errors/getavailableclientsserverresponsebody.md - docs/sdk/models/errors/getbandwidthstatisticserrors.md - docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md + - docs/sdk/models/errors/getbandwidthstatisticsstatisticserrors.md + - docs/sdk/models/errors/getbandwidthstatisticsstatisticsresponsebody.md - docs/sdk/models/errors/getbannerimageerrors.md + - docs/sdk/models/errors/getbannerimagemediaerrors.md + - docs/sdk/models/errors/getbannerimagemediaresponsebody.md - docs/sdk/models/errors/getbannerimageresponsebody.md + - docs/sdk/models/errors/getbutlertasksbutlererrors.md + - docs/sdk/models/errors/getbutlertasksbutlerresponsebody.md - docs/sdk/models/errors/getbutlertaskserrors.md - docs/sdk/models/errors/getbutlertasksresponsebody.md - docs/sdk/models/errors/getcompanionsdataerrors.md + - docs/sdk/models/errors/getcompanionsdataplexerrors.md + - docs/sdk/models/errors/getcompanionsdataplexresponsebody.md - docs/sdk/models/errors/getcompanionsdataresponsebody.md - docs/sdk/models/errors/getdeviceserrors.md - docs/sdk/models/errors/getdevicesresponsebody.md + - docs/sdk/models/errors/getdevicesservererrors.md + - docs/sdk/models/errors/getdevicesserverresponsebody.md - docs/sdk/models/errors/getfilehasherrors.md + - docs/sdk/models/errors/getfilehashlibraryerrors.md + - docs/sdk/models/errors/getfilehashlibraryresponsebody.md - docs/sdk/models/errors/getfilehashresponsebody.md - docs/sdk/models/errors/getgeodataerrors.md + - docs/sdk/models/errors/getgeodataplexerrors.md + - docs/sdk/models/errors/getgeodataplexresponsebody.md - docs/sdk/models/errors/getgeodataresponsebody.md - docs/sdk/models/errors/getglobalhubserrors.md + - docs/sdk/models/errors/getglobalhubshubserrors.md + - docs/sdk/models/errors/getglobalhubshubsresponsebody.md - docs/sdk/models/errors/getglobalhubsresponsebody.md - docs/sdk/models/errors/gethomedataerrors.md + - docs/sdk/models/errors/gethomedataplexerrors.md + - docs/sdk/models/errors/gethomedataplexresponsebody.md - docs/sdk/models/errors/gethomedataresponsebody.md - docs/sdk/models/errors/getlibrarydetailserrors.md + - docs/sdk/models/errors/getlibrarydetailslibraryerrors.md + - docs/sdk/models/errors/getlibrarydetailslibraryresponsebody.md - docs/sdk/models/errors/getlibrarydetailsresponsebody.md - docs/sdk/models/errors/getlibraryhubserrors.md + - docs/sdk/models/errors/getlibraryhubshubserrors.md + - docs/sdk/models/errors/getlibraryhubshubsresponsebody.md - docs/sdk/models/errors/getlibraryhubsresponsebody.md - docs/sdk/models/errors/getlibraryitemserrors.md + - docs/sdk/models/errors/getlibraryitemslibraryerrors.md + - docs/sdk/models/errors/getlibraryitemslibraryresponsebody.md - docs/sdk/models/errors/getlibraryitemsresponsebody.md - docs/sdk/models/errors/getmediaproviderserrors.md - docs/sdk/models/errors/getmediaprovidersresponsebody.md + - docs/sdk/models/errors/getmediaprovidersservererrors.md + - docs/sdk/models/errors/getmediaprovidersserverresponsebody.md - docs/sdk/models/errors/getmetadatabyratingkeyerrors.md + - docs/sdk/models/errors/getmetadatabyratingkeylibraryerrors.md + - docs/sdk/models/errors/getmetadatabyratingkeylibraryresponsebody.md - docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md - docs/sdk/models/errors/getmetadatachildrenerrors.md + - docs/sdk/models/errors/getmetadatachildrenlibraryerrors.md + - docs/sdk/models/errors/getmetadatachildrenlibraryresponsebody.md - docs/sdk/models/errors/getmetadatachildrenresponsebody.md - docs/sdk/models/errors/getmyplexaccounterrors.md - docs/sdk/models/errors/getmyplexaccountresponsebody.md + - docs/sdk/models/errors/getmyplexaccountservererrors.md + - docs/sdk/models/errors/getmyplexaccountserverresponsebody.md - docs/sdk/models/errors/getondeckerrors.md + - docs/sdk/models/errors/getondecklibraryerrors.md + - docs/sdk/models/errors/getondecklibraryresponsebody.md - docs/sdk/models/errors/getondeckresponsebody.md - docs/sdk/models/errors/getpinerrors.md - docs/sdk/models/errors/getpinresponsebody.md - docs/sdk/models/errors/getplaylistcontentserrors.md + - docs/sdk/models/errors/getplaylistcontentsplaylistserrors.md + - docs/sdk/models/errors/getplaylistcontentsplaylistsresponsebody.md - docs/sdk/models/errors/getplaylistcontentsresponsebody.md - docs/sdk/models/errors/getplaylisterrors.md + - docs/sdk/models/errors/getplaylistplaylistserrors.md + - docs/sdk/models/errors/getplaylistplaylistsresponsebody.md - docs/sdk/models/errors/getplaylistresponsebody.md - docs/sdk/models/errors/getplaylistserrors.md + - docs/sdk/models/errors/getplaylistsplaylistserrors.md + - docs/sdk/models/errors/getplaylistsplaylistsresponsebody.md - docs/sdk/models/errors/getplaylistsresponsebody.md - docs/sdk/models/errors/getrecentlyaddederrors.md + - docs/sdk/models/errors/getrecentlyaddedlibraryerrors.md + - docs/sdk/models/errors/getrecentlyaddedlibraryresponsebody.md - docs/sdk/models/errors/getrecentlyaddedresponsebody.md - docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md + - docs/sdk/models/errors/getrefreshlibrarymetadatalibraryerrors.md + - docs/sdk/models/errors/getrefreshlibrarymetadatalibraryresponsebody.md - docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md - docs/sdk/models/errors/getresizedphotoerrors.md - docs/sdk/models/errors/getresizedphotoresponsebody.md + - docs/sdk/models/errors/getresizedphotoservererrors.md + - docs/sdk/models/errors/getresizedphotoserverresponsebody.md - docs/sdk/models/errors/getresourcesstatisticserrors.md - docs/sdk/models/errors/getresourcesstatisticsresponsebody.md + - docs/sdk/models/errors/getresourcesstatisticsstatisticserrors.md + - docs/sdk/models/errors/getresourcesstatisticsstatisticsresponsebody.md - docs/sdk/models/errors/getsearchlibraryerrors.md + - docs/sdk/models/errors/getsearchlibrarylibraryerrors.md + - docs/sdk/models/errors/getsearchlibrarylibraryresponsebody.md - docs/sdk/models/errors/getsearchlibraryresponsebody.md - docs/sdk/models/errors/getsearchresultserrors.md - docs/sdk/models/errors/getsearchresultsresponsebody.md + - docs/sdk/models/errors/getsearchresultssearcherrors.md + - docs/sdk/models/errors/getsearchresultssearchresponsebody.md + - docs/sdk/models/errors/getserveractivitiesactivitieserrors.md + - docs/sdk/models/errors/getserveractivitiesactivitiesresponsebody.md - docs/sdk/models/errors/getserveractivitieserrors.md - docs/sdk/models/errors/getserveractivitiesresponsebody.md + - docs/sdk/models/errors/getservercapabilitieserrors.md - docs/sdk/models/errors/getservercapabilitiesresponsebody.md + - docs/sdk/models/errors/getservercapabilitiesserverresponsebody.md - docs/sdk/models/errors/getserveridentityresponsebody.md - docs/sdk/models/errors/getserverlisterrors.md - docs/sdk/models/errors/getserverlistresponsebody.md + - docs/sdk/models/errors/getserverlistservererrors.md + - docs/sdk/models/errors/getserverlistserverresponsebody.md - docs/sdk/models/errors/getserverpreferenceserrors.md - docs/sdk/models/errors/getserverpreferencesresponsebody.md + - docs/sdk/models/errors/getserverpreferencesservererrors.md + - docs/sdk/models/errors/getserverpreferencesserverresponsebody.md - docs/sdk/models/errors/getserverresourceserrors.md + - docs/sdk/models/errors/getserverresourcesplexerrors.md + - docs/sdk/models/errors/getserverresourcesplexresponsebody.md - docs/sdk/models/errors/getserverresourcesresponsebody.md - docs/sdk/models/errors/getsessionhistoryerrors.md - docs/sdk/models/errors/getsessionhistoryresponsebody.md + - docs/sdk/models/errors/getsessionhistorysessionserrors.md + - docs/sdk/models/errors/getsessionhistorysessionsresponsebody.md - docs/sdk/models/errors/getsessionserrors.md - docs/sdk/models/errors/getsessionsresponsebody.md + - docs/sdk/models/errors/getsessionssessionserrors.md + - docs/sdk/models/errors/getsessionssessionsresponsebody.md + - docs/sdk/models/errors/getsourceconnectioninformationauthenticationerrors.md + - docs/sdk/models/errors/getsourceconnectioninformationauthenticationresponsebody.md - docs/sdk/models/errors/getsourceconnectioninformationerrors.md - docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md - docs/sdk/models/errors/getstatisticserrors.md - docs/sdk/models/errors/getstatisticsresponsebody.md + - docs/sdk/models/errors/getstatisticsstatisticserrors.md + - docs/sdk/models/errors/getstatisticsstatisticsresponsebody.md - docs/sdk/models/errors/getthumbimageerrors.md + - docs/sdk/models/errors/getthumbimagemediaerrors.md + - docs/sdk/models/errors/getthumbimagemediaresponsebody.md - docs/sdk/models/errors/getthumbimageresponsebody.md - docs/sdk/models/errors/gettimelineerrors.md - docs/sdk/models/errors/gettimelineresponsebody.md + - docs/sdk/models/errors/gettimelinevideoerrors.md + - docs/sdk/models/errors/gettimelinevideoresponsebody.md - docs/sdk/models/errors/gettokenbypiniderrors.md - docs/sdk/models/errors/gettokenbypinidplexerrors.md - docs/sdk/models/errors/gettokenbypinidplexresponsebody.md - docs/sdk/models/errors/gettokenbypinidresponsebody.md - docs/sdk/models/errors/gettopwatchedcontenterrors.md + - docs/sdk/models/errors/gettopwatchedcontentlibraryerrors.md + - docs/sdk/models/errors/gettopwatchedcontentlibraryresponsebody.md - docs/sdk/models/errors/gettopwatchedcontentresponsebody.md - docs/sdk/models/errors/gettranscodesessionserrors.md - docs/sdk/models/errors/gettranscodesessionsresponsebody.md + - docs/sdk/models/errors/gettranscodesessionssessionserrors.md + - docs/sdk/models/errors/gettranscodesessionssessionsresponsebody.md + - docs/sdk/models/errors/gettransienttokenauthenticationerrors.md + - docs/sdk/models/errors/gettransienttokenauthenticationresponsebody.md - docs/sdk/models/errors/gettransienttokenerrors.md - docs/sdk/models/errors/gettransienttokenresponsebody.md - docs/sdk/models/errors/getupdatestatuserrors.md - docs/sdk/models/errors/getupdatestatusresponsebody.md + - docs/sdk/models/errors/getupdatestatusupdatererrors.md + - docs/sdk/models/errors/getupdatestatusupdaterresponsebody.md + - docs/sdk/models/errors/getuserdetailsauthenticationerrors.md + - docs/sdk/models/errors/getuserdetailsauthenticationresponsebody.md - docs/sdk/models/errors/getuserdetailserrors.md - docs/sdk/models/errors/getuserdetailsresponsebody.md - docs/sdk/models/errors/getuserfriendserrors.md + - docs/sdk/models/errors/getuserfriendsplexerrors.md + - docs/sdk/models/errors/getuserfriendsplexresponsebody.md - docs/sdk/models/errors/getuserfriendsresponsebody.md - docs/sdk/models/errors/getwatchlisterrors.md - docs/sdk/models/errors/getwatchlistresponsebody.md + - docs/sdk/models/errors/getwatchlistwatchlisterrors.md + - docs/sdk/models/errors/getwatchlistwatchlistresponsebody.md - docs/sdk/models/errors/loglineerrors.md + - docs/sdk/models/errors/loglinelogerrors.md + - docs/sdk/models/errors/loglinelogresponsebody.md - docs/sdk/models/errors/loglineresponsebody.md - docs/sdk/models/errors/logmultilineerrors.md + - docs/sdk/models/errors/logmultilinelogerrors.md + - docs/sdk/models/errors/logmultilinelogresponsebody.md - docs/sdk/models/errors/logmultilineresponsebody.md - docs/sdk/models/errors/markplayederrors.md + - docs/sdk/models/errors/markplayedmediaerrors.md + - docs/sdk/models/errors/markplayedmediaresponsebody.md - docs/sdk/models/errors/markplayedresponsebody.md - docs/sdk/models/errors/markunplayederrors.md + - docs/sdk/models/errors/markunplayedmediaerrors.md + - docs/sdk/models/errors/markunplayedmediaresponsebody.md - docs/sdk/models/errors/markunplayedresponsebody.md - docs/sdk/models/errors/performsearcherrors.md - docs/sdk/models/errors/performsearchresponsebody.md + - docs/sdk/models/errors/performsearchsearcherrors.md + - docs/sdk/models/errors/performsearchsearchresponsebody.md - docs/sdk/models/errors/performvoicesearcherrors.md - docs/sdk/models/errors/performvoicesearchresponsebody.md + - docs/sdk/models/errors/performvoicesearchsearcherrors.md + - docs/sdk/models/errors/performvoicesearchsearchresponsebody.md + - docs/sdk/models/errors/postuserssignindataauthenticationerrors.md + - docs/sdk/models/errors/postuserssignindataauthenticationresponsebody.md - docs/sdk/models/errors/postuserssignindataerrors.md - docs/sdk/models/errors/postuserssignindataresponsebody.md + - docs/sdk/models/errors/startalltasksbutlererrors.md + - docs/sdk/models/errors/startalltasksbutlerresponsebody.md - docs/sdk/models/errors/startalltaskserrors.md - docs/sdk/models/errors/startalltasksresponsebody.md + - docs/sdk/models/errors/starttaskbutlererrors.md + - docs/sdk/models/errors/starttaskbutlerresponsebody.md - docs/sdk/models/errors/starttaskerrors.md - docs/sdk/models/errors/starttaskresponsebody.md - docs/sdk/models/errors/startuniversaltranscodeerrors.md - docs/sdk/models/errors/startuniversaltranscoderesponsebody.md + - docs/sdk/models/errors/startuniversaltranscodevideoerrors.md + - docs/sdk/models/errors/startuniversaltranscodevideoresponsebody.md + - docs/sdk/models/errors/stopalltasksbutlererrors.md + - docs/sdk/models/errors/stopalltasksbutlerresponsebody.md - docs/sdk/models/errors/stopalltaskserrors.md - docs/sdk/models/errors/stopalltasksresponsebody.md + - docs/sdk/models/errors/stoptaskbutlererrors.md + - docs/sdk/models/errors/stoptaskbutlerresponsebody.md - docs/sdk/models/errors/stoptaskerrors.md - docs/sdk/models/errors/stoptaskresponsebody.md - docs/sdk/models/errors/stoptranscodesessionerrors.md - docs/sdk/models/errors/stoptranscodesessionresponsebody.md + - docs/sdk/models/errors/stoptranscodesessionsessionserrors.md + - docs/sdk/models/errors/stoptranscodesessionsessionsresponsebody.md - docs/sdk/models/errors/updateplaylisterrors.md + - docs/sdk/models/errors/updateplaylistplaylistserrors.md + - docs/sdk/models/errors/updateplaylistplaylistsresponsebody.md - docs/sdk/models/errors/updateplaylistresponsebody.md - docs/sdk/models/errors/updateplayprogresserrors.md + - docs/sdk/models/errors/updateplayprogressmediaerrors.md + - docs/sdk/models/errors/updateplayprogressmediaresponsebody.md - docs/sdk/models/errors/updateplayprogressresponsebody.md - docs/sdk/models/errors/uploadplaylisterrors.md + - docs/sdk/models/errors/uploadplaylistplaylistserrors.md + - docs/sdk/models/errors/uploadplaylistplaylistsresponsebody.md - docs/sdk/models/errors/uploadplaylistresponsebody.md - docs/sdk/models/operations/account.md - docs/sdk/models/operations/activity.md @@ -895,6 +1038,8 @@ examples: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} getServerPreferences: speakeasy-default-get-server-preferences: responses: @@ -902,6 +1047,8 @@ examples: application/json: {"MediaContainer": {"size": 161, "Setting": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getAvailableClients: speakeasy-default-get-available-clients: responses: @@ -909,6 +1056,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "Server": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getDevices: speakeasy-default-get-devices: responses: @@ -916,6 +1065,8 @@ examples: application/json: {"MediaContainer": {"size": 151, "identifier": "com.plexapp.system.devices", "Device": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-server-identity: speakeasy-default-get-server-identity: responses: @@ -930,6 +1081,8 @@ examples: application/json: {"MyPlex": {"authToken": "Z5v-PrNASDFpsaCi3CPK7", "username": "example.email@mail.com", "mappingState": "mapped", "signInState": "ok", "publicAddress": "140.20.68.140", "publicPort": 32400, "privateAddress": "10.10.10.47", "privatePort": 32400, "subscriptionFeatures": "federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks", "subscriptionState": "Active"}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getResizedPhoto: speakeasy-default-get-resized-photo: parameters: @@ -944,6 +1097,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-media-providers: speakeasy-default-get-media-providers: parameters: @@ -953,6 +1108,8 @@ examples: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} getServerList: speakeasy-default-get-server-list: responses: @@ -960,6 +1117,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "Server": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} markPlayed: speakeasy-default-mark-played: parameters: @@ -968,6 +1127,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} markUnplayed: speakeasy-default-mark-unplayed: parameters: @@ -976,6 +1137,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} updatePlayProgress: "": parameters: @@ -986,6 +1149,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-banner-image: speakeasy-default-get-banner-image: parameters: @@ -1001,6 +1166,8 @@ examples: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} get-thumb-image: speakeasy-default-get-thumb-image: parameters: @@ -1016,6 +1183,8 @@ examples: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} getTimeline: "": parameters: @@ -1033,6 +1202,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} startUniversalTranscode: "": parameters: @@ -1056,12 +1227,16 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getServerActivities: speakeasy-default-get-server-activities: responses: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} cancelServerActivities: "": parameters: @@ -1070,6 +1245,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getButlerTasks: speakeasy-default-get-butler-tasks: responses: @@ -1077,16 +1254,22 @@ examples: application/json: {"ButlerTasks": {"ButlerTask": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} startAllTasks: speakeasy-default-start-all-tasks: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} stopAllTasks: speakeasy-default-stop-all-tasks: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} startTask: speakeasy-default-start-task: parameters: @@ -1095,6 +1278,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} stopTask: speakeasy-default-stop-task: parameters: @@ -1103,6 +1288,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getCompanionsData: speakeasy-default-get-companions-data: responses: @@ -1110,6 +1297,8 @@ examples: application/json: [] "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getUserFriends: speakeasy-default-get-user-friends: responses: @@ -1117,6 +1306,8 @@ examples: application/json: [{"email": "username@email.com", "friendlyName": "exampleUser", "home": true, "id": 0, "restricted": false, "sharedServers": [], "sharedSources": [], "status": "accepted", "thumb": "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578", "title": "username123", "username": "username123", "uuid": "7d1916e0d8f6e76b"}] "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getGeoData: speakeasy-default-get-geo-data: responses: @@ -1124,6 +1315,8 @@ examples: application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getHomeData: speakeasy-default-get-home-data: responses: @@ -1131,6 +1324,8 @@ examples: application/json: {"id": 1841489, "name": "Blindkitty38's home", "guestUserID": 58815432, "guestUserUUID": "f3df4e01bfca0787"} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-server-resources: speakeasy-default-get-server-resources: parameters: @@ -1143,6 +1338,8 @@ examples: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} getPin: "": parameters: @@ -1173,6 +1370,8 @@ examples: application/json: {"MediaContainer": {"size": 8, "allowSync": true, "identifier": "com.plexapp.plugins.library", "Hub": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getLibraryHubs: speakeasy-default-get-library-hubs: parameters: @@ -1184,6 +1383,8 @@ examples: application/json: {"MediaContainer": {"size": 7, "allowSync": true, "identifier": "com.plexapp.plugins.library", "librarySectionID": 1, "librarySectionTitle": "Movies", "librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30", "Hub": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} performSearch: speakeasy-default-perform-search: parameters: @@ -1193,6 +1394,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} performVoiceSearch: speakeasy-default-perform-voice-search: parameters: @@ -1202,6 +1405,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getSearchResults: speakeasy-default-get-search-results: parameters: @@ -1212,6 +1417,8 @@ examples: application/json: {"MediaContainer": {"size": 26, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": [], "Provider": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getFileHash: speakeasy-default-get-file-hash: parameters: @@ -1220,6 +1427,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getRecentlyAdded: speakeasy-default-get-recently-added: parameters: @@ -1231,6 +1440,8 @@ examples: application/json: {"MediaContainer": {"size": 50, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-all-libraries: speakeasy-default-get-all-libraries: responses: @@ -1238,6 +1449,8 @@ examples: application/json: {"MediaContainer": {"size": 5, "allowSync": false, "title1": "Plex Library", "Directory": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-library-details: speakeasy-default-get-library-details: parameters: @@ -1249,6 +1462,8 @@ examples: application/json: {"MediaContainer": {"size": 29, "allowSync": false, "art": "/:/resources/movie-fanart.jpg", "content": "secondary", "identifier": "com.plexapp.plugins.library", "librarySectionID": 1, "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "thumb": "/:/resources/movie.png", "title1": "Movies", "viewGroup": "secondary", "viewMode": 65592, "Directory": [], "Type": [], "FieldType": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} deleteLibrary: speakeasy-default-delete-library: parameters: @@ -1257,6 +1472,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-library-items: "": parameters: @@ -1274,6 +1491,8 @@ examples: application/json: {"MediaContainer": {"size": 70, "allowSync": true, "art": "/:/resources/movie-fanart.jpg", "identifier": "com.plexapp.plugins.library", "librarySectionTitle": "Movies", "librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "thumb": "/:/resources/movie.png", "title1": "Movies", "title2": "Recently Released", "viewGroup": "movie", "viewMode": 65592, "mixedParents": true, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-refresh-library-metadata: speakeasy-default-get-refresh-library-metadata: parameters: @@ -1284,6 +1503,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-search-library: speakeasy-default-get-search-library: parameters: @@ -1296,6 +1517,8 @@ examples: application/json: {"MediaContainer": {"size": 2, "allowSync": false, "art": "/:/resources/show-fanart.jpg", "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "nocache": true, "thumb": "/:/resources/show.png", "title1": "TV Shows", "title2": "Search for ''", "viewGroup": "season", "viewMode": 65593, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-meta-data-by-rating-key: speakeasy-default-get-meta-data-by-rating-key: parameters: @@ -1306,6 +1529,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "allowSync": true, "identifier": "com.plexapp.plugins.library", "librarySectionID": 1, "librarySectionTitle": "Movies", "librarySectionUUID": "cfc899d7-3000-46f6-8489-b9592714ada5", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getMetadataChildren: include-stream: parameters: @@ -1318,6 +1543,8 @@ examples: application/json: {"MediaContainer": {"size": 3, "allowSync": true, "art": "/library/metadata/30072/art/1705739923", "identifier": "com.plexapp.plugins.library", "key": "30072", "librarySectionID": 2, "librarySectionTitle": "TV Shows", "librarySectionUUID": "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "nocache": true, "parentIndex": 1, "parentTitle": "Reacher", "parentYear": 2022, "summary": "When retired Military Police Officer Jack Reacher is arrested for a murder he did not commit, he finds himself in the middle of a deadly conspiracy full of dirty cops, shady businessmen, and scheming politicians. With nothing but his wits, he must figure out what is happening in Margrave, Georgia.", "theme": "/library/metadata/30072/theme/1705739923", "thumb": "/library/metadata/30072/thumb/1705739923", "title1": "TV Shows", "title2": "Reacher", "viewGroup": "season", "viewMode": 65593, "Directory": [{"leafCount": 16, "thumb": "/library/metadata/30072/thumb/1705739923", "viewedLeafCount": 16, "key": "/library/metadata/30072/allLeaves", "title": "All episodes"}], "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} include-stream-otheritem: parameters: path: @@ -1329,6 +1556,8 @@ examples: application/json: {"MediaContainer": {"size": 3, "allowSync": true, "art": "/library/metadata/30072/art/1705739923", "identifier": "com.plexapp.plugins.library", "key": "30072", "librarySectionID": 2, "librarySectionTitle": "TV Shows", "librarySectionUUID": "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "nocache": true, "parentIndex": 1, "parentTitle": "Reacher", "parentYear": 2022, "summary": "When retired Military Police Officer Jack Reacher is arrested for a murder he did not commit, he finds himself in the middle of a deadly conspiracy full of dirty cops, shady businessmen, and scheming politicians. With nothing but his wits, he must figure out what is happening in Margrave, Georgia.", "theme": "/library/metadata/30072/theme/1705739923", "thumb": "/library/metadata/30072/thumb/1705739923", "title1": "TV Shows", "title2": "Reacher", "viewGroup": "season", "viewMode": 65593, "Directory": [{"leafCount": 16, "thumb": "/library/metadata/30072/thumb/1705739923", "viewedLeafCount": 16, "key": "/library/metadata/30072/allLeaves", "title": "All episodes"}], "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} include-stream-otheritem-anotheritem: parameters: path: @@ -1340,6 +1569,8 @@ examples: application/json: {"MediaContainer": {"size": 3, "allowSync": true, "art": "/library/metadata/30072/art/1705739923", "identifier": "com.plexapp.plugins.library", "key": "30072", "librarySectionID": 2, "librarySectionTitle": "TV Shows", "librarySectionUUID": "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "nocache": true, "parentIndex": 1, "parentTitle": "Reacher", "parentYear": 2022, "summary": "When retired Military Police Officer Jack Reacher is arrested for a murder he did not commit, he finds himself in the middle of a deadly conspiracy full of dirty cops, shady businessmen, and scheming politicians. With nothing but his wits, he must figure out what is happening in Margrave, Georgia.", "theme": "/library/metadata/30072/theme/1705739923", "thumb": "/library/metadata/30072/thumb/1705739923", "title1": "TV Shows", "title2": "Reacher", "viewGroup": "season", "viewMode": 65593, "Directory": [{"leafCount": 16, "thumb": "/library/metadata/30072/thumb/1705739923", "viewedLeafCount": 16, "key": "/library/metadata/30072/allLeaves", "title": "All episodes"}], "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getTopWatchedContent: "": parameters: @@ -1351,6 +1582,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "allowSync": true, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getOnDeck: speakeasy-default-get-on-deck: responses: @@ -1358,6 +1591,8 @@ examples: application/json: {"MediaContainer": {"size": 16, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} get-watch-list: speakeasy-default-get-watch-list: parameters: @@ -1371,6 +1606,8 @@ examples: "401": application/json: {"errors": []} "200": {} + "400": + application/json: {"errors": []} logLine: speakeasy-default-log-line: parameters: @@ -1381,6 +1618,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} logMultiLine: speakeasy-default-log-multi-line: requestBody: @@ -1388,11 +1627,15 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} enablePaperTrail: speakeasy-default-enable-paper-trail: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} createPlaylist: speakeasy-default-create-playlist: parameters: @@ -1406,6 +1649,8 @@ examples: application/json: {"MediaContainer": {"size": 7, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getPlaylists: speakeasy-default-get-playlists: responses: @@ -1413,6 +1658,8 @@ examples: application/json: {"MediaContainer": {"size": 4, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getPlaylist: speakeasy-default-get-playlist: parameters: @@ -1423,6 +1670,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} deletePlaylist: speakeasy-default-delete-playlist: parameters: @@ -1431,6 +1680,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} updatePlaylist: speakeasy-default-update-playlist: parameters: @@ -1440,6 +1691,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getPlaylistContents: speakeasy-default-get-playlist-contents: parameters: @@ -1452,6 +1705,8 @@ examples: application/json: {"MediaContainer": {"size": 2, "composite": "/playlists/95/composite/1705717521", "duration": 282, "leafCount": 2, "playlistType": "video", "ratingKey": "95", "smart": true, "title": "Smart Movie Playlist", "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} clearPlaylistContents: speakeasy-default-clear-playlist-contents: parameters: @@ -1460,6 +1715,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} addPlaylistContents: speakeasy-default-add-playlist-contents: parameters: @@ -1473,6 +1730,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "leafCountAdded": 1, "leafCountRequested": 1, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} uploadPlaylist: speakeasy-default-upload-playlist: parameters: @@ -1482,6 +1741,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getTransientToken: speakeasy-default-get-transient-token: parameters: @@ -1491,6 +1752,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getSourceConnectionInformation: speakeasy-default-get-source-connection-information: parameters: @@ -1499,6 +1762,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getUserDetails: speakeasy-default-get-user-details: parameters: @@ -1509,15 +1774,19 @@ examples: application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": [], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1721154902, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": "1", "defaultSubtitleAccessibility": "1", "defaultSubtitleForced": "0", "watchedIndicator": "1", "mediaReviewsVisibility": 0}, "protected": false, "rememberExpiresAt": 1722364046, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f"} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} post-users-sign-in-data: speakeasy-default-post-users-sign-in-data: requestBody: - application/x-www-form-urlencoded: {"login": "username@email.com", "password": "password123"} + application/x-www-form-urlencoded: {"login": "username@email.com", "password": "password123", "verificationCode": "123456"} responses: "201": application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": [], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1721154902, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": "1", "defaultSubtitleAccessibility": "1", "defaultSubtitleForced": "0", "watchedIndicator": "1", "mediaReviewsVisibility": 0}, "protected": false, "rememberExpiresAt": 1722364046, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "pastSubscriptions": [{"id": "string", "mode": "string", "renewsAt": "string", "endsAt": "1556281940", "canceled": "0", "gracePeriod": "0", "onHold": "0", "canReactivate": "0", "canUpgrade": "0", "canDowngrade": "0", "canConvert": "0", "type": "plexpass", "transfer": "string", "state": "ended", "billing": {"paymentMethodId": 569045}}], "trials": [{}]} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getStatistics: "": parameters: @@ -1528,6 +1797,8 @@ examples: application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getResourcesStatistics: "": parameters: @@ -1538,6 +1809,8 @@ examples: application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getBandwidthStatistics: "": parameters: @@ -1548,6 +1821,8 @@ examples: application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getSessions: speakeasy-default-get-sessions: responses: @@ -1555,6 +1830,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getSessionHistory: viewed-at-descending: parameters: @@ -1567,6 +1844,8 @@ examples: application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} viewed-at-ascending: parameters: query: @@ -1578,6 +1857,8 @@ examples: application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} rating-descending: parameters: query: @@ -1589,6 +1870,8 @@ examples: application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} rating-ascending: parameters: query: @@ -1600,6 +1883,8 @@ examples: application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} "": parameters: query: @@ -1610,6 +1895,8 @@ examples: application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} ViewedAt: parameters: query: @@ -1621,6 +1908,8 @@ examples: application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getTranscodeSessions: speakeasy-default-get-transcode-sessions: responses: @@ -1628,6 +1917,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "TranscodeSession": [{"key": "vv3i2q2lax92qlzul1hbd4bx", "throttled": false, "complete": false, "progress": 1.7999999523162842, "size": -22, "speed": 25.100000381469727, "error": false, "duration": 1445695, "remaining": 53, "context": "streaming", "sourceVideoCodec": "h264", "sourceAudioCodec": "aac", "videoDecision": "transcode", "audioDecision": "transcode", "subtitleDecision": "burn", "protocol": "http", "container": "mkv", "videoCodec": "h264", "audioCodec": "opus", "audioChannels": 1, "transcodeHwRequested": true, "timeStamp": 1705895805.4919229, "maxOffsetAvailable": 29.53, "minOffsetAvailable": 3.003000020980835}]}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} stopTranscodeSession: speakeasy-default-stop-transcode-session: parameters: @@ -1636,6 +1927,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} getUpdateStatus: speakeasy-default-get-update-status: responses: @@ -1643,6 +1936,8 @@ examples: application/json: {"MediaContainer": {"size": 1, "canInstall": false, "checkedAt": 1705801232, "downloadURL": "https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx", "status": 0, "Release": [{"key": "https://plex.tv/updater/releases/5136", "version": "1.40.0.7775-456fbaf97", "added": "(PLEASE NOTE) This version makes changes to the database which will make it compatible only with server versions 1.31.2 or higher (released March 14). You will not be able to use your database on Plex Media Server versions lower than this after this update. Please also be patient when updating to this version if you have a very large database and allow the upgrade process to finish.\n(Collections) Items added to a collection from the item context menu will now lock the collection field on the items (#12793)\n(Music) Store track genres and add filtering options (#14653)\n(Music) Support ID3v2.4 null-separated tags for genres and release type (#14653)\n(View History) No longer create a view history entry for items marked as played (#10888)\n(Web) Updated to 4.118.0", "fixed": "(Agents) Changing a 'Other Videos' type library to the modern movie agent would fail (#14483)\n(Agents) It is possible that agents are not initialised during startup on rare occasions (#14654)\n(Agents) Remove the legacy OpenSubtitles agent which is no longer supported upstream (#14667)\n(Collection) Server could become unresponsive when collection membership changes (#14612)\n(DVR) Previously watched recordings could be deleted without being watched again (#13779)\n(Libraries) When performing fix match on items from certain music libraries the language would default to Arabic (#14501)\n(Library) The Content Rating not equal to None filter does not work (#14620)\n(Search) Album search results could contain all the album's tracks too (#14486)\n(Subtitles) In some circumstances, sidecar subtitles can show up for media when they're no longer available (#14674)\n(Transcoder) HW encoding would fail on devices with no rate control (#14222)\n(Transcoder) Software transcoding on Ubuntu could cause unexpected behavior (#14605)", "downloadURL": "https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx", "state": "notify"}]}} "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} checkForUpdates: "": parameters: @@ -1651,6 +1946,8 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} applyUpdates: "": parameters: @@ -1660,3 +1957,5 @@ examples: responses: "401": application/json: {"errors": []} + "400": + application/json: {"errors": []} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e3d631ba..a3504470 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.20.2 + version: 0.21.0 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 48feb9db..7110959c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.392.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:facfe37caadd8c575513e97dbc389d0e4d7166c5310c891edb352e65da942367 - sourceBlobDigest: sha256:f816f80e55e2eeb2a0c30bfb6bfe919f0a1a7284e996cec3a680aa661d39e3c6 + sourceRevisionDigest: sha256:06d2bc8083f30b9af5d98573735dcbe4b08efb34abd1829f8ce5d8a4a54f2a7c + sourceBlobDigest: sha256:ce28f3e6f2abc18cde6fb9e41093952eac55be5ad46b47b6f44fcdee1ca77eb2 tags: - latest - main @@ -11,10 +11,10 @@ targets: plexjs: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:facfe37caadd8c575513e97dbc389d0e4d7166c5310c891edb352e65da942367 - sourceBlobDigest: sha256:f816f80e55e2eeb2a0c30bfb6bfe919f0a1a7284e996cec3a680aa661d39e3c6 + sourceRevisionDigest: sha256:06d2bc8083f30b9af5d98573735dcbe4b08efb34abd1829f8ce5d8a4a54f2a7c + sourceBlobDigest: sha256:ce28f3e6f2abc18cde6fb9e41093952eac55be5ad46b47b6f44fcdee1ca77eb2 codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:7b7fc9efdcfb2e57e099c7a3da0c064c908a9862cec1a419d9785af091277b8c + codeSamplesRevisionDigest: sha256:0c01bede320a98337e05b7238a83fd5c86c385267b494116f034aac2236f4f31 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 11ae05d7..103be1e5 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ run(); * [getTransientToken](docs/sdks/authentication/README.md#gettransienttoken) - Get a Transient Token. * [getSourceConnectionInformation](docs/sdks/authentication/README.md#getsourceconnectioninformation) - Get Source Connection Information * [getUserDetails](docs/sdks/authentication/README.md#getuserdetails) - Get User Data By Token -* [postUsersSignInData](docs/sdks/authentication/README.md#postuserssignindata) - Get User SignIn Data +* [postUsersSignInData](docs/sdks/authentication/README.md#postuserssignindata) - Get User Sign In Data ### [statistics](docs/sdks/statistics/README.md) @@ -219,10 +219,11 @@ run(); All SDK methods return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type. -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| errors.GetServerCapabilitiesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| errors.GetServerCapabilitiesResponseBody | 400 | application/json | +| errors.GetServerCapabilitiesServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging. @@ -231,6 +232,7 @@ Validation errors can also occur when either method arguments or data returned f import { PlexAPI } from "@lukehagar/plexjs"; import { GetServerCapabilitiesResponseBody, + GetServerCapabilitiesServerResponseBody, SDKValidationError, } from "@lukehagar/plexjs/sdk/models/errors"; @@ -260,6 +262,11 @@ async function run() { console.error(err); return; } + case err instanceof GetServerCapabilitiesServerResponseBody: { + // Handle err.data$: GetServerCapabilitiesServerResponseBodyData + console.error(err); + return; + } default: { throw err; } diff --git a/RELEASES.md b/RELEASES.md index 53bf782d..7d921b79 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -958,4 +958,14 @@ Based on: ### Generated - [typescript v0.20.2] . ### Releases -- [NPM v0.20.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.20.2 - . \ No newline at end of file +- [NPM v0.20.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.20.2 - . + +## 2024-09-08 17:37:50 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.392.1 (2.411.9) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.21.0] . +### Releases +- [NPM v0.21.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.21.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index e135c4ec..2c30c173 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -440,7 +440,7 @@ actions: x-codeSamples: - lang: typescript label: data - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.postUsersSignInData(\"gcgzw5rz2xovp84b4vha3a40\", {\n login: \"username@email.com\",\n password: \"password123\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.postUsersSignInData(\"gcgzw5rz2xovp84b4vha3a40\", {\n login: \"username@email.com\",\n password: \"password123\",\n verificationCode: \"123456\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] update: x-codeSamples: diff --git a/docs/sdk/models/errors/addplaylistcontentserrors.md b/docs/sdk/models/errors/addplaylistcontentserrors.md index a03c2bfe..db5318ba 100644 --- a/docs/sdk/models/errors/addplaylistcontentserrors.md +++ b/docs/sdk/models/errors/addplaylistcontentserrors.md @@ -6,16 +6,16 @@ import { AddPlaylistContentsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: AddPlaylistContentsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/addplaylistcontentsplaylistserrors.md b/docs/sdk/models/errors/addplaylistcontentsplaylistserrors.md new file mode 100644 index 00000000..9255bb78 --- /dev/null +++ b/docs/sdk/models/errors/addplaylistcontentsplaylistserrors.md @@ -0,0 +1,21 @@ +# AddPlaylistContentsPlaylistsErrors + +## Example Usage + +```typescript +import { AddPlaylistContentsPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: AddPlaylistContentsPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/addplaylistcontentsplaylistsresponsebody.md b/docs/sdk/models/errors/addplaylistcontentsplaylistsresponsebody.md new file mode 100644 index 00000000..94451b36 --- /dev/null +++ b/docs/sdk/models/errors/addplaylistcontentsplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# AddPlaylistContentsPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { AddPlaylistContentsPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.AddPlaylistContentsPlaylistsErrors](../../../sdk/models/errors/addplaylistcontentsplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/addplaylistcontentsresponsebody.md b/docs/sdk/models/errors/addplaylistcontentsresponsebody.md index 6ed2d8b4..d9cf9e1d 100644 --- a/docs/sdk/models/errors/addplaylistcontentsresponsebody.md +++ b/docs/sdk/models/errors/addplaylistcontentsresponsebody.md @@ -1,6 +1,6 @@ # AddPlaylistContentsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/applyupdateserrors.md b/docs/sdk/models/errors/applyupdateserrors.md index d2beb67b..01327afa 100644 --- a/docs/sdk/models/errors/applyupdateserrors.md +++ b/docs/sdk/models/errors/applyupdateserrors.md @@ -6,16 +6,16 @@ import { ApplyUpdatesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: ApplyUpdatesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/applyupdatesresponsebody.md b/docs/sdk/models/errors/applyupdatesresponsebody.md index e0b2dad5..2198b1b8 100644 --- a/docs/sdk/models/errors/applyupdatesresponsebody.md +++ b/docs/sdk/models/errors/applyupdatesresponsebody.md @@ -1,6 +1,6 @@ # ApplyUpdatesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/applyupdatesupdatererrors.md b/docs/sdk/models/errors/applyupdatesupdatererrors.md new file mode 100644 index 00000000..be1092fc --- /dev/null +++ b/docs/sdk/models/errors/applyupdatesupdatererrors.md @@ -0,0 +1,21 @@ +# ApplyUpdatesUpdaterErrors + +## Example Usage + +```typescript +import { ApplyUpdatesUpdaterErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: ApplyUpdatesUpdaterErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/applyupdatesupdaterresponsebody.md b/docs/sdk/models/errors/applyupdatesupdaterresponsebody.md new file mode 100644 index 00000000..c4a36790 --- /dev/null +++ b/docs/sdk/models/errors/applyupdatesupdaterresponsebody.md @@ -0,0 +1,18 @@ +# ApplyUpdatesUpdaterResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { ApplyUpdatesUpdaterResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.ApplyUpdatesUpdaterErrors](../../../sdk/models/errors/applyupdatesupdatererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/cancelserveractivitiesactivitieserrors.md b/docs/sdk/models/errors/cancelserveractivitiesactivitieserrors.md new file mode 100644 index 00000000..eb458ef2 --- /dev/null +++ b/docs/sdk/models/errors/cancelserveractivitiesactivitieserrors.md @@ -0,0 +1,21 @@ +# CancelServerActivitiesActivitiesErrors + +## Example Usage + +```typescript +import { CancelServerActivitiesActivitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: CancelServerActivitiesActivitiesErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/cancelserveractivitiesactivitiesresponsebody.md b/docs/sdk/models/errors/cancelserveractivitiesactivitiesresponsebody.md new file mode 100644 index 00000000..6a9f1bae --- /dev/null +++ b/docs/sdk/models/errors/cancelserveractivitiesactivitiesresponsebody.md @@ -0,0 +1,18 @@ +# CancelServerActivitiesActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { CancelServerActivitiesActivitiesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.CancelServerActivitiesActivitiesErrors](../../../sdk/models/errors/cancelserveractivitiesactivitieserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/cancelserveractivitieserrors.md b/docs/sdk/models/errors/cancelserveractivitieserrors.md index 83a66c45..c34c4e2e 100644 --- a/docs/sdk/models/errors/cancelserveractivitieserrors.md +++ b/docs/sdk/models/errors/cancelserveractivitieserrors.md @@ -6,16 +6,16 @@ import { CancelServerActivitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: CancelServerActivitiesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md b/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md index 3d4a9ae3..cb80c072 100644 --- a/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md +++ b/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md @@ -1,6 +1,6 @@ # CancelServerActivitiesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/checkforupdateserrors.md b/docs/sdk/models/errors/checkforupdateserrors.md index 700b110f..49629c86 100644 --- a/docs/sdk/models/errors/checkforupdateserrors.md +++ b/docs/sdk/models/errors/checkforupdateserrors.md @@ -6,16 +6,16 @@ import { CheckForUpdatesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: CheckForUpdatesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/checkforupdatesresponsebody.md b/docs/sdk/models/errors/checkforupdatesresponsebody.md index 3f54697c..93b61ef9 100644 --- a/docs/sdk/models/errors/checkforupdatesresponsebody.md +++ b/docs/sdk/models/errors/checkforupdatesresponsebody.md @@ -1,6 +1,6 @@ # CheckForUpdatesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/checkforupdatesupdatererrors.md b/docs/sdk/models/errors/checkforupdatesupdatererrors.md new file mode 100644 index 00000000..c9cc6dbe --- /dev/null +++ b/docs/sdk/models/errors/checkforupdatesupdatererrors.md @@ -0,0 +1,21 @@ +# CheckForUpdatesUpdaterErrors + +## Example Usage + +```typescript +import { CheckForUpdatesUpdaterErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: CheckForUpdatesUpdaterErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/checkforupdatesupdaterresponsebody.md b/docs/sdk/models/errors/checkforupdatesupdaterresponsebody.md new file mode 100644 index 00000000..08683035 --- /dev/null +++ b/docs/sdk/models/errors/checkforupdatesupdaterresponsebody.md @@ -0,0 +1,18 @@ +# CheckForUpdatesUpdaterResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { CheckForUpdatesUpdaterResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.CheckForUpdatesUpdaterErrors](../../../sdk/models/errors/checkforupdatesupdatererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/clearplaylistcontentserrors.md b/docs/sdk/models/errors/clearplaylistcontentserrors.md index 67aa8e24..486c105e 100644 --- a/docs/sdk/models/errors/clearplaylistcontentserrors.md +++ b/docs/sdk/models/errors/clearplaylistcontentserrors.md @@ -6,16 +6,16 @@ import { ClearPlaylistContentsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: ClearPlaylistContentsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/clearplaylistcontentsplaylistserrors.md b/docs/sdk/models/errors/clearplaylistcontentsplaylistserrors.md new file mode 100644 index 00000000..9a3cf571 --- /dev/null +++ b/docs/sdk/models/errors/clearplaylistcontentsplaylistserrors.md @@ -0,0 +1,21 @@ +# ClearPlaylistContentsPlaylistsErrors + +## Example Usage + +```typescript +import { ClearPlaylistContentsPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: ClearPlaylistContentsPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/clearplaylistcontentsplaylistsresponsebody.md b/docs/sdk/models/errors/clearplaylistcontentsplaylistsresponsebody.md new file mode 100644 index 00000000..3980491f --- /dev/null +++ b/docs/sdk/models/errors/clearplaylistcontentsplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# ClearPlaylistContentsPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { ClearPlaylistContentsPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.ClearPlaylistContentsPlaylistsErrors](../../../sdk/models/errors/clearplaylistcontentsplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md b/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md index f89a849c..c650d754 100644 --- a/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md +++ b/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md @@ -1,6 +1,6 @@ # ClearPlaylistContentsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/createplaylisterrors.md b/docs/sdk/models/errors/createplaylisterrors.md index 82cd455f..09b7103d 100644 --- a/docs/sdk/models/errors/createplaylisterrors.md +++ b/docs/sdk/models/errors/createplaylisterrors.md @@ -6,16 +6,16 @@ import { CreatePlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: CreatePlaylistErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/createplaylistplaylistserrors.md b/docs/sdk/models/errors/createplaylistplaylistserrors.md new file mode 100644 index 00000000..ef8d6f1e --- /dev/null +++ b/docs/sdk/models/errors/createplaylistplaylistserrors.md @@ -0,0 +1,21 @@ +# CreatePlaylistPlaylistsErrors + +## Example Usage + +```typescript +import { CreatePlaylistPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: CreatePlaylistPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/createplaylistplaylistsresponsebody.md b/docs/sdk/models/errors/createplaylistplaylistsresponsebody.md new file mode 100644 index 00000000..4885387a --- /dev/null +++ b/docs/sdk/models/errors/createplaylistplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# CreatePlaylistPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { CreatePlaylistPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.CreatePlaylistPlaylistsErrors](../../../sdk/models/errors/createplaylistplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/createplaylistresponsebody.md b/docs/sdk/models/errors/createplaylistresponsebody.md index 3c1a6785..4da89f3a 100644 --- a/docs/sdk/models/errors/createplaylistresponsebody.md +++ b/docs/sdk/models/errors/createplaylistresponsebody.md @@ -1,6 +1,6 @@ # CreatePlaylistResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/deletelibraryerrors.md b/docs/sdk/models/errors/deletelibraryerrors.md index 6bda376b..8ed6a24e 100644 --- a/docs/sdk/models/errors/deletelibraryerrors.md +++ b/docs/sdk/models/errors/deletelibraryerrors.md @@ -6,16 +6,16 @@ import { DeleteLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: DeleteLibraryErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/deletelibrarylibraryerrors.md b/docs/sdk/models/errors/deletelibrarylibraryerrors.md new file mode 100644 index 00000000..db79b834 --- /dev/null +++ b/docs/sdk/models/errors/deletelibrarylibraryerrors.md @@ -0,0 +1,21 @@ +# DeleteLibraryLibraryErrors + +## Example Usage + +```typescript +import { DeleteLibraryLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: DeleteLibraryLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/deletelibrarylibraryresponsebody.md b/docs/sdk/models/errors/deletelibrarylibraryresponsebody.md new file mode 100644 index 00000000..66f67ee5 --- /dev/null +++ b/docs/sdk/models/errors/deletelibrarylibraryresponsebody.md @@ -0,0 +1,18 @@ +# DeleteLibraryLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { DeleteLibraryLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.DeleteLibraryLibraryErrors](../../../sdk/models/errors/deletelibrarylibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/deletelibraryresponsebody.md b/docs/sdk/models/errors/deletelibraryresponsebody.md index 96406ce4..a829a818 100644 --- a/docs/sdk/models/errors/deletelibraryresponsebody.md +++ b/docs/sdk/models/errors/deletelibraryresponsebody.md @@ -1,6 +1,6 @@ # DeleteLibraryResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/deleteplaylisterrors.md b/docs/sdk/models/errors/deleteplaylisterrors.md index 57a102af..0f4d9876 100644 --- a/docs/sdk/models/errors/deleteplaylisterrors.md +++ b/docs/sdk/models/errors/deleteplaylisterrors.md @@ -6,16 +6,16 @@ import { DeletePlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: DeletePlaylistErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/deleteplaylistplaylistserrors.md b/docs/sdk/models/errors/deleteplaylistplaylistserrors.md new file mode 100644 index 00000000..847f8975 --- /dev/null +++ b/docs/sdk/models/errors/deleteplaylistplaylistserrors.md @@ -0,0 +1,21 @@ +# DeletePlaylistPlaylistsErrors + +## Example Usage + +```typescript +import { DeletePlaylistPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: DeletePlaylistPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/deleteplaylistplaylistsresponsebody.md b/docs/sdk/models/errors/deleteplaylistplaylistsresponsebody.md new file mode 100644 index 00000000..fb814dc7 --- /dev/null +++ b/docs/sdk/models/errors/deleteplaylistplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# DeletePlaylistPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { DeletePlaylistPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.DeletePlaylistPlaylistsErrors](../../../sdk/models/errors/deleteplaylistplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/deleteplaylistresponsebody.md b/docs/sdk/models/errors/deleteplaylistresponsebody.md index 8e7e9be1..dc654e54 100644 --- a/docs/sdk/models/errors/deleteplaylistresponsebody.md +++ b/docs/sdk/models/errors/deleteplaylistresponsebody.md @@ -1,6 +1,6 @@ # DeletePlaylistResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/enablepapertrailerrors.md b/docs/sdk/models/errors/enablepapertrailerrors.md index e94ef65c..fde05661 100644 --- a/docs/sdk/models/errors/enablepapertrailerrors.md +++ b/docs/sdk/models/errors/enablepapertrailerrors.md @@ -6,16 +6,16 @@ import { EnablePaperTrailErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: EnablePaperTrailErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/enablepapertraillogerrors.md b/docs/sdk/models/errors/enablepapertraillogerrors.md new file mode 100644 index 00000000..7f00314f --- /dev/null +++ b/docs/sdk/models/errors/enablepapertraillogerrors.md @@ -0,0 +1,21 @@ +# EnablePaperTrailLogErrors + +## Example Usage + +```typescript +import { EnablePaperTrailLogErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: EnablePaperTrailLogErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/enablepapertraillogresponsebody.md b/docs/sdk/models/errors/enablepapertraillogresponsebody.md new file mode 100644 index 00000000..b3292876 --- /dev/null +++ b/docs/sdk/models/errors/enablepapertraillogresponsebody.md @@ -0,0 +1,18 @@ +# EnablePaperTrailLogResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { EnablePaperTrailLogResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.EnablePaperTrailLogErrors](../../../sdk/models/errors/enablepapertraillogerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/enablepapertrailresponsebody.md b/docs/sdk/models/errors/enablepapertrailresponsebody.md index 34487f50..7bba24da 100644 --- a/docs/sdk/models/errors/enablepapertrailresponsebody.md +++ b/docs/sdk/models/errors/enablepapertrailresponsebody.md @@ -1,6 +1,6 @@ # EnablePaperTrailResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/errors.md b/docs/sdk/models/errors/errors.md index 7c2f4df2..c3628c37 100644 --- a/docs/sdk/models/errors/errors.md +++ b/docs/sdk/models/errors/errors.md @@ -6,16 +6,16 @@ import { Errors } from "@lukehagar/plexjs/sdk/models/errors"; let value: Errors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getalllibrarieserrors.md b/docs/sdk/models/errors/getalllibrarieserrors.md index c5c524ef..bd15413e 100644 --- a/docs/sdk/models/errors/getalllibrarieserrors.md +++ b/docs/sdk/models/errors/getalllibrarieserrors.md @@ -6,16 +6,16 @@ import { GetAllLibrariesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetAllLibrariesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getalllibrarieslibraryerrors.md b/docs/sdk/models/errors/getalllibrarieslibraryerrors.md new file mode 100644 index 00000000..db5f9ec1 --- /dev/null +++ b/docs/sdk/models/errors/getalllibrarieslibraryerrors.md @@ -0,0 +1,21 @@ +# GetAllLibrariesLibraryErrors + +## Example Usage + +```typescript +import { GetAllLibrariesLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetAllLibrariesLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getalllibrarieslibraryresponsebody.md b/docs/sdk/models/errors/getalllibrarieslibraryresponsebody.md new file mode 100644 index 00000000..d5c29c75 --- /dev/null +++ b/docs/sdk/models/errors/getalllibrarieslibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetAllLibrariesLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetAllLibrariesLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetAllLibrariesLibraryErrors](../../../sdk/models/errors/getalllibrarieslibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getalllibrariesresponsebody.md b/docs/sdk/models/errors/getalllibrariesresponsebody.md index ca5603e9..02e0f46f 100644 --- a/docs/sdk/models/errors/getalllibrariesresponsebody.md +++ b/docs/sdk/models/errors/getalllibrariesresponsebody.md @@ -1,6 +1,6 @@ # GetAllLibrariesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getavailableclientserrors.md b/docs/sdk/models/errors/getavailableclientserrors.md index 52cefda2..b9bc257a 100644 --- a/docs/sdk/models/errors/getavailableclientserrors.md +++ b/docs/sdk/models/errors/getavailableclientserrors.md @@ -6,16 +6,16 @@ import { GetAvailableClientsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetAvailableClientsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getavailableclientsresponsebody.md b/docs/sdk/models/errors/getavailableclientsresponsebody.md index b54901b5..7e7477cb 100644 --- a/docs/sdk/models/errors/getavailableclientsresponsebody.md +++ b/docs/sdk/models/errors/getavailableclientsresponsebody.md @@ -1,6 +1,6 @@ # GetAvailableClientsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getavailableclientsservererrors.md b/docs/sdk/models/errors/getavailableclientsservererrors.md new file mode 100644 index 00000000..cfbb5fe2 --- /dev/null +++ b/docs/sdk/models/errors/getavailableclientsservererrors.md @@ -0,0 +1,21 @@ +# GetAvailableClientsServerErrors + +## Example Usage + +```typescript +import { GetAvailableClientsServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetAvailableClientsServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getavailableclientsserverresponsebody.md b/docs/sdk/models/errors/getavailableclientsserverresponsebody.md new file mode 100644 index 00000000..c254a5fa --- /dev/null +++ b/docs/sdk/models/errors/getavailableclientsserverresponsebody.md @@ -0,0 +1,18 @@ +# GetAvailableClientsServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetAvailableClientsServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetAvailableClientsServerErrors](../../../sdk/models/errors/getavailableclientsservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbandwidthstatisticserrors.md b/docs/sdk/models/errors/getbandwidthstatisticserrors.md index da9f9b6a..6bf34df8 100644 --- a/docs/sdk/models/errors/getbandwidthstatisticserrors.md +++ b/docs/sdk/models/errors/getbandwidthstatisticserrors.md @@ -6,16 +6,16 @@ import { GetBandwidthStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetBandwidthStatisticsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md b/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md index f0eb77ed..5b980354 100644 --- a/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md +++ b/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md @@ -1,6 +1,6 @@ # GetBandwidthStatisticsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getbandwidthstatisticsstatisticserrors.md b/docs/sdk/models/errors/getbandwidthstatisticsstatisticserrors.md new file mode 100644 index 00000000..05e25d27 --- /dev/null +++ b/docs/sdk/models/errors/getbandwidthstatisticsstatisticserrors.md @@ -0,0 +1,21 @@ +# GetBandwidthStatisticsStatisticsErrors + +## Example Usage + +```typescript +import { GetBandwidthStatisticsStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetBandwidthStatisticsStatisticsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbandwidthstatisticsstatisticsresponsebody.md b/docs/sdk/models/errors/getbandwidthstatisticsstatisticsresponsebody.md new file mode 100644 index 00000000..86c8eac4 --- /dev/null +++ b/docs/sdk/models/errors/getbandwidthstatisticsstatisticsresponsebody.md @@ -0,0 +1,18 @@ +# GetBandwidthStatisticsStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetBandwidthStatisticsStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetBandwidthStatisticsStatisticsErrors](../../../sdk/models/errors/getbandwidthstatisticsstatisticserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbannerimageerrors.md b/docs/sdk/models/errors/getbannerimageerrors.md index 3531ce0f..2c609b06 100644 --- a/docs/sdk/models/errors/getbannerimageerrors.md +++ b/docs/sdk/models/errors/getbannerimageerrors.md @@ -6,16 +6,16 @@ import { GetBannerImageErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetBannerImageErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbannerimagemediaerrors.md b/docs/sdk/models/errors/getbannerimagemediaerrors.md new file mode 100644 index 00000000..620ab46a --- /dev/null +++ b/docs/sdk/models/errors/getbannerimagemediaerrors.md @@ -0,0 +1,21 @@ +# GetBannerImageMediaErrors + +## Example Usage + +```typescript +import { GetBannerImageMediaErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetBannerImageMediaErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbannerimagemediaresponsebody.md b/docs/sdk/models/errors/getbannerimagemediaresponsebody.md new file mode 100644 index 00000000..74ce5da4 --- /dev/null +++ b/docs/sdk/models/errors/getbannerimagemediaresponsebody.md @@ -0,0 +1,18 @@ +# GetBannerImageMediaResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetBannerImageMediaResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetBannerImageMediaErrors](../../../sdk/models/errors/getbannerimagemediaerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbannerimageresponsebody.md b/docs/sdk/models/errors/getbannerimageresponsebody.md index b5bdc4c3..2b9369d8 100644 --- a/docs/sdk/models/errors/getbannerimageresponsebody.md +++ b/docs/sdk/models/errors/getbannerimageresponsebody.md @@ -1,6 +1,6 @@ # GetBannerImageResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getbutlertasksbutlererrors.md b/docs/sdk/models/errors/getbutlertasksbutlererrors.md new file mode 100644 index 00000000..c7c28fbe --- /dev/null +++ b/docs/sdk/models/errors/getbutlertasksbutlererrors.md @@ -0,0 +1,21 @@ +# GetButlerTasksButlerErrors + +## Example Usage + +```typescript +import { GetButlerTasksButlerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetButlerTasksButlerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbutlertasksbutlerresponsebody.md b/docs/sdk/models/errors/getbutlertasksbutlerresponsebody.md new file mode 100644 index 00000000..f818412d --- /dev/null +++ b/docs/sdk/models/errors/getbutlertasksbutlerresponsebody.md @@ -0,0 +1,18 @@ +# GetButlerTasksButlerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetButlerTasksButlerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetButlerTasksButlerErrors](../../../sdk/models/errors/getbutlertasksbutlererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbutlertaskserrors.md b/docs/sdk/models/errors/getbutlertaskserrors.md index 22c1e088..2dd61a9e 100644 --- a/docs/sdk/models/errors/getbutlertaskserrors.md +++ b/docs/sdk/models/errors/getbutlertaskserrors.md @@ -6,16 +6,16 @@ import { GetButlerTasksErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetButlerTasksErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getbutlertasksresponsebody.md b/docs/sdk/models/errors/getbutlertasksresponsebody.md index 71ed0683..4ac892eb 100644 --- a/docs/sdk/models/errors/getbutlertasksresponsebody.md +++ b/docs/sdk/models/errors/getbutlertasksresponsebody.md @@ -1,6 +1,6 @@ # GetButlerTasksResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getcompanionsdataerrors.md b/docs/sdk/models/errors/getcompanionsdataerrors.md index a38b0035..6608dc6e 100644 --- a/docs/sdk/models/errors/getcompanionsdataerrors.md +++ b/docs/sdk/models/errors/getcompanionsdataerrors.md @@ -6,16 +6,16 @@ import { GetCompanionsDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetCompanionsDataErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getcompanionsdataplexerrors.md b/docs/sdk/models/errors/getcompanionsdataplexerrors.md new file mode 100644 index 00000000..90493fd4 --- /dev/null +++ b/docs/sdk/models/errors/getcompanionsdataplexerrors.md @@ -0,0 +1,21 @@ +# GetCompanionsDataPlexErrors + +## Example Usage + +```typescript +import { GetCompanionsDataPlexErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetCompanionsDataPlexErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getcompanionsdataplexresponsebody.md b/docs/sdk/models/errors/getcompanionsdataplexresponsebody.md new file mode 100644 index 00000000..59a98ff6 --- /dev/null +++ b/docs/sdk/models/errors/getcompanionsdataplexresponsebody.md @@ -0,0 +1,18 @@ +# GetCompanionsDataPlexResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetCompanionsDataPlexResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetCompanionsDataPlexErrors](../../../sdk/models/errors/getcompanionsdataplexerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getcompanionsdataresponsebody.md b/docs/sdk/models/errors/getcompanionsdataresponsebody.md index 9be00c54..8146af27 100644 --- a/docs/sdk/models/errors/getcompanionsdataresponsebody.md +++ b/docs/sdk/models/errors/getcompanionsdataresponsebody.md @@ -1,6 +1,6 @@ # GetCompanionsDataResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getdeviceserrors.md b/docs/sdk/models/errors/getdeviceserrors.md index 9e415649..dc8080c4 100644 --- a/docs/sdk/models/errors/getdeviceserrors.md +++ b/docs/sdk/models/errors/getdeviceserrors.md @@ -6,16 +6,16 @@ import { GetDevicesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetDevicesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getdevicesresponsebody.md b/docs/sdk/models/errors/getdevicesresponsebody.md index 035f3908..d2ddf941 100644 --- a/docs/sdk/models/errors/getdevicesresponsebody.md +++ b/docs/sdk/models/errors/getdevicesresponsebody.md @@ -1,6 +1,6 @@ # GetDevicesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getdevicesservererrors.md b/docs/sdk/models/errors/getdevicesservererrors.md new file mode 100644 index 00000000..04f9c2e3 --- /dev/null +++ b/docs/sdk/models/errors/getdevicesservererrors.md @@ -0,0 +1,21 @@ +# GetDevicesServerErrors + +## Example Usage + +```typescript +import { GetDevicesServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetDevicesServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getdevicesserverresponsebody.md b/docs/sdk/models/errors/getdevicesserverresponsebody.md new file mode 100644 index 00000000..b5a4d1cc --- /dev/null +++ b/docs/sdk/models/errors/getdevicesserverresponsebody.md @@ -0,0 +1,18 @@ +# GetDevicesServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetDevicesServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetDevicesServerErrors](../../../sdk/models/errors/getdevicesservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getfilehasherrors.md b/docs/sdk/models/errors/getfilehasherrors.md index 186f87f5..eabfd280 100644 --- a/docs/sdk/models/errors/getfilehasherrors.md +++ b/docs/sdk/models/errors/getfilehasherrors.md @@ -6,16 +6,16 @@ import { GetFileHashErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetFileHashErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getfilehashlibraryerrors.md b/docs/sdk/models/errors/getfilehashlibraryerrors.md new file mode 100644 index 00000000..164e9a10 --- /dev/null +++ b/docs/sdk/models/errors/getfilehashlibraryerrors.md @@ -0,0 +1,21 @@ +# GetFileHashLibraryErrors + +## Example Usage + +```typescript +import { GetFileHashLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetFileHashLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getfilehashlibraryresponsebody.md b/docs/sdk/models/errors/getfilehashlibraryresponsebody.md new file mode 100644 index 00000000..48780fad --- /dev/null +++ b/docs/sdk/models/errors/getfilehashlibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetFileHashLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetFileHashLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetFileHashLibraryErrors](../../../sdk/models/errors/getfilehashlibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getfilehashresponsebody.md b/docs/sdk/models/errors/getfilehashresponsebody.md index 0f4b232d..dd272d6e 100644 --- a/docs/sdk/models/errors/getfilehashresponsebody.md +++ b/docs/sdk/models/errors/getfilehashresponsebody.md @@ -1,6 +1,6 @@ # GetFileHashResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getgeodataerrors.md b/docs/sdk/models/errors/getgeodataerrors.md index 1bae50ff..2352aac2 100644 --- a/docs/sdk/models/errors/getgeodataerrors.md +++ b/docs/sdk/models/errors/getgeodataerrors.md @@ -6,16 +6,16 @@ import { GetGeoDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetGeoDataErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getgeodataplexerrors.md b/docs/sdk/models/errors/getgeodataplexerrors.md new file mode 100644 index 00000000..fed15b62 --- /dev/null +++ b/docs/sdk/models/errors/getgeodataplexerrors.md @@ -0,0 +1,21 @@ +# GetGeoDataPlexErrors + +## Example Usage + +```typescript +import { GetGeoDataPlexErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetGeoDataPlexErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getgeodataplexresponsebody.md b/docs/sdk/models/errors/getgeodataplexresponsebody.md new file mode 100644 index 00000000..7834f73a --- /dev/null +++ b/docs/sdk/models/errors/getgeodataplexresponsebody.md @@ -0,0 +1,18 @@ +# GetGeoDataPlexResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetGeoDataPlexResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.GetGeoDataPlexErrors](../../../sdk/models/errors/getgeodataplexerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getgeodataresponsebody.md b/docs/sdk/models/errors/getgeodataresponsebody.md index 9f77816e..a8c611d5 100644 --- a/docs/sdk/models/errors/getgeodataresponsebody.md +++ b/docs/sdk/models/errors/getgeodataresponsebody.md @@ -1,6 +1,6 @@ # GetGeoDataResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getglobalhubserrors.md b/docs/sdk/models/errors/getglobalhubserrors.md index 9d99fe9c..99f1875b 100644 --- a/docs/sdk/models/errors/getglobalhubserrors.md +++ b/docs/sdk/models/errors/getglobalhubserrors.md @@ -6,16 +6,16 @@ import { GetGlobalHubsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetGlobalHubsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getglobalhubshubserrors.md b/docs/sdk/models/errors/getglobalhubshubserrors.md new file mode 100644 index 00000000..effa0993 --- /dev/null +++ b/docs/sdk/models/errors/getglobalhubshubserrors.md @@ -0,0 +1,21 @@ +# GetGlobalHubsHubsErrors + +## Example Usage + +```typescript +import { GetGlobalHubsHubsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetGlobalHubsHubsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getglobalhubshubsresponsebody.md b/docs/sdk/models/errors/getglobalhubshubsresponsebody.md new file mode 100644 index 00000000..7b77a9be --- /dev/null +++ b/docs/sdk/models/errors/getglobalhubshubsresponsebody.md @@ -0,0 +1,18 @@ +# GetGlobalHubsHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetGlobalHubsHubsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.GetGlobalHubsHubsErrors](../../../sdk/models/errors/getglobalhubshubserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getglobalhubsresponsebody.md b/docs/sdk/models/errors/getglobalhubsresponsebody.md index 14dc02fb..28513c82 100644 --- a/docs/sdk/models/errors/getglobalhubsresponsebody.md +++ b/docs/sdk/models/errors/getglobalhubsresponsebody.md @@ -1,6 +1,6 @@ # GetGlobalHubsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/gethomedataerrors.md b/docs/sdk/models/errors/gethomedataerrors.md index 8b5bec74..96783a5c 100644 --- a/docs/sdk/models/errors/gethomedataerrors.md +++ b/docs/sdk/models/errors/gethomedataerrors.md @@ -6,16 +6,16 @@ import { GetHomeDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetHomeDataErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gethomedataplexerrors.md b/docs/sdk/models/errors/gethomedataplexerrors.md new file mode 100644 index 00000000..c71fb2e0 --- /dev/null +++ b/docs/sdk/models/errors/gethomedataplexerrors.md @@ -0,0 +1,21 @@ +# GetHomeDataPlexErrors + +## Example Usage + +```typescript +import { GetHomeDataPlexErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetHomeDataPlexErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gethomedataplexresponsebody.md b/docs/sdk/models/errors/gethomedataplexresponsebody.md new file mode 100644 index 00000000..74091ac6 --- /dev/null +++ b/docs/sdk/models/errors/gethomedataplexresponsebody.md @@ -0,0 +1,18 @@ +# GetHomeDataPlexResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetHomeDataPlexResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.GetHomeDataPlexErrors](../../../sdk/models/errors/gethomedataplexerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gethomedataresponsebody.md b/docs/sdk/models/errors/gethomedataresponsebody.md index 1601583b..ddeb6fb9 100644 --- a/docs/sdk/models/errors/gethomedataresponsebody.md +++ b/docs/sdk/models/errors/gethomedataresponsebody.md @@ -1,6 +1,6 @@ # GetHomeDataResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getlibrarydetailserrors.md b/docs/sdk/models/errors/getlibrarydetailserrors.md index f562d1c2..ec43c6dd 100644 --- a/docs/sdk/models/errors/getlibrarydetailserrors.md +++ b/docs/sdk/models/errors/getlibrarydetailserrors.md @@ -6,16 +6,16 @@ import { GetLibraryDetailsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetLibraryDetailsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibrarydetailslibraryerrors.md b/docs/sdk/models/errors/getlibrarydetailslibraryerrors.md new file mode 100644 index 00000000..7e56ea9f --- /dev/null +++ b/docs/sdk/models/errors/getlibrarydetailslibraryerrors.md @@ -0,0 +1,21 @@ +# GetLibraryDetailsLibraryErrors + +## Example Usage + +```typescript +import { GetLibraryDetailsLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetLibraryDetailsLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibrarydetailslibraryresponsebody.md b/docs/sdk/models/errors/getlibrarydetailslibraryresponsebody.md new file mode 100644 index 00000000..d266bafe --- /dev/null +++ b/docs/sdk/models/errors/getlibrarydetailslibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetLibraryDetailsLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetLibraryDetailsLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetLibraryDetailsLibraryErrors](../../../sdk/models/errors/getlibrarydetailslibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibrarydetailsresponsebody.md b/docs/sdk/models/errors/getlibrarydetailsresponsebody.md index 7e6af0c3..64769013 100644 --- a/docs/sdk/models/errors/getlibrarydetailsresponsebody.md +++ b/docs/sdk/models/errors/getlibrarydetailsresponsebody.md @@ -1,6 +1,6 @@ # GetLibraryDetailsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getlibraryhubserrors.md b/docs/sdk/models/errors/getlibraryhubserrors.md index bb4a99f5..81c17f04 100644 --- a/docs/sdk/models/errors/getlibraryhubserrors.md +++ b/docs/sdk/models/errors/getlibraryhubserrors.md @@ -6,16 +6,16 @@ import { GetLibraryHubsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetLibraryHubsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibraryhubshubserrors.md b/docs/sdk/models/errors/getlibraryhubshubserrors.md new file mode 100644 index 00000000..08cf3adc --- /dev/null +++ b/docs/sdk/models/errors/getlibraryhubshubserrors.md @@ -0,0 +1,21 @@ +# GetLibraryHubsHubsErrors + +## Example Usage + +```typescript +import { GetLibraryHubsHubsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetLibraryHubsHubsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibraryhubshubsresponsebody.md b/docs/sdk/models/errors/getlibraryhubshubsresponsebody.md new file mode 100644 index 00000000..cd57f11e --- /dev/null +++ b/docs/sdk/models/errors/getlibraryhubshubsresponsebody.md @@ -0,0 +1,18 @@ +# GetLibraryHubsHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetLibraryHubsHubsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetLibraryHubsHubsErrors](../../../sdk/models/errors/getlibraryhubshubserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibraryhubsresponsebody.md b/docs/sdk/models/errors/getlibraryhubsresponsebody.md index 623a124b..71da82d6 100644 --- a/docs/sdk/models/errors/getlibraryhubsresponsebody.md +++ b/docs/sdk/models/errors/getlibraryhubsresponsebody.md @@ -1,6 +1,6 @@ # GetLibraryHubsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getlibraryitemserrors.md b/docs/sdk/models/errors/getlibraryitemserrors.md index 53630905..3be58099 100644 --- a/docs/sdk/models/errors/getlibraryitemserrors.md +++ b/docs/sdk/models/errors/getlibraryitemserrors.md @@ -6,16 +6,16 @@ import { GetLibraryItemsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetLibraryItemsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibraryitemslibraryerrors.md b/docs/sdk/models/errors/getlibraryitemslibraryerrors.md new file mode 100644 index 00000000..0e89c9cc --- /dev/null +++ b/docs/sdk/models/errors/getlibraryitemslibraryerrors.md @@ -0,0 +1,21 @@ +# GetLibraryItemsLibraryErrors + +## Example Usage + +```typescript +import { GetLibraryItemsLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetLibraryItemsLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibraryitemslibraryresponsebody.md b/docs/sdk/models/errors/getlibraryitemslibraryresponsebody.md new file mode 100644 index 00000000..2ad197f0 --- /dev/null +++ b/docs/sdk/models/errors/getlibraryitemslibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetLibraryItemsLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetLibraryItemsLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetLibraryItemsLibraryErrors](../../../sdk/models/errors/getlibraryitemslibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getlibraryitemsresponsebody.md b/docs/sdk/models/errors/getlibraryitemsresponsebody.md index 55a867fe..957b4827 100644 --- a/docs/sdk/models/errors/getlibraryitemsresponsebody.md +++ b/docs/sdk/models/errors/getlibraryitemsresponsebody.md @@ -1,6 +1,6 @@ # GetLibraryItemsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getmediaproviderserrors.md b/docs/sdk/models/errors/getmediaproviderserrors.md index 2393ab12..313cbc27 100644 --- a/docs/sdk/models/errors/getmediaproviderserrors.md +++ b/docs/sdk/models/errors/getmediaproviderserrors.md @@ -6,16 +6,16 @@ import { GetMediaProvidersErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMediaProvidersErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmediaprovidersresponsebody.md b/docs/sdk/models/errors/getmediaprovidersresponsebody.md index b582a0e0..1cbd020e 100644 --- a/docs/sdk/models/errors/getmediaprovidersresponsebody.md +++ b/docs/sdk/models/errors/getmediaprovidersresponsebody.md @@ -1,6 +1,6 @@ # GetMediaProvidersResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getmediaprovidersservererrors.md b/docs/sdk/models/errors/getmediaprovidersservererrors.md new file mode 100644 index 00000000..8c4efa67 --- /dev/null +++ b/docs/sdk/models/errors/getmediaprovidersservererrors.md @@ -0,0 +1,21 @@ +# GetMediaProvidersServerErrors + +## Example Usage + +```typescript +import { GetMediaProvidersServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetMediaProvidersServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmediaprovidersserverresponsebody.md b/docs/sdk/models/errors/getmediaprovidersserverresponsebody.md new file mode 100644 index 00000000..ddf1b59b --- /dev/null +++ b/docs/sdk/models/errors/getmediaprovidersserverresponsebody.md @@ -0,0 +1,18 @@ +# GetMediaProvidersServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMediaProvidersServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMediaProvidersServerErrors](../../../sdk/models/errors/getmediaprovidersservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatabyratingkeyerrors.md b/docs/sdk/models/errors/getmetadatabyratingkeyerrors.md index 0d19f26d..0cd4620f 100644 --- a/docs/sdk/models/errors/getmetadatabyratingkeyerrors.md +++ b/docs/sdk/models/errors/getmetadatabyratingkeyerrors.md @@ -6,16 +6,16 @@ import { GetMetaDataByRatingKeyErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMetaDataByRatingKeyErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatabyratingkeylibraryerrors.md b/docs/sdk/models/errors/getmetadatabyratingkeylibraryerrors.md new file mode 100644 index 00000000..4b6ec48e --- /dev/null +++ b/docs/sdk/models/errors/getmetadatabyratingkeylibraryerrors.md @@ -0,0 +1,21 @@ +# GetMetaDataByRatingKeyLibraryErrors + +## Example Usage + +```typescript +import { GetMetaDataByRatingKeyLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetMetaDataByRatingKeyLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatabyratingkeylibraryresponsebody.md b/docs/sdk/models/errors/getmetadatabyratingkeylibraryresponsebody.md new file mode 100644 index 00000000..0c5f27fc --- /dev/null +++ b/docs/sdk/models/errors/getmetadatabyratingkeylibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetMetaDataByRatingKeyLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMetaDataByRatingKeyLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMetaDataByRatingKeyLibraryErrors](../../../sdk/models/errors/getmetadatabyratingkeylibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md b/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md index 91f019e0..14ea748e 100644 --- a/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md +++ b/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md @@ -1,6 +1,6 @@ # GetMetaDataByRatingKeyResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getmetadatachildrenerrors.md b/docs/sdk/models/errors/getmetadatachildrenerrors.md index 227f4294..92ab1440 100644 --- a/docs/sdk/models/errors/getmetadatachildrenerrors.md +++ b/docs/sdk/models/errors/getmetadatachildrenerrors.md @@ -6,16 +6,16 @@ import { GetMetadataChildrenErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMetadataChildrenErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatachildrenlibraryerrors.md b/docs/sdk/models/errors/getmetadatachildrenlibraryerrors.md new file mode 100644 index 00000000..96867607 --- /dev/null +++ b/docs/sdk/models/errors/getmetadatachildrenlibraryerrors.md @@ -0,0 +1,21 @@ +# GetMetadataChildrenLibraryErrors + +## Example Usage + +```typescript +import { GetMetadataChildrenLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetMetadataChildrenLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatachildrenlibraryresponsebody.md b/docs/sdk/models/errors/getmetadatachildrenlibraryresponsebody.md new file mode 100644 index 00000000..87a6ca39 --- /dev/null +++ b/docs/sdk/models/errors/getmetadatachildrenlibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetMetadataChildrenLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMetadataChildrenLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMetadataChildrenLibraryErrors](../../../sdk/models/errors/getmetadatachildrenlibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmetadatachildrenresponsebody.md b/docs/sdk/models/errors/getmetadatachildrenresponsebody.md index 8ccf2070..f60677b0 100644 --- a/docs/sdk/models/errors/getmetadatachildrenresponsebody.md +++ b/docs/sdk/models/errors/getmetadatachildrenresponsebody.md @@ -1,6 +1,6 @@ # GetMetadataChildrenResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getmyplexaccounterrors.md b/docs/sdk/models/errors/getmyplexaccounterrors.md index 5bfdec3a..3fe06f4b 100644 --- a/docs/sdk/models/errors/getmyplexaccounterrors.md +++ b/docs/sdk/models/errors/getmyplexaccounterrors.md @@ -6,16 +6,16 @@ import { GetMyPlexAccountErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMyPlexAccountErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmyplexaccountresponsebody.md b/docs/sdk/models/errors/getmyplexaccountresponsebody.md index 6be12be0..1da7b1c6 100644 --- a/docs/sdk/models/errors/getmyplexaccountresponsebody.md +++ b/docs/sdk/models/errors/getmyplexaccountresponsebody.md @@ -1,6 +1,6 @@ # GetMyPlexAccountResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getmyplexaccountservererrors.md b/docs/sdk/models/errors/getmyplexaccountservererrors.md new file mode 100644 index 00000000..097f826a --- /dev/null +++ b/docs/sdk/models/errors/getmyplexaccountservererrors.md @@ -0,0 +1,21 @@ +# GetMyPlexAccountServerErrors + +## Example Usage + +```typescript +import { GetMyPlexAccountServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetMyPlexAccountServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getmyplexaccountserverresponsebody.md b/docs/sdk/models/errors/getmyplexaccountserverresponsebody.md new file mode 100644 index 00000000..d99b08c2 --- /dev/null +++ b/docs/sdk/models/errors/getmyplexaccountserverresponsebody.md @@ -0,0 +1,18 @@ +# GetMyPlexAccountServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMyPlexAccountServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMyPlexAccountServerErrors](../../../sdk/models/errors/getmyplexaccountservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getondeckerrors.md b/docs/sdk/models/errors/getondeckerrors.md index 707c86e2..c293c65f 100644 --- a/docs/sdk/models/errors/getondeckerrors.md +++ b/docs/sdk/models/errors/getondeckerrors.md @@ -6,16 +6,16 @@ import { GetOnDeckErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetOnDeckErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getondecklibraryerrors.md b/docs/sdk/models/errors/getondecklibraryerrors.md new file mode 100644 index 00000000..dacddbf0 --- /dev/null +++ b/docs/sdk/models/errors/getondecklibraryerrors.md @@ -0,0 +1,21 @@ +# GetOnDeckLibraryErrors + +## Example Usage + +```typescript +import { GetOnDeckLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetOnDeckLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getondecklibraryresponsebody.md b/docs/sdk/models/errors/getondecklibraryresponsebody.md new file mode 100644 index 00000000..4fef6613 --- /dev/null +++ b/docs/sdk/models/errors/getondecklibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetOnDeckLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetOnDeckLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetOnDeckLibraryErrors](../../../sdk/models/errors/getondecklibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getondeckresponsebody.md b/docs/sdk/models/errors/getondeckresponsebody.md index 28cce185..6e125d54 100644 --- a/docs/sdk/models/errors/getondeckresponsebody.md +++ b/docs/sdk/models/errors/getondeckresponsebody.md @@ -1,6 +1,6 @@ # GetOnDeckResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getplaylistcontentserrors.md b/docs/sdk/models/errors/getplaylistcontentserrors.md index 6fe5b22e..65704a7c 100644 --- a/docs/sdk/models/errors/getplaylistcontentserrors.md +++ b/docs/sdk/models/errors/getplaylistcontentserrors.md @@ -6,16 +6,16 @@ import { GetPlaylistContentsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPlaylistContentsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistcontentsplaylistserrors.md b/docs/sdk/models/errors/getplaylistcontentsplaylistserrors.md new file mode 100644 index 00000000..c81651e0 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistcontentsplaylistserrors.md @@ -0,0 +1,21 @@ +# GetPlaylistContentsPlaylistsErrors + +## Example Usage + +```typescript +import { GetPlaylistContentsPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetPlaylistContentsPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistcontentsplaylistsresponsebody.md b/docs/sdk/models/errors/getplaylistcontentsplaylistsresponsebody.md new file mode 100644 index 00000000..5275738b --- /dev/null +++ b/docs/sdk/models/errors/getplaylistcontentsplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# GetPlaylistContentsPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetPlaylistContentsPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetPlaylistContentsPlaylistsErrors](../../../sdk/models/errors/getplaylistcontentsplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistcontentsresponsebody.md b/docs/sdk/models/errors/getplaylistcontentsresponsebody.md index bb2d8258..64c3246f 100644 --- a/docs/sdk/models/errors/getplaylistcontentsresponsebody.md +++ b/docs/sdk/models/errors/getplaylistcontentsresponsebody.md @@ -1,6 +1,6 @@ # GetPlaylistContentsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getplaylisterrors.md b/docs/sdk/models/errors/getplaylisterrors.md index deef5b66..522a0e94 100644 --- a/docs/sdk/models/errors/getplaylisterrors.md +++ b/docs/sdk/models/errors/getplaylisterrors.md @@ -6,16 +6,16 @@ import { GetPlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPlaylistErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistplaylistserrors.md b/docs/sdk/models/errors/getplaylistplaylistserrors.md new file mode 100644 index 00000000..85db400f --- /dev/null +++ b/docs/sdk/models/errors/getplaylistplaylistserrors.md @@ -0,0 +1,21 @@ +# GetPlaylistPlaylistsErrors + +## Example Usage + +```typescript +import { GetPlaylistPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetPlaylistPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistplaylistsresponsebody.md b/docs/sdk/models/errors/getplaylistplaylistsresponsebody.md new file mode 100644 index 00000000..0613c597 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# GetPlaylistPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetPlaylistPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetPlaylistPlaylistsErrors](../../../sdk/models/errors/getplaylistplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistresponsebody.md b/docs/sdk/models/errors/getplaylistresponsebody.md index 40957987..c789ae80 100644 --- a/docs/sdk/models/errors/getplaylistresponsebody.md +++ b/docs/sdk/models/errors/getplaylistresponsebody.md @@ -1,6 +1,6 @@ # GetPlaylistResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getplaylistserrors.md b/docs/sdk/models/errors/getplaylistserrors.md index 35882d07..806c5bac 100644 --- a/docs/sdk/models/errors/getplaylistserrors.md +++ b/docs/sdk/models/errors/getplaylistserrors.md @@ -6,16 +6,16 @@ import { GetPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPlaylistsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistsplaylistserrors.md b/docs/sdk/models/errors/getplaylistsplaylistserrors.md new file mode 100644 index 00000000..a630f6d7 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistsplaylistserrors.md @@ -0,0 +1,21 @@ +# GetPlaylistsPlaylistsErrors + +## Example Usage + +```typescript +import { GetPlaylistsPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetPlaylistsPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistsplaylistsresponsebody.md b/docs/sdk/models/errors/getplaylistsplaylistsresponsebody.md new file mode 100644 index 00000000..888bedf4 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistsplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# GetPlaylistsPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetPlaylistsPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetPlaylistsPlaylistsErrors](../../../sdk/models/errors/getplaylistsplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getplaylistsresponsebody.md b/docs/sdk/models/errors/getplaylistsresponsebody.md index 4ff47a56..27fda7a6 100644 --- a/docs/sdk/models/errors/getplaylistsresponsebody.md +++ b/docs/sdk/models/errors/getplaylistsresponsebody.md @@ -1,6 +1,6 @@ # GetPlaylistsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getrecentlyaddederrors.md b/docs/sdk/models/errors/getrecentlyaddederrors.md index 42f9e689..82841910 100644 --- a/docs/sdk/models/errors/getrecentlyaddederrors.md +++ b/docs/sdk/models/errors/getrecentlyaddederrors.md @@ -6,16 +6,16 @@ import { GetRecentlyAddedErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetRecentlyAddedErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getrecentlyaddedlibraryerrors.md b/docs/sdk/models/errors/getrecentlyaddedlibraryerrors.md new file mode 100644 index 00000000..e88848b7 --- /dev/null +++ b/docs/sdk/models/errors/getrecentlyaddedlibraryerrors.md @@ -0,0 +1,21 @@ +# GetRecentlyAddedLibraryErrors + +## Example Usage + +```typescript +import { GetRecentlyAddedLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetRecentlyAddedLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getrecentlyaddedlibraryresponsebody.md b/docs/sdk/models/errors/getrecentlyaddedlibraryresponsebody.md new file mode 100644 index 00000000..7619bc1c --- /dev/null +++ b/docs/sdk/models/errors/getrecentlyaddedlibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetRecentlyAddedLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetRecentlyAddedLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetRecentlyAddedLibraryErrors](../../../sdk/models/errors/getrecentlyaddedlibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getrecentlyaddedresponsebody.md b/docs/sdk/models/errors/getrecentlyaddedresponsebody.md index d07e3f2c..8d508761 100644 --- a/docs/sdk/models/errors/getrecentlyaddedresponsebody.md +++ b/docs/sdk/models/errors/getrecentlyaddedresponsebody.md @@ -1,6 +1,6 @@ # GetRecentlyAddedResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md b/docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md index e0314b6d..f02e498a 100644 --- a/docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md +++ b/docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md @@ -6,16 +6,16 @@ import { GetRefreshLibraryMetadataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetRefreshLibraryMetadataErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getrefreshlibrarymetadatalibraryerrors.md b/docs/sdk/models/errors/getrefreshlibrarymetadatalibraryerrors.md new file mode 100644 index 00000000..af018587 --- /dev/null +++ b/docs/sdk/models/errors/getrefreshlibrarymetadatalibraryerrors.md @@ -0,0 +1,21 @@ +# GetRefreshLibraryMetadataLibraryErrors + +## Example Usage + +```typescript +import { GetRefreshLibraryMetadataLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetRefreshLibraryMetadataLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getrefreshlibrarymetadatalibraryresponsebody.md b/docs/sdk/models/errors/getrefreshlibrarymetadatalibraryresponsebody.md new file mode 100644 index 00000000..790e49c7 --- /dev/null +++ b/docs/sdk/models/errors/getrefreshlibrarymetadatalibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetRefreshLibraryMetadataLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetRefreshLibraryMetadataLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetRefreshLibraryMetadataLibraryErrors](../../../sdk/models/errors/getrefreshlibrarymetadatalibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md b/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md index e8150980..1f60264a 100644 --- a/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md +++ b/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md @@ -1,6 +1,6 @@ # GetRefreshLibraryMetadataResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getresizedphotoerrors.md b/docs/sdk/models/errors/getresizedphotoerrors.md index a14daf6a..bf508df9 100644 --- a/docs/sdk/models/errors/getresizedphotoerrors.md +++ b/docs/sdk/models/errors/getresizedphotoerrors.md @@ -6,16 +6,16 @@ import { GetResizedPhotoErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetResizedPhotoErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getresizedphotoresponsebody.md b/docs/sdk/models/errors/getresizedphotoresponsebody.md index 1e71c62a..815a9636 100644 --- a/docs/sdk/models/errors/getresizedphotoresponsebody.md +++ b/docs/sdk/models/errors/getresizedphotoresponsebody.md @@ -1,6 +1,6 @@ # GetResizedPhotoResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getresizedphotoservererrors.md b/docs/sdk/models/errors/getresizedphotoservererrors.md new file mode 100644 index 00000000..f14c5001 --- /dev/null +++ b/docs/sdk/models/errors/getresizedphotoservererrors.md @@ -0,0 +1,21 @@ +# GetResizedPhotoServerErrors + +## Example Usage + +```typescript +import { GetResizedPhotoServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetResizedPhotoServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getresizedphotoserverresponsebody.md b/docs/sdk/models/errors/getresizedphotoserverresponsebody.md new file mode 100644 index 00000000..9ac91a87 --- /dev/null +++ b/docs/sdk/models/errors/getresizedphotoserverresponsebody.md @@ -0,0 +1,18 @@ +# GetResizedPhotoServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetResizedPhotoServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetResizedPhotoServerErrors](../../../sdk/models/errors/getresizedphotoservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getresourcesstatisticserrors.md b/docs/sdk/models/errors/getresourcesstatisticserrors.md index 76ed19a6..72820509 100644 --- a/docs/sdk/models/errors/getresourcesstatisticserrors.md +++ b/docs/sdk/models/errors/getresourcesstatisticserrors.md @@ -6,16 +6,16 @@ import { GetResourcesStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetResourcesStatisticsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md b/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md index 847414fc..2abc6f8d 100644 --- a/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md +++ b/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md @@ -1,6 +1,6 @@ # GetResourcesStatisticsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getresourcesstatisticsstatisticserrors.md b/docs/sdk/models/errors/getresourcesstatisticsstatisticserrors.md new file mode 100644 index 00000000..9b56586f --- /dev/null +++ b/docs/sdk/models/errors/getresourcesstatisticsstatisticserrors.md @@ -0,0 +1,21 @@ +# GetResourcesStatisticsStatisticsErrors + +## Example Usage + +```typescript +import { GetResourcesStatisticsStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetResourcesStatisticsStatisticsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getresourcesstatisticsstatisticsresponsebody.md b/docs/sdk/models/errors/getresourcesstatisticsstatisticsresponsebody.md new file mode 100644 index 00000000..5384a8aa --- /dev/null +++ b/docs/sdk/models/errors/getresourcesstatisticsstatisticsresponsebody.md @@ -0,0 +1,18 @@ +# GetResourcesStatisticsStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetResourcesStatisticsStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetResourcesStatisticsStatisticsErrors](../../../sdk/models/errors/getresourcesstatisticsstatisticserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsearchlibraryerrors.md b/docs/sdk/models/errors/getsearchlibraryerrors.md index 9e772c2b..b4a4bce1 100644 --- a/docs/sdk/models/errors/getsearchlibraryerrors.md +++ b/docs/sdk/models/errors/getsearchlibraryerrors.md @@ -6,16 +6,16 @@ import { GetSearchLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSearchLibraryErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsearchlibrarylibraryerrors.md b/docs/sdk/models/errors/getsearchlibrarylibraryerrors.md new file mode 100644 index 00000000..6e89af0f --- /dev/null +++ b/docs/sdk/models/errors/getsearchlibrarylibraryerrors.md @@ -0,0 +1,21 @@ +# GetSearchLibraryLibraryErrors + +## Example Usage + +```typescript +import { GetSearchLibraryLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetSearchLibraryLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsearchlibrarylibraryresponsebody.md b/docs/sdk/models/errors/getsearchlibrarylibraryresponsebody.md new file mode 100644 index 00000000..b3db006b --- /dev/null +++ b/docs/sdk/models/errors/getsearchlibrarylibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetSearchLibraryLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSearchLibraryLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSearchLibraryLibraryErrors](../../../sdk/models/errors/getsearchlibrarylibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsearchlibraryresponsebody.md b/docs/sdk/models/errors/getsearchlibraryresponsebody.md index 0f4ec364..0fbaa0d7 100644 --- a/docs/sdk/models/errors/getsearchlibraryresponsebody.md +++ b/docs/sdk/models/errors/getsearchlibraryresponsebody.md @@ -1,6 +1,6 @@ # GetSearchLibraryResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getsearchresultserrors.md b/docs/sdk/models/errors/getsearchresultserrors.md index 65f1490a..5ade1895 100644 --- a/docs/sdk/models/errors/getsearchresultserrors.md +++ b/docs/sdk/models/errors/getsearchresultserrors.md @@ -6,16 +6,16 @@ import { GetSearchResultsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSearchResultsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsearchresultsresponsebody.md b/docs/sdk/models/errors/getsearchresultsresponsebody.md index d2c66085..de6eb1f6 100644 --- a/docs/sdk/models/errors/getsearchresultsresponsebody.md +++ b/docs/sdk/models/errors/getsearchresultsresponsebody.md @@ -1,6 +1,6 @@ # GetSearchResultsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getsearchresultssearcherrors.md b/docs/sdk/models/errors/getsearchresultssearcherrors.md new file mode 100644 index 00000000..7c7d91d4 --- /dev/null +++ b/docs/sdk/models/errors/getsearchresultssearcherrors.md @@ -0,0 +1,21 @@ +# GetSearchResultsSearchErrors + +## Example Usage + +```typescript +import { GetSearchResultsSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetSearchResultsSearchErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsearchresultssearchresponsebody.md b/docs/sdk/models/errors/getsearchresultssearchresponsebody.md new file mode 100644 index 00000000..bd9ecbf8 --- /dev/null +++ b/docs/sdk/models/errors/getsearchresultssearchresponsebody.md @@ -0,0 +1,18 @@ +# GetSearchResultsSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSearchResultsSearchResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSearchResultsSearchErrors](../../../sdk/models/errors/getsearchresultssearcherrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserveractivitiesactivitieserrors.md b/docs/sdk/models/errors/getserveractivitiesactivitieserrors.md new file mode 100644 index 00000000..56e08556 --- /dev/null +++ b/docs/sdk/models/errors/getserveractivitiesactivitieserrors.md @@ -0,0 +1,21 @@ +# GetServerActivitiesActivitiesErrors + +## Example Usage + +```typescript +import { GetServerActivitiesActivitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetServerActivitiesActivitiesErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserveractivitiesactivitiesresponsebody.md b/docs/sdk/models/errors/getserveractivitiesactivitiesresponsebody.md new file mode 100644 index 00000000..7913f743 --- /dev/null +++ b/docs/sdk/models/errors/getserveractivitiesactivitiesresponsebody.md @@ -0,0 +1,18 @@ +# GetServerActivitiesActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerActivitiesActivitiesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerActivitiesActivitiesErrors](../../../sdk/models/errors/getserveractivitiesactivitieserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserveractivitieserrors.md b/docs/sdk/models/errors/getserveractivitieserrors.md index 606025e0..6a7e8f61 100644 --- a/docs/sdk/models/errors/getserveractivitieserrors.md +++ b/docs/sdk/models/errors/getserveractivitieserrors.md @@ -6,16 +6,16 @@ import { GetServerActivitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerActivitiesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserveractivitiesresponsebody.md b/docs/sdk/models/errors/getserveractivitiesresponsebody.md index 15430a0b..f49a850a 100644 --- a/docs/sdk/models/errors/getserveractivitiesresponsebody.md +++ b/docs/sdk/models/errors/getserveractivitiesresponsebody.md @@ -1,6 +1,6 @@ # GetServerActivitiesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getservercapabilitieserrors.md b/docs/sdk/models/errors/getservercapabilitieserrors.md new file mode 100644 index 00000000..28d8c01e --- /dev/null +++ b/docs/sdk/models/errors/getservercapabilitieserrors.md @@ -0,0 +1,21 @@ +# GetServerCapabilitiesErrors + +## Example Usage + +```typescript +import { GetServerCapabilitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetServerCapabilitiesErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getservercapabilitiesresponsebody.md b/docs/sdk/models/errors/getservercapabilitiesresponsebody.md index 81be4c16..af1f1ca1 100644 --- a/docs/sdk/models/errors/getservercapabilitiesresponsebody.md +++ b/docs/sdk/models/errors/getservercapabilitiesresponsebody.md @@ -1,6 +1,6 @@ # GetServerCapabilitiesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getservercapabilitiesserverresponsebody.md b/docs/sdk/models/errors/getservercapabilitiesserverresponsebody.md new file mode 100644 index 00000000..19f94348 --- /dev/null +++ b/docs/sdk/models/errors/getservercapabilitiesserverresponsebody.md @@ -0,0 +1,18 @@ +# GetServerCapabilitiesServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerCapabilitiesServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerCapabilitiesErrors](../../../sdk/models/errors/getservercapabilitieserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverlisterrors.md b/docs/sdk/models/errors/getserverlisterrors.md index 49159818..16612fa0 100644 --- a/docs/sdk/models/errors/getserverlisterrors.md +++ b/docs/sdk/models/errors/getserverlisterrors.md @@ -6,16 +6,16 @@ import { GetServerListErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerListErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverlistresponsebody.md b/docs/sdk/models/errors/getserverlistresponsebody.md index 8b6ef850..41c8fe23 100644 --- a/docs/sdk/models/errors/getserverlistresponsebody.md +++ b/docs/sdk/models/errors/getserverlistresponsebody.md @@ -1,6 +1,6 @@ # GetServerListResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getserverlistservererrors.md b/docs/sdk/models/errors/getserverlistservererrors.md new file mode 100644 index 00000000..eee663d4 --- /dev/null +++ b/docs/sdk/models/errors/getserverlistservererrors.md @@ -0,0 +1,21 @@ +# GetServerListServerErrors + +## Example Usage + +```typescript +import { GetServerListServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetServerListServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverlistserverresponsebody.md b/docs/sdk/models/errors/getserverlistserverresponsebody.md new file mode 100644 index 00000000..5df57f70 --- /dev/null +++ b/docs/sdk/models/errors/getserverlistserverresponsebody.md @@ -0,0 +1,18 @@ +# GetServerListServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerListServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerListServerErrors](../../../sdk/models/errors/getserverlistservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverpreferenceserrors.md b/docs/sdk/models/errors/getserverpreferenceserrors.md index 8e958369..9f4f743b 100644 --- a/docs/sdk/models/errors/getserverpreferenceserrors.md +++ b/docs/sdk/models/errors/getserverpreferenceserrors.md @@ -6,16 +6,16 @@ import { GetServerPreferencesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerPreferencesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverpreferencesresponsebody.md b/docs/sdk/models/errors/getserverpreferencesresponsebody.md index 6711a5ed..5e8d768c 100644 --- a/docs/sdk/models/errors/getserverpreferencesresponsebody.md +++ b/docs/sdk/models/errors/getserverpreferencesresponsebody.md @@ -1,6 +1,6 @@ # GetServerPreferencesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getserverpreferencesservererrors.md b/docs/sdk/models/errors/getserverpreferencesservererrors.md new file mode 100644 index 00000000..4c8e7639 --- /dev/null +++ b/docs/sdk/models/errors/getserverpreferencesservererrors.md @@ -0,0 +1,21 @@ +# GetServerPreferencesServerErrors + +## Example Usage + +```typescript +import { GetServerPreferencesServerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetServerPreferencesServerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverpreferencesserverresponsebody.md b/docs/sdk/models/errors/getserverpreferencesserverresponsebody.md new file mode 100644 index 00000000..cdd2c1e3 --- /dev/null +++ b/docs/sdk/models/errors/getserverpreferencesserverresponsebody.md @@ -0,0 +1,18 @@ +# GetServerPreferencesServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerPreferencesServerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerPreferencesServerErrors](../../../sdk/models/errors/getserverpreferencesservererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverresourceserrors.md b/docs/sdk/models/errors/getserverresourceserrors.md index 29ee7bdc..b86297da 100644 --- a/docs/sdk/models/errors/getserverresourceserrors.md +++ b/docs/sdk/models/errors/getserverresourceserrors.md @@ -6,16 +6,16 @@ import { GetServerResourcesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerResourcesErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverresourcesplexerrors.md b/docs/sdk/models/errors/getserverresourcesplexerrors.md new file mode 100644 index 00000000..ab1a545e --- /dev/null +++ b/docs/sdk/models/errors/getserverresourcesplexerrors.md @@ -0,0 +1,21 @@ +# GetServerResourcesPlexErrors + +## Example Usage + +```typescript +import { GetServerResourcesPlexErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetServerResourcesPlexErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverresourcesplexresponsebody.md b/docs/sdk/models/errors/getserverresourcesplexresponsebody.md new file mode 100644 index 00000000..f21260ed --- /dev/null +++ b/docs/sdk/models/errors/getserverresourcesplexresponsebody.md @@ -0,0 +1,18 @@ +# GetServerResourcesPlexResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerResourcesPlexResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerResourcesPlexErrors](../../../sdk/models/errors/getserverresourcesplexerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getserverresourcesresponsebody.md b/docs/sdk/models/errors/getserverresourcesresponsebody.md index 86208680..7b94948e 100644 --- a/docs/sdk/models/errors/getserverresourcesresponsebody.md +++ b/docs/sdk/models/errors/getserverresourcesresponsebody.md @@ -1,6 +1,6 @@ # GetServerResourcesResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getsessionhistoryerrors.md b/docs/sdk/models/errors/getsessionhistoryerrors.md index 58e90616..8b63a82a 100644 --- a/docs/sdk/models/errors/getsessionhistoryerrors.md +++ b/docs/sdk/models/errors/getsessionhistoryerrors.md @@ -6,16 +6,16 @@ import { GetSessionHistoryErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSessionHistoryErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsessionhistoryresponsebody.md b/docs/sdk/models/errors/getsessionhistoryresponsebody.md index ae6bea30..8f1ec4d9 100644 --- a/docs/sdk/models/errors/getsessionhistoryresponsebody.md +++ b/docs/sdk/models/errors/getsessionhistoryresponsebody.md @@ -1,6 +1,6 @@ # GetSessionHistoryResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getsessionhistorysessionserrors.md b/docs/sdk/models/errors/getsessionhistorysessionserrors.md new file mode 100644 index 00000000..cb0e21a2 --- /dev/null +++ b/docs/sdk/models/errors/getsessionhistorysessionserrors.md @@ -0,0 +1,21 @@ +# GetSessionHistorySessionsErrors + +## Example Usage + +```typescript +import { GetSessionHistorySessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetSessionHistorySessionsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsessionhistorysessionsresponsebody.md b/docs/sdk/models/errors/getsessionhistorysessionsresponsebody.md new file mode 100644 index 00000000..dde3a19e --- /dev/null +++ b/docs/sdk/models/errors/getsessionhistorysessionsresponsebody.md @@ -0,0 +1,18 @@ +# GetSessionHistorySessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSessionHistorySessionsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSessionHistorySessionsErrors](../../../sdk/models/errors/getsessionhistorysessionserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsessionserrors.md b/docs/sdk/models/errors/getsessionserrors.md index 532d532b..da27124a 100644 --- a/docs/sdk/models/errors/getsessionserrors.md +++ b/docs/sdk/models/errors/getsessionserrors.md @@ -6,16 +6,16 @@ import { GetSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSessionsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsessionsresponsebody.md b/docs/sdk/models/errors/getsessionsresponsebody.md index 07ff36ae..f5936fde 100644 --- a/docs/sdk/models/errors/getsessionsresponsebody.md +++ b/docs/sdk/models/errors/getsessionsresponsebody.md @@ -1,6 +1,6 @@ # GetSessionsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getsessionssessionserrors.md b/docs/sdk/models/errors/getsessionssessionserrors.md new file mode 100644 index 00000000..59bb17f8 --- /dev/null +++ b/docs/sdk/models/errors/getsessionssessionserrors.md @@ -0,0 +1,21 @@ +# GetSessionsSessionsErrors + +## Example Usage + +```typescript +import { GetSessionsSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetSessionsSessionsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsessionssessionsresponsebody.md b/docs/sdk/models/errors/getsessionssessionsresponsebody.md new file mode 100644 index 00000000..76d6ec6e --- /dev/null +++ b/docs/sdk/models/errors/getsessionssessionsresponsebody.md @@ -0,0 +1,18 @@ +# GetSessionsSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSessionsSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSessionsSessionsErrors](../../../sdk/models/errors/getsessionssessionserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsourceconnectioninformationauthenticationerrors.md b/docs/sdk/models/errors/getsourceconnectioninformationauthenticationerrors.md new file mode 100644 index 00000000..cb4b29eb --- /dev/null +++ b/docs/sdk/models/errors/getsourceconnectioninformationauthenticationerrors.md @@ -0,0 +1,21 @@ +# GetSourceConnectionInformationAuthenticationErrors + +## Example Usage + +```typescript +import { GetSourceConnectionInformationAuthenticationErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetSourceConnectionInformationAuthenticationErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsourceconnectioninformationauthenticationresponsebody.md b/docs/sdk/models/errors/getsourceconnectioninformationauthenticationresponsebody.md new file mode 100644 index 00000000..cb65dac9 --- /dev/null +++ b/docs/sdk/models/errors/getsourceconnectioninformationauthenticationresponsebody.md @@ -0,0 +1,18 @@ +# GetSourceConnectionInformationAuthenticationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSourceConnectionInformationAuthenticationResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSourceConnectionInformationAuthenticationErrors](../../../sdk/models/errors/getsourceconnectioninformationauthenticationerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsourceconnectioninformationerrors.md b/docs/sdk/models/errors/getsourceconnectioninformationerrors.md index 830c6e3b..17d800db 100644 --- a/docs/sdk/models/errors/getsourceconnectioninformationerrors.md +++ b/docs/sdk/models/errors/getsourceconnectioninformationerrors.md @@ -6,16 +6,16 @@ import { GetSourceConnectionInformationErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSourceConnectionInformationErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md b/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md index cb2a98b0..59de55e4 100644 --- a/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md +++ b/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md @@ -1,6 +1,6 @@ # GetSourceConnectionInformationResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getstatisticserrors.md b/docs/sdk/models/errors/getstatisticserrors.md index 2f01a450..6d0cbd5d 100644 --- a/docs/sdk/models/errors/getstatisticserrors.md +++ b/docs/sdk/models/errors/getstatisticserrors.md @@ -6,16 +6,16 @@ import { GetStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetStatisticsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getstatisticsresponsebody.md b/docs/sdk/models/errors/getstatisticsresponsebody.md index 6fdc1d9a..04cb5314 100644 --- a/docs/sdk/models/errors/getstatisticsresponsebody.md +++ b/docs/sdk/models/errors/getstatisticsresponsebody.md @@ -1,6 +1,6 @@ # GetStatisticsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getstatisticsstatisticserrors.md b/docs/sdk/models/errors/getstatisticsstatisticserrors.md new file mode 100644 index 00000000..41d45c7e --- /dev/null +++ b/docs/sdk/models/errors/getstatisticsstatisticserrors.md @@ -0,0 +1,21 @@ +# GetStatisticsStatisticsErrors + +## Example Usage + +```typescript +import { GetStatisticsStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetStatisticsStatisticsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getstatisticsstatisticsresponsebody.md b/docs/sdk/models/errors/getstatisticsstatisticsresponsebody.md new file mode 100644 index 00000000..f01779e5 --- /dev/null +++ b/docs/sdk/models/errors/getstatisticsstatisticsresponsebody.md @@ -0,0 +1,18 @@ +# GetStatisticsStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetStatisticsStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetStatisticsStatisticsErrors](../../../sdk/models/errors/getstatisticsstatisticserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getthumbimageerrors.md b/docs/sdk/models/errors/getthumbimageerrors.md index fff5ef6f..5b780264 100644 --- a/docs/sdk/models/errors/getthumbimageerrors.md +++ b/docs/sdk/models/errors/getthumbimageerrors.md @@ -6,16 +6,16 @@ import { GetThumbImageErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetThumbImageErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getthumbimagemediaerrors.md b/docs/sdk/models/errors/getthumbimagemediaerrors.md new file mode 100644 index 00000000..3d2ca0e3 --- /dev/null +++ b/docs/sdk/models/errors/getthumbimagemediaerrors.md @@ -0,0 +1,21 @@ +# GetThumbImageMediaErrors + +## Example Usage + +```typescript +import { GetThumbImageMediaErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetThumbImageMediaErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getthumbimagemediaresponsebody.md b/docs/sdk/models/errors/getthumbimagemediaresponsebody.md new file mode 100644 index 00000000..262e317b --- /dev/null +++ b/docs/sdk/models/errors/getthumbimagemediaresponsebody.md @@ -0,0 +1,18 @@ +# GetThumbImageMediaResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetThumbImageMediaResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetThumbImageMediaErrors](../../../sdk/models/errors/getthumbimagemediaerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getthumbimageresponsebody.md b/docs/sdk/models/errors/getthumbimageresponsebody.md index 93772428..037afc87 100644 --- a/docs/sdk/models/errors/getthumbimageresponsebody.md +++ b/docs/sdk/models/errors/getthumbimageresponsebody.md @@ -1,6 +1,6 @@ # GetThumbImageResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/gettimelineerrors.md b/docs/sdk/models/errors/gettimelineerrors.md index 59c5282b..196a9d2f 100644 --- a/docs/sdk/models/errors/gettimelineerrors.md +++ b/docs/sdk/models/errors/gettimelineerrors.md @@ -6,16 +6,16 @@ import { GetTimelineErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTimelineErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettimelineresponsebody.md b/docs/sdk/models/errors/gettimelineresponsebody.md index 397cfc9c..eb7ac41a 100644 --- a/docs/sdk/models/errors/gettimelineresponsebody.md +++ b/docs/sdk/models/errors/gettimelineresponsebody.md @@ -1,6 +1,6 @@ # GetTimelineResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/gettimelinevideoerrors.md b/docs/sdk/models/errors/gettimelinevideoerrors.md new file mode 100644 index 00000000..65ebc9a2 --- /dev/null +++ b/docs/sdk/models/errors/gettimelinevideoerrors.md @@ -0,0 +1,21 @@ +# GetTimelineVideoErrors + +## Example Usage + +```typescript +import { GetTimelineVideoErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetTimelineVideoErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettimelinevideoresponsebody.md b/docs/sdk/models/errors/gettimelinevideoresponsebody.md new file mode 100644 index 00000000..32e6ef13 --- /dev/null +++ b/docs/sdk/models/errors/gettimelinevideoresponsebody.md @@ -0,0 +1,18 @@ +# GetTimelineVideoResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTimelineVideoResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTimelineVideoErrors](../../../sdk/models/errors/gettimelinevideoerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettopwatchedcontenterrors.md b/docs/sdk/models/errors/gettopwatchedcontenterrors.md index 8f1fcce4..219a9f8b 100644 --- a/docs/sdk/models/errors/gettopwatchedcontenterrors.md +++ b/docs/sdk/models/errors/gettopwatchedcontenterrors.md @@ -6,16 +6,16 @@ import { GetTopWatchedContentErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTopWatchedContentErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettopwatchedcontentlibraryerrors.md b/docs/sdk/models/errors/gettopwatchedcontentlibraryerrors.md new file mode 100644 index 00000000..9b4c5a35 --- /dev/null +++ b/docs/sdk/models/errors/gettopwatchedcontentlibraryerrors.md @@ -0,0 +1,21 @@ +# GetTopWatchedContentLibraryErrors + +## Example Usage + +```typescript +import { GetTopWatchedContentLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetTopWatchedContentLibraryErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettopwatchedcontentlibraryresponsebody.md b/docs/sdk/models/errors/gettopwatchedcontentlibraryresponsebody.md new file mode 100644 index 00000000..70a46fdc --- /dev/null +++ b/docs/sdk/models/errors/gettopwatchedcontentlibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetTopWatchedContentLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTopWatchedContentLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTopWatchedContentLibraryErrors](../../../sdk/models/errors/gettopwatchedcontentlibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md b/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md index 5531a354..b5a86bfc 100644 --- a/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md +++ b/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md @@ -1,6 +1,6 @@ # GetTopWatchedContentResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/gettranscodesessionserrors.md b/docs/sdk/models/errors/gettranscodesessionserrors.md index 3cd7d0da..332e3e84 100644 --- a/docs/sdk/models/errors/gettranscodesessionserrors.md +++ b/docs/sdk/models/errors/gettranscodesessionserrors.md @@ -6,16 +6,16 @@ import { GetTranscodeSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTranscodeSessionsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettranscodesessionsresponsebody.md b/docs/sdk/models/errors/gettranscodesessionsresponsebody.md index 487382de..53888fee 100644 --- a/docs/sdk/models/errors/gettranscodesessionsresponsebody.md +++ b/docs/sdk/models/errors/gettranscodesessionsresponsebody.md @@ -1,6 +1,6 @@ # GetTranscodeSessionsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/gettranscodesessionssessionserrors.md b/docs/sdk/models/errors/gettranscodesessionssessionserrors.md new file mode 100644 index 00000000..b5244b70 --- /dev/null +++ b/docs/sdk/models/errors/gettranscodesessionssessionserrors.md @@ -0,0 +1,21 @@ +# GetTranscodeSessionsSessionsErrors + +## Example Usage + +```typescript +import { GetTranscodeSessionsSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetTranscodeSessionsSessionsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettranscodesessionssessionsresponsebody.md b/docs/sdk/models/errors/gettranscodesessionssessionsresponsebody.md new file mode 100644 index 00000000..5149712a --- /dev/null +++ b/docs/sdk/models/errors/gettranscodesessionssessionsresponsebody.md @@ -0,0 +1,18 @@ +# GetTranscodeSessionsSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTranscodeSessionsSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTranscodeSessionsSessionsErrors](../../../sdk/models/errors/gettranscodesessionssessionserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettransienttokenauthenticationerrors.md b/docs/sdk/models/errors/gettransienttokenauthenticationerrors.md new file mode 100644 index 00000000..a7704136 --- /dev/null +++ b/docs/sdk/models/errors/gettransienttokenauthenticationerrors.md @@ -0,0 +1,21 @@ +# GetTransientTokenAuthenticationErrors + +## Example Usage + +```typescript +import { GetTransientTokenAuthenticationErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetTransientTokenAuthenticationErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettransienttokenauthenticationresponsebody.md b/docs/sdk/models/errors/gettransienttokenauthenticationresponsebody.md new file mode 100644 index 00000000..0b1ba01b --- /dev/null +++ b/docs/sdk/models/errors/gettransienttokenauthenticationresponsebody.md @@ -0,0 +1,18 @@ +# GetTransientTokenAuthenticationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTransientTokenAuthenticationResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTransientTokenAuthenticationErrors](../../../sdk/models/errors/gettransienttokenauthenticationerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettransienttokenerrors.md b/docs/sdk/models/errors/gettransienttokenerrors.md index 84fd0558..a48639ee 100644 --- a/docs/sdk/models/errors/gettransienttokenerrors.md +++ b/docs/sdk/models/errors/gettransienttokenerrors.md @@ -6,16 +6,16 @@ import { GetTransientTokenErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTransientTokenErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/gettransienttokenresponsebody.md b/docs/sdk/models/errors/gettransienttokenresponsebody.md index a383117e..df800e7b 100644 --- a/docs/sdk/models/errors/gettransienttokenresponsebody.md +++ b/docs/sdk/models/errors/gettransienttokenresponsebody.md @@ -1,6 +1,6 @@ # GetTransientTokenResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getupdatestatuserrors.md b/docs/sdk/models/errors/getupdatestatuserrors.md index 91e24174..702b3fbc 100644 --- a/docs/sdk/models/errors/getupdatestatuserrors.md +++ b/docs/sdk/models/errors/getupdatestatuserrors.md @@ -6,16 +6,16 @@ import { GetUpdateStatusErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetUpdateStatusErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getupdatestatusresponsebody.md b/docs/sdk/models/errors/getupdatestatusresponsebody.md index fbf633e8..ce3e3694 100644 --- a/docs/sdk/models/errors/getupdatestatusresponsebody.md +++ b/docs/sdk/models/errors/getupdatestatusresponsebody.md @@ -1,6 +1,6 @@ # GetUpdateStatusResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getupdatestatusupdatererrors.md b/docs/sdk/models/errors/getupdatestatusupdatererrors.md new file mode 100644 index 00000000..20780355 --- /dev/null +++ b/docs/sdk/models/errors/getupdatestatusupdatererrors.md @@ -0,0 +1,21 @@ +# GetUpdateStatusUpdaterErrors + +## Example Usage + +```typescript +import { GetUpdateStatusUpdaterErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetUpdateStatusUpdaterErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getupdatestatusupdaterresponsebody.md b/docs/sdk/models/errors/getupdatestatusupdaterresponsebody.md new file mode 100644 index 00000000..d0edc684 --- /dev/null +++ b/docs/sdk/models/errors/getupdatestatusupdaterresponsebody.md @@ -0,0 +1,18 @@ +# GetUpdateStatusUpdaterResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUpdateStatusUpdaterResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetUpdateStatusUpdaterErrors](../../../sdk/models/errors/getupdatestatusupdatererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserdetailsauthenticationerrors.md b/docs/sdk/models/errors/getuserdetailsauthenticationerrors.md new file mode 100644 index 00000000..1dc593d8 --- /dev/null +++ b/docs/sdk/models/errors/getuserdetailsauthenticationerrors.md @@ -0,0 +1,21 @@ +# GetUserDetailsAuthenticationErrors + +## Example Usage + +```typescript +import { GetUserDetailsAuthenticationErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetUserDetailsAuthenticationErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserdetailsauthenticationresponsebody.md b/docs/sdk/models/errors/getuserdetailsauthenticationresponsebody.md new file mode 100644 index 00000000..24976336 --- /dev/null +++ b/docs/sdk/models/errors/getuserdetailsauthenticationresponsebody.md @@ -0,0 +1,18 @@ +# GetUserDetailsAuthenticationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUserDetailsAuthenticationResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetUserDetailsAuthenticationErrors](../../../sdk/models/errors/getuserdetailsauthenticationerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserdetailserrors.md b/docs/sdk/models/errors/getuserdetailserrors.md index 0e1ac706..cb042f4d 100644 --- a/docs/sdk/models/errors/getuserdetailserrors.md +++ b/docs/sdk/models/errors/getuserdetailserrors.md @@ -6,16 +6,16 @@ import { GetUserDetailsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetUserDetailsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserdetailsresponsebody.md b/docs/sdk/models/errors/getuserdetailsresponsebody.md index 650b5cec..059f65c9 100644 --- a/docs/sdk/models/errors/getuserdetailsresponsebody.md +++ b/docs/sdk/models/errors/getuserdetailsresponsebody.md @@ -1,6 +1,6 @@ # GetUserDetailsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getuserfriendserrors.md b/docs/sdk/models/errors/getuserfriendserrors.md index 7800209a..96cff3c1 100644 --- a/docs/sdk/models/errors/getuserfriendserrors.md +++ b/docs/sdk/models/errors/getuserfriendserrors.md @@ -6,16 +6,16 @@ import { GetUserFriendsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetUserFriendsErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserfriendsplexerrors.md b/docs/sdk/models/errors/getuserfriendsplexerrors.md new file mode 100644 index 00000000..35e38554 --- /dev/null +++ b/docs/sdk/models/errors/getuserfriendsplexerrors.md @@ -0,0 +1,21 @@ +# GetUserFriendsPlexErrors + +## Example Usage + +```typescript +import { GetUserFriendsPlexErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetUserFriendsPlexErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserfriendsplexresponsebody.md b/docs/sdk/models/errors/getuserfriendsplexresponsebody.md new file mode 100644 index 00000000..ac52a496 --- /dev/null +++ b/docs/sdk/models/errors/getuserfriendsplexresponsebody.md @@ -0,0 +1,18 @@ +# GetUserFriendsPlexResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUserFriendsPlexResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetUserFriendsPlexErrors](../../../sdk/models/errors/getuserfriendsplexerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/getuserfriendsresponsebody.md b/docs/sdk/models/errors/getuserfriendsresponsebody.md index eb0ffab7..4ca4e5ff 100644 --- a/docs/sdk/models/errors/getuserfriendsresponsebody.md +++ b/docs/sdk/models/errors/getuserfriendsresponsebody.md @@ -1,6 +1,6 @@ # GetUserFriendsResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getwatchlisterrors.md b/docs/sdk/models/errors/getwatchlisterrors.md index 091777b8..185acc7b 100644 --- a/docs/sdk/models/errors/getwatchlisterrors.md +++ b/docs/sdk/models/errors/getwatchlisterrors.md @@ -6,16 +6,16 @@ import { GetWatchListErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetWatchListErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getwatchlistresponsebody.md b/docs/sdk/models/errors/getwatchlistresponsebody.md index 92195e17..25a5b8e6 100644 --- a/docs/sdk/models/errors/getwatchlistresponsebody.md +++ b/docs/sdk/models/errors/getwatchlistresponsebody.md @@ -1,6 +1,6 @@ # GetWatchListResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/getwatchlistwatchlisterrors.md b/docs/sdk/models/errors/getwatchlistwatchlisterrors.md new file mode 100644 index 00000000..cbb6a0d0 --- /dev/null +++ b/docs/sdk/models/errors/getwatchlistwatchlisterrors.md @@ -0,0 +1,21 @@ +# GetWatchListWatchlistErrors + +## Example Usage + +```typescript +import { GetWatchListWatchlistErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: GetWatchListWatchlistErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/getwatchlistwatchlistresponsebody.md b/docs/sdk/models/errors/getwatchlistwatchlistresponsebody.md new file mode 100644 index 00000000..1c7923b5 --- /dev/null +++ b/docs/sdk/models/errors/getwatchlistwatchlistresponsebody.md @@ -0,0 +1,18 @@ +# GetWatchListWatchlistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetWatchListWatchlistResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetWatchListWatchlistErrors](../../../sdk/models/errors/getwatchlistwatchlisterrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/loglineerrors.md b/docs/sdk/models/errors/loglineerrors.md index 65094c74..1364c88d 100644 --- a/docs/sdk/models/errors/loglineerrors.md +++ b/docs/sdk/models/errors/loglineerrors.md @@ -6,16 +6,16 @@ import { LogLineErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: LogLineErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/loglinelogerrors.md b/docs/sdk/models/errors/loglinelogerrors.md new file mode 100644 index 00000000..064a9cdb --- /dev/null +++ b/docs/sdk/models/errors/loglinelogerrors.md @@ -0,0 +1,21 @@ +# LogLineLogErrors + +## Example Usage + +```typescript +import { LogLineLogErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: LogLineLogErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/loglinelogresponsebody.md b/docs/sdk/models/errors/loglinelogresponsebody.md new file mode 100644 index 00000000..00927aad --- /dev/null +++ b/docs/sdk/models/errors/loglinelogresponsebody.md @@ -0,0 +1,18 @@ +# LogLineLogResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { LogLineLogResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `errors` | [errors.LogLineLogErrors](../../../sdk/models/errors/loglinelogerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/loglineresponsebody.md b/docs/sdk/models/errors/loglineresponsebody.md index 0ee4b83f..8403a4f9 100644 --- a/docs/sdk/models/errors/loglineresponsebody.md +++ b/docs/sdk/models/errors/loglineresponsebody.md @@ -1,6 +1,6 @@ # LogLineResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/logmultilineerrors.md b/docs/sdk/models/errors/logmultilineerrors.md index cda93710..3c8daa1d 100644 --- a/docs/sdk/models/errors/logmultilineerrors.md +++ b/docs/sdk/models/errors/logmultilineerrors.md @@ -6,16 +6,16 @@ import { LogMultiLineErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: LogMultiLineErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/logmultilinelogerrors.md b/docs/sdk/models/errors/logmultilinelogerrors.md new file mode 100644 index 00000000..9d46324b --- /dev/null +++ b/docs/sdk/models/errors/logmultilinelogerrors.md @@ -0,0 +1,21 @@ +# LogMultiLineLogErrors + +## Example Usage + +```typescript +import { LogMultiLineLogErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: LogMultiLineLogErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/logmultilinelogresponsebody.md b/docs/sdk/models/errors/logmultilinelogresponsebody.md new file mode 100644 index 00000000..2a973663 --- /dev/null +++ b/docs/sdk/models/errors/logmultilinelogresponsebody.md @@ -0,0 +1,18 @@ +# LogMultiLineLogResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { LogMultiLineLogResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.LogMultiLineLogErrors](../../../sdk/models/errors/logmultilinelogerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/logmultilineresponsebody.md b/docs/sdk/models/errors/logmultilineresponsebody.md index 6352f729..0a2e9273 100644 --- a/docs/sdk/models/errors/logmultilineresponsebody.md +++ b/docs/sdk/models/errors/logmultilineresponsebody.md @@ -1,6 +1,6 @@ # LogMultiLineResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/markplayederrors.md b/docs/sdk/models/errors/markplayederrors.md index 12ca3bd1..415220c7 100644 --- a/docs/sdk/models/errors/markplayederrors.md +++ b/docs/sdk/models/errors/markplayederrors.md @@ -6,16 +6,16 @@ import { MarkPlayedErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: MarkPlayedErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/markplayedmediaerrors.md b/docs/sdk/models/errors/markplayedmediaerrors.md new file mode 100644 index 00000000..10d360b3 --- /dev/null +++ b/docs/sdk/models/errors/markplayedmediaerrors.md @@ -0,0 +1,21 @@ +# MarkPlayedMediaErrors + +## Example Usage + +```typescript +import { MarkPlayedMediaErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: MarkPlayedMediaErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/markplayedmediaresponsebody.md b/docs/sdk/models/errors/markplayedmediaresponsebody.md new file mode 100644 index 00000000..1f8d6823 --- /dev/null +++ b/docs/sdk/models/errors/markplayedmediaresponsebody.md @@ -0,0 +1,18 @@ +# MarkPlayedMediaResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { MarkPlayedMediaResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.MarkPlayedMediaErrors](../../../sdk/models/errors/markplayedmediaerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/markplayedresponsebody.md b/docs/sdk/models/errors/markplayedresponsebody.md index 70bd0f5b..a5882a69 100644 --- a/docs/sdk/models/errors/markplayedresponsebody.md +++ b/docs/sdk/models/errors/markplayedresponsebody.md @@ -1,6 +1,6 @@ # MarkPlayedResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/markunplayederrors.md b/docs/sdk/models/errors/markunplayederrors.md index bd600122..b2dcb889 100644 --- a/docs/sdk/models/errors/markunplayederrors.md +++ b/docs/sdk/models/errors/markunplayederrors.md @@ -6,16 +6,16 @@ import { MarkUnplayedErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: MarkUnplayedErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/markunplayedmediaerrors.md b/docs/sdk/models/errors/markunplayedmediaerrors.md new file mode 100644 index 00000000..8efe24bd --- /dev/null +++ b/docs/sdk/models/errors/markunplayedmediaerrors.md @@ -0,0 +1,21 @@ +# MarkUnplayedMediaErrors + +## Example Usage + +```typescript +import { MarkUnplayedMediaErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: MarkUnplayedMediaErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/markunplayedmediaresponsebody.md b/docs/sdk/models/errors/markunplayedmediaresponsebody.md new file mode 100644 index 00000000..2fe2dfaa --- /dev/null +++ b/docs/sdk/models/errors/markunplayedmediaresponsebody.md @@ -0,0 +1,18 @@ +# MarkUnplayedMediaResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { MarkUnplayedMediaResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.MarkUnplayedMediaErrors](../../../sdk/models/errors/markunplayedmediaerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/markunplayedresponsebody.md b/docs/sdk/models/errors/markunplayedresponsebody.md index cc09a271..36353912 100644 --- a/docs/sdk/models/errors/markunplayedresponsebody.md +++ b/docs/sdk/models/errors/markunplayedresponsebody.md @@ -1,6 +1,6 @@ # MarkUnplayedResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/performsearcherrors.md b/docs/sdk/models/errors/performsearcherrors.md index 1fc03d47..96a3342d 100644 --- a/docs/sdk/models/errors/performsearcherrors.md +++ b/docs/sdk/models/errors/performsearcherrors.md @@ -6,16 +6,16 @@ import { PerformSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: PerformSearchErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/performsearchresponsebody.md b/docs/sdk/models/errors/performsearchresponsebody.md index fab44dac..c06e72e8 100644 --- a/docs/sdk/models/errors/performsearchresponsebody.md +++ b/docs/sdk/models/errors/performsearchresponsebody.md @@ -1,6 +1,6 @@ # PerformSearchResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/performsearchsearcherrors.md b/docs/sdk/models/errors/performsearchsearcherrors.md new file mode 100644 index 00000000..9ce44c4b --- /dev/null +++ b/docs/sdk/models/errors/performsearchsearcherrors.md @@ -0,0 +1,21 @@ +# PerformSearchSearchErrors + +## Example Usage + +```typescript +import { PerformSearchSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: PerformSearchSearchErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/performsearchsearchresponsebody.md b/docs/sdk/models/errors/performsearchsearchresponsebody.md new file mode 100644 index 00000000..e59a0017 --- /dev/null +++ b/docs/sdk/models/errors/performsearchsearchresponsebody.md @@ -0,0 +1,18 @@ +# PerformSearchSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PerformSearchSearchResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.PerformSearchSearchErrors](../../../sdk/models/errors/performsearchsearcherrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/performvoicesearcherrors.md b/docs/sdk/models/errors/performvoicesearcherrors.md index 583f1cc1..4fdf9592 100644 --- a/docs/sdk/models/errors/performvoicesearcherrors.md +++ b/docs/sdk/models/errors/performvoicesearcherrors.md @@ -6,16 +6,16 @@ import { PerformVoiceSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: PerformVoiceSearchErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/performvoicesearchresponsebody.md b/docs/sdk/models/errors/performvoicesearchresponsebody.md index 4e4b7873..b95c3cb3 100644 --- a/docs/sdk/models/errors/performvoicesearchresponsebody.md +++ b/docs/sdk/models/errors/performvoicesearchresponsebody.md @@ -1,6 +1,6 @@ # PerformVoiceSearchResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/performvoicesearchsearcherrors.md b/docs/sdk/models/errors/performvoicesearchsearcherrors.md new file mode 100644 index 00000000..f229ee41 --- /dev/null +++ b/docs/sdk/models/errors/performvoicesearchsearcherrors.md @@ -0,0 +1,21 @@ +# PerformVoiceSearchSearchErrors + +## Example Usage + +```typescript +import { PerformVoiceSearchSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: PerformVoiceSearchSearchErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/performvoicesearchsearchresponsebody.md b/docs/sdk/models/errors/performvoicesearchsearchresponsebody.md new file mode 100644 index 00000000..c4994d8c --- /dev/null +++ b/docs/sdk/models/errors/performvoicesearchsearchresponsebody.md @@ -0,0 +1,18 @@ +# PerformVoiceSearchSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PerformVoiceSearchSearchResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.PerformVoiceSearchSearchErrors](../../../sdk/models/errors/performvoicesearchsearcherrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/postuserssignindataauthenticationerrors.md b/docs/sdk/models/errors/postuserssignindataauthenticationerrors.md new file mode 100644 index 00000000..5e38bd38 --- /dev/null +++ b/docs/sdk/models/errors/postuserssignindataauthenticationerrors.md @@ -0,0 +1,21 @@ +# PostUsersSignInDataAuthenticationErrors + +## Example Usage + +```typescript +import { PostUsersSignInDataAuthenticationErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: PostUsersSignInDataAuthenticationErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/postuserssignindataauthenticationresponsebody.md b/docs/sdk/models/errors/postuserssignindataauthenticationresponsebody.md new file mode 100644 index 00000000..de2fdfa9 --- /dev/null +++ b/docs/sdk/models/errors/postuserssignindataauthenticationresponsebody.md @@ -0,0 +1,18 @@ +# PostUsersSignInDataAuthenticationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PostUsersSignInDataAuthenticationResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.PostUsersSignInDataAuthenticationErrors](../../../sdk/models/errors/postuserssignindataauthenticationerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/postuserssignindataerrors.md b/docs/sdk/models/errors/postuserssignindataerrors.md index adefe722..82e05dac 100644 --- a/docs/sdk/models/errors/postuserssignindataerrors.md +++ b/docs/sdk/models/errors/postuserssignindataerrors.md @@ -6,16 +6,16 @@ import { PostUsersSignInDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: PostUsersSignInDataErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/postuserssignindataresponsebody.md b/docs/sdk/models/errors/postuserssignindataresponsebody.md index 51ed8701..add1447b 100644 --- a/docs/sdk/models/errors/postuserssignindataresponsebody.md +++ b/docs/sdk/models/errors/postuserssignindataresponsebody.md @@ -1,6 +1,6 @@ # PostUsersSignInDataResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/startalltasksbutlererrors.md b/docs/sdk/models/errors/startalltasksbutlererrors.md new file mode 100644 index 00000000..6052d784 --- /dev/null +++ b/docs/sdk/models/errors/startalltasksbutlererrors.md @@ -0,0 +1,21 @@ +# StartAllTasksButlerErrors + +## Example Usage + +```typescript +import { StartAllTasksButlerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: StartAllTasksButlerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/startalltasksbutlerresponsebody.md b/docs/sdk/models/errors/startalltasksbutlerresponsebody.md new file mode 100644 index 00000000..cbbd810d --- /dev/null +++ b/docs/sdk/models/errors/startalltasksbutlerresponsebody.md @@ -0,0 +1,18 @@ +# StartAllTasksButlerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StartAllTasksButlerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.StartAllTasksButlerErrors](../../../sdk/models/errors/startalltasksbutlererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/startalltaskserrors.md b/docs/sdk/models/errors/startalltaskserrors.md index b642b463..1b24b449 100644 --- a/docs/sdk/models/errors/startalltaskserrors.md +++ b/docs/sdk/models/errors/startalltaskserrors.md @@ -6,16 +6,16 @@ import { StartAllTasksErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StartAllTasksErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/startalltasksresponsebody.md b/docs/sdk/models/errors/startalltasksresponsebody.md index 06ab39c6..1bbd6967 100644 --- a/docs/sdk/models/errors/startalltasksresponsebody.md +++ b/docs/sdk/models/errors/startalltasksresponsebody.md @@ -1,6 +1,6 @@ # StartAllTasksResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/starttaskbutlererrors.md b/docs/sdk/models/errors/starttaskbutlererrors.md new file mode 100644 index 00000000..395664f9 --- /dev/null +++ b/docs/sdk/models/errors/starttaskbutlererrors.md @@ -0,0 +1,21 @@ +# StartTaskButlerErrors + +## Example Usage + +```typescript +import { StartTaskButlerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: StartTaskButlerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/starttaskbutlerresponsebody.md b/docs/sdk/models/errors/starttaskbutlerresponsebody.md new file mode 100644 index 00000000..ba8f0284 --- /dev/null +++ b/docs/sdk/models/errors/starttaskbutlerresponsebody.md @@ -0,0 +1,18 @@ +# StartTaskButlerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StartTaskButlerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.StartTaskButlerErrors](../../../sdk/models/errors/starttaskbutlererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/starttaskerrors.md b/docs/sdk/models/errors/starttaskerrors.md index 21f8311e..23382023 100644 --- a/docs/sdk/models/errors/starttaskerrors.md +++ b/docs/sdk/models/errors/starttaskerrors.md @@ -6,16 +6,16 @@ import { StartTaskErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StartTaskErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/starttaskresponsebody.md b/docs/sdk/models/errors/starttaskresponsebody.md index 1e8fd588..f629e6aa 100644 --- a/docs/sdk/models/errors/starttaskresponsebody.md +++ b/docs/sdk/models/errors/starttaskresponsebody.md @@ -1,6 +1,6 @@ # StartTaskResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/startuniversaltranscodeerrors.md b/docs/sdk/models/errors/startuniversaltranscodeerrors.md index ce973ceb..af172ba7 100644 --- a/docs/sdk/models/errors/startuniversaltranscodeerrors.md +++ b/docs/sdk/models/errors/startuniversaltranscodeerrors.md @@ -6,16 +6,16 @@ import { StartUniversalTranscodeErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StartUniversalTranscodeErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md b/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md index bb86f293..f016edf9 100644 --- a/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md +++ b/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md @@ -1,6 +1,6 @@ # StartUniversalTranscodeResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/startuniversaltranscodevideoerrors.md b/docs/sdk/models/errors/startuniversaltranscodevideoerrors.md new file mode 100644 index 00000000..562ab020 --- /dev/null +++ b/docs/sdk/models/errors/startuniversaltranscodevideoerrors.md @@ -0,0 +1,21 @@ +# StartUniversalTranscodeVideoErrors + +## Example Usage + +```typescript +import { StartUniversalTranscodeVideoErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: StartUniversalTranscodeVideoErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/startuniversaltranscodevideoresponsebody.md b/docs/sdk/models/errors/startuniversaltranscodevideoresponsebody.md new file mode 100644 index 00000000..ded75759 --- /dev/null +++ b/docs/sdk/models/errors/startuniversaltranscodevideoresponsebody.md @@ -0,0 +1,18 @@ +# StartUniversalTranscodeVideoResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StartUniversalTranscodeVideoResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.StartUniversalTranscodeVideoErrors](../../../sdk/models/errors/startuniversaltranscodevideoerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/stopalltasksbutlererrors.md b/docs/sdk/models/errors/stopalltasksbutlererrors.md new file mode 100644 index 00000000..2ae835e9 --- /dev/null +++ b/docs/sdk/models/errors/stopalltasksbutlererrors.md @@ -0,0 +1,21 @@ +# StopAllTasksButlerErrors + +## Example Usage + +```typescript +import { StopAllTasksButlerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: StopAllTasksButlerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/stopalltasksbutlerresponsebody.md b/docs/sdk/models/errors/stopalltasksbutlerresponsebody.md new file mode 100644 index 00000000..43185076 --- /dev/null +++ b/docs/sdk/models/errors/stopalltasksbutlerresponsebody.md @@ -0,0 +1,18 @@ +# StopAllTasksButlerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StopAllTasksButlerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.StopAllTasksButlerErrors](../../../sdk/models/errors/stopalltasksbutlererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/stopalltaskserrors.md b/docs/sdk/models/errors/stopalltaskserrors.md index ae148323..fd463c9a 100644 --- a/docs/sdk/models/errors/stopalltaskserrors.md +++ b/docs/sdk/models/errors/stopalltaskserrors.md @@ -6,16 +6,16 @@ import { StopAllTasksErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StopAllTasksErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/stopalltasksresponsebody.md b/docs/sdk/models/errors/stopalltasksresponsebody.md index 28a0c62a..50570520 100644 --- a/docs/sdk/models/errors/stopalltasksresponsebody.md +++ b/docs/sdk/models/errors/stopalltasksresponsebody.md @@ -1,6 +1,6 @@ # StopAllTasksResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/stoptaskbutlererrors.md b/docs/sdk/models/errors/stoptaskbutlererrors.md new file mode 100644 index 00000000..c1746d81 --- /dev/null +++ b/docs/sdk/models/errors/stoptaskbutlererrors.md @@ -0,0 +1,21 @@ +# StopTaskButlerErrors + +## Example Usage + +```typescript +import { StopTaskButlerErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: StopTaskButlerErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/stoptaskbutlerresponsebody.md b/docs/sdk/models/errors/stoptaskbutlerresponsebody.md new file mode 100644 index 00000000..8d990952 --- /dev/null +++ b/docs/sdk/models/errors/stoptaskbutlerresponsebody.md @@ -0,0 +1,18 @@ +# StopTaskButlerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StopTaskButlerResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.StopTaskButlerErrors](../../../sdk/models/errors/stoptaskbutlererrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/stoptaskerrors.md b/docs/sdk/models/errors/stoptaskerrors.md index 06570437..579372a7 100644 --- a/docs/sdk/models/errors/stoptaskerrors.md +++ b/docs/sdk/models/errors/stoptaskerrors.md @@ -6,16 +6,16 @@ import { StopTaskErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StopTaskErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/stoptaskresponsebody.md b/docs/sdk/models/errors/stoptaskresponsebody.md index 7f41ae31..51498f16 100644 --- a/docs/sdk/models/errors/stoptaskresponsebody.md +++ b/docs/sdk/models/errors/stoptaskresponsebody.md @@ -1,6 +1,6 @@ # StopTaskResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/stoptranscodesessionerrors.md b/docs/sdk/models/errors/stoptranscodesessionerrors.md index d42a4bc6..eebf92d4 100644 --- a/docs/sdk/models/errors/stoptranscodesessionerrors.md +++ b/docs/sdk/models/errors/stoptranscodesessionerrors.md @@ -6,16 +6,16 @@ import { StopTranscodeSessionErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StopTranscodeSessionErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/stoptranscodesessionresponsebody.md b/docs/sdk/models/errors/stoptranscodesessionresponsebody.md index 8378897f..16f33d56 100644 --- a/docs/sdk/models/errors/stoptranscodesessionresponsebody.md +++ b/docs/sdk/models/errors/stoptranscodesessionresponsebody.md @@ -1,6 +1,6 @@ # StopTranscodeSessionResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/stoptranscodesessionsessionserrors.md b/docs/sdk/models/errors/stoptranscodesessionsessionserrors.md new file mode 100644 index 00000000..7082b84b --- /dev/null +++ b/docs/sdk/models/errors/stoptranscodesessionsessionserrors.md @@ -0,0 +1,21 @@ +# StopTranscodeSessionSessionsErrors + +## Example Usage + +```typescript +import { StopTranscodeSessionSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: StopTranscodeSessionSessionsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/stoptranscodesessionsessionsresponsebody.md b/docs/sdk/models/errors/stoptranscodesessionsessionsresponsebody.md new file mode 100644 index 00000000..36c32e4b --- /dev/null +++ b/docs/sdk/models/errors/stoptranscodesessionsessionsresponsebody.md @@ -0,0 +1,18 @@ +# StopTranscodeSessionSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StopTranscodeSessionSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.StopTranscodeSessionSessionsErrors](../../../sdk/models/errors/stoptranscodesessionsessionserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplaylisterrors.md b/docs/sdk/models/errors/updateplaylisterrors.md index 93a3d659..97230b1c 100644 --- a/docs/sdk/models/errors/updateplaylisterrors.md +++ b/docs/sdk/models/errors/updateplaylisterrors.md @@ -6,16 +6,16 @@ import { UpdatePlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: UpdatePlaylistErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplaylistplaylistserrors.md b/docs/sdk/models/errors/updateplaylistplaylistserrors.md new file mode 100644 index 00000000..132450d9 --- /dev/null +++ b/docs/sdk/models/errors/updateplaylistplaylistserrors.md @@ -0,0 +1,21 @@ +# UpdatePlaylistPlaylistsErrors + +## Example Usage + +```typescript +import { UpdatePlaylistPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: UpdatePlaylistPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplaylistplaylistsresponsebody.md b/docs/sdk/models/errors/updateplaylistplaylistsresponsebody.md new file mode 100644 index 00000000..34b674fe --- /dev/null +++ b/docs/sdk/models/errors/updateplaylistplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# UpdatePlaylistPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { UpdatePlaylistPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.UpdatePlaylistPlaylistsErrors](../../../sdk/models/errors/updateplaylistplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplaylistresponsebody.md b/docs/sdk/models/errors/updateplaylistresponsebody.md index 9e34068f..e31f37dd 100644 --- a/docs/sdk/models/errors/updateplaylistresponsebody.md +++ b/docs/sdk/models/errors/updateplaylistresponsebody.md @@ -1,6 +1,6 @@ # UpdatePlaylistResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/updateplayprogresserrors.md b/docs/sdk/models/errors/updateplayprogresserrors.md index 14aedb01..7b809d44 100644 --- a/docs/sdk/models/errors/updateplayprogresserrors.md +++ b/docs/sdk/models/errors/updateplayprogresserrors.md @@ -6,16 +6,16 @@ import { UpdatePlayProgressErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: UpdatePlayProgressErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplayprogressmediaerrors.md b/docs/sdk/models/errors/updateplayprogressmediaerrors.md new file mode 100644 index 00000000..a1e865b6 --- /dev/null +++ b/docs/sdk/models/errors/updateplayprogressmediaerrors.md @@ -0,0 +1,21 @@ +# UpdatePlayProgressMediaErrors + +## Example Usage + +```typescript +import { UpdatePlayProgressMediaErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: UpdatePlayProgressMediaErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplayprogressmediaresponsebody.md b/docs/sdk/models/errors/updateplayprogressmediaresponsebody.md new file mode 100644 index 00000000..51c5baea --- /dev/null +++ b/docs/sdk/models/errors/updateplayprogressmediaresponsebody.md @@ -0,0 +1,18 @@ +# UpdatePlayProgressMediaResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { UpdatePlayProgressMediaResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.UpdatePlayProgressMediaErrors](../../../sdk/models/errors/updateplayprogressmediaerrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/updateplayprogressresponsebody.md b/docs/sdk/models/errors/updateplayprogressresponsebody.md index 09ba2a71..692397eb 100644 --- a/docs/sdk/models/errors/updateplayprogressresponsebody.md +++ b/docs/sdk/models/errors/updateplayprogressresponsebody.md @@ -1,6 +1,6 @@ # UpdatePlayProgressResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/errors/uploadplaylisterrors.md b/docs/sdk/models/errors/uploadplaylisterrors.md index 4ad69cb6..2a22b8e0 100644 --- a/docs/sdk/models/errors/uploadplaylisterrors.md +++ b/docs/sdk/models/errors/uploadplaylisterrors.md @@ -6,16 +6,16 @@ import { UploadPlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: UploadPlaylistErrors = { - code: 1001, - message: "User could not be authenticated", - status: 401, + code: 1000, + message: "X-Plex-Client-Identifier is missing", + status: 400, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | +| `status` | *number* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/sdk/models/errors/uploadplaylistplaylistserrors.md b/docs/sdk/models/errors/uploadplaylistplaylistserrors.md new file mode 100644 index 00000000..6e3393f4 --- /dev/null +++ b/docs/sdk/models/errors/uploadplaylistplaylistserrors.md @@ -0,0 +1,21 @@ +# UploadPlaylistPlaylistsErrors + +## Example Usage + +```typescript +import { UploadPlaylistPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; + +let value: UploadPlaylistPlaylistsErrors = { + code: 1001, + message: "User could not be authenticated", + status: 401, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *number* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *number* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/sdk/models/errors/uploadplaylistplaylistsresponsebody.md b/docs/sdk/models/errors/uploadplaylistplaylistsresponsebody.md new file mode 100644 index 00000000..2768ec87 --- /dev/null +++ b/docs/sdk/models/errors/uploadplaylistplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# UploadPlaylistPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { UploadPlaylistPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.UploadPlaylistPlaylistsErrors](../../../sdk/models/errors/uploadplaylistplaylistserrors.md)[] | :heavy_minus_sign: | N/A | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/sdk/models/errors/uploadplaylistresponsebody.md b/docs/sdk/models/errors/uploadplaylistresponsebody.md index 550b0e81..57282d8e 100644 --- a/docs/sdk/models/errors/uploadplaylistresponsebody.md +++ b/docs/sdk/models/errors/uploadplaylistresponsebody.md @@ -1,6 +1,6 @@ # UploadPlaylistResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Bad Request - A parameter was not specified, or was specified incorrectly. ## Example Usage diff --git a/docs/sdk/models/operations/getuserdetailsuserplexaccount.md b/docs/sdk/models/operations/getuserdetailsuserplexaccount.md index 9c4da7f2..39a1b716 100644 --- a/docs/sdk/models/operations/getuserdetailsuserplexaccount.md +++ b/docs/sdk/models/operations/getuserdetailsuserplexaccount.md @@ -120,7 +120,7 @@ let value: GetUserDetailsUserPlexAccount = { | `homeAdmin` | *boolean* | :heavy_minus_sign: | If the account is the Plex Home admin | | | `homeSize` | *number* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | | `id` | *number* | :heavy_check_mark: | The Plex account ID | 13692262 | -| `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | +| `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | | `locale` | *string* | :heavy_check_mark: | The account locale | | | `mailingListActive` | *boolean* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `mailingListStatus` | [operations.MailingListStatus](../../../sdk/models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | @@ -128,7 +128,7 @@ let value: GetUserDetailsUserPlexAccount = { | ~~`pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | | `profile` | [operations.UserProfile](../../../sdk/models/operations/userprofile.md) | :heavy_check_mark: | N/A | | | `protected` | *boolean* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | -| `rememberExpiresAt` | *number* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 | +| `rememberExpiresAt` | *number* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | | `restricted` | *boolean* | :heavy_minus_sign: | If the account is a Plex Home managed user | | | `roles` | *string*[] | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | | `scrobbleTypes` | *string* | :heavy_check_mark: | Unknown | | diff --git a/docs/sdk/models/operations/postuserssignindatarequest.md b/docs/sdk/models/operations/postuserssignindatarequest.md index 202cc6fb..04c6c664 100644 --- a/docs/sdk/models/operations/postuserssignindatarequest.md +++ b/docs/sdk/models/operations/postuserssignindatarequest.md @@ -9,6 +9,7 @@ let value: PostUsersSignInDataRequest = { requestBody: { login: "username@email.com", password: "password123", + verificationCode: "123456", }, }; ``` diff --git a/docs/sdk/models/operations/postuserssignindatarequestbody.md b/docs/sdk/models/operations/postuserssignindatarequestbody.md index 9fa32f92..704a752e 100644 --- a/docs/sdk/models/operations/postuserssignindatarequestbody.md +++ b/docs/sdk/models/operations/postuserssignindatarequestbody.md @@ -10,6 +10,7 @@ import { PostUsersSignInDataRequestBody } from "@lukehagar/plexjs/sdk/models/ope let value: PostUsersSignInDataRequestBody = { login: "username@email.com", password: "password123", + verificationCode: "123456", }; ``` @@ -19,4 +20,5 @@ let value: PostUsersSignInDataRequestBody = { | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | | `login` | *string* | :heavy_check_mark: | N/A | username@email.com | | `password` | *string* | :heavy_check_mark: | N/A | password123 | -| `rememberMe` | *boolean* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `rememberMe` | *boolean* | :heavy_minus_sign: | N/A | | +| `verificationCode` | *string* | :heavy_minus_sign: | N/A | 123456 | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindatauserplexaccount.md b/docs/sdk/models/operations/postuserssignindatauserplexaccount.md index 6d3870a0..38784923 100644 --- a/docs/sdk/models/operations/postuserssignindatauserplexaccount.md +++ b/docs/sdk/models/operations/postuserssignindatauserplexaccount.md @@ -144,7 +144,7 @@ let value: PostUsersSignInDataUserPlexAccount = { | `homeAdmin` | *boolean* | :heavy_minus_sign: | If the account is the Plex Home admin | | | `homeSize` | *number* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | | `id` | *number* | :heavy_check_mark: | The Plex account ID | 13692262 | -| `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | +| `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | | `locale` | *string* | :heavy_check_mark: | The account locale | | | `mailingListActive` | *boolean* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `mailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../../sdk/models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | @@ -152,7 +152,7 @@ let value: PostUsersSignInDataUserPlexAccount = { | ~~`pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | | `profile` | [operations.PostUsersSignInDataUserProfile](../../../sdk/models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | | | `protected` | *boolean* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | -| `rememberExpiresAt` | *number* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 | +| `rememberExpiresAt` | *number* | :heavy_check_mark: | Unix epoch datetime | 1556281940 | | `restricted` | *boolean* | :heavy_minus_sign: | If the account is a Plex Home managed user | | | `roles` | *string*[] | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | | `scrobbleTypes` | *string* | :heavy_check_mark: | Unknown | | diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 64e41b32..373890b8 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -86,10 +86,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.GetServerActivitiesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| errors.GetServerActivitiesResponseBody | 400 | application/json | +| errors.GetServerActivitiesActivitiesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## cancelServerActivities @@ -162,7 +163,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| errors.CancelServerActivitiesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| errors.CancelServerActivitiesResponseBody | 400 | application/json | +| errors.CancelServerActivitiesActivitiesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index b4d001db..a137d7c0 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -11,7 +11,7 @@ API Calls regarding authentication for Plex Media Server * [getTransientToken](#gettransienttoken) - Get a Transient Token. * [getSourceConnectionInformation](#getsourceconnectioninformation) - Get Source Connection Information * [getUserDetails](#getuserdetails) - Get User Data By Token -* [postUsersSignInData](#postuserssignindata) - Get User SignIn Data +* [postUsersSignInData](#postuserssignindata) - Get User Sign In Data ## getTransientToken @@ -87,10 +87,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| errors.GetTransientTokenResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| errors.GetTransientTokenResponseBody | 400 | application/json | +| errors.GetTransientTokenAuthenticationResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSourceConnectionInformation @@ -165,10 +166,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| errors.GetSourceConnectionInformationResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| errors.GetSourceConnectionInformationResponseBody | 400 | application/json | +| errors.GetSourceConnectionInformationAuthenticationResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getUserDetails @@ -242,10 +244,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.GetUserDetailsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| errors.GetUserDetailsResponseBody | 400 | application/json | +| errors.GetUserDetailsAuthenticationResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## postUsersSignInData @@ -265,6 +268,7 @@ async function run() { const result = await plexAPI.authentication.postUsersSignInData("gcgzw5rz2xovp84b4vha3a40", { login: "username@email.com", password: "password123", + verificationCode: "123456", }); // Handle the result @@ -292,6 +296,7 @@ async function run() { const res = await authenticationPostUsersSignInData(plexAPI, "gcgzw5rz2xovp84b4vha3a40", { login: "username@email.com", password: "password123", + verificationCode: "123456", }); if (!res.ok) { @@ -324,7 +329,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.PostUsersSignInDataResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| errors.PostUsersSignInDataResponseBody | 400 | application/json | +| errors.PostUsersSignInDataAuthenticationResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 2d5b2a90..636fa363 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -83,10 +83,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.GetButlerTasksResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| errors.GetButlerTasksResponseBody | 400 | application/json | +| errors.GetButlerTasksButlerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## startAllTasks @@ -163,10 +164,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.StartAllTasksResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.StartAllTasksResponseBody | 400 | application/json | +| errors.StartAllTasksButlerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## stopAllTasks @@ -239,10 +241,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------- | ------------------------------- | ------------------------------- | -| errors.StopAllTasksResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.StopAllTasksResponseBody | 400 | application/json | +| errors.StopAllTasksButlerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## startTask @@ -322,10 +325,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------- | ---------------------------- | ---------------------------- | -| errors.StartTaskResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.StartTaskResponseBody | 400 | application/json | +| errors.StartTaskButlerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## stopTask @@ -401,7 +405,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| errors.StopTaskResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.StopTaskResponseBody | 400 | application/json | +| errors.StopTaskButlerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 57aa09c2..95b73155 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -82,10 +82,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.GetGlobalHubsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| errors.GetGlobalHubsResponseBody | 400 | application/json | +| errors.GetGlobalHubsHubsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getLibraryHubs @@ -161,7 +162,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.GetLibraryHubsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.GetLibraryHubsResponseBody | 400 | application/json | +| errors.GetLibraryHubsHubsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index b541bf0a..aa44c6da 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -92,10 +92,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.GetFileHashResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.GetFileHashResponseBody | 400 | application/json | +| errors.GetFileHashLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getRecentlyAdded @@ -170,10 +171,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.GetRecentlyAddedResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.GetRecentlyAddedResponseBody | 400 | application/json | +| errors.GetRecentlyAddedLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getAllLibraries @@ -251,10 +253,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| errors.GetAllLibrariesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetAllLibrariesResponseBody | 400 | application/json | +| errors.GetAllLibrariesLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getLibraryDetails @@ -367,10 +370,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| errors.GetLibraryDetailsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| errors.GetLibraryDetailsResponseBody | 400 | application/json | +| errors.GetLibraryDetailsLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## deleteLibrary @@ -443,10 +447,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.DeleteLibraryResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| errors.DeleteLibraryResponseBody | 400 | application/json | +| errors.DeleteLibraryLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getLibraryItems @@ -557,10 +562,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| errors.GetLibraryItemsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetLibraryItemsResponseBody | 400 | application/json | +| errors.GetLibraryItemsLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getRefreshLibraryMetadata @@ -637,10 +643,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| errors.GetRefreshLibraryMetadataResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| errors.GetRefreshLibraryMetadataResponseBody | 400 | application/json | +| errors.GetRefreshLibraryMetadataLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSearchLibrary @@ -734,10 +741,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.GetSearchLibraryResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.GetSearchLibraryResponseBody | 400 | application/json | +| errors.GetSearchLibraryLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMetaDataByRatingKey @@ -811,10 +819,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| errors.GetMetaDataByRatingKeyResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| errors.GetMetaDataByRatingKeyResponseBody | 400 | application/json | +| errors.GetMetaDataByRatingKeyLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMetadataChildren @@ -889,10 +898,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.GetMetadataChildrenResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| errors.GetMetadataChildrenResponseBody | 400 | application/json | +| errors.GetMetadataChildrenLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getTopWatchedContent @@ -969,10 +979,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| errors.GetTopWatchedContentResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| errors.GetTopWatchedContentResponseBody | 400 | application/json | +| errors.GetTopWatchedContentLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getOnDeck @@ -1045,7 +1056,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------- | ---------------------------- | ---------------------------- | -| errors.GetOnDeckResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetOnDeckResponseBody | 400 | application/json | +| errors.GetOnDeckLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 1291e7bd..af595a94 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -87,10 +87,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.LogLineResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------- | ----------------------------- | ----------------------------- | +| errors.LogLineResponseBody | 400 | application/json | +| errors.LogLineLogResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## logMultiLine @@ -188,10 +189,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------- | ------------------------------- | ------------------------------- | -| errors.LogMultiLineResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.LogMultiLineResponseBody | 400 | application/json | +| errors.LogMultiLineLogResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## enablePaperTrail @@ -264,7 +266,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.EnablePaperTrailResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.EnablePaperTrailResponseBody | 400 | application/json | +| errors.EnablePaperTrailLogResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index ed7df073..744455c3 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -84,10 +84,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| errors.MarkPlayedResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.MarkPlayedResponseBody | 400 | application/json | +| errors.MarkPlayedMediaResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## markUnplayed @@ -160,10 +161,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------- | ------------------------------- | ------------------------------- | -| errors.MarkUnplayedResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| errors.MarkUnplayedResponseBody | 400 | application/json | +| errors.MarkUnplayedMediaResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## updatePlayProgress @@ -239,10 +241,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.UpdatePlayProgressResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.UpdatePlayProgressResponseBody | 400 | application/json | +| errors.UpdatePlayProgressMediaResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getBannerImage @@ -329,10 +332,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.GetBannerImageResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetBannerImageResponseBody | 400 | application/json | +| errors.GetBannerImageMediaResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getThumbImage @@ -419,7 +423,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.GetThumbImageResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.GetThumbImageResponseBody | 400 | application/json | +| errors.GetThumbImageMediaResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 9cf579b8..30e3cf65 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -106,10 +106,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.CreatePlaylistResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.CreatePlaylistResponseBody | 400 | application/json | +| errors.CreatePlaylistPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPlaylists @@ -183,10 +184,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------- | ------------------------------- | ------------------------------- | -| errors.GetPlaylistsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| errors.GetPlaylistsResponseBody | 400 | application/json | +| errors.GetPlaylistsPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPlaylist @@ -261,10 +263,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.GetPlaylistResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| errors.GetPlaylistResponseBody | 400 | application/json | +| errors.GetPlaylistPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## deletePlaylist @@ -338,10 +341,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.DeletePlaylistResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.DeletePlaylistResponseBody | 400 | application/json | +| errors.DeletePlaylistPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## updatePlaylist @@ -417,10 +421,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.UpdatePlaylistResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.UpdatePlaylistResponseBody | 400 | application/json | +| errors.UpdatePlaylistPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPlaylistContents @@ -500,10 +505,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.GetPlaylistContentsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| errors.GetPlaylistContentsResponseBody | 400 | application/json | +| errors.GetPlaylistContentsPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## clearPlaylistContents @@ -577,10 +583,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| errors.ClearPlaylistContentsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| errors.ClearPlaylistContentsResponseBody | 400 | application/json | +| errors.ClearPlaylistContentsPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## addPlaylistContents @@ -657,10 +664,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.AddPlaylistContentsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| errors.AddPlaylistContentsResponseBody | 400 | application/json | +| errors.AddPlaylistContentsPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## uploadPlaylist @@ -737,7 +745,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.UploadPlaylistResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.UploadPlaylistResponseBody | 400 | application/json | +| errors.UploadPlaylistPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 75692e85..29d0dd85 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -86,10 +86,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| errors.GetCompanionsDataResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| errors.GetCompanionsDataResponseBody | 400 | application/json | +| errors.GetCompanionsDataPlexResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getUserFriends @@ -162,10 +163,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.GetUserFriendsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.GetUserFriendsResponseBody | 400 | application/json | +| errors.GetUserFriendsPlexResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getGeoData @@ -236,10 +238,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| errors.GetGeoDataResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.GetGeoDataResponseBody | 400 | application/json | +| errors.GetGeoDataPlexResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getHomeData @@ -311,10 +314,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.GetHomeDataResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.GetHomeDataResponseBody | 400 | application/json | +| errors.GetHomeDataPlexResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerResources @@ -400,10 +404,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.GetServerResourcesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetServerResourcesResponseBody | 400 | application/json | +| errors.GetServerResourcesPlexResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPin diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 6604c140..05a4cbb9 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -96,10 +96,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.PerformSearchResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.PerformSearchResponseBody | 400 | application/json | +| errors.PerformSearchSearchResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## performVoiceSearch @@ -178,10 +179,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.PerformVoiceSearchResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| errors.PerformVoiceSearchResponseBody | 400 | application/json | +| errors.PerformVoiceSearchSearchResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSearchResults @@ -254,7 +256,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.GetSearchResultsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetSearchResultsResponseBody | 400 | application/json | +| errors.GetSearchResultsSearchResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 9def6f4e..57c405c4 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -87,10 +87,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| errors.GetServerCapabilitiesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| errors.GetServerCapabilitiesResponseBody | 400 | application/json | +| errors.GetServerCapabilitiesServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerPreferences @@ -162,10 +163,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| errors.GetServerPreferencesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| errors.GetServerPreferencesResponseBody | 400 | application/json | +| errors.GetServerPreferencesServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getAvailableClients @@ -237,10 +239,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.GetAvailableClientsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| errors.GetAvailableClientsResponseBody | 400 | application/json | +| errors.GetAvailableClientsServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getDevices @@ -312,10 +315,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| errors.GetDevicesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetDevicesResponseBody | 400 | application/json | +| errors.GetDevicesServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerIdentity @@ -460,10 +464,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.GetMyPlexAccountResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetMyPlexAccountResponseBody | 400 | application/json | +| errors.GetMyPlexAccountServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getResizedPhoto @@ -555,10 +560,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| errors.GetResizedPhotoResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| errors.GetResizedPhotoResponseBody | 400 | application/json | +| errors.GetResizedPhotoServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMediaProviders @@ -631,10 +637,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| errors.GetMediaProvidersResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.GetMediaProvidersResponseBody | 400 | application/json | +| errors.GetMediaProvidersServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerList @@ -706,7 +713,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.GetServerListResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetServerListResponseBody | 400 | application/json | +| errors.GetServerListServerResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index aa6f7789..8c04331c 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -82,10 +82,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.GetSessionsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetSessionsResponseBody | 400 | application/json | +| errors.GetSessionsSessionsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSessionHistory @@ -161,10 +162,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| errors.GetSessionHistoryResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| errors.GetSessionHistoryResponseBody | 400 | application/json | +| errors.GetSessionHistorySessionsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getTranscodeSessions @@ -236,10 +238,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| errors.GetTranscodeSessionsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| errors.GetTranscodeSessionsResponseBody | 400 | application/json | +| errors.GetTranscodeSessionsSessionsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## stopTranscodeSession @@ -312,7 +315,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| errors.StopTranscodeSessionResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| errors.StopTranscodeSessionResponseBody | 400 | application/json | +| errors.StopTranscodeSessionSessionsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index 3eb76261..1db1939d 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -82,10 +82,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| errors.GetStatisticsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| errors.GetStatisticsResponseBody | 400 | application/json | +| errors.GetStatisticsStatisticsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getResourcesStatistics @@ -158,10 +159,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| errors.GetResourcesStatisticsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| errors.GetResourcesStatisticsResponseBody | 400 | application/json | +| errors.GetResourcesStatisticsStatisticsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getBandwidthStatistics @@ -234,7 +236,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| errors.GetBandwidthStatisticsResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| errors.GetBandwidthStatisticsResponseBody | 400 | application/json | +| errors.GetBandwidthStatisticsStatisticsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index d4897085..d5294f3c 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -82,10 +82,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| errors.GetUpdateStatusResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetUpdateStatusResponseBody | 400 | application/json | +| errors.GetUpdateStatusUpdaterResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## checkForUpdates @@ -160,10 +161,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| errors.CheckForUpdatesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.CheckForUpdatesResponseBody | 400 | application/json | +| errors.CheckForUpdatesUpdaterResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## applyUpdates @@ -240,7 +242,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------- | ------------------------------- | ------------------------------- | -| errors.ApplyUpdatesResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.ApplyUpdatesResponseBody | 400 | application/json | +| errors.ApplyUpdatesUpdaterResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index 9e14aa6f..82c6ee2a 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -105,10 +105,11 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.GetTimelineResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetTimelineResponseBody | 400 | application/json | +| errors.GetTimelineVideoResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## startUniversalTranscode @@ -215,7 +216,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| errors.StartUniversalTranscodeResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| errors.StartUniversalTranscodeResponseBody | 400 | application/json | +| errors.StartUniversalTranscodeVideoResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index f350a120..5ae3f61f 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -93,7 +93,8 @@ run(); ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------- | ------------------------------- | ------------------------------- | -| errors.GetWatchListResponseBody | 401 | application/json | -| errors.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| errors.GetWatchListResponseBody | 400 | application/json | +| errors.GetWatchListWatchlistResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/jsr.json b/jsr.json index 02afc91f..5d45923d 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@lukehagar/plexjs", - "version": "0.20.2", + "version": "0.21.0", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 87f510e8..759fd4c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.20.2", + "version": "0.21.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.20.2", + "version": "0.21.0", "devDependencies": { "@types/node": "^18.19.3", "@typescript-eslint/eslint-plugin": "^7.7.1", diff --git a/package.json b/package.json index b18d4413..8396e9e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.20.2", + "version": "0.21.0", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/activitiesCancelServerActivities.ts b/src/funcs/activitiesCancelServerActivities.ts index 24679a6c..87700ee5 100644 --- a/src/funcs/activitiesCancelServerActivities.ts +++ b/src/funcs/activitiesCancelServerActivities.ts @@ -36,6 +36,7 @@ export async function activitiesCancelServerActivities( Result< operations.CancelServerActivitiesResponse, | errors.CancelServerActivitiesResponseBody + | errors.CancelServerActivitiesActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -120,6 +121,7 @@ export async function activitiesCancelServerActivities( const [result$] = await m$.match< operations.CancelServerActivitiesResponse, | errors.CancelServerActivitiesResponseBody + | errors.CancelServerActivitiesActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,8 +131,9 @@ export async function activitiesCancelServerActivities( | ConnectionError >( m$.nil(200, operations.CancelServerActivitiesResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.CancelServerActivitiesResponseBody$inboundSchema) + m$.jsonErr(400, errors.CancelServerActivitiesResponseBody$inboundSchema), + m$.jsonErr(401, errors.CancelServerActivitiesActivitiesResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/activitiesGetServerActivities.ts b/src/funcs/activitiesGetServerActivities.ts index 8eaecbf0..686c47da 100644 --- a/src/funcs/activitiesGetServerActivities.ts +++ b/src/funcs/activitiesGetServerActivities.ts @@ -33,6 +33,7 @@ export async function activitiesGetServerActivities( Result< operations.GetServerActivitiesResponse, | errors.GetServerActivitiesResponseBody + | errors.GetServerActivitiesActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function activitiesGetServerActivities( const [result$] = await m$.match< operations.GetServerActivitiesResponse, | errors.GetServerActivitiesResponseBody + | errors.GetServerActivitiesActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function activitiesGetServerActivities( | ConnectionError >( m$.json(200, operations.GetServerActivitiesResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetServerActivitiesResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetServerActivitiesResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetServerActivitiesActivitiesResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationGetSourceConnectionInformation.ts b/src/funcs/authenticationGetSourceConnectionInformation.ts index 73a8afe1..bc39c0ad 100644 --- a/src/funcs/authenticationGetSourceConnectionInformation.ts +++ b/src/funcs/authenticationGetSourceConnectionInformation.ts @@ -38,6 +38,7 @@ export async function authenticationGetSourceConnectionInformation( Result< operations.GetSourceConnectionInformationResponse, | errors.GetSourceConnectionInformationResponseBody + | errors.GetSourceConnectionInformationAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -120,6 +121,7 @@ export async function authenticationGetSourceConnectionInformation( const [result$] = await m$.match< operations.GetSourceConnectionInformationResponse, | errors.GetSourceConnectionInformationResponseBody + | errors.GetSourceConnectionInformationAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,8 +131,12 @@ export async function authenticationGetSourceConnectionInformation( | ConnectionError >( m$.nil(200, operations.GetSourceConnectionInformationResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetSourceConnectionInformationResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetSourceConnectionInformationResponseBody$inboundSchema), + m$.jsonErr( + 401, + errors.GetSourceConnectionInformationAuthenticationResponseBody$inboundSchema + ), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationGetTransientToken.ts b/src/funcs/authenticationGetTransientToken.ts index 614469c9..343bd654 100644 --- a/src/funcs/authenticationGetTransientToken.ts +++ b/src/funcs/authenticationGetTransientToken.ts @@ -38,6 +38,7 @@ export async function authenticationGetTransientToken( Result< operations.GetTransientTokenResponse, | errors.GetTransientTokenResponseBody + | errors.GetTransientTokenAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -122,6 +123,7 @@ export async function authenticationGetTransientToken( const [result$] = await m$.match< operations.GetTransientTokenResponse, | errors.GetTransientTokenResponseBody + | errors.GetTransientTokenAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,8 +133,9 @@ export async function authenticationGetTransientToken( | ConnectionError >( m$.nil(200, operations.GetTransientTokenResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetTransientTokenResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetTransientTokenResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetTransientTokenAuthenticationResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationGetUserDetails.ts b/src/funcs/authenticationGetUserDetails.ts index 1a385941..37658e89 100644 --- a/src/funcs/authenticationGetUserDetails.ts +++ b/src/funcs/authenticationGetUserDetails.ts @@ -37,6 +37,7 @@ export async function authenticationGetUserDetails( Result< operations.GetUserDetailsResponse, | errors.GetUserDetailsResponseBody + | errors.GetUserDetailsAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -124,6 +125,7 @@ export async function authenticationGetUserDetails( const [result$] = await m$.match< operations.GetUserDetailsResponse, | errors.GetUserDetailsResponseBody + | errors.GetUserDetailsAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -133,8 +135,9 @@ export async function authenticationGetUserDetails( | ConnectionError >( m$.json(200, operations.GetUserDetailsResponse$inboundSchema, { key: "UserPlexAccount" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetUserDetailsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetUserDetailsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetUserDetailsAuthenticationResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationPostUsersSignInData.ts b/src/funcs/authenticationPostUsersSignInData.ts index 3d1c914c..ce2ad539 100644 --- a/src/funcs/authenticationPostUsersSignInData.ts +++ b/src/funcs/authenticationPostUsersSignInData.ts @@ -26,7 +26,7 @@ import { PostUsersSignInDataServerList } from "../sdk/models/operations/postuser import { Result } from "../sdk/types/fp.js"; /** - * Get User SignIn Data + * Get User Sign In Data * * @remarks * Sign in user with username and password and return user data with Plex authentication token @@ -40,6 +40,7 @@ export async function authenticationPostUsersSignInData( Result< operations.PostUsersSignInDataResponse, | errors.PostUsersSignInDataResponseBody + | errors.PostUsersSignInDataAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,6 +131,7 @@ export async function authenticationPostUsersSignInData( const [result$] = await m$.match< operations.PostUsersSignInDataResponse, | errors.PostUsersSignInDataResponseBody + | errors.PostUsersSignInDataAuthenticationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -141,8 +143,9 @@ export async function authenticationPostUsersSignInData( m$.json(201, operations.PostUsersSignInDataResponse$inboundSchema, { key: "UserPlexAccount", }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.PostUsersSignInDataResponseBody$inboundSchema) + m$.jsonErr(400, errors.PostUsersSignInDataResponseBody$inboundSchema), + m$.jsonErr(401, errors.PostUsersSignInDataAuthenticationResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerGetButlerTasks.ts b/src/funcs/butlerGetButlerTasks.ts index bbcb2b70..3ce74fa8 100644 --- a/src/funcs/butlerGetButlerTasks.ts +++ b/src/funcs/butlerGetButlerTasks.ts @@ -33,6 +33,7 @@ export async function butlerGetButlerTasks( Result< operations.GetButlerTasksResponse, | errors.GetButlerTasksResponseBody + | errors.GetButlerTasksButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function butlerGetButlerTasks( const [result$] = await m$.match< operations.GetButlerTasksResponse, | errors.GetButlerTasksResponseBody + | errors.GetButlerTasksButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function butlerGetButlerTasks( | ConnectionError >( m$.json(200, operations.GetButlerTasksResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetButlerTasksResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetButlerTasksResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetButlerTasksButlerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStartAllTasks.ts b/src/funcs/butlerStartAllTasks.ts index 77514a3e..2bf6cb80 100644 --- a/src/funcs/butlerStartAllTasks.ts +++ b/src/funcs/butlerStartAllTasks.ts @@ -38,6 +38,7 @@ export async function butlerStartAllTasks( Result< operations.StartAllTasksResponse, | errors.StartAllTasksResponseBody + | errors.StartAllTasksButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -99,6 +100,7 @@ export async function butlerStartAllTasks( const [result$] = await m$.match< operations.StartAllTasksResponse, | errors.StartAllTasksResponseBody + | errors.StartAllTasksButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -108,8 +110,9 @@ export async function butlerStartAllTasks( | ConnectionError >( m$.nil(200, operations.StartAllTasksResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.StartAllTasksResponseBody$inboundSchema) + m$.jsonErr(400, errors.StartAllTasksResponseBody$inboundSchema), + m$.jsonErr(401, errors.StartAllTasksButlerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStartTask.ts b/src/funcs/butlerStartTask.ts index e1412207..c5b8caa8 100644 --- a/src/funcs/butlerStartTask.ts +++ b/src/funcs/butlerStartTask.ts @@ -41,6 +41,7 @@ export async function butlerStartTask( Result< operations.StartTaskResponse, | errors.StartTaskResponseBody + | errors.StartTaskButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,6 +126,7 @@ export async function butlerStartTask( const [result$] = await m$.match< operations.StartTaskResponse, | errors.StartTaskResponseBody + | errors.StartTaskButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,8 +136,9 @@ export async function butlerStartTask( | ConnectionError >( m$.nil([200, 202], operations.StartTaskResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.StartTaskResponseBody$inboundSchema) + m$.jsonErr(400, errors.StartTaskResponseBody$inboundSchema), + m$.jsonErr(401, errors.StartTaskButlerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStopAllTasks.ts b/src/funcs/butlerStopAllTasks.ts index a42d6752..e4244dcf 100644 --- a/src/funcs/butlerStopAllTasks.ts +++ b/src/funcs/butlerStopAllTasks.ts @@ -34,6 +34,7 @@ export async function butlerStopAllTasks( Result< operations.StopAllTasksResponse, | errors.StopAllTasksResponseBody + | errors.StopAllTasksButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -95,6 +96,7 @@ export async function butlerStopAllTasks( const [result$] = await m$.match< operations.StopAllTasksResponse, | errors.StopAllTasksResponseBody + | errors.StopAllTasksButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -104,8 +106,9 @@ export async function butlerStopAllTasks( | ConnectionError >( m$.nil(200, operations.StopAllTasksResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.StopAllTasksResponseBody$inboundSchema) + m$.jsonErr(400, errors.StopAllTasksResponseBody$inboundSchema), + m$.jsonErr(401, errors.StopAllTasksButlerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStopTask.ts b/src/funcs/butlerStopTask.ts index 936b7706..d06d667e 100644 --- a/src/funcs/butlerStopTask.ts +++ b/src/funcs/butlerStopTask.ts @@ -37,6 +37,7 @@ export async function butlerStopTask( Result< operations.StopTaskResponse, | errors.StopTaskResponseBody + | errors.StopTaskButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function butlerStopTask( const [result$] = await m$.match< operations.StopTaskResponse, | errors.StopTaskResponseBody + | errors.StopTaskButlerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function butlerStopTask( | ConnectionError >( m$.nil(200, operations.StopTaskResponse$inboundSchema), - m$.fail([400, 404, "4XX", "5XX"]), - m$.jsonErr(401, errors.StopTaskResponseBody$inboundSchema) + m$.jsonErr(400, errors.StopTaskResponseBody$inboundSchema), + m$.jsonErr(401, errors.StopTaskButlerResponseBody$inboundSchema), + m$.fail([404, "4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/hubsGetGlobalHubs.ts b/src/funcs/hubsGetGlobalHubs.ts index 2bd16b90..4018d0ba 100644 --- a/src/funcs/hubsGetGlobalHubs.ts +++ b/src/funcs/hubsGetGlobalHubs.ts @@ -37,6 +37,7 @@ export async function hubsGetGlobalHubs( Result< operations.GetGlobalHubsResponse, | errors.GetGlobalHubsResponseBody + | errors.GetGlobalHubsHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function hubsGetGlobalHubs( const [result$] = await m$.match< operations.GetGlobalHubsResponse, | errors.GetGlobalHubsResponseBody + | errors.GetGlobalHubsHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function hubsGetGlobalHubs( | ConnectionError >( m$.json(200, operations.GetGlobalHubsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetGlobalHubsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetGlobalHubsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetGlobalHubsHubsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/hubsGetLibraryHubs.ts b/src/funcs/hubsGetLibraryHubs.ts index 5c978fb8..315b94fc 100644 --- a/src/funcs/hubsGetLibraryHubs.ts +++ b/src/funcs/hubsGetLibraryHubs.ts @@ -42,6 +42,7 @@ export async function hubsGetLibraryHubs( Result< operations.GetLibraryHubsResponse, | errors.GetLibraryHubsResponseBody + | errors.GetLibraryHubsHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,6 +135,7 @@ export async function hubsGetLibraryHubs( const [result$] = await m$.match< operations.GetLibraryHubsResponse, | errors.GetLibraryHubsResponseBody + | errors.GetLibraryHubsHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -143,8 +145,9 @@ export async function hubsGetLibraryHubs( | ConnectionError >( m$.json(200, operations.GetLibraryHubsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetLibraryHubsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetLibraryHubsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetLibraryHubsHubsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryDeleteLibrary.ts b/src/funcs/libraryDeleteLibrary.ts index 21bfeb4d..4836c97f 100644 --- a/src/funcs/libraryDeleteLibrary.ts +++ b/src/funcs/libraryDeleteLibrary.ts @@ -36,6 +36,7 @@ export async function libraryDeleteLibrary( Result< operations.DeleteLibraryResponse, | errors.DeleteLibraryResponseBody + | errors.DeleteLibraryLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -120,6 +121,7 @@ export async function libraryDeleteLibrary( const [result$] = await m$.match< operations.DeleteLibraryResponse, | errors.DeleteLibraryResponseBody + | errors.DeleteLibraryLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,8 +131,9 @@ export async function libraryDeleteLibrary( | ConnectionError >( m$.nil(200, operations.DeleteLibraryResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.DeleteLibraryResponseBody$inboundSchema) + m$.jsonErr(400, errors.DeleteLibraryResponseBody$inboundSchema), + m$.jsonErr(401, errors.DeleteLibraryLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetAllLibraries.ts b/src/funcs/libraryGetAllLibraries.ts index 02ced857..52ddc5d5 100644 --- a/src/funcs/libraryGetAllLibraries.ts +++ b/src/funcs/libraryGetAllLibraries.ts @@ -39,6 +39,7 @@ export async function libraryGetAllLibraries( Result< operations.GetAllLibrariesResponse, | errors.GetAllLibrariesResponseBody + | errors.GetAllLibrariesLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -100,6 +101,7 @@ export async function libraryGetAllLibraries( const [result$] = await m$.match< operations.GetAllLibrariesResponse, | errors.GetAllLibrariesResponseBody + | errors.GetAllLibrariesLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -109,8 +111,9 @@ export async function libraryGetAllLibraries( | ConnectionError >( m$.json(200, operations.GetAllLibrariesResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetAllLibrariesResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetAllLibrariesResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetAllLibrariesLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetFileHash.ts b/src/funcs/libraryGetFileHash.ts index f9200825..5c0a4f3c 100644 --- a/src/funcs/libraryGetFileHash.ts +++ b/src/funcs/libraryGetFileHash.ts @@ -37,6 +37,7 @@ export async function libraryGetFileHash( Result< operations.GetFileHashResponse, | errors.GetFileHashResponseBody + | errors.GetFileHashLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function libraryGetFileHash( const [result$] = await m$.match< operations.GetFileHashResponse, | errors.GetFileHashResponseBody + | errors.GetFileHashLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function libraryGetFileHash( | ConnectionError >( m$.nil(200, operations.GetFileHashResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetFileHashResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetFileHashResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetFileHashLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetLibraryDetails.ts b/src/funcs/libraryGetLibraryDetails.ts index f38ca007..9dcf5a1f 100644 --- a/src/funcs/libraryGetLibraryDetails.ts +++ b/src/funcs/libraryGetLibraryDetails.ts @@ -79,6 +79,7 @@ export async function libraryGetLibraryDetails( Result< operations.GetLibraryDetailsResponse, | errors.GetLibraryDetailsResponseBody + | errors.GetLibraryDetailsLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -169,6 +170,7 @@ export async function libraryGetLibraryDetails( const [result$] = await m$.match< operations.GetLibraryDetailsResponse, | errors.GetLibraryDetailsResponseBody + | errors.GetLibraryDetailsLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -178,8 +180,9 @@ export async function libraryGetLibraryDetails( | ConnectionError >( m$.json(200, operations.GetLibraryDetailsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetLibraryDetailsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetLibraryDetailsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetLibraryDetailsLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetLibraryItems.ts b/src/funcs/libraryGetLibraryItems.ts index 00ad5d51..321718fb 100644 --- a/src/funcs/libraryGetLibraryItems.ts +++ b/src/funcs/libraryGetLibraryItems.ts @@ -59,6 +59,7 @@ export async function libraryGetLibraryItems( Result< operations.GetLibraryItemsResponse, | errors.GetLibraryItemsResponseBody + | errors.GetLibraryItemsLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -151,6 +152,7 @@ export async function libraryGetLibraryItems( const [result$] = await m$.match< operations.GetLibraryItemsResponse, | errors.GetLibraryItemsResponseBody + | errors.GetLibraryItemsLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -160,8 +162,9 @@ export async function libraryGetLibraryItems( | ConnectionError >( m$.json(200, operations.GetLibraryItemsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetLibraryItemsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetLibraryItemsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetLibraryItemsLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetMetaDataByRatingKey.ts b/src/funcs/libraryGetMetaDataByRatingKey.ts index 7bb09ba3..38db8508 100644 --- a/src/funcs/libraryGetMetaDataByRatingKey.ts +++ b/src/funcs/libraryGetMetaDataByRatingKey.ts @@ -37,6 +37,7 @@ export async function libraryGetMetaDataByRatingKey( Result< operations.GetMetaDataByRatingKeyResponse, | errors.GetMetaDataByRatingKeyResponseBody + | errors.GetMetaDataByRatingKeyLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function libraryGetMetaDataByRatingKey( const [result$] = await m$.match< operations.GetMetaDataByRatingKeyResponse, | errors.GetMetaDataByRatingKeyResponseBody + | errors.GetMetaDataByRatingKeyLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function libraryGetMetaDataByRatingKey( | ConnectionError >( m$.json(200, operations.GetMetaDataByRatingKeyResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetMetaDataByRatingKeyResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetMetaDataByRatingKeyResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetMetaDataByRatingKeyLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetMetadataChildren.ts b/src/funcs/libraryGetMetadataChildren.ts index 1acdbae6..0570bfab 100644 --- a/src/funcs/libraryGetMetadataChildren.ts +++ b/src/funcs/libraryGetMetadataChildren.ts @@ -41,6 +41,7 @@ export async function libraryGetMetadataChildren( Result< operations.GetMetadataChildrenResponse, | errors.GetMetadataChildrenResponseBody + | errors.GetMetadataChildrenLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,6 +132,7 @@ export async function libraryGetMetadataChildren( const [result$] = await m$.match< operations.GetMetadataChildrenResponse, | errors.GetMetadataChildrenResponseBody + | errors.GetMetadataChildrenLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -140,8 +142,9 @@ export async function libraryGetMetadataChildren( | ConnectionError >( m$.json(200, operations.GetMetadataChildrenResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetMetadataChildrenResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetMetadataChildrenResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetMetadataChildrenLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetOnDeck.ts b/src/funcs/libraryGetOnDeck.ts index 959bd764..6c9a15f8 100644 --- a/src/funcs/libraryGetOnDeck.ts +++ b/src/funcs/libraryGetOnDeck.ts @@ -34,6 +34,7 @@ export async function libraryGetOnDeck( Result< operations.GetOnDeckResponse, | errors.GetOnDeckResponseBody + | errors.GetOnDeckLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -95,6 +96,7 @@ export async function libraryGetOnDeck( const [result$] = await m$.match< operations.GetOnDeckResponse, | errors.GetOnDeckResponseBody + | errors.GetOnDeckLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -104,8 +106,9 @@ export async function libraryGetOnDeck( | ConnectionError >( m$.json(200, operations.GetOnDeckResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetOnDeckResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetOnDeckResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetOnDeckLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetRecentlyAdded.ts b/src/funcs/libraryGetRecentlyAdded.ts index 19ec6e39..bc8525e0 100644 --- a/src/funcs/libraryGetRecentlyAdded.ts +++ b/src/funcs/libraryGetRecentlyAdded.ts @@ -38,6 +38,7 @@ export async function libraryGetRecentlyAdded( Result< operations.GetRecentlyAddedResponse, | errors.GetRecentlyAddedResponseBody + | errors.GetRecentlyAddedLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -122,6 +123,7 @@ export async function libraryGetRecentlyAdded( const [result$] = await m$.match< operations.GetRecentlyAddedResponse, | errors.GetRecentlyAddedResponseBody + | errors.GetRecentlyAddedLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,8 +133,9 @@ export async function libraryGetRecentlyAdded( | ConnectionError >( m$.json(200, operations.GetRecentlyAddedResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetRecentlyAddedResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetRecentlyAddedResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetRecentlyAddedLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetRefreshLibraryMetadata.ts b/src/funcs/libraryGetRefreshLibraryMetadata.ts index f9c4b33b..5a4bd7cd 100644 --- a/src/funcs/libraryGetRefreshLibraryMetadata.ts +++ b/src/funcs/libraryGetRefreshLibraryMetadata.ts @@ -41,6 +41,7 @@ export async function libraryGetRefreshLibraryMetadata( Result< operations.GetRefreshLibraryMetadataResponse, | errors.GetRefreshLibraryMetadataResponseBody + | errors.GetRefreshLibraryMetadataLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,6 +132,7 @@ export async function libraryGetRefreshLibraryMetadata( const [result$] = await m$.match< operations.GetRefreshLibraryMetadataResponse, | errors.GetRefreshLibraryMetadataResponseBody + | errors.GetRefreshLibraryMetadataLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -140,8 +142,9 @@ export async function libraryGetRefreshLibraryMetadata( | ConnectionError >( m$.nil(200, operations.GetRefreshLibraryMetadataResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetRefreshLibraryMetadataResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetRefreshLibraryMetadataResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetRefreshLibraryMetadataLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetSearchLibrary.ts b/src/funcs/libraryGetSearchLibrary.ts index e1ea0f0c..697ddaa7 100644 --- a/src/funcs/libraryGetSearchLibrary.ts +++ b/src/funcs/libraryGetSearchLibrary.ts @@ -58,6 +58,7 @@ export async function libraryGetSearchLibrary( Result< operations.GetSearchLibraryResponse, | errors.GetSearchLibraryResponseBody + | errors.GetSearchLibraryLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -148,6 +149,7 @@ export async function libraryGetSearchLibrary( const [result$] = await m$.match< operations.GetSearchLibraryResponse, | errors.GetSearchLibraryResponseBody + | errors.GetSearchLibraryLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -157,8 +159,9 @@ export async function libraryGetSearchLibrary( | ConnectionError >( m$.json(200, operations.GetSearchLibraryResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetSearchLibraryResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetSearchLibraryResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetSearchLibraryLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetTopWatchedContent.ts b/src/funcs/libraryGetTopWatchedContent.ts index d52c9eb7..e75143e6 100644 --- a/src/funcs/libraryGetTopWatchedContent.ts +++ b/src/funcs/libraryGetTopWatchedContent.ts @@ -38,6 +38,7 @@ export async function libraryGetTopWatchedContent( Result< operations.GetTopWatchedContentResponse, | errors.GetTopWatchedContentResponseBody + | errors.GetTopWatchedContentLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -122,6 +123,7 @@ export async function libraryGetTopWatchedContent( const [result$] = await m$.match< operations.GetTopWatchedContentResponse, | errors.GetTopWatchedContentResponseBody + | errors.GetTopWatchedContentLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,8 +133,9 @@ export async function libraryGetTopWatchedContent( | ConnectionError >( m$.json(200, operations.GetTopWatchedContentResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetTopWatchedContentResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetTopWatchedContentResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetTopWatchedContentLibraryResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/logEnablePaperTrail.ts b/src/funcs/logEnablePaperTrail.ts index ab4177de..e17f143b 100644 --- a/src/funcs/logEnablePaperTrail.ts +++ b/src/funcs/logEnablePaperTrail.ts @@ -34,6 +34,7 @@ export async function logEnablePaperTrail( Result< operations.EnablePaperTrailResponse, | errors.EnablePaperTrailResponseBody + | errors.EnablePaperTrailLogResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -95,6 +96,7 @@ export async function logEnablePaperTrail( const [result$] = await m$.match< operations.EnablePaperTrailResponse, | errors.EnablePaperTrailResponseBody + | errors.EnablePaperTrailLogResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -104,8 +106,9 @@ export async function logEnablePaperTrail( | ConnectionError >( m$.nil(200, operations.EnablePaperTrailResponse$inboundSchema), - m$.fail([400, 403, "4XX", "5XX"]), - m$.jsonErr(401, errors.EnablePaperTrailResponseBody$inboundSchema) + m$.jsonErr(400, errors.EnablePaperTrailResponseBody$inboundSchema), + m$.jsonErr(401, errors.EnablePaperTrailLogResponseBody$inboundSchema), + m$.fail([403, "4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/logLogLine.ts b/src/funcs/logLogLine.ts index e618c31f..5ca3cdb2 100644 --- a/src/funcs/logLogLine.ts +++ b/src/funcs/logLogLine.ts @@ -39,6 +39,7 @@ export async function logLogLine( Result< operations.LogLineResponse, | errors.LogLineResponseBody + | errors.LogLineLogResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,6 +126,7 @@ export async function logLogLine( const [result$] = await m$.match< operations.LogLineResponse, | errors.LogLineResponseBody + | errors.LogLineLogResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,8 +136,9 @@ export async function logLogLine( | ConnectionError >( m$.nil(200, operations.LogLineResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.LogLineResponseBody$inboundSchema) + m$.jsonErr(400, errors.LogLineResponseBody$inboundSchema), + m$.jsonErr(401, errors.LogLineLogResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/logLogMultiLine.ts b/src/funcs/logLogMultiLine.ts index f6c5b304..00eff7b8 100644 --- a/src/funcs/logLogMultiLine.ts +++ b/src/funcs/logLogMultiLine.ts @@ -57,6 +57,7 @@ export async function logLogMultiLine( Result< operations.LogMultiLineResponse, | errors.LogMultiLineResponseBody + | errors.LogMultiLineLogResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -133,6 +134,7 @@ export async function logLogMultiLine( const [result$] = await m$.match< operations.LogMultiLineResponse, | errors.LogMultiLineResponseBody + | errors.LogMultiLineLogResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -142,8 +144,9 @@ export async function logLogMultiLine( | ConnectionError >( m$.nil(200, operations.LogMultiLineResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.LogMultiLineResponseBody$inboundSchema) + m$.jsonErr(400, errors.LogMultiLineResponseBody$inboundSchema), + m$.jsonErr(401, errors.LogMultiLineLogResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaGetBannerImage.ts b/src/funcs/mediaGetBannerImage.ts index 1fcd4e30..64bccdc3 100644 --- a/src/funcs/mediaGetBannerImage.ts +++ b/src/funcs/mediaGetBannerImage.ts @@ -39,6 +39,7 @@ export async function mediaGetBannerImage( Result< operations.GetBannerImageResponse, | errors.GetBannerImageResponseBody + | errors.GetBannerImageMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,6 +131,7 @@ export async function mediaGetBannerImage( const [result$] = await m$.match< operations.GetBannerImageResponse, | errors.GetBannerImageResponseBody + | errors.GetBannerImageMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -143,8 +145,9 @@ export async function mediaGetBannerImage( hdrs: true, key: "response-stream", }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetBannerImageResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetBannerImageResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetBannerImageMediaResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaGetThumbImage.ts b/src/funcs/mediaGetThumbImage.ts index d80dec52..cc830070 100644 --- a/src/funcs/mediaGetThumbImage.ts +++ b/src/funcs/mediaGetThumbImage.ts @@ -39,6 +39,7 @@ export async function mediaGetThumbImage( Result< operations.GetThumbImageResponse, | errors.GetThumbImageResponseBody + | errors.GetThumbImageMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,6 +131,7 @@ export async function mediaGetThumbImage( const [result$] = await m$.match< operations.GetThumbImageResponse, | errors.GetThumbImageResponseBody + | errors.GetThumbImageMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -143,8 +145,9 @@ export async function mediaGetThumbImage( hdrs: true, key: "response-stream", }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetThumbImageResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetThumbImageResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetThumbImageMediaResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaMarkPlayed.ts b/src/funcs/mediaMarkPlayed.ts index 08b450e9..e1faa113 100644 --- a/src/funcs/mediaMarkPlayed.ts +++ b/src/funcs/mediaMarkPlayed.ts @@ -36,6 +36,7 @@ export async function mediaMarkPlayed( Result< operations.MarkPlayedResponse, | errors.MarkPlayedResponseBody + | errors.MarkPlayedMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function mediaMarkPlayed( const [result$] = await m$.match< operations.MarkPlayedResponse, | errors.MarkPlayedResponseBody + | errors.MarkPlayedMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function mediaMarkPlayed( | ConnectionError >( m$.nil(200, operations.MarkPlayedResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.MarkPlayedResponseBody$inboundSchema) + m$.jsonErr(400, errors.MarkPlayedResponseBody$inboundSchema), + m$.jsonErr(401, errors.MarkPlayedMediaResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaMarkUnplayed.ts b/src/funcs/mediaMarkUnplayed.ts index 2b0681df..4508eb36 100644 --- a/src/funcs/mediaMarkUnplayed.ts +++ b/src/funcs/mediaMarkUnplayed.ts @@ -36,6 +36,7 @@ export async function mediaMarkUnplayed( Result< operations.MarkUnplayedResponse, | errors.MarkUnplayedResponseBody + | errors.MarkUnplayedMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function mediaMarkUnplayed( const [result$] = await m$.match< operations.MarkUnplayedResponse, | errors.MarkUnplayedResponseBody + | errors.MarkUnplayedMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function mediaMarkUnplayed( | ConnectionError >( m$.nil(200, operations.MarkUnplayedResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.MarkUnplayedResponseBody$inboundSchema) + m$.jsonErr(400, errors.MarkUnplayedResponseBody$inboundSchema), + m$.jsonErr(401, errors.MarkUnplayedMediaResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaUpdatePlayProgress.ts b/src/funcs/mediaUpdatePlayProgress.ts index a4be1bbb..e11ed9ae 100644 --- a/src/funcs/mediaUpdatePlayProgress.ts +++ b/src/funcs/mediaUpdatePlayProgress.ts @@ -39,6 +39,7 @@ export async function mediaUpdatePlayProgress( Result< operations.UpdatePlayProgressResponse, | errors.UpdatePlayProgressResponseBody + | errors.UpdatePlayProgressMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,6 +126,7 @@ export async function mediaUpdatePlayProgress( const [result$] = await m$.match< operations.UpdatePlayProgressResponse, | errors.UpdatePlayProgressResponseBody + | errors.UpdatePlayProgressMediaResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,8 +136,9 @@ export async function mediaUpdatePlayProgress( | ConnectionError >( m$.nil(200, operations.UpdatePlayProgressResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.UpdatePlayProgressResponseBody$inboundSchema) + m$.jsonErr(400, errors.UpdatePlayProgressResponseBody$inboundSchema), + m$.jsonErr(401, errors.UpdatePlayProgressMediaResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsAddPlaylistContents.ts b/src/funcs/playlistsAddPlaylistContents.ts index 77a611f9..031db76f 100644 --- a/src/funcs/playlistsAddPlaylistContents.ts +++ b/src/funcs/playlistsAddPlaylistContents.ts @@ -43,6 +43,7 @@ export async function playlistsAddPlaylistContents( Result< operations.AddPlaylistContentsResponse, | errors.AddPlaylistContentsResponseBody + | errors.AddPlaylistContentsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -135,6 +136,7 @@ export async function playlistsAddPlaylistContents( const [result$] = await m$.match< operations.AddPlaylistContentsResponse, | errors.AddPlaylistContentsResponseBody + | errors.AddPlaylistContentsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -144,8 +146,9 @@ export async function playlistsAddPlaylistContents( | ConnectionError >( m$.json(200, operations.AddPlaylistContentsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.AddPlaylistContentsResponseBody$inboundSchema) + m$.jsonErr(400, errors.AddPlaylistContentsResponseBody$inboundSchema), + m$.jsonErr(401, errors.AddPlaylistContentsPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsClearPlaylistContents.ts b/src/funcs/playlistsClearPlaylistContents.ts index 1ea1c889..cdb4bb4d 100644 --- a/src/funcs/playlistsClearPlaylistContents.ts +++ b/src/funcs/playlistsClearPlaylistContents.ts @@ -37,6 +37,7 @@ export async function playlistsClearPlaylistContents( Result< operations.ClearPlaylistContentsResponse, | errors.ClearPlaylistContentsResponseBody + | errors.ClearPlaylistContentsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function playlistsClearPlaylistContents( const [result$] = await m$.match< operations.ClearPlaylistContentsResponse, | errors.ClearPlaylistContentsResponseBody + | errors.ClearPlaylistContentsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function playlistsClearPlaylistContents( | ConnectionError >( m$.nil(200, operations.ClearPlaylistContentsResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.ClearPlaylistContentsResponseBody$inboundSchema) + m$.jsonErr(400, errors.ClearPlaylistContentsResponseBody$inboundSchema), + m$.jsonErr(401, errors.ClearPlaylistContentsPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsCreatePlaylist.ts b/src/funcs/playlistsCreatePlaylist.ts index bfc65008..b599d808 100644 --- a/src/funcs/playlistsCreatePlaylist.ts +++ b/src/funcs/playlistsCreatePlaylist.ts @@ -39,6 +39,7 @@ export async function playlistsCreatePlaylist( Result< operations.CreatePlaylistResponse, | errors.CreatePlaylistResponseBody + | errors.CreatePlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -123,6 +124,7 @@ export async function playlistsCreatePlaylist( const [result$] = await m$.match< operations.CreatePlaylistResponse, | errors.CreatePlaylistResponseBody + | errors.CreatePlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -132,8 +134,9 @@ export async function playlistsCreatePlaylist( | ConnectionError >( m$.json(200, operations.CreatePlaylistResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.CreatePlaylistResponseBody$inboundSchema) + m$.jsonErr(400, errors.CreatePlaylistResponseBody$inboundSchema), + m$.jsonErr(401, errors.CreatePlaylistPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsDeletePlaylist.ts b/src/funcs/playlistsDeletePlaylist.ts index 3946d752..4ea9698c 100644 --- a/src/funcs/playlistsDeletePlaylist.ts +++ b/src/funcs/playlistsDeletePlaylist.ts @@ -37,6 +37,7 @@ export async function playlistsDeletePlaylist( Result< operations.DeletePlaylistResponse, | errors.DeletePlaylistResponseBody + | errors.DeletePlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function playlistsDeletePlaylist( const [result$] = await m$.match< operations.DeletePlaylistResponse, | errors.DeletePlaylistResponseBody + | errors.DeletePlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function playlistsDeletePlaylist( | ConnectionError >( m$.nil(204, operations.DeletePlaylistResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.DeletePlaylistResponseBody$inboundSchema) + m$.jsonErr(400, errors.DeletePlaylistResponseBody$inboundSchema), + m$.jsonErr(401, errors.DeletePlaylistPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsGetPlaylist.ts b/src/funcs/playlistsGetPlaylist.ts index 68151a74..72bad46e 100644 --- a/src/funcs/playlistsGetPlaylist.ts +++ b/src/funcs/playlistsGetPlaylist.ts @@ -38,6 +38,7 @@ export async function playlistsGetPlaylist( Result< operations.GetPlaylistResponse, | errors.GetPlaylistResponseBody + | errors.GetPlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -122,6 +123,7 @@ export async function playlistsGetPlaylist( const [result$] = await m$.match< operations.GetPlaylistResponse, | errors.GetPlaylistResponseBody + | errors.GetPlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,8 +133,9 @@ export async function playlistsGetPlaylist( | ConnectionError >( m$.json(200, operations.GetPlaylistResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetPlaylistResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetPlaylistResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetPlaylistPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsGetPlaylistContents.ts b/src/funcs/playlistsGetPlaylistContents.ts index 665d195a..fdc19e63 100644 --- a/src/funcs/playlistsGetPlaylistContents.ts +++ b/src/funcs/playlistsGetPlaylistContents.ts @@ -44,6 +44,7 @@ export async function playlistsGetPlaylistContents( Result< operations.GetPlaylistContentsResponse, | errors.GetPlaylistContentsResponseBody + | errors.GetPlaylistContentsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,6 +135,7 @@ export async function playlistsGetPlaylistContents( const [result$] = await m$.match< operations.GetPlaylistContentsResponse, | errors.GetPlaylistContentsResponseBody + | errors.GetPlaylistContentsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -143,8 +145,9 @@ export async function playlistsGetPlaylistContents( | ConnectionError >( m$.json(200, operations.GetPlaylistContentsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetPlaylistContentsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetPlaylistContentsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetPlaylistContentsPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsGetPlaylists.ts b/src/funcs/playlistsGetPlaylists.ts index 90d7b753..f7f37de3 100644 --- a/src/funcs/playlistsGetPlaylists.ts +++ b/src/funcs/playlistsGetPlaylists.ts @@ -37,6 +37,7 @@ export async function playlistsGetPlaylists( Result< operations.GetPlaylistsResponse, | errors.GetPlaylistsResponseBody + | errors.GetPlaylistsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -121,6 +122,7 @@ export async function playlistsGetPlaylists( const [result$] = await m$.match< operations.GetPlaylistsResponse, | errors.GetPlaylistsResponseBody + | errors.GetPlaylistsPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +132,9 @@ export async function playlistsGetPlaylists( | ConnectionError >( m$.json(200, operations.GetPlaylistsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetPlaylistsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetPlaylistsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetPlaylistsPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsUpdatePlaylist.ts b/src/funcs/playlistsUpdatePlaylist.ts index 61dda5f4..5ba0029c 100644 --- a/src/funcs/playlistsUpdatePlaylist.ts +++ b/src/funcs/playlistsUpdatePlaylist.ts @@ -42,6 +42,7 @@ export async function playlistsUpdatePlaylist( Result< operations.UpdatePlaylistResponse, | errors.UpdatePlaylistResponseBody + | errors.UpdatePlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,6 +135,7 @@ export async function playlistsUpdatePlaylist( const [result$] = await m$.match< operations.UpdatePlaylistResponse, | errors.UpdatePlaylistResponseBody + | errors.UpdatePlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -143,8 +145,9 @@ export async function playlistsUpdatePlaylist( | ConnectionError >( m$.nil(200, operations.UpdatePlaylistResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.UpdatePlaylistResponseBody$inboundSchema) + m$.jsonErr(400, errors.UpdatePlaylistResponseBody$inboundSchema), + m$.jsonErr(401, errors.UpdatePlaylistPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsUploadPlaylist.ts b/src/funcs/playlistsUploadPlaylist.ts index 611a0c5c..7e997d7e 100644 --- a/src/funcs/playlistsUploadPlaylist.ts +++ b/src/funcs/playlistsUploadPlaylist.ts @@ -38,6 +38,7 @@ export async function playlistsUploadPlaylist( Result< operations.UploadPlaylistResponse, | errors.UploadPlaylistResponseBody + | errors.UploadPlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -122,6 +123,7 @@ export async function playlistsUploadPlaylist( const [result$] = await m$.match< operations.UploadPlaylistResponse, | errors.UploadPlaylistResponseBody + | errors.UploadPlaylistPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,8 +133,9 @@ export async function playlistsUploadPlaylist( | ConnectionError >( m$.nil(200, operations.UploadPlaylistResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.UploadPlaylistResponseBody$inboundSchema) + m$.jsonErr(400, errors.UploadPlaylistResponseBody$inboundSchema), + m$.jsonErr(401, errors.UploadPlaylistPlaylistsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetCompanionsData.ts b/src/funcs/plexGetCompanionsData.ts index ee4090f0..e8331009 100644 --- a/src/funcs/plexGetCompanionsData.ts +++ b/src/funcs/plexGetCompanionsData.ts @@ -34,6 +34,7 @@ export async function plexGetCompanionsData( Result< operations.GetCompanionsDataResponse, | errors.GetCompanionsDataResponseBody + | errors.GetCompanionsDataPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -100,6 +101,7 @@ export async function plexGetCompanionsData( const [result$] = await m$.match< operations.GetCompanionsDataResponse, | errors.GetCompanionsDataResponseBody + | errors.GetCompanionsDataPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -109,8 +111,9 @@ export async function plexGetCompanionsData( | ConnectionError >( m$.json(200, operations.GetCompanionsDataResponse$inboundSchema, { key: "responseBodies" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetCompanionsDataResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetCompanionsDataResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetCompanionsDataPlexResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetGeoData.ts b/src/funcs/plexGetGeoData.ts index fd31bcdb..1ba5c616 100644 --- a/src/funcs/plexGetGeoData.ts +++ b/src/funcs/plexGetGeoData.ts @@ -33,6 +33,7 @@ export async function plexGetGeoData( Result< operations.GetGeoDataResponse, | errors.GetGeoDataResponseBody + | errors.GetGeoDataPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -90,6 +91,7 @@ export async function plexGetGeoData( const [result$] = await m$.match< operations.GetGeoDataResponse, | errors.GetGeoDataResponseBody + | errors.GetGeoDataPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -99,8 +101,9 @@ export async function plexGetGeoData( | ConnectionError >( m$.json(200, operations.GetGeoDataResponse$inboundSchema, { key: "GeoData" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetGeoDataResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetGeoDataResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetGeoDataPlexResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetHomeData.ts b/src/funcs/plexGetHomeData.ts index 81617e11..e34affd8 100644 --- a/src/funcs/plexGetHomeData.ts +++ b/src/funcs/plexGetHomeData.ts @@ -33,6 +33,7 @@ export async function plexGetHomeData( Result< operations.GetHomeDataResponse, | errors.GetHomeDataResponseBody + | errors.GetHomeDataPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function plexGetHomeData( const [result$] = await m$.match< operations.GetHomeDataResponse, | errors.GetHomeDataResponseBody + | errors.GetHomeDataPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function plexGetHomeData( | ConnectionError >( m$.json(200, operations.GetHomeDataResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetHomeDataResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetHomeDataResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetHomeDataPlexResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetServerResources.ts b/src/funcs/plexGetServerResources.ts index 741f718b..a19916e6 100644 --- a/src/funcs/plexGetServerResources.ts +++ b/src/funcs/plexGetServerResources.ts @@ -37,6 +37,7 @@ export async function plexGetServerResources( Result< operations.GetServerResourcesResponse, | errors.GetServerResourcesResponseBody + | errors.GetServerResourcesPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,6 +128,7 @@ export async function plexGetServerResources( const [result$] = await m$.match< operations.GetServerResourcesResponse, | errors.GetServerResourcesResponseBody + | errors.GetServerResourcesPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -136,8 +138,9 @@ export async function plexGetServerResources( | ConnectionError >( m$.json(200, operations.GetServerResourcesResponse$inboundSchema, { key: "PlexDevices" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetServerResourcesResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetServerResourcesResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetServerResourcesPlexResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetUserFriends.ts b/src/funcs/plexGetUserFriends.ts index 294dc232..861ebfc9 100644 --- a/src/funcs/plexGetUserFriends.ts +++ b/src/funcs/plexGetUserFriends.ts @@ -34,6 +34,7 @@ export async function plexGetUserFriends( Result< operations.GetUserFriendsResponse, | errors.GetUserFriendsResponseBody + | errors.GetUserFriendsPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -100,6 +101,7 @@ export async function plexGetUserFriends( const [result$] = await m$.match< operations.GetUserFriendsResponse, | errors.GetUserFriendsResponseBody + | errors.GetUserFriendsPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -109,8 +111,9 @@ export async function plexGetUserFriends( | ConnectionError >( m$.json(200, operations.GetUserFriendsResponse$inboundSchema, { key: "Friends" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetUserFriendsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetUserFriendsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetUserFriendsPlexResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/searchGetSearchResults.ts b/src/funcs/searchGetSearchResults.ts index 59e72d52..9b93300f 100644 --- a/src/funcs/searchGetSearchResults.ts +++ b/src/funcs/searchGetSearchResults.ts @@ -36,6 +36,7 @@ export async function searchGetSearchResults( Result< operations.GetSearchResultsResponse, | errors.GetSearchResultsResponseBody + | errors.GetSearchResultsSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function searchGetSearchResults( const [result$] = await m$.match< operations.GetSearchResultsResponse, | errors.GetSearchResultsResponseBody + | errors.GetSearchResultsSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function searchGetSearchResults( | ConnectionError >( m$.json(200, operations.GetSearchResultsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetSearchResultsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetSearchResultsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetSearchResultsSearchResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/searchPerformSearch.ts b/src/funcs/searchPerformSearch.ts index 80478f0e..e2bc927a 100644 --- a/src/funcs/searchPerformSearch.ts +++ b/src/funcs/searchPerformSearch.ts @@ -50,6 +50,7 @@ export async function searchPerformSearch( Result< operations.PerformSearchResponse, | errors.PerformSearchResponseBody + | errors.PerformSearchSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -136,6 +137,7 @@ export async function searchPerformSearch( const [result$] = await m$.match< operations.PerformSearchResponse, | errors.PerformSearchResponseBody + | errors.PerformSearchSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -145,8 +147,9 @@ export async function searchPerformSearch( | ConnectionError >( m$.nil(200, operations.PerformSearchResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.PerformSearchResponseBody$inboundSchema) + m$.jsonErr(400, errors.PerformSearchResponseBody$inboundSchema), + m$.jsonErr(401, errors.PerformSearchSearchResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/searchPerformVoiceSearch.ts b/src/funcs/searchPerformVoiceSearch.ts index ea487397..299cd626 100644 --- a/src/funcs/searchPerformVoiceSearch.ts +++ b/src/funcs/searchPerformVoiceSearch.ts @@ -42,6 +42,7 @@ export async function searchPerformVoiceSearch( Result< operations.PerformVoiceSearchResponse, | errors.PerformVoiceSearchResponseBody + | errors.PerformVoiceSearchSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,6 +129,7 @@ export async function searchPerformVoiceSearch( const [result$] = await m$.match< operations.PerformVoiceSearchResponse, | errors.PerformVoiceSearchResponseBody + | errors.PerformVoiceSearchSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -137,8 +139,9 @@ export async function searchPerformVoiceSearch( | ConnectionError >( m$.nil(200, operations.PerformVoiceSearchResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.PerformVoiceSearchResponseBody$inboundSchema) + m$.jsonErr(400, errors.PerformVoiceSearchResponseBody$inboundSchema), + m$.jsonErr(401, errors.PerformVoiceSearchSearchResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetAvailableClients.ts b/src/funcs/serverGetAvailableClients.ts index 51119334..85a2093a 100644 --- a/src/funcs/serverGetAvailableClients.ts +++ b/src/funcs/serverGetAvailableClients.ts @@ -33,6 +33,7 @@ export async function serverGetAvailableClients( Result< operations.GetAvailableClientsResponse, | errors.GetAvailableClientsResponseBody + | errors.GetAvailableClientsServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function serverGetAvailableClients( const [result$] = await m$.match< operations.GetAvailableClientsResponse, | errors.GetAvailableClientsResponseBody + | errors.GetAvailableClientsServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function serverGetAvailableClients( | ConnectionError >( m$.json(200, operations.GetAvailableClientsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetAvailableClientsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetAvailableClientsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetAvailableClientsServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetDevices.ts b/src/funcs/serverGetDevices.ts index d62b4e74..e6f9698a 100644 --- a/src/funcs/serverGetDevices.ts +++ b/src/funcs/serverGetDevices.ts @@ -33,6 +33,7 @@ export async function serverGetDevices( Result< operations.GetDevicesResponse, | errors.GetDevicesResponseBody + | errors.GetDevicesServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function serverGetDevices( const [result$] = await m$.match< operations.GetDevicesResponse, | errors.GetDevicesResponseBody + | errors.GetDevicesServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function serverGetDevices( | ConnectionError >( m$.json(200, operations.GetDevicesResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetDevicesResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetDevicesResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetDevicesServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetMediaProviders.ts b/src/funcs/serverGetMediaProviders.ts index 3380bb38..b126b018 100644 --- a/src/funcs/serverGetMediaProviders.ts +++ b/src/funcs/serverGetMediaProviders.ts @@ -36,6 +36,7 @@ export async function serverGetMediaProviders( Result< operations.GetMediaProvidersResponse, | errors.GetMediaProvidersResponseBody + | errors.GetMediaProvidersServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function serverGetMediaProviders( const [result$] = await m$.match< operations.GetMediaProvidersResponse, | errors.GetMediaProvidersResponseBody + | errors.GetMediaProvidersServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function serverGetMediaProviders( | ConnectionError >( m$.json(200, operations.GetMediaProvidersResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetMediaProvidersResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetMediaProvidersResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetMediaProvidersServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetMyPlexAccount.ts b/src/funcs/serverGetMyPlexAccount.ts index 005e1305..b4469cf7 100644 --- a/src/funcs/serverGetMyPlexAccount.ts +++ b/src/funcs/serverGetMyPlexAccount.ts @@ -33,6 +33,7 @@ export async function serverGetMyPlexAccount( Result< operations.GetMyPlexAccountResponse, | errors.GetMyPlexAccountResponseBody + | errors.GetMyPlexAccountServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function serverGetMyPlexAccount( const [result$] = await m$.match< operations.GetMyPlexAccountResponse, | errors.GetMyPlexAccountResponseBody + | errors.GetMyPlexAccountServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function serverGetMyPlexAccount( | ConnectionError >( m$.json(200, operations.GetMyPlexAccountResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetMyPlexAccountResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetMyPlexAccountResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetMyPlexAccountServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetResizedPhoto.ts b/src/funcs/serverGetResizedPhoto.ts index 6e86a74f..236f99cd 100644 --- a/src/funcs/serverGetResizedPhoto.ts +++ b/src/funcs/serverGetResizedPhoto.ts @@ -37,6 +37,7 @@ export async function serverGetResizedPhoto( Result< operations.GetResizedPhotoResponse, | errors.GetResizedPhotoResponseBody + | errors.GetResizedPhotoServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -123,6 +124,7 @@ export async function serverGetResizedPhoto( const [result$] = await m$.match< operations.GetResizedPhotoResponse, | errors.GetResizedPhotoResponseBody + | errors.GetResizedPhotoServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -132,8 +134,9 @@ export async function serverGetResizedPhoto( | ConnectionError >( m$.nil(200, operations.GetResizedPhotoResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetResizedPhotoResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetResizedPhotoResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetResizedPhotoServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetServerCapabilities.ts b/src/funcs/serverGetServerCapabilities.ts index 8c677a42..af5ae6c1 100644 --- a/src/funcs/serverGetServerCapabilities.ts +++ b/src/funcs/serverGetServerCapabilities.ts @@ -33,6 +33,7 @@ export async function serverGetServerCapabilities( Result< operations.GetServerCapabilitiesResponse, | errors.GetServerCapabilitiesResponseBody + | errors.GetServerCapabilitiesServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function serverGetServerCapabilities( const [result$] = await m$.match< operations.GetServerCapabilitiesResponse, | errors.GetServerCapabilitiesResponseBody + | errors.GetServerCapabilitiesServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function serverGetServerCapabilities( | ConnectionError >( m$.json(200, operations.GetServerCapabilitiesResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetServerCapabilitiesResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetServerCapabilitiesResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetServerCapabilitiesServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetServerList.ts b/src/funcs/serverGetServerList.ts index 2d729999..8145fe45 100644 --- a/src/funcs/serverGetServerList.ts +++ b/src/funcs/serverGetServerList.ts @@ -33,6 +33,7 @@ export async function serverGetServerList( Result< operations.GetServerListResponse, | errors.GetServerListResponseBody + | errors.GetServerListServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function serverGetServerList( const [result$] = await m$.match< operations.GetServerListResponse, | errors.GetServerListResponseBody + | errors.GetServerListServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function serverGetServerList( | ConnectionError >( m$.json(200, operations.GetServerListResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetServerListResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetServerListResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetServerListServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetServerPreferences.ts b/src/funcs/serverGetServerPreferences.ts index 39eda4ff..8215b6ec 100644 --- a/src/funcs/serverGetServerPreferences.ts +++ b/src/funcs/serverGetServerPreferences.ts @@ -33,6 +33,7 @@ export async function serverGetServerPreferences( Result< operations.GetServerPreferencesResponse, | errors.GetServerPreferencesResponseBody + | errors.GetServerPreferencesServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function serverGetServerPreferences( const [result$] = await m$.match< operations.GetServerPreferencesResponse, | errors.GetServerPreferencesResponseBody + | errors.GetServerPreferencesServerResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function serverGetServerPreferences( | ConnectionError >( m$.json(200, operations.GetServerPreferencesResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetServerPreferencesResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetServerPreferencesResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetServerPreferencesServerResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsGetSessionHistory.ts b/src/funcs/sessionsGetSessionHistory.ts index 961ec558..86a3b42a 100644 --- a/src/funcs/sessionsGetSessionHistory.ts +++ b/src/funcs/sessionsGetSessionHistory.ts @@ -39,6 +39,7 @@ export async function sessionsGetSessionHistory( Result< operations.GetSessionHistoryResponse, | errors.GetSessionHistoryResponseBody + | errors.GetSessionHistorySessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,6 +128,7 @@ export async function sessionsGetSessionHistory( const [result$] = await m$.match< operations.GetSessionHistoryResponse, | errors.GetSessionHistoryResponseBody + | errors.GetSessionHistorySessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -136,8 +138,9 @@ export async function sessionsGetSessionHistory( | ConnectionError >( m$.json(200, operations.GetSessionHistoryResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetSessionHistoryResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetSessionHistoryResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetSessionHistorySessionsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsGetSessions.ts b/src/funcs/sessionsGetSessions.ts index 48a63fe5..384fc777 100644 --- a/src/funcs/sessionsGetSessions.ts +++ b/src/funcs/sessionsGetSessions.ts @@ -33,6 +33,7 @@ export async function sessionsGetSessions( Result< operations.GetSessionsResponse, | errors.GetSessionsResponseBody + | errors.GetSessionsSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function sessionsGetSessions( const [result$] = await m$.match< operations.GetSessionsResponse, | errors.GetSessionsResponseBody + | errors.GetSessionsSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function sessionsGetSessions( | ConnectionError >( m$.json(200, operations.GetSessionsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetSessionsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetSessionsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetSessionsSessionsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsGetTranscodeSessions.ts b/src/funcs/sessionsGetTranscodeSessions.ts index f8ad9b78..12541b27 100644 --- a/src/funcs/sessionsGetTranscodeSessions.ts +++ b/src/funcs/sessionsGetTranscodeSessions.ts @@ -33,6 +33,7 @@ export async function sessionsGetTranscodeSessions( Result< operations.GetTranscodeSessionsResponse, | errors.GetTranscodeSessionsResponseBody + | errors.GetTranscodeSessionsSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function sessionsGetTranscodeSessions( const [result$] = await m$.match< operations.GetTranscodeSessionsResponse, | errors.GetTranscodeSessionsResponseBody + | errors.GetTranscodeSessionsSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function sessionsGetTranscodeSessions( | ConnectionError >( m$.json(200, operations.GetTranscodeSessionsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetTranscodeSessionsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetTranscodeSessionsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetTranscodeSessionsSessionsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsStopTranscodeSession.ts b/src/funcs/sessionsStopTranscodeSession.ts index 890a2360..fa19ce8e 100644 --- a/src/funcs/sessionsStopTranscodeSession.ts +++ b/src/funcs/sessionsStopTranscodeSession.ts @@ -36,6 +36,7 @@ export async function sessionsStopTranscodeSession( Result< operations.StopTranscodeSessionResponse, | errors.StopTranscodeSessionResponseBody + | errors.StopTranscodeSessionSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -120,6 +121,7 @@ export async function sessionsStopTranscodeSession( const [result$] = await m$.match< operations.StopTranscodeSessionResponse, | errors.StopTranscodeSessionResponseBody + | errors.StopTranscodeSessionSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,8 +131,9 @@ export async function sessionsStopTranscodeSession( | ConnectionError >( m$.nil(204, operations.StopTranscodeSessionResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.StopTranscodeSessionResponseBody$inboundSchema) + m$.jsonErr(400, errors.StopTranscodeSessionResponseBody$inboundSchema), + m$.jsonErr(401, errors.StopTranscodeSessionSessionsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/statisticsGetBandwidthStatistics.ts b/src/funcs/statisticsGetBandwidthStatistics.ts index 962b01f5..5d2a9ba2 100644 --- a/src/funcs/statisticsGetBandwidthStatistics.ts +++ b/src/funcs/statisticsGetBandwidthStatistics.ts @@ -36,6 +36,7 @@ export async function statisticsGetBandwidthStatistics( Result< operations.GetBandwidthStatisticsResponse, | errors.GetBandwidthStatisticsResponseBody + | errors.GetBandwidthStatisticsStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function statisticsGetBandwidthStatistics( const [result$] = await m$.match< operations.GetBandwidthStatisticsResponse, | errors.GetBandwidthStatisticsResponseBody + | errors.GetBandwidthStatisticsStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function statisticsGetBandwidthStatistics( | ConnectionError >( m$.json(200, operations.GetBandwidthStatisticsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetBandwidthStatisticsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetBandwidthStatisticsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetBandwidthStatisticsStatisticsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/statisticsGetResourcesStatistics.ts b/src/funcs/statisticsGetResourcesStatistics.ts index 75411058..80e3de63 100644 --- a/src/funcs/statisticsGetResourcesStatistics.ts +++ b/src/funcs/statisticsGetResourcesStatistics.ts @@ -36,6 +36,7 @@ export async function statisticsGetResourcesStatistics( Result< operations.GetResourcesStatisticsResponse, | errors.GetResourcesStatisticsResponseBody + | errors.GetResourcesStatisticsStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function statisticsGetResourcesStatistics( const [result$] = await m$.match< operations.GetResourcesStatisticsResponse, | errors.GetResourcesStatisticsResponseBody + | errors.GetResourcesStatisticsStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function statisticsGetResourcesStatistics( | ConnectionError >( m$.json(200, operations.GetResourcesStatisticsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetResourcesStatisticsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetResourcesStatisticsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetResourcesStatisticsStatisticsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/statisticsGetStatistics.ts b/src/funcs/statisticsGetStatistics.ts index 88d18189..47f146a2 100644 --- a/src/funcs/statisticsGetStatistics.ts +++ b/src/funcs/statisticsGetStatistics.ts @@ -36,6 +36,7 @@ export async function statisticsGetStatistics( Result< operations.GetStatisticsResponse, | errors.GetStatisticsResponseBody + | errors.GetStatisticsStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function statisticsGetStatistics( const [result$] = await m$.match< operations.GetStatisticsResponse, | errors.GetStatisticsResponseBody + | errors.GetStatisticsStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function statisticsGetStatistics( | ConnectionError >( m$.json(200, operations.GetStatisticsResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetStatisticsResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetStatisticsResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetStatisticsStatisticsResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/updaterApplyUpdates.ts b/src/funcs/updaterApplyUpdates.ts index 9a5935e3..34f814a4 100644 --- a/src/funcs/updaterApplyUpdates.ts +++ b/src/funcs/updaterApplyUpdates.ts @@ -38,6 +38,7 @@ export async function updaterApplyUpdates( Result< operations.ApplyUpdatesResponse, | errors.ApplyUpdatesResponseBody + | errors.ApplyUpdatesUpdaterResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -122,6 +123,7 @@ export async function updaterApplyUpdates( const [result$] = await m$.match< operations.ApplyUpdatesResponse, | errors.ApplyUpdatesResponseBody + | errors.ApplyUpdatesUpdaterResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,8 +133,9 @@ export async function updaterApplyUpdates( | ConnectionError >( m$.nil(200, operations.ApplyUpdatesResponse$inboundSchema), - m$.fail([400, "4XX", 500, "5XX"]), - m$.jsonErr(401, errors.ApplyUpdatesResponseBody$inboundSchema) + m$.jsonErr(400, errors.ApplyUpdatesResponseBody$inboundSchema), + m$.jsonErr(401, errors.ApplyUpdatesUpdaterResponseBody$inboundSchema), + m$.fail(["4XX", 500, "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/updaterCheckForUpdates.ts b/src/funcs/updaterCheckForUpdates.ts index 5f8a6bed..912d6e8a 100644 --- a/src/funcs/updaterCheckForUpdates.ts +++ b/src/funcs/updaterCheckForUpdates.ts @@ -36,6 +36,7 @@ export async function updaterCheckForUpdates( Result< operations.CheckForUpdatesResponse, | errors.CheckForUpdatesResponseBody + | errors.CheckForUpdatesUpdaterResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -118,6 +119,7 @@ export async function updaterCheckForUpdates( const [result$] = await m$.match< operations.CheckForUpdatesResponse, | errors.CheckForUpdatesResponseBody + | errors.CheckForUpdatesUpdaterResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,8 +129,9 @@ export async function updaterCheckForUpdates( | ConnectionError >( m$.nil(200, operations.CheckForUpdatesResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.CheckForUpdatesResponseBody$inboundSchema) + m$.jsonErr(400, errors.CheckForUpdatesResponseBody$inboundSchema), + m$.jsonErr(401, errors.CheckForUpdatesUpdaterResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/updaterGetUpdateStatus.ts b/src/funcs/updaterGetUpdateStatus.ts index 75fc12fa..a403adf0 100644 --- a/src/funcs/updaterGetUpdateStatus.ts +++ b/src/funcs/updaterGetUpdateStatus.ts @@ -33,6 +33,7 @@ export async function updaterGetUpdateStatus( Result< operations.GetUpdateStatusResponse, | errors.GetUpdateStatusResponseBody + | errors.GetUpdateStatusUpdaterResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -94,6 +95,7 @@ export async function updaterGetUpdateStatus( const [result$] = await m$.match< operations.GetUpdateStatusResponse, | errors.GetUpdateStatusResponseBody + | errors.GetUpdateStatusUpdaterResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -103,8 +105,9 @@ export async function updaterGetUpdateStatus( | ConnectionError >( m$.json(200, operations.GetUpdateStatusResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetUpdateStatusResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetUpdateStatusResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetUpdateStatusUpdaterResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/videoGetTimeline.ts b/src/funcs/videoGetTimeline.ts index ffa8c510..14764018 100644 --- a/src/funcs/videoGetTimeline.ts +++ b/src/funcs/videoGetTimeline.ts @@ -36,6 +36,7 @@ export async function videoGetTimeline( Result< operations.GetTimelineResponse, | errors.GetTimelineResponseBody + | errors.GetTimelineVideoResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,6 +126,7 @@ export async function videoGetTimeline( const [result$] = await m$.match< operations.GetTimelineResponse, | errors.GetTimelineResponseBody + | errors.GetTimelineVideoResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,8 +136,9 @@ export async function videoGetTimeline( | ConnectionError >( m$.nil(200, operations.GetTimelineResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetTimelineResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetTimelineResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetTimelineVideoResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/videoStartUniversalTranscode.ts b/src/funcs/videoStartUniversalTranscode.ts index cc95f538..a82a0ea4 100644 --- a/src/funcs/videoStartUniversalTranscode.ts +++ b/src/funcs/videoStartUniversalTranscode.ts @@ -36,6 +36,7 @@ export async function videoStartUniversalTranscode( Result< operations.StartUniversalTranscodeResponse, | errors.StartUniversalTranscodeResponseBody + | errors.StartUniversalTranscodeVideoResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,6 +132,7 @@ export async function videoStartUniversalTranscode( const [result$] = await m$.match< operations.StartUniversalTranscodeResponse, | errors.StartUniversalTranscodeResponseBody + | errors.StartUniversalTranscodeVideoResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -140,8 +142,9 @@ export async function videoStartUniversalTranscode( | ConnectionError >( m$.nil(200, operations.StartUniversalTranscodeResponse$inboundSchema), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.StartUniversalTranscodeResponseBody$inboundSchema) + m$.jsonErr(400, errors.StartUniversalTranscodeResponseBody$inboundSchema), + m$.jsonErr(401, errors.StartUniversalTranscodeVideoResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/watchlistGetWatchList.ts b/src/funcs/watchlistGetWatchList.ts index c7dfbb29..0b5b24da 100644 --- a/src/funcs/watchlistGetWatchList.ts +++ b/src/funcs/watchlistGetWatchList.ts @@ -40,6 +40,7 @@ export async function watchlistGetWatchList( Result< operations.GetWatchListResponse, | errors.GetWatchListResponseBody + | errors.GetWatchListWatchlistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -138,6 +139,7 @@ export async function watchlistGetWatchList( const [result$] = await m$.match< operations.GetWatchListResponse, | errors.GetWatchListResponseBody + | errors.GetWatchListWatchlistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -147,8 +149,9 @@ export async function watchlistGetWatchList( | ConnectionError >( m$.json(200, operations.GetWatchListResponse$inboundSchema, { key: "object" }), - m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, errors.GetWatchListResponseBody$inboundSchema) + m$.jsonErr(400, errors.GetWatchListResponseBody$inboundSchema), + m$.jsonErr(401, errors.GetWatchListWatchlistResponseBody$inboundSchema), + m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/lib/config.ts b/src/lib/config.ts index f87bbabc..e4a20a06 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -89,7 +89,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.3", - sdkVersion: "0.20.2", + sdkVersion: "0.21.0", genVersion: "2.411.9", - userAgent: "speakeasy-sdk/typescript 0.20.2 2.411.9 0.0.3 @lukehagar/plexjs", + userAgent: "speakeasy-sdk/typescript 0.21.0 2.411.9 0.0.3 @lukehagar/plexjs", } as const; diff --git a/src/sdk/authentication.ts b/src/sdk/authentication.ts index 2d906f5b..935aaae1 100644 --- a/src/sdk/authentication.ts +++ b/src/sdk/authentication.ts @@ -55,7 +55,7 @@ export class Authentication extends ClientSDK { } /** - * Get User SignIn Data + * Get User Sign In Data * * @remarks * Sign in user with username and password and return user data with Plex authentication token diff --git a/src/sdk/models/errors/addplaylistcontents.ts b/src/sdk/models/errors/addplaylistcontents.ts index d86afe33..821220b5 100644 --- a/src/sdk/models/errors/addplaylistcontents.ts +++ b/src/sdk/models/errors/addplaylistcontents.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type AddPlaylistContentsPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type AddPlaylistContentsPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class AddPlaylistContentsPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: AddPlaylistContentsPlaylistsResponseBodyData; + + constructor(err: AddPlaylistContentsPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "AddPlaylistContentsPlaylistsResponseBody"; + } +} + export type AddPlaylistContentsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type AddPlaylistContentsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type AddPlaylistContentsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type AddPlaylistContentsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class AddPlaylistContentsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class AddPlaylistContentsResponseBody extends Error { } } +/** @internal */ +export const AddPlaylistContentsPlaylistsErrors$inboundSchema: z.ZodType< + AddPlaylistContentsPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type AddPlaylistContentsPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const AddPlaylistContentsPlaylistsErrors$outboundSchema: z.ZodType< + AddPlaylistContentsPlaylistsErrors$Outbound, + z.ZodTypeDef, + AddPlaylistContentsPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AddPlaylistContentsPlaylistsErrors$ { + /** @deprecated use `AddPlaylistContentsPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = AddPlaylistContentsPlaylistsErrors$inboundSchema; + /** @deprecated use `AddPlaylistContentsPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = AddPlaylistContentsPlaylistsErrors$outboundSchema; + /** @deprecated use `AddPlaylistContentsPlaylistsErrors$Outbound` instead. */ + export type Outbound = AddPlaylistContentsPlaylistsErrors$Outbound; +} + +/** @internal */ +export const AddPlaylistContentsPlaylistsResponseBody$inboundSchema: z.ZodType< + AddPlaylistContentsPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => AddPlaylistContentsPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new AddPlaylistContentsPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type AddPlaylistContentsPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const AddPlaylistContentsPlaylistsResponseBody$outboundSchema: z.ZodType< + AddPlaylistContentsPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + AddPlaylistContentsPlaylistsResponseBody +> = z + .instanceof(AddPlaylistContentsPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => AddPlaylistContentsPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AddPlaylistContentsPlaylistsResponseBody$ { + /** @deprecated use `AddPlaylistContentsPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = AddPlaylistContentsPlaylistsResponseBody$inboundSchema; + /** @deprecated use `AddPlaylistContentsPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = AddPlaylistContentsPlaylistsResponseBody$outboundSchema; + /** @deprecated use `AddPlaylistContentsPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = AddPlaylistContentsPlaylistsResponseBody$Outbound; +} + /** @internal */ export const AddPlaylistContentsErrors$inboundSchema: z.ZodType< AddPlaylistContentsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const AddPlaylistContentsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, AddPlaylistContentsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/applyupdates.ts b/src/sdk/models/errors/applyupdates.ts index f9b54d80..104ce913 100644 --- a/src/sdk/models/errors/applyupdates.ts +++ b/src/sdk/models/errors/applyupdates.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type ApplyUpdatesUpdaterErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type ApplyUpdatesUpdaterResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class ApplyUpdatesUpdaterResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: ApplyUpdatesUpdaterResponseBodyData; + + constructor(err: ApplyUpdatesUpdaterResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "ApplyUpdatesUpdaterResponseBody"; + } +} + export type ApplyUpdatesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type ApplyUpdatesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type ApplyUpdatesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type ApplyUpdatesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class ApplyUpdatesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class ApplyUpdatesResponseBody extends Error { } } +/** @internal */ +export const ApplyUpdatesUpdaterErrors$inboundSchema: z.ZodType< + ApplyUpdatesUpdaterErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type ApplyUpdatesUpdaterErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const ApplyUpdatesUpdaterErrors$outboundSchema: z.ZodType< + ApplyUpdatesUpdaterErrors$Outbound, + z.ZodTypeDef, + ApplyUpdatesUpdaterErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ApplyUpdatesUpdaterErrors$ { + /** @deprecated use `ApplyUpdatesUpdaterErrors$inboundSchema` instead. */ + export const inboundSchema = ApplyUpdatesUpdaterErrors$inboundSchema; + /** @deprecated use `ApplyUpdatesUpdaterErrors$outboundSchema` instead. */ + export const outboundSchema = ApplyUpdatesUpdaterErrors$outboundSchema; + /** @deprecated use `ApplyUpdatesUpdaterErrors$Outbound` instead. */ + export type Outbound = ApplyUpdatesUpdaterErrors$Outbound; +} + +/** @internal */ +export const ApplyUpdatesUpdaterResponseBody$inboundSchema: z.ZodType< + ApplyUpdatesUpdaterResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => ApplyUpdatesUpdaterErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new ApplyUpdatesUpdaterResponseBody(remapped); + }); + +/** @internal */ +export type ApplyUpdatesUpdaterResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const ApplyUpdatesUpdaterResponseBody$outboundSchema: z.ZodType< + ApplyUpdatesUpdaterResponseBody$Outbound, + z.ZodTypeDef, + ApplyUpdatesUpdaterResponseBody +> = z + .instanceof(ApplyUpdatesUpdaterResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => ApplyUpdatesUpdaterErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ApplyUpdatesUpdaterResponseBody$ { + /** @deprecated use `ApplyUpdatesUpdaterResponseBody$inboundSchema` instead. */ + export const inboundSchema = ApplyUpdatesUpdaterResponseBody$inboundSchema; + /** @deprecated use `ApplyUpdatesUpdaterResponseBody$outboundSchema` instead. */ + export const outboundSchema = ApplyUpdatesUpdaterResponseBody$outboundSchema; + /** @deprecated use `ApplyUpdatesUpdaterResponseBody$Outbound` instead. */ + export type Outbound = ApplyUpdatesUpdaterResponseBody$Outbound; +} + /** @internal */ export const ApplyUpdatesErrors$inboundSchema: z.ZodType< ApplyUpdatesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const ApplyUpdatesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, ApplyUpdatesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/cancelserveractivities.ts b/src/sdk/models/errors/cancelserveractivities.ts index dcd08539..3651ff0b 100644 --- a/src/sdk/models/errors/cancelserveractivities.ts +++ b/src/sdk/models/errors/cancelserveractivities.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type CancelServerActivitiesActivitiesErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type CancelServerActivitiesActivitiesResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class CancelServerActivitiesActivitiesResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: CancelServerActivitiesActivitiesResponseBodyData; + + constructor(err: CancelServerActivitiesActivitiesResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "CancelServerActivitiesActivitiesResponseBody"; + } +} + export type CancelServerActivitiesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type CancelServerActivitiesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type CancelServerActivitiesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type CancelServerActivitiesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class CancelServerActivitiesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class CancelServerActivitiesResponseBody extends Error { } } +/** @internal */ +export const CancelServerActivitiesActivitiesErrors$inboundSchema: z.ZodType< + CancelServerActivitiesActivitiesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type CancelServerActivitiesActivitiesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const CancelServerActivitiesActivitiesErrors$outboundSchema: z.ZodType< + CancelServerActivitiesActivitiesErrors$Outbound, + z.ZodTypeDef, + CancelServerActivitiesActivitiesErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CancelServerActivitiesActivitiesErrors$ { + /** @deprecated use `CancelServerActivitiesActivitiesErrors$inboundSchema` instead. */ + export const inboundSchema = CancelServerActivitiesActivitiesErrors$inboundSchema; + /** @deprecated use `CancelServerActivitiesActivitiesErrors$outboundSchema` instead. */ + export const outboundSchema = CancelServerActivitiesActivitiesErrors$outboundSchema; + /** @deprecated use `CancelServerActivitiesActivitiesErrors$Outbound` instead. */ + export type Outbound = CancelServerActivitiesActivitiesErrors$Outbound; +} + +/** @internal */ +export const CancelServerActivitiesActivitiesResponseBody$inboundSchema: z.ZodType< + CancelServerActivitiesActivitiesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => CancelServerActivitiesActivitiesErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new CancelServerActivitiesActivitiesResponseBody(remapped); + }); + +/** @internal */ +export type CancelServerActivitiesActivitiesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const CancelServerActivitiesActivitiesResponseBody$outboundSchema: z.ZodType< + CancelServerActivitiesActivitiesResponseBody$Outbound, + z.ZodTypeDef, + CancelServerActivitiesActivitiesResponseBody +> = z + .instanceof(CancelServerActivitiesActivitiesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => CancelServerActivitiesActivitiesErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CancelServerActivitiesActivitiesResponseBody$ { + /** @deprecated use `CancelServerActivitiesActivitiesResponseBody$inboundSchema` instead. */ + export const inboundSchema = CancelServerActivitiesActivitiesResponseBody$inboundSchema; + /** @deprecated use `CancelServerActivitiesActivitiesResponseBody$outboundSchema` instead. */ + export const outboundSchema = CancelServerActivitiesActivitiesResponseBody$outboundSchema; + /** @deprecated use `CancelServerActivitiesActivitiesResponseBody$Outbound` instead. */ + export type Outbound = CancelServerActivitiesActivitiesResponseBody$Outbound; +} + /** @internal */ export const CancelServerActivitiesErrors$inboundSchema: z.ZodType< CancelServerActivitiesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const CancelServerActivitiesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, CancelServerActivitiesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/checkforupdates.ts b/src/sdk/models/errors/checkforupdates.ts index e654c81a..c6ec6aef 100644 --- a/src/sdk/models/errors/checkforupdates.ts +++ b/src/sdk/models/errors/checkforupdates.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type CheckForUpdatesUpdaterErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type CheckForUpdatesUpdaterResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class CheckForUpdatesUpdaterResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: CheckForUpdatesUpdaterResponseBodyData; + + constructor(err: CheckForUpdatesUpdaterResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "CheckForUpdatesUpdaterResponseBody"; + } +} + export type CheckForUpdatesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type CheckForUpdatesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type CheckForUpdatesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type CheckForUpdatesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class CheckForUpdatesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class CheckForUpdatesResponseBody extends Error { } } +/** @internal */ +export const CheckForUpdatesUpdaterErrors$inboundSchema: z.ZodType< + CheckForUpdatesUpdaterErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type CheckForUpdatesUpdaterErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const CheckForUpdatesUpdaterErrors$outboundSchema: z.ZodType< + CheckForUpdatesUpdaterErrors$Outbound, + z.ZodTypeDef, + CheckForUpdatesUpdaterErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckForUpdatesUpdaterErrors$ { + /** @deprecated use `CheckForUpdatesUpdaterErrors$inboundSchema` instead. */ + export const inboundSchema = CheckForUpdatesUpdaterErrors$inboundSchema; + /** @deprecated use `CheckForUpdatesUpdaterErrors$outboundSchema` instead. */ + export const outboundSchema = CheckForUpdatesUpdaterErrors$outboundSchema; + /** @deprecated use `CheckForUpdatesUpdaterErrors$Outbound` instead. */ + export type Outbound = CheckForUpdatesUpdaterErrors$Outbound; +} + +/** @internal */ +export const CheckForUpdatesUpdaterResponseBody$inboundSchema: z.ZodType< + CheckForUpdatesUpdaterResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => CheckForUpdatesUpdaterErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new CheckForUpdatesUpdaterResponseBody(remapped); + }); + +/** @internal */ +export type CheckForUpdatesUpdaterResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const CheckForUpdatesUpdaterResponseBody$outboundSchema: z.ZodType< + CheckForUpdatesUpdaterResponseBody$Outbound, + z.ZodTypeDef, + CheckForUpdatesUpdaterResponseBody +> = z + .instanceof(CheckForUpdatesUpdaterResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => CheckForUpdatesUpdaterErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckForUpdatesUpdaterResponseBody$ { + /** @deprecated use `CheckForUpdatesUpdaterResponseBody$inboundSchema` instead. */ + export const inboundSchema = CheckForUpdatesUpdaterResponseBody$inboundSchema; + /** @deprecated use `CheckForUpdatesUpdaterResponseBody$outboundSchema` instead. */ + export const outboundSchema = CheckForUpdatesUpdaterResponseBody$outboundSchema; + /** @deprecated use `CheckForUpdatesUpdaterResponseBody$Outbound` instead. */ + export type Outbound = CheckForUpdatesUpdaterResponseBody$Outbound; +} + /** @internal */ export const CheckForUpdatesErrors$inboundSchema: z.ZodType< CheckForUpdatesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const CheckForUpdatesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, CheckForUpdatesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/clearplaylistcontents.ts b/src/sdk/models/errors/clearplaylistcontents.ts index d987f9f2..e54fc499 100644 --- a/src/sdk/models/errors/clearplaylistcontents.ts +++ b/src/sdk/models/errors/clearplaylistcontents.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type ClearPlaylistContentsPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type ClearPlaylistContentsPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class ClearPlaylistContentsPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: ClearPlaylistContentsPlaylistsResponseBodyData; + + constructor(err: ClearPlaylistContentsPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "ClearPlaylistContentsPlaylistsResponseBody"; + } +} + export type ClearPlaylistContentsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type ClearPlaylistContentsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type ClearPlaylistContentsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type ClearPlaylistContentsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class ClearPlaylistContentsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class ClearPlaylistContentsResponseBody extends Error { } } +/** @internal */ +export const ClearPlaylistContentsPlaylistsErrors$inboundSchema: z.ZodType< + ClearPlaylistContentsPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type ClearPlaylistContentsPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const ClearPlaylistContentsPlaylistsErrors$outboundSchema: z.ZodType< + ClearPlaylistContentsPlaylistsErrors$Outbound, + z.ZodTypeDef, + ClearPlaylistContentsPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ClearPlaylistContentsPlaylistsErrors$ { + /** @deprecated use `ClearPlaylistContentsPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = ClearPlaylistContentsPlaylistsErrors$inboundSchema; + /** @deprecated use `ClearPlaylistContentsPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = ClearPlaylistContentsPlaylistsErrors$outboundSchema; + /** @deprecated use `ClearPlaylistContentsPlaylistsErrors$Outbound` instead. */ + export type Outbound = ClearPlaylistContentsPlaylistsErrors$Outbound; +} + +/** @internal */ +export const ClearPlaylistContentsPlaylistsResponseBody$inboundSchema: z.ZodType< + ClearPlaylistContentsPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => ClearPlaylistContentsPlaylistsErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new ClearPlaylistContentsPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type ClearPlaylistContentsPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const ClearPlaylistContentsPlaylistsResponseBody$outboundSchema: z.ZodType< + ClearPlaylistContentsPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + ClearPlaylistContentsPlaylistsResponseBody +> = z + .instanceof(ClearPlaylistContentsPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => ClearPlaylistContentsPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ClearPlaylistContentsPlaylistsResponseBody$ { + /** @deprecated use `ClearPlaylistContentsPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = ClearPlaylistContentsPlaylistsResponseBody$inboundSchema; + /** @deprecated use `ClearPlaylistContentsPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = ClearPlaylistContentsPlaylistsResponseBody$outboundSchema; + /** @deprecated use `ClearPlaylistContentsPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = ClearPlaylistContentsPlaylistsResponseBody$Outbound; +} + /** @internal */ export const ClearPlaylistContentsErrors$inboundSchema: z.ZodType< ClearPlaylistContentsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const ClearPlaylistContentsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, ClearPlaylistContentsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/createplaylist.ts b/src/sdk/models/errors/createplaylist.ts index bdc9d288..739f46e9 100644 --- a/src/sdk/models/errors/createplaylist.ts +++ b/src/sdk/models/errors/createplaylist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type CreatePlaylistPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type CreatePlaylistPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class CreatePlaylistPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: CreatePlaylistPlaylistsResponseBodyData; + + constructor(err: CreatePlaylistPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "CreatePlaylistPlaylistsResponseBody"; + } +} + export type CreatePlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type CreatePlaylistErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type CreatePlaylistResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type CreatePlaylistResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class CreatePlaylistResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class CreatePlaylistResponseBody extends Error { } } +/** @internal */ +export const CreatePlaylistPlaylistsErrors$inboundSchema: z.ZodType< + CreatePlaylistPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type CreatePlaylistPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const CreatePlaylistPlaylistsErrors$outboundSchema: z.ZodType< + CreatePlaylistPlaylistsErrors$Outbound, + z.ZodTypeDef, + CreatePlaylistPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreatePlaylistPlaylistsErrors$ { + /** @deprecated use `CreatePlaylistPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = CreatePlaylistPlaylistsErrors$inboundSchema; + /** @deprecated use `CreatePlaylistPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = CreatePlaylistPlaylistsErrors$outboundSchema; + /** @deprecated use `CreatePlaylistPlaylistsErrors$Outbound` instead. */ + export type Outbound = CreatePlaylistPlaylistsErrors$Outbound; +} + +/** @internal */ +export const CreatePlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< + CreatePlaylistPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => CreatePlaylistPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new CreatePlaylistPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type CreatePlaylistPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const CreatePlaylistPlaylistsResponseBody$outboundSchema: z.ZodType< + CreatePlaylistPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + CreatePlaylistPlaylistsResponseBody +> = z + .instanceof(CreatePlaylistPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => CreatePlaylistPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreatePlaylistPlaylistsResponseBody$ { + /** @deprecated use `CreatePlaylistPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = CreatePlaylistPlaylistsResponseBody$inboundSchema; + /** @deprecated use `CreatePlaylistPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = CreatePlaylistPlaylistsResponseBody$outboundSchema; + /** @deprecated use `CreatePlaylistPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = CreatePlaylistPlaylistsResponseBody$Outbound; +} + /** @internal */ export const CreatePlaylistErrors$inboundSchema: z.ZodType< CreatePlaylistErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const CreatePlaylistErrors$outboundSchema: z.ZodType< z.ZodTypeDef, CreatePlaylistErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/deletelibrary.ts b/src/sdk/models/errors/deletelibrary.ts index 0ea22887..2bee4000 100644 --- a/src/sdk/models/errors/deletelibrary.ts +++ b/src/sdk/models/errors/deletelibrary.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type DeleteLibraryLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type DeleteLibraryLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class DeleteLibraryLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: DeleteLibraryLibraryResponseBodyData; + + constructor(err: DeleteLibraryLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "DeleteLibraryLibraryResponseBody"; + } +} + export type DeleteLibraryErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type DeleteLibraryErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type DeleteLibraryResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type DeleteLibraryResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class DeleteLibraryResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class DeleteLibraryResponseBody extends Error { } } +/** @internal */ +export const DeleteLibraryLibraryErrors$inboundSchema: z.ZodType< + DeleteLibraryLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type DeleteLibraryLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const DeleteLibraryLibraryErrors$outboundSchema: z.ZodType< + DeleteLibraryLibraryErrors$Outbound, + z.ZodTypeDef, + DeleteLibraryLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteLibraryLibraryErrors$ { + /** @deprecated use `DeleteLibraryLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = DeleteLibraryLibraryErrors$inboundSchema; + /** @deprecated use `DeleteLibraryLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = DeleteLibraryLibraryErrors$outboundSchema; + /** @deprecated use `DeleteLibraryLibraryErrors$Outbound` instead. */ + export type Outbound = DeleteLibraryLibraryErrors$Outbound; +} + +/** @internal */ +export const DeleteLibraryLibraryResponseBody$inboundSchema: z.ZodType< + DeleteLibraryLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => DeleteLibraryLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new DeleteLibraryLibraryResponseBody(remapped); + }); + +/** @internal */ +export type DeleteLibraryLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const DeleteLibraryLibraryResponseBody$outboundSchema: z.ZodType< + DeleteLibraryLibraryResponseBody$Outbound, + z.ZodTypeDef, + DeleteLibraryLibraryResponseBody +> = z + .instanceof(DeleteLibraryLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => DeleteLibraryLibraryErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteLibraryLibraryResponseBody$ { + /** @deprecated use `DeleteLibraryLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = DeleteLibraryLibraryResponseBody$inboundSchema; + /** @deprecated use `DeleteLibraryLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = DeleteLibraryLibraryResponseBody$outboundSchema; + /** @deprecated use `DeleteLibraryLibraryResponseBody$Outbound` instead. */ + export type Outbound = DeleteLibraryLibraryResponseBody$Outbound; +} + /** @internal */ export const DeleteLibraryErrors$inboundSchema: z.ZodType< DeleteLibraryErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const DeleteLibraryErrors$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteLibraryErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/deleteplaylist.ts b/src/sdk/models/errors/deleteplaylist.ts index eb60e783..42e09ed1 100644 --- a/src/sdk/models/errors/deleteplaylist.ts +++ b/src/sdk/models/errors/deleteplaylist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type DeletePlaylistPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type DeletePlaylistPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class DeletePlaylistPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: DeletePlaylistPlaylistsResponseBodyData; + + constructor(err: DeletePlaylistPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "DeletePlaylistPlaylistsResponseBody"; + } +} + export type DeletePlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type DeletePlaylistErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type DeletePlaylistResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type DeletePlaylistResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class DeletePlaylistResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class DeletePlaylistResponseBody extends Error { } } +/** @internal */ +export const DeletePlaylistPlaylistsErrors$inboundSchema: z.ZodType< + DeletePlaylistPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type DeletePlaylistPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const DeletePlaylistPlaylistsErrors$outboundSchema: z.ZodType< + DeletePlaylistPlaylistsErrors$Outbound, + z.ZodTypeDef, + DeletePlaylistPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeletePlaylistPlaylistsErrors$ { + /** @deprecated use `DeletePlaylistPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = DeletePlaylistPlaylistsErrors$inboundSchema; + /** @deprecated use `DeletePlaylistPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = DeletePlaylistPlaylistsErrors$outboundSchema; + /** @deprecated use `DeletePlaylistPlaylistsErrors$Outbound` instead. */ + export type Outbound = DeletePlaylistPlaylistsErrors$Outbound; +} + +/** @internal */ +export const DeletePlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< + DeletePlaylistPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => DeletePlaylistPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new DeletePlaylistPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type DeletePlaylistPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const DeletePlaylistPlaylistsResponseBody$outboundSchema: z.ZodType< + DeletePlaylistPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + DeletePlaylistPlaylistsResponseBody +> = z + .instanceof(DeletePlaylistPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => DeletePlaylistPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeletePlaylistPlaylistsResponseBody$ { + /** @deprecated use `DeletePlaylistPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = DeletePlaylistPlaylistsResponseBody$inboundSchema; + /** @deprecated use `DeletePlaylistPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = DeletePlaylistPlaylistsResponseBody$outboundSchema; + /** @deprecated use `DeletePlaylistPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = DeletePlaylistPlaylistsResponseBody$Outbound; +} + /** @internal */ export const DeletePlaylistErrors$inboundSchema: z.ZodType< DeletePlaylistErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const DeletePlaylistErrors$outboundSchema: z.ZodType< z.ZodTypeDef, DeletePlaylistErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/enablepapertrail.ts b/src/sdk/models/errors/enablepapertrail.ts index ac5a4bca..a68216a0 100644 --- a/src/sdk/models/errors/enablepapertrail.ts +++ b/src/sdk/models/errors/enablepapertrail.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type EnablePaperTrailLogErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type EnablePaperTrailLogResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class EnablePaperTrailLogResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: EnablePaperTrailLogResponseBodyData; + + constructor(err: EnablePaperTrailLogResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "EnablePaperTrailLogResponseBody"; + } +} + export type EnablePaperTrailErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type EnablePaperTrailErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type EnablePaperTrailResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type EnablePaperTrailResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class EnablePaperTrailResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class EnablePaperTrailResponseBody extends Error { } } +/** @internal */ +export const EnablePaperTrailLogErrors$inboundSchema: z.ZodType< + EnablePaperTrailLogErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type EnablePaperTrailLogErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const EnablePaperTrailLogErrors$outboundSchema: z.ZodType< + EnablePaperTrailLogErrors$Outbound, + z.ZodTypeDef, + EnablePaperTrailLogErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace EnablePaperTrailLogErrors$ { + /** @deprecated use `EnablePaperTrailLogErrors$inboundSchema` instead. */ + export const inboundSchema = EnablePaperTrailLogErrors$inboundSchema; + /** @deprecated use `EnablePaperTrailLogErrors$outboundSchema` instead. */ + export const outboundSchema = EnablePaperTrailLogErrors$outboundSchema; + /** @deprecated use `EnablePaperTrailLogErrors$Outbound` instead. */ + export type Outbound = EnablePaperTrailLogErrors$Outbound; +} + +/** @internal */ +export const EnablePaperTrailLogResponseBody$inboundSchema: z.ZodType< + EnablePaperTrailLogResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => EnablePaperTrailLogErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new EnablePaperTrailLogResponseBody(remapped); + }); + +/** @internal */ +export type EnablePaperTrailLogResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const EnablePaperTrailLogResponseBody$outboundSchema: z.ZodType< + EnablePaperTrailLogResponseBody$Outbound, + z.ZodTypeDef, + EnablePaperTrailLogResponseBody +> = z + .instanceof(EnablePaperTrailLogResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => EnablePaperTrailLogErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace EnablePaperTrailLogResponseBody$ { + /** @deprecated use `EnablePaperTrailLogResponseBody$inboundSchema` instead. */ + export const inboundSchema = EnablePaperTrailLogResponseBody$inboundSchema; + /** @deprecated use `EnablePaperTrailLogResponseBody$outboundSchema` instead. */ + export const outboundSchema = EnablePaperTrailLogResponseBody$outboundSchema; + /** @deprecated use `EnablePaperTrailLogResponseBody$Outbound` instead. */ + export type Outbound = EnablePaperTrailLogResponseBody$Outbound; +} + /** @internal */ export const EnablePaperTrailErrors$inboundSchema: z.ZodType< EnablePaperTrailErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const EnablePaperTrailErrors$outboundSchema: z.ZodType< z.ZodTypeDef, EnablePaperTrailErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getalllibraries.ts b/src/sdk/models/errors/getalllibraries.ts index e6787322..79ab7c28 100644 --- a/src/sdk/models/errors/getalllibraries.ts +++ b/src/sdk/models/errors/getalllibraries.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetAllLibrariesLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetAllLibrariesLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetAllLibrariesLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetAllLibrariesLibraryResponseBodyData; + + constructor(err: GetAllLibrariesLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetAllLibrariesLibraryResponseBody"; + } +} + export type GetAllLibrariesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetAllLibrariesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetAllLibrariesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetAllLibrariesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetAllLibrariesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetAllLibrariesResponseBody extends Error { } } +/** @internal */ +export const GetAllLibrariesLibraryErrors$inboundSchema: z.ZodType< + GetAllLibrariesLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetAllLibrariesLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetAllLibrariesLibraryErrors$outboundSchema: z.ZodType< + GetAllLibrariesLibraryErrors$Outbound, + z.ZodTypeDef, + GetAllLibrariesLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetAllLibrariesLibraryErrors$ { + /** @deprecated use `GetAllLibrariesLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetAllLibrariesLibraryErrors$inboundSchema; + /** @deprecated use `GetAllLibrariesLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetAllLibrariesLibraryErrors$outboundSchema; + /** @deprecated use `GetAllLibrariesLibraryErrors$Outbound` instead. */ + export type Outbound = GetAllLibrariesLibraryErrors$Outbound; +} + +/** @internal */ +export const GetAllLibrariesLibraryResponseBody$inboundSchema: z.ZodType< + GetAllLibrariesLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetAllLibrariesLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetAllLibrariesLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetAllLibrariesLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetAllLibrariesLibraryResponseBody$outboundSchema: z.ZodType< + GetAllLibrariesLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetAllLibrariesLibraryResponseBody +> = z + .instanceof(GetAllLibrariesLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetAllLibrariesLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetAllLibrariesLibraryResponseBody$ { + /** @deprecated use `GetAllLibrariesLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetAllLibrariesLibraryResponseBody$inboundSchema; + /** @deprecated use `GetAllLibrariesLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetAllLibrariesLibraryResponseBody$outboundSchema; + /** @deprecated use `GetAllLibrariesLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetAllLibrariesLibraryResponseBody$Outbound; +} + /** @internal */ export const GetAllLibrariesErrors$inboundSchema: z.ZodType< GetAllLibrariesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetAllLibrariesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLibrariesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getavailableclients.ts b/src/sdk/models/errors/getavailableclients.ts index ec59647d..68865f55 100644 --- a/src/sdk/models/errors/getavailableclients.ts +++ b/src/sdk/models/errors/getavailableclients.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetAvailableClientsServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetAvailableClientsServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetAvailableClientsServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetAvailableClientsServerResponseBodyData; + + constructor(err: GetAvailableClientsServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetAvailableClientsServerResponseBody"; + } +} + export type GetAvailableClientsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetAvailableClientsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetAvailableClientsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetAvailableClientsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetAvailableClientsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetAvailableClientsResponseBody extends Error { } } +/** @internal */ +export const GetAvailableClientsServerErrors$inboundSchema: z.ZodType< + GetAvailableClientsServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetAvailableClientsServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetAvailableClientsServerErrors$outboundSchema: z.ZodType< + GetAvailableClientsServerErrors$Outbound, + z.ZodTypeDef, + GetAvailableClientsServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetAvailableClientsServerErrors$ { + /** @deprecated use `GetAvailableClientsServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetAvailableClientsServerErrors$inboundSchema; + /** @deprecated use `GetAvailableClientsServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetAvailableClientsServerErrors$outboundSchema; + /** @deprecated use `GetAvailableClientsServerErrors$Outbound` instead. */ + export type Outbound = GetAvailableClientsServerErrors$Outbound; +} + +/** @internal */ +export const GetAvailableClientsServerResponseBody$inboundSchema: z.ZodType< + GetAvailableClientsServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetAvailableClientsServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetAvailableClientsServerResponseBody(remapped); + }); + +/** @internal */ +export type GetAvailableClientsServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetAvailableClientsServerResponseBody$outboundSchema: z.ZodType< + GetAvailableClientsServerResponseBody$Outbound, + z.ZodTypeDef, + GetAvailableClientsServerResponseBody +> = z + .instanceof(GetAvailableClientsServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetAvailableClientsServerErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetAvailableClientsServerResponseBody$ { + /** @deprecated use `GetAvailableClientsServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetAvailableClientsServerResponseBody$inboundSchema; + /** @deprecated use `GetAvailableClientsServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetAvailableClientsServerResponseBody$outboundSchema; + /** @deprecated use `GetAvailableClientsServerResponseBody$Outbound` instead. */ + export type Outbound = GetAvailableClientsServerResponseBody$Outbound; +} + /** @internal */ export const GetAvailableClientsErrors$inboundSchema: z.ZodType< GetAvailableClientsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetAvailableClientsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetAvailableClientsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getbandwidthstatistics.ts b/src/sdk/models/errors/getbandwidthstatistics.ts index 9623f0c6..baaf62ad 100644 --- a/src/sdk/models/errors/getbandwidthstatistics.ts +++ b/src/sdk/models/errors/getbandwidthstatistics.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetBandwidthStatisticsStatisticsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetBandwidthStatisticsStatisticsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetBandwidthStatisticsStatisticsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetBandwidthStatisticsStatisticsResponseBodyData; + + constructor(err: GetBandwidthStatisticsStatisticsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetBandwidthStatisticsStatisticsResponseBody"; + } +} + export type GetBandwidthStatisticsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetBandwidthStatisticsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetBandwidthStatisticsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetBandwidthStatisticsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetBandwidthStatisticsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class GetBandwidthStatisticsResponseBody extends Error { } } +/** @internal */ +export const GetBandwidthStatisticsStatisticsErrors$inboundSchema: z.ZodType< + GetBandwidthStatisticsStatisticsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetBandwidthStatisticsStatisticsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetBandwidthStatisticsStatisticsErrors$outboundSchema: z.ZodType< + GetBandwidthStatisticsStatisticsErrors$Outbound, + z.ZodTypeDef, + GetBandwidthStatisticsStatisticsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetBandwidthStatisticsStatisticsErrors$ { + /** @deprecated use `GetBandwidthStatisticsStatisticsErrors$inboundSchema` instead. */ + export const inboundSchema = GetBandwidthStatisticsStatisticsErrors$inboundSchema; + /** @deprecated use `GetBandwidthStatisticsStatisticsErrors$outboundSchema` instead. */ + export const outboundSchema = GetBandwidthStatisticsStatisticsErrors$outboundSchema; + /** @deprecated use `GetBandwidthStatisticsStatisticsErrors$Outbound` instead. */ + export type Outbound = GetBandwidthStatisticsStatisticsErrors$Outbound; +} + +/** @internal */ +export const GetBandwidthStatisticsStatisticsResponseBody$inboundSchema: z.ZodType< + GetBandwidthStatisticsStatisticsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => GetBandwidthStatisticsStatisticsErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetBandwidthStatisticsStatisticsResponseBody(remapped); + }); + +/** @internal */ +export type GetBandwidthStatisticsStatisticsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetBandwidthStatisticsStatisticsResponseBody$outboundSchema: z.ZodType< + GetBandwidthStatisticsStatisticsResponseBody$Outbound, + z.ZodTypeDef, + GetBandwidthStatisticsStatisticsResponseBody +> = z + .instanceof(GetBandwidthStatisticsStatisticsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetBandwidthStatisticsStatisticsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetBandwidthStatisticsStatisticsResponseBody$ { + /** @deprecated use `GetBandwidthStatisticsStatisticsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetBandwidthStatisticsStatisticsResponseBody$inboundSchema; + /** @deprecated use `GetBandwidthStatisticsStatisticsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetBandwidthStatisticsStatisticsResponseBody$outboundSchema; + /** @deprecated use `GetBandwidthStatisticsStatisticsResponseBody$Outbound` instead. */ + export type Outbound = GetBandwidthStatisticsStatisticsResponseBody$Outbound; +} + /** @internal */ export const GetBandwidthStatisticsErrors$inboundSchema: z.ZodType< GetBandwidthStatisticsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const GetBandwidthStatisticsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetBandwidthStatisticsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getbannerimage.ts b/src/sdk/models/errors/getbannerimage.ts index 3c5694c5..d488936c 100644 --- a/src/sdk/models/errors/getbannerimage.ts +++ b/src/sdk/models/errors/getbannerimage.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetBannerImageMediaErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetBannerImageMediaResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetBannerImageMediaResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetBannerImageMediaResponseBodyData; + + constructor(err: GetBannerImageMediaResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetBannerImageMediaResponseBody"; + } +} + export type GetBannerImageErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetBannerImageErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetBannerImageResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetBannerImageResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetBannerImageResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetBannerImageResponseBody extends Error { } } +/** @internal */ +export const GetBannerImageMediaErrors$inboundSchema: z.ZodType< + GetBannerImageMediaErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetBannerImageMediaErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetBannerImageMediaErrors$outboundSchema: z.ZodType< + GetBannerImageMediaErrors$Outbound, + z.ZodTypeDef, + GetBannerImageMediaErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetBannerImageMediaErrors$ { + /** @deprecated use `GetBannerImageMediaErrors$inboundSchema` instead. */ + export const inboundSchema = GetBannerImageMediaErrors$inboundSchema; + /** @deprecated use `GetBannerImageMediaErrors$outboundSchema` instead. */ + export const outboundSchema = GetBannerImageMediaErrors$outboundSchema; + /** @deprecated use `GetBannerImageMediaErrors$Outbound` instead. */ + export type Outbound = GetBannerImageMediaErrors$Outbound; +} + +/** @internal */ +export const GetBannerImageMediaResponseBody$inboundSchema: z.ZodType< + GetBannerImageMediaResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetBannerImageMediaErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetBannerImageMediaResponseBody(remapped); + }); + +/** @internal */ +export type GetBannerImageMediaResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetBannerImageMediaResponseBody$outboundSchema: z.ZodType< + GetBannerImageMediaResponseBody$Outbound, + z.ZodTypeDef, + GetBannerImageMediaResponseBody +> = z + .instanceof(GetBannerImageMediaResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetBannerImageMediaErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetBannerImageMediaResponseBody$ { + /** @deprecated use `GetBannerImageMediaResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetBannerImageMediaResponseBody$inboundSchema; + /** @deprecated use `GetBannerImageMediaResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetBannerImageMediaResponseBody$outboundSchema; + /** @deprecated use `GetBannerImageMediaResponseBody$Outbound` instead. */ + export type Outbound = GetBannerImageMediaResponseBody$Outbound; +} + /** @internal */ export const GetBannerImageErrors$inboundSchema: z.ZodType< GetBannerImageErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetBannerImageErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetBannerImageErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getbutlertasks.ts b/src/sdk/models/errors/getbutlertasks.ts index 4e3aea67..aef14173 100644 --- a/src/sdk/models/errors/getbutlertasks.ts +++ b/src/sdk/models/errors/getbutlertasks.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetButlerTasksButlerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetButlerTasksButlerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetButlerTasksButlerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetButlerTasksButlerResponseBodyData; + + constructor(err: GetButlerTasksButlerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetButlerTasksButlerResponseBody"; + } +} + export type GetButlerTasksErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetButlerTasksErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetButlerTasksResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetButlerTasksResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetButlerTasksResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetButlerTasksResponseBody extends Error { } } +/** @internal */ +export const GetButlerTasksButlerErrors$inboundSchema: z.ZodType< + GetButlerTasksButlerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetButlerTasksButlerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetButlerTasksButlerErrors$outboundSchema: z.ZodType< + GetButlerTasksButlerErrors$Outbound, + z.ZodTypeDef, + GetButlerTasksButlerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetButlerTasksButlerErrors$ { + /** @deprecated use `GetButlerTasksButlerErrors$inboundSchema` instead. */ + export const inboundSchema = GetButlerTasksButlerErrors$inboundSchema; + /** @deprecated use `GetButlerTasksButlerErrors$outboundSchema` instead. */ + export const outboundSchema = GetButlerTasksButlerErrors$outboundSchema; + /** @deprecated use `GetButlerTasksButlerErrors$Outbound` instead. */ + export type Outbound = GetButlerTasksButlerErrors$Outbound; +} + +/** @internal */ +export const GetButlerTasksButlerResponseBody$inboundSchema: z.ZodType< + GetButlerTasksButlerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetButlerTasksButlerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetButlerTasksButlerResponseBody(remapped); + }); + +/** @internal */ +export type GetButlerTasksButlerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetButlerTasksButlerResponseBody$outboundSchema: z.ZodType< + GetButlerTasksButlerResponseBody$Outbound, + z.ZodTypeDef, + GetButlerTasksButlerResponseBody +> = z + .instanceof(GetButlerTasksButlerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetButlerTasksButlerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetButlerTasksButlerResponseBody$ { + /** @deprecated use `GetButlerTasksButlerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetButlerTasksButlerResponseBody$inboundSchema; + /** @deprecated use `GetButlerTasksButlerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetButlerTasksButlerResponseBody$outboundSchema; + /** @deprecated use `GetButlerTasksButlerResponseBody$Outbound` instead. */ + export type Outbound = GetButlerTasksButlerResponseBody$Outbound; +} + /** @internal */ export const GetButlerTasksErrors$inboundSchema: z.ZodType< GetButlerTasksErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetButlerTasksErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetButlerTasksErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getcompanionsdata.ts b/src/sdk/models/errors/getcompanionsdata.ts index b03fec80..5d3fb810 100644 --- a/src/sdk/models/errors/getcompanionsdata.ts +++ b/src/sdk/models/errors/getcompanionsdata.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetCompanionsDataPlexErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetCompanionsDataPlexResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetCompanionsDataPlexResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetCompanionsDataPlexResponseBodyData; + + constructor(err: GetCompanionsDataPlexResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetCompanionsDataPlexResponseBody"; + } +} + export type GetCompanionsDataErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetCompanionsDataErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetCompanionsDataResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetCompanionsDataResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetCompanionsDataResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetCompanionsDataResponseBody extends Error { } } +/** @internal */ +export const GetCompanionsDataPlexErrors$inboundSchema: z.ZodType< + GetCompanionsDataPlexErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetCompanionsDataPlexErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetCompanionsDataPlexErrors$outboundSchema: z.ZodType< + GetCompanionsDataPlexErrors$Outbound, + z.ZodTypeDef, + GetCompanionsDataPlexErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetCompanionsDataPlexErrors$ { + /** @deprecated use `GetCompanionsDataPlexErrors$inboundSchema` instead. */ + export const inboundSchema = GetCompanionsDataPlexErrors$inboundSchema; + /** @deprecated use `GetCompanionsDataPlexErrors$outboundSchema` instead. */ + export const outboundSchema = GetCompanionsDataPlexErrors$outboundSchema; + /** @deprecated use `GetCompanionsDataPlexErrors$Outbound` instead. */ + export type Outbound = GetCompanionsDataPlexErrors$Outbound; +} + +/** @internal */ +export const GetCompanionsDataPlexResponseBody$inboundSchema: z.ZodType< + GetCompanionsDataPlexResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetCompanionsDataPlexErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetCompanionsDataPlexResponseBody(remapped); + }); + +/** @internal */ +export type GetCompanionsDataPlexResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetCompanionsDataPlexResponseBody$outboundSchema: z.ZodType< + GetCompanionsDataPlexResponseBody$Outbound, + z.ZodTypeDef, + GetCompanionsDataPlexResponseBody +> = z + .instanceof(GetCompanionsDataPlexResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetCompanionsDataPlexErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetCompanionsDataPlexResponseBody$ { + /** @deprecated use `GetCompanionsDataPlexResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetCompanionsDataPlexResponseBody$inboundSchema; + /** @deprecated use `GetCompanionsDataPlexResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetCompanionsDataPlexResponseBody$outboundSchema; + /** @deprecated use `GetCompanionsDataPlexResponseBody$Outbound` instead. */ + export type Outbound = GetCompanionsDataPlexResponseBody$Outbound; +} + /** @internal */ export const GetCompanionsDataErrors$inboundSchema: z.ZodType< GetCompanionsDataErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetCompanionsDataErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetCompanionsDataErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getdevices.ts b/src/sdk/models/errors/getdevices.ts index c1f70ebb..8aa4f08d 100644 --- a/src/sdk/models/errors/getdevices.ts +++ b/src/sdk/models/errors/getdevices.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetDevicesServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetDevicesServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetDevicesServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetDevicesServerResponseBodyData; + + constructor(err: GetDevicesServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetDevicesServerResponseBody"; + } +} + export type GetDevicesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetDevicesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetDevicesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetDevicesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetDevicesResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetDevicesResponseBody extends Error { } } +/** @internal */ +export const GetDevicesServerErrors$inboundSchema: z.ZodType< + GetDevicesServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetDevicesServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetDevicesServerErrors$outboundSchema: z.ZodType< + GetDevicesServerErrors$Outbound, + z.ZodTypeDef, + GetDevicesServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetDevicesServerErrors$ { + /** @deprecated use `GetDevicesServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetDevicesServerErrors$inboundSchema; + /** @deprecated use `GetDevicesServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetDevicesServerErrors$outboundSchema; + /** @deprecated use `GetDevicesServerErrors$Outbound` instead. */ + export type Outbound = GetDevicesServerErrors$Outbound; +} + +/** @internal */ +export const GetDevicesServerResponseBody$inboundSchema: z.ZodType< + GetDevicesServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetDevicesServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetDevicesServerResponseBody(remapped); + }); + +/** @internal */ +export type GetDevicesServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetDevicesServerResponseBody$outboundSchema: z.ZodType< + GetDevicesServerResponseBody$Outbound, + z.ZodTypeDef, + GetDevicesServerResponseBody +> = z + .instanceof(GetDevicesServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetDevicesServerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetDevicesServerResponseBody$ { + /** @deprecated use `GetDevicesServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetDevicesServerResponseBody$inboundSchema; + /** @deprecated use `GetDevicesServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetDevicesServerResponseBody$outboundSchema; + /** @deprecated use `GetDevicesServerResponseBody$Outbound` instead. */ + export type Outbound = GetDevicesServerResponseBody$Outbound; +} + /** @internal */ export const GetDevicesErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetDevicesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetDevicesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getfilehash.ts b/src/sdk/models/errors/getfilehash.ts index 612f97b9..bc3ae4f8 100644 --- a/src/sdk/models/errors/getfilehash.ts +++ b/src/sdk/models/errors/getfilehash.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetFileHashLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetFileHashLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetFileHashLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetFileHashLibraryResponseBodyData; + + constructor(err: GetFileHashLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetFileHashLibraryResponseBody"; + } +} + export type GetFileHashErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetFileHashErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetFileHashResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetFileHashResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetFileHashResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetFileHashResponseBody extends Error { } } +/** @internal */ +export const GetFileHashLibraryErrors$inboundSchema: z.ZodType< + GetFileHashLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetFileHashLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetFileHashLibraryErrors$outboundSchema: z.ZodType< + GetFileHashLibraryErrors$Outbound, + z.ZodTypeDef, + GetFileHashLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetFileHashLibraryErrors$ { + /** @deprecated use `GetFileHashLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetFileHashLibraryErrors$inboundSchema; + /** @deprecated use `GetFileHashLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetFileHashLibraryErrors$outboundSchema; + /** @deprecated use `GetFileHashLibraryErrors$Outbound` instead. */ + export type Outbound = GetFileHashLibraryErrors$Outbound; +} + +/** @internal */ +export const GetFileHashLibraryResponseBody$inboundSchema: z.ZodType< + GetFileHashLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetFileHashLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetFileHashLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetFileHashLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetFileHashLibraryResponseBody$outboundSchema: z.ZodType< + GetFileHashLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetFileHashLibraryResponseBody +> = z + .instanceof(GetFileHashLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetFileHashLibraryErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetFileHashLibraryResponseBody$ { + /** @deprecated use `GetFileHashLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetFileHashLibraryResponseBody$inboundSchema; + /** @deprecated use `GetFileHashLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetFileHashLibraryResponseBody$outboundSchema; + /** @deprecated use `GetFileHashLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetFileHashLibraryResponseBody$Outbound; +} + /** @internal */ export const GetFileHashErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetFileHashErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetFileHashErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getgeodata.ts b/src/sdk/models/errors/getgeodata.ts index 6ad6b4e4..940189cc 100644 --- a/src/sdk/models/errors/getgeodata.ts +++ b/src/sdk/models/errors/getgeodata.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetGeoDataPlexErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetGeoDataPlexResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetGeoDataPlexResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetGeoDataPlexResponseBodyData; + + constructor(err: GetGeoDataPlexResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetGeoDataPlexResponseBody"; + } +} + export type GetGeoDataErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetGeoDataErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetGeoDataResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetGeoDataResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetGeoDataResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetGeoDataResponseBody extends Error { } } +/** @internal */ +export const GetGeoDataPlexErrors$inboundSchema: z.ZodType< + GetGeoDataPlexErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetGeoDataPlexErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetGeoDataPlexErrors$outboundSchema: z.ZodType< + GetGeoDataPlexErrors$Outbound, + z.ZodTypeDef, + GetGeoDataPlexErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetGeoDataPlexErrors$ { + /** @deprecated use `GetGeoDataPlexErrors$inboundSchema` instead. */ + export const inboundSchema = GetGeoDataPlexErrors$inboundSchema; + /** @deprecated use `GetGeoDataPlexErrors$outboundSchema` instead. */ + export const outboundSchema = GetGeoDataPlexErrors$outboundSchema; + /** @deprecated use `GetGeoDataPlexErrors$Outbound` instead. */ + export type Outbound = GetGeoDataPlexErrors$Outbound; +} + +/** @internal */ +export const GetGeoDataPlexResponseBody$inboundSchema: z.ZodType< + GetGeoDataPlexResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetGeoDataPlexErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetGeoDataPlexResponseBody(remapped); + }); + +/** @internal */ +export type GetGeoDataPlexResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetGeoDataPlexResponseBody$outboundSchema: z.ZodType< + GetGeoDataPlexResponseBody$Outbound, + z.ZodTypeDef, + GetGeoDataPlexResponseBody +> = z + .instanceof(GetGeoDataPlexResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetGeoDataPlexErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetGeoDataPlexResponseBody$ { + /** @deprecated use `GetGeoDataPlexResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetGeoDataPlexResponseBody$inboundSchema; + /** @deprecated use `GetGeoDataPlexResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetGeoDataPlexResponseBody$outboundSchema; + /** @deprecated use `GetGeoDataPlexResponseBody$Outbound` instead. */ + export type Outbound = GetGeoDataPlexResponseBody$Outbound; +} + /** @internal */ export const GetGeoDataErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetGeoDataErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetGeoDataErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getglobalhubs.ts b/src/sdk/models/errors/getglobalhubs.ts index 740aeec3..c11d998e 100644 --- a/src/sdk/models/errors/getglobalhubs.ts +++ b/src/sdk/models/errors/getglobalhubs.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetGlobalHubsHubsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetGlobalHubsHubsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetGlobalHubsHubsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetGlobalHubsHubsResponseBodyData; + + constructor(err: GetGlobalHubsHubsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetGlobalHubsHubsResponseBody"; + } +} + export type GetGlobalHubsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetGlobalHubsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetGlobalHubsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetGlobalHubsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetGlobalHubsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetGlobalHubsResponseBody extends Error { } } +/** @internal */ +export const GetGlobalHubsHubsErrors$inboundSchema: z.ZodType< + GetGlobalHubsHubsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetGlobalHubsHubsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetGlobalHubsHubsErrors$outboundSchema: z.ZodType< + GetGlobalHubsHubsErrors$Outbound, + z.ZodTypeDef, + GetGlobalHubsHubsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetGlobalHubsHubsErrors$ { + /** @deprecated use `GetGlobalHubsHubsErrors$inboundSchema` instead. */ + export const inboundSchema = GetGlobalHubsHubsErrors$inboundSchema; + /** @deprecated use `GetGlobalHubsHubsErrors$outboundSchema` instead. */ + export const outboundSchema = GetGlobalHubsHubsErrors$outboundSchema; + /** @deprecated use `GetGlobalHubsHubsErrors$Outbound` instead. */ + export type Outbound = GetGlobalHubsHubsErrors$Outbound; +} + +/** @internal */ +export const GetGlobalHubsHubsResponseBody$inboundSchema: z.ZodType< + GetGlobalHubsHubsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetGlobalHubsHubsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetGlobalHubsHubsResponseBody(remapped); + }); + +/** @internal */ +export type GetGlobalHubsHubsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetGlobalHubsHubsResponseBody$outboundSchema: z.ZodType< + GetGlobalHubsHubsResponseBody$Outbound, + z.ZodTypeDef, + GetGlobalHubsHubsResponseBody +> = z + .instanceof(GetGlobalHubsHubsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetGlobalHubsHubsErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetGlobalHubsHubsResponseBody$ { + /** @deprecated use `GetGlobalHubsHubsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetGlobalHubsHubsResponseBody$inboundSchema; + /** @deprecated use `GetGlobalHubsHubsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetGlobalHubsHubsResponseBody$outboundSchema; + /** @deprecated use `GetGlobalHubsHubsResponseBody$Outbound` instead. */ + export type Outbound = GetGlobalHubsHubsResponseBody$Outbound; +} + /** @internal */ export const GetGlobalHubsErrors$inboundSchema: z.ZodType< GetGlobalHubsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetGlobalHubsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetGlobalHubsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/gethomedata.ts b/src/sdk/models/errors/gethomedata.ts index 7c7979c4..68c8fbb9 100644 --- a/src/sdk/models/errors/gethomedata.ts +++ b/src/sdk/models/errors/gethomedata.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetHomeDataPlexErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetHomeDataPlexResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetHomeDataPlexResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetHomeDataPlexResponseBodyData; + + constructor(err: GetHomeDataPlexResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetHomeDataPlexResponseBody"; + } +} + export type GetHomeDataErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetHomeDataErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetHomeDataResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetHomeDataResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetHomeDataResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetHomeDataResponseBody extends Error { } } +/** @internal */ +export const GetHomeDataPlexErrors$inboundSchema: z.ZodType< + GetHomeDataPlexErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetHomeDataPlexErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetHomeDataPlexErrors$outboundSchema: z.ZodType< + GetHomeDataPlexErrors$Outbound, + z.ZodTypeDef, + GetHomeDataPlexErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetHomeDataPlexErrors$ { + /** @deprecated use `GetHomeDataPlexErrors$inboundSchema` instead. */ + export const inboundSchema = GetHomeDataPlexErrors$inboundSchema; + /** @deprecated use `GetHomeDataPlexErrors$outboundSchema` instead. */ + export const outboundSchema = GetHomeDataPlexErrors$outboundSchema; + /** @deprecated use `GetHomeDataPlexErrors$Outbound` instead. */ + export type Outbound = GetHomeDataPlexErrors$Outbound; +} + +/** @internal */ +export const GetHomeDataPlexResponseBody$inboundSchema: z.ZodType< + GetHomeDataPlexResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetHomeDataPlexErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetHomeDataPlexResponseBody(remapped); + }); + +/** @internal */ +export type GetHomeDataPlexResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetHomeDataPlexResponseBody$outboundSchema: z.ZodType< + GetHomeDataPlexResponseBody$Outbound, + z.ZodTypeDef, + GetHomeDataPlexResponseBody +> = z + .instanceof(GetHomeDataPlexResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetHomeDataPlexErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetHomeDataPlexResponseBody$ { + /** @deprecated use `GetHomeDataPlexResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetHomeDataPlexResponseBody$inboundSchema; + /** @deprecated use `GetHomeDataPlexResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetHomeDataPlexResponseBody$outboundSchema; + /** @deprecated use `GetHomeDataPlexResponseBody$Outbound` instead. */ + export type Outbound = GetHomeDataPlexResponseBody$Outbound; +} + /** @internal */ export const GetHomeDataErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetHomeDataErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetHomeDataErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getlibrarydetails.ts b/src/sdk/models/errors/getlibrarydetails.ts index 61c4f6bb..ac61e21b 100644 --- a/src/sdk/models/errors/getlibrarydetails.ts +++ b/src/sdk/models/errors/getlibrarydetails.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetLibraryDetailsLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetLibraryDetailsLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetLibraryDetailsLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetLibraryDetailsLibraryResponseBodyData; + + constructor(err: GetLibraryDetailsLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetLibraryDetailsLibraryResponseBody"; + } +} + export type GetLibraryDetailsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetLibraryDetailsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetLibraryDetailsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetLibraryDetailsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetLibraryDetailsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetLibraryDetailsResponseBody extends Error { } } +/** @internal */ +export const GetLibraryDetailsLibraryErrors$inboundSchema: z.ZodType< + GetLibraryDetailsLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetLibraryDetailsLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetLibraryDetailsLibraryErrors$outboundSchema: z.ZodType< + GetLibraryDetailsLibraryErrors$Outbound, + z.ZodTypeDef, + GetLibraryDetailsLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryDetailsLibraryErrors$ { + /** @deprecated use `GetLibraryDetailsLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetLibraryDetailsLibraryErrors$inboundSchema; + /** @deprecated use `GetLibraryDetailsLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetLibraryDetailsLibraryErrors$outboundSchema; + /** @deprecated use `GetLibraryDetailsLibraryErrors$Outbound` instead. */ + export type Outbound = GetLibraryDetailsLibraryErrors$Outbound; +} + +/** @internal */ +export const GetLibraryDetailsLibraryResponseBody$inboundSchema: z.ZodType< + GetLibraryDetailsLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetLibraryDetailsLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetLibraryDetailsLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetLibraryDetailsLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetLibraryDetailsLibraryResponseBody$outboundSchema: z.ZodType< + GetLibraryDetailsLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetLibraryDetailsLibraryResponseBody +> = z + .instanceof(GetLibraryDetailsLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetLibraryDetailsLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryDetailsLibraryResponseBody$ { + /** @deprecated use `GetLibraryDetailsLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetLibraryDetailsLibraryResponseBody$inboundSchema; + /** @deprecated use `GetLibraryDetailsLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetLibraryDetailsLibraryResponseBody$outboundSchema; + /** @deprecated use `GetLibraryDetailsLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetLibraryDetailsLibraryResponseBody$Outbound; +} + /** @internal */ export const GetLibraryDetailsErrors$inboundSchema: z.ZodType< GetLibraryDetailsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetLibraryDetailsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryDetailsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getlibraryhubs.ts b/src/sdk/models/errors/getlibraryhubs.ts index 578bacd4..449d1bea 100644 --- a/src/sdk/models/errors/getlibraryhubs.ts +++ b/src/sdk/models/errors/getlibraryhubs.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetLibraryHubsHubsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetLibraryHubsHubsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetLibraryHubsHubsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetLibraryHubsHubsResponseBodyData; + + constructor(err: GetLibraryHubsHubsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetLibraryHubsHubsResponseBody"; + } +} + export type GetLibraryHubsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetLibraryHubsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetLibraryHubsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetLibraryHubsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetLibraryHubsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetLibraryHubsResponseBody extends Error { } } +/** @internal */ +export const GetLibraryHubsHubsErrors$inboundSchema: z.ZodType< + GetLibraryHubsHubsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetLibraryHubsHubsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetLibraryHubsHubsErrors$outboundSchema: z.ZodType< + GetLibraryHubsHubsErrors$Outbound, + z.ZodTypeDef, + GetLibraryHubsHubsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryHubsHubsErrors$ { + /** @deprecated use `GetLibraryHubsHubsErrors$inboundSchema` instead. */ + export const inboundSchema = GetLibraryHubsHubsErrors$inboundSchema; + /** @deprecated use `GetLibraryHubsHubsErrors$outboundSchema` instead. */ + export const outboundSchema = GetLibraryHubsHubsErrors$outboundSchema; + /** @deprecated use `GetLibraryHubsHubsErrors$Outbound` instead. */ + export type Outbound = GetLibraryHubsHubsErrors$Outbound; +} + +/** @internal */ +export const GetLibraryHubsHubsResponseBody$inboundSchema: z.ZodType< + GetLibraryHubsHubsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetLibraryHubsHubsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetLibraryHubsHubsResponseBody(remapped); + }); + +/** @internal */ +export type GetLibraryHubsHubsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetLibraryHubsHubsResponseBody$outboundSchema: z.ZodType< + GetLibraryHubsHubsResponseBody$Outbound, + z.ZodTypeDef, + GetLibraryHubsHubsResponseBody +> = z + .instanceof(GetLibraryHubsHubsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetLibraryHubsHubsErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryHubsHubsResponseBody$ { + /** @deprecated use `GetLibraryHubsHubsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetLibraryHubsHubsResponseBody$inboundSchema; + /** @deprecated use `GetLibraryHubsHubsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetLibraryHubsHubsResponseBody$outboundSchema; + /** @deprecated use `GetLibraryHubsHubsResponseBody$Outbound` instead. */ + export type Outbound = GetLibraryHubsHubsResponseBody$Outbound; +} + /** @internal */ export const GetLibraryHubsErrors$inboundSchema: z.ZodType< GetLibraryHubsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetLibraryHubsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryHubsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getlibraryitems.ts b/src/sdk/models/errors/getlibraryitems.ts index 00c705a6..b84d0c89 100644 --- a/src/sdk/models/errors/getlibraryitems.ts +++ b/src/sdk/models/errors/getlibraryitems.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetLibraryItemsLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetLibraryItemsLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetLibraryItemsLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetLibraryItemsLibraryResponseBodyData; + + constructor(err: GetLibraryItemsLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetLibraryItemsLibraryResponseBody"; + } +} + export type GetLibraryItemsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetLibraryItemsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetLibraryItemsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetLibraryItemsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetLibraryItemsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetLibraryItemsResponseBody extends Error { } } +/** @internal */ +export const GetLibraryItemsLibraryErrors$inboundSchema: z.ZodType< + GetLibraryItemsLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetLibraryItemsLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetLibraryItemsLibraryErrors$outboundSchema: z.ZodType< + GetLibraryItemsLibraryErrors$Outbound, + z.ZodTypeDef, + GetLibraryItemsLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryItemsLibraryErrors$ { + /** @deprecated use `GetLibraryItemsLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetLibraryItemsLibraryErrors$inboundSchema; + /** @deprecated use `GetLibraryItemsLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetLibraryItemsLibraryErrors$outboundSchema; + /** @deprecated use `GetLibraryItemsLibraryErrors$Outbound` instead. */ + export type Outbound = GetLibraryItemsLibraryErrors$Outbound; +} + +/** @internal */ +export const GetLibraryItemsLibraryResponseBody$inboundSchema: z.ZodType< + GetLibraryItemsLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetLibraryItemsLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetLibraryItemsLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetLibraryItemsLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetLibraryItemsLibraryResponseBody$outboundSchema: z.ZodType< + GetLibraryItemsLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetLibraryItemsLibraryResponseBody +> = z + .instanceof(GetLibraryItemsLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetLibraryItemsLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryItemsLibraryResponseBody$ { + /** @deprecated use `GetLibraryItemsLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetLibraryItemsLibraryResponseBody$inboundSchema; + /** @deprecated use `GetLibraryItemsLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetLibraryItemsLibraryResponseBody$outboundSchema; + /** @deprecated use `GetLibraryItemsLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetLibraryItemsLibraryResponseBody$Outbound; +} + /** @internal */ export const GetLibraryItemsErrors$inboundSchema: z.ZodType< GetLibraryItemsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetLibraryItemsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetLibraryItemsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getmediaproviders.ts b/src/sdk/models/errors/getmediaproviders.ts index d7dded27..3e1ec109 100644 --- a/src/sdk/models/errors/getmediaproviders.ts +++ b/src/sdk/models/errors/getmediaproviders.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetMediaProvidersServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetMediaProvidersServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetMediaProvidersServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetMediaProvidersServerResponseBodyData; + + constructor(err: GetMediaProvidersServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetMediaProvidersServerResponseBody"; + } +} + export type GetMediaProvidersErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetMediaProvidersErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetMediaProvidersResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetMediaProvidersResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetMediaProvidersResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetMediaProvidersResponseBody extends Error { } } +/** @internal */ +export const GetMediaProvidersServerErrors$inboundSchema: z.ZodType< + GetMediaProvidersServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetMediaProvidersServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMediaProvidersServerErrors$outboundSchema: z.ZodType< + GetMediaProvidersServerErrors$Outbound, + z.ZodTypeDef, + GetMediaProvidersServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMediaProvidersServerErrors$ { + /** @deprecated use `GetMediaProvidersServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetMediaProvidersServerErrors$inboundSchema; + /** @deprecated use `GetMediaProvidersServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetMediaProvidersServerErrors$outboundSchema; + /** @deprecated use `GetMediaProvidersServerErrors$Outbound` instead. */ + export type Outbound = GetMediaProvidersServerErrors$Outbound; +} + +/** @internal */ +export const GetMediaProvidersServerResponseBody$inboundSchema: z.ZodType< + GetMediaProvidersServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMediaProvidersServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMediaProvidersServerResponseBody(remapped); + }); + +/** @internal */ +export type GetMediaProvidersServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMediaProvidersServerResponseBody$outboundSchema: z.ZodType< + GetMediaProvidersServerResponseBody$Outbound, + z.ZodTypeDef, + GetMediaProvidersServerResponseBody +> = z + .instanceof(GetMediaProvidersServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetMediaProvidersServerErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMediaProvidersServerResponseBody$ { + /** @deprecated use `GetMediaProvidersServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMediaProvidersServerResponseBody$inboundSchema; + /** @deprecated use `GetMediaProvidersServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMediaProvidersServerResponseBody$outboundSchema; + /** @deprecated use `GetMediaProvidersServerResponseBody$Outbound` instead. */ + export type Outbound = GetMediaProvidersServerResponseBody$Outbound; +} + /** @internal */ export const GetMediaProvidersErrors$inboundSchema: z.ZodType< GetMediaProvidersErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetMediaProvidersErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetMediaProvidersErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getmetadatabyratingkey.ts b/src/sdk/models/errors/getmetadatabyratingkey.ts index f2bae81f..4897b274 100644 --- a/src/sdk/models/errors/getmetadatabyratingkey.ts +++ b/src/sdk/models/errors/getmetadatabyratingkey.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetMetaDataByRatingKeyLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetMetaDataByRatingKeyLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetMetaDataByRatingKeyLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetMetaDataByRatingKeyLibraryResponseBodyData; + + constructor(err: GetMetaDataByRatingKeyLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetMetaDataByRatingKeyLibraryResponseBody"; + } +} + export type GetMetaDataByRatingKeyErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetMetaDataByRatingKeyErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetMetaDataByRatingKeyResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetMetaDataByRatingKeyResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetMetaDataByRatingKeyResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetMetaDataByRatingKeyResponseBody extends Error { } } +/** @internal */ +export const GetMetaDataByRatingKeyLibraryErrors$inboundSchema: z.ZodType< + GetMetaDataByRatingKeyLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetMetaDataByRatingKeyLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMetaDataByRatingKeyLibraryErrors$outboundSchema: z.ZodType< + GetMetaDataByRatingKeyLibraryErrors$Outbound, + z.ZodTypeDef, + GetMetaDataByRatingKeyLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetaDataByRatingKeyLibraryErrors$ { + /** @deprecated use `GetMetaDataByRatingKeyLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetMetaDataByRatingKeyLibraryErrors$inboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetMetaDataByRatingKeyLibraryErrors$outboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyLibraryErrors$Outbound` instead. */ + export type Outbound = GetMetaDataByRatingKeyLibraryErrors$Outbound; +} + +/** @internal */ +export const GetMetaDataByRatingKeyLibraryResponseBody$inboundSchema: z.ZodType< + GetMetaDataByRatingKeyLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMetaDataByRatingKeyLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMetaDataByRatingKeyLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetMetaDataByRatingKeyLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMetaDataByRatingKeyLibraryResponseBody$outboundSchema: z.ZodType< + GetMetaDataByRatingKeyLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetMetaDataByRatingKeyLibraryResponseBody +> = z + .instanceof(GetMetaDataByRatingKeyLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetMetaDataByRatingKeyLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetaDataByRatingKeyLibraryResponseBody$ { + /** @deprecated use `GetMetaDataByRatingKeyLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMetaDataByRatingKeyLibraryResponseBody$inboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMetaDataByRatingKeyLibraryResponseBody$outboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetMetaDataByRatingKeyLibraryResponseBody$Outbound; +} + /** @internal */ export const GetMetaDataByRatingKeyErrors$inboundSchema: z.ZodType< GetMetaDataByRatingKeyErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetMetaDataByRatingKeyErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetMetaDataByRatingKeyErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getmetadatachildren.ts b/src/sdk/models/errors/getmetadatachildren.ts index 3788f44a..349ad42c 100644 --- a/src/sdk/models/errors/getmetadatachildren.ts +++ b/src/sdk/models/errors/getmetadatachildren.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetMetadataChildrenLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetMetadataChildrenLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetMetadataChildrenLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetMetadataChildrenLibraryResponseBodyData; + + constructor(err: GetMetadataChildrenLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetMetadataChildrenLibraryResponseBody"; + } +} + export type GetMetadataChildrenErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetMetadataChildrenErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetMetadataChildrenResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetMetadataChildrenResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetMetadataChildrenResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetMetadataChildrenResponseBody extends Error { } } +/** @internal */ +export const GetMetadataChildrenLibraryErrors$inboundSchema: z.ZodType< + GetMetadataChildrenLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetMetadataChildrenLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMetadataChildrenLibraryErrors$outboundSchema: z.ZodType< + GetMetadataChildrenLibraryErrors$Outbound, + z.ZodTypeDef, + GetMetadataChildrenLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetadataChildrenLibraryErrors$ { + /** @deprecated use `GetMetadataChildrenLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetMetadataChildrenLibraryErrors$inboundSchema; + /** @deprecated use `GetMetadataChildrenLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetMetadataChildrenLibraryErrors$outboundSchema; + /** @deprecated use `GetMetadataChildrenLibraryErrors$Outbound` instead. */ + export type Outbound = GetMetadataChildrenLibraryErrors$Outbound; +} + +/** @internal */ +export const GetMetadataChildrenLibraryResponseBody$inboundSchema: z.ZodType< + GetMetadataChildrenLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMetadataChildrenLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMetadataChildrenLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetMetadataChildrenLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMetadataChildrenLibraryResponseBody$outboundSchema: z.ZodType< + GetMetadataChildrenLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetMetadataChildrenLibraryResponseBody +> = z + .instanceof(GetMetadataChildrenLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetMetadataChildrenLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetadataChildrenLibraryResponseBody$ { + /** @deprecated use `GetMetadataChildrenLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMetadataChildrenLibraryResponseBody$inboundSchema; + /** @deprecated use `GetMetadataChildrenLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMetadataChildrenLibraryResponseBody$outboundSchema; + /** @deprecated use `GetMetadataChildrenLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetMetadataChildrenLibraryResponseBody$Outbound; +} + /** @internal */ export const GetMetadataChildrenErrors$inboundSchema: z.ZodType< GetMetadataChildrenErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetMetadataChildrenErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetMetadataChildrenErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getmyplexaccount.ts b/src/sdk/models/errors/getmyplexaccount.ts index db08e8f6..fe75dd8b 100644 --- a/src/sdk/models/errors/getmyplexaccount.ts +++ b/src/sdk/models/errors/getmyplexaccount.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetMyPlexAccountServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetMyPlexAccountServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetMyPlexAccountServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetMyPlexAccountServerResponseBodyData; + + constructor(err: GetMyPlexAccountServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetMyPlexAccountServerResponseBody"; + } +} + export type GetMyPlexAccountErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetMyPlexAccountErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetMyPlexAccountResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetMyPlexAccountResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetMyPlexAccountResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetMyPlexAccountResponseBody extends Error { } } +/** @internal */ +export const GetMyPlexAccountServerErrors$inboundSchema: z.ZodType< + GetMyPlexAccountServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetMyPlexAccountServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMyPlexAccountServerErrors$outboundSchema: z.ZodType< + GetMyPlexAccountServerErrors$Outbound, + z.ZodTypeDef, + GetMyPlexAccountServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMyPlexAccountServerErrors$ { + /** @deprecated use `GetMyPlexAccountServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetMyPlexAccountServerErrors$inboundSchema; + /** @deprecated use `GetMyPlexAccountServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetMyPlexAccountServerErrors$outboundSchema; + /** @deprecated use `GetMyPlexAccountServerErrors$Outbound` instead. */ + export type Outbound = GetMyPlexAccountServerErrors$Outbound; +} + +/** @internal */ +export const GetMyPlexAccountServerResponseBody$inboundSchema: z.ZodType< + GetMyPlexAccountServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMyPlexAccountServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMyPlexAccountServerResponseBody(remapped); + }); + +/** @internal */ +export type GetMyPlexAccountServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMyPlexAccountServerResponseBody$outboundSchema: z.ZodType< + GetMyPlexAccountServerResponseBody$Outbound, + z.ZodTypeDef, + GetMyPlexAccountServerResponseBody +> = z + .instanceof(GetMyPlexAccountServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetMyPlexAccountServerErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMyPlexAccountServerResponseBody$ { + /** @deprecated use `GetMyPlexAccountServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMyPlexAccountServerResponseBody$inboundSchema; + /** @deprecated use `GetMyPlexAccountServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMyPlexAccountServerResponseBody$outboundSchema; + /** @deprecated use `GetMyPlexAccountServerResponseBody$Outbound` instead. */ + export type Outbound = GetMyPlexAccountServerResponseBody$Outbound; +} + /** @internal */ export const GetMyPlexAccountErrors$inboundSchema: z.ZodType< GetMyPlexAccountErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetMyPlexAccountErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetMyPlexAccountErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getondeck.ts b/src/sdk/models/errors/getondeck.ts index 72cd5a62..cb639b9c 100644 --- a/src/sdk/models/errors/getondeck.ts +++ b/src/sdk/models/errors/getondeck.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetOnDeckLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetOnDeckLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetOnDeckLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetOnDeckLibraryResponseBodyData; + + constructor(err: GetOnDeckLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetOnDeckLibraryResponseBody"; + } +} + export type GetOnDeckErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetOnDeckErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetOnDeckResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetOnDeckResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetOnDeckResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetOnDeckResponseBody extends Error { } } +/** @internal */ +export const GetOnDeckLibraryErrors$inboundSchema: z.ZodType< + GetOnDeckLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetOnDeckLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetOnDeckLibraryErrors$outboundSchema: z.ZodType< + GetOnDeckLibraryErrors$Outbound, + z.ZodTypeDef, + GetOnDeckLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetOnDeckLibraryErrors$ { + /** @deprecated use `GetOnDeckLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetOnDeckLibraryErrors$inboundSchema; + /** @deprecated use `GetOnDeckLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetOnDeckLibraryErrors$outboundSchema; + /** @deprecated use `GetOnDeckLibraryErrors$Outbound` instead. */ + export type Outbound = GetOnDeckLibraryErrors$Outbound; +} + +/** @internal */ +export const GetOnDeckLibraryResponseBody$inboundSchema: z.ZodType< + GetOnDeckLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetOnDeckLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetOnDeckLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetOnDeckLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetOnDeckLibraryResponseBody$outboundSchema: z.ZodType< + GetOnDeckLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetOnDeckLibraryResponseBody +> = z + .instanceof(GetOnDeckLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetOnDeckLibraryErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetOnDeckLibraryResponseBody$ { + /** @deprecated use `GetOnDeckLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetOnDeckLibraryResponseBody$inboundSchema; + /** @deprecated use `GetOnDeckLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetOnDeckLibraryResponseBody$outboundSchema; + /** @deprecated use `GetOnDeckLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetOnDeckLibraryResponseBody$Outbound; +} + /** @internal */ export const GetOnDeckErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetOnDeckErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetOnDeckErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getplaylist.ts b/src/sdk/models/errors/getplaylist.ts index 637aa7b5..0489983e 100644 --- a/src/sdk/models/errors/getplaylist.ts +++ b/src/sdk/models/errors/getplaylist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetPlaylistPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetPlaylistPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetPlaylistPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetPlaylistPlaylistsResponseBodyData; + + constructor(err: GetPlaylistPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetPlaylistPlaylistsResponseBody"; + } +} + export type GetPlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetPlaylistErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetPlaylistResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetPlaylistResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetPlaylistResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetPlaylistResponseBody extends Error { } } +/** @internal */ +export const GetPlaylistPlaylistsErrors$inboundSchema: z.ZodType< + GetPlaylistPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetPlaylistPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPlaylistPlaylistsErrors$outboundSchema: z.ZodType< + GetPlaylistPlaylistsErrors$Outbound, + z.ZodTypeDef, + GetPlaylistPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistPlaylistsErrors$ { + /** @deprecated use `GetPlaylistPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistPlaylistsErrors$inboundSchema; + /** @deprecated use `GetPlaylistPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistPlaylistsErrors$outboundSchema; + /** @deprecated use `GetPlaylistPlaylistsErrors$Outbound` instead. */ + export type Outbound = GetPlaylistPlaylistsErrors$Outbound; +} + +/** @internal */ +export const GetPlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< + GetPlaylistPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPlaylistPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPlaylistPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type GetPlaylistPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPlaylistPlaylistsResponseBody$outboundSchema: z.ZodType< + GetPlaylistPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + GetPlaylistPlaylistsResponseBody +> = z + .instanceof(GetPlaylistPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetPlaylistPlaylistsErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistPlaylistsResponseBody$ { + /** @deprecated use `GetPlaylistPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistPlaylistsResponseBody$inboundSchema; + /** @deprecated use `GetPlaylistPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistPlaylistsResponseBody$outboundSchema; + /** @deprecated use `GetPlaylistPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = GetPlaylistPlaylistsResponseBody$Outbound; +} + /** @internal */ export const GetPlaylistErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetPlaylistErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getplaylistcontents.ts b/src/sdk/models/errors/getplaylistcontents.ts index cb4a66a5..44dadcd7 100644 --- a/src/sdk/models/errors/getplaylistcontents.ts +++ b/src/sdk/models/errors/getplaylistcontents.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetPlaylistContentsPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetPlaylistContentsPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetPlaylistContentsPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetPlaylistContentsPlaylistsResponseBodyData; + + constructor(err: GetPlaylistContentsPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetPlaylistContentsPlaylistsResponseBody"; + } +} + export type GetPlaylistContentsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetPlaylistContentsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetPlaylistContentsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetPlaylistContentsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetPlaylistContentsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetPlaylistContentsResponseBody extends Error { } } +/** @internal */ +export const GetPlaylistContentsPlaylistsErrors$inboundSchema: z.ZodType< + GetPlaylistContentsPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetPlaylistContentsPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPlaylistContentsPlaylistsErrors$outboundSchema: z.ZodType< + GetPlaylistContentsPlaylistsErrors$Outbound, + z.ZodTypeDef, + GetPlaylistContentsPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistContentsPlaylistsErrors$ { + /** @deprecated use `GetPlaylistContentsPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistContentsPlaylistsErrors$inboundSchema; + /** @deprecated use `GetPlaylistContentsPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistContentsPlaylistsErrors$outboundSchema; + /** @deprecated use `GetPlaylistContentsPlaylistsErrors$Outbound` instead. */ + export type Outbound = GetPlaylistContentsPlaylistsErrors$Outbound; +} + +/** @internal */ +export const GetPlaylistContentsPlaylistsResponseBody$inboundSchema: z.ZodType< + GetPlaylistContentsPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPlaylistContentsPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPlaylistContentsPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type GetPlaylistContentsPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPlaylistContentsPlaylistsResponseBody$outboundSchema: z.ZodType< + GetPlaylistContentsPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + GetPlaylistContentsPlaylistsResponseBody +> = z + .instanceof(GetPlaylistContentsPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetPlaylistContentsPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistContentsPlaylistsResponseBody$ { + /** @deprecated use `GetPlaylistContentsPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistContentsPlaylistsResponseBody$inboundSchema; + /** @deprecated use `GetPlaylistContentsPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistContentsPlaylistsResponseBody$outboundSchema; + /** @deprecated use `GetPlaylistContentsPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = GetPlaylistContentsPlaylistsResponseBody$Outbound; +} + /** @internal */ export const GetPlaylistContentsErrors$inboundSchema: z.ZodType< GetPlaylistContentsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetPlaylistContentsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistContentsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getplaylists.ts b/src/sdk/models/errors/getplaylists.ts index ae20571c..dd18e586 100644 --- a/src/sdk/models/errors/getplaylists.ts +++ b/src/sdk/models/errors/getplaylists.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetPlaylistsPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetPlaylistsPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetPlaylistsPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetPlaylistsPlaylistsResponseBodyData; + + constructor(err: GetPlaylistsPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetPlaylistsPlaylistsResponseBody"; + } +} + export type GetPlaylistsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetPlaylistsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetPlaylistsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetPlaylistsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetPlaylistsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetPlaylistsResponseBody extends Error { } } +/** @internal */ +export const GetPlaylistsPlaylistsErrors$inboundSchema: z.ZodType< + GetPlaylistsPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetPlaylistsPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPlaylistsPlaylistsErrors$outboundSchema: z.ZodType< + GetPlaylistsPlaylistsErrors$Outbound, + z.ZodTypeDef, + GetPlaylistsPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistsPlaylistsErrors$ { + /** @deprecated use `GetPlaylistsPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistsPlaylistsErrors$inboundSchema; + /** @deprecated use `GetPlaylistsPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistsPlaylistsErrors$outboundSchema; + /** @deprecated use `GetPlaylistsPlaylistsErrors$Outbound` instead. */ + export type Outbound = GetPlaylistsPlaylistsErrors$Outbound; +} + +/** @internal */ +export const GetPlaylistsPlaylistsResponseBody$inboundSchema: z.ZodType< + GetPlaylistsPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPlaylistsPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPlaylistsPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type GetPlaylistsPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPlaylistsPlaylistsResponseBody$outboundSchema: z.ZodType< + GetPlaylistsPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + GetPlaylistsPlaylistsResponseBody +> = z + .instanceof(GetPlaylistsPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetPlaylistsPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistsPlaylistsResponseBody$ { + /** @deprecated use `GetPlaylistsPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistsPlaylistsResponseBody$inboundSchema; + /** @deprecated use `GetPlaylistsPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistsPlaylistsResponseBody$outboundSchema; + /** @deprecated use `GetPlaylistsPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = GetPlaylistsPlaylistsResponseBody$Outbound; +} + /** @internal */ export const GetPlaylistsErrors$inboundSchema: z.ZodType< GetPlaylistsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetPlaylistsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetPlaylistsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getrecentlyadded.ts b/src/sdk/models/errors/getrecentlyadded.ts index f4853894..db4a6ff2 100644 --- a/src/sdk/models/errors/getrecentlyadded.ts +++ b/src/sdk/models/errors/getrecentlyadded.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetRecentlyAddedLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetRecentlyAddedLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetRecentlyAddedLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetRecentlyAddedLibraryResponseBodyData; + + constructor(err: GetRecentlyAddedLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetRecentlyAddedLibraryResponseBody"; + } +} + export type GetRecentlyAddedErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetRecentlyAddedErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetRecentlyAddedResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetRecentlyAddedResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetRecentlyAddedResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetRecentlyAddedResponseBody extends Error { } } +/** @internal */ +export const GetRecentlyAddedLibraryErrors$inboundSchema: z.ZodType< + GetRecentlyAddedLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetRecentlyAddedLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetRecentlyAddedLibraryErrors$outboundSchema: z.ZodType< + GetRecentlyAddedLibraryErrors$Outbound, + z.ZodTypeDef, + GetRecentlyAddedLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRecentlyAddedLibraryErrors$ { + /** @deprecated use `GetRecentlyAddedLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetRecentlyAddedLibraryErrors$inboundSchema; + /** @deprecated use `GetRecentlyAddedLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetRecentlyAddedLibraryErrors$outboundSchema; + /** @deprecated use `GetRecentlyAddedLibraryErrors$Outbound` instead. */ + export type Outbound = GetRecentlyAddedLibraryErrors$Outbound; +} + +/** @internal */ +export const GetRecentlyAddedLibraryResponseBody$inboundSchema: z.ZodType< + GetRecentlyAddedLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetRecentlyAddedLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetRecentlyAddedLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetRecentlyAddedLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetRecentlyAddedLibraryResponseBody$outboundSchema: z.ZodType< + GetRecentlyAddedLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetRecentlyAddedLibraryResponseBody +> = z + .instanceof(GetRecentlyAddedLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetRecentlyAddedLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRecentlyAddedLibraryResponseBody$ { + /** @deprecated use `GetRecentlyAddedLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetRecentlyAddedLibraryResponseBody$inboundSchema; + /** @deprecated use `GetRecentlyAddedLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetRecentlyAddedLibraryResponseBody$outboundSchema; + /** @deprecated use `GetRecentlyAddedLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetRecentlyAddedLibraryResponseBody$Outbound; +} + /** @internal */ export const GetRecentlyAddedErrors$inboundSchema: z.ZodType< GetRecentlyAddedErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetRecentlyAddedErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetRecentlyAddedErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getrefreshlibrarymetadata.ts b/src/sdk/models/errors/getrefreshlibrarymetadata.ts index e2efbeae..b22b7574 100644 --- a/src/sdk/models/errors/getrefreshlibrarymetadata.ts +++ b/src/sdk/models/errors/getrefreshlibrarymetadata.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetRefreshLibraryMetadataLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetRefreshLibraryMetadataLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetRefreshLibraryMetadataLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetRefreshLibraryMetadataLibraryResponseBodyData; + + constructor(err: GetRefreshLibraryMetadataLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetRefreshLibraryMetadataLibraryResponseBody"; + } +} + export type GetRefreshLibraryMetadataErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetRefreshLibraryMetadataErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetRefreshLibraryMetadataResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetRefreshLibraryMetadataResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetRefreshLibraryMetadataResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class GetRefreshLibraryMetadataResponseBody extends Error { } } +/** @internal */ +export const GetRefreshLibraryMetadataLibraryErrors$inboundSchema: z.ZodType< + GetRefreshLibraryMetadataLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetRefreshLibraryMetadataLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetRefreshLibraryMetadataLibraryErrors$outboundSchema: z.ZodType< + GetRefreshLibraryMetadataLibraryErrors$Outbound, + z.ZodTypeDef, + GetRefreshLibraryMetadataLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRefreshLibraryMetadataLibraryErrors$ { + /** @deprecated use `GetRefreshLibraryMetadataLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetRefreshLibraryMetadataLibraryErrors$inboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetRefreshLibraryMetadataLibraryErrors$outboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataLibraryErrors$Outbound` instead. */ + export type Outbound = GetRefreshLibraryMetadataLibraryErrors$Outbound; +} + +/** @internal */ +export const GetRefreshLibraryMetadataLibraryResponseBody$inboundSchema: z.ZodType< + GetRefreshLibraryMetadataLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => GetRefreshLibraryMetadataLibraryErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetRefreshLibraryMetadataLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetRefreshLibraryMetadataLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetRefreshLibraryMetadataLibraryResponseBody$outboundSchema: z.ZodType< + GetRefreshLibraryMetadataLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetRefreshLibraryMetadataLibraryResponseBody +> = z + .instanceof(GetRefreshLibraryMetadataLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetRefreshLibraryMetadataLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRefreshLibraryMetadataLibraryResponseBody$ { + /** @deprecated use `GetRefreshLibraryMetadataLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetRefreshLibraryMetadataLibraryResponseBody$inboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetRefreshLibraryMetadataLibraryResponseBody$outboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetRefreshLibraryMetadataLibraryResponseBody$Outbound; +} + /** @internal */ export const GetRefreshLibraryMetadataErrors$inboundSchema: z.ZodType< GetRefreshLibraryMetadataErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const GetRefreshLibraryMetadataErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetRefreshLibraryMetadataErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getresizedphoto.ts b/src/sdk/models/errors/getresizedphoto.ts index 5934500e..bf4912eb 100644 --- a/src/sdk/models/errors/getresizedphoto.ts +++ b/src/sdk/models/errors/getresizedphoto.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetResizedPhotoServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetResizedPhotoServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetResizedPhotoServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetResizedPhotoServerResponseBodyData; + + constructor(err: GetResizedPhotoServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetResizedPhotoServerResponseBody"; + } +} + export type GetResizedPhotoErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetResizedPhotoErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetResizedPhotoResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetResizedPhotoResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetResizedPhotoResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetResizedPhotoResponseBody extends Error { } } +/** @internal */ +export const GetResizedPhotoServerErrors$inboundSchema: z.ZodType< + GetResizedPhotoServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetResizedPhotoServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetResizedPhotoServerErrors$outboundSchema: z.ZodType< + GetResizedPhotoServerErrors$Outbound, + z.ZodTypeDef, + GetResizedPhotoServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetResizedPhotoServerErrors$ { + /** @deprecated use `GetResizedPhotoServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetResizedPhotoServerErrors$inboundSchema; + /** @deprecated use `GetResizedPhotoServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetResizedPhotoServerErrors$outboundSchema; + /** @deprecated use `GetResizedPhotoServerErrors$Outbound` instead. */ + export type Outbound = GetResizedPhotoServerErrors$Outbound; +} + +/** @internal */ +export const GetResizedPhotoServerResponseBody$inboundSchema: z.ZodType< + GetResizedPhotoServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetResizedPhotoServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetResizedPhotoServerResponseBody(remapped); + }); + +/** @internal */ +export type GetResizedPhotoServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetResizedPhotoServerResponseBody$outboundSchema: z.ZodType< + GetResizedPhotoServerResponseBody$Outbound, + z.ZodTypeDef, + GetResizedPhotoServerResponseBody +> = z + .instanceof(GetResizedPhotoServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetResizedPhotoServerErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetResizedPhotoServerResponseBody$ { + /** @deprecated use `GetResizedPhotoServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetResizedPhotoServerResponseBody$inboundSchema; + /** @deprecated use `GetResizedPhotoServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetResizedPhotoServerResponseBody$outboundSchema; + /** @deprecated use `GetResizedPhotoServerResponseBody$Outbound` instead. */ + export type Outbound = GetResizedPhotoServerResponseBody$Outbound; +} + /** @internal */ export const GetResizedPhotoErrors$inboundSchema: z.ZodType< GetResizedPhotoErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetResizedPhotoErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetResizedPhotoErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getresourcesstatistics.ts b/src/sdk/models/errors/getresourcesstatistics.ts index a4aad6ed..71efaa26 100644 --- a/src/sdk/models/errors/getresourcesstatistics.ts +++ b/src/sdk/models/errors/getresourcesstatistics.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetResourcesStatisticsStatisticsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetResourcesStatisticsStatisticsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetResourcesStatisticsStatisticsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetResourcesStatisticsStatisticsResponseBodyData; + + constructor(err: GetResourcesStatisticsStatisticsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetResourcesStatisticsStatisticsResponseBody"; + } +} + export type GetResourcesStatisticsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetResourcesStatisticsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetResourcesStatisticsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetResourcesStatisticsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetResourcesStatisticsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class GetResourcesStatisticsResponseBody extends Error { } } +/** @internal */ +export const GetResourcesStatisticsStatisticsErrors$inboundSchema: z.ZodType< + GetResourcesStatisticsStatisticsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetResourcesStatisticsStatisticsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetResourcesStatisticsStatisticsErrors$outboundSchema: z.ZodType< + GetResourcesStatisticsStatisticsErrors$Outbound, + z.ZodTypeDef, + GetResourcesStatisticsStatisticsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetResourcesStatisticsStatisticsErrors$ { + /** @deprecated use `GetResourcesStatisticsStatisticsErrors$inboundSchema` instead. */ + export const inboundSchema = GetResourcesStatisticsStatisticsErrors$inboundSchema; + /** @deprecated use `GetResourcesStatisticsStatisticsErrors$outboundSchema` instead. */ + export const outboundSchema = GetResourcesStatisticsStatisticsErrors$outboundSchema; + /** @deprecated use `GetResourcesStatisticsStatisticsErrors$Outbound` instead. */ + export type Outbound = GetResourcesStatisticsStatisticsErrors$Outbound; +} + +/** @internal */ +export const GetResourcesStatisticsStatisticsResponseBody$inboundSchema: z.ZodType< + GetResourcesStatisticsStatisticsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => GetResourcesStatisticsStatisticsErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetResourcesStatisticsStatisticsResponseBody(remapped); + }); + +/** @internal */ +export type GetResourcesStatisticsStatisticsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetResourcesStatisticsStatisticsResponseBody$outboundSchema: z.ZodType< + GetResourcesStatisticsStatisticsResponseBody$Outbound, + z.ZodTypeDef, + GetResourcesStatisticsStatisticsResponseBody +> = z + .instanceof(GetResourcesStatisticsStatisticsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetResourcesStatisticsStatisticsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetResourcesStatisticsStatisticsResponseBody$ { + /** @deprecated use `GetResourcesStatisticsStatisticsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetResourcesStatisticsStatisticsResponseBody$inboundSchema; + /** @deprecated use `GetResourcesStatisticsStatisticsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetResourcesStatisticsStatisticsResponseBody$outboundSchema; + /** @deprecated use `GetResourcesStatisticsStatisticsResponseBody$Outbound` instead. */ + export type Outbound = GetResourcesStatisticsStatisticsResponseBody$Outbound; +} + /** @internal */ export const GetResourcesStatisticsErrors$inboundSchema: z.ZodType< GetResourcesStatisticsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const GetResourcesStatisticsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetResourcesStatisticsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getsearchlibrary.ts b/src/sdk/models/errors/getsearchlibrary.ts index c053f03b..444232a4 100644 --- a/src/sdk/models/errors/getsearchlibrary.ts +++ b/src/sdk/models/errors/getsearchlibrary.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetSearchLibraryLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetSearchLibraryLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetSearchLibraryLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetSearchLibraryLibraryResponseBodyData; + + constructor(err: GetSearchLibraryLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetSearchLibraryLibraryResponseBody"; + } +} + export type GetSearchLibraryErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetSearchLibraryErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetSearchLibraryResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetSearchLibraryResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetSearchLibraryResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetSearchLibraryResponseBody extends Error { } } +/** @internal */ +export const GetSearchLibraryLibraryErrors$inboundSchema: z.ZodType< + GetSearchLibraryLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetSearchLibraryLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSearchLibraryLibraryErrors$outboundSchema: z.ZodType< + GetSearchLibraryLibraryErrors$Outbound, + z.ZodTypeDef, + GetSearchLibraryLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSearchLibraryLibraryErrors$ { + /** @deprecated use `GetSearchLibraryLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetSearchLibraryLibraryErrors$inboundSchema; + /** @deprecated use `GetSearchLibraryLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetSearchLibraryLibraryErrors$outboundSchema; + /** @deprecated use `GetSearchLibraryLibraryErrors$Outbound` instead. */ + export type Outbound = GetSearchLibraryLibraryErrors$Outbound; +} + +/** @internal */ +export const GetSearchLibraryLibraryResponseBody$inboundSchema: z.ZodType< + GetSearchLibraryLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSearchLibraryLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSearchLibraryLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetSearchLibraryLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSearchLibraryLibraryResponseBody$outboundSchema: z.ZodType< + GetSearchLibraryLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetSearchLibraryLibraryResponseBody +> = z + .instanceof(GetSearchLibraryLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetSearchLibraryLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSearchLibraryLibraryResponseBody$ { + /** @deprecated use `GetSearchLibraryLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSearchLibraryLibraryResponseBody$inboundSchema; + /** @deprecated use `GetSearchLibraryLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSearchLibraryLibraryResponseBody$outboundSchema; + /** @deprecated use `GetSearchLibraryLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetSearchLibraryLibraryResponseBody$Outbound; +} + /** @internal */ export const GetSearchLibraryErrors$inboundSchema: z.ZodType< GetSearchLibraryErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetSearchLibraryErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetSearchLibraryErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getsearchresults.ts b/src/sdk/models/errors/getsearchresults.ts index 2f3fe606..57362d21 100644 --- a/src/sdk/models/errors/getsearchresults.ts +++ b/src/sdk/models/errors/getsearchresults.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetSearchResultsSearchErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetSearchResultsSearchResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetSearchResultsSearchResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetSearchResultsSearchResponseBodyData; + + constructor(err: GetSearchResultsSearchResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetSearchResultsSearchResponseBody"; + } +} + export type GetSearchResultsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetSearchResultsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetSearchResultsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetSearchResultsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetSearchResultsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetSearchResultsResponseBody extends Error { } } +/** @internal */ +export const GetSearchResultsSearchErrors$inboundSchema: z.ZodType< + GetSearchResultsSearchErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetSearchResultsSearchErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSearchResultsSearchErrors$outboundSchema: z.ZodType< + GetSearchResultsSearchErrors$Outbound, + z.ZodTypeDef, + GetSearchResultsSearchErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSearchResultsSearchErrors$ { + /** @deprecated use `GetSearchResultsSearchErrors$inboundSchema` instead. */ + export const inboundSchema = GetSearchResultsSearchErrors$inboundSchema; + /** @deprecated use `GetSearchResultsSearchErrors$outboundSchema` instead. */ + export const outboundSchema = GetSearchResultsSearchErrors$outboundSchema; + /** @deprecated use `GetSearchResultsSearchErrors$Outbound` instead. */ + export type Outbound = GetSearchResultsSearchErrors$Outbound; +} + +/** @internal */ +export const GetSearchResultsSearchResponseBody$inboundSchema: z.ZodType< + GetSearchResultsSearchResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSearchResultsSearchErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSearchResultsSearchResponseBody(remapped); + }); + +/** @internal */ +export type GetSearchResultsSearchResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSearchResultsSearchResponseBody$outboundSchema: z.ZodType< + GetSearchResultsSearchResponseBody$Outbound, + z.ZodTypeDef, + GetSearchResultsSearchResponseBody +> = z + .instanceof(GetSearchResultsSearchResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetSearchResultsSearchErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSearchResultsSearchResponseBody$ { + /** @deprecated use `GetSearchResultsSearchResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSearchResultsSearchResponseBody$inboundSchema; + /** @deprecated use `GetSearchResultsSearchResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSearchResultsSearchResponseBody$outboundSchema; + /** @deprecated use `GetSearchResultsSearchResponseBody$Outbound` instead. */ + export type Outbound = GetSearchResultsSearchResponseBody$Outbound; +} + /** @internal */ export const GetSearchResultsErrors$inboundSchema: z.ZodType< GetSearchResultsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetSearchResultsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetSearchResultsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getserveractivities.ts b/src/sdk/models/errors/getserveractivities.ts index 32a82c77..d90c4fab 100644 --- a/src/sdk/models/errors/getserveractivities.ts +++ b/src/sdk/models/errors/getserveractivities.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetServerActivitiesActivitiesErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetServerActivitiesActivitiesResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetServerActivitiesActivitiesResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetServerActivitiesActivitiesResponseBodyData; + + constructor(err: GetServerActivitiesActivitiesResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetServerActivitiesActivitiesResponseBody"; + } +} + export type GetServerActivitiesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetServerActivitiesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetServerActivitiesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetServerActivitiesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetServerActivitiesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetServerActivitiesResponseBody extends Error { } } +/** @internal */ +export const GetServerActivitiesActivitiesErrors$inboundSchema: z.ZodType< + GetServerActivitiesActivitiesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetServerActivitiesActivitiesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerActivitiesActivitiesErrors$outboundSchema: z.ZodType< + GetServerActivitiesActivitiesErrors$Outbound, + z.ZodTypeDef, + GetServerActivitiesActivitiesErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerActivitiesActivitiesErrors$ { + /** @deprecated use `GetServerActivitiesActivitiesErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerActivitiesActivitiesErrors$inboundSchema; + /** @deprecated use `GetServerActivitiesActivitiesErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerActivitiesActivitiesErrors$outboundSchema; + /** @deprecated use `GetServerActivitiesActivitiesErrors$Outbound` instead. */ + export type Outbound = GetServerActivitiesActivitiesErrors$Outbound; +} + +/** @internal */ +export const GetServerActivitiesActivitiesResponseBody$inboundSchema: z.ZodType< + GetServerActivitiesActivitiesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerActivitiesActivitiesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerActivitiesActivitiesResponseBody(remapped); + }); + +/** @internal */ +export type GetServerActivitiesActivitiesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerActivitiesActivitiesResponseBody$outboundSchema: z.ZodType< + GetServerActivitiesActivitiesResponseBody$Outbound, + z.ZodTypeDef, + GetServerActivitiesActivitiesResponseBody +> = z + .instanceof(GetServerActivitiesActivitiesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetServerActivitiesActivitiesErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerActivitiesActivitiesResponseBody$ { + /** @deprecated use `GetServerActivitiesActivitiesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerActivitiesActivitiesResponseBody$inboundSchema; + /** @deprecated use `GetServerActivitiesActivitiesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerActivitiesActivitiesResponseBody$outboundSchema; + /** @deprecated use `GetServerActivitiesActivitiesResponseBody$Outbound` instead. */ + export type Outbound = GetServerActivitiesActivitiesResponseBody$Outbound; +} + /** @internal */ export const GetServerActivitiesErrors$inboundSchema: z.ZodType< GetServerActivitiesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetServerActivitiesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetServerActivitiesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getservercapabilities.ts b/src/sdk/models/errors/getservercapabilities.ts index 5afa2f5a..32bdc746 100644 --- a/src/sdk/models/errors/getservercapabilities.ts +++ b/src/sdk/models/errors/getservercapabilities.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetServerCapabilitiesErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetServerCapabilitiesServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetServerCapabilitiesServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetServerCapabilitiesServerResponseBodyData; + + constructor(err: GetServerCapabilitiesServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetServerCapabilitiesServerResponseBody"; + } +} + export type Errors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type Errors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetServerCapabilitiesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetServerCapabilitiesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetServerCapabilitiesResponseBody extends Error { errors?: Array | undefined; @@ -55,10 +104,117 @@ export class GetServerCapabilitiesResponseBody extends Error { } /** @internal */ -export const Errors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), +export const GetServerCapabilitiesErrors$inboundSchema: z.ZodType< + GetServerCapabilitiesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetServerCapabilitiesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerCapabilitiesErrors$outboundSchema: z.ZodType< + GetServerCapabilitiesErrors$Outbound, + z.ZodTypeDef, + GetServerCapabilitiesErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerCapabilitiesErrors$ { + /** @deprecated use `GetServerCapabilitiesErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerCapabilitiesErrors$inboundSchema; + /** @deprecated use `GetServerCapabilitiesErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerCapabilitiesErrors$outboundSchema; + /** @deprecated use `GetServerCapabilitiesErrors$Outbound` instead. */ + export type Outbound = GetServerCapabilitiesErrors$Outbound; +} + +/** @internal */ +export const GetServerCapabilitiesServerResponseBody$inboundSchema: z.ZodType< + GetServerCapabilitiesServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerCapabilitiesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerCapabilitiesServerResponseBody(remapped); + }); + +/** @internal */ +export type GetServerCapabilitiesServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerCapabilitiesServerResponseBody$outboundSchema: z.ZodType< + GetServerCapabilitiesServerResponseBody$Outbound, + z.ZodTypeDef, + GetServerCapabilitiesServerResponseBody +> = z + .instanceof(GetServerCapabilitiesServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetServerCapabilitiesErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerCapabilitiesServerResponseBody$ { + /** @deprecated use `GetServerCapabilitiesServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerCapabilitiesServerResponseBody$inboundSchema; + /** @deprecated use `GetServerCapabilitiesServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerCapabilitiesServerResponseBody$outboundSchema; + /** @deprecated use `GetServerCapabilitiesServerResponseBody$Outbound` instead. */ + export type Outbound = GetServerCapabilitiesServerResponseBody$Outbound; +} + +/** @internal */ +export const Errors$inboundSchema: z.ZodType = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -70,9 +226,9 @@ export type Errors$Outbound = { /** @internal */ export const Errors$outboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getserveridentity.ts b/src/sdk/models/errors/getserveridentity.ts index 470264f6..82c3846b 100644 --- a/src/sdk/models/errors/getserveridentity.ts +++ b/src/sdk/models/errors/getserveridentity.ts @@ -31,10 +31,7 @@ export class GetServerIdentityResponseBody extends Error { data$: GetServerIdentityResponseBodyData; constructor(err: GetServerIdentityResponseBodyData) { - const message = - "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; + const message = err.message || "API error occurred"; super(message); this.data$ = err; diff --git a/src/sdk/models/errors/getserverlist.ts b/src/sdk/models/errors/getserverlist.ts index 605c8872..2a768a1b 100644 --- a/src/sdk/models/errors/getserverlist.ts +++ b/src/sdk/models/errors/getserverlist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetServerListServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetServerListServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetServerListServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetServerListServerResponseBodyData; + + constructor(err: GetServerListServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetServerListServerResponseBody"; + } +} + export type GetServerListErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetServerListErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetServerListResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetServerListResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetServerListResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetServerListResponseBody extends Error { } } +/** @internal */ +export const GetServerListServerErrors$inboundSchema: z.ZodType< + GetServerListServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetServerListServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerListServerErrors$outboundSchema: z.ZodType< + GetServerListServerErrors$Outbound, + z.ZodTypeDef, + GetServerListServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerListServerErrors$ { + /** @deprecated use `GetServerListServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerListServerErrors$inboundSchema; + /** @deprecated use `GetServerListServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerListServerErrors$outboundSchema; + /** @deprecated use `GetServerListServerErrors$Outbound` instead. */ + export type Outbound = GetServerListServerErrors$Outbound; +} + +/** @internal */ +export const GetServerListServerResponseBody$inboundSchema: z.ZodType< + GetServerListServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerListServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerListServerResponseBody(remapped); + }); + +/** @internal */ +export type GetServerListServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerListServerResponseBody$outboundSchema: z.ZodType< + GetServerListServerResponseBody$Outbound, + z.ZodTypeDef, + GetServerListServerResponseBody +> = z + .instanceof(GetServerListServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetServerListServerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerListServerResponseBody$ { + /** @deprecated use `GetServerListServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerListServerResponseBody$inboundSchema; + /** @deprecated use `GetServerListServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerListServerResponseBody$outboundSchema; + /** @deprecated use `GetServerListServerResponseBody$Outbound` instead. */ + export type Outbound = GetServerListServerResponseBody$Outbound; +} + /** @internal */ export const GetServerListErrors$inboundSchema: z.ZodType< GetServerListErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetServerListErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetServerListErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getserverpreferences.ts b/src/sdk/models/errors/getserverpreferences.ts index 99ac3a17..0df1033b 100644 --- a/src/sdk/models/errors/getserverpreferences.ts +++ b/src/sdk/models/errors/getserverpreferences.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetServerPreferencesServerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetServerPreferencesServerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetServerPreferencesServerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetServerPreferencesServerResponseBodyData; + + constructor(err: GetServerPreferencesServerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetServerPreferencesServerResponseBody"; + } +} + export type GetServerPreferencesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetServerPreferencesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetServerPreferencesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetServerPreferencesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetServerPreferencesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetServerPreferencesResponseBody extends Error { } } +/** @internal */ +export const GetServerPreferencesServerErrors$inboundSchema: z.ZodType< + GetServerPreferencesServerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetServerPreferencesServerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerPreferencesServerErrors$outboundSchema: z.ZodType< + GetServerPreferencesServerErrors$Outbound, + z.ZodTypeDef, + GetServerPreferencesServerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerPreferencesServerErrors$ { + /** @deprecated use `GetServerPreferencesServerErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerPreferencesServerErrors$inboundSchema; + /** @deprecated use `GetServerPreferencesServerErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerPreferencesServerErrors$outboundSchema; + /** @deprecated use `GetServerPreferencesServerErrors$Outbound` instead. */ + export type Outbound = GetServerPreferencesServerErrors$Outbound; +} + +/** @internal */ +export const GetServerPreferencesServerResponseBody$inboundSchema: z.ZodType< + GetServerPreferencesServerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerPreferencesServerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerPreferencesServerResponseBody(remapped); + }); + +/** @internal */ +export type GetServerPreferencesServerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerPreferencesServerResponseBody$outboundSchema: z.ZodType< + GetServerPreferencesServerResponseBody$Outbound, + z.ZodTypeDef, + GetServerPreferencesServerResponseBody +> = z + .instanceof(GetServerPreferencesServerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetServerPreferencesServerErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerPreferencesServerResponseBody$ { + /** @deprecated use `GetServerPreferencesServerResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerPreferencesServerResponseBody$inboundSchema; + /** @deprecated use `GetServerPreferencesServerResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerPreferencesServerResponseBody$outboundSchema; + /** @deprecated use `GetServerPreferencesServerResponseBody$Outbound` instead. */ + export type Outbound = GetServerPreferencesServerResponseBody$Outbound; +} + /** @internal */ export const GetServerPreferencesErrors$inboundSchema: z.ZodType< GetServerPreferencesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetServerPreferencesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetServerPreferencesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getserverresources.ts b/src/sdk/models/errors/getserverresources.ts index 42d906b7..d6c2fd7b 100644 --- a/src/sdk/models/errors/getserverresources.ts +++ b/src/sdk/models/errors/getserverresources.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetServerResourcesPlexErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetServerResourcesPlexResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetServerResourcesPlexResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetServerResourcesPlexResponseBodyData; + + constructor(err: GetServerResourcesPlexResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetServerResourcesPlexResponseBody"; + } +} + export type GetServerResourcesErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetServerResourcesErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetServerResourcesResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetServerResourcesResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetServerResourcesResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetServerResourcesResponseBody extends Error { } } +/** @internal */ +export const GetServerResourcesPlexErrors$inboundSchema: z.ZodType< + GetServerResourcesPlexErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetServerResourcesPlexErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerResourcesPlexErrors$outboundSchema: z.ZodType< + GetServerResourcesPlexErrors$Outbound, + z.ZodTypeDef, + GetServerResourcesPlexErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerResourcesPlexErrors$ { + /** @deprecated use `GetServerResourcesPlexErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerResourcesPlexErrors$inboundSchema; + /** @deprecated use `GetServerResourcesPlexErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerResourcesPlexErrors$outboundSchema; + /** @deprecated use `GetServerResourcesPlexErrors$Outbound` instead. */ + export type Outbound = GetServerResourcesPlexErrors$Outbound; +} + +/** @internal */ +export const GetServerResourcesPlexResponseBody$inboundSchema: z.ZodType< + GetServerResourcesPlexResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerResourcesPlexErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerResourcesPlexResponseBody(remapped); + }); + +/** @internal */ +export type GetServerResourcesPlexResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerResourcesPlexResponseBody$outboundSchema: z.ZodType< + GetServerResourcesPlexResponseBody$Outbound, + z.ZodTypeDef, + GetServerResourcesPlexResponseBody +> = z + .instanceof(GetServerResourcesPlexResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetServerResourcesPlexErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerResourcesPlexResponseBody$ { + /** @deprecated use `GetServerResourcesPlexResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerResourcesPlexResponseBody$inboundSchema; + /** @deprecated use `GetServerResourcesPlexResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerResourcesPlexResponseBody$outboundSchema; + /** @deprecated use `GetServerResourcesPlexResponseBody$Outbound` instead. */ + export type Outbound = GetServerResourcesPlexResponseBody$Outbound; +} + /** @internal */ export const GetServerResourcesErrors$inboundSchema: z.ZodType< GetServerResourcesErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetServerResourcesErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetServerResourcesErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getsessionhistory.ts b/src/sdk/models/errors/getsessionhistory.ts index 69e7527d..5f8a9824 100644 --- a/src/sdk/models/errors/getsessionhistory.ts +++ b/src/sdk/models/errors/getsessionhistory.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetSessionHistorySessionsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetSessionHistorySessionsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetSessionHistorySessionsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetSessionHistorySessionsResponseBodyData; + + constructor(err: GetSessionHistorySessionsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetSessionHistorySessionsResponseBody"; + } +} + export type GetSessionHistoryErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetSessionHistoryErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetSessionHistoryResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetSessionHistoryResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetSessionHistoryResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetSessionHistoryResponseBody extends Error { } } +/** @internal */ +export const GetSessionHistorySessionsErrors$inboundSchema: z.ZodType< + GetSessionHistorySessionsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetSessionHistorySessionsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSessionHistorySessionsErrors$outboundSchema: z.ZodType< + GetSessionHistorySessionsErrors$Outbound, + z.ZodTypeDef, + GetSessionHistorySessionsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSessionHistorySessionsErrors$ { + /** @deprecated use `GetSessionHistorySessionsErrors$inboundSchema` instead. */ + export const inboundSchema = GetSessionHistorySessionsErrors$inboundSchema; + /** @deprecated use `GetSessionHistorySessionsErrors$outboundSchema` instead. */ + export const outboundSchema = GetSessionHistorySessionsErrors$outboundSchema; + /** @deprecated use `GetSessionHistorySessionsErrors$Outbound` instead. */ + export type Outbound = GetSessionHistorySessionsErrors$Outbound; +} + +/** @internal */ +export const GetSessionHistorySessionsResponseBody$inboundSchema: z.ZodType< + GetSessionHistorySessionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSessionHistorySessionsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSessionHistorySessionsResponseBody(remapped); + }); + +/** @internal */ +export type GetSessionHistorySessionsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSessionHistorySessionsResponseBody$outboundSchema: z.ZodType< + GetSessionHistorySessionsResponseBody$Outbound, + z.ZodTypeDef, + GetSessionHistorySessionsResponseBody +> = z + .instanceof(GetSessionHistorySessionsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetSessionHistorySessionsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSessionHistorySessionsResponseBody$ { + /** @deprecated use `GetSessionHistorySessionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSessionHistorySessionsResponseBody$inboundSchema; + /** @deprecated use `GetSessionHistorySessionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSessionHistorySessionsResponseBody$outboundSchema; + /** @deprecated use `GetSessionHistorySessionsResponseBody$Outbound` instead. */ + export type Outbound = GetSessionHistorySessionsResponseBody$Outbound; +} + /** @internal */ export const GetSessionHistoryErrors$inboundSchema: z.ZodType< GetSessionHistoryErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetSessionHistoryErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetSessionHistoryErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getsessions.ts b/src/sdk/models/errors/getsessions.ts index 9b766019..6d63f26b 100644 --- a/src/sdk/models/errors/getsessions.ts +++ b/src/sdk/models/errors/getsessions.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetSessionsSessionsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetSessionsSessionsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetSessionsSessionsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetSessionsSessionsResponseBodyData; + + constructor(err: GetSessionsSessionsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetSessionsSessionsResponseBody"; + } +} + export type GetSessionsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetSessionsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetSessionsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetSessionsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetSessionsResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetSessionsResponseBody extends Error { } } +/** @internal */ +export const GetSessionsSessionsErrors$inboundSchema: z.ZodType< + GetSessionsSessionsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetSessionsSessionsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSessionsSessionsErrors$outboundSchema: z.ZodType< + GetSessionsSessionsErrors$Outbound, + z.ZodTypeDef, + GetSessionsSessionsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSessionsSessionsErrors$ { + /** @deprecated use `GetSessionsSessionsErrors$inboundSchema` instead. */ + export const inboundSchema = GetSessionsSessionsErrors$inboundSchema; + /** @deprecated use `GetSessionsSessionsErrors$outboundSchema` instead. */ + export const outboundSchema = GetSessionsSessionsErrors$outboundSchema; + /** @deprecated use `GetSessionsSessionsErrors$Outbound` instead. */ + export type Outbound = GetSessionsSessionsErrors$Outbound; +} + +/** @internal */ +export const GetSessionsSessionsResponseBody$inboundSchema: z.ZodType< + GetSessionsSessionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSessionsSessionsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSessionsSessionsResponseBody(remapped); + }); + +/** @internal */ +export type GetSessionsSessionsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSessionsSessionsResponseBody$outboundSchema: z.ZodType< + GetSessionsSessionsResponseBody$Outbound, + z.ZodTypeDef, + GetSessionsSessionsResponseBody +> = z + .instanceof(GetSessionsSessionsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetSessionsSessionsErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSessionsSessionsResponseBody$ { + /** @deprecated use `GetSessionsSessionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSessionsSessionsResponseBody$inboundSchema; + /** @deprecated use `GetSessionsSessionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSessionsSessionsResponseBody$outboundSchema; + /** @deprecated use `GetSessionsSessionsResponseBody$Outbound` instead. */ + export type Outbound = GetSessionsSessionsResponseBody$Outbound; +} + /** @internal */ export const GetSessionsErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetSessionsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetSessionsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getsourceconnectioninformation.ts b/src/sdk/models/errors/getsourceconnectioninformation.ts index 608f2206..6fea7ae3 100644 --- a/src/sdk/models/errors/getsourceconnectioninformation.ts +++ b/src/sdk/models/errors/getsourceconnectioninformation.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetSourceConnectionInformationAuthenticationErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetSourceConnectionInformationAuthenticationResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetSourceConnectionInformationAuthenticationResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetSourceConnectionInformationAuthenticationResponseBodyData; + + constructor(err: GetSourceConnectionInformationAuthenticationResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetSourceConnectionInformationAuthenticationResponseBody"; + } +} + export type GetSourceConnectionInformationErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetSourceConnectionInformationErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetSourceConnectionInformationResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetSourceConnectionInformationResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetSourceConnectionInformationResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,130 @@ export class GetSourceConnectionInformationResponseBody extends Error { } } +/** @internal */ +export const GetSourceConnectionInformationAuthenticationErrors$inboundSchema: z.ZodType< + GetSourceConnectionInformationAuthenticationErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetSourceConnectionInformationAuthenticationErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSourceConnectionInformationAuthenticationErrors$outboundSchema: z.ZodType< + GetSourceConnectionInformationAuthenticationErrors$Outbound, + z.ZodTypeDef, + GetSourceConnectionInformationAuthenticationErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSourceConnectionInformationAuthenticationErrors$ { + /** @deprecated use `GetSourceConnectionInformationAuthenticationErrors$inboundSchema` instead. */ + export const inboundSchema = GetSourceConnectionInformationAuthenticationErrors$inboundSchema; + /** @deprecated use `GetSourceConnectionInformationAuthenticationErrors$outboundSchema` instead. */ + export const outboundSchema = GetSourceConnectionInformationAuthenticationErrors$outboundSchema; + /** @deprecated use `GetSourceConnectionInformationAuthenticationErrors$Outbound` instead. */ + export type Outbound = GetSourceConnectionInformationAuthenticationErrors$Outbound; +} + +/** @internal */ +export const GetSourceConnectionInformationAuthenticationResponseBody$inboundSchema: z.ZodType< + GetSourceConnectionInformationAuthenticationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => GetSourceConnectionInformationAuthenticationErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSourceConnectionInformationAuthenticationResponseBody(remapped); + }); + +/** @internal */ +export type GetSourceConnectionInformationAuthenticationResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSourceConnectionInformationAuthenticationResponseBody$outboundSchema: z.ZodType< + GetSourceConnectionInformationAuthenticationResponseBody$Outbound, + z.ZodTypeDef, + GetSourceConnectionInformationAuthenticationResponseBody +> = z + .instanceof(GetSourceConnectionInformationAuthenticationResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array( + z.lazy( + () => GetSourceConnectionInformationAuthenticationErrors$outboundSchema + ) + ) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSourceConnectionInformationAuthenticationResponseBody$ { + /** @deprecated use `GetSourceConnectionInformationAuthenticationResponseBody$inboundSchema` instead. */ + export const inboundSchema = + GetSourceConnectionInformationAuthenticationResponseBody$inboundSchema; + /** @deprecated use `GetSourceConnectionInformationAuthenticationResponseBody$outboundSchema` instead. */ + export const outboundSchema = + GetSourceConnectionInformationAuthenticationResponseBody$outboundSchema; + /** @deprecated use `GetSourceConnectionInformationAuthenticationResponseBody$Outbound` instead. */ + export type Outbound = GetSourceConnectionInformationAuthenticationResponseBody$Outbound; +} + /** @internal */ export const GetSourceConnectionInformationErrors$inboundSchema: z.ZodType< GetSourceConnectionInformationErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +242,9 @@ export const GetSourceConnectionInformationErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetSourceConnectionInformationErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getstatistics.ts b/src/sdk/models/errors/getstatistics.ts index e880a9da..1fc4eddf 100644 --- a/src/sdk/models/errors/getstatistics.ts +++ b/src/sdk/models/errors/getstatistics.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetStatisticsStatisticsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetStatisticsStatisticsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetStatisticsStatisticsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetStatisticsStatisticsResponseBodyData; + + constructor(err: GetStatisticsStatisticsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetStatisticsStatisticsResponseBody"; + } +} + export type GetStatisticsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetStatisticsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetStatisticsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetStatisticsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetStatisticsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetStatisticsResponseBody extends Error { } } +/** @internal */ +export const GetStatisticsStatisticsErrors$inboundSchema: z.ZodType< + GetStatisticsStatisticsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetStatisticsStatisticsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetStatisticsStatisticsErrors$outboundSchema: z.ZodType< + GetStatisticsStatisticsErrors$Outbound, + z.ZodTypeDef, + GetStatisticsStatisticsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetStatisticsStatisticsErrors$ { + /** @deprecated use `GetStatisticsStatisticsErrors$inboundSchema` instead. */ + export const inboundSchema = GetStatisticsStatisticsErrors$inboundSchema; + /** @deprecated use `GetStatisticsStatisticsErrors$outboundSchema` instead. */ + export const outboundSchema = GetStatisticsStatisticsErrors$outboundSchema; + /** @deprecated use `GetStatisticsStatisticsErrors$Outbound` instead. */ + export type Outbound = GetStatisticsStatisticsErrors$Outbound; +} + +/** @internal */ +export const GetStatisticsStatisticsResponseBody$inboundSchema: z.ZodType< + GetStatisticsStatisticsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetStatisticsStatisticsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetStatisticsStatisticsResponseBody(remapped); + }); + +/** @internal */ +export type GetStatisticsStatisticsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetStatisticsStatisticsResponseBody$outboundSchema: z.ZodType< + GetStatisticsStatisticsResponseBody$Outbound, + z.ZodTypeDef, + GetStatisticsStatisticsResponseBody +> = z + .instanceof(GetStatisticsStatisticsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetStatisticsStatisticsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetStatisticsStatisticsResponseBody$ { + /** @deprecated use `GetStatisticsStatisticsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetStatisticsStatisticsResponseBody$inboundSchema; + /** @deprecated use `GetStatisticsStatisticsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetStatisticsStatisticsResponseBody$outboundSchema; + /** @deprecated use `GetStatisticsStatisticsResponseBody$Outbound` instead. */ + export type Outbound = GetStatisticsStatisticsResponseBody$Outbound; +} + /** @internal */ export const GetStatisticsErrors$inboundSchema: z.ZodType< GetStatisticsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetStatisticsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetStatisticsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getthumbimage.ts b/src/sdk/models/errors/getthumbimage.ts index 0d185be9..80c2263d 100644 --- a/src/sdk/models/errors/getthumbimage.ts +++ b/src/sdk/models/errors/getthumbimage.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetThumbImageMediaErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetThumbImageMediaResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetThumbImageMediaResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetThumbImageMediaResponseBodyData; + + constructor(err: GetThumbImageMediaResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetThumbImageMediaResponseBody"; + } +} + export type GetThumbImageErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetThumbImageErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetThumbImageResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetThumbImageResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetThumbImageResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetThumbImageResponseBody extends Error { } } +/** @internal */ +export const GetThumbImageMediaErrors$inboundSchema: z.ZodType< + GetThumbImageMediaErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetThumbImageMediaErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetThumbImageMediaErrors$outboundSchema: z.ZodType< + GetThumbImageMediaErrors$Outbound, + z.ZodTypeDef, + GetThumbImageMediaErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetThumbImageMediaErrors$ { + /** @deprecated use `GetThumbImageMediaErrors$inboundSchema` instead. */ + export const inboundSchema = GetThumbImageMediaErrors$inboundSchema; + /** @deprecated use `GetThumbImageMediaErrors$outboundSchema` instead. */ + export const outboundSchema = GetThumbImageMediaErrors$outboundSchema; + /** @deprecated use `GetThumbImageMediaErrors$Outbound` instead. */ + export type Outbound = GetThumbImageMediaErrors$Outbound; +} + +/** @internal */ +export const GetThumbImageMediaResponseBody$inboundSchema: z.ZodType< + GetThumbImageMediaResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetThumbImageMediaErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetThumbImageMediaResponseBody(remapped); + }); + +/** @internal */ +export type GetThumbImageMediaResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetThumbImageMediaResponseBody$outboundSchema: z.ZodType< + GetThumbImageMediaResponseBody$Outbound, + z.ZodTypeDef, + GetThumbImageMediaResponseBody +> = z + .instanceof(GetThumbImageMediaResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetThumbImageMediaErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetThumbImageMediaResponseBody$ { + /** @deprecated use `GetThumbImageMediaResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetThumbImageMediaResponseBody$inboundSchema; + /** @deprecated use `GetThumbImageMediaResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetThumbImageMediaResponseBody$outboundSchema; + /** @deprecated use `GetThumbImageMediaResponseBody$Outbound` instead. */ + export type Outbound = GetThumbImageMediaResponseBody$Outbound; +} + /** @internal */ export const GetThumbImageErrors$inboundSchema: z.ZodType< GetThumbImageErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetThumbImageErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetThumbImageErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/gettimeline.ts b/src/sdk/models/errors/gettimeline.ts index 830de407..5234cd50 100644 --- a/src/sdk/models/errors/gettimeline.ts +++ b/src/sdk/models/errors/gettimeline.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetTimelineVideoErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetTimelineVideoResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetTimelineVideoResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetTimelineVideoResponseBodyData; + + constructor(err: GetTimelineVideoResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetTimelineVideoResponseBody"; + } +} + export type GetTimelineErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetTimelineErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetTimelineResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetTimelineResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetTimelineResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class GetTimelineResponseBody extends Error { } } +/** @internal */ +export const GetTimelineVideoErrors$inboundSchema: z.ZodType< + GetTimelineVideoErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetTimelineVideoErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTimelineVideoErrors$outboundSchema: z.ZodType< + GetTimelineVideoErrors$Outbound, + z.ZodTypeDef, + GetTimelineVideoErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTimelineVideoErrors$ { + /** @deprecated use `GetTimelineVideoErrors$inboundSchema` instead. */ + export const inboundSchema = GetTimelineVideoErrors$inboundSchema; + /** @deprecated use `GetTimelineVideoErrors$outboundSchema` instead. */ + export const outboundSchema = GetTimelineVideoErrors$outboundSchema; + /** @deprecated use `GetTimelineVideoErrors$Outbound` instead. */ + export type Outbound = GetTimelineVideoErrors$Outbound; +} + +/** @internal */ +export const GetTimelineVideoResponseBody$inboundSchema: z.ZodType< + GetTimelineVideoResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTimelineVideoErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTimelineVideoResponseBody(remapped); + }); + +/** @internal */ +export type GetTimelineVideoResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTimelineVideoResponseBody$outboundSchema: z.ZodType< + GetTimelineVideoResponseBody$Outbound, + z.ZodTypeDef, + GetTimelineVideoResponseBody +> = z + .instanceof(GetTimelineVideoResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTimelineVideoErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTimelineVideoResponseBody$ { + /** @deprecated use `GetTimelineVideoResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTimelineVideoResponseBody$inboundSchema; + /** @deprecated use `GetTimelineVideoResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTimelineVideoResponseBody$outboundSchema; + /** @deprecated use `GetTimelineVideoResponseBody$Outbound` instead. */ + export type Outbound = GetTimelineVideoResponseBody$Outbound; +} + /** @internal */ export const GetTimelineErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const GetTimelineErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetTimelineErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/gettopwatchedcontent.ts b/src/sdk/models/errors/gettopwatchedcontent.ts index 68fb47ff..e60b54dd 100644 --- a/src/sdk/models/errors/gettopwatchedcontent.ts +++ b/src/sdk/models/errors/gettopwatchedcontent.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetTopWatchedContentLibraryErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetTopWatchedContentLibraryResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetTopWatchedContentLibraryResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetTopWatchedContentLibraryResponseBodyData; + + constructor(err: GetTopWatchedContentLibraryResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetTopWatchedContentLibraryResponseBody"; + } +} + export type GetTopWatchedContentErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetTopWatchedContentErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetTopWatchedContentResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetTopWatchedContentResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetTopWatchedContentResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetTopWatchedContentResponseBody extends Error { } } +/** @internal */ +export const GetTopWatchedContentLibraryErrors$inboundSchema: z.ZodType< + GetTopWatchedContentLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetTopWatchedContentLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTopWatchedContentLibraryErrors$outboundSchema: z.ZodType< + GetTopWatchedContentLibraryErrors$Outbound, + z.ZodTypeDef, + GetTopWatchedContentLibraryErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTopWatchedContentLibraryErrors$ { + /** @deprecated use `GetTopWatchedContentLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetTopWatchedContentLibraryErrors$inboundSchema; + /** @deprecated use `GetTopWatchedContentLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetTopWatchedContentLibraryErrors$outboundSchema; + /** @deprecated use `GetTopWatchedContentLibraryErrors$Outbound` instead. */ + export type Outbound = GetTopWatchedContentLibraryErrors$Outbound; +} + +/** @internal */ +export const GetTopWatchedContentLibraryResponseBody$inboundSchema: z.ZodType< + GetTopWatchedContentLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTopWatchedContentLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTopWatchedContentLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetTopWatchedContentLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTopWatchedContentLibraryResponseBody$outboundSchema: z.ZodType< + GetTopWatchedContentLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetTopWatchedContentLibraryResponseBody +> = z + .instanceof(GetTopWatchedContentLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetTopWatchedContentLibraryErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTopWatchedContentLibraryResponseBody$ { + /** @deprecated use `GetTopWatchedContentLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTopWatchedContentLibraryResponseBody$inboundSchema; + /** @deprecated use `GetTopWatchedContentLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTopWatchedContentLibraryResponseBody$outboundSchema; + /** @deprecated use `GetTopWatchedContentLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetTopWatchedContentLibraryResponseBody$Outbound; +} + /** @internal */ export const GetTopWatchedContentErrors$inboundSchema: z.ZodType< GetTopWatchedContentErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetTopWatchedContentErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetTopWatchedContentErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/gettranscodesessions.ts b/src/sdk/models/errors/gettranscodesessions.ts index 7f471aad..b22e7a98 100644 --- a/src/sdk/models/errors/gettranscodesessions.ts +++ b/src/sdk/models/errors/gettranscodesessions.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetTranscodeSessionsSessionsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetTranscodeSessionsSessionsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetTranscodeSessionsSessionsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetTranscodeSessionsSessionsResponseBodyData; + + constructor(err: GetTranscodeSessionsSessionsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetTranscodeSessionsSessionsResponseBody"; + } +} + export type GetTranscodeSessionsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetTranscodeSessionsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetTranscodeSessionsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetTranscodeSessionsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetTranscodeSessionsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetTranscodeSessionsResponseBody extends Error { } } +/** @internal */ +export const GetTranscodeSessionsSessionsErrors$inboundSchema: z.ZodType< + GetTranscodeSessionsSessionsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetTranscodeSessionsSessionsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTranscodeSessionsSessionsErrors$outboundSchema: z.ZodType< + GetTranscodeSessionsSessionsErrors$Outbound, + z.ZodTypeDef, + GetTranscodeSessionsSessionsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTranscodeSessionsSessionsErrors$ { + /** @deprecated use `GetTranscodeSessionsSessionsErrors$inboundSchema` instead. */ + export const inboundSchema = GetTranscodeSessionsSessionsErrors$inboundSchema; + /** @deprecated use `GetTranscodeSessionsSessionsErrors$outboundSchema` instead. */ + export const outboundSchema = GetTranscodeSessionsSessionsErrors$outboundSchema; + /** @deprecated use `GetTranscodeSessionsSessionsErrors$Outbound` instead. */ + export type Outbound = GetTranscodeSessionsSessionsErrors$Outbound; +} + +/** @internal */ +export const GetTranscodeSessionsSessionsResponseBody$inboundSchema: z.ZodType< + GetTranscodeSessionsSessionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTranscodeSessionsSessionsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTranscodeSessionsSessionsResponseBody(remapped); + }); + +/** @internal */ +export type GetTranscodeSessionsSessionsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTranscodeSessionsSessionsResponseBody$outboundSchema: z.ZodType< + GetTranscodeSessionsSessionsResponseBody$Outbound, + z.ZodTypeDef, + GetTranscodeSessionsSessionsResponseBody +> = z + .instanceof(GetTranscodeSessionsSessionsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetTranscodeSessionsSessionsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTranscodeSessionsSessionsResponseBody$ { + /** @deprecated use `GetTranscodeSessionsSessionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTranscodeSessionsSessionsResponseBody$inboundSchema; + /** @deprecated use `GetTranscodeSessionsSessionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTranscodeSessionsSessionsResponseBody$outboundSchema; + /** @deprecated use `GetTranscodeSessionsSessionsResponseBody$Outbound` instead. */ + export type Outbound = GetTranscodeSessionsSessionsResponseBody$Outbound; +} + /** @internal */ export const GetTranscodeSessionsErrors$inboundSchema: z.ZodType< GetTranscodeSessionsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetTranscodeSessionsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetTranscodeSessionsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/gettransienttoken.ts b/src/sdk/models/errors/gettransienttoken.ts index 0c52ea11..e28f2ee2 100644 --- a/src/sdk/models/errors/gettransienttoken.ts +++ b/src/sdk/models/errors/gettransienttoken.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetTransientTokenAuthenticationErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetTransientTokenAuthenticationResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetTransientTokenAuthenticationResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetTransientTokenAuthenticationResponseBodyData; + + constructor(err: GetTransientTokenAuthenticationResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetTransientTokenAuthenticationResponseBody"; + } +} + export type GetTransientTokenErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetTransientTokenErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetTransientTokenResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetTransientTokenResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetTransientTokenResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class GetTransientTokenResponseBody extends Error { } } +/** @internal */ +export const GetTransientTokenAuthenticationErrors$inboundSchema: z.ZodType< + GetTransientTokenAuthenticationErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetTransientTokenAuthenticationErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTransientTokenAuthenticationErrors$outboundSchema: z.ZodType< + GetTransientTokenAuthenticationErrors$Outbound, + z.ZodTypeDef, + GetTransientTokenAuthenticationErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTransientTokenAuthenticationErrors$ { + /** @deprecated use `GetTransientTokenAuthenticationErrors$inboundSchema` instead. */ + export const inboundSchema = GetTransientTokenAuthenticationErrors$inboundSchema; + /** @deprecated use `GetTransientTokenAuthenticationErrors$outboundSchema` instead. */ + export const outboundSchema = GetTransientTokenAuthenticationErrors$outboundSchema; + /** @deprecated use `GetTransientTokenAuthenticationErrors$Outbound` instead. */ + export type Outbound = GetTransientTokenAuthenticationErrors$Outbound; +} + +/** @internal */ +export const GetTransientTokenAuthenticationResponseBody$inboundSchema: z.ZodType< + GetTransientTokenAuthenticationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => GetTransientTokenAuthenticationErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTransientTokenAuthenticationResponseBody(remapped); + }); + +/** @internal */ +export type GetTransientTokenAuthenticationResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTransientTokenAuthenticationResponseBody$outboundSchema: z.ZodType< + GetTransientTokenAuthenticationResponseBody$Outbound, + z.ZodTypeDef, + GetTransientTokenAuthenticationResponseBody +> = z + .instanceof(GetTransientTokenAuthenticationResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetTransientTokenAuthenticationErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTransientTokenAuthenticationResponseBody$ { + /** @deprecated use `GetTransientTokenAuthenticationResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTransientTokenAuthenticationResponseBody$inboundSchema; + /** @deprecated use `GetTransientTokenAuthenticationResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTransientTokenAuthenticationResponseBody$outboundSchema; + /** @deprecated use `GetTransientTokenAuthenticationResponseBody$Outbound` instead. */ + export type Outbound = GetTransientTokenAuthenticationResponseBody$Outbound; +} + /** @internal */ export const GetTransientTokenErrors$inboundSchema: z.ZodType< GetTransientTokenErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const GetTransientTokenErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetTransientTokenErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getupdatestatus.ts b/src/sdk/models/errors/getupdatestatus.ts index 6ccface9..e4b052c3 100644 --- a/src/sdk/models/errors/getupdatestatus.ts +++ b/src/sdk/models/errors/getupdatestatus.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetUpdateStatusUpdaterErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetUpdateStatusUpdaterResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetUpdateStatusUpdaterResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetUpdateStatusUpdaterResponseBodyData; + + constructor(err: GetUpdateStatusUpdaterResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetUpdateStatusUpdaterResponseBody"; + } +} + export type GetUpdateStatusErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetUpdateStatusErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetUpdateStatusResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetUpdateStatusResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetUpdateStatusResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetUpdateStatusResponseBody extends Error { } } +/** @internal */ +export const GetUpdateStatusUpdaterErrors$inboundSchema: z.ZodType< + GetUpdateStatusUpdaterErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetUpdateStatusUpdaterErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetUpdateStatusUpdaterErrors$outboundSchema: z.ZodType< + GetUpdateStatusUpdaterErrors$Outbound, + z.ZodTypeDef, + GetUpdateStatusUpdaterErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUpdateStatusUpdaterErrors$ { + /** @deprecated use `GetUpdateStatusUpdaterErrors$inboundSchema` instead. */ + export const inboundSchema = GetUpdateStatusUpdaterErrors$inboundSchema; + /** @deprecated use `GetUpdateStatusUpdaterErrors$outboundSchema` instead. */ + export const outboundSchema = GetUpdateStatusUpdaterErrors$outboundSchema; + /** @deprecated use `GetUpdateStatusUpdaterErrors$Outbound` instead. */ + export type Outbound = GetUpdateStatusUpdaterErrors$Outbound; +} + +/** @internal */ +export const GetUpdateStatusUpdaterResponseBody$inboundSchema: z.ZodType< + GetUpdateStatusUpdaterResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetUpdateStatusUpdaterErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetUpdateStatusUpdaterResponseBody(remapped); + }); + +/** @internal */ +export type GetUpdateStatusUpdaterResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetUpdateStatusUpdaterResponseBody$outboundSchema: z.ZodType< + GetUpdateStatusUpdaterResponseBody$Outbound, + z.ZodTypeDef, + GetUpdateStatusUpdaterResponseBody +> = z + .instanceof(GetUpdateStatusUpdaterResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetUpdateStatusUpdaterErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUpdateStatusUpdaterResponseBody$ { + /** @deprecated use `GetUpdateStatusUpdaterResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetUpdateStatusUpdaterResponseBody$inboundSchema; + /** @deprecated use `GetUpdateStatusUpdaterResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetUpdateStatusUpdaterResponseBody$outboundSchema; + /** @deprecated use `GetUpdateStatusUpdaterResponseBody$Outbound` instead. */ + export type Outbound = GetUpdateStatusUpdaterResponseBody$Outbound; +} + /** @internal */ export const GetUpdateStatusErrors$inboundSchema: z.ZodType< GetUpdateStatusErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetUpdateStatusErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetUpdateStatusErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getuserdetails.ts b/src/sdk/models/errors/getuserdetails.ts index 3cad8771..b9f413b8 100644 --- a/src/sdk/models/errors/getuserdetails.ts +++ b/src/sdk/models/errors/getuserdetails.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetUserDetailsAuthenticationErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetUserDetailsAuthenticationResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetUserDetailsAuthenticationResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetUserDetailsAuthenticationResponseBodyData; + + constructor(err: GetUserDetailsAuthenticationResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetUserDetailsAuthenticationResponseBody"; + } +} + export type GetUserDetailsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetUserDetailsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetUserDetailsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetUserDetailsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetUserDetailsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetUserDetailsResponseBody extends Error { } } +/** @internal */ +export const GetUserDetailsAuthenticationErrors$inboundSchema: z.ZodType< + GetUserDetailsAuthenticationErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetUserDetailsAuthenticationErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetUserDetailsAuthenticationErrors$outboundSchema: z.ZodType< + GetUserDetailsAuthenticationErrors$Outbound, + z.ZodTypeDef, + GetUserDetailsAuthenticationErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUserDetailsAuthenticationErrors$ { + /** @deprecated use `GetUserDetailsAuthenticationErrors$inboundSchema` instead. */ + export const inboundSchema = GetUserDetailsAuthenticationErrors$inboundSchema; + /** @deprecated use `GetUserDetailsAuthenticationErrors$outboundSchema` instead. */ + export const outboundSchema = GetUserDetailsAuthenticationErrors$outboundSchema; + /** @deprecated use `GetUserDetailsAuthenticationErrors$Outbound` instead. */ + export type Outbound = GetUserDetailsAuthenticationErrors$Outbound; +} + +/** @internal */ +export const GetUserDetailsAuthenticationResponseBody$inboundSchema: z.ZodType< + GetUserDetailsAuthenticationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetUserDetailsAuthenticationErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetUserDetailsAuthenticationResponseBody(remapped); + }); + +/** @internal */ +export type GetUserDetailsAuthenticationResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetUserDetailsAuthenticationResponseBody$outboundSchema: z.ZodType< + GetUserDetailsAuthenticationResponseBody$Outbound, + z.ZodTypeDef, + GetUserDetailsAuthenticationResponseBody +> = z + .instanceof(GetUserDetailsAuthenticationResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetUserDetailsAuthenticationErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUserDetailsAuthenticationResponseBody$ { + /** @deprecated use `GetUserDetailsAuthenticationResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetUserDetailsAuthenticationResponseBody$inboundSchema; + /** @deprecated use `GetUserDetailsAuthenticationResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetUserDetailsAuthenticationResponseBody$outboundSchema; + /** @deprecated use `GetUserDetailsAuthenticationResponseBody$Outbound` instead. */ + export type Outbound = GetUserDetailsAuthenticationResponseBody$Outbound; +} + /** @internal */ export const GetUserDetailsErrors$inboundSchema: z.ZodType< GetUserDetailsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetUserDetailsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetUserDetailsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getuserfriends.ts b/src/sdk/models/errors/getuserfriends.ts index e1d21169..9b82e558 100644 --- a/src/sdk/models/errors/getuserfriends.ts +++ b/src/sdk/models/errors/getuserfriends.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetUserFriendsPlexErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetUserFriendsPlexResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetUserFriendsPlexResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetUserFriendsPlexResponseBodyData; + + constructor(err: GetUserFriendsPlexResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetUserFriendsPlexResponseBody"; + } +} + export type GetUserFriendsErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetUserFriendsErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetUserFriendsResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetUserFriendsResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetUserFriendsResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class GetUserFriendsResponseBody extends Error { } } +/** @internal */ +export const GetUserFriendsPlexErrors$inboundSchema: z.ZodType< + GetUserFriendsPlexErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetUserFriendsPlexErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetUserFriendsPlexErrors$outboundSchema: z.ZodType< + GetUserFriendsPlexErrors$Outbound, + z.ZodTypeDef, + GetUserFriendsPlexErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUserFriendsPlexErrors$ { + /** @deprecated use `GetUserFriendsPlexErrors$inboundSchema` instead. */ + export const inboundSchema = GetUserFriendsPlexErrors$inboundSchema; + /** @deprecated use `GetUserFriendsPlexErrors$outboundSchema` instead. */ + export const outboundSchema = GetUserFriendsPlexErrors$outboundSchema; + /** @deprecated use `GetUserFriendsPlexErrors$Outbound` instead. */ + export type Outbound = GetUserFriendsPlexErrors$Outbound; +} + +/** @internal */ +export const GetUserFriendsPlexResponseBody$inboundSchema: z.ZodType< + GetUserFriendsPlexResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetUserFriendsPlexErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetUserFriendsPlexResponseBody(remapped); + }); + +/** @internal */ +export type GetUserFriendsPlexResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetUserFriendsPlexResponseBody$outboundSchema: z.ZodType< + GetUserFriendsPlexResponseBody$Outbound, + z.ZodTypeDef, + GetUserFriendsPlexResponseBody +> = z + .instanceof(GetUserFriendsPlexResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetUserFriendsPlexErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUserFriendsPlexResponseBody$ { + /** @deprecated use `GetUserFriendsPlexResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetUserFriendsPlexResponseBody$inboundSchema; + /** @deprecated use `GetUserFriendsPlexResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetUserFriendsPlexResponseBody$outboundSchema; + /** @deprecated use `GetUserFriendsPlexResponseBody$Outbound` instead. */ + export type Outbound = GetUserFriendsPlexResponseBody$Outbound; +} + /** @internal */ export const GetUserFriendsErrors$inboundSchema: z.ZodType< GetUserFriendsErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const GetUserFriendsErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetUserFriendsErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/getwatchlist.ts b/src/sdk/models/errors/getwatchlist.ts index ec62cd14..96b51c4a 100644 --- a/src/sdk/models/errors/getwatchlist.ts +++ b/src/sdk/models/errors/getwatchlist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type GetWatchListWatchlistErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type GetWatchListWatchlistResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class GetWatchListWatchlistResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetWatchListWatchlistResponseBodyData; + + constructor(err: GetWatchListWatchlistResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetWatchListWatchlistResponseBody"; + } +} + export type GetWatchListErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type GetWatchListErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type GetWatchListResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type GetWatchListResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class GetWatchListResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class GetWatchListResponseBody extends Error { } } +/** @internal */ +export const GetWatchListWatchlistErrors$inboundSchema: z.ZodType< + GetWatchListWatchlistErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetWatchListWatchlistErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetWatchListWatchlistErrors$outboundSchema: z.ZodType< + GetWatchListWatchlistErrors$Outbound, + z.ZodTypeDef, + GetWatchListWatchlistErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetWatchListWatchlistErrors$ { + /** @deprecated use `GetWatchListWatchlistErrors$inboundSchema` instead. */ + export const inboundSchema = GetWatchListWatchlistErrors$inboundSchema; + /** @deprecated use `GetWatchListWatchlistErrors$outboundSchema` instead. */ + export const outboundSchema = GetWatchListWatchlistErrors$outboundSchema; + /** @deprecated use `GetWatchListWatchlistErrors$Outbound` instead. */ + export type Outbound = GetWatchListWatchlistErrors$Outbound; +} + +/** @internal */ +export const GetWatchListWatchlistResponseBody$inboundSchema: z.ZodType< + GetWatchListWatchlistResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetWatchListWatchlistErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetWatchListWatchlistResponseBody(remapped); + }); + +/** @internal */ +export type GetWatchListWatchlistResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetWatchListWatchlistResponseBody$outboundSchema: z.ZodType< + GetWatchListWatchlistResponseBody$Outbound, + z.ZodTypeDef, + GetWatchListWatchlistResponseBody +> = z + .instanceof(GetWatchListWatchlistResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetWatchListWatchlistErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetWatchListWatchlistResponseBody$ { + /** @deprecated use `GetWatchListWatchlistResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetWatchListWatchlistResponseBody$inboundSchema; + /** @deprecated use `GetWatchListWatchlistResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetWatchListWatchlistResponseBody$outboundSchema; + /** @deprecated use `GetWatchListWatchlistResponseBody$Outbound` instead. */ + export type Outbound = GetWatchListWatchlistResponseBody$Outbound; +} + /** @internal */ export const GetWatchListErrors$inboundSchema: z.ZodType< GetWatchListErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const GetWatchListErrors$outboundSchema: z.ZodType< z.ZodTypeDef, GetWatchListErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/logline.ts b/src/sdk/models/errors/logline.ts index a679f530..a267c0ad 100644 --- a/src/sdk/models/errors/logline.ts +++ b/src/sdk/models/errors/logline.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type LogLineLogErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type LogLineLogResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class LogLineLogResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: LogLineLogResponseBodyData; + + constructor(err: LogLineLogResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "LogLineLogResponseBody"; + } +} + export type LogLineErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type LogLineErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type LogLineResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type LogLineResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class LogLineResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,114 @@ export class LogLineResponseBody extends Error { } } +/** @internal */ +export const LogLineLogErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), + }); + +/** @internal */ +export type LogLineLogErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const LogLineLogErrors$outboundSchema: z.ZodType< + LogLineLogErrors$Outbound, + z.ZodTypeDef, + LogLineLogErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace LogLineLogErrors$ { + /** @deprecated use `LogLineLogErrors$inboundSchema` instead. */ + export const inboundSchema = LogLineLogErrors$inboundSchema; + /** @deprecated use `LogLineLogErrors$outboundSchema` instead. */ + export const outboundSchema = LogLineLogErrors$outboundSchema; + /** @deprecated use `LogLineLogErrors$Outbound` instead. */ + export type Outbound = LogLineLogErrors$Outbound; +} + +/** @internal */ +export const LogLineLogResponseBody$inboundSchema: z.ZodType< + LogLineLogResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => LogLineLogErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new LogLineLogResponseBody(remapped); + }); + +/** @internal */ +export type LogLineLogResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const LogLineLogResponseBody$outboundSchema: z.ZodType< + LogLineLogResponseBody$Outbound, + z.ZodTypeDef, + LogLineLogResponseBody +> = z + .instanceof(LogLineLogResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => LogLineLogErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace LogLineLogResponseBody$ { + /** @deprecated use `LogLineLogResponseBody$inboundSchema` instead. */ + export const inboundSchema = LogLineLogResponseBody$inboundSchema; + /** @deprecated use `LogLineLogResponseBody$outboundSchema` instead. */ + export const outboundSchema = LogLineLogResponseBody$outboundSchema; + /** @deprecated use `LogLineLogResponseBody$Outbound` instead. */ + export type Outbound = LogLineLogResponseBody$Outbound; +} + /** @internal */ export const LogLineErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +226,9 @@ export const LogLineErrors$outboundSchema: z.ZodType< z.ZodTypeDef, LogLineErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/logmultiline.ts b/src/sdk/models/errors/logmultiline.ts index fb6c6d0b..a72c93ba 100644 --- a/src/sdk/models/errors/logmultiline.ts +++ b/src/sdk/models/errors/logmultiline.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type LogMultiLineLogErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type LogMultiLineLogResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class LogMultiLineLogResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: LogMultiLineLogResponseBodyData; + + constructor(err: LogMultiLineLogResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "LogMultiLineLogResponseBody"; + } +} + export type LogMultiLineErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type LogMultiLineErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type LogMultiLineResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type LogMultiLineResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class LogMultiLineResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class LogMultiLineResponseBody extends Error { } } +/** @internal */ +export const LogMultiLineLogErrors$inboundSchema: z.ZodType< + LogMultiLineLogErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type LogMultiLineLogErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const LogMultiLineLogErrors$outboundSchema: z.ZodType< + LogMultiLineLogErrors$Outbound, + z.ZodTypeDef, + LogMultiLineLogErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace LogMultiLineLogErrors$ { + /** @deprecated use `LogMultiLineLogErrors$inboundSchema` instead. */ + export const inboundSchema = LogMultiLineLogErrors$inboundSchema; + /** @deprecated use `LogMultiLineLogErrors$outboundSchema` instead. */ + export const outboundSchema = LogMultiLineLogErrors$outboundSchema; + /** @deprecated use `LogMultiLineLogErrors$Outbound` instead. */ + export type Outbound = LogMultiLineLogErrors$Outbound; +} + +/** @internal */ +export const LogMultiLineLogResponseBody$inboundSchema: z.ZodType< + LogMultiLineLogResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => LogMultiLineLogErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new LogMultiLineLogResponseBody(remapped); + }); + +/** @internal */ +export type LogMultiLineLogResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const LogMultiLineLogResponseBody$outboundSchema: z.ZodType< + LogMultiLineLogResponseBody$Outbound, + z.ZodTypeDef, + LogMultiLineLogResponseBody +> = z + .instanceof(LogMultiLineLogResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => LogMultiLineLogErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace LogMultiLineLogResponseBody$ { + /** @deprecated use `LogMultiLineLogResponseBody$inboundSchema` instead. */ + export const inboundSchema = LogMultiLineLogResponseBody$inboundSchema; + /** @deprecated use `LogMultiLineLogResponseBody$outboundSchema` instead. */ + export const outboundSchema = LogMultiLineLogResponseBody$outboundSchema; + /** @deprecated use `LogMultiLineLogResponseBody$Outbound` instead. */ + export type Outbound = LogMultiLineLogResponseBody$Outbound; +} + /** @internal */ export const LogMultiLineErrors$inboundSchema: z.ZodType< LogMultiLineErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const LogMultiLineErrors$outboundSchema: z.ZodType< z.ZodTypeDef, LogMultiLineErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/markplayed.ts b/src/sdk/models/errors/markplayed.ts index b0971605..859cf452 100644 --- a/src/sdk/models/errors/markplayed.ts +++ b/src/sdk/models/errors/markplayed.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type MarkPlayedMediaErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type MarkPlayedMediaResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class MarkPlayedMediaResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: MarkPlayedMediaResponseBodyData; + + constructor(err: MarkPlayedMediaResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "MarkPlayedMediaResponseBody"; + } +} + export type MarkPlayedErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type MarkPlayedErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type MarkPlayedResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type MarkPlayedResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class MarkPlayedResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class MarkPlayedResponseBody extends Error { } } +/** @internal */ +export const MarkPlayedMediaErrors$inboundSchema: z.ZodType< + MarkPlayedMediaErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type MarkPlayedMediaErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const MarkPlayedMediaErrors$outboundSchema: z.ZodType< + MarkPlayedMediaErrors$Outbound, + z.ZodTypeDef, + MarkPlayedMediaErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MarkPlayedMediaErrors$ { + /** @deprecated use `MarkPlayedMediaErrors$inboundSchema` instead. */ + export const inboundSchema = MarkPlayedMediaErrors$inboundSchema; + /** @deprecated use `MarkPlayedMediaErrors$outboundSchema` instead. */ + export const outboundSchema = MarkPlayedMediaErrors$outboundSchema; + /** @deprecated use `MarkPlayedMediaErrors$Outbound` instead. */ + export type Outbound = MarkPlayedMediaErrors$Outbound; +} + +/** @internal */ +export const MarkPlayedMediaResponseBody$inboundSchema: z.ZodType< + MarkPlayedMediaResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => MarkPlayedMediaErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new MarkPlayedMediaResponseBody(remapped); + }); + +/** @internal */ +export type MarkPlayedMediaResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const MarkPlayedMediaResponseBody$outboundSchema: z.ZodType< + MarkPlayedMediaResponseBody$Outbound, + z.ZodTypeDef, + MarkPlayedMediaResponseBody +> = z + .instanceof(MarkPlayedMediaResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => MarkPlayedMediaErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MarkPlayedMediaResponseBody$ { + /** @deprecated use `MarkPlayedMediaResponseBody$inboundSchema` instead. */ + export const inboundSchema = MarkPlayedMediaResponseBody$inboundSchema; + /** @deprecated use `MarkPlayedMediaResponseBody$outboundSchema` instead. */ + export const outboundSchema = MarkPlayedMediaResponseBody$outboundSchema; + /** @deprecated use `MarkPlayedMediaResponseBody$Outbound` instead. */ + export type Outbound = MarkPlayedMediaResponseBody$Outbound; +} + /** @internal */ export const MarkPlayedErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const MarkPlayedErrors$outboundSchema: z.ZodType< z.ZodTypeDef, MarkPlayedErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/markunplayed.ts b/src/sdk/models/errors/markunplayed.ts index fb380d6f..759b7f10 100644 --- a/src/sdk/models/errors/markunplayed.ts +++ b/src/sdk/models/errors/markunplayed.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type MarkUnplayedMediaErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type MarkUnplayedMediaResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class MarkUnplayedMediaResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: MarkUnplayedMediaResponseBodyData; + + constructor(err: MarkUnplayedMediaResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "MarkUnplayedMediaResponseBody"; + } +} + export type MarkUnplayedErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type MarkUnplayedErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type MarkUnplayedResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type MarkUnplayedResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class MarkUnplayedResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class MarkUnplayedResponseBody extends Error { } } +/** @internal */ +export const MarkUnplayedMediaErrors$inboundSchema: z.ZodType< + MarkUnplayedMediaErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type MarkUnplayedMediaErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const MarkUnplayedMediaErrors$outboundSchema: z.ZodType< + MarkUnplayedMediaErrors$Outbound, + z.ZodTypeDef, + MarkUnplayedMediaErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MarkUnplayedMediaErrors$ { + /** @deprecated use `MarkUnplayedMediaErrors$inboundSchema` instead. */ + export const inboundSchema = MarkUnplayedMediaErrors$inboundSchema; + /** @deprecated use `MarkUnplayedMediaErrors$outboundSchema` instead. */ + export const outboundSchema = MarkUnplayedMediaErrors$outboundSchema; + /** @deprecated use `MarkUnplayedMediaErrors$Outbound` instead. */ + export type Outbound = MarkUnplayedMediaErrors$Outbound; +} + +/** @internal */ +export const MarkUnplayedMediaResponseBody$inboundSchema: z.ZodType< + MarkUnplayedMediaResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => MarkUnplayedMediaErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new MarkUnplayedMediaResponseBody(remapped); + }); + +/** @internal */ +export type MarkUnplayedMediaResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const MarkUnplayedMediaResponseBody$outboundSchema: z.ZodType< + MarkUnplayedMediaResponseBody$Outbound, + z.ZodTypeDef, + MarkUnplayedMediaResponseBody +> = z + .instanceof(MarkUnplayedMediaResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => MarkUnplayedMediaErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MarkUnplayedMediaResponseBody$ { + /** @deprecated use `MarkUnplayedMediaResponseBody$inboundSchema` instead. */ + export const inboundSchema = MarkUnplayedMediaResponseBody$inboundSchema; + /** @deprecated use `MarkUnplayedMediaResponseBody$outboundSchema` instead. */ + export const outboundSchema = MarkUnplayedMediaResponseBody$outboundSchema; + /** @deprecated use `MarkUnplayedMediaResponseBody$Outbound` instead. */ + export type Outbound = MarkUnplayedMediaResponseBody$Outbound; +} + /** @internal */ export const MarkUnplayedErrors$inboundSchema: z.ZodType< MarkUnplayedErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const MarkUnplayedErrors$outboundSchema: z.ZodType< z.ZodTypeDef, MarkUnplayedErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/performsearch.ts b/src/sdk/models/errors/performsearch.ts index 70a032d1..889fa95b 100644 --- a/src/sdk/models/errors/performsearch.ts +++ b/src/sdk/models/errors/performsearch.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type PerformSearchSearchErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type PerformSearchSearchResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class PerformSearchSearchResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: PerformSearchSearchResponseBodyData; + + constructor(err: PerformSearchSearchResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "PerformSearchSearchResponseBody"; + } +} + export type PerformSearchErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type PerformSearchErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type PerformSearchResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type PerformSearchResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class PerformSearchResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class PerformSearchResponseBody extends Error { } } +/** @internal */ +export const PerformSearchSearchErrors$inboundSchema: z.ZodType< + PerformSearchSearchErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type PerformSearchSearchErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const PerformSearchSearchErrors$outboundSchema: z.ZodType< + PerformSearchSearchErrors$Outbound, + z.ZodTypeDef, + PerformSearchSearchErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PerformSearchSearchErrors$ { + /** @deprecated use `PerformSearchSearchErrors$inboundSchema` instead. */ + export const inboundSchema = PerformSearchSearchErrors$inboundSchema; + /** @deprecated use `PerformSearchSearchErrors$outboundSchema` instead. */ + export const outboundSchema = PerformSearchSearchErrors$outboundSchema; + /** @deprecated use `PerformSearchSearchErrors$Outbound` instead. */ + export type Outbound = PerformSearchSearchErrors$Outbound; +} + +/** @internal */ +export const PerformSearchSearchResponseBody$inboundSchema: z.ZodType< + PerformSearchSearchResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => PerformSearchSearchErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new PerformSearchSearchResponseBody(remapped); + }); + +/** @internal */ +export type PerformSearchSearchResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const PerformSearchSearchResponseBody$outboundSchema: z.ZodType< + PerformSearchSearchResponseBody$Outbound, + z.ZodTypeDef, + PerformSearchSearchResponseBody +> = z + .instanceof(PerformSearchSearchResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => PerformSearchSearchErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PerformSearchSearchResponseBody$ { + /** @deprecated use `PerformSearchSearchResponseBody$inboundSchema` instead. */ + export const inboundSchema = PerformSearchSearchResponseBody$inboundSchema; + /** @deprecated use `PerformSearchSearchResponseBody$outboundSchema` instead. */ + export const outboundSchema = PerformSearchSearchResponseBody$outboundSchema; + /** @deprecated use `PerformSearchSearchResponseBody$Outbound` instead. */ + export type Outbound = PerformSearchSearchResponseBody$Outbound; +} + /** @internal */ export const PerformSearchErrors$inboundSchema: z.ZodType< PerformSearchErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const PerformSearchErrors$outboundSchema: z.ZodType< z.ZodTypeDef, PerformSearchErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/performvoicesearch.ts b/src/sdk/models/errors/performvoicesearch.ts index 236b61bd..9c173077 100644 --- a/src/sdk/models/errors/performvoicesearch.ts +++ b/src/sdk/models/errors/performvoicesearch.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type PerformVoiceSearchSearchErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type PerformVoiceSearchSearchResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class PerformVoiceSearchSearchResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: PerformVoiceSearchSearchResponseBodyData; + + constructor(err: PerformVoiceSearchSearchResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "PerformVoiceSearchSearchResponseBody"; + } +} + export type PerformVoiceSearchErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type PerformVoiceSearchErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type PerformVoiceSearchResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type PerformVoiceSearchResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class PerformVoiceSearchResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class PerformVoiceSearchResponseBody extends Error { } } +/** @internal */ +export const PerformVoiceSearchSearchErrors$inboundSchema: z.ZodType< + PerformVoiceSearchSearchErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type PerformVoiceSearchSearchErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const PerformVoiceSearchSearchErrors$outboundSchema: z.ZodType< + PerformVoiceSearchSearchErrors$Outbound, + z.ZodTypeDef, + PerformVoiceSearchSearchErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PerformVoiceSearchSearchErrors$ { + /** @deprecated use `PerformVoiceSearchSearchErrors$inboundSchema` instead. */ + export const inboundSchema = PerformVoiceSearchSearchErrors$inboundSchema; + /** @deprecated use `PerformVoiceSearchSearchErrors$outboundSchema` instead. */ + export const outboundSchema = PerformVoiceSearchSearchErrors$outboundSchema; + /** @deprecated use `PerformVoiceSearchSearchErrors$Outbound` instead. */ + export type Outbound = PerformVoiceSearchSearchErrors$Outbound; +} + +/** @internal */ +export const PerformVoiceSearchSearchResponseBody$inboundSchema: z.ZodType< + PerformVoiceSearchSearchResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => PerformVoiceSearchSearchErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new PerformVoiceSearchSearchResponseBody(remapped); + }); + +/** @internal */ +export type PerformVoiceSearchSearchResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const PerformVoiceSearchSearchResponseBody$outboundSchema: z.ZodType< + PerformVoiceSearchSearchResponseBody$Outbound, + z.ZodTypeDef, + PerformVoiceSearchSearchResponseBody +> = z + .instanceof(PerformVoiceSearchSearchResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => PerformVoiceSearchSearchErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PerformVoiceSearchSearchResponseBody$ { + /** @deprecated use `PerformVoiceSearchSearchResponseBody$inboundSchema` instead. */ + export const inboundSchema = PerformVoiceSearchSearchResponseBody$inboundSchema; + /** @deprecated use `PerformVoiceSearchSearchResponseBody$outboundSchema` instead. */ + export const outboundSchema = PerformVoiceSearchSearchResponseBody$outboundSchema; + /** @deprecated use `PerformVoiceSearchSearchResponseBody$Outbound` instead. */ + export type Outbound = PerformVoiceSearchSearchResponseBody$Outbound; +} + /** @internal */ export const PerformVoiceSearchErrors$inboundSchema: z.ZodType< PerformVoiceSearchErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const PerformVoiceSearchErrors$outboundSchema: z.ZodType< z.ZodTypeDef, PerformVoiceSearchErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/postuserssignindata.ts b/src/sdk/models/errors/postuserssignindata.ts index 63f2500a..8ea88e11 100644 --- a/src/sdk/models/errors/postuserssignindata.ts +++ b/src/sdk/models/errors/postuserssignindata.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type PostUsersSignInDataAuthenticationErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type PostUsersSignInDataAuthenticationResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class PostUsersSignInDataAuthenticationResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: PostUsersSignInDataAuthenticationResponseBodyData; + + constructor(err: PostUsersSignInDataAuthenticationResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "PostUsersSignInDataAuthenticationResponseBody"; + } +} + export type PostUsersSignInDataErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type PostUsersSignInDataErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type PostUsersSignInDataResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type PostUsersSignInDataResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class PostUsersSignInDataResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,124 @@ export class PostUsersSignInDataResponseBody extends Error { } } +/** @internal */ +export const PostUsersSignInDataAuthenticationErrors$inboundSchema: z.ZodType< + PostUsersSignInDataAuthenticationErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type PostUsersSignInDataAuthenticationErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const PostUsersSignInDataAuthenticationErrors$outboundSchema: z.ZodType< + PostUsersSignInDataAuthenticationErrors$Outbound, + z.ZodTypeDef, + PostUsersSignInDataAuthenticationErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PostUsersSignInDataAuthenticationErrors$ { + /** @deprecated use `PostUsersSignInDataAuthenticationErrors$inboundSchema` instead. */ + export const inboundSchema = PostUsersSignInDataAuthenticationErrors$inboundSchema; + /** @deprecated use `PostUsersSignInDataAuthenticationErrors$outboundSchema` instead. */ + export const outboundSchema = PostUsersSignInDataAuthenticationErrors$outboundSchema; + /** @deprecated use `PostUsersSignInDataAuthenticationErrors$Outbound` instead. */ + export type Outbound = PostUsersSignInDataAuthenticationErrors$Outbound; +} + +/** @internal */ +export const PostUsersSignInDataAuthenticationResponseBody$inboundSchema: z.ZodType< + PostUsersSignInDataAuthenticationResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z + .array(z.lazy(() => PostUsersSignInDataAuthenticationErrors$inboundSchema)) + .optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new PostUsersSignInDataAuthenticationResponseBody(remapped); + }); + +/** @internal */ +export type PostUsersSignInDataAuthenticationResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const PostUsersSignInDataAuthenticationResponseBody$outboundSchema: z.ZodType< + PostUsersSignInDataAuthenticationResponseBody$Outbound, + z.ZodTypeDef, + PostUsersSignInDataAuthenticationResponseBody +> = z + .instanceof(PostUsersSignInDataAuthenticationResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => PostUsersSignInDataAuthenticationErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PostUsersSignInDataAuthenticationResponseBody$ { + /** @deprecated use `PostUsersSignInDataAuthenticationResponseBody$inboundSchema` instead. */ + export const inboundSchema = PostUsersSignInDataAuthenticationResponseBody$inboundSchema; + /** @deprecated use `PostUsersSignInDataAuthenticationResponseBody$outboundSchema` instead. */ + export const outboundSchema = PostUsersSignInDataAuthenticationResponseBody$outboundSchema; + /** @deprecated use `PostUsersSignInDataAuthenticationResponseBody$Outbound` instead. */ + export type Outbound = PostUsersSignInDataAuthenticationResponseBody$Outbound; +} + /** @internal */ export const PostUsersSignInDataErrors$inboundSchema: z.ZodType< PostUsersSignInDataErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +236,9 @@ export const PostUsersSignInDataErrors$outboundSchema: z.ZodType< z.ZodTypeDef, PostUsersSignInDataErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/startalltasks.ts b/src/sdk/models/errors/startalltasks.ts index f9af6dab..dbea477f 100644 --- a/src/sdk/models/errors/startalltasks.ts +++ b/src/sdk/models/errors/startalltasks.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type StartAllTasksButlerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type StartAllTasksButlerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class StartAllTasksButlerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: StartAllTasksButlerResponseBodyData; + + constructor(err: StartAllTasksButlerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "StartAllTasksButlerResponseBody"; + } +} + export type StartAllTasksErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type StartAllTasksErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type StartAllTasksResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type StartAllTasksResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class StartAllTasksResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class StartAllTasksResponseBody extends Error { } } +/** @internal */ +export const StartAllTasksButlerErrors$inboundSchema: z.ZodType< + StartAllTasksButlerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type StartAllTasksButlerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StartAllTasksButlerErrors$outboundSchema: z.ZodType< + StartAllTasksButlerErrors$Outbound, + z.ZodTypeDef, + StartAllTasksButlerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartAllTasksButlerErrors$ { + /** @deprecated use `StartAllTasksButlerErrors$inboundSchema` instead. */ + export const inboundSchema = StartAllTasksButlerErrors$inboundSchema; + /** @deprecated use `StartAllTasksButlerErrors$outboundSchema` instead. */ + export const outboundSchema = StartAllTasksButlerErrors$outboundSchema; + /** @deprecated use `StartAllTasksButlerErrors$Outbound` instead. */ + export type Outbound = StartAllTasksButlerErrors$Outbound; +} + +/** @internal */ +export const StartAllTasksButlerResponseBody$inboundSchema: z.ZodType< + StartAllTasksButlerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StartAllTasksButlerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StartAllTasksButlerResponseBody(remapped); + }); + +/** @internal */ +export type StartAllTasksButlerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StartAllTasksButlerResponseBody$outboundSchema: z.ZodType< + StartAllTasksButlerResponseBody$Outbound, + z.ZodTypeDef, + StartAllTasksButlerResponseBody +> = z + .instanceof(StartAllTasksButlerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => StartAllTasksButlerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartAllTasksButlerResponseBody$ { + /** @deprecated use `StartAllTasksButlerResponseBody$inboundSchema` instead. */ + export const inboundSchema = StartAllTasksButlerResponseBody$inboundSchema; + /** @deprecated use `StartAllTasksButlerResponseBody$outboundSchema` instead. */ + export const outboundSchema = StartAllTasksButlerResponseBody$outboundSchema; + /** @deprecated use `StartAllTasksButlerResponseBody$Outbound` instead. */ + export type Outbound = StartAllTasksButlerResponseBody$Outbound; +} + /** @internal */ export const StartAllTasksErrors$inboundSchema: z.ZodType< StartAllTasksErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const StartAllTasksErrors$outboundSchema: z.ZodType< z.ZodTypeDef, StartAllTasksErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/starttask.ts b/src/sdk/models/errors/starttask.ts index 5f4998ca..faaad4cd 100644 --- a/src/sdk/models/errors/starttask.ts +++ b/src/sdk/models/errors/starttask.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type StartTaskButlerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type StartTaskButlerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class StartTaskButlerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: StartTaskButlerResponseBodyData; + + constructor(err: StartTaskButlerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "StartTaskButlerResponseBody"; + } +} + export type StartTaskErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type StartTaskErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type StartTaskResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type StartTaskResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class StartTaskResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class StartTaskResponseBody extends Error { } } +/** @internal */ +export const StartTaskButlerErrors$inboundSchema: z.ZodType< + StartTaskButlerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type StartTaskButlerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StartTaskButlerErrors$outboundSchema: z.ZodType< + StartTaskButlerErrors$Outbound, + z.ZodTypeDef, + StartTaskButlerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartTaskButlerErrors$ { + /** @deprecated use `StartTaskButlerErrors$inboundSchema` instead. */ + export const inboundSchema = StartTaskButlerErrors$inboundSchema; + /** @deprecated use `StartTaskButlerErrors$outboundSchema` instead. */ + export const outboundSchema = StartTaskButlerErrors$outboundSchema; + /** @deprecated use `StartTaskButlerErrors$Outbound` instead. */ + export type Outbound = StartTaskButlerErrors$Outbound; +} + +/** @internal */ +export const StartTaskButlerResponseBody$inboundSchema: z.ZodType< + StartTaskButlerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StartTaskButlerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StartTaskButlerResponseBody(remapped); + }); + +/** @internal */ +export type StartTaskButlerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StartTaskButlerResponseBody$outboundSchema: z.ZodType< + StartTaskButlerResponseBody$Outbound, + z.ZodTypeDef, + StartTaskButlerResponseBody +> = z + .instanceof(StartTaskButlerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => StartTaskButlerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartTaskButlerResponseBody$ { + /** @deprecated use `StartTaskButlerResponseBody$inboundSchema` instead. */ + export const inboundSchema = StartTaskButlerResponseBody$inboundSchema; + /** @deprecated use `StartTaskButlerResponseBody$outboundSchema` instead. */ + export const outboundSchema = StartTaskButlerResponseBody$outboundSchema; + /** @deprecated use `StartTaskButlerResponseBody$Outbound` instead. */ + export type Outbound = StartTaskButlerResponseBody$Outbound; +} + /** @internal */ export const StartTaskErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const StartTaskErrors$outboundSchema: z.ZodType< z.ZodTypeDef, StartTaskErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/startuniversaltranscode.ts b/src/sdk/models/errors/startuniversaltranscode.ts index 994b0fc2..e8f9ecb6 100644 --- a/src/sdk/models/errors/startuniversaltranscode.ts +++ b/src/sdk/models/errors/startuniversaltranscode.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type StartUniversalTranscodeVideoErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type StartUniversalTranscodeVideoResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class StartUniversalTranscodeVideoResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: StartUniversalTranscodeVideoResponseBodyData; + + constructor(err: StartUniversalTranscodeVideoResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "StartUniversalTranscodeVideoResponseBody"; + } +} + export type StartUniversalTranscodeErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type StartUniversalTranscodeErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type StartUniversalTranscodeResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type StartUniversalTranscodeResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class StartUniversalTranscodeResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class StartUniversalTranscodeResponseBody extends Error { } } +/** @internal */ +export const StartUniversalTranscodeVideoErrors$inboundSchema: z.ZodType< + StartUniversalTranscodeVideoErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type StartUniversalTranscodeVideoErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StartUniversalTranscodeVideoErrors$outboundSchema: z.ZodType< + StartUniversalTranscodeVideoErrors$Outbound, + z.ZodTypeDef, + StartUniversalTranscodeVideoErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartUniversalTranscodeVideoErrors$ { + /** @deprecated use `StartUniversalTranscodeVideoErrors$inboundSchema` instead. */ + export const inboundSchema = StartUniversalTranscodeVideoErrors$inboundSchema; + /** @deprecated use `StartUniversalTranscodeVideoErrors$outboundSchema` instead. */ + export const outboundSchema = StartUniversalTranscodeVideoErrors$outboundSchema; + /** @deprecated use `StartUniversalTranscodeVideoErrors$Outbound` instead. */ + export type Outbound = StartUniversalTranscodeVideoErrors$Outbound; +} + +/** @internal */ +export const StartUniversalTranscodeVideoResponseBody$inboundSchema: z.ZodType< + StartUniversalTranscodeVideoResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StartUniversalTranscodeVideoErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StartUniversalTranscodeVideoResponseBody(remapped); + }); + +/** @internal */ +export type StartUniversalTranscodeVideoResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StartUniversalTranscodeVideoResponseBody$outboundSchema: z.ZodType< + StartUniversalTranscodeVideoResponseBody$Outbound, + z.ZodTypeDef, + StartUniversalTranscodeVideoResponseBody +> = z + .instanceof(StartUniversalTranscodeVideoResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => StartUniversalTranscodeVideoErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartUniversalTranscodeVideoResponseBody$ { + /** @deprecated use `StartUniversalTranscodeVideoResponseBody$inboundSchema` instead. */ + export const inboundSchema = StartUniversalTranscodeVideoResponseBody$inboundSchema; + /** @deprecated use `StartUniversalTranscodeVideoResponseBody$outboundSchema` instead. */ + export const outboundSchema = StartUniversalTranscodeVideoResponseBody$outboundSchema; + /** @deprecated use `StartUniversalTranscodeVideoResponseBody$Outbound` instead. */ + export type Outbound = StartUniversalTranscodeVideoResponseBody$Outbound; +} + /** @internal */ export const StartUniversalTranscodeErrors$inboundSchema: z.ZodType< StartUniversalTranscodeErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const StartUniversalTranscodeErrors$outboundSchema: z.ZodType< z.ZodTypeDef, StartUniversalTranscodeErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/stopalltasks.ts b/src/sdk/models/errors/stopalltasks.ts index 36df45ba..6d0dbbba 100644 --- a/src/sdk/models/errors/stopalltasks.ts +++ b/src/sdk/models/errors/stopalltasks.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type StopAllTasksButlerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type StopAllTasksButlerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class StopAllTasksButlerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: StopAllTasksButlerResponseBodyData; + + constructor(err: StopAllTasksButlerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "StopAllTasksButlerResponseBody"; + } +} + export type StopAllTasksErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type StopAllTasksErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type StopAllTasksResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type StopAllTasksResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class StopAllTasksResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,120 @@ export class StopAllTasksResponseBody extends Error { } } +/** @internal */ +export const StopAllTasksButlerErrors$inboundSchema: z.ZodType< + StopAllTasksButlerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type StopAllTasksButlerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StopAllTasksButlerErrors$outboundSchema: z.ZodType< + StopAllTasksButlerErrors$Outbound, + z.ZodTypeDef, + StopAllTasksButlerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopAllTasksButlerErrors$ { + /** @deprecated use `StopAllTasksButlerErrors$inboundSchema` instead. */ + export const inboundSchema = StopAllTasksButlerErrors$inboundSchema; + /** @deprecated use `StopAllTasksButlerErrors$outboundSchema` instead. */ + export const outboundSchema = StopAllTasksButlerErrors$outboundSchema; + /** @deprecated use `StopAllTasksButlerErrors$Outbound` instead. */ + export type Outbound = StopAllTasksButlerErrors$Outbound; +} + +/** @internal */ +export const StopAllTasksButlerResponseBody$inboundSchema: z.ZodType< + StopAllTasksButlerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StopAllTasksButlerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StopAllTasksButlerResponseBody(remapped); + }); + +/** @internal */ +export type StopAllTasksButlerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StopAllTasksButlerResponseBody$outboundSchema: z.ZodType< + StopAllTasksButlerResponseBody$Outbound, + z.ZodTypeDef, + StopAllTasksButlerResponseBody +> = z + .instanceof(StopAllTasksButlerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => StopAllTasksButlerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopAllTasksButlerResponseBody$ { + /** @deprecated use `StopAllTasksButlerResponseBody$inboundSchema` instead. */ + export const inboundSchema = StopAllTasksButlerResponseBody$inboundSchema; + /** @deprecated use `StopAllTasksButlerResponseBody$outboundSchema` instead. */ + export const outboundSchema = StopAllTasksButlerResponseBody$outboundSchema; + /** @deprecated use `StopAllTasksButlerResponseBody$Outbound` instead. */ + export type Outbound = StopAllTasksButlerResponseBody$Outbound; +} + /** @internal */ export const StopAllTasksErrors$inboundSchema: z.ZodType< StopAllTasksErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +232,9 @@ export const StopAllTasksErrors$outboundSchema: z.ZodType< z.ZodTypeDef, StopAllTasksErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/stoptask.ts b/src/sdk/models/errors/stoptask.ts index 4e361228..9a3c4713 100644 --- a/src/sdk/models/errors/stoptask.ts +++ b/src/sdk/models/errors/stoptask.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type StopTaskButlerErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type StopTaskButlerResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class StopTaskButlerResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: StopTaskButlerResponseBodyData; + + constructor(err: StopTaskButlerResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "StopTaskButlerResponseBody"; + } +} + export type StopTaskErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type StopTaskErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type StopTaskResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type StopTaskResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class StopTaskResponseBody extends Error { errors?: Array | undefined; @@ -54,12 +103,117 @@ export class StopTaskResponseBody extends Error { } } +/** @internal */ +export const StopTaskButlerErrors$inboundSchema: z.ZodType< + StopTaskButlerErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type StopTaskButlerErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StopTaskButlerErrors$outboundSchema: z.ZodType< + StopTaskButlerErrors$Outbound, + z.ZodTypeDef, + StopTaskButlerErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopTaskButlerErrors$ { + /** @deprecated use `StopTaskButlerErrors$inboundSchema` instead. */ + export const inboundSchema = StopTaskButlerErrors$inboundSchema; + /** @deprecated use `StopTaskButlerErrors$outboundSchema` instead. */ + export const outboundSchema = StopTaskButlerErrors$outboundSchema; + /** @deprecated use `StopTaskButlerErrors$Outbound` instead. */ + export type Outbound = StopTaskButlerErrors$Outbound; +} + +/** @internal */ +export const StopTaskButlerResponseBody$inboundSchema: z.ZodType< + StopTaskButlerResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StopTaskButlerErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StopTaskButlerResponseBody(remapped); + }); + +/** @internal */ +export type StopTaskButlerResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StopTaskButlerResponseBody$outboundSchema: z.ZodType< + StopTaskButlerResponseBody$Outbound, + z.ZodTypeDef, + StopTaskButlerResponseBody +> = z + .instanceof(StopTaskButlerResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => StopTaskButlerErrors$outboundSchema)).optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopTaskButlerResponseBody$ { + /** @deprecated use `StopTaskButlerResponseBody$inboundSchema` instead. */ + export const inboundSchema = StopTaskButlerResponseBody$inboundSchema; + /** @deprecated use `StopTaskButlerResponseBody$outboundSchema` instead. */ + export const outboundSchema = StopTaskButlerResponseBody$outboundSchema; + /** @deprecated use `StopTaskButlerResponseBody$Outbound` instead. */ + export type Outbound = StopTaskButlerResponseBody$Outbound; +} + /** @internal */ export const StopTaskErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -75,9 +229,9 @@ export const StopTaskErrors$outboundSchema: z.ZodType< z.ZodTypeDef, StopTaskErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/stoptranscodesession.ts b/src/sdk/models/errors/stoptranscodesession.ts index 7be1d69a..beaa605d 100644 --- a/src/sdk/models/errors/stoptranscodesession.ts +++ b/src/sdk/models/errors/stoptranscodesession.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type StopTranscodeSessionSessionsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type StopTranscodeSessionSessionsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class StopTranscodeSessionSessionsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: StopTranscodeSessionSessionsResponseBodyData; + + constructor(err: StopTranscodeSessionSessionsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "StopTranscodeSessionSessionsResponseBody"; + } +} + export type StopTranscodeSessionErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type StopTranscodeSessionErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type StopTranscodeSessionResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type StopTranscodeSessionResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class StopTranscodeSessionResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class StopTranscodeSessionResponseBody extends Error { } } +/** @internal */ +export const StopTranscodeSessionSessionsErrors$inboundSchema: z.ZodType< + StopTranscodeSessionSessionsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type StopTranscodeSessionSessionsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StopTranscodeSessionSessionsErrors$outboundSchema: z.ZodType< + StopTranscodeSessionSessionsErrors$Outbound, + z.ZodTypeDef, + StopTranscodeSessionSessionsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopTranscodeSessionSessionsErrors$ { + /** @deprecated use `StopTranscodeSessionSessionsErrors$inboundSchema` instead. */ + export const inboundSchema = StopTranscodeSessionSessionsErrors$inboundSchema; + /** @deprecated use `StopTranscodeSessionSessionsErrors$outboundSchema` instead. */ + export const outboundSchema = StopTranscodeSessionSessionsErrors$outboundSchema; + /** @deprecated use `StopTranscodeSessionSessionsErrors$Outbound` instead. */ + export type Outbound = StopTranscodeSessionSessionsErrors$Outbound; +} + +/** @internal */ +export const StopTranscodeSessionSessionsResponseBody$inboundSchema: z.ZodType< + StopTranscodeSessionSessionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StopTranscodeSessionSessionsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StopTranscodeSessionSessionsResponseBody(remapped); + }); + +/** @internal */ +export type StopTranscodeSessionSessionsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StopTranscodeSessionSessionsResponseBody$outboundSchema: z.ZodType< + StopTranscodeSessionSessionsResponseBody$Outbound, + z.ZodTypeDef, + StopTranscodeSessionSessionsResponseBody +> = z + .instanceof(StopTranscodeSessionSessionsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => StopTranscodeSessionSessionsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopTranscodeSessionSessionsResponseBody$ { + /** @deprecated use `StopTranscodeSessionSessionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = StopTranscodeSessionSessionsResponseBody$inboundSchema; + /** @deprecated use `StopTranscodeSessionSessionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = StopTranscodeSessionSessionsResponseBody$outboundSchema; + /** @deprecated use `StopTranscodeSessionSessionsResponseBody$Outbound` instead. */ + export type Outbound = StopTranscodeSessionSessionsResponseBody$Outbound; +} + /** @internal */ export const StopTranscodeSessionErrors$inboundSchema: z.ZodType< StopTranscodeSessionErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const StopTranscodeSessionErrors$outboundSchema: z.ZodType< z.ZodTypeDef, StopTranscodeSessionErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/updateplaylist.ts b/src/sdk/models/errors/updateplaylist.ts index 4b41e60c..5ab57044 100644 --- a/src/sdk/models/errors/updateplaylist.ts +++ b/src/sdk/models/errors/updateplaylist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type UpdatePlaylistPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type UpdatePlaylistPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class UpdatePlaylistPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: UpdatePlaylistPlaylistsResponseBodyData; + + constructor(err: UpdatePlaylistPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "UpdatePlaylistPlaylistsResponseBody"; + } +} + export type UpdatePlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type UpdatePlaylistErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type UpdatePlaylistResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type UpdatePlaylistResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class UpdatePlaylistResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class UpdatePlaylistResponseBody extends Error { } } +/** @internal */ +export const UpdatePlaylistPlaylistsErrors$inboundSchema: z.ZodType< + UpdatePlaylistPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type UpdatePlaylistPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const UpdatePlaylistPlaylistsErrors$outboundSchema: z.ZodType< + UpdatePlaylistPlaylistsErrors$Outbound, + z.ZodTypeDef, + UpdatePlaylistPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePlaylistPlaylistsErrors$ { + /** @deprecated use `UpdatePlaylistPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = UpdatePlaylistPlaylistsErrors$inboundSchema; + /** @deprecated use `UpdatePlaylistPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = UpdatePlaylistPlaylistsErrors$outboundSchema; + /** @deprecated use `UpdatePlaylistPlaylistsErrors$Outbound` instead. */ + export type Outbound = UpdatePlaylistPlaylistsErrors$Outbound; +} + +/** @internal */ +export const UpdatePlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< + UpdatePlaylistPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => UpdatePlaylistPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new UpdatePlaylistPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type UpdatePlaylistPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const UpdatePlaylistPlaylistsResponseBody$outboundSchema: z.ZodType< + UpdatePlaylistPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + UpdatePlaylistPlaylistsResponseBody +> = z + .instanceof(UpdatePlaylistPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => UpdatePlaylistPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePlaylistPlaylistsResponseBody$ { + /** @deprecated use `UpdatePlaylistPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = UpdatePlaylistPlaylistsResponseBody$inboundSchema; + /** @deprecated use `UpdatePlaylistPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = UpdatePlaylistPlaylistsResponseBody$outboundSchema; + /** @deprecated use `UpdatePlaylistPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = UpdatePlaylistPlaylistsResponseBody$Outbound; +} + /** @internal */ export const UpdatePlaylistErrors$inboundSchema: z.ZodType< UpdatePlaylistErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const UpdatePlaylistErrors$outboundSchema: z.ZodType< z.ZodTypeDef, UpdatePlaylistErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/updateplayprogress.ts b/src/sdk/models/errors/updateplayprogress.ts index ce8994bf..e953bf73 100644 --- a/src/sdk/models/errors/updateplayprogress.ts +++ b/src/sdk/models/errors/updateplayprogress.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type UpdatePlayProgressMediaErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type UpdatePlayProgressMediaResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class UpdatePlayProgressMediaResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: UpdatePlayProgressMediaResponseBodyData; + + constructor(err: UpdatePlayProgressMediaResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "UpdatePlayProgressMediaResponseBody"; + } +} + export type UpdatePlayProgressErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type UpdatePlayProgressErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type UpdatePlayProgressResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type UpdatePlayProgressResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class UpdatePlayProgressResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class UpdatePlayProgressResponseBody extends Error { } } +/** @internal */ +export const UpdatePlayProgressMediaErrors$inboundSchema: z.ZodType< + UpdatePlayProgressMediaErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type UpdatePlayProgressMediaErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const UpdatePlayProgressMediaErrors$outboundSchema: z.ZodType< + UpdatePlayProgressMediaErrors$Outbound, + z.ZodTypeDef, + UpdatePlayProgressMediaErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePlayProgressMediaErrors$ { + /** @deprecated use `UpdatePlayProgressMediaErrors$inboundSchema` instead. */ + export const inboundSchema = UpdatePlayProgressMediaErrors$inboundSchema; + /** @deprecated use `UpdatePlayProgressMediaErrors$outboundSchema` instead. */ + export const outboundSchema = UpdatePlayProgressMediaErrors$outboundSchema; + /** @deprecated use `UpdatePlayProgressMediaErrors$Outbound` instead. */ + export type Outbound = UpdatePlayProgressMediaErrors$Outbound; +} + +/** @internal */ +export const UpdatePlayProgressMediaResponseBody$inboundSchema: z.ZodType< + UpdatePlayProgressMediaResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => UpdatePlayProgressMediaErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new UpdatePlayProgressMediaResponseBody(remapped); + }); + +/** @internal */ +export type UpdatePlayProgressMediaResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const UpdatePlayProgressMediaResponseBody$outboundSchema: z.ZodType< + UpdatePlayProgressMediaResponseBody$Outbound, + z.ZodTypeDef, + UpdatePlayProgressMediaResponseBody +> = z + .instanceof(UpdatePlayProgressMediaResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => UpdatePlayProgressMediaErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePlayProgressMediaResponseBody$ { + /** @deprecated use `UpdatePlayProgressMediaResponseBody$inboundSchema` instead. */ + export const inboundSchema = UpdatePlayProgressMediaResponseBody$inboundSchema; + /** @deprecated use `UpdatePlayProgressMediaResponseBody$outboundSchema` instead. */ + export const outboundSchema = UpdatePlayProgressMediaResponseBody$outboundSchema; + /** @deprecated use `UpdatePlayProgressMediaResponseBody$Outbound` instead. */ + export type Outbound = UpdatePlayProgressMediaResponseBody$Outbound; +} + /** @internal */ export const UpdatePlayProgressErrors$inboundSchema: z.ZodType< UpdatePlayProgressErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const UpdatePlayProgressErrors$outboundSchema: z.ZodType< z.ZodTypeDef, UpdatePlayProgressErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/errors/uploadplaylist.ts b/src/sdk/models/errors/uploadplaylist.ts index 36bae693..8817b337 100644 --- a/src/sdk/models/errors/uploadplaylist.ts +++ b/src/sdk/models/errors/uploadplaylist.ts @@ -5,6 +5,55 @@ import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; +export type UploadPlaylistPlaylistsErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export type UploadPlaylistPlaylistsResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +export class UploadPlaylistPlaylistsResponseBody extends Error { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: UploadPlaylistPlaylistsResponseBodyData; + + constructor(err: UploadPlaylistPlaylistsResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.errors != null) { + this.errors = err.errors; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "UploadPlaylistPlaylistsResponseBody"; + } +} + export type UploadPlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -12,7 +61,7 @@ export type UploadPlaylistErrors = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export type UploadPlaylistResponseBodyData = { errors?: Array | undefined; @@ -23,7 +72,7 @@ export type UploadPlaylistResponseBodyData = { }; /** - * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * Bad Request - A parameter was not specified, or was specified incorrectly. */ export class UploadPlaylistResponseBody extends Error { errors?: Array | undefined; @@ -54,15 +103,122 @@ export class UploadPlaylistResponseBody extends Error { } } +/** @internal */ +export const UploadPlaylistPlaylistsErrors$inboundSchema: z.ZodType< + UploadPlaylistPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type UploadPlaylistPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const UploadPlaylistPlaylistsErrors$outboundSchema: z.ZodType< + UploadPlaylistPlaylistsErrors$Outbound, + z.ZodTypeDef, + UploadPlaylistPlaylistsErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UploadPlaylistPlaylistsErrors$ { + /** @deprecated use `UploadPlaylistPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = UploadPlaylistPlaylistsErrors$inboundSchema; + /** @deprecated use `UploadPlaylistPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = UploadPlaylistPlaylistsErrors$outboundSchema; + /** @deprecated use `UploadPlaylistPlaylistsErrors$Outbound` instead. */ + export type Outbound = UploadPlaylistPlaylistsErrors$Outbound; +} + +/** @internal */ +export const UploadPlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< + UploadPlaylistPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => UploadPlaylistPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new UploadPlaylistPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type UploadPlaylistPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const UploadPlaylistPlaylistsResponseBody$outboundSchema: z.ZodType< + UploadPlaylistPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + UploadPlaylistPlaylistsResponseBody +> = z + .instanceof(UploadPlaylistPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => UploadPlaylistPlaylistsErrors$outboundSchema)) + .optional(), + rawResponse: z + .instanceof(Response) + .transform(() => { + throw new Error("Response cannot be serialized"); + }) + .optional(), + }) + .transform((v) => { + return remap$(v, { + rawResponse: "RawResponse", + }); + }) + ); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UploadPlaylistPlaylistsResponseBody$ { + /** @deprecated use `UploadPlaylistPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = UploadPlaylistPlaylistsResponseBody$inboundSchema; + /** @deprecated use `UploadPlaylistPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = UploadPlaylistPlaylistsResponseBody$outboundSchema; + /** @deprecated use `UploadPlaylistPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = UploadPlaylistPlaylistsResponseBody$Outbound; +} + /** @internal */ export const UploadPlaylistErrors$inboundSchema: z.ZodType< UploadPlaylistErrors, z.ZodTypeDef, unknown > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** @internal */ @@ -78,9 +234,9 @@ export const UploadPlaylistErrors$outboundSchema: z.ZodType< z.ZodTypeDef, UploadPlaylistErrors > = z.object({ - code: z.number().optional(), + code: z.number().int().optional(), message: z.string().optional(), - status: z.number().optional(), + status: z.number().int().optional(), }); /** diff --git a/src/sdk/models/operations/getuserdetails.ts b/src/sdk/models/operations/getuserdetails.ts index 0a170ce6..c79e2092 100644 --- a/src/sdk/models/operations/getuserdetails.ts +++ b/src/sdk/models/operations/getuserdetails.ts @@ -376,7 +376,7 @@ export type GetUserDetailsUserPlexAccount = { */ id: number; /** - * Unix epoch datetime the account joined Plex + * Unix epoch datetime */ joinedAt: number; /** @@ -407,7 +407,7 @@ export type GetUserDetailsUserPlexAccount = { */ protected?: boolean | undefined; /** - * Unix epoch datetime the authtoken expires + * Unix epoch datetime */ rememberExpiresAt: number; /** diff --git a/src/sdk/models/operations/postuserssignindata.ts b/src/sdk/models/operations/postuserssignindata.ts index 8ec7962b..59ad3655 100644 --- a/src/sdk/models/operations/postuserssignindata.ts +++ b/src/sdk/models/operations/postuserssignindata.ts @@ -26,6 +26,7 @@ export type PostUsersSignInDataRequestBody = { login: string; password: string; rememberMe?: boolean | undefined; + verificationCode?: string | undefined; }; export type PostUsersSignInDataRequest = { @@ -437,7 +438,7 @@ export type PostUsersSignInDataUserPlexAccount = { */ id: number; /** - * Unix epoch datetime the account joined Plex + * Unix epoch datetime */ joinedAt: number; /** @@ -468,7 +469,7 @@ export type PostUsersSignInDataUserPlexAccount = { */ protected?: boolean | undefined; /** - * Unix epoch datetime the authtoken expires + * Unix epoch datetime */ rememberExpiresAt: number; /** @@ -593,6 +594,7 @@ export const PostUsersSignInDataRequestBody$inboundSchema: z.ZodType< login: z.string(), password: z.string(), rememberMe: z.boolean().default(false), + verificationCode: z.string().optional(), }); /** @internal */ @@ -600,6 +602,7 @@ export type PostUsersSignInDataRequestBody$Outbound = { login: string; password: string; rememberMe: boolean; + verificationCode?: string | undefined; }; /** @internal */ @@ -611,6 +614,7 @@ export const PostUsersSignInDataRequestBody$outboundSchema: z.ZodType< login: z.string(), password: z.string(), rememberMe: z.boolean().default(false), + verificationCode: z.string().optional(), }); /**