diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml new file mode 100644 index 00000000..689ced63 --- /dev/null +++ b/.github/workflows/sdk_generation.yaml @@ -0,0 +1,30 @@ +name: Generate +permissions: + checks: write + contents: write + pull-requests: write + statuses: write +"on": + workflow_dispatch: + inputs: + force: + description: Force generation of SDKs + type: boolean + default: false + set_version: + description: optionally set a specific SDK version + type: string + schedule: + - cron: 0 0 * * * +jobs: + generate: + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + force: ${{ github.event.inputs.force }} + mode: direct + set_version: ${{ github.event.inputs.set_version }} + speakeasy_version: latest + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + npm_token: ${{ secrets.NPM_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/speakeasy_sdk_generation.yml b/.github/workflows/speakeasy_sdk_generation.yml deleted file mode 100644 index 2081e564..00000000 --- a/.github/workflows/speakeasy_sdk_generation.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Generate -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - push_code_samples_only: - description: Force push only code samples from SDK generation - type: boolean - default: false - schedule: - - cron: 0 0 * * * -jobs: - generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: direct - push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }} - speakeasy_version: latest - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/tagging.yaml b/.github/workflows/tagging.yaml deleted file mode 100644 index 3ea4a0f0..00000000 --- a/.github/workflows/tagging.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Speakeasy Tagging -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - push: - branches: - - main - paths: [] - workflow_dispatch: {} -jobs: - tag: - uses: speakeasy-api/sdk-generation-action/.github/workflows/tag.yaml@v15 - with: - registry_tags: main - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.gitignore b/.gitignore index b596dbd5..2278ac24 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +/sdk/models/errors +/sdk/types +/__tests__ /funcs /core.* /esm diff --git a/.npmignore b/.npmignore index 3ef05d12..06cd8abf 100644 --- a/.npmignore +++ b/.npmignore @@ -7,3 +7,4 @@ /cjs /.tshy /.tshy-* +/__tests__ diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ccef3cbc..7c84ba90 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: f627107f2ac6c53325be4f291ae2dea7 + docChecksum: eae2a027b2467f033ac397a5d9f0add5 docVersion: 0.0.3 - speakeasyVersion: 1.390.7 - generationVersion: 2.409.8 - releaseVersion: 0.20.0 - configChecksum: 1eb0f35569735ddf4ea84adabb3887ba + speakeasyVersion: 1.392.1 + generationVersion: 2.411.9 + releaseVersion: 0.20.1 + configChecksum: f629192d4499bb36b01927f9b0146f69 repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -15,7 +15,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.11 - core: 3.16.1 + core: 3.16.4 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 downloadStreams: 0.1.1 @@ -34,104 +34,662 @@ features: sdkHooks: 0.1.0 unions: 2.85.7 generatedFiles: - - src/funcs/serverGetServerCapabilities.ts - - src/funcs/serverGetServerPreferences.ts - - src/funcs/serverGetAvailableClients.ts - - src/funcs/serverGetDevices.ts - - src/funcs/serverGetServerIdentity.ts - - src/funcs/serverGetMyPlexAccount.ts - - src/funcs/serverGetResizedPhoto.ts - - src/funcs/serverGetMediaProviders.ts - - src/funcs/serverGetServerList.ts - - src/funcs/mediaMarkPlayed.ts - - src/funcs/mediaMarkUnplayed.ts - - src/funcs/mediaUpdatePlayProgress.ts - - src/funcs/mediaGetBannerImage.ts - - src/funcs/mediaGetThumbImage.ts - - src/funcs/videoGetTimeline.ts - - src/funcs/videoStartUniversalTranscode.ts - - src/funcs/activitiesGetServerActivities.ts - - src/funcs/activitiesCancelServerActivities.ts - - src/funcs/butlerGetButlerTasks.ts - - src/funcs/butlerStartAllTasks.ts - - src/funcs/butlerStopAllTasks.ts - - src/funcs/butlerStartTask.ts - - src/funcs/butlerStopTask.ts - - src/funcs/plexGetCompanionsData.ts - - src/funcs/plexGetUserFriends.ts - - src/funcs/plexGetGeoData.ts - - src/funcs/plexGetHomeData.ts - - src/funcs/plexGetServerResources.ts - - src/funcs/plexGetPin.ts - - src/funcs/plexGetTokenByPinId.ts - - src/funcs/hubsGetGlobalHubs.ts - - src/funcs/hubsGetLibraryHubs.ts - - src/funcs/searchPerformSearch.ts - - src/funcs/searchPerformVoiceSearch.ts - - src/funcs/searchGetSearchResults.ts - - src/funcs/libraryGetFileHash.ts - - src/funcs/libraryGetRecentlyAdded.ts - - src/funcs/libraryGetAllLibraries.ts - - src/funcs/libraryGetLibraryDetails.ts - - src/funcs/libraryDeleteLibrary.ts - - src/funcs/libraryGetLibraryItems.ts - - src/funcs/libraryGetRefreshLibraryMetadata.ts - - src/funcs/libraryGetSearchLibrary.ts - - src/funcs/libraryGetMetaDataByRatingKey.ts - - src/funcs/libraryGetMetadataChildren.ts - - src/funcs/libraryGetTopWatchedContent.ts - - src/funcs/libraryGetOnDeck.ts - - src/funcs/watchlistGetWatchList.ts - - src/funcs/logLogLine.ts - - src/funcs/logLogMultiLine.ts - - src/funcs/logEnablePaperTrail.ts - - src/funcs/playlistsCreatePlaylist.ts - - src/funcs/playlistsGetPlaylists.ts - - src/funcs/playlistsGetPlaylist.ts - - src/funcs/playlistsDeletePlaylist.ts - - src/funcs/playlistsUpdatePlaylist.ts - - src/funcs/playlistsGetPlaylistContents.ts - - src/funcs/playlistsClearPlaylistContents.ts - - src/funcs/playlistsAddPlaylistContents.ts - - src/funcs/playlistsUploadPlaylist.ts - - src/funcs/authenticationGetTransientToken.ts - - src/funcs/authenticationGetSourceConnectionInformation.ts - - src/funcs/authenticationGetUserDetails.ts - - src/funcs/authenticationPostUsersSignInData.ts - - src/funcs/statisticsGetStatistics.ts - - src/funcs/statisticsGetResourcesStatistics.ts - - src/funcs/statisticsGetBandwidthStatistics.ts - - src/funcs/sessionsGetSessions.ts - - src/funcs/sessionsGetSessionHistory.ts - - src/funcs/sessionsGetTranscodeSessions.ts - - src/funcs/sessionsStopTranscodeSession.ts - - src/funcs/updaterGetUpdateStatus.ts - - src/funcs/updaterCheckForUpdates.ts - - src/funcs/updaterApplyUpdates.ts - - src/sdk/server.ts - - src/sdk/media.ts - - src/sdk/video.ts - - src/sdk/activities.ts - - src/sdk/butler.ts - - src/sdk/plex.ts - - src/sdk/hubs.ts - - src/sdk/search.ts - - src/sdk/library.ts - - src/sdk/watchlist.ts - - src/sdk/log.ts - - src/sdk/playlists.ts - - src/sdk/authentication.ts - - src/sdk/statistics.ts - - src/sdk/sessions.ts - - src/sdk/updater.ts - - src/sdk/sdk.ts - .eslintrc.cjs + - .gitattributes - .npmignore + - CONTRIBUTING.md - FUNCTIONS.md - RUNTIMES.md + - USAGE.md + - docs/lib/utils/retryconfig.md + - docs/sdk/models/errors/addplaylistcontentserrors.md + - docs/sdk/models/errors/addplaylistcontentsresponsebody.md + - docs/sdk/models/errors/applyupdateserrors.md + - docs/sdk/models/errors/applyupdatesresponsebody.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/clearplaylistcontentserrors.md + - docs/sdk/models/errors/clearplaylistcontentsresponsebody.md + - docs/sdk/models/errors/createplaylisterrors.md + - docs/sdk/models/errors/createplaylistresponsebody.md + - docs/sdk/models/errors/deletelibraryerrors.md + - docs/sdk/models/errors/deletelibraryresponsebody.md + - docs/sdk/models/errors/deleteplaylisterrors.md + - docs/sdk/models/errors/deleteplaylistresponsebody.md + - docs/sdk/models/errors/enablepapertrailerrors.md + - docs/sdk/models/errors/enablepapertrailresponsebody.md + - docs/sdk/models/errors/errors.md + - docs/sdk/models/errors/getalllibrarieserrors.md + - docs/sdk/models/errors/getalllibrariesresponsebody.md + - docs/sdk/models/errors/getavailableclientserrors.md + - docs/sdk/models/errors/getavailableclientsresponsebody.md + - docs/sdk/models/errors/getbandwidthstatisticserrors.md + - docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md + - docs/sdk/models/errors/getbannerimageerrors.md + - docs/sdk/models/errors/getbannerimageresponsebody.md + - docs/sdk/models/errors/getbutlertaskserrors.md + - docs/sdk/models/errors/getbutlertasksresponsebody.md + - docs/sdk/models/errors/getcompanionsdataerrors.md + - docs/sdk/models/errors/getcompanionsdataresponsebody.md + - docs/sdk/models/errors/getdeviceserrors.md + - docs/sdk/models/errors/getdevicesresponsebody.md + - docs/sdk/models/errors/getfilehasherrors.md + - docs/sdk/models/errors/getfilehashresponsebody.md + - docs/sdk/models/errors/getgeodataerrors.md + - docs/sdk/models/errors/getgeodataresponsebody.md + - docs/sdk/models/errors/getglobalhubserrors.md + - docs/sdk/models/errors/getglobalhubsresponsebody.md + - docs/sdk/models/errors/gethomedataerrors.md + - docs/sdk/models/errors/gethomedataresponsebody.md + - docs/sdk/models/errors/getlibrarydetailserrors.md + - docs/sdk/models/errors/getlibrarydetailsresponsebody.md + - docs/sdk/models/errors/getlibraryhubserrors.md + - docs/sdk/models/errors/getlibraryhubsresponsebody.md + - docs/sdk/models/errors/getlibraryitemserrors.md + - docs/sdk/models/errors/getlibraryitemsresponsebody.md + - docs/sdk/models/errors/getmediaproviderserrors.md + - docs/sdk/models/errors/getmediaprovidersresponsebody.md + - docs/sdk/models/errors/getmetadatabyratingkeyerrors.md + - docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md + - docs/sdk/models/errors/getmetadatachildrenerrors.md + - docs/sdk/models/errors/getmetadatachildrenresponsebody.md + - docs/sdk/models/errors/getmyplexaccounterrors.md + - docs/sdk/models/errors/getmyplexaccountresponsebody.md + - docs/sdk/models/errors/getondeckerrors.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/getplaylistcontentsresponsebody.md + - docs/sdk/models/errors/getplaylisterrors.md + - docs/sdk/models/errors/getplaylistresponsebody.md + - docs/sdk/models/errors/getplaylistserrors.md + - docs/sdk/models/errors/getplaylistsresponsebody.md + - docs/sdk/models/errors/getrecentlyaddederrors.md + - docs/sdk/models/errors/getrecentlyaddedresponsebody.md + - docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md + - docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md + - docs/sdk/models/errors/getresizedphotoerrors.md + - docs/sdk/models/errors/getresizedphotoresponsebody.md + - docs/sdk/models/errors/getresourcesstatisticserrors.md + - docs/sdk/models/errors/getresourcesstatisticsresponsebody.md + - docs/sdk/models/errors/getsearchlibraryerrors.md + - docs/sdk/models/errors/getsearchlibraryresponsebody.md + - docs/sdk/models/errors/getsearchresultserrors.md + - docs/sdk/models/errors/getsearchresultsresponsebody.md + - docs/sdk/models/errors/getserveractivitieserrors.md + - docs/sdk/models/errors/getserveractivitiesresponsebody.md + - docs/sdk/models/errors/getservercapabilitiesresponsebody.md + - docs/sdk/models/errors/getserveridentityresponsebody.md + - docs/sdk/models/errors/getserverlisterrors.md + - docs/sdk/models/errors/getserverlistresponsebody.md + - docs/sdk/models/errors/getserverpreferenceserrors.md + - docs/sdk/models/errors/getserverpreferencesresponsebody.md + - docs/sdk/models/errors/getserverresourceserrors.md + - docs/sdk/models/errors/getserverresourcesresponsebody.md + - docs/sdk/models/errors/getsessionhistoryerrors.md + - docs/sdk/models/errors/getsessionhistoryresponsebody.md + - docs/sdk/models/errors/getsessionserrors.md + - docs/sdk/models/errors/getsessionsresponsebody.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/getthumbimageerrors.md + - docs/sdk/models/errors/getthumbimageresponsebody.md + - docs/sdk/models/errors/gettimelineerrors.md + - docs/sdk/models/errors/gettimelineresponsebody.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/gettopwatchedcontentresponsebody.md + - docs/sdk/models/errors/gettranscodesessionserrors.md + - docs/sdk/models/errors/gettranscodesessionsresponsebody.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/getuserdetailserrors.md + - docs/sdk/models/errors/getuserdetailsresponsebody.md + - docs/sdk/models/errors/getuserfriendserrors.md + - docs/sdk/models/errors/getuserfriendsresponsebody.md + - docs/sdk/models/errors/getwatchlisterrors.md + - docs/sdk/models/errors/getwatchlistresponsebody.md + - docs/sdk/models/errors/loglineerrors.md + - docs/sdk/models/errors/loglineresponsebody.md + - docs/sdk/models/errors/logmultilineerrors.md + - docs/sdk/models/errors/logmultilineresponsebody.md + - docs/sdk/models/errors/markplayederrors.md + - docs/sdk/models/errors/markplayedresponsebody.md + - docs/sdk/models/errors/markunplayederrors.md + - docs/sdk/models/errors/markunplayedresponsebody.md + - docs/sdk/models/errors/performsearcherrors.md + - docs/sdk/models/errors/performsearchresponsebody.md + - docs/sdk/models/errors/performvoicesearcherrors.md + - docs/sdk/models/errors/performvoicesearchresponsebody.md + - docs/sdk/models/errors/postuserssignindataerrors.md + - docs/sdk/models/errors/postuserssignindataresponsebody.md + - docs/sdk/models/errors/startalltaskserrors.md + - docs/sdk/models/errors/startalltasksresponsebody.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/stopalltaskserrors.md + - docs/sdk/models/errors/stopalltasksresponsebody.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/updateplaylisterrors.md + - docs/sdk/models/errors/updateplaylistresponsebody.md + - docs/sdk/models/errors/updateplayprogresserrors.md + - docs/sdk/models/errors/updateplayprogressresponsebody.md + - docs/sdk/models/errors/uploadplaylisterrors.md + - docs/sdk/models/errors/uploadplaylistresponsebody.md + - docs/sdk/models/operations/account.md + - docs/sdk/models/operations/activity.md + - docs/sdk/models/operations/addplaylistcontentsmediacontainer.md + - docs/sdk/models/operations/addplaylistcontentsmetadata.md + - docs/sdk/models/operations/addplaylistcontentsrequest.md + - docs/sdk/models/operations/addplaylistcontentsresponse.md + - docs/sdk/models/operations/addplaylistcontentsresponsebody.md + - docs/sdk/models/operations/applyupdatesrequest.md + - docs/sdk/models/operations/applyupdatesresponse.md + - docs/sdk/models/operations/autoselectsubtitle.md + - docs/sdk/models/operations/billing.md + - docs/sdk/models/operations/butlertask.md + - docs/sdk/models/operations/butlertasks.md + - docs/sdk/models/operations/cancelserveractivitiesrequest.md + - docs/sdk/models/operations/cancelserveractivitiesresponse.md + - docs/sdk/models/operations/checkforupdatesrequest.md + - docs/sdk/models/operations/checkforupdatesresponse.md + - docs/sdk/models/operations/clearplaylistcontentsrequest.md + - docs/sdk/models/operations/clearplaylistcontentsresponse.md + - docs/sdk/models/operations/connections.md + - docs/sdk/models/operations/context.md + - docs/sdk/models/operations/country.md + - docs/sdk/models/operations/createplaylistmediacontainer.md + - docs/sdk/models/operations/createplaylistmetadata.md + - docs/sdk/models/operations/createplaylistqueryparamtype.md + - docs/sdk/models/operations/createplaylistrequest.md + - docs/sdk/models/operations/createplaylistresponse.md + - docs/sdk/models/operations/createplaylistresponsebody.md + - docs/sdk/models/operations/defaultsubtitleaccessibility.md + - docs/sdk/models/operations/defaultsubtitleforced.md + - docs/sdk/models/operations/deletelibraryrequest.md + - docs/sdk/models/operations/deletelibraryresponse.md + - docs/sdk/models/operations/deleteplaylistrequest.md + - docs/sdk/models/operations/deleteplaylistresponse.md + - docs/sdk/models/operations/device.md + - docs/sdk/models/operations/director.md + - docs/sdk/models/operations/directory.md + - docs/sdk/models/operations/download.md + - docs/sdk/models/operations/enablepapertrailresponse.md + - docs/sdk/models/operations/feature.md + - docs/sdk/models/operations/features.md + - docs/sdk/models/operations/field.md + - docs/sdk/models/operations/fieldtype.md + - docs/sdk/models/operations/filter.md + - docs/sdk/models/operations/force.md + - docs/sdk/models/operations/friend.md + - docs/sdk/models/operations/genre.md + - docs/sdk/models/operations/geodata.md + - docs/sdk/models/operations/getalllibrariesdirectory.md + - docs/sdk/models/operations/getalllibrariesmediacontainer.md + - docs/sdk/models/operations/getalllibrariesresponse.md + - docs/sdk/models/operations/getalllibrariesresponsebody.md + - docs/sdk/models/operations/getavailableclientsmediacontainer.md + - docs/sdk/models/operations/getavailableclientsresponse.md + - docs/sdk/models/operations/getavailableclientsresponsebody.md + - docs/sdk/models/operations/getbandwidthstatisticsaccount.md + - docs/sdk/models/operations/getbandwidthstatisticsdevice.md + - docs/sdk/models/operations/getbandwidthstatisticsmediacontainer.md + - docs/sdk/models/operations/getbandwidthstatisticsrequest.md + - docs/sdk/models/operations/getbandwidthstatisticsresponse.md + - docs/sdk/models/operations/getbandwidthstatisticsresponsebody.md + - docs/sdk/models/operations/getbannerimagerequest.md + - docs/sdk/models/operations/getbannerimageresponse.md + - docs/sdk/models/operations/getbutlertasksresponse.md + - docs/sdk/models/operations/getbutlertasksresponsebody.md + - docs/sdk/models/operations/getcompanionsdataresponse.md + - docs/sdk/models/operations/getdevicesmediacontainer.md + - docs/sdk/models/operations/getdevicesresponse.md + - docs/sdk/models/operations/getdevicesresponsebody.md + - docs/sdk/models/operations/getfilehashrequest.md + - docs/sdk/models/operations/getfilehashresponse.md + - docs/sdk/models/operations/getgeodatageodata.md + - docs/sdk/models/operations/getgeodataresponse.md + - docs/sdk/models/operations/getglobalhubsmediacontainer.md + - docs/sdk/models/operations/getglobalhubsmetadata.md + - docs/sdk/models/operations/getglobalhubsrequest.md + - docs/sdk/models/operations/getglobalhubsresponse.md + - docs/sdk/models/operations/getglobalhubsresponsebody.md + - docs/sdk/models/operations/gethomedataresponse.md + - docs/sdk/models/operations/gethomedataresponsebody.md + - docs/sdk/models/operations/getlibrarydetailsdirectory.md + - docs/sdk/models/operations/getlibrarydetailsfilter.md + - docs/sdk/models/operations/getlibrarydetailsmediacontainer.md + - docs/sdk/models/operations/getlibrarydetailsrequest.md + - docs/sdk/models/operations/getlibrarydetailsresponse.md + - docs/sdk/models/operations/getlibrarydetailsresponsebody.md + - docs/sdk/models/operations/getlibrarydetailstype.md + - docs/sdk/models/operations/getlibraryhubscountry.md + - docs/sdk/models/operations/getlibraryhubsdirector.md + - docs/sdk/models/operations/getlibraryhubsgenre.md + - docs/sdk/models/operations/getlibraryhubshub.md + - docs/sdk/models/operations/getlibraryhubsmedia.md + - docs/sdk/models/operations/getlibraryhubsmediacontainer.md + - docs/sdk/models/operations/getlibraryhubsmetadata.md + - docs/sdk/models/operations/getlibraryhubspart.md + - docs/sdk/models/operations/getlibraryhubsrequest.md + - docs/sdk/models/operations/getlibraryhubsresponse.md + - docs/sdk/models/operations/getlibraryhubsresponsebody.md + - docs/sdk/models/operations/getlibraryhubsrole.md + - docs/sdk/models/operations/getlibraryhubswriter.md + - docs/sdk/models/operations/getlibraryitemscountry.md + - docs/sdk/models/operations/getlibraryitemsdirector.md + - docs/sdk/models/operations/getlibraryitemsgenre.md + - docs/sdk/models/operations/getlibraryitemsmedia.md + - docs/sdk/models/operations/getlibraryitemsmediacontainer.md + - docs/sdk/models/operations/getlibraryitemsmetadata.md + - docs/sdk/models/operations/getlibraryitemspart.md + - docs/sdk/models/operations/getlibraryitemsrequest.md + - docs/sdk/models/operations/getlibraryitemsresponse.md + - docs/sdk/models/operations/getlibraryitemsresponsebody.md + - docs/sdk/models/operations/getlibraryitemsrole.md + - docs/sdk/models/operations/getlibraryitemswriter.md + - docs/sdk/models/operations/getmediaprovidersdirectory.md + - docs/sdk/models/operations/getmediaprovidersmediacontainer.md + - docs/sdk/models/operations/getmediaprovidersrequest.md + - docs/sdk/models/operations/getmediaprovidersresponse.md + - docs/sdk/models/operations/getmediaprovidersresponsebody.md + - docs/sdk/models/operations/getmetadatabyratingkeycountry.md + - docs/sdk/models/operations/getmetadatabyratingkeydirector.md + - docs/sdk/models/operations/getmetadatabyratingkeygenre.md + - docs/sdk/models/operations/getmetadatabyratingkeymedia.md + - docs/sdk/models/operations/getmetadatabyratingkeymediacontainer.md + - docs/sdk/models/operations/getmetadatabyratingkeymetadata.md + - docs/sdk/models/operations/getmetadatabyratingkeypart.md + - docs/sdk/models/operations/getmetadatabyratingkeyrequest.md + - docs/sdk/models/operations/getmetadatabyratingkeyresponse.md + - docs/sdk/models/operations/getmetadatabyratingkeyresponsebody.md + - docs/sdk/models/operations/getmetadatabyratingkeyrole.md + - docs/sdk/models/operations/getmetadatabyratingkeywriter.md + - docs/sdk/models/operations/getmetadatachildrendirectory.md + - docs/sdk/models/operations/getmetadatachildrenmediacontainer.md + - docs/sdk/models/operations/getmetadatachildrenmetadata.md + - docs/sdk/models/operations/getmetadatachildrenrequest.md + - docs/sdk/models/operations/getmetadatachildrenresponse.md + - docs/sdk/models/operations/getmetadatachildrenresponsebody.md + - docs/sdk/models/operations/getmyplexaccountresponse.md + - docs/sdk/models/operations/getmyplexaccountresponsebody.md + - docs/sdk/models/operations/getondeckguids.md + - docs/sdk/models/operations/getondeckmedia.md + - docs/sdk/models/operations/getondeckmediacontainer.md + - docs/sdk/models/operations/getondeckmetadata.md + - docs/sdk/models/operations/getondeckpart.md + - docs/sdk/models/operations/getondeckresponse.md + - docs/sdk/models/operations/getondeckresponsebody.md + - docs/sdk/models/operations/getondeckstream.md + - docs/sdk/models/operations/getpinauthpincontainer.md + - docs/sdk/models/operations/getpinglobals.md + - docs/sdk/models/operations/getpinrequest.md + - docs/sdk/models/operations/getpinresponse.md + - docs/sdk/models/operations/getplaylistcontentscountry.md + - docs/sdk/models/operations/getplaylistcontentsdirector.md + - docs/sdk/models/operations/getplaylistcontentsgenre.md + - docs/sdk/models/operations/getplaylistcontentsmedia.md + - docs/sdk/models/operations/getplaylistcontentsmediacontainer.md + - docs/sdk/models/operations/getplaylistcontentsmetadata.md + - docs/sdk/models/operations/getplaylistcontentspart.md + - docs/sdk/models/operations/getplaylistcontentsqueryparamtype.md + - docs/sdk/models/operations/getplaylistcontentsrequest.md + - docs/sdk/models/operations/getplaylistcontentsresponse.md + - docs/sdk/models/operations/getplaylistcontentsresponsebody.md + - docs/sdk/models/operations/getplaylistcontentsrole.md + - docs/sdk/models/operations/getplaylistcontentswriter.md + - docs/sdk/models/operations/getplaylistmediacontainer.md + - docs/sdk/models/operations/getplaylistmetadata.md + - docs/sdk/models/operations/getplaylistrequest.md + - docs/sdk/models/operations/getplaylistresponse.md + - docs/sdk/models/operations/getplaylistresponsebody.md + - docs/sdk/models/operations/getplaylistsmediacontainer.md + - docs/sdk/models/operations/getplaylistsmetadata.md + - docs/sdk/models/operations/getplaylistsrequest.md + - docs/sdk/models/operations/getplaylistsresponse.md + - docs/sdk/models/operations/getplaylistsresponsebody.md + - docs/sdk/models/operations/getrecentlyaddedmediacontainer.md + - docs/sdk/models/operations/getrecentlyaddedmetadata.md + - docs/sdk/models/operations/getrecentlyaddedrequest.md + - docs/sdk/models/operations/getrecentlyaddedresponse.md + - docs/sdk/models/operations/getrecentlyaddedresponsebody.md + - docs/sdk/models/operations/getrefreshlibrarymetadatarequest.md + - docs/sdk/models/operations/getrefreshlibrarymetadataresponse.md + - docs/sdk/models/operations/getresizedphotorequest.md + - docs/sdk/models/operations/getresizedphotoresponse.md + - docs/sdk/models/operations/getresourcesstatisticsmediacontainer.md + - docs/sdk/models/operations/getresourcesstatisticsrequest.md + - docs/sdk/models/operations/getresourcesstatisticsresponse.md + - docs/sdk/models/operations/getresourcesstatisticsresponsebody.md + - docs/sdk/models/operations/getsearchlibrarymediacontainer.md + - docs/sdk/models/operations/getsearchlibrarymetadata.md + - docs/sdk/models/operations/getsearchlibraryrequest.md + - docs/sdk/models/operations/getsearchlibraryresponse.md + - docs/sdk/models/operations/getsearchlibraryresponsebody.md + - docs/sdk/models/operations/getsearchresultscountry.md + - docs/sdk/models/operations/getsearchresultsdirector.md + - docs/sdk/models/operations/getsearchresultsgenre.md + - docs/sdk/models/operations/getsearchresultsmedia.md + - docs/sdk/models/operations/getsearchresultsmediacontainer.md + - docs/sdk/models/operations/getsearchresultsmetadata.md + - docs/sdk/models/operations/getsearchresultspart.md + - docs/sdk/models/operations/getsearchresultsrequest.md + - docs/sdk/models/operations/getsearchresultsresponse.md + - docs/sdk/models/operations/getsearchresultsresponsebody.md + - docs/sdk/models/operations/getsearchresultsrole.md + - docs/sdk/models/operations/getsearchresultswriter.md + - docs/sdk/models/operations/getserveractivitiesmediacontainer.md + - docs/sdk/models/operations/getserveractivitiesresponse.md + - docs/sdk/models/operations/getserveractivitiesresponsebody.md + - docs/sdk/models/operations/getservercapabilitiesresponse.md + - docs/sdk/models/operations/getservercapabilitiesresponsebody.md + - docs/sdk/models/operations/getserveridentitymediacontainer.md + - docs/sdk/models/operations/getserveridentityresponse.md + - docs/sdk/models/operations/getserveridentityresponsebody.md + - docs/sdk/models/operations/getserverlistmediacontainer.md + - docs/sdk/models/operations/getserverlistresponse.md + - docs/sdk/models/operations/getserverlistresponsebody.md + - docs/sdk/models/operations/getserverlistserver.md + - docs/sdk/models/operations/getserverpreferencesmediacontainer.md + - docs/sdk/models/operations/getserverpreferencesresponse.md + - docs/sdk/models/operations/getserverpreferencesresponsebody.md + - docs/sdk/models/operations/getserverresourcesglobals.md + - docs/sdk/models/operations/getserverresourcesrequest.md + - docs/sdk/models/operations/getserverresourcesresponse.md + - docs/sdk/models/operations/getsessionhistorymediacontainer.md + - docs/sdk/models/operations/getsessionhistorymetadata.md + - docs/sdk/models/operations/getsessionhistoryrequest.md + - docs/sdk/models/operations/getsessionhistoryresponse.md + - docs/sdk/models/operations/getsessionhistoryresponsebody.md + - docs/sdk/models/operations/getsessionsmedia.md + - docs/sdk/models/operations/getsessionsmediacontainer.md + - docs/sdk/models/operations/getsessionsmetadata.md + - docs/sdk/models/operations/getsessionspart.md + - docs/sdk/models/operations/getsessionsresponse.md + - docs/sdk/models/operations/getsessionsresponsebody.md + - docs/sdk/models/operations/getsessionsstream.md + - docs/sdk/models/operations/getsessionsuser.md + - docs/sdk/models/operations/getsourceconnectioninformationrequest.md + - docs/sdk/models/operations/getsourceconnectioninformationresponse.md + - docs/sdk/models/operations/getstatisticsdevice.md + - docs/sdk/models/operations/getstatisticsmediacontainer.md + - docs/sdk/models/operations/getstatisticsrequest.md + - docs/sdk/models/operations/getstatisticsresponse.md + - docs/sdk/models/operations/getstatisticsresponsebody.md + - docs/sdk/models/operations/getthumbimagerequest.md + - docs/sdk/models/operations/getthumbimageresponse.md + - docs/sdk/models/operations/gettimelinerequest.md + - docs/sdk/models/operations/gettimelineresponse.md + - docs/sdk/models/operations/gettokenbypinidauthpincontainer.md + - docs/sdk/models/operations/gettokenbypinidgeodata.md + - docs/sdk/models/operations/gettokenbypinidglobals.md + - docs/sdk/models/operations/gettokenbypinidrequest.md + - docs/sdk/models/operations/gettokenbypinidresponse.md + - docs/sdk/models/operations/gettopwatchedcontentcountry.md + - docs/sdk/models/operations/gettopwatchedcontentgenre.md + - docs/sdk/models/operations/gettopwatchedcontentguids.md + - docs/sdk/models/operations/gettopwatchedcontentmediacontainer.md + - docs/sdk/models/operations/gettopwatchedcontentmetadata.md + - docs/sdk/models/operations/gettopwatchedcontentqueryparamtype.md + - docs/sdk/models/operations/gettopwatchedcontentrequest.md + - docs/sdk/models/operations/gettopwatchedcontentresponse.md + - docs/sdk/models/operations/gettopwatchedcontentresponsebody.md + - docs/sdk/models/operations/gettopwatchedcontentrole.md + - docs/sdk/models/operations/gettranscodesessionsmediacontainer.md + - docs/sdk/models/operations/gettranscodesessionsresponse.md + - docs/sdk/models/operations/gettranscodesessionsresponsebody.md + - docs/sdk/models/operations/gettransienttokenqueryparamtype.md + - docs/sdk/models/operations/gettransienttokenrequest.md + - docs/sdk/models/operations/gettransienttokenresponse.md + - docs/sdk/models/operations/getupdatestatusmediacontainer.md + - docs/sdk/models/operations/getupdatestatusresponse.md + - docs/sdk/models/operations/getupdatestatusresponsebody.md + - docs/sdk/models/operations/getuserdetailsauthenticationresponsestatus.md + - docs/sdk/models/operations/getuserdetailsauthenticationstatus.md + - docs/sdk/models/operations/getuserdetailsfeatures.md + - docs/sdk/models/operations/getuserdetailsrequest.md + - docs/sdk/models/operations/getuserdetailsresponse.md + - docs/sdk/models/operations/getuserdetailsstatus.md + - docs/sdk/models/operations/getuserdetailssubscription.md + - docs/sdk/models/operations/getuserdetailsuserplexaccount.md + - docs/sdk/models/operations/getuserfriendsresponse.md + - docs/sdk/models/operations/getwatchlistrequest.md + - docs/sdk/models/operations/getwatchlistresponse.md + - docs/sdk/models/operations/getwatchlistresponsebody.md + - docs/sdk/models/operations/guids.md + - docs/sdk/models/operations/hub.md + - docs/sdk/models/operations/image.md + - docs/sdk/models/operations/includecollections.md + - docs/sdk/models/operations/includedetails.md + - docs/sdk/models/operations/includeexternalmedia.md + - docs/sdk/models/operations/includeguids.md + - docs/sdk/models/operations/includehttps.md + - docs/sdk/models/operations/includeipv6.md + - docs/sdk/models/operations/includemeta.md + - docs/sdk/models/operations/includerelay.md + - docs/sdk/models/operations/internalpaymentmethod.md + - docs/sdk/models/operations/level.md + - docs/sdk/models/operations/librarysectionid.md + - docs/sdk/models/operations/libtype.md + - docs/sdk/models/operations/location.md + - docs/sdk/models/operations/loglinerequest.md + - docs/sdk/models/operations/loglineresponse.md + - docs/sdk/models/operations/logmultilineresponse.md + - docs/sdk/models/operations/mailingliststatus.md + - docs/sdk/models/operations/markplayedrequest.md + - docs/sdk/models/operations/markplayedresponse.md + - docs/sdk/models/operations/markunplayedrequest.md + - docs/sdk/models/operations/markunplayedresponse.md + - docs/sdk/models/operations/media.md + - docs/sdk/models/operations/mediacontainer.md + - docs/sdk/models/operations/mediaprovider.md + - docs/sdk/models/operations/mediareviewsvisibility.md + - docs/sdk/models/operations/metadata.md + - docs/sdk/models/operations/minsize.md + - docs/sdk/models/operations/myplex.md + - docs/sdk/models/operations/onlytransient.md + - docs/sdk/models/operations/operator.md + - docs/sdk/models/operations/part.md + - docs/sdk/models/operations/pastsubscription.md + - docs/sdk/models/operations/pathparamtaskname.md + - docs/sdk/models/operations/performsearchrequest.md + - docs/sdk/models/operations/performsearchresponse.md + - docs/sdk/models/operations/performvoicesearchrequest.md + - docs/sdk/models/operations/performvoicesearchresponse.md + - docs/sdk/models/operations/pivot.md + - docs/sdk/models/operations/player.md + - docs/sdk/models/operations/playlisttype.md + - docs/sdk/models/operations/plexdevice.md + - docs/sdk/models/operations/postuserssignindataauthenticationfeatures.md + - docs/sdk/models/operations/postuserssignindataauthenticationresponsestatus.md + - docs/sdk/models/operations/postuserssignindataauthenticationstatus.md + - docs/sdk/models/operations/postuserssignindataauthenticationsubscription.md + - docs/sdk/models/operations/postuserssignindataautoselectsubtitle.md + - docs/sdk/models/operations/postuserssignindatadefaultsubtitleaccessibility.md + - docs/sdk/models/operations/postuserssignindatadefaultsubtitleforced.md + - docs/sdk/models/operations/postuserssignindatafeatures.md + - docs/sdk/models/operations/postuserssignindataglobals.md + - docs/sdk/models/operations/postuserssignindatamailingliststatus.md + - docs/sdk/models/operations/postuserssignindatamediareviewsvisibility.md + - docs/sdk/models/operations/postuserssignindatarequest.md + - docs/sdk/models/operations/postuserssignindatarequestbody.md + - docs/sdk/models/operations/postuserssignindataresponse.md + - docs/sdk/models/operations/postuserssignindataservices.md + - docs/sdk/models/operations/postuserssignindatastate.md + - docs/sdk/models/operations/postuserssignindatastatus.md + - docs/sdk/models/operations/postuserssignindatasubscription.md + - docs/sdk/models/operations/postuserssignindatauserplexaccount.md + - docs/sdk/models/operations/postuserssignindatauserprofile.md + - docs/sdk/models/operations/postuserssignindatawatchedindicator.md + - docs/sdk/models/operations/producer.md + - docs/sdk/models/operations/provider.md + - docs/sdk/models/operations/queryparamfilter.md + - docs/sdk/models/operations/queryparamforce.md + - docs/sdk/models/operations/queryparamonlytransient.md + - docs/sdk/models/operations/queryparamsmart.md + - docs/sdk/models/operations/queryparamtype.md + - docs/sdk/models/operations/ratings.md + - docs/sdk/models/operations/release.md + - docs/sdk/models/operations/responsebody.md + - docs/sdk/models/operations/role.md + - docs/sdk/models/operations/scope.md + - docs/sdk/models/operations/server.md + - docs/sdk/models/operations/services.md + - docs/sdk/models/operations/session.md + - docs/sdk/models/operations/setting.md + - docs/sdk/models/operations/sharedservers.md + - docs/sdk/models/operations/sharedsources.md + - docs/sdk/models/operations/skip.md + - docs/sdk/models/operations/smart.md + - docs/sdk/models/operations/sort.md + - docs/sdk/models/operations/startalltasksresponse.md + - docs/sdk/models/operations/starttaskrequest.md + - docs/sdk/models/operations/starttaskresponse.md + - docs/sdk/models/operations/startuniversaltranscoderequest.md + - docs/sdk/models/operations/startuniversaltranscoderesponse.md + - docs/sdk/models/operations/state.md + - docs/sdk/models/operations/statisticsbandwidth.md + - docs/sdk/models/operations/statisticsmedia.md + - docs/sdk/models/operations/statisticsresources.md + - docs/sdk/models/operations/status.md + - docs/sdk/models/operations/stopalltasksresponse.md + - docs/sdk/models/operations/stoptaskrequest.md + - docs/sdk/models/operations/stoptaskresponse.md + - docs/sdk/models/operations/stoptranscodesessionrequest.md + - docs/sdk/models/operations/stoptranscodesessionresponse.md + - docs/sdk/models/operations/stream.md + - docs/sdk/models/operations/subscription.md + - docs/sdk/models/operations/tag.md + - docs/sdk/models/operations/taskname.md + - docs/sdk/models/operations/tonight.md + - docs/sdk/models/operations/transcodesession.md + - docs/sdk/models/operations/trials.md + - docs/sdk/models/operations/type.md + - docs/sdk/models/operations/updateplaylistrequest.md + - docs/sdk/models/operations/updateplaylistresponse.md + - docs/sdk/models/operations/updateplayprogressrequest.md + - docs/sdk/models/operations/updateplayprogressresponse.md + - docs/sdk/models/operations/uploadplaylistrequest.md + - docs/sdk/models/operations/uploadplaylistresponse.md + - docs/sdk/models/operations/upscale.md + - docs/sdk/models/operations/user.md + - docs/sdk/models/operations/userprofile.md + - docs/sdk/models/operations/watchedindicator.md + - docs/sdk/models/operations/writer.md + - docs/sdk/models/shared/security.md + - docs/sdks/activities/README.md + - docs/sdks/authentication/README.md + - docs/sdks/butler/README.md + - docs/sdks/hubs/README.md + - docs/sdks/library/README.md + - docs/sdks/log/README.md + - docs/sdks/media/README.md + - docs/sdks/playlists/README.md + - docs/sdks/plex/README.md + - docs/sdks/plexapi/README.md + - docs/sdks/search/README.md + - docs/sdks/server/README.md + - docs/sdks/sessions/README.md + - docs/sdks/statistics/README.md + - docs/sdks/updater/README.md + - docs/sdks/video/README.md + - docs/sdks/watchlist/README.md + - docs/types/rfcdate.md - jsr.json - package.json - src/core.ts + - src/funcs/activitiesCancelServerActivities.ts + - src/funcs/activitiesGetServerActivities.ts + - src/funcs/authenticationGetSourceConnectionInformation.ts + - src/funcs/authenticationGetTransientToken.ts + - src/funcs/authenticationGetUserDetails.ts + - src/funcs/authenticationPostUsersSignInData.ts + - src/funcs/butlerGetButlerTasks.ts + - src/funcs/butlerStartAllTasks.ts + - src/funcs/butlerStartTask.ts + - src/funcs/butlerStopAllTasks.ts + - src/funcs/butlerStopTask.ts + - src/funcs/hubsGetGlobalHubs.ts + - src/funcs/hubsGetLibraryHubs.ts + - src/funcs/libraryDeleteLibrary.ts + - src/funcs/libraryGetAllLibraries.ts + - src/funcs/libraryGetFileHash.ts + - src/funcs/libraryGetLibraryDetails.ts + - src/funcs/libraryGetLibraryItems.ts + - src/funcs/libraryGetMetaDataByRatingKey.ts + - src/funcs/libraryGetMetadataChildren.ts + - src/funcs/libraryGetOnDeck.ts + - src/funcs/libraryGetRecentlyAdded.ts + - src/funcs/libraryGetRefreshLibraryMetadata.ts + - src/funcs/libraryGetSearchLibrary.ts + - src/funcs/libraryGetTopWatchedContent.ts + - src/funcs/logEnablePaperTrail.ts + - src/funcs/logLogLine.ts + - src/funcs/logLogMultiLine.ts + - src/funcs/mediaGetBannerImage.ts + - src/funcs/mediaGetThumbImage.ts + - src/funcs/mediaMarkPlayed.ts + - src/funcs/mediaMarkUnplayed.ts + - src/funcs/mediaUpdatePlayProgress.ts + - src/funcs/playlistsAddPlaylistContents.ts + - src/funcs/playlistsClearPlaylistContents.ts + - src/funcs/playlistsCreatePlaylist.ts + - src/funcs/playlistsDeletePlaylist.ts + - src/funcs/playlistsGetPlaylist.ts + - src/funcs/playlistsGetPlaylistContents.ts + - src/funcs/playlistsGetPlaylists.ts + - src/funcs/playlistsUpdatePlaylist.ts + - src/funcs/playlistsUploadPlaylist.ts + - src/funcs/plexGetCompanionsData.ts + - src/funcs/plexGetGeoData.ts + - src/funcs/plexGetHomeData.ts + - src/funcs/plexGetPin.ts + - src/funcs/plexGetServerResources.ts + - src/funcs/plexGetTokenByPinId.ts + - src/funcs/plexGetUserFriends.ts + - src/funcs/searchGetSearchResults.ts + - src/funcs/searchPerformSearch.ts + - src/funcs/searchPerformVoiceSearch.ts + - src/funcs/serverGetAvailableClients.ts + - src/funcs/serverGetDevices.ts + - src/funcs/serverGetMediaProviders.ts + - src/funcs/serverGetMyPlexAccount.ts + - src/funcs/serverGetResizedPhoto.ts + - src/funcs/serverGetServerCapabilities.ts + - src/funcs/serverGetServerIdentity.ts + - src/funcs/serverGetServerList.ts + - src/funcs/serverGetServerPreferences.ts + - src/funcs/sessionsGetSessionHistory.ts + - src/funcs/sessionsGetSessions.ts + - src/funcs/sessionsGetTranscodeSessions.ts + - src/funcs/sessionsStopTranscodeSession.ts + - src/funcs/statisticsGetBandwidthStatistics.ts + - src/funcs/statisticsGetResourcesStatistics.ts + - src/funcs/statisticsGetStatistics.ts + - src/funcs/updaterApplyUpdates.ts + - src/funcs/updaterCheckForUpdates.ts + - src/funcs/updaterGetUpdateStatus.ts + - src/funcs/videoGetTimeline.ts + - src/funcs/videoStartUniversalTranscode.ts + - src/funcs/watchlistGetWatchList.ts + - src/hooks/hooks.ts + - src/hooks/index.ts + - src/hooks/types.ts - src/index.ts - src/lib/base64.ts - src/lib/config.ts @@ -148,667 +706,950 @@ generatedFiles: - src/lib/sdks.ts - src/lib/security.ts - src/lib/url.ts + - src/sdk/activities.ts + - src/sdk/authentication.ts + - src/sdk/butler.ts + - src/sdk/hubs.ts - src/sdk/index.ts - - src/models/httpclienterrors.ts - - src/models/sdkerror.ts - - src/models/sdkvalidationerror.ts - - src/types/blobs.ts - - src/types/constdatetime.ts - - src/types/enums.ts - - src/types/fp.ts - - src/types/index.ts - - src/types/operations.ts - - src/types/rfcdate.ts - - src/types/streams.ts + - src/sdk/library.ts + - src/sdk/log.ts + - src/sdk/media.ts + - src/sdk/models/errors/addplaylistcontents.ts + - src/sdk/models/errors/applyupdates.ts + - src/sdk/models/errors/cancelserveractivities.ts + - src/sdk/models/errors/checkforupdates.ts + - src/sdk/models/errors/clearplaylistcontents.ts + - src/sdk/models/errors/createplaylist.ts + - src/sdk/models/errors/deletelibrary.ts + - src/sdk/models/errors/deleteplaylist.ts + - src/sdk/models/errors/enablepapertrail.ts + - src/sdk/models/errors/getalllibraries.ts + - src/sdk/models/errors/getavailableclients.ts + - src/sdk/models/errors/getbandwidthstatistics.ts + - src/sdk/models/errors/getbannerimage.ts + - src/sdk/models/errors/getbutlertasks.ts + - src/sdk/models/errors/getcompanionsdata.ts + - src/sdk/models/errors/getdevices.ts + - src/sdk/models/errors/getfilehash.ts + - src/sdk/models/errors/getgeodata.ts + - src/sdk/models/errors/getglobalhubs.ts + - src/sdk/models/errors/gethomedata.ts + - src/sdk/models/errors/getlibrarydetails.ts + - src/sdk/models/errors/getlibraryhubs.ts + - src/sdk/models/errors/getlibraryitems.ts + - src/sdk/models/errors/getmediaproviders.ts + - src/sdk/models/errors/getmetadatabyratingkey.ts + - src/sdk/models/errors/getmetadatachildren.ts + - src/sdk/models/errors/getmyplexaccount.ts + - src/sdk/models/errors/getondeck.ts + - src/sdk/models/errors/getpin.ts + - src/sdk/models/errors/getplaylist.ts + - src/sdk/models/errors/getplaylistcontents.ts + - src/sdk/models/errors/getplaylists.ts + - src/sdk/models/errors/getrecentlyadded.ts + - src/sdk/models/errors/getrefreshlibrarymetadata.ts + - src/sdk/models/errors/getresizedphoto.ts + - src/sdk/models/errors/getresourcesstatistics.ts + - src/sdk/models/errors/getsearchlibrary.ts + - src/sdk/models/errors/getsearchresults.ts + - src/sdk/models/errors/getserveractivities.ts + - src/sdk/models/errors/getservercapabilities.ts + - src/sdk/models/errors/getserveridentity.ts + - src/sdk/models/errors/getserverlist.ts + - src/sdk/models/errors/getserverpreferences.ts + - src/sdk/models/errors/getserverresources.ts + - src/sdk/models/errors/getsessionhistory.ts + - src/sdk/models/errors/getsessions.ts + - src/sdk/models/errors/getsourceconnectioninformation.ts + - src/sdk/models/errors/getstatistics.ts + - src/sdk/models/errors/getthumbimage.ts + - src/sdk/models/errors/gettimeline.ts + - src/sdk/models/errors/gettokenbypinid.ts + - src/sdk/models/errors/gettopwatchedcontent.ts + - src/sdk/models/errors/gettranscodesessions.ts + - src/sdk/models/errors/gettransienttoken.ts + - src/sdk/models/errors/getupdatestatus.ts + - src/sdk/models/errors/getuserdetails.ts + - src/sdk/models/errors/getuserfriends.ts + - src/sdk/models/errors/getwatchlist.ts + - src/sdk/models/errors/httpclienterrors.ts + - src/sdk/models/errors/index.ts + - src/sdk/models/errors/logline.ts + - src/sdk/models/errors/logmultiline.ts + - src/sdk/models/errors/markplayed.ts + - src/sdk/models/errors/markunplayed.ts + - src/sdk/models/errors/performsearch.ts + - src/sdk/models/errors/performvoicesearch.ts + - src/sdk/models/errors/postuserssignindata.ts + - src/sdk/models/errors/sdkerror.ts + - src/sdk/models/errors/sdkvalidationerror.ts + - src/sdk/models/errors/startalltasks.ts + - src/sdk/models/errors/starttask.ts + - src/sdk/models/errors/startuniversaltranscode.ts + - src/sdk/models/errors/stopalltasks.ts + - src/sdk/models/errors/stoptask.ts + - src/sdk/models/errors/stoptranscodesession.ts + - src/sdk/models/errors/updateplaylist.ts + - src/sdk/models/errors/updateplayprogress.ts + - src/sdk/models/errors/uploadplaylist.ts + - src/sdk/models/operations/addplaylistcontents.ts + - src/sdk/models/operations/applyupdates.ts + - src/sdk/models/operations/cancelserveractivities.ts + - src/sdk/models/operations/checkforupdates.ts + - src/sdk/models/operations/clearplaylistcontents.ts + - src/sdk/models/operations/createplaylist.ts + - src/sdk/models/operations/deletelibrary.ts + - src/sdk/models/operations/deleteplaylist.ts + - src/sdk/models/operations/enablepapertrail.ts + - src/sdk/models/operations/getalllibraries.ts + - src/sdk/models/operations/getavailableclients.ts + - src/sdk/models/operations/getbandwidthstatistics.ts + - src/sdk/models/operations/getbannerimage.ts + - src/sdk/models/operations/getbutlertasks.ts + - src/sdk/models/operations/getcompanionsdata.ts + - src/sdk/models/operations/getdevices.ts + - src/sdk/models/operations/getfilehash.ts + - src/sdk/models/operations/getgeodata.ts + - src/sdk/models/operations/getglobalhubs.ts + - src/sdk/models/operations/gethomedata.ts + - src/sdk/models/operations/getlibrarydetails.ts + - src/sdk/models/operations/getlibraryhubs.ts + - src/sdk/models/operations/getlibraryitems.ts + - src/sdk/models/operations/getmediaproviders.ts + - src/sdk/models/operations/getmetadatabyratingkey.ts + - src/sdk/models/operations/getmetadatachildren.ts + - src/sdk/models/operations/getmyplexaccount.ts + - src/sdk/models/operations/getondeck.ts + - src/sdk/models/operations/getpin.ts + - src/sdk/models/operations/getplaylist.ts + - src/sdk/models/operations/getplaylistcontents.ts + - src/sdk/models/operations/getplaylists.ts + - src/sdk/models/operations/getrecentlyadded.ts + - src/sdk/models/operations/getrefreshlibrarymetadata.ts + - src/sdk/models/operations/getresizedphoto.ts + - src/sdk/models/operations/getresourcesstatistics.ts + - src/sdk/models/operations/getsearchlibrary.ts + - src/sdk/models/operations/getsearchresults.ts + - src/sdk/models/operations/getserveractivities.ts + - src/sdk/models/operations/getservercapabilities.ts + - src/sdk/models/operations/getserveridentity.ts + - src/sdk/models/operations/getserverlist.ts + - src/sdk/models/operations/getserverpreferences.ts + - src/sdk/models/operations/getserverresources.ts + - src/sdk/models/operations/getsessionhistory.ts + - src/sdk/models/operations/getsessions.ts + - src/sdk/models/operations/getsourceconnectioninformation.ts + - src/sdk/models/operations/getstatistics.ts + - src/sdk/models/operations/getthumbimage.ts + - src/sdk/models/operations/gettimeline.ts + - src/sdk/models/operations/gettokenbypinid.ts + - src/sdk/models/operations/gettopwatchedcontent.ts + - src/sdk/models/operations/gettranscodesessions.ts + - src/sdk/models/operations/gettransienttoken.ts + - src/sdk/models/operations/getupdatestatus.ts + - src/sdk/models/operations/getuserdetails.ts + - src/sdk/models/operations/getuserfriends.ts + - src/sdk/models/operations/getwatchlist.ts + - src/sdk/models/operations/index.ts + - src/sdk/models/operations/logline.ts + - src/sdk/models/operations/logmultiline.ts + - src/sdk/models/operations/markplayed.ts + - src/sdk/models/operations/markunplayed.ts + - src/sdk/models/operations/performsearch.ts + - src/sdk/models/operations/performvoicesearch.ts + - src/sdk/models/operations/postuserssignindata.ts + - src/sdk/models/operations/startalltasks.ts + - src/sdk/models/operations/starttask.ts + - src/sdk/models/operations/startuniversaltranscode.ts + - src/sdk/models/operations/stopalltasks.ts + - src/sdk/models/operations/stoptask.ts + - src/sdk/models/operations/stoptranscodesession.ts + - src/sdk/models/operations/updateplaylist.ts + - src/sdk/models/operations/updateplayprogress.ts + - src/sdk/models/operations/uploadplaylist.ts + - src/sdk/models/shared/index.ts + - src/sdk/models/shared/security.ts + - src/sdk/playlists.ts + - src/sdk/plex.ts + - src/sdk/sdk.ts + - src/sdk/search.ts + - src/sdk/server.ts + - src/sdk/sessions.ts + - src/sdk/statistics.ts + - src/sdk/types/blobs.ts + - src/sdk/types/constdatetime.ts + - src/sdk/types/enums.ts + - src/sdk/types/fp.ts + - src/sdk/types/index.ts + - src/sdk/types/operations.ts + - src/sdk/types/rfcdate.ts + - src/sdk/types/streams.ts + - src/sdk/updater.ts + - src/sdk/video.ts + - src/sdk/watchlist.ts - tsconfig.json - - src/models/getservercapabilitiesop.ts - - src/models/getserverpreferencesop.ts - - src/models/getavailableclientsop.ts - - src/models/getdevicesop.ts - - src/models/getserveridentityop.ts - - src/models/getmyplexaccountop.ts - - src/models/getresizedphotoop.ts - - src/models/getmediaprovidersop.ts - - src/models/getserverlistop.ts - - src/models/markplayedop.ts - - src/models/markunplayedop.ts - - src/models/updateplayprogressop.ts - - src/models/getbannerimageop.ts - - src/models/getthumbimageop.ts - - src/models/gettimelineop.ts - - src/models/startuniversaltranscodeop.ts - - src/models/getserveractivitiesop.ts - - src/models/cancelserveractivitiesop.ts - - src/models/getbutlertasksop.ts - - src/models/startalltasksop.ts - - src/models/stopalltasksop.ts - - src/models/starttaskop.ts - - src/models/stoptaskop.ts - - src/models/getcompanionsdataop.ts - - src/models/getuserfriendsop.ts - - src/models/getgeodataop.ts - - src/models/gethomedataop.ts - - src/models/getserverresourcesop.ts - - src/models/getpinop.ts - - src/models/gettokenbypinidop.ts - - src/models/getglobalhubsop.ts - - src/models/getlibraryhubsop.ts - - src/models/performsearchop.ts - - src/models/performvoicesearchop.ts - - src/models/getsearchresultsop.ts - - src/models/getfilehashop.ts - - src/models/getrecentlyaddedop.ts - - src/models/getalllibrariesop.ts - - src/models/getlibrarydetailsop.ts - - src/models/deletelibraryop.ts - - src/models/getlibraryitemsop.ts - - src/models/getrefreshlibrarymetadataop.ts - - src/models/getsearchlibraryop.ts - - src/models/getmetadatabyratingkeyop.ts - - src/models/getmetadatachildrenop.ts - - src/models/gettopwatchedcontentop.ts - - src/models/getondeckop.ts - - src/models/getwatchlistop.ts - - src/models/loglineop.ts - - src/models/logmultilineop.ts - - src/models/enablepapertrailop.ts - - src/models/createplaylistop.ts - - src/models/getplaylistsop.ts - - src/models/getplaylistop.ts - - src/models/deleteplaylistop.ts - - src/models/updateplaylistop.ts - - src/models/getplaylistcontentsop.ts - - src/models/clearplaylistcontentsop.ts - - src/models/addplaylistcontentsop.ts - - src/models/uploadplaylistop.ts - - src/models/gettransienttokenop.ts - - src/models/getsourceconnectioninformationop.ts - - src/models/getuserdetailsop.ts - - src/models/postuserssignindataop.ts - - src/models/getstatisticsop.ts - - src/models/getresourcesstatisticsop.ts - - src/models/getbandwidthstatisticsop.ts - - src/models/getsessionsop.ts - - src/models/getsessionhistoryop.ts - - src/models/gettranscodesessionsop.ts - - src/models/stoptranscodesessionop.ts - - src/models/getupdatestatusop.ts - - src/models/checkforupdatesop.ts - - src/models/applyupdatesop.ts - - src/models/security.ts - - src/models/index.ts - - docs/models/errors.md - - docs/models/getservercapabilitiesserverresponsebody.md - - docs/models/directory.md - - docs/models/mediacontainer.md - - docs/models/getservercapabilitiesresponsebody.md - - docs/models/getservercapabilitiesresponse.md - - docs/models/getserverpreferenceserrors.md - - docs/models/getserverpreferencesserverresponsebody.md - - docs/models/setting.md - - docs/models/getserverpreferencesmediacontainer.md - - docs/models/getserverpreferencesresponsebody.md - - docs/models/getserverpreferencesresponse.md - - docs/models/getavailableclientserrors.md - - docs/models/getavailableclientsserverresponsebody.md - - docs/models/getavailableclientsserver.md - - docs/models/getavailableclientsmediacontainer.md - - docs/models/getavailableclientsresponsebody.md - - docs/models/getavailableclientsresponse.md - - docs/models/getdeviceserrors.md - - docs/models/getdevicesserverresponsebody.md - - docs/models/device.md - - docs/models/getdevicesmediacontainer.md - - docs/models/getdevicesresponsebody.md - - docs/models/getdevicesresponse.md - - docs/models/getserveridentityserverresponsebody.md - - docs/models/getserveridentitymediacontainer.md - - docs/models/getserveridentityresponsebody.md - - docs/models/getserveridentityresponse.md - - docs/models/getmyplexaccounterrors.md - - docs/models/getmyplexaccountserverresponsebody.md - - docs/models/myplex.md - - docs/models/getmyplexaccountresponsebody.md - - docs/models/getmyplexaccountresponse.md - - docs/models/minsize.md - - docs/models/upscale.md - - docs/models/getresizedphotorequest.md - - docs/models/getresizedphotoerrors.md - - docs/models/getresizedphotoresponsebody.md - - docs/models/getresizedphotoresponse.md - - docs/models/getmediaprovidersrequest.md - - docs/models/getmediaproviderserrors.md - - docs/models/getmediaprovidersserverresponsebody.md - - docs/models/pivot.md - - docs/models/getmediaprovidersdirectory.md - - docs/models/feature.md - - docs/models/mediaprovider.md - - docs/models/getmediaprovidersmediacontainer.md - - docs/models/getmediaprovidersresponsebody.md - - docs/models/getmediaprovidersresponse.md - - docs/models/getserverlisterrors.md - - docs/models/getserverlistserverresponsebody.md - - docs/models/getserverlistserver.md - - docs/models/getserverlistmediacontainer.md - - docs/models/getserverlistresponsebody.md - - docs/models/getserverlistresponse.md - - docs/models/markplayedrequest.md - - docs/models/markplayederrors.md - - docs/models/markplayedresponsebody.md - - docs/models/markplayedresponse.md - - docs/models/markunplayedrequest.md - - docs/models/markunplayederrors.md - - docs/models/markunplayedresponsebody.md - - docs/models/markunplayedresponse.md - - docs/models/updateplayprogressrequest.md - - docs/models/updateplayprogresserrors.md - - docs/models/updateplayprogressresponsebody.md - - docs/models/updateplayprogressresponse.md - - docs/models/getbannerimagerequest.md - - docs/models/getbannerimageerrors.md - - docs/models/getbannerimageresponsebody.md - - docs/models/getbannerimageresponse.md - - docs/models/getthumbimagerequest.md - - docs/models/getthumbimageerrors.md - - docs/models/getthumbimageresponsebody.md - - docs/models/getthumbimageresponse.md - - docs/models/state.md - - docs/models/gettimelinerequest.md - - docs/models/gettimelineerrors.md - - docs/models/gettimelineresponsebody.md - - docs/models/gettimelineresponse.md - - docs/models/startuniversaltranscoderequest.md - - docs/models/startuniversaltranscodeerrors.md - - docs/models/startuniversaltranscoderesponsebody.md - - docs/models/startuniversaltranscoderesponse.md - - docs/models/getserveractivitieserrors.md - - docs/models/getserveractivitiesactivitiesresponsebody.md - - docs/models/context.md - - docs/models/activity.md - - docs/models/getserveractivitiesmediacontainer.md - - docs/models/getserveractivitiesresponsebody.md - - docs/models/getserveractivitiesresponse.md - - docs/models/cancelserveractivitiesrequest.md - - docs/models/cancelserveractivitieserrors.md - - docs/models/cancelserveractivitiesresponsebody.md - - docs/models/cancelserveractivitiesresponse.md - - docs/models/getbutlertaskserrors.md - - docs/models/getbutlertasksbutlerresponsebody.md - - docs/models/butlertask.md - - docs/models/butlertasks.md - - docs/models/getbutlertasksresponsebody.md - - docs/models/getbutlertasksresponse.md - - docs/models/startalltaskserrors.md - - docs/models/startalltasksresponsebody.md - - docs/models/startalltasksresponse.md - - docs/models/stopalltaskserrors.md - - docs/models/stopalltasksresponsebody.md - - docs/models/stopalltasksresponse.md - - docs/models/taskname.md - - docs/models/starttaskrequest.md - - docs/models/starttaskerrors.md - - docs/models/starttaskresponsebody.md - - docs/models/starttaskresponse.md - - docs/models/pathparamtaskname.md - - docs/models/stoptaskrequest.md - - docs/models/stoptaskerrors.md - - docs/models/stoptaskresponsebody.md - - docs/models/stoptaskresponse.md - - docs/models/getcompanionsdataerrors.md - - docs/models/getcompanionsdataresponsebody.md - - docs/models/responsebody.md - - docs/models/getcompanionsdataresponse.md - - docs/models/getuserfriendserrors.md - - docs/models/getuserfriendsresponsebody.md - - docs/models/sharedservers.md - - docs/models/sharedsources.md - - docs/models/status.md - - docs/models/friend.md - - docs/models/getuserfriendsresponse.md - - docs/models/getgeodataerrors.md - - docs/models/getgeodataresponsebody.md - - docs/models/getgeodatageodata.md - - docs/models/getgeodataresponse.md - - docs/models/gethomedataerrors.md - - docs/models/gethomedataplexresponsebody.md - - docs/models/gethomedataresponsebody.md - - docs/models/gethomedataresponse.md - - docs/models/getserverresourcesglobals.md - - docs/models/includehttps.md - - docs/models/includerelay.md - - docs/models/includeipv6.md - - docs/models/getserverresourcesrequest.md - - docs/models/getserverresourceserrors.md - - docs/models/getserverresourcesresponsebody.md - - docs/models/connections.md - - docs/models/plexdevice.md - - docs/models/getserverresourcesresponse.md - - docs/models/getpinglobals.md - - docs/models/getpinrequest.md - - docs/models/getpinerrors.md - - docs/models/getpinresponsebody.md - - docs/models/geodata.md - - docs/models/getpinauthpincontainer.md - - docs/models/getpinresponse.md - - docs/models/gettokenbypinidglobals.md - - docs/models/gettokenbypinidrequest.md - - docs/models/gettokenbypinidplexerrors.md - - docs/models/gettokenbypinidplexresponsebody.md - - docs/models/gettokenbypiniderrors.md - - docs/models/gettokenbypinidresponsebody.md - - docs/models/gettokenbypinidgeodata.md - - docs/models/gettokenbypinidauthpincontainer.md - - docs/models/gettokenbypinidresponse.md - - docs/models/onlytransient.md - - docs/models/getglobalhubsrequest.md - - docs/models/getglobalhubserrors.md - - docs/models/getglobalhubshubsresponsebody.md - - docs/models/getglobalhubsmetadata.md - - docs/models/hub.md - - docs/models/getglobalhubsmediacontainer.md - - docs/models/getglobalhubsresponsebody.md - - docs/models/getglobalhubsresponse.md - - docs/models/queryparamonlytransient.md - - docs/models/getlibraryhubsrequest.md - - docs/models/getlibraryhubserrors.md - - docs/models/getlibraryhubshubsresponsebody.md - - docs/models/getlibraryhubspart.md - - docs/models/getlibraryhubsmedia.md - - docs/models/getlibraryhubsgenre.md - - docs/models/getlibraryhubscountry.md - - docs/models/getlibraryhubsdirector.md - - docs/models/getlibraryhubsrole.md - - docs/models/getlibraryhubswriter.md - - docs/types/rfcdate.md - - docs/models/getlibraryhubsmetadata.md - - docs/models/getlibraryhubshub.md - - docs/models/getlibraryhubsmediacontainer.md - - docs/models/getlibraryhubsresponsebody.md - - docs/models/getlibraryhubsresponse.md - - docs/models/performsearchrequest.md - - docs/models/performsearcherrors.md - - docs/models/performsearchresponsebody.md - - docs/models/performsearchresponse.md - - docs/models/performvoicesearchrequest.md - - docs/models/performvoicesearcherrors.md - - docs/models/performvoicesearchresponsebody.md - - docs/models/performvoicesearchresponse.md - - docs/models/getsearchresultsrequest.md - - docs/models/getsearchresultserrors.md - - docs/models/getsearchresultssearchresponsebody.md - - docs/models/getsearchresultspart.md - - docs/models/getsearchresultsmedia.md - - docs/models/getsearchresultsgenre.md - - docs/models/getsearchresultsdirector.md - - docs/models/getsearchresultswriter.md - - docs/models/getsearchresultscountry.md - - docs/models/getsearchresultsrole.md - - docs/models/getsearchresultsmetadata.md - - docs/models/provider.md - - docs/models/getsearchresultsmediacontainer.md - - docs/models/getsearchresultsresponsebody.md - - docs/models/getsearchresultsresponse.md - - docs/models/getfilehashrequest.md - - docs/models/getfilehasherrors.md - - docs/models/getfilehashresponsebody.md - - docs/models/getfilehashresponse.md - - docs/models/getrecentlyaddedrequest.md - - docs/models/getrecentlyaddederrors.md - - docs/models/getrecentlyaddedlibraryresponsebody.md - - docs/models/part.md - - docs/models/getrecentlyaddedmedia.md - - docs/models/genre.md - - docs/models/director.md - - docs/models/writer.md - - docs/models/country.md - - docs/models/role.md - - docs/models/getrecentlyaddedmetadata.md - - docs/models/getrecentlyaddedmediacontainer.md - - docs/models/getrecentlyaddedresponsebody.md - - docs/models/getrecentlyaddedresponse.md - - docs/models/getalllibrarieserrors.md - - docs/models/getalllibrarieslibraryresponsebody.md - - docs/models/location.md - - docs/models/getalllibrariesdirectory.md - - docs/models/getalllibrariesmediacontainer.md - - docs/models/getalllibrariesresponsebody.md - - docs/models/getalllibrariesresponse.md - - docs/models/includedetails.md - - docs/models/getlibrarydetailsrequest.md - - docs/models/getlibrarydetailserrors.md - - docs/models/getlibrarydetailslibraryresponsebody.md - - docs/models/getlibrarydetailsdirectory.md - - docs/models/getlibrarydetailsfilter.md - - docs/models/sort.md - - docs/models/field.md - - docs/models/getlibrarydetailstype.md - - docs/models/operator.md - - docs/models/fieldtype.md - - docs/models/getlibrarydetailsmediacontainer.md - - docs/models/getlibrarydetailsresponsebody.md - - docs/models/getlibrarydetailsresponse.md - - docs/models/deletelibraryrequest.md - - docs/models/deletelibraryerrors.md - - docs/models/deletelibraryresponsebody.md - - docs/models/deletelibraryresponse.md - - docs/models/tag.md - - docs/models/includeguids.md - - docs/models/includemeta.md - - docs/models/type.md - - docs/models/getlibraryitemsrequest.md - - docs/models/getlibraryitemserrors.md - - docs/models/getlibraryitemslibraryresponsebody.md - - docs/models/librarysectionid.md - - docs/models/getlibraryitemspart.md - - docs/models/getlibraryitemsmedia.md - - docs/models/getlibraryitemsgenre.md - - docs/models/getlibraryitemscountry.md - - docs/models/getlibraryitemsdirector.md - - docs/models/getlibraryitemswriter.md - - docs/models/getlibraryitemsrole.md - - docs/models/getlibraryitemsmetadata.md - - docs/models/getlibraryitemsmediacontainer.md - - docs/models/getlibraryitemsresponsebody.md - - docs/models/getlibraryitemsresponse.md - - docs/models/force.md - - docs/models/getrefreshlibrarymetadatarequest.md - - docs/models/getrefreshlibrarymetadataerrors.md - - docs/models/getrefreshlibrarymetadataresponsebody.md - - docs/models/getrefreshlibrarymetadataresponse.md - - docs/models/queryparamtype.md - - docs/models/getsearchlibraryrequest.md - - docs/models/getsearchlibraryerrors.md - - docs/models/getsearchlibrarylibraryresponsebody.md - - docs/models/getsearchlibrarymetadata.md - - docs/models/getsearchlibrarymediacontainer.md - - docs/models/getsearchlibraryresponsebody.md - - docs/models/getsearchlibraryresponse.md - - docs/models/getmetadatabyratingkeyrequest.md - - docs/models/getmetadatabyratingkeyerrors.md - - docs/models/getmetadatabyratingkeylibraryresponsebody.md - - docs/models/stream.md - - docs/models/getmetadatabyratingkeypart.md - - docs/models/getmetadatabyratingkeymedia.md - - docs/models/getmetadatabyratingkeygenre.md - - docs/models/getmetadatabyratingkeycountry.md - - docs/models/guids.md - - docs/models/ratings.md - - docs/models/getmetadatabyratingkeydirector.md - - docs/models/getmetadatabyratingkeywriter.md - - docs/models/getmetadatabyratingkeyrole.md - - docs/models/producer.md - - docs/models/getmetadatabyratingkeymetadata.md - - docs/models/getmetadatabyratingkeymediacontainer.md - - docs/models/getmetadatabyratingkeyresponsebody.md - - docs/models/getmetadatabyratingkeyresponse.md - - docs/models/getmetadatachildrenrequest.md - - docs/models/getmetadatachildrenerrors.md - - docs/models/getmetadatachildrenlibraryresponsebody.md - - docs/models/getmetadatachildrendirectory.md - - docs/models/getmetadatachildrenmetadata.md - - docs/models/getmetadatachildrenmediacontainer.md - - docs/models/getmetadatachildrenresponsebody.md - - docs/models/getmetadatachildrenresponse.md - - docs/models/gettopwatchedcontentqueryparamtype.md - - docs/models/gettopwatchedcontentrequest.md - - docs/models/gettopwatchedcontenterrors.md - - docs/models/gettopwatchedcontentlibraryresponsebody.md - - docs/models/gettopwatchedcontentgenre.md - - docs/models/gettopwatchedcontentcountry.md - - docs/models/gettopwatchedcontentguids.md - - docs/models/gettopwatchedcontentrole.md - - docs/models/user.md - - docs/models/gettopwatchedcontentmetadata.md - - docs/models/gettopwatchedcontentmediacontainer.md - - docs/models/gettopwatchedcontentresponsebody.md - - docs/models/gettopwatchedcontentresponse.md - - docs/models/getondeckerrors.md - - docs/models/getondecklibraryresponsebody.md - - docs/models/getondeckstream.md - - docs/models/getondeckpart.md - - docs/models/getondeckmedia.md - - docs/models/getondeckguids.md - - docs/models/getondeckmetadata.md - - docs/models/getondeckmediacontainer.md - - docs/models/getondeckresponsebody.md - - docs/models/getondeckresponse.md - - docs/models/filter.md - - docs/models/libtype.md - - docs/models/includecollections.md - - docs/models/includeexternalmedia.md - - docs/models/getwatchlistrequest.md - - docs/models/getwatchlisterrors.md - - docs/models/getwatchlistwatchlistresponsebody.md - - docs/models/image.md - - docs/models/metadata.md - - docs/models/getwatchlistresponsebody.md - - docs/models/getwatchlistresponse.md - - docs/models/level.md - - docs/models/loglinerequest.md - - docs/models/loglineerrors.md - - docs/models/loglineresponsebody.md - - docs/models/loglineresponse.md - - docs/models/logmultilineerrors.md - - docs/models/logmultilineresponsebody.md - - docs/models/logmultilineresponse.md - - docs/models/enablepapertrailerrors.md - - docs/models/enablepapertrailresponsebody.md - - docs/models/enablepapertrailresponse.md - - docs/models/createplaylistqueryparamtype.md - - docs/models/smart.md - - docs/models/createplaylistrequest.md - - docs/models/createplaylisterrors.md - - docs/models/createplaylistplaylistsresponsebody.md - - docs/models/createplaylistmetadata.md - - docs/models/createplaylistmediacontainer.md - - docs/models/createplaylistresponsebody.md - - docs/models/createplaylistresponse.md - - docs/models/playlisttype.md - - docs/models/queryparamsmart.md - - docs/models/getplaylistsrequest.md - - docs/models/getplaylistserrors.md - - docs/models/getplaylistsplaylistsresponsebody.md - - docs/models/getplaylistsmetadata.md - - docs/models/getplaylistsmediacontainer.md - - docs/models/getplaylistsresponsebody.md - - docs/models/getplaylistsresponse.md - - docs/models/getplaylistrequest.md - - docs/models/getplaylisterrors.md - - docs/models/getplaylistplaylistsresponsebody.md - - docs/models/getplaylistmetadata.md - - docs/models/getplaylistmediacontainer.md - - docs/models/getplaylistresponsebody.md - - docs/models/getplaylistresponse.md - - docs/models/deleteplaylistrequest.md - - docs/models/deleteplaylisterrors.md - - docs/models/deleteplaylistresponsebody.md - - docs/models/deleteplaylistresponse.md - - docs/models/updateplaylistrequest.md - - docs/models/updateplaylisterrors.md - - docs/models/updateplaylistresponsebody.md - - docs/models/updateplaylistresponse.md - - docs/models/getplaylistcontentsqueryparamtype.md - - docs/models/getplaylistcontentsrequest.md - - docs/models/getplaylistcontentserrors.md - - docs/models/getplaylistcontentsplaylistsresponsebody.md - - docs/models/getplaylistcontentspart.md - - docs/models/getplaylistcontentsmedia.md - - docs/models/getplaylistcontentsgenre.md - - docs/models/getplaylistcontentscountry.md - - docs/models/getplaylistcontentsdirector.md - - docs/models/getplaylistcontentswriter.md - - docs/models/getplaylistcontentsrole.md - - docs/models/getplaylistcontentsmetadata.md - - docs/models/getplaylistcontentsmediacontainer.md - - docs/models/getplaylistcontentsresponsebody.md - - docs/models/getplaylistcontentsresponse.md - - docs/models/clearplaylistcontentsrequest.md - - docs/models/clearplaylistcontentserrors.md - - docs/models/clearplaylistcontentsresponsebody.md - - docs/models/clearplaylistcontentsresponse.md - - docs/models/addplaylistcontentsrequest.md - - docs/models/addplaylistcontentserrors.md - - docs/models/addplaylistcontentsplaylistsresponsebody.md - - docs/models/addplaylistcontentsmetadata.md - - docs/models/addplaylistcontentsmediacontainer.md - - docs/models/addplaylistcontentsresponsebody.md - - docs/models/addplaylistcontentsresponse.md - - docs/models/queryparamforce.md - - docs/models/uploadplaylistrequest.md - - docs/models/uploadplaylisterrors.md - - docs/models/uploadplaylistresponsebody.md - - docs/models/uploadplaylistresponse.md - - docs/models/gettransienttokenqueryparamtype.md - - docs/models/scope.md - - docs/models/gettransienttokenrequest.md - - docs/models/gettransienttokenerrors.md - - docs/models/gettransienttokenresponsebody.md - - docs/models/gettransienttokenresponse.md - - docs/models/getsourceconnectioninformationrequest.md - - docs/models/getsourceconnectioninformationerrors.md - - docs/models/getsourceconnectioninformationresponsebody.md - - docs/models/getsourceconnectioninformationresponse.md - - docs/models/getuserdetailsrequest.md - - docs/models/getuserdetailserrors.md - - docs/models/getuserdetailsresponsebody.md - - docs/models/mailingliststatus.md - - docs/models/autoselectsubtitle.md - - docs/models/defaultsubtitleaccessibility.md - - docs/models/defaultsubtitleforced.md - - docs/models/watchedindicator.md - - docs/models/mediareviewsvisibility.md - - docs/models/userprofile.md - - docs/models/getuserdetailsstatus.md - - docs/models/services.md - - docs/models/features.md - - docs/models/getuserdetailsauthenticationstatus.md - - docs/models/subscription.md - - docs/models/getuserdetailsfeatures.md - - docs/models/getuserdetailsauthenticationresponsestatus.md - - docs/models/getuserdetailssubscription.md - - docs/models/getuserdetailsuserplexaccount.md - - docs/models/getuserdetailsresponse.md - - docs/models/postuserssignindataglobals.md - - docs/models/postuserssignindatarequestbody.md - - docs/models/postuserssignindatarequest.md - - docs/models/postuserssignindataerrors.md - - docs/models/postuserssignindataresponsebody.md - - docs/models/postuserssignindatamailingliststatus.md - - docs/models/postuserssignindataautoselectsubtitle.md - - docs/models/postuserssignindatadefaultsubtitleaccessibility.md - - docs/models/postuserssignindatadefaultsubtitleforced.md - - docs/models/postuserssignindatawatchedindicator.md - - docs/models/postuserssignindatamediareviewsvisibility.md - - docs/models/postuserssignindatauserprofile.md - - docs/models/postuserssignindatastatus.md - - docs/models/postuserssignindataservices.md - - docs/models/postuserssignindatafeatures.md - - docs/models/postuserssignindataauthenticationstatus.md - - docs/models/postuserssignindatasubscription.md - - docs/models/postuserssignindataauthenticationfeatures.md - - docs/models/postuserssignindataauthenticationresponsestatus.md - - docs/models/postuserssignindataauthenticationsubscription.md - - docs/models/postuserssignindatastate.md - - docs/models/internalpaymentmethod.md - - docs/models/billing.md - - docs/models/pastsubscription.md - - docs/models/trials.md - - docs/models/postuserssignindatauserplexaccount.md - - docs/models/postuserssignindataresponse.md - - docs/models/getstatisticsrequest.md - - docs/models/getstatisticserrors.md - - docs/models/getstatisticsstatisticsresponsebody.md - - docs/models/getstatisticsdevice.md - - docs/models/account.md - - docs/models/statisticsmedia.md - - docs/models/getstatisticsmediacontainer.md - - docs/models/getstatisticsresponsebody.md - - docs/models/getstatisticsresponse.md - - docs/models/getresourcesstatisticsrequest.md - - docs/models/getresourcesstatisticserrors.md - - docs/models/getresourcesstatisticsstatisticsresponsebody.md - - docs/models/statisticsresources.md - - docs/models/getresourcesstatisticsmediacontainer.md - - docs/models/getresourcesstatisticsresponsebody.md - - docs/models/getresourcesstatisticsresponse.md - - docs/models/getbandwidthstatisticsrequest.md - - docs/models/getbandwidthstatisticserrors.md - - docs/models/getbandwidthstatisticsstatisticsresponsebody.md - - docs/models/getbandwidthstatisticsdevice.md - - docs/models/getbandwidthstatisticsaccount.md - - docs/models/statisticsbandwidth.md - - docs/models/getbandwidthstatisticsmediacontainer.md - - docs/models/getbandwidthstatisticsresponsebody.md - - docs/models/getbandwidthstatisticsresponse.md - - docs/models/getsessionserrors.md - - docs/models/getsessionssessionsresponsebody.md - - docs/models/getsessionsstream.md - - docs/models/getsessionspart.md - - docs/models/getsessionsmedia.md - - docs/models/getsessionsuser.md - - docs/models/player.md - - docs/models/session.md - - docs/models/getsessionsmetadata.md - - docs/models/getsessionsmediacontainer.md - - docs/models/getsessionsresponsebody.md - - docs/models/getsessionsresponse.md - - docs/models/queryparamfilter.md - - docs/models/getsessionhistoryrequest.md - - docs/models/getsessionhistoryerrors.md - - docs/models/getsessionhistorysessionsresponsebody.md - - docs/models/getsessionhistorymetadata.md - - docs/models/getsessionhistorymediacontainer.md - - docs/models/getsessionhistoryresponsebody.md - - docs/models/getsessionhistoryresponse.md - - docs/models/gettranscodesessionserrors.md - - docs/models/gettranscodesessionssessionsresponsebody.md - - docs/models/transcodesession.md - - docs/models/gettranscodesessionsmediacontainer.md - - docs/models/gettranscodesessionsresponsebody.md - - docs/models/gettranscodesessionsresponse.md - - docs/models/stoptranscodesessionrequest.md - - docs/models/stoptranscodesessionerrors.md - - docs/models/stoptranscodesessionresponsebody.md - - docs/models/stoptranscodesessionresponse.md - - docs/models/getupdatestatuserrors.md - - docs/models/getupdatestatusupdaterresponsebody.md - - docs/models/release.md - - docs/models/getupdatestatusmediacontainer.md - - docs/models/getupdatestatusresponsebody.md - - docs/models/getupdatestatusresponse.md - - docs/models/download.md - - docs/models/checkforupdatesrequest.md - - docs/models/checkforupdateserrors.md - - docs/models/checkforupdatesresponsebody.md - - docs/models/checkforupdatesresponse.md - - docs/models/tonight.md - - docs/models/skip.md - - docs/models/applyupdatesrequest.md - - docs/models/applyupdateserrors.md - - docs/models/applyupdatesresponsebody.md - - docs/models/applyupdatesresponse.md - - docs/models/security.md - - docs/sdks/plexapi/README.md - - docs/lib/utils/retryconfig.md - - docs/sdks/server/README.md - - docs/sdks/media/README.md - - docs/sdks/video/README.md - - docs/sdks/activities/README.md - - docs/sdks/butler/README.md - - docs/sdks/plex/README.md - - docs/sdks/hubs/README.md - - docs/sdks/search/README.md - - docs/sdks/library/README.md - - docs/sdks/watchlist/README.md - - docs/sdks/log/README.md - - docs/sdks/playlists/README.md - - docs/sdks/authentication/README.md - - docs/sdks/statistics/README.md - - docs/sdks/sessions/README.md - - docs/sdks/updater/README.md - - USAGE.md - - .gitattributes - - src/hooks/hooks.ts - - src/hooks/types.ts - - src/hooks/index.ts - - CONTRIBUTING.md +examples: + getServerCapabilities: + speakeasy-default-get-server-capabilities: + responses: + "401": + application/json: {"errors": []} + getServerPreferences: + speakeasy-default-get-server-preferences: + responses: + "200": + application/json: {"MediaContainer": {"size": 161, "Setting": []}} + "401": + application/json: {"errors": []} + getAvailableClients: + speakeasy-default-get-available-clients: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Server": []}} + "401": + application/json: {"errors": []} + getDevices: + speakeasy-default-get-devices: + responses: + "200": + application/json: {"MediaContainer": {"size": 151, "identifier": "com.plexapp.system.devices", "Device": []}} + "401": + application/json: {"errors": []} + get-server-identity: + speakeasy-default-get-server-identity: + responses: + "200": + application/json: {"MediaContainer": {"size": 0, "machineIdentifier": "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", "version": "1.31.3.6868-28fc46b27"}} + "408": + application/json: {"code": 408, "message": "The server timed out waiting for the request."} + getMyPlexAccount: + speakeasy-default-get-my-plex-account: + responses: + "200": + 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": []} + getResizedPhoto: + speakeasy-default-get-resized-photo: + parameters: + query: + width: 110 + height: 165 + opacity: 100 + blur: 20 + minSize: 1 + upscale: 0 + url: "/library/metadata/49564/thumb/1654258204" + responses: + "401": + application/json: {"errors": []} + get-media-providers: + speakeasy-default-get-media-providers: + parameters: + query: + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + getServerList: + speakeasy-default-get-server-list: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Server": []}} + "401": + application/json: {"errors": []} + markPlayed: + speakeasy-default-mark-played: + parameters: + query: + key: 59398 + responses: + "401": + application/json: {"errors": []} + markUnplayed: + speakeasy-default-mark-unplayed: + parameters: + query: + key: 59398 + responses: + "401": + application/json: {"errors": []} + updatePlayProgress: + "": + parameters: + query: + key: "" + time: 90000 + state: "played" + responses: + "401": + application/json: {"errors": []} + get-banner-image: + speakeasy-default-get-banner-image: + parameters: + path: + ratingKey: 9518 + query: + width: 396 + height: 396 + minSize: 1 + upscale: 1 + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + get-thumb-image: + speakeasy-default-get-thumb-image: + parameters: + path: + ratingKey: 9518 + query: + width: 396 + height: 396 + minSize: 1 + upscale: 1 + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + getTimeline: + "": + parameters: + query: + ratingKey: 23409 + key: "/library/metadata/23409" + state: "playing" + hasMDE: 1 + time: 2000 + duration: 10000 + context: "home:hub.continueWatching" + playQueueItemID: 1 + playBackTime: 2000 + row: 1 + responses: + "401": + application/json: {"errors": []} + startUniversalTranscode: + "": + parameters: + query: + hasMDE: 1 + path: "/library/metadata/23409" + mediaIndex: 0 + partIndex: 0 + protocol: "hls" + fastSeek: 0 + directPlay: 0 + directStream: 0 + subtitleSize: 100 + subtites: "burn" + audioBoost: 100 + location: "lan" + mediaBufferSize: 102400 + session: "zvcage8b7rkioqcm8f4uns4c" + addDebugOverlay: 0 + autoAdjustQuality: 0 + responses: + "401": + application/json: {"errors": []} + getServerActivities: + speakeasy-default-get-server-activities: + responses: + "401": + application/json: {"errors": []} + cancelServerActivities: + "": + parameters: + path: + activityUUID: "25b71ed5-0f9d-461c-baa7-d404e9e10d3e" + responses: + "401": + application/json: {"errors": []} + getButlerTasks: + speakeasy-default-get-butler-tasks: + responses: + "200": + application/json: {"ButlerTasks": {"ButlerTask": []}} + "401": + application/json: {"errors": []} + startAllTasks: + speakeasy-default-start-all-tasks: + responses: + "401": + application/json: {"errors": []} + stopAllTasks: + speakeasy-default-stop-all-tasks: + responses: + "401": + application/json: {"errors": []} + startTask: + speakeasy-default-start-task: + parameters: + path: + taskName: "CleanOldBundles" + responses: + "401": + application/json: {"errors": []} + stopTask: + speakeasy-default-stop-task: + parameters: + path: + taskName: "BackupDatabase" + responses: + "401": + application/json: {"errors": []} + getCompanionsData: + speakeasy-default-get-companions-data: + responses: + "200": + application/json: [] + "401": + application/json: {"errors": []} + getUserFriends: + speakeasy-default-get-user-friends: + responses: + "200": + 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": []} + getGeoData: + speakeasy-default-get-geo-data: + responses: + "200": + 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": []} + getHomeData: + speakeasy-default-get-home-data: + responses: + "200": + application/json: {"id": 1841489, "name": "Blindkitty38's home", "guestUserID": 58815432, "guestUserUUID": "f3df4e01bfca0787"} + "401": + application/json: {"errors": []} + get-server-resources: + speakeasy-default-get-server-resources: + parameters: + query: + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + includeHttps: 1 + includeRelay: 1 + includeIPv6: 1 + responses: + "401": + application/json: {"errors": []} + getPin: + "": + parameters: + query: + X-Plex-Product: "Plex Web" + responses: + "200": + application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"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"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} + "400": + application/json: {"errors": []} + getTokenByPinId: + "": + parameters: + path: + pinID: 408895 + query: {} + responses: + "200": + application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"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"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} + "400": + application/json: {"errors": []} + "404": + application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]} + getGlobalHubs: + speakeasy-default-get-global-hubs: + responses: + "200": + application/json: {"MediaContainer": {"size": 8, "allowSync": true, "identifier": "com.plexapp.plugins.library", "Hub": []}} + "401": + application/json: {"errors": []} + getLibraryHubs: + speakeasy-default-get-library-hubs: + parameters: + path: + sectionId: "6728.76" + query: {} + responses: + "200": + 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": []} + performSearch: + speakeasy-default-perform-search: + parameters: + query: + query: "dylan" + limit: 5 + responses: + "401": + application/json: {"errors": []} + performVoiceSearch: + speakeasy-default-perform-voice-search: + parameters: + query: + query: "dead+poop" + limit: 5 + responses: + "401": + application/json: {"errors": []} + getSearchResults: + speakeasy-default-get-search-results: + parameters: + query: + query: "110" + responses: + "200": + application/json: {"MediaContainer": {"size": 26, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": [], "Provider": []}} + "401": + application/json: {"errors": []} + getFileHash: + speakeasy-default-get-file-hash: + parameters: + query: + url: "file://C:\\Image.png&type=13" + responses: + "401": + application/json: {"errors": []} + getRecentlyAdded: + speakeasy-default-get-recently-added: + parameters: + query: + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + responses: + "200": + application/json: {"MediaContainer": {"size": 50, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": []}} + "401": + application/json: {"errors": []} + get-all-libraries: + speakeasy-default-get-all-libraries: + responses: + "200": + application/json: {"MediaContainer": {"size": 5, "allowSync": false, "title1": "Plex Library", "Directory": []}} + "401": + application/json: {"errors": []} + get-library-details: + speakeasy-default-get-library-details: + parameters: + path: + sectionKey: 9518 + query: {} + responses: + "200": + 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": []} + deleteLibrary: + speakeasy-default-delete-library: + parameters: + path: + sectionKey: 9518 + responses: + "401": + application/json: {"errors": []} + get-library-items: + "": + parameters: + path: + sectionKey: 9518 + tag: "edition" + query: + includeGuids: 1 + includeMeta: 1 + type: 2 + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + responses: + "200": + 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": []} + get-refresh-library-metadata: + speakeasy-default-get-refresh-library-metadata: + parameters: + path: + sectionKey: 9518 + query: + force: 0 + responses: + "401": + application/json: {"errors": []} + get-search-library: + speakeasy-default-get-search-library: + parameters: + path: + sectionKey: 9518 + query: + type: 2 + responses: + "200": + 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": []} + get-meta-data-by-rating-key: + speakeasy-default-get-meta-data-by-rating-key: + parameters: + path: + ratingKey: 9518 + responses: + "200": + 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": []} + getMetadataChildren: + include-stream: + parameters: + path: + ratingKey: "1539.14" + query: + includeElements: "Stream" + responses: + "200": + 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": []} + include-stream-otheritem: + parameters: + path: + ratingKey: "8449.64" + query: + includeElements: "Stream,OtherItem" + responses: + "200": + 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": []} + include-stream-otheritem-anotheritem: + parameters: + path: + ratingKey: "5800.4" + query: + includeElements: "Stream,OtherItem,AnotherItem" + responses: + "200": + 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": []} + getTopWatchedContent: + "": + parameters: + query: + type: 2 + includeGuids: 1 + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "allowSync": true, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "Metadata": []}} + "401": + application/json: {"errors": []} + getOnDeck: + speakeasy-default-get-on-deck: + responses: + "200": + application/json: {"MediaContainer": {"size": 16, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": []}} + "401": + application/json: {"errors": []} + get-watch-list: + speakeasy-default-get-watch-list: + parameters: + path: + filter: "available" + query: + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + logLine: + speakeasy-default-log-line: + parameters: + query: + level: 3 + message: "Test log message" + source: "Postman" + responses: + "401": + application/json: {"errors": []} + logMultiLine: + speakeasy-default-log-multi-line: + requestBody: + text/plain: "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman" + responses: + "401": + application/json: {"errors": []} + enablePaperTrail: + speakeasy-default-enable-paper-trail: + responses: + "401": + application/json: {"errors": []} + createPlaylist: + speakeasy-default-create-playlist: + parameters: + query: + title: "" + type: "photo" + smart: 1 + uri: "https://inborn-brochure.biz" + responses: + "200": + application/json: {"MediaContainer": {"size": 7, "Metadata": []}} + "401": + application/json: {"errors": []} + getPlaylists: + speakeasy-default-get-playlists: + responses: + "200": + application/json: {"MediaContainer": {"size": 4, "Metadata": []}} + "401": + application/json: {"errors": []} + getPlaylist: + speakeasy-default-get-playlist: + parameters: + path: + playlistID: "4109.48" + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Metadata": []}} + "401": + application/json: {"errors": []} + deletePlaylist: + speakeasy-default-delete-playlist: + parameters: + path: + playlistID: "216.22" + responses: + "401": + application/json: {"errors": []} + updatePlaylist: + speakeasy-default-update-playlist: + parameters: + path: + playlistID: "3915" + query: {} + responses: + "401": + application/json: {"errors": []} + getPlaylistContents: + speakeasy-default-get-playlist-contents: + parameters: + path: + playlistID: "5004.46" + query: + type: 2 + responses: + "200": + 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": []} + clearPlaylistContents: + speakeasy-default-clear-playlist-contents: + parameters: + path: + playlistID: "1893.18" + responses: + "401": + application/json: {"errors": []} + addPlaylistContents: + speakeasy-default-add-playlist-contents: + parameters: + path: + playlistID: "8502.01" + query: + uri: "server://12345/com.plexapp.plugins.library/library/metadata/1" + playQueueID: 123 + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "leafCountAdded": 1, "leafCountRequested": 1, "Metadata": []}} + "401": + application/json: {"errors": []} + uploadPlaylist: + speakeasy-default-upload-playlist: + parameters: + query: + path: "/home/barkley/playlist.m3u" + force: 0 + responses: + "401": + application/json: {"errors": []} + getTransientToken: + speakeasy-default-get-transient-token: + parameters: + query: + type: "delegation" + scope: "all" + responses: + "401": + application/json: {"errors": []} + getSourceConnectionInformation: + speakeasy-default-get-source-connection-information: + parameters: + query: + source: "server://client-identifier" + responses: + "401": + application/json: {"errors": []} + getUserDetails: + speakeasy-default-get-user-details: + parameters: + query: + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "200": + 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": []} + post-users-sign-in-data: + speakeasy-default-post-users-sign-in-data: + requestBody: + application/x-www-form-urlencoded: {"login": "username@email.com", "password": "password123"} + 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": []} + getStatistics: + "": + parameters: + query: + Timespan: 4 + responses: + "200": + application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}} + "401": + application/json: {"errors": []} + getResourcesStatistics: + "": + parameters: + query: + Timespan: 4 + responses: + "200": + application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}} + "401": + application/json: {"errors": []} + getBandwidthStatistics: + "": + parameters: + query: + Timespan: 4 + responses: + "200": + application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}} + "401": + application/json: {"errors": []} + getSessions: + speakeasy-default-get-sessions: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Metadata": []}} + "401": + application/json: {"errors": []} + getSessionHistory: + viewed-at-descending: + parameters: + query: + sort: "viewedAt:desc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + viewed-at-ascending: + parameters: + query: + sort: "viewedAt:asc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + rating-descending: + parameters: + query: + sort: "rating:desc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + rating-ascending: + parameters: + query: + sort: "rating:asc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + "": + parameters: + query: + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + ViewedAt: + parameters: + query: + accountId: 1 + filter: viewedAt>=1704862818 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + getTranscodeSessions: + speakeasy-default-get-transcode-sessions: + responses: + "200": + 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": []} + stopTranscodeSession: + speakeasy-default-stop-transcode-session: + parameters: + path: + sessionKey: "zz7llzqlx8w9vnrsbnwhbmep" + responses: + "401": + application/json: {"errors": []} + getUpdateStatus: + speakeasy-default-get-update-status: + responses: + "200": + 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": []} + checkForUpdates: + "": + parameters: + query: + download: 1 + responses: + "401": + application/json: {"errors": []} + applyUpdates: + "": + parameters: + query: + tonight: 1 + skip: 1 + responses: + "401": + application/json: {"errors": []} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 78c334dd..6e9f31b2 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.20.0 + version: 0.20.1 additionalDependencies: dependencies: {} devDependencies: {} @@ -25,11 +25,11 @@ typescript: imports: option: openapi paths: - callbacks: "" - errors: "" - operations: "" - shared: "" - webhooks: "" + callbacks: sdk/models/callbacks + errors: sdk/models/errors + operations: sdk/models/operations + shared: sdk/models/shared + webhooks: sdk/models/webhooks inputModelSuffix: input maxMethodParams: 4 methodArguments: require-security-and-request diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fb032bbd..aa82c8b4 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,30 +1,27 @@ -speakeasyVersion: 1.390.7 +speakeasyVersion: 1.392.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:fff67c8d70fdb1711caf3e9c61cdc91a4c88ac98b3419c1d287db6ca95c7278b - sourceBlobDigest: sha256:235067aeeeba40f6a4b062d9b9e6816a6e1282023f9664b46cbc1af6495b4c53 + sourceRevisionDigest: sha256:893baf00932f1b8e49b2e60af272be6a9a62934af6eb3a2f96dd9f2302ef69c5 + sourceBlobDigest: sha256:f689cdc9c740f4e5120422720722d2d256d56ceb62bc13370713ec1661a433df tags: - latest - - main targets: plexjs: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:fff67c8d70fdb1711caf3e9c61cdc91a4c88ac98b3419c1d287db6ca95c7278b - sourceBlobDigest: sha256:235067aeeeba40f6a4b062d9b9e6816a6e1282023f9664b46cbc1af6495b4c53 + sourceRevisionDigest: sha256:893baf00932f1b8e49b2e60af272be6a9a62934af6eb3a2f96dd9f2302ef69c5 + sourceBlobDigest: sha256:f689cdc9c740f4e5120422720722d2d256d56ceb62bc13370713ec1661a433df codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:18919b4d52e4482e8771f2e3657d74cae7f332e481471d177e5b248a9ffc99bd - outLocation: /github/workspace/repo + codeSamplesRevisionDigest: sha256:b3fb1b3f53be806e5ae44adc1c7d9ce9bd9230f8138f033595e3ae2a68d73462 + outLocation: /home/luke/github/plexjs workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: my-source: inputs: - - location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml - registry: - location: registry.speakeasyapi.dev/lukehagar/lukehagar/my-source + - location: registry.speakeasyapi.dev/lukehagar/lukehagar/plex-api:main targets: plexjs: target: typescript diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 26811dab..9e6e9a60 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -3,16 +3,14 @@ speakeasyVersion: latest sources: my-source: inputs: - - location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml - registry: - location: registry.speakeasyapi.dev/lukehagar/lukehagar/my-source + - location: registry.speakeasyapi.dev/lukehagar/lukehagar/plex-api:main targets: plexjs: target: typescript source: my-source publish: npm: - token: $NPM_TOKEN + token: $npm_token codeSamples: output: codeSamples.yaml registry: diff --git a/FUNCTIONS.md b/FUNCTIONS.md index a9456bf5..47ee5437 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -21,7 +21,7 @@ specific category of applications. ```typescript import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { serverGetServerCapabilities } from "@lukehagar/plexjs/funcs/serverGetServerCapabilities.js"; -import { SDKValidationError } from "@lukehagar/plexjs/models/sdkvalidationerror.js"; +import { SDKValidationError } from "@lukehagar/plexjs/sdk/models/errors/sdkvalidationerror.js"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/README.md b/README.md index cc5358e7..1f661055 100644 --- a/README.md +++ b/README.md @@ -219,17 +219,20 @@ 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 | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| models.GetServerCapabilitiesServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| errors.GetServerCapabilitiesResponseBody | 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. ```typescript -import { GetServerCapabilitiesServerResponseBody, PlexAPI } from "@lukehagar/plexjs"; -import { SDKValidationError } from "@lukehagar/plexjs/models"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { + GetServerCapabilitiesResponseBody, + SDKValidationError, +} from "@lukehagar/plexjs/sdk/models/errors"; const plexAPI = new PlexAPI({ accessToken: "", @@ -252,8 +255,8 @@ async function run() { console.error(err.rawValue); return; } - case err instanceof GetServerCapabilitiesServerResponseBody: { - // Handle err.data$: GetServerCapabilitiesServerResponseBodyData + case err instanceof GetServerCapabilitiesResponseBody: { + // Handle err.data$: GetServerCapabilitiesResponseBodyData console.error(err); return; } @@ -560,7 +563,8 @@ This is used to track the client application and its usage ### Example ```typescript -import { IncludeHttps, IncludeIPv6, IncludeRelay, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", diff --git a/codeSamples.yaml b/codeSamples.yaml index 5970049d..e135c4ec 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,447 +3,447 @@ info: title: CodeSamples overlay for typescript target version: 0.0.0 actions: - - target: $["paths"]["/security/resources"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getSourceConnectionInformation - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.getSourceConnectionInformation(\"server://client-identifier\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/status/sessions"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getSessions - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.getSessions();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/servers"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getServerList - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getServerList();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/butler"]["delete"] - update: - x-codeSamples: - - lang: typescript - label: stopAllTasks - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.stopAllTasks();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/butler/{taskName}"]["post"] - update: - x-codeSamples: - - lang: typescript - label: startTask - source: "import { PlexAPI, TaskName } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.startTask(TaskName.CleanOldBundles);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/home"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getHomeData - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getHomeData();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/{playlistID}"]["put"] - update: - x-codeSamples: - - lang: typescript - label: updatePlaylist - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.updatePlaylist(3915);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getMetadataChildren - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getMetadataChildren(1539.14, \"Stream\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/users/signin"]["post"] - update: - 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();" - - target: $["paths"]["/statistics/bandwidth"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getBandwidthStatistics - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.statistics.getBandwidthStatistics(4);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/user"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getUserDetails - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.getUserDetails(\"CV5xoxjTpFKUzBTShsaf\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/pins"]["post"] - update: - x-codeSamples: - - lang: typescript - label: getPin - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getPin(\"gcgzw5rz2xovp84b4vha3a40\", \"Plex Web\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections/{sectionKey}/{tag}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: items - source: "import { IncludeGuids, IncludeMeta, PlexAPI, Tag, Type } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getLibraryItems({\n sectionKey: 9518,\n tag: Tag.Edition,\n includeGuids: IncludeGuids.One,\n includeMeta: IncludeMeta.One,\n type: Type.Two,\n xPlexContainerStart: 0,\n xPlexContainerSize: 50,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/all/top"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getTopWatchedContent - source: "import { GetTopWatchedContentQueryParamType, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getTopWatchedContent(GetTopWatchedContentQueryParamType.Two, 1);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists"]["post"] - update: - x-codeSamples: - - lang: typescript - label: createPlaylist - source: "import { CreatePlaylistQueryParamType, PlexAPI, Smart } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.createPlaylist({\n title: \"\",\n type: CreatePlaylistQueryParamType.Photo,\n smart: Smart.One,\n uri: \"https://inborn-brochure.biz\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/{playlistID}/items"]["put"] - update: - x-codeSamples: - - lang: typescript - label: addPlaylistContents - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.addPlaylistContents(8502.01, \"server://12345/com.plexapp.plugins.library/library/metadata/1\", 123);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/media/providers"]["get"] - update: - x-codeSamples: - - lang: typescript - label: providers - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getMediaProviders(\"CV5xoxjTpFKUzBTShsaf\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getLibraryHubs - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.hubs.getLibraryHubs(6728.76);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hubs/search/voice"]["get"] - update: - x-codeSamples: - - lang: typescript - label: performVoiceSearch - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.search.performVoiceSearch(\"dead+poop\", 5);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections/{sectionKey}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: details - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getLibraryDetails(9518);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: list - source: "import { Filter, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.watchlist.getWatchList({\n filter: Filter.Available,\n xPlexContainerStart: 0,\n xPlexContainerSize: 50,\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/"]["get"] update: x-codeSamples: - lang: typescript label: getServerCapabilities source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getServerCapabilities();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/{playlistID}"]["delete"] - update: - x-codeSamples: - - lang: typescript - label: deletePlaylist - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.deletePlaylist(216.22);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/butler"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getButlerTasks - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.getButlerTasks();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections"]["get"] - update: - x-codeSamples: - - lang: typescript - label: libraries - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getAllLibraries();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/log"]["get"] - update: - x-codeSamples: - - lang: typescript - label: logLine - source: "import { Level, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.log.logLine(Level.Three, \"Test log message\", \"Postman\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/clients"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getAvailableClients - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getAvailableClients();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/devices"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getDevices - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getDevices();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/photo/:/transcode"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getResizedPhoto - source: "import { MinSize, PlexAPI, Upscale } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getResizedPhoto({\n width: 110,\n height: 165,\n opacity: 100,\n blur: 20,\n minSize: MinSize.One,\n upscale: Upscale.Zero,\n url: \"/library/metadata/49564/thumb/1654258204\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/metadata/{ratingKey}/thumb"]["get"] - update: - x-codeSamples: - - lang: typescript - label: image - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.getThumbImage({\n ratingKey: 9518,\n width: 396,\n height: 396,\n minSize: 1,\n upscale: 1,\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/activities"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getServerActivities - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.activities.getServerActivities();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/{playlistID}/items"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getPlaylistContents - source: "import { GetPlaylistContentsQueryParamType, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.getPlaylistContents(5004.46, GetPlaylistContentsQueryParamType.Two);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] - update: - x-codeSamples: - - lang: typescript - label: clearPlaylistContents - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.clearPlaylistContents(1893.18);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/statistics/media"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getStatistics - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.statistics.getStatistics(4);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/transcode/sessions"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getTranscodeSessions - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.getTranscodeSessions();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/updater/apply"]["put"] - update: - x-codeSamples: - - lang: typescript - label: applyUpdates - source: "import { PlexAPI, Skip, Tonight } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.updater.applyUpdates(Tonight.One, Skip.One);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getPlaylists - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.getPlaylists();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/statistics/resources"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getResourcesStatistics - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.statistics.getResourcesStatistics(4);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/status/sessions/history/all"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getSessionHistory - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.getSessionHistory(\"viewedAt:desc\", 1, {}, 12);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] - update: - x-codeSamples: - - lang: typescript - label: startUniversalTranscode - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.video.startUniversalTranscode({\n hasMDE: 1,\n path: \"/library/metadata/23409\",\n mediaIndex: 0,\n partIndex: 0,\n protocol: \"hls\",\n fastSeek: 0,\n directPlay: 0,\n directStream: 0,\n subtitleSize: 100,\n subtites: \"burn\",\n audioBoost: 100,\n location: \"lan\",\n mediaBufferSize: 102400,\n session: \"zvcage8b7rkioqcm8f4uns4c\",\n addDebugOverlay: 0,\n autoAdjustQuality: 0,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/butler/{taskName}"]["delete"] - update: - x-codeSamples: - - lang: typescript - label: stopTask - source: "import { PathParamTaskName, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.stopTask(PathParamTaskName.BackupDatabase);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/pins/{pinID}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getTokenByPinId - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getTokenByPinId(408895, \"gcgzw5rz2xovp84b4vha3a40\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hubs/search"]["get"] - update: - x-codeSamples: - - lang: typescript - label: performSearch - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.search.performSearch(\"arnold\", 5);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/search"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getSearchResults - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.search.getSearchResults(\"110\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/updater/check"]["put"] - update: - x-codeSamples: - - lang: typescript - label: checkForUpdates - source: "import { Download, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.updater.checkForUpdates(Download.One);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/identity"]["get"] - update: - x-codeSamples: - - lang: typescript - label: identity - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getServerIdentity();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/:/scrobble"]["get"] - update: - x-codeSamples: - - lang: typescript - label: markPlayed - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.markPlayed(59398);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/resources"]["get"] - update: - x-codeSamples: - - lang: typescript - label: resources - source: "import { IncludeHttps, IncludeIPv6, IncludeRelay, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getServerResources({\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n includeHttps: IncludeHttps.One,\n includeRelay: IncludeRelay.One,\n includeIPv6: IncludeIPv6.One,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"] - update: - x-codeSamples: - - lang: typescript - label: metadata - source: "import { Force, PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getRefreshLibraryMetadata(9518, Force.One);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/security/token"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getTransientToken - source: "import { GetTransientTokenQueryParamType, PlexAPI, Scope } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.getTransientToken(GetTransientTokenQueryParamType.Delegation, Scope.All);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/:/prefs"]["get"] update: x-codeSamples: - lang: typescript label: getServerPreferences source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getServerPreferences();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/recentlyAdded"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getRecentlyAdded - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getRecentlyAdded(0, 50);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections/{sectionKey}"]["delete"] - update: - x-codeSamples: - - lang: typescript - label: deleteLibrary - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.deleteLibrary(9518);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/sections/{sectionKey}/search"]["get"] - update: - x-codeSamples: - - lang: typescript - label: library - source: "import { PlexAPI, QueryParamType } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getSearchLibrary(9518, QueryParamType.Two);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/log/networked"]["get"] - update: - x-codeSamples: - - lang: typescript - label: enablePaperTrail - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.log.enablePaperTrail();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] - update: - x-codeSamples: - - lang: typescript - label: stopTranscodeSession - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.stopTranscodeSession(\"zz7llzqlx8w9vnrsbnwhbmep\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/myplex/account"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getMyPlexAccount - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getMyPlexAccount();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/:/unscrobble"]["get"] - update: - x-codeSamples: - - lang: typescript - label: markUnplayed - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.markUnplayed(59398);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/geoip"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getGeoData - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getGeoData();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/hubs"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getGlobalHubs - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.hubs.getGlobalHubs();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] - update: - x-codeSamples: - - lang: typescript - label: key - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getMetaDataByRatingKey(9518);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/:/progress"]["post"] update: x-codeSamples: - lang: typescript label: updatePlayProgress source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.updatePlayProgress(\"\", 90000, \"played\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/onDeck"]["get"] + - target: $["paths"]["/:/scrobble"]["get"] update: x-codeSamples: - lang: typescript - label: getOnDeck - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getOnDeck();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/{playlistID}"]["get"] + label: markPlayed + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.markPlayed(59398);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/:/timeline"]["get"] update: x-codeSamples: - lang: typescript - label: getPlaylist - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.getPlaylist(4109.48);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/library/metadata/{ratingKey}/banner"]["get"] + label: getTimeline + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { State } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.video.getTimeline({\n ratingKey: 23409,\n key: \"/library/metadata/23409\",\n state: State.Playing,\n hasMDE: 1,\n time: 2000,\n duration: 10000,\n context: \"home:hub.continueWatching\",\n playQueueItemID: 1,\n playBackTime: 2000,\n row: 1,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/:/unscrobble"]["get"] update: x-codeSamples: - lang: typescript - label: image - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.getBannerImage({\n ratingKey: 9518,\n width: 396,\n height: 396,\n minSize: 1,\n upscale: 1,\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/friends"]["get"] + label: markUnplayed + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.markUnplayed(59398);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/activities"]["get"] update: x-codeSamples: - lang: typescript - label: getUserFriends - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getUserFriends();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/log"]["post"] - update: - x-codeSamples: - - lang: typescript - label: logMultiLine - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.log.logMultiLine(\"level=4&message=Test%20message%201&source=postman\\n\" +\n \"level=3&message=Test%20message%202&source=postman\\n\" +\n \"level=1&message=Test%20message%203&source=postman\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/updater/status"]["get"] - update: - x-codeSamples: - - lang: typescript - label: getUpdateStatus - source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.updater.getUpdateStatus();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + label: getServerActivities + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.activities.getServerActivities();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/activities/{activityUUID}"]["delete"] update: x-codeSamples: - lang: typescript label: cancelServerActivities source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.activities.cancelServerActivities(\"25b71ed5-0f9d-461c-baa7-d404e9e10d3e\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/playlists/upload"]["post"] + - target: $["paths"]["/butler"]["delete"] update: x-codeSamples: - lang: typescript - label: uploadPlaylist - source: "import { PlexAPI, QueryParamForce } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.uploadPlaylist(\"/home/barkley/playlist.m3u\", QueryParamForce.Zero);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - - target: $["paths"]["/:/timeline"]["get"] + label: stopAllTasks + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.stopAllTasks();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/butler"]["get"] update: x-codeSamples: - lang: typescript - label: getTimeline - source: "import { PlexAPI, State } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.video.getTimeline({\n ratingKey: 23409,\n key: \"/library/metadata/23409\",\n state: State.Playing,\n hasMDE: 1,\n time: 2000,\n duration: 10000,\n context: \"home:hub.continueWatching\",\n playQueueItemID: 1,\n playBackTime: 2000,\n row: 1,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + label: getButlerTasks + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.getButlerTasks();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/butler"]["post"] update: x-codeSamples: - lang: typescript label: startAllTasks source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.startAllTasks();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/butler/{taskName}"]["delete"] + update: + x-codeSamples: + - lang: typescript + label: stopTask + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { PathParamTaskName } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.stopTask(PathParamTaskName.BackupDatabase);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/butler/{taskName}"]["post"] + update: + x-codeSamples: + - lang: typescript + label: startTask + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { TaskName } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.butler.startTask(TaskName.CleanOldBundles);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/clients"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getAvailableClients + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getAvailableClients();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/companions"]["get"] update: x-codeSamples: - lang: typescript label: getCompanionsData source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getCompanionsData();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/devices"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getDevices + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getDevices();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/friends"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getUserFriends + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getUserFriends();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/geoip"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getGeoData + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getGeoData();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/home"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getHomeData + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getHomeData();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/hubs"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getGlobalHubs + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.hubs.getGlobalHubs();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/hubs/search"]["get"] + update: + x-codeSamples: + - lang: typescript + label: performSearch + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.search.performSearch(\"dylan\", 5);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/hubs/search/voice"]["get"] + update: + x-codeSamples: + - lang: typescript + label: performVoiceSearch + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.search.performVoiceSearch(\"dead+poop\", 5);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getLibraryHubs + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.hubs.getLibraryHubs(6728.76);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/identity"]["get"] + update: + x-codeSamples: + - lang: typescript + label: identity + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getServerIdentity();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/all/top"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getTopWatchedContent + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { GetTopWatchedContentQueryParamType } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getTopWatchedContent(GetTopWatchedContentQueryParamType.Two, 1);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" - target: $["paths"]["/library/hashes"]["get"] update: x-codeSamples: - lang: typescript label: getFileHash source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getFileHash(\"file://C:\\Image.png&type=13\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: key + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getMetaDataByRatingKey(9518);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/metadata/{ratingKey}/banner"]["get"] + update: + x-codeSamples: + - lang: typescript + label: image + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.getBannerImage({\n ratingKey: 9518,\n width: 396,\n height: 396,\n minSize: 1,\n upscale: 1,\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getMetadataChildren + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getMetadataChildren(1539.14, \"Stream\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/metadata/{ratingKey}/thumb"]["get"] + update: + x-codeSamples: + - lang: typescript + label: image + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.media.getThumbImage({\n ratingKey: 9518,\n width: 396,\n height: 396,\n minSize: 1,\n upscale: 1,\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/onDeck"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getOnDeck + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getOnDeck();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/recentlyAdded"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getRecentlyAdded + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getRecentlyAdded(0, 50);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections"]["get"] + update: + x-codeSamples: + - lang: typescript + label: libraries + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getAllLibraries();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: list + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { Filter } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.watchlist.getWatchList({\n filter: Filter.Available,\n xPlexContainerStart: 0,\n xPlexContainerSize: 50,\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections/{sectionKey}"]["delete"] + update: + x-codeSamples: + - lang: typescript + label: deleteLibrary + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.deleteLibrary(9518);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections/{sectionKey}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: details + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getLibraryDetails(9518);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"] + update: + x-codeSamples: + - lang: typescript + label: metadata + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { Force } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getRefreshLibraryMetadata(9518, Force.One);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections/{sectionKey}/search"]["get"] + update: + x-codeSamples: + - lang: typescript + label: library + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { QueryParamType } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getSearchLibrary(9518, QueryParamType.Two);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/library/sections/{sectionKey}/{tag}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: items + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { IncludeGuids, IncludeMeta, Tag, Type } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.library.getLibraryItems({\n sectionKey: 9518,\n tag: Tag.Edition,\n includeGuids: IncludeGuids.One,\n includeMeta: IncludeMeta.One,\n type: Type.Two,\n xPlexContainerStart: 0,\n xPlexContainerSize: 50,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/log"]["get"] + update: + x-codeSamples: + - lang: typescript + label: logLine + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { Level } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.log.logLine(Level.Three, \"Test log message\", \"Postman\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/log"]["post"] + update: + x-codeSamples: + - lang: typescript + label: logMultiLine + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.log.logMultiLine(\"level=4&message=Test%20message%201&source=postman\\n\" +\n \"level=3&message=Test%20message%202&source=postman\\n\" +\n \"level=1&message=Test%20message%203&source=postman\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/log/networked"]["get"] + update: + x-codeSamples: + - lang: typescript + label: enablePaperTrail + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.log.enablePaperTrail();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/media/providers"]["get"] + update: + x-codeSamples: + - lang: typescript + label: providers + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getMediaProviders(\"CV5xoxjTpFKUzBTShsaf\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/myplex/account"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getMyPlexAccount + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getMyPlexAccount();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/photo/:/transcode"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getResizedPhoto + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { MinSize, Upscale } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getResizedPhoto({\n width: 110,\n height: 165,\n opacity: 100,\n blur: 20,\n minSize: MinSize.One,\n upscale: Upscale.One,\n url: \"/library/metadata/49564/thumb/1654258204\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/pins"]["post"] + update: + x-codeSamples: + - lang: typescript + label: getPin + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getPin(\"gcgzw5rz2xovp84b4vha3a40\", \"Plex Web\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/pins/{pinID}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getTokenByPinId + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getTokenByPinId(408895, \"gcgzw5rz2xovp84b4vha3a40\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getPlaylists + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.getPlaylists();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists"]["post"] + update: + x-codeSamples: + - lang: typescript + label: createPlaylist + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { CreatePlaylistQueryParamType, Smart } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.createPlaylist({\n title: \"\",\n type: CreatePlaylistQueryParamType.Photo,\n smart: Smart.One,\n uri: \"https://inborn-brochure.biz\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/upload"]["post"] + update: + x-codeSamples: + - lang: typescript + label: uploadPlaylist + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { QueryParamForce } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.uploadPlaylist(\"/home/barkley/playlist.m3u\", QueryParamForce.Zero);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/{playlistID}"]["delete"] + update: + x-codeSamples: + - lang: typescript + label: deletePlaylist + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.deletePlaylist(216.22);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/{playlistID}"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getPlaylist + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.getPlaylist(4109.48);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/{playlistID}"]["put"] + update: + x-codeSamples: + - lang: typescript + label: updatePlaylist + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.updatePlaylist(3915);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] + update: + x-codeSamples: + - lang: typescript + label: clearPlaylistContents + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.clearPlaylistContents(1893.18);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/{playlistID}/items"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getPlaylistContents + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { GetPlaylistContentsQueryParamType } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.getPlaylistContents(5004.46, GetPlaylistContentsQueryParamType.Two);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/playlists/{playlistID}/items"]["put"] + update: + x-codeSamples: + - lang: typescript + label: addPlaylistContents + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.playlists.addPlaylistContents(8502.01, \"server://12345/com.plexapp.plugins.library/library/metadata/1\", 123);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/resources"]["get"] + update: + x-codeSamples: + - lang: typescript + label: resources + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { IncludeHttps, IncludeIPv6, IncludeRelay } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.plex.getServerResources({\n xPlexToken: \"CV5xoxjTpFKUzBTShsaf\",\n includeHttps: IncludeHttps.One,\n includeRelay: IncludeRelay.One,\n includeIPv6: IncludeIPv6.One,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/search"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getSearchResults + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.search.getSearchResults(\"110\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/security/resources"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getSourceConnectionInformation + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.getSourceConnectionInformation(\"server://client-identifier\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/security/token"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getTransientToken + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { GetTransientTokenQueryParamType, Scope } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.getTransientToken(GetTransientTokenQueryParamType.Delegation, Scope.All);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/servers"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getServerList + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.server.getServerList();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/statistics/bandwidth"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getBandwidthStatistics + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.statistics.getBandwidthStatistics(4);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/statistics/media"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getStatistics + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.statistics.getStatistics(4);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/statistics/resources"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getResourcesStatistics + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.statistics.getResourcesStatistics(4);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/status/sessions"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getSessions + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.getSessions();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/status/sessions/history/all"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getSessionHistory + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.getSessionHistory(\"viewedAt:desc\", 1, {}, 12);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/transcode/sessions"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getTranscodeSessions + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.getTranscodeSessions();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] + update: + x-codeSamples: + - lang: typescript + label: stopTranscodeSession + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.sessions.stopTranscodeSession(\"zz7llzqlx8w9vnrsbnwhbmep\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/updater/apply"]["put"] + update: + x-codeSamples: + - lang: typescript + label: applyUpdates + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { Skip, Tonight } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.updater.applyUpdates(Tonight.One, Skip.One);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/updater/check"]["put"] + update: + x-codeSamples: + - lang: typescript + label: checkForUpdates + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\nimport { Download } from \"@lukehagar/plexjs/sdk/models/operations\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.updater.checkForUpdates(Download.One);\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/updater/status"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getUpdateStatus + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.updater.getUpdateStatus();\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/user"]["get"] + update: + x-codeSamples: + - lang: typescript + label: getUserDetails + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.authentication.getUserDetails(\"CV5xoxjTpFKUzBTShsaf\");\n \n // Handle the result\n console.log(result)\n}\n\nrun();" + - target: $["paths"]["/users/signin"]["post"] + update: + 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();" + - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] + update: + x-codeSamples: + - lang: typescript + label: startUniversalTranscode + source: "import { PlexAPI } from \"@lukehagar/plexjs\";\n\nconst plexAPI = new PlexAPI({\n accessToken: \"\",\n xPlexClientIdentifier: \"gcgzw5rz2xovp84b4vha3a40\",\n});\n\nasync function run() {\n const result = await plexAPI.video.startUniversalTranscode({\n hasMDE: 1,\n path: \"/library/metadata/23409\",\n mediaIndex: 0,\n partIndex: 0,\n protocol: \"hls\",\n fastSeek: 0,\n directPlay: 0,\n directStream: 0,\n subtitleSize: 100,\n subtites: \"burn\",\n audioBoost: 100,\n location: \"lan\",\n mediaBufferSize: 102400,\n session: \"zvcage8b7rkioqcm8f4uns4c\",\n addDebugOverlay: 0,\n autoAdjustQuality: 0,\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();" diff --git a/docs/models/activity.md b/docs/models/activity.md deleted file mode 100644 index db9d131f..00000000 --- a/docs/models/activity.md +++ /dev/null @@ -1,22 +0,0 @@ -# Activity - -## Example Usage - -```typescript -import { Activity } from "@lukehagar/plexjs"; - -let value: Activity = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `uuid` | *string* | :heavy_minus_sign: | N/A | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `cancellable` | *boolean* | :heavy_minus_sign: | N/A | -| `userID` | *number* | :heavy_minus_sign: | N/A | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `subtitle` | *string* | :heavy_minus_sign: | N/A | -| `progress` | *number* | :heavy_minus_sign: | N/A | -| `context` | [models.Context](../models/context.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/addplaylistcontentsmediacontainer.md b/docs/models/addplaylistcontentsmediacontainer.md deleted file mode 100644 index f478da5a..00000000 --- a/docs/models/addplaylistcontentsmediacontainer.md +++ /dev/null @@ -1,39 +0,0 @@ -# AddPlaylistContentsMediaContainer - -## Example Usage - -```typescript -import { AddPlaylistContentsMediaContainer } from "@lukehagar/plexjs"; - -let value: AddPlaylistContentsMediaContainer = { - size: 1, - leafCountAdded: 1, - leafCountRequested: 1, - metadata: [ - { - ratingKey: "94", - key: "/playlists/94/items", - guid: "com.plexapp.agents.none://972e3047-83d6-4848-a000-261f0af26ba2", - type: "playlist", - title: "A great playlist", - summary: "One of my great playlists", - smart: false, - playlistType: "video", - composite: "/playlists/94/composite/1705800070", - duration: 423000, - leafCount: 3, - addedAt: 1705716458, - updatedAt: 1705800070, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `leafCountAdded` | *number* | :heavy_minus_sign: | N/A | 1 | -| `leafCountRequested` | *number* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | [models.AddPlaylistContentsMetadata](../models/addplaylistcontentsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/addplaylistcontentsplaylistsresponsebody.md b/docs/models/addplaylistcontentsplaylistsresponsebody.md deleted file mode 100644 index dff430d0..00000000 --- a/docs/models/addplaylistcontentsplaylistsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# AddPlaylistContentsPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { AddPlaylistContentsPlaylistsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.AddPlaylistContentsErrors](../models/addplaylistcontentserrors.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/models/addplaylistcontentsresponse.md b/docs/models/addplaylistcontentsresponse.md deleted file mode 100644 index 530b3b41..00000000 --- a/docs/models/addplaylistcontentsresponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# AddPlaylistContentsResponse - -## Example Usage - -```typescript -import { AddPlaylistContentsResponse } from "@lukehagar/plexjs"; - -let value: AddPlaylistContentsResponse = { - contentType: "", - statusCode: 820994, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 1, - leafCountAdded: 1, - leafCountRequested: 1, - metadata: [ - { - ratingKey: "94", - key: "/playlists/94/items", - guid: "com.plexapp.agents.none://972e3047-83d6-4848-a000-261f0af26ba2", - type: "playlist", - title: "A great playlist", - summary: "One of my great playlists", - smart: false, - playlistType: "video", - composite: "/playlists/94/composite/1705800070", - duration: 423000, - leafCount: 3, - addedAt: 1705716458, - updatedAt: 1705800070, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.AddPlaylistContentsResponseBody](../models/addplaylistcontentsresponsebody.md) | :heavy_minus_sign: | Playlist Updated | \ No newline at end of file diff --git a/docs/models/applyupdatesresponsebody.md b/docs/models/applyupdatesresponsebody.md deleted file mode 100644 index cda0b512..00000000 --- a/docs/models/applyupdatesresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApplyUpdatesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { ApplyUpdatesResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.ApplyUpdatesErrors](../models/applyupdateserrors.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/models/billing.md b/docs/models/billing.md deleted file mode 100644 index 32f5f58a..00000000 --- a/docs/models/billing.md +++ /dev/null @@ -1,19 +0,0 @@ -# Billing - -## Example Usage - -```typescript -import { Billing } from "@lukehagar/plexjs"; - -let value: Billing = { - internalPaymentMethod: {}, - paymentMethodId: 317983, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `internalPaymentMethod` | [models.InternalPaymentMethod](../models/internalpaymentmethod.md) | :heavy_check_mark: | N/A | -| `paymentMethodId` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/butlertasks.md b/docs/models/butlertasks.md deleted file mode 100644 index 02922b91..00000000 --- a/docs/models/butlertasks.md +++ /dev/null @@ -1,25 +0,0 @@ -# ButlerTasks - -## Example Usage - -```typescript -import { ButlerTasks } from "@lukehagar/plexjs"; - -let value: ButlerTasks = { - butlerTask: [ - { - name: "BackupDatabase", - interval: 3, - title: "Backup Database", - description: - "Create a backup copy of the server's database in the configured backup directory", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `butlerTask` | [models.ButlerTask](../models/butlertask.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/cancelserveractivitiesresponsebody.md b/docs/models/cancelserveractivitiesresponsebody.md deleted file mode 100644 index ae38befe..00000000 --- a/docs/models/cancelserveractivitiesresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# CancelServerActivitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { CancelServerActivitiesResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `errors` | [models.CancelServerActivitiesErrors](../models/cancelserveractivitieserrors.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/models/checkforupdatesrequest.md b/docs/models/checkforupdatesrequest.md deleted file mode 100644 index b9a5571c..00000000 --- a/docs/models/checkforupdatesrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# CheckForUpdatesRequest - -## Example Usage - -```typescript -import { CheckForUpdatesRequest, Download } from "@lukehagar/plexjs"; - -let value: CheckForUpdatesRequest = { - download: Download.One, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `download` | [models.Download](../models/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | \ No newline at end of file diff --git a/docs/models/checkforupdatesresponsebody.md b/docs/models/checkforupdatesresponsebody.md deleted file mode 100644 index 0edd4c6f..00000000 --- a/docs/models/checkforupdatesresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# CheckForUpdatesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { CheckForUpdatesResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.CheckForUpdatesErrors](../models/checkforupdateserrors.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/models/clearplaylistcontentsresponsebody.md b/docs/models/clearplaylistcontentsresponsebody.md deleted file mode 100644 index 420c980a..00000000 --- a/docs/models/clearplaylistcontentsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# ClearPlaylistContentsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { ClearPlaylistContentsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `errors` | [models.ClearPlaylistContentsErrors](../models/clearplaylistcontentserrors.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/models/createplaylistmediacontainer.md b/docs/models/createplaylistmediacontainer.md deleted file mode 100644 index c0d0aea9..00000000 --- a/docs/models/createplaylistmediacontainer.md +++ /dev/null @@ -1,38 +0,0 @@ -# CreatePlaylistMediaContainer - -## Example Usage - -```typescript -import { CreatePlaylistMediaContainer } from "@lukehagar/plexjs"; - -let value: CreatePlaylistMediaContainer = { - size: 7, - metadata: [ - { - ratingKey: "96", - key: "/playlists/96/items", - guid: "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55", - type: "playlist", - title: "A Great Playlist", - summary: "What a great playlist", - smart: false, - playlistType: "video", - icon: "playlist://image.smart", - viewCount: 1, - lastViewedAt: 1705719589, - leafCount: 1, - addedAt: 1705719589, - updatedAt: 1705724593, - composite: "/playlists/96/composite/1705724593", - duration: 141000, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 7 | -| `metadata` | [models.CreatePlaylistMetadata](../models/createplaylistmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/createplaylistplaylistsresponsebody.md b/docs/models/createplaylistplaylistsresponsebody.md deleted file mode 100644 index 93d2096b..00000000 --- a/docs/models/createplaylistplaylistsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreatePlaylistPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { CreatePlaylistPlaylistsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.CreatePlaylistErrors](../models/createplaylisterrors.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/models/createplaylistrequest.md b/docs/models/createplaylistrequest.md deleted file mode 100644 index 5f908699..00000000 --- a/docs/models/createplaylistrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# CreatePlaylistRequest - -## Example Usage - -```typescript -import { CreatePlaylistQueryParamType, CreatePlaylistRequest, Smart } from "@lukehagar/plexjs"; - -let value: CreatePlaylistRequest = { - title: "", - type: CreatePlaylistQueryParamType.Photo, - smart: Smart.One, - uri: "https://exotic-harm.info", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `title` | *string* | :heavy_check_mark: | name of the playlist | -| `type` | [models.CreatePlaylistQueryParamType](../models/createplaylistqueryparamtype.md) | :heavy_check_mark: | type of playlist to create | -| `smart` | [models.Smart](../models/smart.md) | :heavy_check_mark: | whether the playlist is smart or not | -| `uri` | *string* | :heavy_check_mark: | the content URI for the playlist | -| `playQueueID` | *number* | :heavy_minus_sign: | the play queue to copy to a playlist | \ No newline at end of file diff --git a/docs/models/createplaylistresponse.md b/docs/models/createplaylistresponse.md deleted file mode 100644 index edad96a6..00000000 --- a/docs/models/createplaylistresponse.md +++ /dev/null @@ -1,49 +0,0 @@ -# CreatePlaylistResponse - -## Example Usage - -```typescript -import { CreatePlaylistResponse } from "@lukehagar/plexjs"; - -let value: CreatePlaylistResponse = { - contentType: "", - statusCode: 474697, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 7, - metadata: [ - { - ratingKey: "96", - key: "/playlists/96/items", - guid: "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55", - type: "playlist", - title: "A Great Playlist", - summary: "What a great playlist", - smart: false, - playlistType: "video", - icon: "playlist://image.smart", - viewCount: 1, - lastViewedAt: 1705719589, - leafCount: 1, - addedAt: 1705719589, - updatedAt: 1705724593, - composite: "/playlists/96/composite/1705724593", - duration: 141000, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.CreatePlaylistResponseBody](../models/createplaylistresponsebody.md) | :heavy_minus_sign: | returns all playlists | \ No newline at end of file diff --git a/docs/models/deleteplaylistresponsebody.md b/docs/models/deleteplaylistresponsebody.md deleted file mode 100644 index 03b54085..00000000 --- a/docs/models/deleteplaylistresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# DeletePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { DeletePlaylistResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.DeletePlaylistErrors](../models/deleteplaylisterrors.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/models/enablepapertrailresponsebody.md b/docs/models/enablepapertrailresponsebody.md deleted file mode 100644 index 575204b0..00000000 --- a/docs/models/enablepapertrailresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# EnablePaperTrailResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { EnablePaperTrailResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `errors` | [models.EnablePaperTrailErrors](../models/enablepapertrailerrors.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/models/feature.md b/docs/models/feature.md deleted file mode 100644 index 1d473df7..00000000 --- a/docs/models/feature.md +++ /dev/null @@ -1,17 +0,0 @@ -# Feature - -## Example Usage - -```typescript -import { Feature } from "@lukehagar/plexjs"; - -let value: Feature = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `directory` | [models.GetMediaProvidersDirectory](../models/getmediaprovidersdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/fieldtype.md b/docs/models/fieldtype.md deleted file mode 100644 index 44983fa2..00000000 --- a/docs/models/fieldtype.md +++ /dev/null @@ -1,24 +0,0 @@ -# FieldType - -## Example Usage - -```typescript -import { FieldType } from "@lukehagar/plexjs"; - -let value: FieldType = { - type: "resolution", - operator: [ - { - key: "=", - title: "is", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `type` | *string* | :heavy_minus_sign: | N/A | resolution | -| `operator` | [models.Operator](../models/operator.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/friend.md b/docs/models/friend.md deleted file mode 100644 index 1f002227..00000000 --- a/docs/models/friend.md +++ /dev/null @@ -1,39 +0,0 @@ -# Friend - -## Example Usage - -```typescript -import { Friend, Status } from "@lukehagar/plexjs"; - -let value: Friend = { - email: "username@email.com", - friendlyName: "exampleUser", - home: true, - id: 0, - restricted: false, - sharedServers: [{}], - sharedSources: [{}], - status: Status.Accepted, - thumb: "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578", - title: "username123", - username: "username123", - uuid: "7d1916e0d8f6e76b", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `email` | *string* | :heavy_check_mark: | The account email address | username@email.com | -| `friendlyName` | *string* | :heavy_check_mark: | The account full name | exampleUser | -| `home` | *boolean* | :heavy_check_mark: | If the account is a Plex Home user | | -| `id` | *number* | :heavy_check_mark: | The Plex account ID | | -| `restricted` | *boolean* | :heavy_minus_sign: | If the account is a Plex Home managed user | | -| `sharedServers` | [models.SharedServers](../models/sharedservers.md)[] | :heavy_check_mark: | N/A | | -| `sharedSources` | [models.SharedSources](../models/sharedsources.md)[] | :heavy_check_mark: | N/A | | -| `status` | [models.Status](../models/status.md) | :heavy_check_mark: | Current friend request status | accepted | -| `thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578 | -| `title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | username123 | -| `username` | *string* | :heavy_check_mark: | The account username | username123 | -| `uuid` | *string* | :heavy_check_mark: | The account Universally Unique Identifier (UUID) | 7d1916e0d8f6e76b | \ No newline at end of file diff --git a/docs/models/getalllibrariesdirectory.md b/docs/models/getalllibrariesdirectory.md deleted file mode 100644 index f97b86a4..00000000 --- a/docs/models/getalllibrariesdirectory.md +++ /dev/null @@ -1,62 +0,0 @@ -# GetAllLibrariesDirectory - -## Example Usage - -```typescript -import { GetAllLibrariesDirectory } from "@lukehagar/plexjs"; - -let value: GetAllLibrariesDirectory = { - allowSync: true, - art: "/:/resources/movie-fanart.jpg", - composite: "/library/sections/1/composite/1705615584", - filters: true, - refreshing: false, - thumb: "/:/resources/movie.png", - key: "1", - type: "movie", - title: "Movies", - agent: "tv.plex.agents.movie", - scanner: "Plex Movie", - language: "en-US", - uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", - updatedAt: 1556281940, - createdAt: 1556281940, - scannedAt: 1556281940, - content: true, - directory: true, - contentChangedAt: 3192854, - hidden: 0, - location: [ - { - id: 1, - path: "/movies", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | -| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `composite` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | -| `filters` | *boolean* | :heavy_minus_sign: | N/A | true | -| `refreshing` | *boolean* | :heavy_minus_sign: | N/A | false | -| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `key` | *string* | :heavy_minus_sign: | N/A | 1 | -| `type` | *string* | :heavy_minus_sign: | N/A | movie | -| `title` | *string* | :heavy_minus_sign: | N/A | Movies | -| `agent` | *string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | -| `scanner` | *string* | :heavy_minus_sign: | N/A | Plex Movie | -| `language` | *string* | :heavy_minus_sign: | N/A | en-US | -| `uuid` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `updatedAt` | *number* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | -| `createdAt` | *number* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | -| `scannedAt` | *number* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | -| `content` | *boolean* | :heavy_minus_sign: | N/A | true | -| `directory` | *boolean* | :heavy_minus_sign: | N/A | true | -| `contentChangedAt` | *number* | :heavy_minus_sign: | N/A | 3192854 | -| `hidden` | *number* | :heavy_minus_sign: | N/A | 0 | -| `location` | [models.Location](../models/location.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getalllibrarieslibraryresponsebody.md b/docs/models/getalllibrarieslibraryresponsebody.md deleted file mode 100644 index f3282ae5..00000000 --- a/docs/models/getalllibrarieslibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetAllLibrariesLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetAllLibrariesLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetAllLibrariesErrors](../models/getalllibrarieserrors.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/models/getalllibrariesmediacontainer.md b/docs/models/getalllibrariesmediacontainer.md deleted file mode 100644 index 45881c76..00000000 --- a/docs/models/getalllibrariesmediacontainer.md +++ /dev/null @@ -1,52 +0,0 @@ -# GetAllLibrariesMediaContainer - -## Example Usage - -```typescript -import { GetAllLibrariesMediaContainer } from "@lukehagar/plexjs"; - -let value: GetAllLibrariesMediaContainer = { - size: 5, - allowSync: false, - title1: "Plex Library", - directory: [ - { - allowSync: true, - art: "/:/resources/movie-fanart.jpg", - composite: "/library/sections/1/composite/1705615584", - filters: true, - refreshing: false, - thumb: "/:/resources/movie.png", - key: "1", - type: "movie", - title: "Movies", - agent: "tv.plex.agents.movie", - scanner: "Plex Movie", - language: "en-US", - uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", - updatedAt: 1556281940, - createdAt: 1556281940, - scannedAt: 1556281940, - content: true, - directory: true, - contentChangedAt: 3192854, - hidden: 0, - location: [ - { - id: 1, - path: "/movies", - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `size` | *number* | :heavy_check_mark: | N/A | 5 | -| `allowSync` | *boolean* | :heavy_check_mark: | N/A | false | -| `title1` | *string* | :heavy_check_mark: | N/A | Plex Library | -| `directory` | [models.GetAllLibrariesDirectory](../models/getalllibrariesdirectory.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getalllibrariesresponse.md b/docs/models/getalllibrariesresponse.md deleted file mode 100644 index f70539dc..00000000 --- a/docs/models/getalllibrariesresponse.md +++ /dev/null @@ -1,61 +0,0 @@ -# GetAllLibrariesResponse - -## Example Usage - -```typescript -import { GetAllLibrariesResponse } from "@lukehagar/plexjs"; - -let value: GetAllLibrariesResponse = { - contentType: "", - statusCode: 613064, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 5, - allowSync: false, - title1: "Plex Library", - directory: [ - { - allowSync: true, - art: "/:/resources/movie-fanart.jpg", - composite: "/library/sections/1/composite/1705615584", - filters: true, - refreshing: false, - thumb: "/:/resources/movie.png", - key: "1", - type: "movie", - title: "Movies", - agent: "tv.plex.agents.movie", - scanner: "Plex Movie", - language: "en-US", - uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", - updatedAt: 1556281940, - createdAt: 1556281940, - scannedAt: 1556281940, - content: true, - directory: true, - contentChangedAt: 3192854, - hidden: 0, - location: [ - { - id: 1, - path: "/movies", - }, - ], - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetAllLibrariesResponseBody](../models/getalllibrariesresponsebody.md) | :heavy_minus_sign: | The libraries available on the Server | \ No newline at end of file diff --git a/docs/models/getavailableclientsmediacontainer.md b/docs/models/getavailableclientsmediacontainer.md deleted file mode 100644 index 35eb3126..00000000 --- a/docs/models/getavailableclientsmediacontainer.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetAvailableClientsMediaContainer - -## Example Usage - -```typescript -import { GetAvailableClientsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetAvailableClientsMediaContainer = { - size: 1, - server: [ - { - name: "iPad", - host: "10.10.10.102", - address: "10.10.10.102", - port: 32500, - machineIdentifier: "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05", - version: "8.17", - protocol: "plex", - product: "Plex for iOS", - deviceClass: "tablet", - protocolVersion: 2, - protocolCapabilities: "playback,playqueues,timeline,provider-playback", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `server` | [models.GetAvailableClientsServer](../models/getavailableclientsserver.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getavailableclientsresponse.md b/docs/models/getavailableclientsresponse.md deleted file mode 100644 index 55251729..00000000 --- a/docs/models/getavailableclientsresponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# GetAvailableClientsResponse - -## Example Usage - -```typescript -import { GetAvailableClientsResponse } from "@lukehagar/plexjs"; - -let value: GetAvailableClientsResponse = { - contentType: "", - statusCode: 715190, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 1, - server: [ - { - name: "iPad", - host: "10.10.10.102", - address: "10.10.10.102", - port: 32500, - machineIdentifier: "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05", - version: "8.17", - protocol: "plex", - product: "Plex for iOS", - deviceClass: "tablet", - protocolVersion: 2, - protocolCapabilities: "playback,playqueues,timeline,provider-playback", - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetAvailableClientsResponseBody](../models/getavailableclientsresponsebody.md) | :heavy_minus_sign: | Available Clients | \ No newline at end of file diff --git a/docs/models/getavailableclientsresponsebody.md b/docs/models/getavailableclientsresponsebody.md deleted file mode 100644 index 6af08cb1..00000000 --- a/docs/models/getavailableclientsresponsebody.md +++ /dev/null @@ -1,36 +0,0 @@ -# GetAvailableClientsResponseBody - -Available Clients - -## Example Usage - -```typescript -import { GetAvailableClientsResponseBody } from "@lukehagar/plexjs"; - -let value: GetAvailableClientsResponseBody = { - mediaContainer: { - size: 1, - server: [ - { - name: "iPad", - host: "10.10.10.102", - address: "10.10.10.102", - port: 32500, - machineIdentifier: "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05", - version: "8.17", - protocol: "plex", - product: "Plex for iOS", - deviceClass: "tablet", - protocolVersion: 2, - protocolCapabilities: "playback,playqueues,timeline,provider-playback", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetAvailableClientsMediaContainer](../models/getavailableclientsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getavailableclientsserverresponsebody.md b/docs/models/getavailableclientsserverresponsebody.md deleted file mode 100644 index f88f91f2..00000000 --- a/docs/models/getavailableclientsserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetAvailableClientsServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetAvailableClientsServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.GetAvailableClientsErrors](../models/getavailableclientserrors.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/models/getbandwidthstatisticsmediacontainer.md b/docs/models/getbandwidthstatisticsmediacontainer.md deleted file mode 100644 index cdcc659d..00000000 --- a/docs/models/getbandwidthstatisticsmediacontainer.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetBandwidthStatisticsMediaContainer - -## Example Usage - -```typescript -import { GetBandwidthStatisticsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetBandwidthStatisticsMediaContainer = { - size: 5497, - device: [ - { - id: 208, - name: "Roku Express", - platform: "Roku", - clientIdentifier: "793095d235660625108ef785cc7646e9", - createdAt: 1706470556, - }, - ], - account: [ - { - id: 238960586, - key: "/accounts/238960586", - name: "Diane", - defaultAudioLanguage: "en", - autoSelectAudio: true, - defaultSubtitleLanguage: "en", - subtitleMode: 1, - thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", - }, - ], - statisticsBandwidth: [ - { - accountID: 238960586, - deviceID: 208, - timespan: 6, - at: 1718387650, - lan: true, - bytes: 22, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | 5497 | -| `device` | [models.GetBandwidthStatisticsDevice](../models/getbandwidthstatisticsdevice.md)[] | :heavy_minus_sign: | N/A | | -| `account` | [models.GetBandwidthStatisticsAccount](../models/getbandwidthstatisticsaccount.md)[] | :heavy_minus_sign: | N/A | | -| `statisticsBandwidth` | [models.StatisticsBandwidth](../models/statisticsbandwidth.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getbandwidthstatisticsresponse.md b/docs/models/getbandwidthstatisticsresponse.md deleted file mode 100644 index 8703707d..00000000 --- a/docs/models/getbandwidthstatisticsresponse.md +++ /dev/null @@ -1,60 +0,0 @@ -# GetBandwidthStatisticsResponse - -## Example Usage - -```typescript -import { GetBandwidthStatisticsResponse } from "@lukehagar/plexjs"; - -let value: GetBandwidthStatisticsResponse = { - contentType: "", - statusCode: 916723, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 5497, - device: [ - { - id: 208, - name: "Roku Express", - platform: "Roku", - clientIdentifier: "793095d235660625108ef785cc7646e9", - createdAt: 1706470556, - }, - ], - account: [ - { - id: 238960586, - key: "/accounts/238960586", - name: "Diane", - defaultAudioLanguage: "en", - autoSelectAudio: true, - defaultSubtitleLanguage: "en", - subtitleMode: 1, - thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", - }, - ], - statisticsBandwidth: [ - { - accountID: 238960586, - deviceID: 208, - timespan: 6, - at: 1718387650, - lan: true, - bytes: 22, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetBandwidthStatisticsResponseBody](../models/getbandwidthstatisticsresponsebody.md) | :heavy_minus_sign: | Bandwidth Statistics | \ No newline at end of file diff --git a/docs/models/getbandwidthstatisticsstatisticsresponsebody.md b/docs/models/getbandwidthstatisticsstatisticsresponsebody.md deleted file mode 100644 index ef0f3767..00000000 --- a/docs/models/getbandwidthstatisticsstatisticsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetBandwidthStatisticsStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetBandwidthStatisticsStatisticsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `errors` | [models.GetBandwidthStatisticsErrors](../models/getbandwidthstatisticserrors.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/models/getbannerimageresponsebody.md b/docs/models/getbannerimageresponsebody.md deleted file mode 100644 index fa594274..00000000 --- a/docs/models/getbannerimageresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetBannerImageResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetBannerImageResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetBannerImageErrors](../models/getbannerimageerrors.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/models/getbutlertasksbutlerresponsebody.md b/docs/models/getbutlertasksbutlerresponsebody.md deleted file mode 100644 index 43ba0c0d..00000000 --- a/docs/models/getbutlertasksbutlerresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetButlerTasksButlerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetButlerTasksButlerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetButlerTasksErrors](../models/getbutlertaskserrors.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/models/getbutlertasksresponse.md b/docs/models/getbutlertasksresponse.md deleted file mode 100644 index e83a4650..00000000 --- a/docs/models/getbutlertasksresponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetButlerTasksResponse - -## Example Usage - -```typescript -import { GetButlerTasksResponse } from "@lukehagar/plexjs"; - -let value: GetButlerTasksResponse = { - contentType: "", - statusCode: 812169, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - butlerTasks: { - butlerTask: [ - { - name: "BackupDatabase", - interval: 3, - title: "Backup Database", - description: - "Create a backup copy of the server's database in the configured backup directory", - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetButlerTasksResponseBody](../models/getbutlertasksresponsebody.md) | :heavy_minus_sign: | All butler tasks | \ No newline at end of file diff --git a/docs/models/getbutlertasksresponsebody.md b/docs/models/getbutlertasksresponsebody.md deleted file mode 100644 index 41533cdd..00000000 --- a/docs/models/getbutlertasksresponsebody.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetButlerTasksResponseBody - -All butler tasks - -## Example Usage - -```typescript -import { GetButlerTasksResponseBody } from "@lukehagar/plexjs"; - -let value: GetButlerTasksResponseBody = { - butlerTasks: { - butlerTask: [ - { - name: "BackupDatabase", - interval: 3, - title: "Backup Database", - description: - "Create a backup copy of the server's database in the configured backup directory", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `butlerTasks` | [models.ButlerTasks](../models/butlertasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getcompanionsdataresponse.md b/docs/models/getcompanionsdataresponse.md deleted file mode 100644 index e1d413bc..00000000 --- a/docs/models/getcompanionsdataresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetCompanionsDataResponse - -## Example Usage - -```typescript -import { GetCompanionsDataResponse } from "@lukehagar/plexjs"; - -let value: GetCompanionsDataResponse = { - contentType: "", - statusCode: 87129, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - responseBodies: [ - { - identifier: "tv.plex.sonos", - baseURL: "https://sonos.plex.tv", - title: "Sonos", - linkURL: "https://sonos.plex.tv/link", - provides: "client,player", - token: "", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseBodies` | [models.ResponseBody](../models/responsebody.md)[] | :heavy_minus_sign: | Companions Data | \ No newline at end of file diff --git a/docs/models/getcompanionsdataresponsebody.md b/docs/models/getcompanionsdataresponsebody.md deleted file mode 100644 index 54765abb..00000000 --- a/docs/models/getcompanionsdataresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCompanionsDataResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetCompanionsDataResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `errors` | [models.GetCompanionsDataErrors](../models/getcompanionsdataerrors.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/models/getdevicesmediacontainer.md b/docs/models/getdevicesmediacontainer.md deleted file mode 100644 index 6b8c8ef7..00000000 --- a/docs/models/getdevicesmediacontainer.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetDevicesMediaContainer - -## Example Usage - -```typescript -import { GetDevicesMediaContainer } from "@lukehagar/plexjs"; - -let value: GetDevicesMediaContainer = { - size: 151, - identifier: "com.plexapp.system.devices", - device: [ - { - id: 1, - name: "iPhone", - platform: "iOS", - createdAt: 1654131230, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 151 | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.system.devices | -| `device` | [models.Device](../models/device.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getdevicesresponse.md b/docs/models/getdevicesresponse.md deleted file mode 100644 index 8c1a2019..00000000 --- a/docs/models/getdevicesresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetDevicesResponse - -## Example Usage - -```typescript -import { GetDevicesResponse } from "@lukehagar/plexjs"; - -let value: GetDevicesResponse = { - contentType: "", - statusCode: 844266, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 151, - identifier: "com.plexapp.system.devices", - device: [ - { - id: 1, - name: "iPhone", - platform: "iOS", - createdAt: 1654131230, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetDevicesResponseBody](../models/getdevicesresponsebody.md) | :heavy_minus_sign: | Devices | \ No newline at end of file diff --git a/docs/models/getdevicesresponsebody.md b/docs/models/getdevicesresponsebody.md deleted file mode 100644 index 755767f1..00000000 --- a/docs/models/getdevicesresponsebody.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetDevicesResponseBody - -Devices - -## Example Usage - -```typescript -import { GetDevicesResponseBody } from "@lukehagar/plexjs"; - -let value: GetDevicesResponseBody = { - mediaContainer: { - size: 151, - identifier: "com.plexapp.system.devices", - device: [ - { - id: 1, - name: "iPhone", - platform: "iOS", - createdAt: 1654131230, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetDevicesMediaContainer](../models/getdevicesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdevicesserverresponsebody.md b/docs/models/getdevicesserverresponsebody.md deleted file mode 100644 index ed980e68..00000000 --- a/docs/models/getdevicesserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetDevicesServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetDevicesServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetDevicesErrors](../models/getdeviceserrors.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/models/getfilehashresponsebody.md b/docs/models/getfilehashresponsebody.md deleted file mode 100644 index 8d323af3..00000000 --- a/docs/models/getfilehashresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetFileHashResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetFileHashResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetFileHashErrors](../models/getfilehasherrors.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/models/getgeodataresponsebody.md b/docs/models/getgeodataresponsebody.md deleted file mode 100644 index 85f0185f..00000000 --- a/docs/models/getgeodataresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetGeoDataResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetGeoDataResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetGeoDataErrors](../models/getgeodataerrors.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/models/getglobalhubshubsresponsebody.md b/docs/models/getglobalhubshubsresponsebody.md deleted file mode 100644 index 8d61837d..00000000 --- a/docs/models/getglobalhubshubsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetGlobalHubsHubsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetGlobalHubsHubsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetGlobalHubsErrors](../models/getglobalhubserrors.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/models/getglobalhubsmediacontainer.md b/docs/models/getglobalhubsmediacontainer.md deleted file mode 100644 index 49c13486..00000000 --- a/docs/models/getglobalhubsmediacontainer.md +++ /dev/null @@ -1,57 +0,0 @@ -# GetGlobalHubsMediaContainer - -## Example Usage - -```typescript -import { GetGlobalHubsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetGlobalHubsMediaContainer = { - size: 8, - allowSync: true, - identifier: "com.plexapp.plugins.library", - hub: [ - { - hubKey: "/library/metadata/50768,65523,58188,57341,57302,57070", - key: "/playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio", - title: "Recent Playlists", - type: "playlist", - hubIdentifier: "home.playlists", - context: "hub.home.playlists", - size: 6, - more: true, - style: "shelf", - promoted: true, - metadata: [ - { - ratingKey: "57070", - key: "/playlists/57070/items", - guid: "com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c", - type: "playlist", - title: "November Movie Day", - titleSort: "Tracks", - summary: "", - smart: false, - playlistType: "video", - composite: "/playlists/57070/composite/1668787730", - icon: "playlist://image.smart", - viewCount: 2, - lastViewedAt: 1668787732, - duration: 16873000, - leafCount: 3, - addedAt: 1668779618, - updatedAt: 1668787730, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 8 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `hub` | [models.Hub](../models/hub.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/gethomedataplexresponsebody.md b/docs/models/gethomedataplexresponsebody.md deleted file mode 100644 index 3f3e0c42..00000000 --- a/docs/models/gethomedataplexresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetHomeDataPlexResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetHomeDataPlexResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetHomeDataErrors](../models/gethomedataerrors.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/models/gethomedataresponse.md b/docs/models/gethomedataresponse.md deleted file mode 100644 index 60126ba6..00000000 --- a/docs/models/gethomedataresponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetHomeDataResponse - -## Example Usage - -```typescript -import { GetHomeDataResponse } from "@lukehagar/plexjs"; - -let value: GetHomeDataResponse = { - contentType: "", - statusCode: 368241, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - id: 1841489, - name: "Blindkitty38's home", - guestUserID: 58815432, - guestUserUUID: "f3df4e01bfca0787", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetHomeDataResponseBody](../models/gethomedataresponsebody.md) | :heavy_minus_sign: | Home Data | \ No newline at end of file diff --git a/docs/models/getlibrarydetailslibraryresponsebody.md b/docs/models/getlibrarydetailslibraryresponsebody.md deleted file mode 100644 index 4f68dbe6..00000000 --- a/docs/models/getlibrarydetailslibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetLibraryDetailsLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetLibraryDetailsLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `errors` | [models.GetLibraryDetailsErrors](../models/getlibrarydetailserrors.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/models/getlibrarydetailsmediacontainer.md b/docs/models/getlibrarydetailsmediacontainer.md deleted file mode 100644 index 2de5a9ec..00000000 --- a/docs/models/getlibrarydetailsmediacontainer.md +++ /dev/null @@ -1,97 +0,0 @@ -# GetLibraryDetailsMediaContainer - -## Example Usage - -```typescript -import { GetLibraryDetailsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetLibraryDetailsMediaContainer = { - 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: [ - { - key: "search?type=1", - title: "Search...", - secondary: true, - prompt: "Search Movies", - search: true, - }, - ], - type: [ - { - key: "/library/sections/1/all?type=1", - type: "movie", - title: "Movies", - active: false, - filter: [ - { - filter: "label", - filterType: "string", - key: "/library/sections/1/label", - title: "Labels", - type: "filter", - }, - ], - sort: [ - { - default: "asc", - defaultDirection: "desc", - descKey: "random:desc", - firstCharacterKey: "/library/sections/1/firstCharacter", - key: "random", - title: "Randomly", - }, - ], - field: [ - { - key: "label", - title: "Label", - type: "tag", - subType: "bitrate", - }, - ], - }, - ], - fieldType: [ - { - type: "resolution", - operator: [ - { - key: "=", - title: "is", - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | 29 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | false | -| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `content` | *string* | :heavy_minus_sign: | N/A | secondary | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1701731894 | -| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `title1` | *string* | :heavy_minus_sign: | N/A | Movies | -| `viewGroup` | *string* | :heavy_minus_sign: | N/A | secondary | -| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 | -| `directory` | [models.GetLibraryDetailsDirectory](../models/getlibrarydetailsdirectory.md)[] | :heavy_minus_sign: | N/A | | -| `type` | [models.GetLibraryDetailsType](../models/getlibrarydetailstype.md)[] | :heavy_minus_sign: | N/A | | -| `fieldType` | [models.FieldType](../models/fieldtype.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibrarydetailstype.md b/docs/models/getlibrarydetailstype.md deleted file mode 100644 index 6ab748a0..00000000 --- a/docs/models/getlibrarydetailstype.md +++ /dev/null @@ -1,53 +0,0 @@ -# GetLibraryDetailsType - -## Example Usage - -```typescript -import { GetLibraryDetailsType } from "@lukehagar/plexjs"; - -let value: GetLibraryDetailsType = { - key: "/library/sections/1/all?type=1", - type: "movie", - title: "Movies", - active: false, - filter: [ - { - filter: "label", - filterType: "string", - key: "/library/sections/1/label", - title: "Labels", - type: "filter", - }, - ], - sort: [ - { - default: "asc", - defaultDirection: "desc", - descKey: "random:desc", - firstCharacterKey: "/library/sections/1/firstCharacter", - key: "random", - title: "Randomly", - }, - ], - field: [ - { - key: "label", - title: "Label", - type: "tag", - subType: "bitrate", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `key` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | -| `type` | *string* | :heavy_minus_sign: | N/A | movie | -| `title` | *string* | :heavy_minus_sign: | N/A | Movies | -| `active` | *boolean* | :heavy_minus_sign: | N/A | false | -| `filter` | [models.GetLibraryDetailsFilter](../models/getlibrarydetailsfilter.md)[] | :heavy_minus_sign: | N/A | | -| `sort` | [models.Sort](../models/sort.md)[] | :heavy_minus_sign: | N/A | | -| `field` | [models.Field](../models/field.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryhubshub.md b/docs/models/getlibraryhubshub.md deleted file mode 100644 index 53fa065f..00000000 --- a/docs/models/getlibraryhubshub.md +++ /dev/null @@ -1,131 +0,0 @@ -# GetLibraryHubsHub - -## Example Usage - -```typescript -import { GetLibraryHubsHub } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; - -let value: GetLibraryHubsHub = { - key: "/library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0", - title: "Recently Played Movies", - type: "movie", - hubIdentifier: "movie.recentlyviewed.1", - context: "hub.movie.recentlyviewed", - size: 6, - more: true, - style: "shelf", - hubKey: "/library/metadata/66485,66098,57249,11449,5858,14944", - metadata: [ - { - ratingKey: "14944", - key: "/library/metadata/14944", - guid: "plex://movie/5d77686eeb5d26001f1eb339", - studio: "Walt Disney Animation Studios", - type: "movie", - title: "Tangled", - librarySectionTitle: "Movies", - librarySectionID: 1, - librarySectionKey: "/library/sections/1", - contentRating: "PG", - summary: - "The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is.", - rating: 8.9, - audienceRating: 8.7, - viewCount: 1, - lastViewedAt: 1704936047, - year: 2010, - tagline: "They're taking adventure to new lengths.", - thumb: "/library/metadata/14944/thumb/1705739847", - art: "/library/metadata/14944/art/1705739847", - duration: 6017237, - originallyAvailableAt: new RFCDate("2010-11-24T00:00:00Z"), - addedAt: 1589412494, - updatedAt: 1705739847, - audienceRatingImage: "rottentomatoes://image.rating.upright", - primaryExtraKey: "/library/metadata/14952", - ratingImage: "rottentomatoes://image.rating.ripe", - media: [ - { - id: 38247, - duration: 6017237, - bitrate: 2051, - width: 1920, - height: 1080, - aspectRatio: 1.78, - audioChannels: 2, - audioCodec: "aac", - videoCodec: "h264", - videoResolution: "1080", - container: "mp4", - videoFrameRate: "24p", - optimizedForStreaming: 1, - audioProfile: "lc", - has64bitOffsets: false, - videoProfile: "high", - part: [ - { - id: 38247, - key: "/library/parts/38247/1589412494/file.mp4", - duration: 6017237, - file: "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4", - size: 1545647447, - audioProfile: "lc", - container: "mp4", - has64bitOffsets: false, - optimizedForStreaming: true, - videoProfile: "high", - }, - ], - }, - ], - genre: [ - { - tag: "Animation", - }, - ], - country: [ - { - tag: "United States of America", - }, - ], - director: [ - { - tag: "Nathan Greno", - }, - ], - role: [ - { - tag: "Donna Murphy", - }, - ], - writer: [ - { - tag: "Wilhelm Grimm", - }, - ], - skipCount: 1, - chapterSource: "media", - }, - ], - promoted: true, - random: true, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `key` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | -| `title` | *string* | :heavy_minus_sign: | N/A | Recently Played Movies | -| `type` | *string* | :heavy_minus_sign: | N/A | movie | -| `hubIdentifier` | *string* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | -| `context` | *string* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | -| `size` | *number* | :heavy_minus_sign: | N/A | 6 | -| `more` | *boolean* | :heavy_minus_sign: | N/A | true | -| `style` | *string* | :heavy_minus_sign: | N/A | shelf | -| `hubKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | -| `metadata` | [models.GetLibraryHubsMetadata](../models/getlibraryhubsmetadata.md)[] | :heavy_minus_sign: | N/A | | -| `promoted` | *boolean* | :heavy_minus_sign: | N/A | true | -| `random` | *boolean* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/models/getlibraryhubshubsresponsebody.md b/docs/models/getlibraryhubshubsresponsebody.md deleted file mode 100644 index 55c1a1a4..00000000 --- a/docs/models/getlibraryhubshubsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetLibraryHubsHubsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetLibraryHubsHubsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetLibraryHubsErrors](../models/getlibraryhubserrors.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/models/getlibraryhubsmedia.md b/docs/models/getlibraryhubsmedia.md deleted file mode 100644 index 63705743..00000000 --- a/docs/models/getlibraryhubsmedia.md +++ /dev/null @@ -1,62 +0,0 @@ -# GetLibraryHubsMedia - -## Example Usage - -```typescript -import { GetLibraryHubsMedia } from "@lukehagar/plexjs"; - -let value: GetLibraryHubsMedia = { - id: 38247, - duration: 6017237, - bitrate: 2051, - width: 1920, - height: 1080, - aspectRatio: 1.78, - audioChannels: 2, - audioCodec: "aac", - videoCodec: "h264", - videoResolution: "1080", - container: "mp4", - videoFrameRate: "24p", - optimizedForStreaming: 1, - audioProfile: "lc", - has64bitOffsets: false, - videoProfile: "high", - part: [ - { - id: 38247, - key: "/library/parts/38247/1589412494/file.mp4", - duration: 6017237, - file: "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4", - size: 1545647447, - audioProfile: "lc", - container: "mp4", - has64bitOffsets: false, - optimizedForStreaming: true, - videoProfile: "high", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | 38247 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 6017237 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 2051 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *number* | :heavy_minus_sign: | N/A | 1080 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.78 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 1 | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | -| `part` | [models.GetLibraryHubsPart](../models/getlibraryhubspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryitemslibraryresponsebody.md b/docs/models/getlibraryitemslibraryresponsebody.md deleted file mode 100644 index d3832093..00000000 --- a/docs/models/getlibraryitemslibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetLibraryItemsLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetLibraryItemsLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetLibraryItemsErrors](../models/getlibraryitemserrors.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/models/getlibraryitemsmedia.md b/docs/models/getlibraryitemsmedia.md deleted file mode 100644 index 74ae34f0..00000000 --- a/docs/models/getlibraryitemsmedia.md +++ /dev/null @@ -1,53 +0,0 @@ -# GetLibraryItemsMedia - -## Example Usage - -```typescript -import { GetLibraryItemsMedia } from "@lukehagar/plexjs"; - -let value: GetLibraryItemsMedia = { - id: 119534, - duration: 11558112, - bitrate: 25025, - width: 3840, - height: 2072, - aspectRatio: 1.85, - audioChannels: 6, - audioCodec: "eac3", - videoCodec: "hevc", - videoResolution: "4k", - container: "mkv", - videoFrameRate: "24p", - videoProfile: "main 10", - part: [ - { - id: 119542, - key: "/library/parts/119542/1680457526/file.mkv", - duration: 11558112, - file: "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", - size: 36158371307, - container: "mkv", - videoProfile: "main 10", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | 119534 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 25025 | -| `width` | *number* | :heavy_minus_sign: | N/A | 3840 | -| `height` | *number* | :heavy_minus_sign: | N/A | 2072 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.85 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | eac3 | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 4k | -| `container` | *string* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 | -| `part` | [models.GetLibraryItemsPart](../models/getlibraryitemspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryitemsmediacontainer.md b/docs/models/getlibraryitemsmediacontainer.md deleted file mode 100644 index dbe9c307..00000000 --- a/docs/models/getlibraryitemsmediacontainer.md +++ /dev/null @@ -1,155 +0,0 @@ -# GetLibraryItemsMediaContainer - -## Example Usage - -```typescript -import { GetLibraryItemsMediaContainer } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; - -let value: GetLibraryItemsMediaContainer = { - 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: [ - { - ratingKey: "58683", - key: "/library/metadata/58683", - guid: "plex://movie/5d7768ba96b655001fdc0408", - studio: "20th Century Studios", - type: "movie", - title: "Avatar: The Way of Water", - contentRating: "PG-13", - summary: - "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.", - rating: 7.6, - audienceRating: 9.2, - year: 2022, - tagline: "Return to Pandora.", - thumb: "/library/metadata/58683/thumb/1703239236", - art: "/library/metadata/58683/art/1703239236", - duration: 11558112, - originallyAvailableAt: new RFCDate("2022-12-14T00:00:00Z"), - addedAt: 1680457607, - updatedAt: 1703239236, - audienceRatingImage: "rottentomatoes://image.rating.upright", - chapterSource: "media", - primaryExtraKey: "/library/metadata/58684", - ratingImage: "rottentomatoes://image.rating.ripe", - grandparentRatingKey: "66", - grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", - grandparentKey: "/library/metadata/66", - grandparentTitle: "Caprica", - grandparentThumb: "/library/metadata/66/thumb/1705716261", - grandparentArt: "/library/metadata/66/art/1705716261", - grandparentTheme: "/library/metadata/66/theme/1705716261", - media: [ - { - id: 119534, - duration: 11558112, - bitrate: 25025, - width: 3840, - height: 2072, - aspectRatio: 1.85, - audioChannels: 6, - audioCodec: "eac3", - videoCodec: "hevc", - videoResolution: "4k", - container: "mkv", - videoFrameRate: "24p", - videoProfile: "main 10", - part: [ - { - id: 119542, - key: "/library/parts/119542/1680457526/file.mkv", - duration: 11558112, - file: "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", - size: 36158371307, - container: "mkv", - videoProfile: "main 10", - }, - ], - }, - ], - genre: [ - { - tag: "Adventure", - }, - ], - country: [ - { - tag: "United States of America", - }, - ], - director: [ - { - tag: "James Cameron", - }, - ], - writer: [ - { - tag: "James Cameron", - }, - ], - role: [ - { - tag: "Sigourney Weaver", - }, - ], - titleSort: "Whale", - viewCount: 1, - lastViewedAt: 1682752242, - originalTitle: "映画 ブラッククローバー 魔法帝の剣", - viewOffset: 5222500, - skipCount: 1, - index: 1, - theme: "/library/metadata/1/theme/1705636920", - leafCount: 14, - viewedLeafCount: 0, - childCount: 1, - hasPremiumExtras: "1", - hasPremiumPrimaryExtra: "1", - parentRatingKey: "66", - parentGuid: "plex://show/5d9c081b170e24001f2a7be4", - parentStudio: "UCP", - parentKey: "/library/metadata/66", - parentTitle: "Caprica", - parentIndex: 1, - parentYear: 2010, - parentThumb: "/library/metadata/66/thumb/1705716261", - parentTheme: "/library/metadata/66/theme/1705716261", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | 70 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | -| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *models.LibrarySectionID* | :heavy_minus_sign: | N/A | | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1701731894 | -| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `title1` | *string* | :heavy_minus_sign: | N/A | Movies | -| `title2` | *string* | :heavy_minus_sign: | N/A | Recently Released | -| `viewGroup` | *string* | :heavy_minus_sign: | N/A | movie | -| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 | -| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true | -| `metadata` | [models.GetLibraryItemsMetadata](../models/getlibraryitemsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmediaprovidersdirectory.md b/docs/models/getmediaprovidersdirectory.md deleted file mode 100644 index c6de26b2..00000000 --- a/docs/models/getmediaprovidersdirectory.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetMediaProvidersDirectory - -## Example Usage - -```typescript -import { GetMediaProvidersDirectory } from "@lukehagar/plexjs"; - -let value: GetMediaProvidersDirectory = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `hubKey` | *string* | :heavy_minus_sign: | N/A | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `agent` | *string* | :heavy_minus_sign: | N/A | -| `language` | *string* | :heavy_minus_sign: | N/A | -| `refreshing` | *boolean* | :heavy_minus_sign: | N/A | -| `scanner` | *string* | :heavy_minus_sign: | N/A | -| `uuid` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `subtype` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `scannedAt` | *number* | :heavy_minus_sign: | N/A | -| `pivot` | [models.Pivot](../models/pivot.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getmediaprovidersmediacontainer.md b/docs/models/getmediaprovidersmediacontainer.md deleted file mode 100644 index 2591b9cf..00000000 --- a/docs/models/getmediaprovidersmediacontainer.md +++ /dev/null @@ -1,58 +0,0 @@ -# GetMediaProvidersMediaContainer - -## Example Usage - -```typescript -import { GetMediaProvidersMediaContainer } from "@lukehagar/plexjs"; - -let value: GetMediaProvidersMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | -| `allowCameraUpload` | *boolean* | :heavy_minus_sign: | N/A | -| `allowChannelAccess` | *boolean* | :heavy_minus_sign: | N/A | -| `allowSharing` | *boolean* | :heavy_minus_sign: | N/A | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | -| `allowTuners` | *boolean* | :heavy_minus_sign: | N/A | -| `backgroundProcessing` | *boolean* | :heavy_minus_sign: | N/A | -| `certificate` | *boolean* | :heavy_minus_sign: | N/A | -| `companionProxy` | *boolean* | :heavy_minus_sign: | N/A | -| `countryCode` | *string* | :heavy_minus_sign: | N/A | -| `diagnostics` | *string* | :heavy_minus_sign: | N/A | -| `eventStream` | *boolean* | :heavy_minus_sign: | N/A | -| `friendlyName` | *string* | :heavy_minus_sign: | N/A | -| `livetv` | *number* | :heavy_minus_sign: | N/A | -| `machineIdentifier` | *string* | :heavy_minus_sign: | N/A | -| `musicAnalysis` | *number* | :heavy_minus_sign: | N/A | -| `myPlex` | *boolean* | :heavy_minus_sign: | N/A | -| `myPlexMappingState` | *string* | :heavy_minus_sign: | N/A | -| `myPlexSigninState` | *string* | :heavy_minus_sign: | N/A | -| `myPlexSubscription` | *boolean* | :heavy_minus_sign: | N/A | -| `myPlexUsername` | *string* | :heavy_minus_sign: | N/A | -| `offlineTranscode` | *number* | :heavy_minus_sign: | N/A | -| `ownerFeatures` | *string* | :heavy_minus_sign: | N/A | -| `platform` | *string* | :heavy_minus_sign: | N/A | -| `platformVersion` | *string* | :heavy_minus_sign: | N/A | -| `pluginHost` | *boolean* | :heavy_minus_sign: | N/A | -| `pushNotifications` | *boolean* | :heavy_minus_sign: | N/A | -| `readOnlyLibraries` | *boolean* | :heavy_minus_sign: | N/A | -| `streamingBrainABRVersion` | *number* | :heavy_minus_sign: | N/A | -| `streamingBrainVersion` | *number* | :heavy_minus_sign: | N/A | -| `sync` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderActiveVideoSessions` | *number* | :heavy_minus_sign: | N/A | -| `transcoderAudio` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderLyrics` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderSubtitles` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderVideo` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderVideoBitrates` | *string* | :heavy_minus_sign: | N/A | -| `transcoderVideoQualities` | *string* | :heavy_minus_sign: | N/A | -| `transcoderVideoResolutions` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `updater` | *boolean* | :heavy_minus_sign: | N/A | -| `version` | *string* | :heavy_minus_sign: | N/A | -| `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | -| `mediaProvider` | [models.MediaProvider](../models/mediaprovider.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getmediaprovidersresponse.md b/docs/models/getmediaprovidersresponse.md deleted file mode 100644 index d48b3918..00000000 --- a/docs/models/getmediaprovidersresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetMediaProvidersResponse - -## Example Usage - -```typescript -import { GetMediaProvidersResponse } from "@lukehagar/plexjs"; - -let value: GetMediaProvidersResponse = { - contentType: "", - statusCode: 437587, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetMediaProvidersResponseBody](../models/getmediaprovidersresponsebody.md) | :heavy_minus_sign: | Media providers and their features | \ No newline at end of file diff --git a/docs/models/getmediaprovidersresponsebody.md b/docs/models/getmediaprovidersresponsebody.md deleted file mode 100644 index c961229e..00000000 --- a/docs/models/getmediaprovidersresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetMediaProvidersResponseBody - -Media providers and their features - -## Example Usage - -```typescript -import { GetMediaProvidersResponseBody } from "@lukehagar/plexjs"; - -let value: GetMediaProvidersResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetMediaProvidersMediaContainer](../models/getmediaprovidersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getmediaprovidersserverresponsebody.md b/docs/models/getmediaprovidersserverresponsebody.md deleted file mode 100644 index 2cd9498a..00000000 --- a/docs/models/getmediaprovidersserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetMediaProvidersServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetMediaProvidersServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `errors` | [models.GetMediaProvidersErrors](../models/getmediaproviderserrors.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/models/getmetadatabyratingkeylibraryresponsebody.md b/docs/models/getmetadatabyratingkeylibraryresponsebody.md deleted file mode 100644 index 3494f71a..00000000 --- a/docs/models/getmetadatabyratingkeylibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetMetaDataByRatingKeyLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetMetaDataByRatingKeyLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `errors` | [models.GetMetaDataByRatingKeyErrors](../models/getmetadatabyratingkeyerrors.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/models/getmetadatabyratingkeymedia.md b/docs/models/getmetadatabyratingkeymedia.md deleted file mode 100644 index 256e88aa..00000000 --- a/docs/models/getmetadatabyratingkeymedia.md +++ /dev/null @@ -1,98 +0,0 @@ -# GetMetaDataByRatingKeyMedia - -## Example Usage - -```typescript -import { GetMetaDataByRatingKeyMedia } from "@lukehagar/plexjs"; - -let value: GetMetaDataByRatingKeyMedia = { - id: 15, - duration: 141417, - bitrate: 2278, - width: 1920, - height: 814, - aspectRatio: 2.35, - audioChannels: 2, - audioCodec: "aac", - videoCodec: "h264", - videoResolution: "1080", - container: "mp4", - videoFrameRate: "24p", - optimizedForStreaming: 0, - audioProfile: "lc", - has64bitOffsets: false, - videoProfile: "high", - part: [ - { - id: 15, - key: "/library/parts/15/1705637151/file.mp4", - duration: 141417, - file: "/movies/Serenity (2005)/Serenity (2005).mp4", - size: 40271948, - audioProfile: "lc", - container: "mp4", - has64bitOffsets: false, - optimizedForStreaming: false, - videoProfile: "high", - stream: [ - { - id: 29, - streamType: 2, - default: true, - codec: "aac", - index: 0, - bitrate: 128, - bitDepth: 8, - chromaLocation: "left", - chromaSubsampling: "14520", - codedHeight: 816, - codedWidth: 1920, - colorPrimaries: "bt709", - colorRange: "tv", - colorSpace: "bt709", - colorTrc: "bt709", - frameRate: 24, - hasScalingMatrix: false, - height: 814, - level: 40, - profile: "lc", - refFrames: 4, - scanType: "progressive", - streamIdentifier: "1", - width: 1920, - displayTitle: "English (AAC Stereo)", - extendedDisplayTitle: "English (AAC Stereo)", - selected: true, - channels: 2, - language: "English", - languageTag: "en", - languageCode: "eng", - samplingRate: 44100, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `id` | *number* | :heavy_minus_sign: | N/A | 15 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 141417 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 2278 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *number* | :heavy_minus_sign: | N/A | 814 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 0 | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | -| `part` | [models.GetMetaDataByRatingKeyPart](../models/getmetadatabyratingkeypart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeypart.md b/docs/models/getmetadatabyratingkeypart.md deleted file mode 100644 index c83a17df..00000000 --- a/docs/models/getmetadatabyratingkeypart.md +++ /dev/null @@ -1,72 +0,0 @@ -# GetMetaDataByRatingKeyPart - -## Example Usage - -```typescript -import { GetMetaDataByRatingKeyPart } from "@lukehagar/plexjs"; - -let value: GetMetaDataByRatingKeyPart = { - id: 15, - key: "/library/parts/15/1705637151/file.mp4", - duration: 141417, - file: "/movies/Serenity (2005)/Serenity (2005).mp4", - size: 40271948, - audioProfile: "lc", - container: "mp4", - has64bitOffsets: false, - optimizedForStreaming: false, - videoProfile: "high", - stream: [ - { - id: 29, - streamType: 2, - default: true, - codec: "aac", - index: 0, - bitrate: 128, - bitDepth: 8, - chromaLocation: "left", - chromaSubsampling: "14520", - codedHeight: 816, - codedWidth: 1920, - colorPrimaries: "bt709", - colorRange: "tv", - colorSpace: "bt709", - colorTrc: "bt709", - frameRate: 24, - hasScalingMatrix: false, - height: 814, - level: 40, - profile: "lc", - refFrames: 4, - scanType: "progressive", - streamIdentifier: "1", - width: 1920, - displayTitle: "English (AAC Stereo)", - extendedDisplayTitle: "English (AAC Stereo)", - selected: true, - channels: 2, - language: "English", - languageTag: "en", - languageCode: "eng", - samplingRate: 44100, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | 15 | -| `key` | *string* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 141417 | -| `file` | *string* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | -| `size` | *number* | :heavy_minus_sign: | N/A | 40271948 | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | -| `stream` | [models.Stream](../models/stream.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmetadatachildrenlibraryresponsebody.md b/docs/models/getmetadatachildrenlibraryresponsebody.md deleted file mode 100644 index 6474241f..00000000 --- a/docs/models/getmetadatachildrenlibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetMetadataChildrenLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetMetadataChildrenLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.GetMetadataChildrenErrors](../models/getmetadatachildrenerrors.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/models/getmyplexaccountresponse.md b/docs/models/getmyplexaccountresponse.md deleted file mode 100644 index 1eaedf17..00000000 --- a/docs/models/getmyplexaccountresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetMyPlexAccountResponse - -## Example Usage - -```typescript -import { GetMyPlexAccountResponse } from "@lukehagar/plexjs"; - -let value: GetMyPlexAccountResponse = { - contentType: "", - statusCode: 857946, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - 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", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetMyPlexAccountResponseBody](../models/getmyplexaccountresponsebody.md) | :heavy_minus_sign: | MyPlex Account | \ No newline at end of file diff --git a/docs/models/getmyplexaccountserverresponsebody.md b/docs/models/getmyplexaccountserverresponsebody.md deleted file mode 100644 index 1e8bcf18..00000000 --- a/docs/models/getmyplexaccountserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetMyPlexAccountServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetMyPlexAccountServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `errors` | [models.GetMyPlexAccountErrors](../models/getmyplexaccounterrors.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/models/getondecklibraryresponsebody.md b/docs/models/getondecklibraryresponsebody.md deleted file mode 100644 index e650628a..00000000 --- a/docs/models/getondecklibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetOnDeckLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetOnDeckLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetOnDeckErrors](../models/getondeckerrors.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/models/getondeckmedia.md b/docs/models/getondeckmedia.md deleted file mode 100644 index 6eb6a6d4..00000000 --- a/docs/models/getondeckmedia.md +++ /dev/null @@ -1,82 +0,0 @@ -# GetOnDeckMedia - -## Example Usage - -```typescript -import { GetOnDeckMedia } from "@lukehagar/plexjs"; - -let value: GetOnDeckMedia = { - id: 80994, - duration: 420080, - bitrate: 1046, - width: 1920, - height: 1080, - aspectRatio: 1.78, - audioChannels: 2, - audioCodec: "aac", - videoCodec: "hevc", - videoResolution: "1080", - container: "mkv", - videoFrameRate: "PAL", - audioProfile: "lc", - videoProfile: "main", - part: [ - { - id: 80994, - key: "/library/parts/80994/1655007810/file.mkv", - duration: 420080, - file: "/tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv", - size: 55148931, - audioProfile: "lc", - container: "mkv", - videoProfile: "main", - stream: [ - { - id: 211234, - streamType: 1, - codec: "hevc", - index: 0, - bitrate: 918, - language: "English", - languageTag: "en", - languageCode: "eng", - bitDepth: 8, - chromaLocation: "left", - chromaSubsampling: "4:2:0", - codedHeight: 1080, - codedWidth: 1920, - colorRange: "tv", - frameRate: 25, - height: 1080, - level: 120, - profile: "main", - refFrames: 1, - width: 1920, - displayTitle: "1080p (HEVC Main)", - extendedDisplayTitle: "1080p (HEVC Main)", - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | 80994 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 420080 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 1046 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *number* | :heavy_minus_sign: | N/A | 1080 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.78 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *string* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | PAL | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | -| `part` | [models.GetOnDeckPart](../models/getondeckpart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getondeckpart.md b/docs/models/getondeckpart.md deleted file mode 100644 index caf7815c..00000000 --- a/docs/models/getondeckpart.md +++ /dev/null @@ -1,58 +0,0 @@ -# GetOnDeckPart - -## Example Usage - -```typescript -import { GetOnDeckPart } from "@lukehagar/plexjs"; - -let value: GetOnDeckPart = { - id: 80994, - key: "/library/parts/80994/1655007810/file.mkv", - duration: 420080, - file: "/tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv", - size: 55148931, - audioProfile: "lc", - container: "mkv", - videoProfile: "main", - stream: [ - { - id: 211234, - streamType: 1, - codec: "hevc", - index: 0, - bitrate: 918, - language: "English", - languageTag: "en", - languageCode: "eng", - bitDepth: 8, - chromaLocation: "left", - chromaSubsampling: "4:2:0", - codedHeight: 1080, - codedWidth: 1920, - colorRange: "tv", - frameRate: 25, - height: 1080, - level: 120, - profile: "main", - refFrames: 1, - width: 1920, - displayTitle: "1080p (HEVC Main)", - extendedDisplayTitle: "1080p (HEVC Main)", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | 80994 | -| `key` | *string* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv | -| `duration` | *number* | :heavy_minus_sign: | N/A | 420080 | -| `file` | *string* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv | -| `size` | *number* | :heavy_minus_sign: | N/A | 55148931 | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `container` | *string* | :heavy_minus_sign: | N/A | mkv | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | -| `stream` | [models.GetOnDeckStream](../models/getondeckstream.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsmedia.md b/docs/models/getplaylistcontentsmedia.md deleted file mode 100644 index 652806da..00000000 --- a/docs/models/getplaylistcontentsmedia.md +++ /dev/null @@ -1,62 +0,0 @@ -# GetPlaylistContentsMedia - -## Example Usage - -```typescript -import { GetPlaylistContentsMedia } from "@lukehagar/plexjs"; - -let value: GetPlaylistContentsMedia = { - id: 15, - duration: 141416, - bitrate: 2273, - width: 1920, - height: 814, - aspectRatio: 2.35, - audioChannels: 2, - audioCodec: "aac", - videoCodec: "h264", - videoResolution: "1080", - container: "mp4", - videoFrameRate: "24p", - optimizedForStreaming: 0, - audioProfile: "lc", - has64bitOffsets: false, - videoProfile: "high", - part: [ - { - id: 15, - key: "/library/parts/15/1705637151/file.mp4", - duration: 141416, - file: "/movies/Serenity (2005)/Serenity (2005).mp4", - size: 40271948, - audioProfile: "lc", - container: "mp4", - has64bitOffsets: false, - optimizedForStreaming: false, - videoProfile: "high", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `id` | *number* | :heavy_minus_sign: | N/A | 15 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 141416 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 2273 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *number* | :heavy_minus_sign: | N/A | 814 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 0 | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | -| `part` | [models.GetPlaylistContentsPart](../models/getplaylistcontentspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsplaylistsresponsebody.md b/docs/models/getplaylistcontentsplaylistsresponsebody.md deleted file mode 100644 index e7652629..00000000 --- a/docs/models/getplaylistcontentsplaylistsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPlaylistContentsPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetPlaylistContentsPlaylistsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.GetPlaylistContentsErrors](../models/getplaylistcontentserrors.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/models/getplaylistmediacontainer.md b/docs/models/getplaylistmediacontainer.md deleted file mode 100644 index ccfd5856..00000000 --- a/docs/models/getplaylistmediacontainer.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetPlaylistMediaContainer - -## Example Usage - -```typescript -import { GetPlaylistMediaContainer } from "@lukehagar/plexjs"; - -let value: GetPlaylistMediaContainer = { - size: 1, - metadata: [ - { - content: - "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1", - ratingKey: "95", - key: "/playlists/95/items", - guid: "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91", - type: "playlist", - title: "Smart Movie Playlist", - summary: "", - smart: true, - playlistType: "video", - composite: "/playlists/95/composite/1705717387", - icon: "playlist://image.smart", - duration: 282000, - leafCount: 2, - addedAt: 1705716493, - updatedAt: 1705717387, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | [models.GetPlaylistMetadata](../models/getplaylistmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistplaylistsresponsebody.md b/docs/models/getplaylistplaylistsresponsebody.md deleted file mode 100644 index 81b3f001..00000000 --- a/docs/models/getplaylistplaylistsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPlaylistPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetPlaylistPlaylistsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetPlaylistErrors](../models/getplaylisterrors.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/models/getplaylistresponse.md b/docs/models/getplaylistresponse.md deleted file mode 100644 index de8c392e..00000000 --- a/docs/models/getplaylistresponse.md +++ /dev/null @@ -1,49 +0,0 @@ -# GetPlaylistResponse - -## Example Usage - -```typescript -import { GetPlaylistResponse } from "@lukehagar/plexjs"; - -let value: GetPlaylistResponse = { - contentType: "", - statusCode: 110375, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 1, - metadata: [ - { - content: - "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1", - ratingKey: "95", - key: "/playlists/95/items", - guid: "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91", - type: "playlist", - title: "Smart Movie Playlist", - summary: "", - smart: true, - playlistType: "video", - composite: "/playlists/95/composite/1705717387", - icon: "playlist://image.smart", - duration: 282000, - leafCount: 2, - addedAt: 1705716493, - updatedAt: 1705717387, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetPlaylistResponseBody](../models/getplaylistresponsebody.md) | :heavy_minus_sign: | The playlist | \ No newline at end of file diff --git a/docs/models/getplaylistsmediacontainer.md b/docs/models/getplaylistsmediacontainer.md deleted file mode 100644 index 8271a3f8..00000000 --- a/docs/models/getplaylistsmediacontainer.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetPlaylistsMediaContainer - -## Example Usage - -```typescript -import { GetPlaylistsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetPlaylistsMediaContainer = { - size: 4, - metadata: [ - { - ratingKey: "92", - key: "/playlists/92/items", - guid: "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903", - type: "playlist", - title: "Static Playlist", - summary: "A Great Playlist", - smart: false, - playlistType: "video", - composite: "/playlists/92/composite/1705716440", - icon: "playlist://image.smart", - viewCount: 1, - lastViewedAt: 1705716298, - duration: 7328000, - leafCount: 32, - addedAt: 1705716298, - updatedAt: 1705716440, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | 4 | -| `metadata` | [models.GetPlaylistsMetadata](../models/getplaylistsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistsplaylistsresponsebody.md b/docs/models/getplaylistsplaylistsresponsebody.md deleted file mode 100644 index 295779de..00000000 --- a/docs/models/getplaylistsplaylistsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPlaylistsPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetPlaylistsPlaylistsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetPlaylistsErrors](../models/getplaylistserrors.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/models/getplaylistsrequest.md b/docs/models/getplaylistsrequest.md deleted file mode 100644 index 7fe6775c..00000000 --- a/docs/models/getplaylistsrequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetPlaylistsRequest - -## Example Usage - -```typescript -import { GetPlaylistsRequest } from "@lukehagar/plexjs"; - -let value: GetPlaylistsRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `playlistType` | [models.PlaylistType](../models/playlisttype.md) | :heavy_minus_sign: | limit to a type of playlist. | -| `smart` | [models.QueryParamSmart](../models/queryparamsmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | \ No newline at end of file diff --git a/docs/models/getplaylistsresponse.md b/docs/models/getplaylistsresponse.md deleted file mode 100644 index 86319ea1..00000000 --- a/docs/models/getplaylistsresponse.md +++ /dev/null @@ -1,49 +0,0 @@ -# GetPlaylistsResponse - -## Example Usage - -```typescript -import { GetPlaylistsResponse } from "@lukehagar/plexjs"; - -let value: GetPlaylistsResponse = { - contentType: "", - statusCode: 158969, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 4, - metadata: [ - { - ratingKey: "92", - key: "/playlists/92/items", - guid: "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903", - type: "playlist", - title: "Static Playlist", - summary: "A Great Playlist", - smart: false, - playlistType: "video", - composite: "/playlists/92/composite/1705716440", - icon: "playlist://image.smart", - viewCount: 1, - lastViewedAt: 1705716298, - duration: 7328000, - leafCount: 32, - addedAt: 1705716298, - updatedAt: 1705716440, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetPlaylistsResponseBody](../models/getplaylistsresponsebody.md) | :heavy_minus_sign: | returns all playlists | \ No newline at end of file diff --git a/docs/models/getplaylistsresponsebody.md b/docs/models/getplaylistsresponsebody.md deleted file mode 100644 index 6de9da7b..00000000 --- a/docs/models/getplaylistsresponsebody.md +++ /dev/null @@ -1,41 +0,0 @@ -# GetPlaylistsResponseBody - -returns all playlists - -## Example Usage - -```typescript -import { GetPlaylistsResponseBody } from "@lukehagar/plexjs"; - -let value: GetPlaylistsResponseBody = { - mediaContainer: { - size: 4, - metadata: [ - { - ratingKey: "92", - key: "/playlists/92/items", - guid: "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903", - type: "playlist", - title: "Static Playlist", - summary: "A Great Playlist", - smart: false, - playlistType: "video", - composite: "/playlists/92/composite/1705716440", - icon: "playlist://image.smart", - viewCount: 1, - lastViewedAt: 1705716298, - duration: 7328000, - leafCount: 32, - addedAt: 1705716298, - updatedAt: 1705716440, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetPlaylistsMediaContainer](../models/getplaylistsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getrecentlyaddedlibraryresponsebody.md b/docs/models/getrecentlyaddedlibraryresponsebody.md deleted file mode 100644 index 0829d7e6..00000000 --- a/docs/models/getrecentlyaddedlibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetRecentlyAddedLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetRecentlyAddedLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `errors` | [models.GetRecentlyAddedErrors](../models/getrecentlyaddederrors.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/models/getrecentlyaddedmedia.md b/docs/models/getrecentlyaddedmedia.md deleted file mode 100644 index 40eac11d..00000000 --- a/docs/models/getrecentlyaddedmedia.md +++ /dev/null @@ -1,57 +0,0 @@ -# GetRecentlyAddedMedia - -## Example Usage - -```typescript -import { GetRecentlyAddedMedia } from "@lukehagar/plexjs"; - -let value: GetRecentlyAddedMedia = { - id: 120345, - duration: 7474422, - bitrate: 3623, - width: 1920, - height: 804, - aspectRatio: 2.35, - audioChannels: 6, - audioCodec: "ac3", - videoCodec: "h264", - videoResolution: 1080, - container: "mp4", - videoFrameRate: "24p", - optimizedForStreaming: 0, - videoProfile: "high", - part: [ - { - id: 120353, - key: "/library/parts/120353/1681803203/file.mp4", - duration: 7474422, - file: "/movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man.and.the.Wasp.Quantumania.2023.1080p.mp4", - size: 3395307162, - container: "mp4", - hasThumbnail: 1, - videoProfile: "high", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | 120345 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 7474422 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 3623 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *number* | :heavy_minus_sign: | N/A | 804 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | ac3 | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *number* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 0 | -| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | -| `part` | [models.Part](../models/part.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getrefreshlibrarymetadataresponsebody.md b/docs/models/getrefreshlibrarymetadataresponsebody.md deleted file mode 100644 index fd069039..00000000 --- a/docs/models/getrefreshlibrarymetadataresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetRefreshLibraryMetadataResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetRefreshLibraryMetadataResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `errors` | [models.GetRefreshLibraryMetadataErrors](../models/getrefreshlibrarymetadataerrors.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/models/getresizedphotoresponsebody.md b/docs/models/getresizedphotoresponsebody.md deleted file mode 100644 index 9cf404fc..00000000 --- a/docs/models/getresizedphotoresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetResizedPhotoResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetResizedPhotoResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetResizedPhotoErrors](../models/getresizedphotoerrors.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/models/getresourcesstatisticsmediacontainer.md b/docs/models/getresourcesstatisticsmediacontainer.md deleted file mode 100644 index b0b8fe2a..00000000 --- a/docs/models/getresourcesstatisticsmediacontainer.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetResourcesStatisticsMediaContainer - -## Example Usage - -```typescript -import { GetResourcesStatisticsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetResourcesStatisticsMediaContainer = { - size: 5497, - statisticsResources: [ - { - timespan: 6, - at: 1718384427, - hostCpuUtilization: 1.276, - processCpuUtilization: 0.025, - hostMemoryUtilization: 17.026, - processMemoryUtilization: 0.493, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 5497 | -| `statisticsResources` | [models.StatisticsResources](../models/statisticsresources.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getresourcesstatisticsresponse.md b/docs/models/getresourcesstatisticsresponse.md deleted file mode 100644 index 78c4bd11..00000000 --- a/docs/models/getresourcesstatisticsresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetResourcesStatisticsResponse - -## Example Usage - -```typescript -import { GetResourcesStatisticsResponse } from "@lukehagar/plexjs"; - -let value: GetResourcesStatisticsResponse = { - contentType: "", - statusCode: 523248, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 5497, - statisticsResources: [ - { - timespan: 6, - at: 1718384427, - hostCpuUtilization: 1.276, - processCpuUtilization: 0.025, - hostMemoryUtilization: 17.026, - processMemoryUtilization: 0.493, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetResourcesStatisticsResponseBody](../models/getresourcesstatisticsresponsebody.md) | :heavy_minus_sign: | Resource Statistics | \ No newline at end of file diff --git a/docs/models/getresourcesstatisticsresponsebody.md b/docs/models/getresourcesstatisticsresponsebody.md deleted file mode 100644 index adad7976..00000000 --- a/docs/models/getresourcesstatisticsresponsebody.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetResourcesStatisticsResponseBody - -Resource Statistics - -## Example Usage - -```typescript -import { GetResourcesStatisticsResponseBody } from "@lukehagar/plexjs"; - -let value: GetResourcesStatisticsResponseBody = { - mediaContainer: { - size: 5497, - statisticsResources: [ - { - timespan: 6, - at: 1718384427, - hostCpuUtilization: 1.276, - processCpuUtilization: 0.025, - hostMemoryUtilization: 17.026, - processMemoryUtilization: 0.493, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetResourcesStatisticsMediaContainer](../models/getresourcesstatisticsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getresourcesstatisticsstatisticsresponsebody.md b/docs/models/getresourcesstatisticsstatisticsresponsebody.md deleted file mode 100644 index 1e1117a7..00000000 --- a/docs/models/getresourcesstatisticsstatisticsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetResourcesStatisticsStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetResourcesStatisticsStatisticsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `errors` | [models.GetResourcesStatisticsErrors](../models/getresourcesstatisticserrors.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/models/getsearchlibrarylibraryresponsebody.md b/docs/models/getsearchlibrarylibraryresponsebody.md deleted file mode 100644 index d8869244..00000000 --- a/docs/models/getsearchlibrarylibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSearchLibraryLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetSearchLibraryLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `errors` | [models.GetSearchLibraryErrors](../models/getsearchlibraryerrors.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/models/getsearchlibrarymediacontainer.md b/docs/models/getsearchlibrarymediacontainer.md deleted file mode 100644 index 3b11c3c3..00000000 --- a/docs/models/getsearchlibrarymediacontainer.md +++ /dev/null @@ -1,65 +0,0 @@ -# GetSearchLibraryMediaContainer - -## Example Usage - -```typescript -import { GetSearchLibraryMediaContainer } from "@lukehagar/plexjs"; - -let value: GetSearchLibraryMediaContainer = { - 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: [ - { - ratingKey: "2", - key: "/library/metadata/2/children", - parentRatingKey: "1", - guid: "plex://season/602e67e766dfdb002c0a1b5b", - parentGuid: "plex://show/5d9c086c7d06d9001ffd27aa", - parentStudio: "Mutant Enemy Productions", - type: "season", - title: "Season 1", - parentKey: "/library/metadata/1", - parentTitle: "Firefly", - summary: - "Captain Malcolm 'Mal' Reynolds is a former galactic war veteran who is the captain of the transport ship \"Serenity\". Mal and his crew, ensign Zoe Alleyne Washburne; Zoe's husband, pilot Hoban 'Wash' Washburne; muscular mercenary Jayne Cobb; young mechanic Kaylee Frye; former Alliance medical officer Simon Tam; his disturbed teenage sister River (both on the run from the interplanetary government \"The Alliance\"); the beautiful courtesan Inara Serra; and preacher Shepherd Book do any jobs, legal or illegal, they can find as the Serenity crew travels across the outskirts of outer space.", - index: 1, - parentIndex: 1, - parentYear: 2002, - thumb: "/library/metadata/2/thumb/1705636920", - art: "/library/metadata/1/art/1705636920", - parentThumb: "/library/metadata/1/thumb/1705636920", - parentTheme: "/library/metadata/1/theme/1705636920", - addedAt: 1705636916, - updatedAt: 1705636920, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 2 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | false | -| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1698860922 | -| `nocache` | *boolean* | :heavy_minus_sign: | N/A | true | -| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/show.png | -| `title1` | *string* | :heavy_minus_sign: | N/A | TV Shows | -| `title2` | *string* | :heavy_minus_sign: | N/A | Search for '' | -| `viewGroup` | *string* | :heavy_minus_sign: | N/A | season | -| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65593 | -| `metadata` | [models.GetSearchLibraryMetadata](../models/getsearchlibrarymetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsearchresultsmedia.md b/docs/models/getsearchresultsmedia.md deleted file mode 100644 index 5e57976b..00000000 --- a/docs/models/getsearchresultsmedia.md +++ /dev/null @@ -1,56 +0,0 @@ -# GetSearchResultsMedia - -## Example Usage - -```typescript -import { GetSearchResultsMedia } from "@lukehagar/plexjs"; - -let value: GetSearchResultsMedia = { - id: 26610, - duration: 6612628, - bitrate: 4751, - width: 1916, - height: 796, - aspectRatio: 2.35, - audioChannels: 6, - audioCodec: "aac", - videoCodec: "hevc", - videoResolution: 1080, - container: "mkv", - videoFrameRate: "24p", - audioProfile: "lc", - videoProfile: "main 10", - part: [ - { - id: 26610, - key: "/library/parts/26610/1589234571/file.mkv", - duration: 6612628, - file: "/movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv", - size: 3926903851, - audioProfile: "lc", - container: "mkv", - videoProfile: "main 10", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `id` | *number* | :heavy_minus_sign: | N/A | 26610 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 6612628 | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 4751 | -| `width` | *number* | :heavy_minus_sign: | N/A | 1916 | -| `height` | *number* | :heavy_minus_sign: | N/A | 796 | -| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *number* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *string* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | -| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | -| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 | -| `part` | [models.GetSearchResultsPart](../models/getsearchresultspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsearchresultssearchresponsebody.md b/docs/models/getsearchresultssearchresponsebody.md deleted file mode 100644 index 70cfc708..00000000 --- a/docs/models/getsearchresultssearchresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSearchResultsSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetSearchResultsSearchResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `errors` | [models.GetSearchResultsErrors](../models/getsearchresultserrors.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/models/getserveractivitiesactivitiesresponsebody.md b/docs/models/getserveractivitiesactivitiesresponsebody.md deleted file mode 100644 index 729c0ba0..00000000 --- a/docs/models/getserveractivitiesactivitiesresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerActivitiesActivitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetServerActivitiesActivitiesResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.GetServerActivitiesErrors](../models/getserveractivitieserrors.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/models/getserveractivitiesmediacontainer.md b/docs/models/getserveractivitiesmediacontainer.md deleted file mode 100644 index 3b682f78..00000000 --- a/docs/models/getserveractivitiesmediacontainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetServerActivitiesMediaContainer - -## Example Usage - -```typescript -import { GetServerActivitiesMediaContainer } from "@lukehagar/plexjs"; - -let value: GetServerActivitiesMediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | -| `activity` | [models.Activity](../models/activity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserveractivitiesresponse.md b/docs/models/getserveractivitiesresponse.md deleted file mode 100644 index 5932053a..00000000 --- a/docs/models/getserveractivitiesresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetServerActivitiesResponse - -## Example Usage - -```typescript -import { GetServerActivitiesResponse } from "@lukehagar/plexjs"; - -let value: GetServerActivitiesResponse = { - contentType: "", - statusCode: 477665, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetServerActivitiesResponseBody](../models/getserveractivitiesresponsebody.md) | :heavy_minus_sign: | The Server Activities | \ No newline at end of file diff --git a/docs/models/getserveractivitiesresponsebody.md b/docs/models/getserveractivitiesresponsebody.md deleted file mode 100644 index 8aa93dd0..00000000 --- a/docs/models/getserveractivitiesresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetServerActivitiesResponseBody - -The Server Activities - -## Example Usage - -```typescript -import { GetServerActivitiesResponseBody } from "@lukehagar/plexjs"; - -let value: GetServerActivitiesResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetServerActivitiesMediaContainer](../models/getserveractivitiesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getservercapabilitiesresponse.md b/docs/models/getservercapabilitiesresponse.md deleted file mode 100644 index ab72d0e4..00000000 --- a/docs/models/getservercapabilitiesresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetServerCapabilitiesResponse - -## Example Usage - -```typescript -import { GetServerCapabilitiesResponse } from "@lukehagar/plexjs"; - -let value: GetServerCapabilitiesResponse = { - contentType: "", - statusCode: 548814, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetServerCapabilitiesResponseBody](../models/getservercapabilitiesresponsebody.md) | :heavy_minus_sign: | The Server Capabilities | \ No newline at end of file diff --git a/docs/models/getservercapabilitiesresponsebody.md b/docs/models/getservercapabilitiesresponsebody.md deleted file mode 100644 index 638ab195..00000000 --- a/docs/models/getservercapabilitiesresponsebody.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetServerCapabilitiesResponseBody - -The Server Capabilities - -## Example Usage - -```typescript -import { GetServerCapabilitiesResponseBody } from "@lukehagar/plexjs"; - -let value: GetServerCapabilitiesResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `mediaContainer` | [models.MediaContainer](../models/mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getservercapabilitiesserverresponsebody.md b/docs/models/getservercapabilitiesserverresponsebody.md deleted file mode 100644 index 81daae82..00000000 --- a/docs/models/getservercapabilitiesserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerCapabilitiesServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetServerCapabilitiesServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.Errors](../models/errors.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/models/getserveridentityresponse.md b/docs/models/getserveridentityresponse.md deleted file mode 100644 index a85ba036..00000000 --- a/docs/models/getserveridentityresponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetServerIdentityResponse - -## Example Usage - -```typescript -import { GetServerIdentityResponse } from "@lukehagar/plexjs"; - -let value: GetServerIdentityResponse = { - contentType: "", - statusCode: 602763, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 0, - machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", - version: "1.31.3.6868-28fc46b27", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetServerIdentityResponseBody](../models/getserveridentityresponsebody.md) | :heavy_minus_sign: | The Server Identity information | \ No newline at end of file diff --git a/docs/models/getserveridentityresponsebody.md b/docs/models/getserveridentityresponsebody.md deleted file mode 100644 index 1d443ed5..00000000 --- a/docs/models/getserveridentityresponsebody.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetServerIdentityResponseBody - -The Server Identity information - -## Example Usage - -```typescript -import { GetServerIdentityResponseBody } from "@lukehagar/plexjs"; - -let value: GetServerIdentityResponseBody = { - mediaContainer: { - size: 0, - machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", - version: "1.31.3.6868-28fc46b27", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetServerIdentityMediaContainer](../models/getserveridentitymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserverlistmediacontainer.md b/docs/models/getserverlistmediacontainer.md deleted file mode 100644 index 97fe2be3..00000000 --- a/docs/models/getserverlistmediacontainer.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetServerListMediaContainer - -## Example Usage - -```typescript -import { GetServerListMediaContainer } from "@lukehagar/plexjs"; - -let value: GetServerListMediaContainer = { - size: 1, - server: [ - { - name: "Hera", - host: "10.10.10.47", - address: "10.10.10.47", - port: 32400, - machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", - version: "1.31.3.6868-28fc46b27", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `server` | [models.GetServerListServer](../models/getserverlistserver.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getserverlistresponse.md b/docs/models/getserverlistresponse.md deleted file mode 100644 index 63722223..00000000 --- a/docs/models/getserverlistresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetServerListResponse - -## Example Usage - -```typescript -import { GetServerListResponse } from "@lukehagar/plexjs"; - -let value: GetServerListResponse = { - contentType: "", - statusCode: 297534, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 1, - server: [ - { - name: "Hera", - host: "10.10.10.47", - address: "10.10.10.47", - port: 32400, - machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", - version: "1.31.3.6868-28fc46b27", - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetServerListResponseBody](../models/getserverlistresponsebody.md) | :heavy_minus_sign: | List of Servers | \ No newline at end of file diff --git a/docs/models/getserverlistresponsebody.md b/docs/models/getserverlistresponsebody.md deleted file mode 100644 index b37a2c0a..00000000 --- a/docs/models/getserverlistresponsebody.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetServerListResponseBody - -List of Servers - -## Example Usage - -```typescript -import { GetServerListResponseBody } from "@lukehagar/plexjs"; - -let value: GetServerListResponseBody = { - mediaContainer: { - size: 1, - server: [ - { - name: "Hera", - host: "10.10.10.47", - address: "10.10.10.47", - port: 32400, - machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", - version: "1.31.3.6868-28fc46b27", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetServerListMediaContainer](../models/getserverlistmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserverlistserverresponsebody.md b/docs/models/getserverlistserverresponsebody.md deleted file mode 100644 index 9d17fb55..00000000 --- a/docs/models/getserverlistserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerListServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetServerListServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetServerListErrors](../models/getserverlisterrors.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/models/getserverpreferencesmediacontainer.md b/docs/models/getserverpreferencesmediacontainer.md deleted file mode 100644 index 72114225..00000000 --- a/docs/models/getserverpreferencesmediacontainer.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetServerPreferencesMediaContainer - -## Example Usage - -```typescript -import { GetServerPreferencesMediaContainer } from "@lukehagar/plexjs"; - -let value: GetServerPreferencesMediaContainer = { - size: 161, - setting: [ - { - id: "EnableDatabaseTrace", - label: "", - summary: "", - type: "bool", - default: false, - value: false, - hidden: true, - advanced: false, - group: "", - enumValues: "1:admin only|2:everyone", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 161 | -| `setting` | [models.Setting](../models/setting.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getserverpreferencesresponse.md b/docs/models/getserverpreferencesresponse.md deleted file mode 100644 index c1464d0d..00000000 --- a/docs/models/getserverpreferencesresponse.md +++ /dev/null @@ -1,43 +0,0 @@ -# GetServerPreferencesResponse - -## Example Usage - -```typescript -import { GetServerPreferencesResponse } from "@lukehagar/plexjs"; - -let value: GetServerPreferencesResponse = { - contentType: "", - statusCode: 592845, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 161, - setting: [ - { - id: "EnableDatabaseTrace", - label: "", - summary: "", - type: "bool", - default: false, - value: false, - hidden: true, - advanced: false, - group: "", - enumValues: "1:admin only|2:everyone", - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetServerPreferencesResponseBody](../models/getserverpreferencesresponsebody.md) | :heavy_minus_sign: | Server Preferences | \ No newline at end of file diff --git a/docs/models/getserverpreferencesresponsebody.md b/docs/models/getserverpreferencesresponsebody.md deleted file mode 100644 index d46dd146..00000000 --- a/docs/models/getserverpreferencesresponsebody.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetServerPreferencesResponseBody - -Server Preferences - -## Example Usage - -```typescript -import { GetServerPreferencesResponseBody } from "@lukehagar/plexjs"; - -let value: GetServerPreferencesResponseBody = { - mediaContainer: { - size: 161, - setting: [ - { - id: "EnableDatabaseTrace", - label: "", - summary: "", - type: "bool", - default: false, - value: false, - hidden: true, - advanced: false, - group: "", - enumValues: "1:admin only|2:everyone", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetServerPreferencesMediaContainer](../models/getserverpreferencesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserverpreferencesserverresponsebody.md b/docs/models/getserverpreferencesserverresponsebody.md deleted file mode 100644 index b71e3bc0..00000000 --- a/docs/models/getserverpreferencesserverresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerPreferencesServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetServerPreferencesServerResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `errors` | [models.GetServerPreferencesErrors](../models/getserverpreferenceserrors.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/models/getserverresourcesresponse.md b/docs/models/getserverresourcesresponse.md deleted file mode 100644 index 357b7d91..00000000 --- a/docs/models/getserverresourcesresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetServerResourcesResponse - -## Example Usage - -```typescript -import { GetServerResourcesResponse } from "@lukehagar/plexjs"; - -let value: GetServerResourcesResponse = { - contentType: "", - statusCode: 568434, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `plexDevices` | [models.PlexDevice](../models/plexdevice.md)[] | :heavy_minus_sign: | List of Plex Devices. This includes Plex hosted servers and clients | \ No newline at end of file diff --git a/docs/models/getserverresourcesresponsebody.md b/docs/models/getserverresourcesresponsebody.md deleted file mode 100644 index 77c172b9..00000000 --- a/docs/models/getserverresourcesresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetServerResourcesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetServerResourcesResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `errors` | [models.GetServerResourcesErrors](../models/getserverresourceserrors.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/models/getsessionhistorymediacontainer.md b/docs/models/getsessionhistorymediacontainer.md deleted file mode 100644 index 3f88ec68..00000000 --- a/docs/models/getsessionhistorymediacontainer.md +++ /dev/null @@ -1,42 +0,0 @@ -# GetSessionHistoryMediaContainer - -## Example Usage - -```typescript -import { GetSessionHistoryMediaContainer } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; - -let value: GetSessionHistoryMediaContainer = { - size: 10855, - metadata: [ - { - historyKey: "/status/sessions/history/1", - key: "/library/metadata/32171", - ratingKey: "32171", - librarySectionID: "2", - parentKey: "/library/metadata/32170", - grandparentKey: "/library/metadata/32132", - title: "The Noise That Blue Makes", - grandparentTitle: "Taskmaster", - type: "episode", - thumb: "/library/metadata/32171/thumb/-1", - parentThumb: "/library/metadata/32170/thumb/1654134301", - grandparentThumb: "/library/metadata/32132/thumb/1703933346", - grandparentArt: "/library/metadata/32132/art/1703933346", - index: 1, - parentIndex: 13, - originallyAvailableAt: new RFCDate("2022-04-14T00:00:00Z"), - viewedAt: 1654139223, - accountID: 1, - deviceID: 5, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 10855 | -| `metadata` | [models.GetSessionHistoryMetadata](../models/getsessionhistorymetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionhistoryresponse.md b/docs/models/getsessionhistoryresponse.md deleted file mode 100644 index 610e2ab0..00000000 --- a/docs/models/getsessionhistoryresponse.md +++ /dev/null @@ -1,53 +0,0 @@ -# GetSessionHistoryResponse - -## Example Usage - -```typescript -import { GetSessionHistoryResponse } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; - -let value: GetSessionHistoryResponse = { - contentType: "", - statusCode: 921158, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 10855, - metadata: [ - { - historyKey: "/status/sessions/history/1", - key: "/library/metadata/32171", - ratingKey: "32171", - librarySectionID: "2", - parentKey: "/library/metadata/32170", - grandparentKey: "/library/metadata/32132", - title: "The Noise That Blue Makes", - grandparentTitle: "Taskmaster", - type: "episode", - thumb: "/library/metadata/32171/thumb/-1", - parentThumb: "/library/metadata/32170/thumb/1654134301", - grandparentThumb: "/library/metadata/32132/thumb/1703933346", - grandparentArt: "/library/metadata/32132/art/1703933346", - index: 1, - parentIndex: 13, - originallyAvailableAt: new RFCDate("2022-04-14T00:00:00Z"), - viewedAt: 1654139223, - accountID: 1, - deviceID: 5, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetSessionHistoryResponseBody](../models/getsessionhistoryresponsebody.md) | :heavy_minus_sign: | List of Plex Sessions | \ No newline at end of file diff --git a/docs/models/getsessionhistorysessionsresponsebody.md b/docs/models/getsessionhistorysessionsresponsebody.md deleted file mode 100644 index 901427d9..00000000 --- a/docs/models/getsessionhistorysessionsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSessionHistorySessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetSessionHistorySessionsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `errors` | [models.GetSessionHistoryErrors](../models/getsessionhistoryerrors.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/models/getsessionsmedia.md b/docs/models/getsessionsmedia.md deleted file mode 100644 index d69ff499..00000000 --- a/docs/models/getsessionsmedia.md +++ /dev/null @@ -1,67 +0,0 @@ -# GetSessionsMedia - -## Example Usage - -```typescript -import { GetSessionsMedia } from "@lukehagar/plexjs"; - -let value: GetSessionsMedia = { - audioChannels: 2, - audioCodec: "flac", - bitrate: 1014, - container: "flac", - duration: 186240, - id: "130355", - selected: true, - part: [ - { - container: "flac", - duration: 186240, - file: "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac", - hasThumbnail: "1", - id: "130625", - key: "/library/parts/130625/1705543268/file.flac", - size: 23644000, - decision: "directplay", - selected: true, - stream: [ - { - albumGain: "-12.94", - albumPeak: "1.000000", - albumRange: "4.751014", - audioChannelLayout: "stereo", - bitDepth: 16, - bitrate: 1014, - channels: 2, - codec: "flac", - displayTitle: "FLAC (Stereo)", - extendedDisplayTitle: "FLAC (Stereo)", - gain: "-12.94", - id: "352487", - index: 0, - loudness: "-5.94", - lra: "1.74", - peak: "1.000000", - samplingRate: 44100, - selected: true, - streamType: 2, - location: "direct", - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *string* | :heavy_minus_sign: | N/A | flac | -| `bitrate` | *number* | :heavy_minus_sign: | N/A | 1014 | -| `container` | *string* | :heavy_minus_sign: | N/A | flac | -| `duration` | *number* | :heavy_minus_sign: | N/A | 186240 | -| `id` | *string* | :heavy_minus_sign: | N/A | 130355 | -| `selected` | *boolean* | :heavy_minus_sign: | N/A | true | -| `part` | [models.GetSessionsPart](../models/getsessionspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionsmetadata.md b/docs/models/getsessionsmetadata.md deleted file mode 100644 index 5ce80301..00000000 --- a/docs/models/getsessionsmetadata.md +++ /dev/null @@ -1,160 +0,0 @@ -# GetSessionsMetadata - -## Example Usage - -```typescript -import { GetSessionsMetadata } from "@lukehagar/plexjs"; - -let value: GetSessionsMetadata = { - addedAt: 1705543312, - art: "/library/metadata/39904/art/1705310687", - duration: 186240, - grandparentArt: "/library/metadata/39904/art/1705310687", - grandparentGuid: "plex://artist/5d07bbfd403c6402904a6480", - grandparentKey: "/library/metadata/39904", - grandparentRatingKey: "39904", - grandparentThumb: "/library/metadata/39904/thumb/1705310687", - grandparentTitle: "Green Day", - guid: "plex://track/6535834f71f22f36f71a8e8f", - index: 1, - key: "/library/metadata/67085", - librarySectionID: "3", - librarySectionKey: "/library/sections/3", - librarySectionTitle: "Music", - musicAnalysisVersion: "1", - parentGuid: "plex://album/65394d6d472b8ab03ef47f12", - parentIndex: 1, - parentKey: "/library/metadata/67084", - parentRatingKey: "67084", - parentStudio: "Reprise Records", - parentThumb: "/library/metadata/67084/thumb/1705543314", - parentTitle: "Saviors", - parentYear: 2024, - ratingCount: 45885, - ratingKey: "67085", - sessionKey: "203", - thumb: "/library/metadata/67084/thumb/1705543314", - title: "The American Dream Is Killing Me", - titleSort: "American Dream Is Killing Me", - type: "track", - updatedAt: 1705543314, - viewOffset: 1000, - media: [ - { - audioChannels: 2, - audioCodec: "flac", - bitrate: 1014, - container: "flac", - duration: 186240, - id: "130355", - selected: true, - part: [ - { - container: "flac", - duration: 186240, - file: "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac", - hasThumbnail: "1", - id: "130625", - key: "/library/parts/130625/1705543268/file.flac", - size: 23644000, - decision: "directplay", - selected: true, - stream: [ - { - albumGain: "-12.94", - albumPeak: "1.000000", - albumRange: "4.751014", - audioChannelLayout: "stereo", - bitDepth: 16, - bitrate: 1014, - channels: 2, - codec: "flac", - displayTitle: "FLAC (Stereo)", - extendedDisplayTitle: "FLAC (Stereo)", - gain: "-12.94", - id: "352487", - index: 0, - loudness: "-5.94", - lra: "1.74", - peak: "1.000000", - samplingRate: 44100, - selected: true, - streamType: 2, - location: "direct", - }, - ], - }, - ], - }, - ], - user: { - id: "1", - thumb: "https://plex.tv/users/844780fc6f8a26b5/avatar?c=1705853661", - title: "Blindkitty38", - }, - player: { - address: "10.10.10.171", - machineIdentifier: "3tsdzir85m2onc3qyr255aq1", - model: "standalone", - platform: "windows", - platformVersion: "10.0.22621", - product: "Plex for Windows", - profile: "Plex Desktop", - remotePublicAddress: "68.248.140.20", - state: "playing", - title: "DESKTOP-BL80MTD", - version: "1.85.0.4071-21128b56", - local: true, - relayed: false, - secure: true, - userID: 1, - }, - session: { - id: "93h7e00ncblxncqw9lkfaoxi", - bandwidth: 1050, - location: "lan", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `addedAt` | *number* | :heavy_minus_sign: | N/A | 1705543312 | -| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 186240 | -| `grandparentArt` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `grandparentGuid` | *string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | -| `grandparentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | -| `grandparentRatingKey` | *string* | :heavy_minus_sign: | N/A | 39904 | -| `grandparentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | -| `grandparentTitle` | *string* | :heavy_minus_sign: | N/A | Green Day | -| `guid` | *string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | -| `index` | *number* | :heavy_minus_sign: | N/A | 1 | -| `key` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | -| `librarySectionID` | *string* | :heavy_minus_sign: | N/A | 3 | -| `librarySectionKey` | *string* | :heavy_minus_sign: | N/A | /library/sections/3 | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Music | -| `musicAnalysisVersion` | *string* | :heavy_minus_sign: | N/A | 1 | -| `parentGuid` | *string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | -| `parentIndex` | *number* | :heavy_minus_sign: | N/A | 1 | -| `parentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | -| `parentRatingKey` | *string* | :heavy_minus_sign: | N/A | 67084 | -| `parentStudio` | *string* | :heavy_minus_sign: | N/A | Reprise Records | -| `parentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `parentTitle` | *string* | :heavy_minus_sign: | N/A | Saviors | -| `parentYear` | *number* | :heavy_minus_sign: | N/A | 2024 | -| `ratingCount` | *number* | :heavy_minus_sign: | N/A | 45885 | -| `ratingKey` | *string* | :heavy_minus_sign: | N/A | 67085 | -| `sessionKey` | *string* | :heavy_minus_sign: | N/A | 203 | -| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `title` | *string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | -| `titleSort` | *string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | -| `type` | *string* | :heavy_minus_sign: | N/A | track | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1705543314 | -| `viewOffset` | *number* | :heavy_minus_sign: | N/A | 1000 | -| `media` | [models.GetSessionsMedia](../models/getsessionsmedia.md)[] | :heavy_minus_sign: | N/A | | -| `user` | [models.GetSessionsUser](../models/getsessionsuser.md) | :heavy_minus_sign: | N/A | | -| `player` | [models.Player](../models/player.md) | :heavy_minus_sign: | N/A | | -| `session` | [models.Session](../models/session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionssessionsresponsebody.md b/docs/models/getsessionssessionsresponsebody.md deleted file mode 100644 index c49fe013..00000000 --- a/docs/models/getsessionssessionsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSessionsSessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetSessionsSessionsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetSessionsErrors](../models/getsessionserrors.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/models/getsourceconnectioninformationresponsebody.md b/docs/models/getsourceconnectioninformationresponsebody.md deleted file mode 100644 index d1b58cfd..00000000 --- a/docs/models/getsourceconnectioninformationresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSourceConnectionInformationResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetSourceConnectionInformationResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `errors` | [models.GetSourceConnectionInformationErrors](../models/getsourceconnectioninformationerrors.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/models/getstatisticsmediacontainer.md b/docs/models/getstatisticsmediacontainer.md deleted file mode 100644 index b87c4240..00000000 --- a/docs/models/getstatisticsmediacontainer.md +++ /dev/null @@ -1,52 +0,0 @@ -# GetStatisticsMediaContainer - -## Example Usage - -```typescript -import { GetStatisticsMediaContainer } from "@lukehagar/plexjs"; - -let value: GetStatisticsMediaContainer = { - size: 5497, - device: [ - { - id: 208, - name: "Roku Express", - platform: "Roku", - clientIdentifier: "793095d235660625108ef785cc7646e9", - createdAt: 1706470556, - }, - ], - account: [ - { - id: 238960586, - key: "/accounts/238960586", - name: "Diane", - defaultAudioLanguage: "en", - autoSelectAudio: true, - defaultSubtitleLanguage: "en", - subtitleMode: 1, - thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", - }, - ], - statisticsMedia: [ - { - accountID: 1, - deviceID: 13, - timespan: 4, - at: 1707141600, - metadataType: 4, - count: 1, - duration: 1555, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 5497 | -| `device` | [models.GetStatisticsDevice](../models/getstatisticsdevice.md)[] | :heavy_minus_sign: | N/A | | -| `account` | [models.Account](../models/account.md)[] | :heavy_minus_sign: | N/A | | -| `statisticsMedia` | [models.StatisticsMedia](../models/statisticsmedia.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getstatisticsresponse.md b/docs/models/getstatisticsresponse.md deleted file mode 100644 index 367a2f77..00000000 --- a/docs/models/getstatisticsresponse.md +++ /dev/null @@ -1,61 +0,0 @@ -# GetStatisticsResponse - -## Example Usage - -```typescript -import { GetStatisticsResponse } from "@lukehagar/plexjs"; - -let value: GetStatisticsResponse = { - contentType: "", - statusCode: 508969, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - mediaContainer: { - size: 5497, - device: [ - { - id: 208, - name: "Roku Express", - platform: "Roku", - clientIdentifier: "793095d235660625108ef785cc7646e9", - createdAt: 1706470556, - }, - ], - account: [ - { - id: 238960586, - key: "/accounts/238960586", - name: "Diane", - defaultAudioLanguage: "en", - autoSelectAudio: true, - defaultSubtitleLanguage: "en", - subtitleMode: 1, - thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", - }, - ], - statisticsMedia: [ - { - accountID: 1, - deviceID: 13, - timespan: 4, - at: 1707141600, - metadataType: 4, - count: 1, - duration: 1555, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetStatisticsResponseBody](../models/getstatisticsresponsebody.md) | :heavy_minus_sign: | Media Statistics | \ No newline at end of file diff --git a/docs/models/getstatisticsstatisticsresponsebody.md b/docs/models/getstatisticsstatisticsresponsebody.md deleted file mode 100644 index 286d76a1..00000000 --- a/docs/models/getstatisticsstatisticsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetStatisticsStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetStatisticsStatisticsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetStatisticsErrors](../models/getstatisticserrors.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/models/getthumbimageresponsebody.md b/docs/models/getthumbimageresponsebody.md deleted file mode 100644 index dbd1e1ab..00000000 --- a/docs/models/getthumbimageresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetThumbImageResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetThumbImageResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetThumbImageErrors](../models/getthumbimageerrors.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/models/gettimelinerequest.md b/docs/models/gettimelinerequest.md deleted file mode 100644 index 89eae24e..00000000 --- a/docs/models/gettimelinerequest.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetTimelineRequest - -## Example Usage - -```typescript -import { GetTimelineRequest, State } from "@lukehagar/plexjs"; - -let value: GetTimelineRequest = { - ratingKey: 23409, - key: "/library/metadata/23409", - state: State.Playing, - hasMDE: 1, - time: 2000, - duration: 10000, - context: "home:hub.continueWatching", - playQueueItemID: 1, - playBackTime: 2000, - row: 1, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `ratingKey` | *number* | :heavy_check_mark: | The rating key of the media item | 23409 | -| `key` | *string* | :heavy_check_mark: | The key of the media item to get the timeline for | /library/metadata/23409 | -| `state` | [models.State](../models/state.md) | :heavy_check_mark: | The state of the media item | playing | -| `hasMDE` | *number* | :heavy_check_mark: | Whether the media item has MDE | 1 | -| `time` | *number* | :heavy_check_mark: | The time of the media item | 2000 | -| `duration` | *number* | :heavy_check_mark: | The duration of the media item | 10000 | -| `context` | *string* | :heavy_check_mark: | The context of the media item | home:hub.continueWatching | -| `playQueueItemID` | *number* | :heavy_check_mark: | The play queue item ID of the media item | 1 | -| `playBackTime` | *number* | :heavy_check_mark: | The playback time of the media item | 2000 | -| `row` | *number* | :heavy_check_mark: | The row of the media item | 1 | \ No newline at end of file diff --git a/docs/models/gettimelineresponsebody.md b/docs/models/gettimelineresponsebody.md deleted file mode 100644 index 994b8bab..00000000 --- a/docs/models/gettimelineresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTimelineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetTimelineResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetTimelineErrors](../models/gettimelineerrors.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/models/gettokenbypinidplexresponsebody.md b/docs/models/gettokenbypinidplexresponsebody.md deleted file mode 100644 index dcc97fc4..00000000 --- a/docs/models/gettokenbypinidplexresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTokenByPinIdPlexResponseBody - -Not Found or Expired - -## Example Usage - -```typescript -import { GetTokenByPinIdPlexResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.GetTokenByPinIdPlexErrors](../models/gettokenbypinidplexerrors.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/models/gettokenbypinidresponsebody.md b/docs/models/gettokenbypinidresponsebody.md deleted file mode 100644 index c8027cb9..00000000 --- a/docs/models/gettokenbypinidresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTokenByPinIdResponseBody - -Bad Request response when the X-Plex-Client-Identifier is missing - -## Example Usage - -```typescript -import { GetTokenByPinIdResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetTokenByPinIdErrors](../models/gettokenbypiniderrors.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/models/gettopwatchedcontentlibraryresponsebody.md b/docs/models/gettopwatchedcontentlibraryresponsebody.md deleted file mode 100644 index 6c018135..00000000 --- a/docs/models/gettopwatchedcontentlibraryresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTopWatchedContentLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetTopWatchedContentLibraryResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `errors` | [models.GetTopWatchedContentErrors](../models/gettopwatchedcontenterrors.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/models/gettopwatchedcontentmediacontainer.md b/docs/models/gettopwatchedcontentmediacontainer.md deleted file mode 100644 index 777f81d8..00000000 --- a/docs/models/gettopwatchedcontentmediacontainer.md +++ /dev/null @@ -1,93 +0,0 @@ -# GetTopWatchedContentMediaContainer - -## Example Usage - -```typescript -import { GetTopWatchedContentMediaContainer } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; - -let value: GetTopWatchedContentMediaContainer = { - size: 1, - allowSync: true, - identifier: "com.plexapp.plugins.library", - mediaTagPrefix: "/system/bundle/media/flags/", - mediaTagVersion: 1698860922, - metadata: [ - { - ratingKey: "17", - key: "/library/metadata/17", - guid: "plex://movie/5d77683f6f4521001ea9dc53", - slug: "waterloo-road", - studio: "Universal Pictures", - type: "movie", - title: "Serenity", - librarySectionTitle: "Movies", - librarySectionID: 1, - librarySectionKey: "/library/sections/1", - contentRating: "PG-13", - summary: - "Serenity continues the story of the TV series it was based upon (\"Firefly\"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job.", - index: 1, - audienceRating: 9.1, - year: 2005, - tagline: "They aim to misbehave.", - thumb: "/library/metadata/17/thumb/1705637165", - art: "/library/metadata/17/art/1705637165", - duration: 141417, - originallyAvailableAt: new RFCDate("2005-09-29T00:00:00Z"), - leafCount: 222, - viewedLeafCount: 100, - childCount: 13, - addedAt: 1705637164, - updatedAt: 1705637165, - globalViewCount: 80, - audienceRatingImage: "rottentomatoes://image.rating.upright", - genre: [ - { - id: 184, - filter: "genre=184", - tag: "Thriller", - }, - ], - country: [ - { - id: 116, - filter: "country=116", - tag: "United States of America", - }, - ], - guids: [ - { - id: "tvdb://2337", - }, - ], - role: [ - { - id: 220, - filter: "actor=220", - tag: "Dennis Keiffer", - tagKey: "5d77683554f42c001f8c4708", - role: "Bar Guy (uncredited)", - thumb: "https://metadata-static.plex.tv/6/people/648e9a7ea1d537bccfcd7615134b78ce.jpg", - }, - ], - user: [ - { - id: 220, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1698860922 | -| `metadata` | [models.GetTopWatchedContentMetadata](../models/gettopwatchedcontentmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/gettranscodesessionsresponse.md b/docs/models/gettranscodesessionsresponse.md deleted file mode 100644 index c717052f..00000000 --- a/docs/models/gettranscodesessionsresponse.md +++ /dev/null @@ -1,57 +0,0 @@ -# GetTranscodeSessionsResponse - -## Example Usage - -```typescript -import { GetTranscodeSessionsResponse } from "@lukehagar/plexjs"; - -let value: GetTranscodeSessionsResponse = { - contentType: "", - statusCode: 575947, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), - object: { - 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, - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetTranscodeSessionsResponseBody](../models/gettranscodesessionsresponsebody.md) | :heavy_minus_sign: | The Transcode Sessions | \ No newline at end of file diff --git a/docs/models/gettranscodesessionssessionsresponsebody.md b/docs/models/gettranscodesessionssessionsresponsebody.md deleted file mode 100644 index e31e4357..00000000 --- a/docs/models/gettranscodesessionssessionsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTranscodeSessionsSessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetTranscodeSessionsSessionsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `errors` | [models.GetTranscodeSessionsErrors](../models/gettranscodesessionserrors.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/models/gettransienttokenrequest.md b/docs/models/gettransienttokenrequest.md deleted file mode 100644 index b3dafcfe..00000000 --- a/docs/models/gettransienttokenrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTransientTokenRequest - -## Example Usage - -```typescript -import { GetTransientTokenQueryParamType, GetTransientTokenRequest, Scope } from "@lukehagar/plexjs"; - -let value: GetTransientTokenRequest = { - type: GetTransientTokenQueryParamType.Delegation, - scope: Scope.All, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `type` | [models.GetTransientTokenQueryParamType](../models/gettransienttokenqueryparamtype.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | -| `scope` | [models.Scope](../models/scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | \ No newline at end of file diff --git a/docs/models/gettransienttokenresponsebody.md b/docs/models/gettransienttokenresponsebody.md deleted file mode 100644 index 0028f7ae..00000000 --- a/docs/models/gettransienttokenresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTransientTokenResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetTransientTokenResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `errors` | [models.GetTransientTokenErrors](../models/gettransienttokenerrors.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/models/getupdatestatusupdaterresponsebody.md b/docs/models/getupdatestatusupdaterresponsebody.md deleted file mode 100644 index 0c7e2694..00000000 --- a/docs/models/getupdatestatusupdaterresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUpdateStatusUpdaterResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetUpdateStatusUpdaterResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetUpdateStatusErrors](../models/getupdatestatuserrors.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/models/getuserdetailsresponsebody.md b/docs/models/getuserdetailsresponsebody.md deleted file mode 100644 index 2b2a7922..00000000 --- a/docs/models/getuserdetailsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserDetailsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetUserDetailsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetUserDetailsErrors](../models/getuserdetailserrors.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/models/getuserdetailssubscription.md b/docs/models/getuserdetailssubscription.md deleted file mode 100644 index 019823bf..00000000 --- a/docs/models/getuserdetailssubscription.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetUserDetailsSubscription - -## Example Usage - -```typescript -import { GetUserDetailsAuthenticationResponseStatus, GetUserDetailsSubscription } from "@lukehagar/plexjs"; - -let value: GetUserDetailsSubscription = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: GetUserDetailsAuthenticationResponseStatus.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `features` | [models.GetUserDetailsFeatures](../models/getuserdetailsfeatures.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [models.GetUserDetailsAuthenticationResponseStatus](../models/getuserdetailsauthenticationresponsestatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/getuserfriendsresponsebody.md b/docs/models/getuserfriendsresponsebody.md deleted file mode 100644 index 6b73225c..00000000 --- a/docs/models/getuserfriendsresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserFriendsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetUserFriendsResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetUserFriendsErrors](../models/getuserfriendserrors.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/models/getwatchlistresponse.md b/docs/models/getwatchlistresponse.md deleted file mode 100644 index 81dbfa1d..00000000 --- a/docs/models/getwatchlistresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetWatchListResponse - -## Example Usage - -```typescript -import { GetWatchListResponse } from "@lukehagar/plexjs"; - -let value: GetWatchListResponse = { - contentType: "", - statusCode: 634274, - rawResponse: new Response('{"message": "hello world"}', { - headers: { "Content-Type": "application/json" }, - }), -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetWatchListResponseBody](../models/getwatchlistresponsebody.md) | :heavy_minus_sign: | Watchlist Data | \ No newline at end of file diff --git a/docs/models/getwatchlistresponsebody.md b/docs/models/getwatchlistresponsebody.md deleted file mode 100644 index 4cbc8b87..00000000 --- a/docs/models/getwatchlistresponsebody.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetWatchListResponseBody - -Watchlist Data - -## Example Usage - -```typescript -import { GetWatchListResponseBody } from "@lukehagar/plexjs"; - -let value: GetWatchListResponseBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `librarySectionID` | *string* | :heavy_minus_sign: | N/A | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | -| `offset` | *number* | :heavy_minus_sign: | N/A | -| `totalSize` | *number* | :heavy_minus_sign: | N/A | -| `identifier` | *string* | :heavy_minus_sign: | N/A | -| `size` | *number* | :heavy_minus_sign: | N/A | -| `metadata` | [models.Metadata](../models/metadata.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getwatchlistwatchlistresponsebody.md b/docs/models/getwatchlistwatchlistresponsebody.md deleted file mode 100644 index 5baf0e16..00000000 --- a/docs/models/getwatchlistwatchlistresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetWatchListWatchlistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { GetWatchListWatchlistResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetWatchListErrors](../models/getwatchlisterrors.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/models/hub.md b/docs/models/hub.md deleted file mode 100644 index 34952ded..00000000 --- a/docs/models/hub.md +++ /dev/null @@ -1,57 +0,0 @@ -# Hub - -## Example Usage - -```typescript -import { Hub } from "@lukehagar/plexjs"; - -let value: Hub = { - hubKey: "/library/metadata/50768,65523,58188,57341,57302,57070", - key: "/playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio", - title: "Recent Playlists", - type: "playlist", - hubIdentifier: "home.playlists", - context: "hub.home.playlists", - size: 6, - more: true, - style: "shelf", - promoted: true, - metadata: [ - { - ratingKey: "57070", - key: "/playlists/57070/items", - guid: "com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c", - type: "playlist", - title: "November Movie Day", - titleSort: "Tracks", - summary: "", - smart: false, - playlistType: "video", - composite: "/playlists/57070/composite/1668787730", - icon: "playlist://image.smart", - viewCount: 2, - lastViewedAt: 1668787732, - duration: 16873000, - leafCount: 3, - addedAt: 1668779618, - updatedAt: 1668787730, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `hubKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | -| `key` | *string* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | -| `title` | *string* | :heavy_minus_sign: | N/A | Recent Playlists | -| `type` | *string* | :heavy_minus_sign: | N/A | playlist | -| `hubIdentifier` | *string* | :heavy_minus_sign: | N/A | home.playlists | -| `context` | *string* | :heavy_minus_sign: | N/A | hub.home.playlists | -| `size` | *number* | :heavy_minus_sign: | N/A | 6 | -| `more` | *boolean* | :heavy_minus_sign: | N/A | true | -| `style` | *string* | :heavy_minus_sign: | N/A | shelf | -| `promoted` | *boolean* | :heavy_minus_sign: | N/A | true | -| `metadata` | [models.GetGlobalHubsMetadata](../models/getglobalhubsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/logmultilineresponsebody.md b/docs/models/logmultilineresponsebody.md deleted file mode 100644 index c9f18e36..00000000 --- a/docs/models/logmultilineresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# LogMultiLineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { LogMultiLineResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.LogMultiLineErrors](../models/logmultilineerrors.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/models/markplayedresponsebody.md b/docs/models/markplayedresponsebody.md deleted file mode 100644 index 0db37673..00000000 --- a/docs/models/markplayedresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# MarkPlayedResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { MarkPlayedResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.MarkPlayedErrors](../models/markplayederrors.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/models/markunplayedresponsebody.md b/docs/models/markunplayedresponsebody.md deleted file mode 100644 index 1aa1f9e6..00000000 --- a/docs/models/markunplayedresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# MarkUnplayedResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { MarkUnplayedResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.MarkUnplayedErrors](../models/markunplayederrors.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/models/mediacontainer.md b/docs/models/mediacontainer.md deleted file mode 100644 index b5b8ff8f..00000000 --- a/docs/models/mediacontainer.md +++ /dev/null @@ -1,65 +0,0 @@ -# MediaContainer - -## Example Usage - -```typescript -import { MediaContainer } from "@lukehagar/plexjs"; - -let value: MediaContainer = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | -| `allowCameraUpload` | *boolean* | :heavy_minus_sign: | N/A | -| `allowChannelAccess` | *boolean* | :heavy_minus_sign: | N/A | -| `allowMediaDeletion` | *boolean* | :heavy_minus_sign: | N/A | -| `allowSharing` | *boolean* | :heavy_minus_sign: | N/A | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | -| `allowTuners` | *boolean* | :heavy_minus_sign: | N/A | -| `backgroundProcessing` | *boolean* | :heavy_minus_sign: | N/A | -| `certificate` | *boolean* | :heavy_minus_sign: | N/A | -| `companionProxy` | *boolean* | :heavy_minus_sign: | N/A | -| `countryCode` | *string* | :heavy_minus_sign: | N/A | -| `diagnostics` | *string* | :heavy_minus_sign: | N/A | -| `eventStream` | *boolean* | :heavy_minus_sign: | N/A | -| `friendlyName` | *string* | :heavy_minus_sign: | N/A | -| `hubSearch` | *boolean* | :heavy_minus_sign: | N/A | -| `itemClusters` | *boolean* | :heavy_minus_sign: | N/A | -| `livetv` | *number* | :heavy_minus_sign: | N/A | -| `machineIdentifier` | *string* | :heavy_minus_sign: | N/A | -| `mediaProviders` | *boolean* | :heavy_minus_sign: | N/A | -| `multiuser` | *boolean* | :heavy_minus_sign: | N/A | -| `musicAnalysis` | *number* | :heavy_minus_sign: | N/A | -| `myPlex` | *boolean* | :heavy_minus_sign: | N/A | -| `myPlexMappingState` | *string* | :heavy_minus_sign: | N/A | -| `myPlexSigninState` | *string* | :heavy_minus_sign: | N/A | -| `myPlexSubscription` | *boolean* | :heavy_minus_sign: | N/A | -| `myPlexUsername` | *string* | :heavy_minus_sign: | N/A | -| `offlineTranscode` | *number* | :heavy_minus_sign: | N/A | -| `ownerFeatures` | *string* | :heavy_minus_sign: | N/A | -| `photoAutoTag` | *boolean* | :heavy_minus_sign: | N/A | -| `platform` | *string* | :heavy_minus_sign: | N/A | -| `platformVersion` | *string* | :heavy_minus_sign: | N/A | -| `pluginHost` | *boolean* | :heavy_minus_sign: | N/A | -| `pushNotifications` | *boolean* | :heavy_minus_sign: | N/A | -| `readOnlyLibraries` | *boolean* | :heavy_minus_sign: | N/A | -| `streamingBrainABRVersion` | *number* | :heavy_minus_sign: | N/A | -| `streamingBrainVersion` | *number* | :heavy_minus_sign: | N/A | -| `sync` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderActiveVideoSessions` | *number* | :heavy_minus_sign: | N/A | -| `transcoderAudio` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderLyrics` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderPhoto` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderSubtitles` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderVideo` | *boolean* | :heavy_minus_sign: | N/A | -| `transcoderVideoBitrates` | *string* | :heavy_minus_sign: | N/A | -| `transcoderVideoQualities` | *string* | :heavy_minus_sign: | N/A | -| `transcoderVideoResolutions` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `updater` | *boolean* | :heavy_minus_sign: | N/A | -| `version` | *string* | :heavy_minus_sign: | N/A | -| `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | -| `directory` | [models.Directory](../models/directory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/mediaprovider.md b/docs/models/mediaprovider.md deleted file mode 100644 index b3b1088e..00000000 --- a/docs/models/mediaprovider.md +++ /dev/null @@ -1,19 +0,0 @@ -# MediaProvider - -## Example Usage - -```typescript -import { MediaProvider } from "@lukehagar/plexjs"; - -let value: MediaProvider = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `identifier` | *string* | :heavy_minus_sign: | N/A | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `types` | *string* | :heavy_minus_sign: | N/A | -| `protocols` | *string* | :heavy_minus_sign: | N/A | -| `feature` | [models.Feature](../models/feature.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/metadata.md b/docs/models/metadata.md deleted file mode 100644 index b8afb175..00000000 --- a/docs/models/metadata.md +++ /dev/null @@ -1,49 +0,0 @@ -# Metadata - -## Example Usage - -```typescript -import { Metadata } from "@lukehagar/plexjs"; - -let value: Metadata = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `art` | *string* | :heavy_minus_sign: | N/A | -| `guid` | *string* | :heavy_minus_sign: | N/A | -| `key` | *string* | :heavy_minus_sign: | N/A | -| `ratingKey` | *string* | :heavy_minus_sign: | N/A | -| `studio` | *string* | :heavy_minus_sign: | N/A | -| `tagline` | *string* | :heavy_minus_sign: | N/A | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `thumb` | *string* | :heavy_minus_sign: | N/A | -| `addedAt` | *number* | :heavy_minus_sign: | N/A | -| `duration` | *number* | :heavy_minus_sign: | N/A | -| `publicPagesURL` | *string* | :heavy_minus_sign: | N/A | -| `slug` | *string* | :heavy_minus_sign: | N/A | -| `userState` | *boolean* | :heavy_minus_sign: | N/A | -| `title` | *string* | :heavy_minus_sign: | N/A | -| `contentRating` | *string* | :heavy_minus_sign: | N/A | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | -| `year` | *number* | :heavy_minus_sign: | N/A | -| `image` | [models.Image](../models/image.md)[] | :heavy_minus_sign: | N/A | -| `banner` | *string* | :heavy_minus_sign: | N/A | -| `rating` | *number* | :heavy_minus_sign: | N/A | -| `expiresAt` | *number* | :heavy_minus_sign: | N/A | -| `originalTitle` | *string* | :heavy_minus_sign: | N/A | -| `audienceRating` | *number* | :heavy_minus_sign: | N/A | -| `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | -| `ratingImage` | *string* | :heavy_minus_sign: | N/A | -| `imdbRatingCount` | *number* | :heavy_minus_sign: | N/A | -| `subtype` | *string* | :heavy_minus_sign: | N/A | -| `theme` | *string* | :heavy_minus_sign: | N/A | -| `leafCount` | *number* | :heavy_minus_sign: | N/A | -| `childCount` | *number* | :heavy_minus_sign: | N/A | -| `isContinuingSeries` | *boolean* | :heavy_minus_sign: | N/A | -| `skipChildren` | *boolean* | :heavy_minus_sign: | N/A | -| `availabilityId` | *string* | :heavy_minus_sign: | N/A | -| `streamingMediaId` | *string* | :heavy_minus_sign: | N/A | -| `playableKey` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/pastsubscription.md b/docs/models/pastsubscription.md deleted file mode 100644 index 65a164f4..00000000 --- a/docs/models/pastsubscription.md +++ /dev/null @@ -1,48 +0,0 @@ -# PastSubscription - -## Example Usage - -```typescript -import { PastSubscription, PostUsersSignInDataState } from "@lukehagar/plexjs"; - -let value: PastSubscription = { - id: "", - mode: "", - renewsAt: 1556281940, - endsAt: 1556281940, - canceled: false, - gracePeriod: false, - onHold: false, - canReactivate: false, - canUpgrade: false, - canDowngrade: false, - canConvert: false, - type: "plexpass", - transfer: "", - state: PostUsersSignInDataState.Ended, - billing: { - internalPaymentMethod: {}, - paymentMethodId: 880476, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | | -| `mode` | *string* | :heavy_check_mark: | N/A | | -| `renewsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | -| `endsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | -| `canceled` | *boolean* | :heavy_minus_sign: | N/A | false | -| `gracePeriod` | *boolean* | :heavy_minus_sign: | N/A | false | -| `onHold` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canReactivate` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canUpgrade` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canDowngrade` | *boolean* | :heavy_minus_sign: | N/A | false | -| `canConvert` | *boolean* | :heavy_minus_sign: | N/A | false | -| `type` | *string* | :heavy_check_mark: | N/A | plexpass | -| `transfer` | *string* | :heavy_check_mark: | N/A | | -| `state` | [models.PostUsersSignInDataState](../models/postuserssignindatastate.md) | :heavy_check_mark: | N/A | ended | -| `billing` | [models.Billing](../models/billing.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/performsearchresponsebody.md b/docs/models/performsearchresponsebody.md deleted file mode 100644 index 00d5c69f..00000000 --- a/docs/models/performsearchresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# PerformSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { PerformSearchResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.PerformSearchErrors](../models/performsearcherrors.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/models/performvoicesearchresponsebody.md b/docs/models/performvoicesearchresponsebody.md deleted file mode 100644 index 8f63a0a9..00000000 --- a/docs/models/performvoicesearchresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# PerformVoiceSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { PerformVoiceSearchResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `errors` | [models.PerformVoiceSearchErrors](../models/performvoicesearcherrors.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/models/postuserssignindataauthenticationsubscription.md b/docs/models/postuserssignindataauthenticationsubscription.md deleted file mode 100644 index 4cf897c1..00000000 --- a/docs/models/postuserssignindataauthenticationsubscription.md +++ /dev/null @@ -1,27 +0,0 @@ -# PostUsersSignInDataAuthenticationSubscription - -## Example Usage - -```typescript -import { - PostUsersSignInDataAuthenticationResponseStatus, - PostUsersSignInDataAuthenticationSubscription, -} from "@lukehagar/plexjs"; - -let value: PostUsersSignInDataAuthenticationSubscription = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: PostUsersSignInDataAuthenticationResponseStatus.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `features` | [models.PostUsersSignInDataAuthenticationFeatures](../models/postuserssignindataauthenticationfeatures.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [models.PostUsersSignInDataAuthenticationResponseStatus](../models/postuserssignindataauthenticationresponsestatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/postuserssignindataresponsebody.md b/docs/models/postuserssignindataresponsebody.md deleted file mode 100644 index 4ab02529..00000000 --- a/docs/models/postuserssignindataresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# PostUsersSignInDataResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { PostUsersSignInDataResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `errors` | [models.PostUsersSignInDataErrors](../models/postuserssignindataerrors.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/models/postuserssignindataservices.md b/docs/models/postuserssignindataservices.md deleted file mode 100644 index 74a822bb..00000000 --- a/docs/models/postuserssignindataservices.md +++ /dev/null @@ -1,25 +0,0 @@ -# PostUsersSignInDataServices - -## Example Usage - -```typescript -import { PostUsersSignInDataServices, PostUsersSignInDataStatus } from "@lukehagar/plexjs"; - -let value: PostUsersSignInDataServices = { - identifier: "metadata-dev", - endpoint: "https://epg.provider.plex.tv", - token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "", - status: PostUsersSignInDataStatus.Online, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | -| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | -| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | -| `secret` | *string* | :heavy_check_mark: | N/A | | -| `status` | [models.PostUsersSignInDataStatus](../models/postuserssignindatastatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/models/postuserssignindatasubscription.md b/docs/models/postuserssignindatasubscription.md deleted file mode 100644 index 08a2306d..00000000 --- a/docs/models/postuserssignindatasubscription.md +++ /dev/null @@ -1,26 +0,0 @@ -# PostUsersSignInDataSubscription - -If the account’s Plex Pass subscription is active - -## Example Usage - -```typescript -import { PostUsersSignInDataAuthenticationStatus, PostUsersSignInDataSubscription } from "@lukehagar/plexjs"; - -let value: PostUsersSignInDataSubscription = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: PostUsersSignInDataAuthenticationStatus.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `features` | [models.PostUsersSignInDataFeatures](../models/postuserssignindatafeatures.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [models.PostUsersSignInDataAuthenticationStatus](../models/postuserssignindataauthenticationstatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/services.md b/docs/models/services.md deleted file mode 100644 index c3dfd69d..00000000 --- a/docs/models/services.md +++ /dev/null @@ -1,25 +0,0 @@ -# Services - -## Example Usage - -```typescript -import { GetUserDetailsStatus, Services } from "@lukehagar/plexjs"; - -let value: Services = { - identifier: "metadata-dev", - endpoint: "https://epg.provider.plex.tv", - token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "", - status: GetUserDetailsStatus.Online, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | -| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | -| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | -| `secret` | *string* | :heavy_check_mark: | N/A | | -| `status` | [models.GetUserDetailsStatus](../models/getuserdetailsstatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/models/startalltasksresponsebody.md b/docs/models/startalltasksresponsebody.md deleted file mode 100644 index 14566b53..00000000 --- a/docs/models/startalltasksresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# StartAllTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { StartAllTasksResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.StartAllTasksErrors](../models/startalltaskserrors.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/models/starttaskrequest.md b/docs/models/starttaskrequest.md deleted file mode 100644 index eafb2d83..00000000 --- a/docs/models/starttaskrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# StartTaskRequest - -## Example Usage - -```typescript -import { StartTaskRequest, TaskName } from "@lukehagar/plexjs"; - -let value: StartTaskRequest = { - taskName: TaskName.DeepMediaAnalysis, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `taskName` | [models.TaskName](../models/taskname.md) | :heavy_check_mark: | the name of the task to be started. | \ No newline at end of file diff --git a/docs/models/starttaskresponsebody.md b/docs/models/starttaskresponsebody.md deleted file mode 100644 index ea551725..00000000 --- a/docs/models/starttaskresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# StartTaskResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { StartTaskResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.StartTaskErrors](../models/starttaskerrors.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/models/startuniversaltranscoderesponsebody.md b/docs/models/startuniversaltranscoderesponsebody.md deleted file mode 100644 index 4ed22e4a..00000000 --- a/docs/models/startuniversaltranscoderesponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# StartUniversalTranscodeResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { StartUniversalTranscodeResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `errors` | [models.StartUniversalTranscodeErrors](../models/startuniversaltranscodeerrors.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/models/stopalltasksresponsebody.md b/docs/models/stopalltasksresponsebody.md deleted file mode 100644 index fba760c0..00000000 --- a/docs/models/stopalltasksresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# StopAllTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { StopAllTasksResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.StopAllTasksErrors](../models/stopalltaskserrors.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/models/stoptaskrequest.md b/docs/models/stoptaskrequest.md deleted file mode 100644 index 72c57890..00000000 --- a/docs/models/stoptaskrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# StopTaskRequest - -## Example Usage - -```typescript -import { PathParamTaskName, StopTaskRequest } from "@lukehagar/plexjs"; - -let value: StopTaskRequest = { - taskName: PathParamTaskName.BackupDatabase, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `taskName` | [models.PathParamTaskName](../models/pathparamtaskname.md) | :heavy_check_mark: | The name of the task to be started. | \ No newline at end of file diff --git a/docs/models/stoptaskresponsebody.md b/docs/models/stoptaskresponsebody.md deleted file mode 100644 index a9d917a4..00000000 --- a/docs/models/stoptaskresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# StopTaskResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { StopTaskResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.StopTaskErrors](../models/stoptaskerrors.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/models/stoptranscodesessionresponsebody.md b/docs/models/stoptranscodesessionresponsebody.md deleted file mode 100644 index fe024a6c..00000000 --- a/docs/models/stoptranscodesessionresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# StopTranscodeSessionResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { StopTranscodeSessionResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `errors` | [models.StopTranscodeSessionErrors](../models/stoptranscodesessionerrors.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/models/subscription.md b/docs/models/subscription.md deleted file mode 100644 index 573bd4c8..00000000 --- a/docs/models/subscription.md +++ /dev/null @@ -1,26 +0,0 @@ -# Subscription - -If the account’s Plex Pass subscription is active - -## Example Usage - -```typescript -import { GetUserDetailsAuthenticationStatus, Subscription } from "@lukehagar/plexjs"; - -let value: Subscription = { - active: true, - subscribedAt: "2021-04-12T18:21:12Z", - status: GetUserDetailsAuthenticationStatus.Inactive, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `features` | [models.Features](../models/features.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | -| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | -| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | -| `status` | [models.GetUserDetailsAuthenticationStatus](../models/getuserdetailsauthenticationstatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | -| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | -| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/updateplaylistresponsebody.md b/docs/models/updateplaylistresponsebody.md deleted file mode 100644 index c36f9aab..00000000 --- a/docs/models/updateplaylistresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# UpdatePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { UpdatePlaylistResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.UpdatePlaylistErrors](../models/updateplaylisterrors.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/models/updateplayprogressresponsebody.md b/docs/models/updateplayprogressresponsebody.md deleted file mode 100644 index 8b8e6222..00000000 --- a/docs/models/updateplayprogressresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# UpdatePlayProgressResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { UpdatePlayProgressResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `errors` | [models.UpdatePlayProgressErrors](../models/updateplayprogresserrors.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/models/uploadplaylistresponsebody.md b/docs/models/uploadplaylistresponsebody.md deleted file mode 100644 index 4f5850e0..00000000 --- a/docs/models/uploadplaylistresponsebody.md +++ /dev/null @@ -1,18 +0,0 @@ -# UploadPlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - -## Example Usage - -```typescript -import { UploadPlaylistResponseBody } from "@lukehagar/plexjs"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.UploadPlaylistErrors](../models/uploadplaylisterrors.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/models/addplaylistcontentserrors.md b/docs/sdk/models/errors/addplaylistcontentserrors.md similarity index 92% rename from docs/models/addplaylistcontentserrors.md rename to docs/sdk/models/errors/addplaylistcontentserrors.md index 485cd86e..a03c2bfe 100644 --- a/docs/models/addplaylistcontentserrors.md +++ b/docs/sdk/models/errors/addplaylistcontentserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddPlaylistContentsErrors } from "@lukehagar/plexjs"; +import { AddPlaylistContentsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: AddPlaylistContentsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/addplaylistcontentsresponsebody.md b/docs/sdk/models/errors/addplaylistcontentsresponsebody.md new file mode 100644 index 00000000..6ed2d8b4 --- /dev/null +++ b/docs/sdk/models/errors/addplaylistcontentsresponsebody.md @@ -0,0 +1,18 @@ +# AddPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { AddPlaylistContentsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.AddPlaylistContentsErrors](../../../sdk/models/errors/addplaylistcontentserrors.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/models/applyupdateserrors.md b/docs/sdk/models/errors/applyupdateserrors.md similarity index 93% rename from docs/models/applyupdateserrors.md rename to docs/sdk/models/errors/applyupdateserrors.md index 29a0949d..d2beb67b 100644 --- a/docs/models/applyupdateserrors.md +++ b/docs/sdk/models/errors/applyupdateserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ApplyUpdatesErrors } from "@lukehagar/plexjs"; +import { ApplyUpdatesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: ApplyUpdatesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/applyupdatesresponsebody.md b/docs/sdk/models/errors/applyupdatesresponsebody.md new file mode 100644 index 00000000..e0b2dad5 --- /dev/null +++ b/docs/sdk/models/errors/applyupdatesresponsebody.md @@ -0,0 +1,18 @@ +# ApplyUpdatesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { ApplyUpdatesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `errors` | [errors.ApplyUpdatesErrors](../../../sdk/models/errors/applyupdateserrors.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/models/cancelserveractivitieserrors.md b/docs/sdk/models/errors/cancelserveractivitieserrors.md similarity index 92% rename from docs/models/cancelserveractivitieserrors.md rename to docs/sdk/models/errors/cancelserveractivitieserrors.md index ce3833e9..83a66c45 100644 --- a/docs/models/cancelserveractivitieserrors.md +++ b/docs/sdk/models/errors/cancelserveractivitieserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelServerActivitiesErrors } from "@lukehagar/plexjs"; +import { CancelServerActivitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: CancelServerActivitiesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md b/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md new file mode 100644 index 00000000..3d4a9ae3 --- /dev/null +++ b/docs/sdk/models/errors/cancelserveractivitiesresponsebody.md @@ -0,0 +1,18 @@ +# CancelServerActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { CancelServerActivitiesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.CancelServerActivitiesErrors](../../../sdk/models/errors/cancelserveractivitieserrors.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/models/checkforupdateserrors.md b/docs/sdk/models/errors/checkforupdateserrors.md similarity index 93% rename from docs/models/checkforupdateserrors.md rename to docs/sdk/models/errors/checkforupdateserrors.md index cca031f9..700b110f 100644 --- a/docs/models/checkforupdateserrors.md +++ b/docs/sdk/models/errors/checkforupdateserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CheckForUpdatesErrors } from "@lukehagar/plexjs"; +import { CheckForUpdatesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: CheckForUpdatesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/checkforupdatesresponsebody.md b/docs/sdk/models/errors/checkforupdatesresponsebody.md new file mode 100644 index 00000000..3f54697c --- /dev/null +++ b/docs/sdk/models/errors/checkforupdatesresponsebody.md @@ -0,0 +1,18 @@ +# CheckForUpdatesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { CheckForUpdatesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.CheckForUpdatesErrors](../../../sdk/models/errors/checkforupdateserrors.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/models/clearplaylistcontentserrors.md b/docs/sdk/models/errors/clearplaylistcontentserrors.md similarity index 92% rename from docs/models/clearplaylistcontentserrors.md rename to docs/sdk/models/errors/clearplaylistcontentserrors.md index 9e50cdfd..67aa8e24 100644 --- a/docs/models/clearplaylistcontentserrors.md +++ b/docs/sdk/models/errors/clearplaylistcontentserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlaylistContentsErrors } from "@lukehagar/plexjs"; +import { ClearPlaylistContentsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: ClearPlaylistContentsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md b/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md new file mode 100644 index 00000000..f89a849c --- /dev/null +++ b/docs/sdk/models/errors/clearplaylistcontentsresponsebody.md @@ -0,0 +1,18 @@ +# ClearPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { ClearPlaylistContentsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `errors` | [errors.ClearPlaylistContentsErrors](../../../sdk/models/errors/clearplaylistcontentserrors.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/models/createplaylisterrors.md b/docs/sdk/models/errors/createplaylisterrors.md similarity index 93% rename from docs/models/createplaylisterrors.md rename to docs/sdk/models/errors/createplaylisterrors.md index a74d991f..82cd455f 100644 --- a/docs/models/createplaylisterrors.md +++ b/docs/sdk/models/errors/createplaylisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreatePlaylistErrors } from "@lukehagar/plexjs"; +import { CreatePlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: CreatePlaylistErrors = { code: 1001, diff --git a/docs/sdk/models/errors/createplaylistresponsebody.md b/docs/sdk/models/errors/createplaylistresponsebody.md new file mode 100644 index 00000000..3c1a6785 --- /dev/null +++ b/docs/sdk/models/errors/createplaylistresponsebody.md @@ -0,0 +1,18 @@ +# CreatePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { CreatePlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.CreatePlaylistErrors](../../../sdk/models/errors/createplaylisterrors.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/models/deletelibraryerrors.md b/docs/sdk/models/errors/deletelibraryerrors.md similarity index 93% rename from docs/models/deletelibraryerrors.md rename to docs/sdk/models/errors/deletelibraryerrors.md index 4f784625..6bda376b 100644 --- a/docs/models/deletelibraryerrors.md +++ b/docs/sdk/models/errors/deletelibraryerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteLibraryErrors } from "@lukehagar/plexjs"; +import { DeleteLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: DeleteLibraryErrors = { code: 1001, diff --git a/docs/sdk/models/errors/deletelibraryresponsebody.md b/docs/sdk/models/errors/deletelibraryresponsebody.md new file mode 100644 index 00000000..96406ce4 --- /dev/null +++ b/docs/sdk/models/errors/deletelibraryresponsebody.md @@ -0,0 +1,18 @@ +# DeleteLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { DeleteLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.DeleteLibraryErrors](../../../sdk/models/errors/deletelibraryerrors.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/models/deleteplaylisterrors.md b/docs/sdk/models/errors/deleteplaylisterrors.md similarity index 93% rename from docs/models/deleteplaylisterrors.md rename to docs/sdk/models/errors/deleteplaylisterrors.md index 31170fba..57a102af 100644 --- a/docs/models/deleteplaylisterrors.md +++ b/docs/sdk/models/errors/deleteplaylisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistErrors } from "@lukehagar/plexjs"; +import { DeletePlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: DeletePlaylistErrors = { code: 1001, diff --git a/docs/sdk/models/errors/deleteplaylistresponsebody.md b/docs/sdk/models/errors/deleteplaylistresponsebody.md new file mode 100644 index 00000000..8e7e9be1 --- /dev/null +++ b/docs/sdk/models/errors/deleteplaylistresponsebody.md @@ -0,0 +1,18 @@ +# DeletePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { DeletePlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.DeletePlaylistErrors](../../../sdk/models/errors/deleteplaylisterrors.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/models/enablepapertrailerrors.md b/docs/sdk/models/errors/enablepapertrailerrors.md similarity index 93% rename from docs/models/enablepapertrailerrors.md rename to docs/sdk/models/errors/enablepapertrailerrors.md index 969da5ef..e94ef65c 100644 --- a/docs/models/enablepapertrailerrors.md +++ b/docs/sdk/models/errors/enablepapertrailerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EnablePaperTrailErrors } from "@lukehagar/plexjs"; +import { EnablePaperTrailErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: EnablePaperTrailErrors = { code: 1001, diff --git a/docs/sdk/models/errors/enablepapertrailresponsebody.md b/docs/sdk/models/errors/enablepapertrailresponsebody.md new file mode 100644 index 00000000..34487f50 --- /dev/null +++ b/docs/sdk/models/errors/enablepapertrailresponsebody.md @@ -0,0 +1,18 @@ +# EnablePaperTrailResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { EnablePaperTrailResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.EnablePaperTrailErrors](../../../sdk/models/errors/enablepapertrailerrors.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/models/errors.md b/docs/sdk/models/errors/errors.md similarity index 94% rename from docs/models/errors.md rename to docs/sdk/models/errors/errors.md index 3de2dd1e..7c2f4df2 100644 --- a/docs/models/errors.md +++ b/docs/sdk/models/errors/errors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Errors } from "@lukehagar/plexjs"; +import { Errors } from "@lukehagar/plexjs/sdk/models/errors"; let value: Errors = { code: 1001, diff --git a/docs/models/getalllibrarieserrors.md b/docs/sdk/models/errors/getalllibrarieserrors.md similarity index 93% rename from docs/models/getalllibrarieserrors.md rename to docs/sdk/models/errors/getalllibrarieserrors.md index 85c89db1..c5c524ef 100644 --- a/docs/models/getalllibrarieserrors.md +++ b/docs/sdk/models/errors/getalllibrarieserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAllLibrariesErrors } from "@lukehagar/plexjs"; +import { GetAllLibrariesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetAllLibrariesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getalllibrariesresponsebody.md b/docs/sdk/models/errors/getalllibrariesresponsebody.md new file mode 100644 index 00000000..ca5603e9 --- /dev/null +++ b/docs/sdk/models/errors/getalllibrariesresponsebody.md @@ -0,0 +1,18 @@ +# GetAllLibrariesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetAllLibrariesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.GetAllLibrariesErrors](../../../sdk/models/errors/getalllibrarieserrors.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/models/getavailableclientserrors.md b/docs/sdk/models/errors/getavailableclientserrors.md similarity index 92% rename from docs/models/getavailableclientserrors.md rename to docs/sdk/models/errors/getavailableclientserrors.md index f76df566..52cefda2 100644 --- a/docs/models/getavailableclientserrors.md +++ b/docs/sdk/models/errors/getavailableclientserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAvailableClientsErrors } from "@lukehagar/plexjs"; +import { GetAvailableClientsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetAvailableClientsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getavailableclientsresponsebody.md b/docs/sdk/models/errors/getavailableclientsresponsebody.md new file mode 100644 index 00000000..b54901b5 --- /dev/null +++ b/docs/sdk/models/errors/getavailableclientsresponsebody.md @@ -0,0 +1,18 @@ +# GetAvailableClientsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetAvailableClientsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetAvailableClientsErrors](../../../sdk/models/errors/getavailableclientserrors.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/models/getbandwidthstatisticserrors.md b/docs/sdk/models/errors/getbandwidthstatisticserrors.md similarity index 92% rename from docs/models/getbandwidthstatisticserrors.md rename to docs/sdk/models/errors/getbandwidthstatisticserrors.md index 0d06b67a..da9f9b6a 100644 --- a/docs/models/getbandwidthstatisticserrors.md +++ b/docs/sdk/models/errors/getbandwidthstatisticserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBandwidthStatisticsErrors } from "@lukehagar/plexjs"; +import { GetBandwidthStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetBandwidthStatisticsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md b/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md new file mode 100644 index 00000000..f0eb77ed --- /dev/null +++ b/docs/sdk/models/errors/getbandwidthstatisticsresponsebody.md @@ -0,0 +1,18 @@ +# GetBandwidthStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetBandwidthStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetBandwidthStatisticsErrors](../../../sdk/models/errors/getbandwidthstatisticserrors.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/models/getbannerimageerrors.md b/docs/sdk/models/errors/getbannerimageerrors.md similarity index 93% rename from docs/models/getbannerimageerrors.md rename to docs/sdk/models/errors/getbannerimageerrors.md index f6bd9d5a..3531ce0f 100644 --- a/docs/models/getbannerimageerrors.md +++ b/docs/sdk/models/errors/getbannerimageerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBannerImageErrors } from "@lukehagar/plexjs"; +import { GetBannerImageErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetBannerImageErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getbannerimageresponsebody.md b/docs/sdk/models/errors/getbannerimageresponsebody.md new file mode 100644 index 00000000..b5bdc4c3 --- /dev/null +++ b/docs/sdk/models/errors/getbannerimageresponsebody.md @@ -0,0 +1,18 @@ +# GetBannerImageResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetBannerImageResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.GetBannerImageErrors](../../../sdk/models/errors/getbannerimageerrors.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/models/getbutlertaskserrors.md b/docs/sdk/models/errors/getbutlertaskserrors.md similarity index 93% rename from docs/models/getbutlertaskserrors.md rename to docs/sdk/models/errors/getbutlertaskserrors.md index 50317026..22c1e088 100644 --- a/docs/models/getbutlertaskserrors.md +++ b/docs/sdk/models/errors/getbutlertaskserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetButlerTasksErrors } from "@lukehagar/plexjs"; +import { GetButlerTasksErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetButlerTasksErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getbutlertasksresponsebody.md b/docs/sdk/models/errors/getbutlertasksresponsebody.md new file mode 100644 index 00000000..71ed0683 --- /dev/null +++ b/docs/sdk/models/errors/getbutlertasksresponsebody.md @@ -0,0 +1,18 @@ +# GetButlerTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetButlerTasksResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.GetButlerTasksErrors](../../../sdk/models/errors/getbutlertaskserrors.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/models/getcompanionsdataerrors.md b/docs/sdk/models/errors/getcompanionsdataerrors.md similarity index 93% rename from docs/models/getcompanionsdataerrors.md rename to docs/sdk/models/errors/getcompanionsdataerrors.md index 935d6076..a38b0035 100644 --- a/docs/models/getcompanionsdataerrors.md +++ b/docs/sdk/models/errors/getcompanionsdataerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetCompanionsDataErrors } from "@lukehagar/plexjs"; +import { GetCompanionsDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetCompanionsDataErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getcompanionsdataresponsebody.md b/docs/sdk/models/errors/getcompanionsdataresponsebody.md new file mode 100644 index 00000000..9be00c54 --- /dev/null +++ b/docs/sdk/models/errors/getcompanionsdataresponsebody.md @@ -0,0 +1,18 @@ +# GetCompanionsDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetCompanionsDataResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.GetCompanionsDataErrors](../../../sdk/models/errors/getcompanionsdataerrors.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/models/getdeviceserrors.md b/docs/sdk/models/errors/getdeviceserrors.md similarity index 93% rename from docs/models/getdeviceserrors.md rename to docs/sdk/models/errors/getdeviceserrors.md index 2e07d686..9e415649 100644 --- a/docs/models/getdeviceserrors.md +++ b/docs/sdk/models/errors/getdeviceserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDevicesErrors } from "@lukehagar/plexjs"; +import { GetDevicesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetDevicesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getdevicesresponsebody.md b/docs/sdk/models/errors/getdevicesresponsebody.md new file mode 100644 index 00000000..035f3908 --- /dev/null +++ b/docs/sdk/models/errors/getdevicesresponsebody.md @@ -0,0 +1,18 @@ +# GetDevicesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetDevicesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `errors` | [errors.GetDevicesErrors](../../../sdk/models/errors/getdeviceserrors.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/models/getfilehasherrors.md b/docs/sdk/models/errors/getfilehasherrors.md similarity index 93% rename from docs/models/getfilehasherrors.md rename to docs/sdk/models/errors/getfilehasherrors.md index 1aea98ca..186f87f5 100644 --- a/docs/models/getfilehasherrors.md +++ b/docs/sdk/models/errors/getfilehasherrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFileHashErrors } from "@lukehagar/plexjs"; +import { GetFileHashErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetFileHashErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getfilehashresponsebody.md b/docs/sdk/models/errors/getfilehashresponsebody.md new file mode 100644 index 00000000..0f4b232d --- /dev/null +++ b/docs/sdk/models/errors/getfilehashresponsebody.md @@ -0,0 +1,18 @@ +# GetFileHashResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetFileHashResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `errors` | [errors.GetFileHashErrors](../../../sdk/models/errors/getfilehasherrors.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/models/getgeodataerrors.md b/docs/sdk/models/errors/getgeodataerrors.md similarity index 93% rename from docs/models/getgeodataerrors.md rename to docs/sdk/models/errors/getgeodataerrors.md index 05f8aa07..1bae50ff 100644 --- a/docs/models/getgeodataerrors.md +++ b/docs/sdk/models/errors/getgeodataerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetGeoDataErrors } from "@lukehagar/plexjs"; +import { GetGeoDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetGeoDataErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getgeodataresponsebody.md b/docs/sdk/models/errors/getgeodataresponsebody.md new file mode 100644 index 00000000..9f77816e --- /dev/null +++ b/docs/sdk/models/errors/getgeodataresponsebody.md @@ -0,0 +1,18 @@ +# GetGeoDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetGeoDataResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `errors` | [errors.GetGeoDataErrors](../../../sdk/models/errors/getgeodataerrors.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/models/getglobalhubserrors.md b/docs/sdk/models/errors/getglobalhubserrors.md similarity index 93% rename from docs/models/getglobalhubserrors.md rename to docs/sdk/models/errors/getglobalhubserrors.md index d555b4c5..9d99fe9c 100644 --- a/docs/models/getglobalhubserrors.md +++ b/docs/sdk/models/errors/getglobalhubserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetGlobalHubsErrors } from "@lukehagar/plexjs"; +import { GetGlobalHubsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetGlobalHubsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getglobalhubsresponsebody.md b/docs/sdk/models/errors/getglobalhubsresponsebody.md new file mode 100644 index 00000000..14dc02fb --- /dev/null +++ b/docs/sdk/models/errors/getglobalhubsresponsebody.md @@ -0,0 +1,18 @@ +# GetGlobalHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetGlobalHubsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.GetGlobalHubsErrors](../../../sdk/models/errors/getglobalhubserrors.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/models/gethomedataerrors.md b/docs/sdk/models/errors/gethomedataerrors.md similarity index 93% rename from docs/models/gethomedataerrors.md rename to docs/sdk/models/errors/gethomedataerrors.md index a29d3177..8b5bec74 100644 --- a/docs/models/gethomedataerrors.md +++ b/docs/sdk/models/errors/gethomedataerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetHomeDataErrors } from "@lukehagar/plexjs"; +import { GetHomeDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetHomeDataErrors = { code: 1001, diff --git a/docs/sdk/models/errors/gethomedataresponsebody.md b/docs/sdk/models/errors/gethomedataresponsebody.md new file mode 100644 index 00000000..1601583b --- /dev/null +++ b/docs/sdk/models/errors/gethomedataresponsebody.md @@ -0,0 +1,18 @@ +# GetHomeDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetHomeDataResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `errors` | [errors.GetHomeDataErrors](../../../sdk/models/errors/gethomedataerrors.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/models/getlibrarydetailserrors.md b/docs/sdk/models/errors/getlibrarydetailserrors.md similarity index 93% rename from docs/models/getlibrarydetailserrors.md rename to docs/sdk/models/errors/getlibrarydetailserrors.md index 2285a0fe..f562d1c2 100644 --- a/docs/models/getlibrarydetailserrors.md +++ b/docs/sdk/models/errors/getlibrarydetailserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsErrors } from "@lukehagar/plexjs"; +import { GetLibraryDetailsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetLibraryDetailsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getlibrarydetailsresponsebody.md b/docs/sdk/models/errors/getlibrarydetailsresponsebody.md new file mode 100644 index 00000000..7e6af0c3 --- /dev/null +++ b/docs/sdk/models/errors/getlibrarydetailsresponsebody.md @@ -0,0 +1,18 @@ +# GetLibraryDetailsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetLibraryDetailsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.GetLibraryDetailsErrors](../../../sdk/models/errors/getlibrarydetailserrors.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/models/getlibraryhubserrors.md b/docs/sdk/models/errors/getlibraryhubserrors.md similarity index 93% rename from docs/models/getlibraryhubserrors.md rename to docs/sdk/models/errors/getlibraryhubserrors.md index 57ed31a4..bb4a99f5 100644 --- a/docs/models/getlibraryhubserrors.md +++ b/docs/sdk/models/errors/getlibraryhubserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsErrors } from "@lukehagar/plexjs"; +import { GetLibraryHubsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetLibraryHubsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getlibraryhubsresponsebody.md b/docs/sdk/models/errors/getlibraryhubsresponsebody.md new file mode 100644 index 00000000..623a124b --- /dev/null +++ b/docs/sdk/models/errors/getlibraryhubsresponsebody.md @@ -0,0 +1,18 @@ +# GetLibraryHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetLibraryHubsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.GetLibraryHubsErrors](../../../sdk/models/errors/getlibraryhubserrors.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/models/getlibraryitemserrors.md b/docs/sdk/models/errors/getlibraryitemserrors.md similarity index 93% rename from docs/models/getlibraryitemserrors.md rename to docs/sdk/models/errors/getlibraryitemserrors.md index 3ac78bd2..53630905 100644 --- a/docs/models/getlibraryitemserrors.md +++ b/docs/sdk/models/errors/getlibraryitemserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsErrors } from "@lukehagar/plexjs"; +import { GetLibraryItemsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetLibraryItemsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getlibraryitemsresponsebody.md b/docs/sdk/models/errors/getlibraryitemsresponsebody.md new file mode 100644 index 00000000..55a867fe --- /dev/null +++ b/docs/sdk/models/errors/getlibraryitemsresponsebody.md @@ -0,0 +1,18 @@ +# GetLibraryItemsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetLibraryItemsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.GetLibraryItemsErrors](../../../sdk/models/errors/getlibraryitemserrors.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/models/getmediaproviderserrors.md b/docs/sdk/models/errors/getmediaproviderserrors.md similarity index 93% rename from docs/models/getmediaproviderserrors.md rename to docs/sdk/models/errors/getmediaproviderserrors.md index 83fd3ee8..2393ab12 100644 --- a/docs/models/getmediaproviderserrors.md +++ b/docs/sdk/models/errors/getmediaproviderserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMediaProvidersErrors } from "@lukehagar/plexjs"; +import { GetMediaProvidersErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMediaProvidersErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getmediaprovidersresponsebody.md b/docs/sdk/models/errors/getmediaprovidersresponsebody.md new file mode 100644 index 00000000..b582a0e0 --- /dev/null +++ b/docs/sdk/models/errors/getmediaprovidersresponsebody.md @@ -0,0 +1,18 @@ +# GetMediaProvidersResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMediaProvidersResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMediaProvidersErrors](../../../sdk/models/errors/getmediaproviderserrors.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/models/getmetadatabyratingkeyerrors.md b/docs/sdk/models/errors/getmetadatabyratingkeyerrors.md similarity index 92% rename from docs/models/getmetadatabyratingkeyerrors.md rename to docs/sdk/models/errors/getmetadatabyratingkeyerrors.md index 71ad62bd..0d19f26d 100644 --- a/docs/models/getmetadatabyratingkeyerrors.md +++ b/docs/sdk/models/errors/getmetadatabyratingkeyerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyErrors } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMetaDataByRatingKeyErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md b/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md new file mode 100644 index 00000000..91f019e0 --- /dev/null +++ b/docs/sdk/models/errors/getmetadatabyratingkeyresponsebody.md @@ -0,0 +1,18 @@ +# GetMetaDataByRatingKeyResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMetaDataByRatingKeyResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMetaDataByRatingKeyErrors](../../../sdk/models/errors/getmetadatabyratingkeyerrors.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/models/getmetadatachildrenerrors.md b/docs/sdk/models/errors/getmetadatachildrenerrors.md similarity index 92% rename from docs/models/getmetadatachildrenerrors.md rename to docs/sdk/models/errors/getmetadatachildrenerrors.md index 566653f2..227f4294 100644 --- a/docs/models/getmetadatachildrenerrors.md +++ b/docs/sdk/models/errors/getmetadatachildrenerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataChildrenErrors } from "@lukehagar/plexjs"; +import { GetMetadataChildrenErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMetadataChildrenErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getmetadatachildrenresponsebody.md b/docs/sdk/models/errors/getmetadatachildrenresponsebody.md new file mode 100644 index 00000000..8ccf2070 --- /dev/null +++ b/docs/sdk/models/errors/getmetadatachildrenresponsebody.md @@ -0,0 +1,18 @@ +# GetMetadataChildrenResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMetadataChildrenResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMetadataChildrenErrors](../../../sdk/models/errors/getmetadatachildrenerrors.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/models/getmyplexaccounterrors.md b/docs/sdk/models/errors/getmyplexaccounterrors.md similarity index 93% rename from docs/models/getmyplexaccounterrors.md rename to docs/sdk/models/errors/getmyplexaccounterrors.md index 635f3ca0..5bfdec3a 100644 --- a/docs/models/getmyplexaccounterrors.md +++ b/docs/sdk/models/errors/getmyplexaccounterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMyPlexAccountErrors } from "@lukehagar/plexjs"; +import { GetMyPlexAccountErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetMyPlexAccountErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getmyplexaccountresponsebody.md b/docs/sdk/models/errors/getmyplexaccountresponsebody.md new file mode 100644 index 00000000..6be12be0 --- /dev/null +++ b/docs/sdk/models/errors/getmyplexaccountresponsebody.md @@ -0,0 +1,18 @@ +# GetMyPlexAccountResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetMyPlexAccountResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetMyPlexAccountErrors](../../../sdk/models/errors/getmyplexaccounterrors.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/models/getondeckerrors.md b/docs/sdk/models/errors/getondeckerrors.md similarity index 93% rename from docs/models/getondeckerrors.md rename to docs/sdk/models/errors/getondeckerrors.md index 28a82f6e..707c86e2 100644 --- a/docs/models/getondeckerrors.md +++ b/docs/sdk/models/errors/getondeckerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOnDeckErrors } from "@lukehagar/plexjs"; +import { GetOnDeckErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetOnDeckErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getondeckresponsebody.md b/docs/sdk/models/errors/getondeckresponsebody.md new file mode 100644 index 00000000..28cce185 --- /dev/null +++ b/docs/sdk/models/errors/getondeckresponsebody.md @@ -0,0 +1,18 @@ +# GetOnDeckResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetOnDeckResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `errors` | [errors.GetOnDeckErrors](../../../sdk/models/errors/getondeckerrors.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/models/getpinerrors.md b/docs/sdk/models/errors/getpinerrors.md similarity index 94% rename from docs/models/getpinerrors.md rename to docs/sdk/models/errors/getpinerrors.md index df3ee917..8e0b7767 100644 --- a/docs/models/getpinerrors.md +++ b/docs/sdk/models/errors/getpinerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPinErrors } from "@lukehagar/plexjs"; +import { GetPinErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPinErrors = { code: 1000, diff --git a/docs/models/getpinresponsebody.md b/docs/sdk/models/errors/getpinresponsebody.md similarity index 85% rename from docs/models/getpinresponsebody.md rename to docs/sdk/models/errors/getpinresponsebody.md index ce5b469c..b5ac6d20 100644 --- a/docs/models/getpinresponsebody.md +++ b/docs/sdk/models/errors/getpinresponsebody.md @@ -5,7 +5,7 @@ Bad Request response when the X-Plex-Client-Identifier is missing ## Example Usage ```typescript -import { GetPinResponseBody } from "@lukehagar/plexjs"; +import { GetPinResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; // No examples available for this model ``` @@ -14,5 +14,5 @@ import { GetPinResponseBody } from "@lukehagar/plexjs"; | Field | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.GetPinErrors](../models/getpinerrors.md)[] | :heavy_minus_sign: | N/A | +| `errors` | [errors.GetPinErrors](../../../sdk/models/errors/getpinerrors.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/models/getplaylistcontentserrors.md b/docs/sdk/models/errors/getplaylistcontentserrors.md similarity index 92% rename from docs/models/getplaylistcontentserrors.md rename to docs/sdk/models/errors/getplaylistcontentserrors.md index 18351160..6fe5b22e 100644 --- a/docs/models/getplaylistcontentserrors.md +++ b/docs/sdk/models/errors/getplaylistcontentserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsErrors } from "@lukehagar/plexjs"; +import { GetPlaylistContentsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPlaylistContentsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getplaylistcontentsresponsebody.md b/docs/sdk/models/errors/getplaylistcontentsresponsebody.md new file mode 100644 index 00000000..bb2d8258 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistcontentsresponsebody.md @@ -0,0 +1,18 @@ +# GetPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetPlaylistContentsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetPlaylistContentsErrors](../../../sdk/models/errors/getplaylistcontentserrors.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/models/getplaylisterrors.md b/docs/sdk/models/errors/getplaylisterrors.md similarity index 93% rename from docs/models/getplaylisterrors.md rename to docs/sdk/models/errors/getplaylisterrors.md index b680f8df..deef5b66 100644 --- a/docs/models/getplaylisterrors.md +++ b/docs/sdk/models/errors/getplaylisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistErrors } from "@lukehagar/plexjs"; +import { GetPlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPlaylistErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getplaylistresponsebody.md b/docs/sdk/models/errors/getplaylistresponsebody.md new file mode 100644 index 00000000..40957987 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistresponsebody.md @@ -0,0 +1,18 @@ +# GetPlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetPlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `errors` | [errors.GetPlaylistErrors](../../../sdk/models/errors/getplaylisterrors.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/models/getplaylistserrors.md b/docs/sdk/models/errors/getplaylistserrors.md similarity index 93% rename from docs/models/getplaylistserrors.md rename to docs/sdk/models/errors/getplaylistserrors.md index 500d2e1a..35882d07 100644 --- a/docs/models/getplaylistserrors.md +++ b/docs/sdk/models/errors/getplaylistserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistsErrors } from "@lukehagar/plexjs"; +import { GetPlaylistsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetPlaylistsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getplaylistsresponsebody.md b/docs/sdk/models/errors/getplaylistsresponsebody.md new file mode 100644 index 00000000..4ff47a56 --- /dev/null +++ b/docs/sdk/models/errors/getplaylistsresponsebody.md @@ -0,0 +1,18 @@ +# GetPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `errors` | [errors.GetPlaylistsErrors](../../../sdk/models/errors/getplaylistserrors.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/models/getrecentlyaddederrors.md b/docs/sdk/models/errors/getrecentlyaddederrors.md similarity index 93% rename from docs/models/getrecentlyaddederrors.md rename to docs/sdk/models/errors/getrecentlyaddederrors.md index a13ce508..42f9e689 100644 --- a/docs/models/getrecentlyaddederrors.md +++ b/docs/sdk/models/errors/getrecentlyaddederrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRecentlyAddedErrors } from "@lukehagar/plexjs"; +import { GetRecentlyAddedErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetRecentlyAddedErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getrecentlyaddedresponsebody.md b/docs/sdk/models/errors/getrecentlyaddedresponsebody.md new file mode 100644 index 00000000..d07e3f2c --- /dev/null +++ b/docs/sdk/models/errors/getrecentlyaddedresponsebody.md @@ -0,0 +1,18 @@ +# GetRecentlyAddedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetRecentlyAddedResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetRecentlyAddedErrors](../../../sdk/models/errors/getrecentlyaddederrors.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/models/getrefreshlibrarymetadataerrors.md b/docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md similarity index 98% rename from docs/models/getrefreshlibrarymetadataerrors.md rename to docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md index 8bbbcdf6..e0314b6d 100644 --- a/docs/models/getrefreshlibrarymetadataerrors.md +++ b/docs/sdk/models/errors/getrefreshlibrarymetadataerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRefreshLibraryMetadataErrors } from "@lukehagar/plexjs"; +import { GetRefreshLibraryMetadataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetRefreshLibraryMetadataErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md b/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md new file mode 100644 index 00000000..e8150980 --- /dev/null +++ b/docs/sdk/models/errors/getrefreshlibrarymetadataresponsebody.md @@ -0,0 +1,18 @@ +# GetRefreshLibraryMetadataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetRefreshLibraryMetadataResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetRefreshLibraryMetadataErrors](../../../sdk/models/errors/getrefreshlibrarymetadataerrors.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/models/getresizedphotoerrors.md b/docs/sdk/models/errors/getresizedphotoerrors.md similarity index 93% rename from docs/models/getresizedphotoerrors.md rename to docs/sdk/models/errors/getresizedphotoerrors.md index 25fb01e5..a14daf6a 100644 --- a/docs/models/getresizedphotoerrors.md +++ b/docs/sdk/models/errors/getresizedphotoerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetResizedPhotoErrors } from "@lukehagar/plexjs"; +import { GetResizedPhotoErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetResizedPhotoErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getresizedphotoresponsebody.md b/docs/sdk/models/errors/getresizedphotoresponsebody.md new file mode 100644 index 00000000..1e71c62a --- /dev/null +++ b/docs/sdk/models/errors/getresizedphotoresponsebody.md @@ -0,0 +1,18 @@ +# GetResizedPhotoResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetResizedPhotoResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.GetResizedPhotoErrors](../../../sdk/models/errors/getresizedphotoerrors.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/models/getresourcesstatisticserrors.md b/docs/sdk/models/errors/getresourcesstatisticserrors.md similarity index 92% rename from docs/models/getresourcesstatisticserrors.md rename to docs/sdk/models/errors/getresourcesstatisticserrors.md index 5b16cb8a..76ed19a6 100644 --- a/docs/models/getresourcesstatisticserrors.md +++ b/docs/sdk/models/errors/getresourcesstatisticserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetResourcesStatisticsErrors } from "@lukehagar/plexjs"; +import { GetResourcesStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetResourcesStatisticsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md b/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md new file mode 100644 index 00000000..847414fc --- /dev/null +++ b/docs/sdk/models/errors/getresourcesstatisticsresponsebody.md @@ -0,0 +1,18 @@ +# GetResourcesStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetResourcesStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetResourcesStatisticsErrors](../../../sdk/models/errors/getresourcesstatisticserrors.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/models/getsearchlibraryerrors.md b/docs/sdk/models/errors/getsearchlibraryerrors.md similarity index 93% rename from docs/models/getsearchlibraryerrors.md rename to docs/sdk/models/errors/getsearchlibraryerrors.md index f33986aa..9e772c2b 100644 --- a/docs/models/getsearchlibraryerrors.md +++ b/docs/sdk/models/errors/getsearchlibraryerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchLibraryErrors } from "@lukehagar/plexjs"; +import { GetSearchLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSearchLibraryErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getsearchlibraryresponsebody.md b/docs/sdk/models/errors/getsearchlibraryresponsebody.md new file mode 100644 index 00000000..0f4ec364 --- /dev/null +++ b/docs/sdk/models/errors/getsearchlibraryresponsebody.md @@ -0,0 +1,18 @@ +# GetSearchLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSearchLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSearchLibraryErrors](../../../sdk/models/errors/getsearchlibraryerrors.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/models/getsearchresultserrors.md b/docs/sdk/models/errors/getsearchresultserrors.md similarity index 93% rename from docs/models/getsearchresultserrors.md rename to docs/sdk/models/errors/getsearchresultserrors.md index 9316e450..65f1490a 100644 --- a/docs/models/getsearchresultserrors.md +++ b/docs/sdk/models/errors/getsearchresultserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsErrors } from "@lukehagar/plexjs"; +import { GetSearchResultsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSearchResultsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getsearchresultsresponsebody.md b/docs/sdk/models/errors/getsearchresultsresponsebody.md new file mode 100644 index 00000000..d2c66085 --- /dev/null +++ b/docs/sdk/models/errors/getsearchresultsresponsebody.md @@ -0,0 +1,18 @@ +# GetSearchResultsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSearchResultsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSearchResultsErrors](../../../sdk/models/errors/getsearchresultserrors.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/models/getserveractivitieserrors.md b/docs/sdk/models/errors/getserveractivitieserrors.md similarity index 92% rename from docs/models/getserveractivitieserrors.md rename to docs/sdk/models/errors/getserveractivitieserrors.md index 27d7bee1..606025e0 100644 --- a/docs/models/getserveractivitieserrors.md +++ b/docs/sdk/models/errors/getserveractivitieserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerActivitiesErrors } from "@lukehagar/plexjs"; +import { GetServerActivitiesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerActivitiesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getserveractivitiesresponsebody.md b/docs/sdk/models/errors/getserveractivitiesresponsebody.md new file mode 100644 index 00000000..15430a0b --- /dev/null +++ b/docs/sdk/models/errors/getserveractivitiesresponsebody.md @@ -0,0 +1,18 @@ +# GetServerActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerActivitiesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerActivitiesErrors](../../../sdk/models/errors/getserveractivitieserrors.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/models/deletelibraryresponsebody.md b/docs/sdk/models/errors/getservercapabilitiesresponsebody.md similarity index 82% rename from docs/models/deletelibraryresponsebody.md rename to docs/sdk/models/errors/getservercapabilitiesresponsebody.md index 7a103927..81be4c16 100644 --- a/docs/models/deletelibraryresponsebody.md +++ b/docs/sdk/models/errors/getservercapabilitiesresponsebody.md @@ -1,11 +1,11 @@ -# DeleteLibraryResponseBody +# GetServerCapabilitiesResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. ## Example Usage ```typescript -import { DeleteLibraryResponseBody } from "@lukehagar/plexjs"; +import { GetServerCapabilitiesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; // No examples available for this model ``` @@ -14,5 +14,5 @@ import { DeleteLibraryResponseBody } from "@lukehagar/plexjs"; | Field | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.DeleteLibraryErrors](../models/deletelibraryerrors.md)[] | :heavy_minus_sign: | N/A | +| `errors` | [errors.Errors](../../../sdk/models/errors/errors.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/models/getserveridentityserverresponsebody.md b/docs/sdk/models/errors/getserveridentityresponsebody.md similarity index 94% rename from docs/models/getserveridentityserverresponsebody.md rename to docs/sdk/models/errors/getserveridentityresponsebody.md index 888d2b91..50017706 100644 --- a/docs/models/getserveridentityserverresponsebody.md +++ b/docs/sdk/models/errors/getserveridentityresponsebody.md @@ -1,11 +1,11 @@ -# GetServerIdentityServerResponseBody +# GetServerIdentityResponseBody Request Timeout ## Example Usage ```typescript -import { GetServerIdentityServerResponseBody } from "@lukehagar/plexjs"; +import { GetServerIdentityResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; // No examples available for this model ``` diff --git a/docs/models/getserverlisterrors.md b/docs/sdk/models/errors/getserverlisterrors.md similarity index 93% rename from docs/models/getserverlisterrors.md rename to docs/sdk/models/errors/getserverlisterrors.md index 43f8e49b..49159818 100644 --- a/docs/models/getserverlisterrors.md +++ b/docs/sdk/models/errors/getserverlisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerListErrors } from "@lukehagar/plexjs"; +import { GetServerListErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerListErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getserverlistresponsebody.md b/docs/sdk/models/errors/getserverlistresponsebody.md new file mode 100644 index 00000000..8b6ef850 --- /dev/null +++ b/docs/sdk/models/errors/getserverlistresponsebody.md @@ -0,0 +1,18 @@ +# GetServerListResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerListResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerListErrors](../../../sdk/models/errors/getserverlisterrors.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/models/getserverpreferenceserrors.md b/docs/sdk/models/errors/getserverpreferenceserrors.md similarity index 92% rename from docs/models/getserverpreferenceserrors.md rename to docs/sdk/models/errors/getserverpreferenceserrors.md index c6e602ab..8e958369 100644 --- a/docs/models/getserverpreferenceserrors.md +++ b/docs/sdk/models/errors/getserverpreferenceserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerPreferencesErrors } from "@lukehagar/plexjs"; +import { GetServerPreferencesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerPreferencesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getserverpreferencesresponsebody.md b/docs/sdk/models/errors/getserverpreferencesresponsebody.md new file mode 100644 index 00000000..6711a5ed --- /dev/null +++ b/docs/sdk/models/errors/getserverpreferencesresponsebody.md @@ -0,0 +1,18 @@ +# GetServerPreferencesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerPreferencesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerPreferencesErrors](../../../sdk/models/errors/getserverpreferenceserrors.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/models/getserverresourceserrors.md b/docs/sdk/models/errors/getserverresourceserrors.md similarity index 92% rename from docs/models/getserverresourceserrors.md rename to docs/sdk/models/errors/getserverresourceserrors.md index 210fa821..29ee7bdc 100644 --- a/docs/models/getserverresourceserrors.md +++ b/docs/sdk/models/errors/getserverresourceserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerResourcesErrors } from "@lukehagar/plexjs"; +import { GetServerResourcesErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetServerResourcesErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getserverresourcesresponsebody.md b/docs/sdk/models/errors/getserverresourcesresponsebody.md new file mode 100644 index 00000000..86208680 --- /dev/null +++ b/docs/sdk/models/errors/getserverresourcesresponsebody.md @@ -0,0 +1,18 @@ +# GetServerResourcesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetServerResourcesResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetServerResourcesErrors](../../../sdk/models/errors/getserverresourceserrors.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/models/getsessionhistoryerrors.md b/docs/sdk/models/errors/getsessionhistoryerrors.md similarity index 93% rename from docs/models/getsessionhistoryerrors.md rename to docs/sdk/models/errors/getsessionhistoryerrors.md index 5a9aa016..58e90616 100644 --- a/docs/models/getsessionhistoryerrors.md +++ b/docs/sdk/models/errors/getsessionhistoryerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionHistoryErrors } from "@lukehagar/plexjs"; +import { GetSessionHistoryErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSessionHistoryErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getsessionhistoryresponsebody.md b/docs/sdk/models/errors/getsessionhistoryresponsebody.md new file mode 100644 index 00000000..ae6bea30 --- /dev/null +++ b/docs/sdk/models/errors/getsessionhistoryresponsebody.md @@ -0,0 +1,18 @@ +# GetSessionHistoryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSessionHistoryResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSessionHistoryErrors](../../../sdk/models/errors/getsessionhistoryerrors.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/models/getsessionserrors.md b/docs/sdk/models/errors/getsessionserrors.md similarity index 93% rename from docs/models/getsessionserrors.md rename to docs/sdk/models/errors/getsessionserrors.md index 7caac780..532d532b 100644 --- a/docs/models/getsessionserrors.md +++ b/docs/sdk/models/errors/getsessionserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionsErrors } from "@lukehagar/plexjs"; +import { GetSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSessionsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getsessionsresponsebody.md b/docs/sdk/models/errors/getsessionsresponsebody.md new file mode 100644 index 00000000..07ff36ae --- /dev/null +++ b/docs/sdk/models/errors/getsessionsresponsebody.md @@ -0,0 +1,18 @@ +# GetSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `errors` | [errors.GetSessionsErrors](../../../sdk/models/errors/getsessionserrors.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/models/getsourceconnectioninformationerrors.md b/docs/sdk/models/errors/getsourceconnectioninformationerrors.md similarity index 97% rename from docs/models/getsourceconnectioninformationerrors.md rename to docs/sdk/models/errors/getsourceconnectioninformationerrors.md index 642f7864..830c6e3b 100644 --- a/docs/models/getsourceconnectioninformationerrors.md +++ b/docs/sdk/models/errors/getsourceconnectioninformationerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSourceConnectionInformationErrors } from "@lukehagar/plexjs"; +import { GetSourceConnectionInformationErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetSourceConnectionInformationErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md b/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md new file mode 100644 index 00000000..cb2a98b0 --- /dev/null +++ b/docs/sdk/models/errors/getsourceconnectioninformationresponsebody.md @@ -0,0 +1,18 @@ +# GetSourceConnectionInformationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetSourceConnectionInformationResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetSourceConnectionInformationErrors](../../../sdk/models/errors/getsourceconnectioninformationerrors.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/models/getstatisticserrors.md b/docs/sdk/models/errors/getstatisticserrors.md similarity index 93% rename from docs/models/getstatisticserrors.md rename to docs/sdk/models/errors/getstatisticserrors.md index d9761d27..2f01a450 100644 --- a/docs/models/getstatisticserrors.md +++ b/docs/sdk/models/errors/getstatisticserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStatisticsErrors } from "@lukehagar/plexjs"; +import { GetStatisticsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetStatisticsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getstatisticsresponsebody.md b/docs/sdk/models/errors/getstatisticsresponsebody.md new file mode 100644 index 00000000..6fdc1d9a --- /dev/null +++ b/docs/sdk/models/errors/getstatisticsresponsebody.md @@ -0,0 +1,18 @@ +# GetStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.GetStatisticsErrors](../../../sdk/models/errors/getstatisticserrors.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/models/getthumbimageerrors.md b/docs/sdk/models/errors/getthumbimageerrors.md similarity index 93% rename from docs/models/getthumbimageerrors.md rename to docs/sdk/models/errors/getthumbimageerrors.md index 4d704750..fff5ef6f 100644 --- a/docs/models/getthumbimageerrors.md +++ b/docs/sdk/models/errors/getthumbimageerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetThumbImageErrors } from "@lukehagar/plexjs"; +import { GetThumbImageErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetThumbImageErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getthumbimageresponsebody.md b/docs/sdk/models/errors/getthumbimageresponsebody.md new file mode 100644 index 00000000..93772428 --- /dev/null +++ b/docs/sdk/models/errors/getthumbimageresponsebody.md @@ -0,0 +1,18 @@ +# GetThumbImageResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetThumbImageResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.GetThumbImageErrors](../../../sdk/models/errors/getthumbimageerrors.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/models/gettimelineerrors.md b/docs/sdk/models/errors/gettimelineerrors.md similarity index 93% rename from docs/models/gettimelineerrors.md rename to docs/sdk/models/errors/gettimelineerrors.md index 9f70eba1..59c5282b 100644 --- a/docs/models/gettimelineerrors.md +++ b/docs/sdk/models/errors/gettimelineerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTimelineErrors } from "@lukehagar/plexjs"; +import { GetTimelineErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTimelineErrors = { code: 1001, diff --git a/docs/sdk/models/errors/gettimelineresponsebody.md b/docs/sdk/models/errors/gettimelineresponsebody.md new file mode 100644 index 00000000..397cfc9c --- /dev/null +++ b/docs/sdk/models/errors/gettimelineresponsebody.md @@ -0,0 +1,18 @@ +# GetTimelineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTimelineResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `errors` | [errors.GetTimelineErrors](../../../sdk/models/errors/gettimelineerrors.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/models/gettokenbypiniderrors.md b/docs/sdk/models/errors/gettokenbypiniderrors.md similarity index 93% rename from docs/models/gettokenbypiniderrors.md rename to docs/sdk/models/errors/gettokenbypiniderrors.md index 011f8c26..b00a6936 100644 --- a/docs/models/gettokenbypiniderrors.md +++ b/docs/sdk/models/errors/gettokenbypiniderrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenByPinIdErrors } from "@lukehagar/plexjs"; +import { GetTokenByPinIdErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTokenByPinIdErrors = { code: 1000, diff --git a/docs/models/gettokenbypinidplexerrors.md b/docs/sdk/models/errors/gettokenbypinidplexerrors.md similarity index 90% rename from docs/models/gettokenbypinidplexerrors.md rename to docs/sdk/models/errors/gettokenbypinidplexerrors.md index 10e10c20..fabb2f90 100644 --- a/docs/models/gettokenbypinidplexerrors.md +++ b/docs/sdk/models/errors/gettokenbypinidplexerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenByPinIdPlexErrors } from "@lukehagar/plexjs"; +import { GetTokenByPinIdPlexErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTokenByPinIdPlexErrors = { code: 1020, diff --git a/docs/sdk/models/errors/gettokenbypinidplexresponsebody.md b/docs/sdk/models/errors/gettokenbypinidplexresponsebody.md new file mode 100644 index 00000000..a4a298cb --- /dev/null +++ b/docs/sdk/models/errors/gettokenbypinidplexresponsebody.md @@ -0,0 +1,18 @@ +# GetTokenByPinIdPlexResponseBody + +Not Found or Expired + +## Example Usage + +```typescript +import { GetTokenByPinIdPlexResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTokenByPinIdPlexErrors](../../../sdk/models/errors/gettokenbypinidplexerrors.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/gettokenbypinidresponsebody.md b/docs/sdk/models/errors/gettokenbypinidresponsebody.md new file mode 100644 index 00000000..dea0f211 --- /dev/null +++ b/docs/sdk/models/errors/gettokenbypinidresponsebody.md @@ -0,0 +1,18 @@ +# GetTokenByPinIdResponseBody + +Bad Request response when the X-Plex-Client-Identifier is missing + +## Example Usage + +```typescript +import { GetTokenByPinIdResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTokenByPinIdErrors](../../../sdk/models/errors/gettokenbypiniderrors.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/models/gettopwatchedcontenterrors.md b/docs/sdk/models/errors/gettopwatchedcontenterrors.md similarity index 92% rename from docs/models/gettopwatchedcontenterrors.md rename to docs/sdk/models/errors/gettopwatchedcontenterrors.md index b5706182..8f1fcce4 100644 --- a/docs/models/gettopwatchedcontenterrors.md +++ b/docs/sdk/models/errors/gettopwatchedcontenterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTopWatchedContentErrors } from "@lukehagar/plexjs"; +import { GetTopWatchedContentErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTopWatchedContentErrors = { code: 1001, diff --git a/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md b/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md new file mode 100644 index 00000000..5531a354 --- /dev/null +++ b/docs/sdk/models/errors/gettopwatchedcontentresponsebody.md @@ -0,0 +1,18 @@ +# GetTopWatchedContentResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTopWatchedContentResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTopWatchedContentErrors](../../../sdk/models/errors/gettopwatchedcontenterrors.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/models/gettranscodesessionserrors.md b/docs/sdk/models/errors/gettranscodesessionserrors.md similarity index 92% rename from docs/models/gettranscodesessionserrors.md rename to docs/sdk/models/errors/gettranscodesessionserrors.md index 098cd7a7..3cd7d0da 100644 --- a/docs/models/gettranscodesessionserrors.md +++ b/docs/sdk/models/errors/gettranscodesessionserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTranscodeSessionsErrors } from "@lukehagar/plexjs"; +import { GetTranscodeSessionsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTranscodeSessionsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/gettranscodesessionsresponsebody.md b/docs/sdk/models/errors/gettranscodesessionsresponsebody.md new file mode 100644 index 00000000..487382de --- /dev/null +++ b/docs/sdk/models/errors/gettranscodesessionsresponsebody.md @@ -0,0 +1,18 @@ +# GetTranscodeSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTranscodeSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTranscodeSessionsErrors](../../../sdk/models/errors/gettranscodesessionserrors.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/models/gettransienttokenerrors.md b/docs/sdk/models/errors/gettransienttokenerrors.md similarity index 93% rename from docs/models/gettransienttokenerrors.md rename to docs/sdk/models/errors/gettransienttokenerrors.md index b0d4932e..84fd0558 100644 --- a/docs/models/gettransienttokenerrors.md +++ b/docs/sdk/models/errors/gettransienttokenerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransientTokenErrors } from "@lukehagar/plexjs"; +import { GetTransientTokenErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetTransientTokenErrors = { code: 1001, diff --git a/docs/sdk/models/errors/gettransienttokenresponsebody.md b/docs/sdk/models/errors/gettransienttokenresponsebody.md new file mode 100644 index 00000000..a383117e --- /dev/null +++ b/docs/sdk/models/errors/gettransienttokenresponsebody.md @@ -0,0 +1,18 @@ +# GetTransientTokenResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetTransientTokenResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `errors` | [errors.GetTransientTokenErrors](../../../sdk/models/errors/gettransienttokenerrors.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/models/getupdatestatuserrors.md b/docs/sdk/models/errors/getupdatestatuserrors.md similarity index 93% rename from docs/models/getupdatestatuserrors.md rename to docs/sdk/models/errors/getupdatestatuserrors.md index 7aab8687..91e24174 100644 --- a/docs/models/getupdatestatuserrors.md +++ b/docs/sdk/models/errors/getupdatestatuserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUpdateStatusErrors } from "@lukehagar/plexjs"; +import { GetUpdateStatusErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetUpdateStatusErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getupdatestatusresponsebody.md b/docs/sdk/models/errors/getupdatestatusresponsebody.md new file mode 100644 index 00000000..fbf633e8 --- /dev/null +++ b/docs/sdk/models/errors/getupdatestatusresponsebody.md @@ -0,0 +1,18 @@ +# GetUpdateStatusResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUpdateStatusResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `errors` | [errors.GetUpdateStatusErrors](../../../sdk/models/errors/getupdatestatuserrors.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/models/getuserdetailserrors.md b/docs/sdk/models/errors/getuserdetailserrors.md similarity index 93% rename from docs/models/getuserdetailserrors.md rename to docs/sdk/models/errors/getuserdetailserrors.md index cbdbe447..0e1ac706 100644 --- a/docs/models/getuserdetailserrors.md +++ b/docs/sdk/models/errors/getuserdetailserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUserDetailsErrors } from "@lukehagar/plexjs"; +import { GetUserDetailsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetUserDetailsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getuserdetailsresponsebody.md b/docs/sdk/models/errors/getuserdetailsresponsebody.md new file mode 100644 index 00000000..650b5cec --- /dev/null +++ b/docs/sdk/models/errors/getuserdetailsresponsebody.md @@ -0,0 +1,18 @@ +# GetUserDetailsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUserDetailsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.GetUserDetailsErrors](../../../sdk/models/errors/getuserdetailserrors.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/models/getuserfriendserrors.md b/docs/sdk/models/errors/getuserfriendserrors.md similarity index 93% rename from docs/models/getuserfriendserrors.md rename to docs/sdk/models/errors/getuserfriendserrors.md index d80c009d..7800209a 100644 --- a/docs/models/getuserfriendserrors.md +++ b/docs/sdk/models/errors/getuserfriendserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUserFriendsErrors } from "@lukehagar/plexjs"; +import { GetUserFriendsErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetUserFriendsErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getuserfriendsresponsebody.md b/docs/sdk/models/errors/getuserfriendsresponsebody.md new file mode 100644 index 00000000..eb0ffab7 --- /dev/null +++ b/docs/sdk/models/errors/getuserfriendsresponsebody.md @@ -0,0 +1,18 @@ +# GetUserFriendsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetUserFriendsResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.GetUserFriendsErrors](../../../sdk/models/errors/getuserfriendserrors.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/models/getwatchlisterrors.md b/docs/sdk/models/errors/getwatchlisterrors.md similarity index 93% rename from docs/models/getwatchlisterrors.md rename to docs/sdk/models/errors/getwatchlisterrors.md index 6fe33a7f..091777b8 100644 --- a/docs/models/getwatchlisterrors.md +++ b/docs/sdk/models/errors/getwatchlisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetWatchListErrors } from "@lukehagar/plexjs"; +import { GetWatchListErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: GetWatchListErrors = { code: 1001, diff --git a/docs/sdk/models/errors/getwatchlistresponsebody.md b/docs/sdk/models/errors/getwatchlistresponsebody.md new file mode 100644 index 00000000..92195e17 --- /dev/null +++ b/docs/sdk/models/errors/getwatchlistresponsebody.md @@ -0,0 +1,18 @@ +# GetWatchListResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { GetWatchListResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `errors` | [errors.GetWatchListErrors](../../../sdk/models/errors/getwatchlisterrors.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/models/loglineerrors.md b/docs/sdk/models/errors/loglineerrors.md similarity index 93% rename from docs/models/loglineerrors.md rename to docs/sdk/models/errors/loglineerrors.md index d092654f..65094c74 100644 --- a/docs/models/loglineerrors.md +++ b/docs/sdk/models/errors/loglineerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogLineErrors } from "@lukehagar/plexjs"; +import { LogLineErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: LogLineErrors = { code: 1001, diff --git a/docs/models/loglineresponsebody.md b/docs/sdk/models/errors/loglineresponsebody.md similarity index 85% rename from docs/models/loglineresponsebody.md rename to docs/sdk/models/errors/loglineresponsebody.md index e437cd6e..0ee4b83f 100644 --- a/docs/models/loglineresponsebody.md +++ b/docs/sdk/models/errors/loglineresponsebody.md @@ -5,7 +5,7 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. ## Example Usage ```typescript -import { LogLineResponseBody } from "@lukehagar/plexjs"; +import { LogLineResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; // No examples available for this model ``` @@ -14,5 +14,5 @@ import { LogLineResponseBody } from "@lukehagar/plexjs"; | Field | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `errors` | [models.LogLineErrors](../models/loglineerrors.md)[] | :heavy_minus_sign: | N/A | +| `errors` | [errors.LogLineErrors](../../../sdk/models/errors/loglineerrors.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/models/logmultilineerrors.md b/docs/sdk/models/errors/logmultilineerrors.md similarity index 93% rename from docs/models/logmultilineerrors.md rename to docs/sdk/models/errors/logmultilineerrors.md index 5157acff..cda93710 100644 --- a/docs/models/logmultilineerrors.md +++ b/docs/sdk/models/errors/logmultilineerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogMultiLineErrors } from "@lukehagar/plexjs"; +import { LogMultiLineErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: LogMultiLineErrors = { code: 1001, diff --git a/docs/sdk/models/errors/logmultilineresponsebody.md b/docs/sdk/models/errors/logmultilineresponsebody.md new file mode 100644 index 00000000..6352f729 --- /dev/null +++ b/docs/sdk/models/errors/logmultilineresponsebody.md @@ -0,0 +1,18 @@ +# LogMultiLineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { LogMultiLineResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `errors` | [errors.LogMultiLineErrors](../../../sdk/models/errors/logmultilineerrors.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/models/markplayederrors.md b/docs/sdk/models/errors/markplayederrors.md similarity index 93% rename from docs/models/markplayederrors.md rename to docs/sdk/models/errors/markplayederrors.md index c6eb1657..12ca3bd1 100644 --- a/docs/models/markplayederrors.md +++ b/docs/sdk/models/errors/markplayederrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkPlayedErrors } from "@lukehagar/plexjs"; +import { MarkPlayedErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: MarkPlayedErrors = { code: 1001, diff --git a/docs/sdk/models/errors/markplayedresponsebody.md b/docs/sdk/models/errors/markplayedresponsebody.md new file mode 100644 index 00000000..70bd0f5b --- /dev/null +++ b/docs/sdk/models/errors/markplayedresponsebody.md @@ -0,0 +1,18 @@ +# MarkPlayedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { MarkPlayedResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `errors` | [errors.MarkPlayedErrors](../../../sdk/models/errors/markplayederrors.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/models/markunplayederrors.md b/docs/sdk/models/errors/markunplayederrors.md similarity index 93% rename from docs/models/markunplayederrors.md rename to docs/sdk/models/errors/markunplayederrors.md index 55841bcf..bd600122 100644 --- a/docs/models/markunplayederrors.md +++ b/docs/sdk/models/errors/markunplayederrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkUnplayedErrors } from "@lukehagar/plexjs"; +import { MarkUnplayedErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: MarkUnplayedErrors = { code: 1001, diff --git a/docs/sdk/models/errors/markunplayedresponsebody.md b/docs/sdk/models/errors/markunplayedresponsebody.md new file mode 100644 index 00000000..cc09a271 --- /dev/null +++ b/docs/sdk/models/errors/markunplayedresponsebody.md @@ -0,0 +1,18 @@ +# MarkUnplayedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { MarkUnplayedResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `errors` | [errors.MarkUnplayedErrors](../../../sdk/models/errors/markunplayederrors.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/models/performsearcherrors.md b/docs/sdk/models/errors/performsearcherrors.md similarity index 93% rename from docs/models/performsearcherrors.md rename to docs/sdk/models/errors/performsearcherrors.md index b6a6d501..1fc03d47 100644 --- a/docs/models/performsearcherrors.md +++ b/docs/sdk/models/errors/performsearcherrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PerformSearchErrors } from "@lukehagar/plexjs"; +import { PerformSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: PerformSearchErrors = { code: 1001, diff --git a/docs/sdk/models/errors/performsearchresponsebody.md b/docs/sdk/models/errors/performsearchresponsebody.md new file mode 100644 index 00000000..fab44dac --- /dev/null +++ b/docs/sdk/models/errors/performsearchresponsebody.md @@ -0,0 +1,18 @@ +# PerformSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PerformSearchResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.PerformSearchErrors](../../../sdk/models/errors/performsearcherrors.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/models/performvoicesearcherrors.md b/docs/sdk/models/errors/performvoicesearcherrors.md similarity index 92% rename from docs/models/performvoicesearcherrors.md rename to docs/sdk/models/errors/performvoicesearcherrors.md index fd8c5daa..583f1cc1 100644 --- a/docs/models/performvoicesearcherrors.md +++ b/docs/sdk/models/errors/performvoicesearcherrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PerformVoiceSearchErrors } from "@lukehagar/plexjs"; +import { PerformVoiceSearchErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: PerformVoiceSearchErrors = { code: 1001, diff --git a/docs/sdk/models/errors/performvoicesearchresponsebody.md b/docs/sdk/models/errors/performvoicesearchresponsebody.md new file mode 100644 index 00000000..4e4b7873 --- /dev/null +++ b/docs/sdk/models/errors/performvoicesearchresponsebody.md @@ -0,0 +1,18 @@ +# PerformVoiceSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PerformVoiceSearchResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.PerformVoiceSearchErrors](../../../sdk/models/errors/performvoicesearcherrors.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/models/postuserssignindataerrors.md b/docs/sdk/models/errors/postuserssignindataerrors.md similarity index 92% rename from docs/models/postuserssignindataerrors.md rename to docs/sdk/models/errors/postuserssignindataerrors.md index d21445f4..adefe722 100644 --- a/docs/models/postuserssignindataerrors.md +++ b/docs/sdk/models/errors/postuserssignindataerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataErrors } from "@lukehagar/plexjs"; +import { PostUsersSignInDataErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: PostUsersSignInDataErrors = { code: 1001, diff --git a/docs/sdk/models/errors/postuserssignindataresponsebody.md b/docs/sdk/models/errors/postuserssignindataresponsebody.md new file mode 100644 index 00000000..51ed8701 --- /dev/null +++ b/docs/sdk/models/errors/postuserssignindataresponsebody.md @@ -0,0 +1,18 @@ +# PostUsersSignInDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { PostUsersSignInDataResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `errors` | [errors.PostUsersSignInDataErrors](../../../sdk/models/errors/postuserssignindataerrors.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/models/startalltaskserrors.md b/docs/sdk/models/errors/startalltaskserrors.md similarity index 93% rename from docs/models/startalltaskserrors.md rename to docs/sdk/models/errors/startalltaskserrors.md index b376e491..b642b463 100644 --- a/docs/models/startalltaskserrors.md +++ b/docs/sdk/models/errors/startalltaskserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartAllTasksErrors } from "@lukehagar/plexjs"; +import { StartAllTasksErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StartAllTasksErrors = { code: 1001, diff --git a/docs/sdk/models/errors/startalltasksresponsebody.md b/docs/sdk/models/errors/startalltasksresponsebody.md new file mode 100644 index 00000000..06ab39c6 --- /dev/null +++ b/docs/sdk/models/errors/startalltasksresponsebody.md @@ -0,0 +1,18 @@ +# StartAllTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StartAllTasksResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `errors` | [errors.StartAllTasksErrors](../../../sdk/models/errors/startalltaskserrors.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/models/starttaskerrors.md b/docs/sdk/models/errors/starttaskerrors.md similarity index 93% rename from docs/models/starttaskerrors.md rename to docs/sdk/models/errors/starttaskerrors.md index 80866117..21f8311e 100644 --- a/docs/models/starttaskerrors.md +++ b/docs/sdk/models/errors/starttaskerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartTaskErrors } from "@lukehagar/plexjs"; +import { StartTaskErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StartTaskErrors = { code: 1001, diff --git a/docs/sdk/models/errors/starttaskresponsebody.md b/docs/sdk/models/errors/starttaskresponsebody.md new file mode 100644 index 00000000..1e8fd588 --- /dev/null +++ b/docs/sdk/models/errors/starttaskresponsebody.md @@ -0,0 +1,18 @@ +# StartTaskResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StartTaskResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `errors` | [errors.StartTaskErrors](../../../sdk/models/errors/starttaskerrors.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/models/startuniversaltranscodeerrors.md b/docs/sdk/models/errors/startuniversaltranscodeerrors.md similarity index 98% rename from docs/models/startuniversaltranscodeerrors.md rename to docs/sdk/models/errors/startuniversaltranscodeerrors.md index 7992221c..ce973ceb 100644 --- a/docs/models/startuniversaltranscodeerrors.md +++ b/docs/sdk/models/errors/startuniversaltranscodeerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartUniversalTranscodeErrors } from "@lukehagar/plexjs"; +import { StartUniversalTranscodeErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StartUniversalTranscodeErrors = { code: 1001, diff --git a/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md b/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md new file mode 100644 index 00000000..bb86f293 --- /dev/null +++ b/docs/sdk/models/errors/startuniversaltranscoderesponsebody.md @@ -0,0 +1,18 @@ +# StartUniversalTranscodeResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StartUniversalTranscodeResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `errors` | [errors.StartUniversalTranscodeErrors](../../../sdk/models/errors/startuniversaltranscodeerrors.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/models/stopalltaskserrors.md b/docs/sdk/models/errors/stopalltaskserrors.md similarity index 93% rename from docs/models/stopalltaskserrors.md rename to docs/sdk/models/errors/stopalltaskserrors.md index 101cc73f..ae148323 100644 --- a/docs/models/stopalltaskserrors.md +++ b/docs/sdk/models/errors/stopalltaskserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopAllTasksErrors } from "@lukehagar/plexjs"; +import { StopAllTasksErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StopAllTasksErrors = { code: 1001, diff --git a/docs/sdk/models/errors/stopalltasksresponsebody.md b/docs/sdk/models/errors/stopalltasksresponsebody.md new file mode 100644 index 00000000..28a0c62a --- /dev/null +++ b/docs/sdk/models/errors/stopalltasksresponsebody.md @@ -0,0 +1,18 @@ +# StopAllTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StopAllTasksResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `errors` | [errors.StopAllTasksErrors](../../../sdk/models/errors/stopalltaskserrors.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/models/stoptaskerrors.md b/docs/sdk/models/errors/stoptaskerrors.md similarity index 93% rename from docs/models/stoptaskerrors.md rename to docs/sdk/models/errors/stoptaskerrors.md index a340f54b..06570437 100644 --- a/docs/models/stoptaskerrors.md +++ b/docs/sdk/models/errors/stoptaskerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopTaskErrors } from "@lukehagar/plexjs"; +import { StopTaskErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StopTaskErrors = { code: 1001, diff --git a/docs/sdk/models/errors/stoptaskresponsebody.md b/docs/sdk/models/errors/stoptaskresponsebody.md new file mode 100644 index 00000000..7f41ae31 --- /dev/null +++ b/docs/sdk/models/errors/stoptaskresponsebody.md @@ -0,0 +1,18 @@ +# StopTaskResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StopTaskResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `errors` | [errors.StopTaskErrors](../../../sdk/models/errors/stoptaskerrors.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/models/stoptranscodesessionerrors.md b/docs/sdk/models/errors/stoptranscodesessionerrors.md similarity index 92% rename from docs/models/stoptranscodesessionerrors.md rename to docs/sdk/models/errors/stoptranscodesessionerrors.md index d86900f0..d42a4bc6 100644 --- a/docs/models/stoptranscodesessionerrors.md +++ b/docs/sdk/models/errors/stoptranscodesessionerrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopTranscodeSessionErrors } from "@lukehagar/plexjs"; +import { StopTranscodeSessionErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: StopTranscodeSessionErrors = { code: 1001, diff --git a/docs/sdk/models/errors/stoptranscodesessionresponsebody.md b/docs/sdk/models/errors/stoptranscodesessionresponsebody.md new file mode 100644 index 00000000..8378897f --- /dev/null +++ b/docs/sdk/models/errors/stoptranscodesessionresponsebody.md @@ -0,0 +1,18 @@ +# StopTranscodeSessionResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { StopTranscodeSessionResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `errors` | [errors.StopTranscodeSessionErrors](../../../sdk/models/errors/stoptranscodesessionerrors.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/models/updateplaylisterrors.md b/docs/sdk/models/errors/updateplaylisterrors.md similarity index 93% rename from docs/models/updateplaylisterrors.md rename to docs/sdk/models/errors/updateplaylisterrors.md index 506a140c..93a3d659 100644 --- a/docs/models/updateplaylisterrors.md +++ b/docs/sdk/models/errors/updateplaylisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlaylistErrors } from "@lukehagar/plexjs"; +import { UpdatePlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: UpdatePlaylistErrors = { code: 1001, diff --git a/docs/sdk/models/errors/updateplaylistresponsebody.md b/docs/sdk/models/errors/updateplaylistresponsebody.md new file mode 100644 index 00000000..9e34068f --- /dev/null +++ b/docs/sdk/models/errors/updateplaylistresponsebody.md @@ -0,0 +1,18 @@ +# UpdatePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { UpdatePlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.UpdatePlaylistErrors](../../../sdk/models/errors/updateplaylisterrors.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/models/updateplayprogresserrors.md b/docs/sdk/models/errors/updateplayprogresserrors.md similarity index 92% rename from docs/models/updateplayprogresserrors.md rename to docs/sdk/models/errors/updateplayprogresserrors.md index d85b1607..14aedb01 100644 --- a/docs/models/updateplayprogresserrors.md +++ b/docs/sdk/models/errors/updateplayprogresserrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlayProgressErrors } from "@lukehagar/plexjs"; +import { UpdatePlayProgressErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: UpdatePlayProgressErrors = { code: 1001, diff --git a/docs/sdk/models/errors/updateplayprogressresponsebody.md b/docs/sdk/models/errors/updateplayprogressresponsebody.md new file mode 100644 index 00000000..09ba2a71 --- /dev/null +++ b/docs/sdk/models/errors/updateplayprogressresponsebody.md @@ -0,0 +1,18 @@ +# UpdatePlayProgressResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { UpdatePlayProgressResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `errors` | [errors.UpdatePlayProgressErrors](../../../sdk/models/errors/updateplayprogresserrors.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/models/uploadplaylisterrors.md b/docs/sdk/models/errors/uploadplaylisterrors.md similarity index 93% rename from docs/models/uploadplaylisterrors.md rename to docs/sdk/models/errors/uploadplaylisterrors.md index 70e1bd47..4ad69cb6 100644 --- a/docs/models/uploadplaylisterrors.md +++ b/docs/sdk/models/errors/uploadplaylisterrors.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UploadPlaylistErrors } from "@lukehagar/plexjs"; +import { UploadPlaylistErrors } from "@lukehagar/plexjs/sdk/models/errors"; let value: UploadPlaylistErrors = { code: 1001, diff --git a/docs/sdk/models/errors/uploadplaylistresponsebody.md b/docs/sdk/models/errors/uploadplaylistresponsebody.md new file mode 100644 index 00000000..550b0e81 --- /dev/null +++ b/docs/sdk/models/errors/uploadplaylistresponsebody.md @@ -0,0 +1,18 @@ +# UploadPlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + +## Example Usage + +```typescript +import { UploadPlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `errors` | [errors.UploadPlaylistErrors](../../../sdk/models/errors/uploadplaylisterrors.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/models/account.md b/docs/sdk/models/operations/account.md similarity index 98% rename from docs/models/account.md rename to docs/sdk/models/operations/account.md index b6d0621b..c5924866 100644 --- a/docs/models/account.md +++ b/docs/sdk/models/operations/account.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Account } from "@lukehagar/plexjs"; +import { Account } from "@lukehagar/plexjs/sdk/models/operations"; let value: Account = { id: 238960586, diff --git a/docs/sdk/models/operations/activity.md b/docs/sdk/models/operations/activity.md new file mode 100644 index 00000000..b2fb8f02 --- /dev/null +++ b/docs/sdk/models/operations/activity.md @@ -0,0 +1,22 @@ +# Activity + +## Example Usage + +```typescript +import { Activity } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Activity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `uuid` | *string* | :heavy_minus_sign: | N/A | +| `type` | *string* | :heavy_minus_sign: | N/A | +| `cancellable` | *boolean* | :heavy_minus_sign: | N/A | +| `userID` | *number* | :heavy_minus_sign: | N/A | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `subtitle` | *string* | :heavy_minus_sign: | N/A | +| `progress` | *number* | :heavy_minus_sign: | N/A | +| `context` | [operations.Context](../../../sdk/models/operations/context.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/addplaylistcontentsmediacontainer.md b/docs/sdk/models/operations/addplaylistcontentsmediacontainer.md new file mode 100644 index 00000000..3f67c772 --- /dev/null +++ b/docs/sdk/models/operations/addplaylistcontentsmediacontainer.md @@ -0,0 +1,39 @@ +# AddPlaylistContentsMediaContainer + +## Example Usage + +```typescript +import { AddPlaylistContentsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: AddPlaylistContentsMediaContainer = { + size: 1, + leafCountAdded: 1, + leafCountRequested: 1, + metadata: [ + { + ratingKey: "94", + key: "/playlists/94/items", + guid: "com.plexapp.agents.none://972e3047-83d6-4848-a000-261f0af26ba2", + type: "playlist", + title: "A great playlist", + summary: "One of my great playlists", + smart: false, + playlistType: "video", + composite: "/playlists/94/composite/1705800070", + duration: 423000, + leafCount: 3, + addedAt: 1705716458, + updatedAt: 1705800070, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `leafCountAdded` | *number* | :heavy_minus_sign: | N/A | 1 | +| `leafCountRequested` | *number* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | [operations.AddPlaylistContentsMetadata](../../../sdk/models/operations/addplaylistcontentsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/addplaylistcontentsmetadata.md b/docs/sdk/models/operations/addplaylistcontentsmetadata.md similarity index 98% rename from docs/models/addplaylistcontentsmetadata.md rename to docs/sdk/models/operations/addplaylistcontentsmetadata.md index ef1a5b5a..581571e3 100644 --- a/docs/models/addplaylistcontentsmetadata.md +++ b/docs/sdk/models/operations/addplaylistcontentsmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddPlaylistContentsMetadata } from "@lukehagar/plexjs"; +import { AddPlaylistContentsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddPlaylistContentsMetadata = { ratingKey: "94", diff --git a/docs/models/addplaylistcontentsrequest.md b/docs/sdk/models/operations/addplaylistcontentsrequest.md similarity index 95% rename from docs/models/addplaylistcontentsrequest.md rename to docs/sdk/models/operations/addplaylistcontentsrequest.md index 0703f7cb..e0b72c96 100644 --- a/docs/models/addplaylistcontentsrequest.md +++ b/docs/sdk/models/operations/addplaylistcontentsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddPlaylistContentsRequest } from "@lukehagar/plexjs"; +import { AddPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddPlaylistContentsRequest = { playlistID: 6625.27, diff --git a/docs/sdk/models/operations/addplaylistcontentsresponse.md b/docs/sdk/models/operations/addplaylistcontentsresponse.md new file mode 100644 index 00000000..82846f53 --- /dev/null +++ b/docs/sdk/models/operations/addplaylistcontentsresponse.md @@ -0,0 +1,48 @@ +# AddPlaylistContentsResponse + +## Example Usage + +```typescript +import { AddPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: AddPlaylistContentsResponse = { + contentType: "", + statusCode: 820994, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 1, + leafCountAdded: 1, + leafCountRequested: 1, + metadata: [ + { + ratingKey: "94", + key: "/playlists/94/items", + guid: "com.plexapp.agents.none://972e3047-83d6-4848-a000-261f0af26ba2", + type: "playlist", + title: "A great playlist", + summary: "One of my great playlists", + smart: false, + playlistType: "video", + composite: "/playlists/94/composite/1705800070", + duration: 423000, + leafCount: 3, + addedAt: 1705716458, + updatedAt: 1705800070, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.AddPlaylistContentsResponseBody](../../../sdk/models/operations/addplaylistcontentsresponsebody.md) | :heavy_minus_sign: | Playlist Updated | \ No newline at end of file diff --git a/docs/models/addplaylistcontentsresponsebody.md b/docs/sdk/models/operations/addplaylistcontentsresponsebody.md similarity index 50% rename from docs/models/addplaylistcontentsresponsebody.md rename to docs/sdk/models/operations/addplaylistcontentsresponsebody.md index c9a9e016..047c6db7 100644 --- a/docs/models/addplaylistcontentsresponsebody.md +++ b/docs/sdk/models/operations/addplaylistcontentsresponsebody.md @@ -5,7 +5,7 @@ Playlist Updated ## Example Usage ```typescript -import { AddPlaylistContentsResponseBody } from "@lukehagar/plexjs"; +import { AddPlaylistContentsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: AddPlaylistContentsResponseBody = { mediaContainer: { @@ -35,6 +35,6 @@ let value: AddPlaylistContentsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.AddPlaylistContentsMediaContainer](../models/addplaylistcontentsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.AddPlaylistContentsMediaContainer](../../../sdk/models/operations/addplaylistcontentsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/applyupdatesrequest.md b/docs/sdk/models/operations/applyupdatesrequest.md similarity index 91% rename from docs/models/applyupdatesrequest.md rename to docs/sdk/models/operations/applyupdatesrequest.md index 2269ba85..3573ffb4 100644 --- a/docs/models/applyupdatesrequest.md +++ b/docs/sdk/models/operations/applyupdatesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ApplyUpdatesRequest, Skip, Tonight } from "@lukehagar/plexjs"; +import { ApplyUpdatesRequest, Skip, Tonight } from "@lukehagar/plexjs/sdk/models/operations"; let value: ApplyUpdatesRequest = { tonight: Tonight.One, @@ -15,5 +15,5 @@ let value: ApplyUpdatesRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tonight` | [models.Tonight](../models/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | -| `skip` | [models.Skip](../models/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`. | 1 | \ No newline at end of file +| `tonight` | [operations.Tonight](../../../sdk/models/operations/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | +| `skip` | [operations.Skip](../../../sdk/models/operations/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`. | 1 | \ No newline at end of file diff --git a/docs/models/applyupdatesresponse.md b/docs/sdk/models/operations/applyupdatesresponse.md similarity index 95% rename from docs/models/applyupdatesresponse.md rename to docs/sdk/models/operations/applyupdatesresponse.md index 90e594a8..e34fb453 100644 --- a/docs/models/applyupdatesresponse.md +++ b/docs/sdk/models/operations/applyupdatesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ApplyUpdatesResponse } from "@lukehagar/plexjs"; +import { ApplyUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: ApplyUpdatesResponse = { contentType: "", diff --git a/docs/models/autoselectsubtitle.md b/docs/sdk/models/operations/autoselectsubtitle.md similarity index 79% rename from docs/models/autoselectsubtitle.md rename to docs/sdk/models/operations/autoselectsubtitle.md index 56d83cc7..9e5d00a0 100644 --- a/docs/models/autoselectsubtitle.md +++ b/docs/sdk/models/operations/autoselectsubtitle.md @@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud ## Example Usage ```typescript -import { AutoSelectSubtitle } from "@lukehagar/plexjs"; +import { AutoSelectSubtitle } from "@lukehagar/plexjs/sdk/models/operations"; let value: AutoSelectSubtitle = AutoSelectSubtitle.One; ``` diff --git a/docs/sdk/models/operations/billing.md b/docs/sdk/models/operations/billing.md new file mode 100644 index 00000000..b2a066bd --- /dev/null +++ b/docs/sdk/models/operations/billing.md @@ -0,0 +1,19 @@ +# Billing + +## Example Usage + +```typescript +import { Billing } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Billing = { + internalPaymentMethod: {}, + paymentMethodId: 317983, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `internalPaymentMethod` | [operations.InternalPaymentMethod](../../../sdk/models/operations/internalpaymentmethod.md) | :heavy_check_mark: | N/A | +| `paymentMethodId` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/butlertask.md b/docs/sdk/models/operations/butlertask.md similarity index 98% rename from docs/models/butlertask.md rename to docs/sdk/models/operations/butlertask.md index e61a7085..e3709a99 100644 --- a/docs/models/butlertask.md +++ b/docs/sdk/models/operations/butlertask.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ButlerTask } from "@lukehagar/plexjs"; +import { ButlerTask } from "@lukehagar/plexjs/sdk/models/operations"; let value: ButlerTask = { name: "BackupDatabase", diff --git a/docs/sdk/models/operations/butlertasks.md b/docs/sdk/models/operations/butlertasks.md new file mode 100644 index 00000000..c6e3edac --- /dev/null +++ b/docs/sdk/models/operations/butlertasks.md @@ -0,0 +1,25 @@ +# ButlerTasks + +## Example Usage + +```typescript +import { ButlerTasks } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: ButlerTasks = { + butlerTask: [ + { + name: "BackupDatabase", + interval: 3, + title: "Backup Database", + description: + "Create a backup copy of the server's database in the configured backup directory", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `butlerTask` | [operations.ButlerTask](../../../sdk/models/operations/butlertask.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/cancelserveractivitiesrequest.md b/docs/sdk/models/operations/cancelserveractivitiesrequest.md similarity index 97% rename from docs/models/cancelserveractivitiesrequest.md rename to docs/sdk/models/operations/cancelserveractivitiesrequest.md index ab0e1c29..3b750d89 100644 --- a/docs/models/cancelserveractivitiesrequest.md +++ b/docs/sdk/models/operations/cancelserveractivitiesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelServerActivitiesRequest } from "@lukehagar/plexjs"; +import { CancelServerActivitiesRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: CancelServerActivitiesRequest = { activityUUID: "25b71ed5-0f9d-461c-baa7-d404e9e10d3e", diff --git a/docs/models/cancelserveractivitiesresponse.md b/docs/sdk/models/operations/cancelserveractivitiesresponse.md similarity index 98% rename from docs/models/cancelserveractivitiesresponse.md rename to docs/sdk/models/operations/cancelserveractivitiesresponse.md index d961fd2d..999f9148 100644 --- a/docs/models/cancelserveractivitiesresponse.md +++ b/docs/sdk/models/operations/cancelserveractivitiesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CancelServerActivitiesResponse } from "@lukehagar/plexjs"; +import { CancelServerActivitiesResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: CancelServerActivitiesResponse = { contentType: "", diff --git a/docs/sdk/models/operations/checkforupdatesrequest.md b/docs/sdk/models/operations/checkforupdatesrequest.md new file mode 100644 index 00000000..bb16497c --- /dev/null +++ b/docs/sdk/models/operations/checkforupdatesrequest.md @@ -0,0 +1,17 @@ +# CheckForUpdatesRequest + +## Example Usage + +```typescript +import { CheckForUpdatesRequest, Download } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: CheckForUpdatesRequest = { + download: Download.One, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `download` | [operations.Download](../../../sdk/models/operations/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | \ No newline at end of file diff --git a/docs/models/checkforupdatesresponse.md b/docs/sdk/models/operations/checkforupdatesresponse.md similarity index 95% rename from docs/models/checkforupdatesresponse.md rename to docs/sdk/models/operations/checkforupdatesresponse.md index 6486d5eb..c26afd62 100644 --- a/docs/models/checkforupdatesresponse.md +++ b/docs/sdk/models/operations/checkforupdatesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CheckForUpdatesResponse } from "@lukehagar/plexjs"; +import { CheckForUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: CheckForUpdatesResponse = { contentType: "", diff --git a/docs/models/clearplaylistcontentsrequest.md b/docs/sdk/models/operations/clearplaylistcontentsrequest.md similarity index 83% rename from docs/models/clearplaylistcontentsrequest.md rename to docs/sdk/models/operations/clearplaylistcontentsrequest.md index d3284efc..2f62ad9f 100644 --- a/docs/models/clearplaylistcontentsrequest.md +++ b/docs/sdk/models/operations/clearplaylistcontentsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlaylistContentsRequest } from "@lukehagar/plexjs"; +import { ClearPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: ClearPlaylistContentsRequest = { playlistID: 9495.72, diff --git a/docs/models/clearplaylistcontentsresponse.md b/docs/sdk/models/operations/clearplaylistcontentsresponse.md similarity index 98% rename from docs/models/clearplaylistcontentsresponse.md rename to docs/sdk/models/operations/clearplaylistcontentsresponse.md index e2e07cda..0ed2a966 100644 --- a/docs/models/clearplaylistcontentsresponse.md +++ b/docs/sdk/models/operations/clearplaylistcontentsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ClearPlaylistContentsResponse } from "@lukehagar/plexjs"; +import { ClearPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: ClearPlaylistContentsResponse = { contentType: "", diff --git a/docs/models/connections.md b/docs/sdk/models/operations/connections.md similarity index 93% rename from docs/models/connections.md rename to docs/sdk/models/operations/connections.md index 83e6d5e1..1dcab6dd 100644 --- a/docs/models/connections.md +++ b/docs/sdk/models/operations/connections.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Connections } from "@lukehagar/plexjs"; +import { Connections } from "@lukehagar/plexjs/sdk/models/operations"; let value: Connections = { protocol: "", diff --git a/docs/models/context.md b/docs/sdk/models/operations/context.md similarity index 83% rename from docs/models/context.md rename to docs/sdk/models/operations/context.md index c6aba5bf..e9e42439 100644 --- a/docs/models/context.md +++ b/docs/sdk/models/operations/context.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Context } from "@lukehagar/plexjs"; +import { Context } from "@lukehagar/plexjs/sdk/models/operations"; let value: Context = {}; ``` diff --git a/docs/models/country.md b/docs/sdk/models/operations/country.md similarity index 88% rename from docs/models/country.md rename to docs/sdk/models/operations/country.md index 784b7e2f..0eaf607d 100644 --- a/docs/models/country.md +++ b/docs/sdk/models/operations/country.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Country } from "@lukehagar/plexjs"; +import { Country } from "@lukehagar/plexjs/sdk/models/operations"; let value: Country = { tag: "United States of America", diff --git a/docs/sdk/models/operations/createplaylistmediacontainer.md b/docs/sdk/models/operations/createplaylistmediacontainer.md new file mode 100644 index 00000000..bb0033ea --- /dev/null +++ b/docs/sdk/models/operations/createplaylistmediacontainer.md @@ -0,0 +1,38 @@ +# CreatePlaylistMediaContainer + +## Example Usage + +```typescript +import { CreatePlaylistMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: CreatePlaylistMediaContainer = { + size: 7, + metadata: [ + { + ratingKey: "96", + key: "/playlists/96/items", + guid: "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55", + type: "playlist", + title: "A Great Playlist", + summary: "What a great playlist", + smart: false, + playlistType: "video", + icon: "playlist://image.smart", + viewCount: 1, + lastViewedAt: 1705719589, + leafCount: 1, + addedAt: 1705719589, + updatedAt: 1705724593, + composite: "/playlists/96/composite/1705724593", + duration: 141000, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 7 | +| `metadata` | [operations.CreatePlaylistMetadata](../../../sdk/models/operations/createplaylistmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/createplaylistmetadata.md b/docs/sdk/models/operations/createplaylistmetadata.md similarity index 98% rename from docs/models/createplaylistmetadata.md rename to docs/sdk/models/operations/createplaylistmetadata.md index 6506a15d..8b620d49 100644 --- a/docs/models/createplaylistmetadata.md +++ b/docs/sdk/models/operations/createplaylistmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreatePlaylistMetadata } from "@lukehagar/plexjs"; +import { CreatePlaylistMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreatePlaylistMetadata = { ratingKey: "96", diff --git a/docs/models/createplaylistqueryparamtype.md b/docs/sdk/models/operations/createplaylistqueryparamtype.md similarity index 77% rename from docs/models/createplaylistqueryparamtype.md rename to docs/sdk/models/operations/createplaylistqueryparamtype.md index 3b32124d..f039f9e5 100644 --- a/docs/models/createplaylistqueryparamtype.md +++ b/docs/sdk/models/operations/createplaylistqueryparamtype.md @@ -5,7 +5,7 @@ type of playlist to create ## Example Usage ```typescript -import { CreatePlaylistQueryParamType } from "@lukehagar/plexjs"; +import { CreatePlaylistQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreatePlaylistQueryParamType = CreatePlaylistQueryParamType.Video; ``` diff --git a/docs/sdk/models/operations/createplaylistrequest.md b/docs/sdk/models/operations/createplaylistrequest.md new file mode 100644 index 00000000..b4ccdd0d --- /dev/null +++ b/docs/sdk/models/operations/createplaylistrequest.md @@ -0,0 +1,24 @@ +# CreatePlaylistRequest + +## Example Usage + +```typescript +import { CreatePlaylistQueryParamType, CreatePlaylistRequest, Smart } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: CreatePlaylistRequest = { + title: "", + type: CreatePlaylistQueryParamType.Photo, + smart: Smart.One, + uri: "https://exotic-harm.info", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `title` | *string* | :heavy_check_mark: | name of the playlist | +| `type` | [operations.CreatePlaylistQueryParamType](../../../sdk/models/operations/createplaylistqueryparamtype.md) | :heavy_check_mark: | type of playlist to create | +| `smart` | [operations.Smart](../../../sdk/models/operations/smart.md) | :heavy_check_mark: | whether the playlist is smart or not | +| `uri` | *string* | :heavy_check_mark: | the content URI for the playlist | +| `playQueueID` | *number* | :heavy_minus_sign: | the play queue to copy to a playlist | \ No newline at end of file diff --git a/docs/sdk/models/operations/createplaylistresponse.md b/docs/sdk/models/operations/createplaylistresponse.md new file mode 100644 index 00000000..5511b0ca --- /dev/null +++ b/docs/sdk/models/operations/createplaylistresponse.md @@ -0,0 +1,49 @@ +# CreatePlaylistResponse + +## Example Usage + +```typescript +import { CreatePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: CreatePlaylistResponse = { + contentType: "", + statusCode: 474697, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 7, + metadata: [ + { + ratingKey: "96", + key: "/playlists/96/items", + guid: "com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55", + type: "playlist", + title: "A Great Playlist", + summary: "What a great playlist", + smart: false, + playlistType: "video", + icon: "playlist://image.smart", + viewCount: 1, + lastViewedAt: 1705719589, + leafCount: 1, + addedAt: 1705719589, + updatedAt: 1705724593, + composite: "/playlists/96/composite/1705724593", + duration: 141000, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.CreatePlaylistResponseBody](../../../sdk/models/operations/createplaylistresponsebody.md) | :heavy_minus_sign: | returns all playlists | \ No newline at end of file diff --git a/docs/models/createplaylistresponsebody.md b/docs/sdk/models/operations/createplaylistresponsebody.md similarity index 54% rename from docs/models/createplaylistresponsebody.md rename to docs/sdk/models/operations/createplaylistresponsebody.md index 77594d96..a84b4b5c 100644 --- a/docs/models/createplaylistresponsebody.md +++ b/docs/sdk/models/operations/createplaylistresponsebody.md @@ -5,7 +5,7 @@ returns all playlists ## Example Usage ```typescript -import { CreatePlaylistResponseBody } from "@lukehagar/plexjs"; +import { CreatePlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: CreatePlaylistResponseBody = { mediaContainer: { @@ -36,6 +36,6 @@ let value: CreatePlaylistResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `mediaContainer` | [models.CreatePlaylistMediaContainer](../models/createplaylistmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.CreatePlaylistMediaContainer](../../../sdk/models/operations/createplaylistmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/defaultsubtitleaccessibility.md b/docs/sdk/models/operations/defaultsubtitleaccessibility.md similarity index 82% rename from docs/models/defaultsubtitleaccessibility.md rename to docs/sdk/models/operations/defaultsubtitleaccessibility.md index c76796db..3193e76f 100644 --- a/docs/models/defaultsubtitleaccessibility.md +++ b/docs/sdk/models/operations/defaultsubtitleaccessibility.md @@ -5,7 +5,7 @@ The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer no ## Example Usage ```typescript -import { DefaultSubtitleAccessibility } from "@lukehagar/plexjs"; +import { DefaultSubtitleAccessibility } from "@lukehagar/plexjs/sdk/models/operations"; let value: DefaultSubtitleAccessibility = DefaultSubtitleAccessibility.One; ``` diff --git a/docs/models/defaultsubtitleforced.md b/docs/sdk/models/operations/defaultsubtitleforced.md similarity index 82% rename from docs/models/defaultsubtitleforced.md rename to docs/sdk/models/operations/defaultsubtitleforced.md index 02e48507..8f7000a7 100644 --- a/docs/models/defaultsubtitleforced.md +++ b/docs/sdk/models/operations/defaultsubtitleforced.md @@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer ## Example Usage ```typescript -import { DefaultSubtitleForced } from "@lukehagar/plexjs"; +import { DefaultSubtitleForced } from "@lukehagar/plexjs/sdk/models/operations"; let value: DefaultSubtitleForced = DefaultSubtitleForced.One; ``` diff --git a/docs/models/deletelibraryrequest.md b/docs/sdk/models/operations/deletelibraryrequest.md similarity index 95% rename from docs/models/deletelibraryrequest.md rename to docs/sdk/models/operations/deletelibraryrequest.md index 0f0d1be3..ddbe6d6d 100644 --- a/docs/models/deletelibraryrequest.md +++ b/docs/sdk/models/operations/deletelibraryrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteLibraryRequest } from "@lukehagar/plexjs"; +import { DeleteLibraryRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteLibraryRequest = { sectionKey: 9518, diff --git a/docs/models/deletelibraryresponse.md b/docs/sdk/models/operations/deletelibraryresponse.md similarity index 95% rename from docs/models/deletelibraryresponse.md rename to docs/sdk/models/operations/deletelibraryresponse.md index 59cd5257..7857a671 100644 --- a/docs/models/deletelibraryresponse.md +++ b/docs/sdk/models/operations/deletelibraryresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeleteLibraryResponse } from "@lukehagar/plexjs"; +import { DeleteLibraryResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeleteLibraryResponse = { contentType: "", diff --git a/docs/models/deleteplaylistrequest.md b/docs/sdk/models/operations/deleteplaylistrequest.md similarity index 84% rename from docs/models/deleteplaylistrequest.md rename to docs/sdk/models/operations/deleteplaylistrequest.md index 0e5586a6..fa87111f 100644 --- a/docs/models/deleteplaylistrequest.md +++ b/docs/sdk/models/operations/deleteplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistRequest } from "@lukehagar/plexjs"; +import { DeletePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeletePlaylistRequest = { playlistID: 6747.52, diff --git a/docs/models/deleteplaylistresponse.md b/docs/sdk/models/operations/deleteplaylistresponse.md similarity index 95% rename from docs/models/deleteplaylistresponse.md rename to docs/sdk/models/operations/deleteplaylistresponse.md index 365d7ddd..d5d31768 100644 --- a/docs/models/deleteplaylistresponse.md +++ b/docs/sdk/models/operations/deleteplaylistresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeletePlaylistResponse } from "@lukehagar/plexjs"; +import { DeletePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: DeletePlaylistResponse = { contentType: "", diff --git a/docs/models/device.md b/docs/sdk/models/operations/device.md similarity index 93% rename from docs/models/device.md rename to docs/sdk/models/operations/device.md index 94b464aa..628cc9b3 100644 --- a/docs/models/device.md +++ b/docs/sdk/models/operations/device.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Device } from "@lukehagar/plexjs"; +import { Device } from "@lukehagar/plexjs/sdk/models/operations"; let value: Device = { id: 1, diff --git a/docs/models/director.md b/docs/sdk/models/operations/director.md similarity index 86% rename from docs/models/director.md rename to docs/sdk/models/operations/director.md index cae403f6..23c133da 100644 --- a/docs/models/director.md +++ b/docs/sdk/models/operations/director.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Director } from "@lukehagar/plexjs"; +import { Director } from "@lukehagar/plexjs/sdk/models/operations"; let value: Director = { tag: "Peyton Reed", diff --git a/docs/models/directory.md b/docs/sdk/models/operations/directory.md similarity index 88% rename from docs/models/directory.md rename to docs/sdk/models/operations/directory.md index 8a8ba0c2..97d26e28 100644 --- a/docs/models/directory.md +++ b/docs/sdk/models/operations/directory.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Directory } from "@lukehagar/plexjs"; +import { Directory } from "@lukehagar/plexjs/sdk/models/operations"; let value: Directory = {}; ``` diff --git a/docs/models/download.md b/docs/sdk/models/operations/download.md similarity index 77% rename from docs/models/download.md rename to docs/sdk/models/operations/download.md index 1a66f2fc..b080304a 100644 --- a/docs/models/download.md +++ b/docs/sdk/models/operations/download.md @@ -5,7 +5,7 @@ Indicate that you want to start download any updates found. ## Example Usage ```typescript -import { Download } from "@lukehagar/plexjs"; +import { Download } from "@lukehagar/plexjs/sdk/models/operations"; let value: Download = Download.One; ``` diff --git a/docs/models/enablepapertrailresponse.md b/docs/sdk/models/operations/enablepapertrailresponse.md similarity index 95% rename from docs/models/enablepapertrailresponse.md rename to docs/sdk/models/operations/enablepapertrailresponse.md index 76666368..1e090974 100644 --- a/docs/models/enablepapertrailresponse.md +++ b/docs/sdk/models/operations/enablepapertrailresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EnablePaperTrailResponse } from "@lukehagar/plexjs"; +import { EnablePaperTrailResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: EnablePaperTrailResponse = { contentType: "", diff --git a/docs/sdk/models/operations/feature.md b/docs/sdk/models/operations/feature.md new file mode 100644 index 00000000..f4f455ee --- /dev/null +++ b/docs/sdk/models/operations/feature.md @@ -0,0 +1,17 @@ +# Feature + +## Example Usage + +```typescript +import { Feature } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Feature = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `type` | *string* | :heavy_minus_sign: | N/A | +| `directory` | [operations.GetMediaProvidersDirectory](../../../sdk/models/operations/getmediaprovidersdirectory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/features.md b/docs/sdk/models/operations/features.md similarity index 98% rename from docs/models/features.md rename to docs/sdk/models/operations/features.md index 49e8f6d7..c5a91ba5 100644 --- a/docs/models/features.md +++ b/docs/sdk/models/operations/features.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Features } from "@lukehagar/plexjs"; +import { Features } from "@lukehagar/plexjs/sdk/models/operations"; let value: Features = Features.WatchTogetherInvite; ``` diff --git a/docs/models/field.md b/docs/sdk/models/operations/field.md similarity index 92% rename from docs/models/field.md rename to docs/sdk/models/operations/field.md index 10afd5ec..44eca221 100644 --- a/docs/models/field.md +++ b/docs/sdk/models/operations/field.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Field } from "@lukehagar/plexjs"; +import { Field } from "@lukehagar/plexjs/sdk/models/operations"; let value: Field = { key: "label", diff --git a/docs/sdk/models/operations/fieldtype.md b/docs/sdk/models/operations/fieldtype.md new file mode 100644 index 00000000..71d63ec1 --- /dev/null +++ b/docs/sdk/models/operations/fieldtype.md @@ -0,0 +1,24 @@ +# FieldType + +## Example Usage + +```typescript +import { FieldType } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: FieldType = { + type: "resolution", + operator: [ + { + key: "=", + title: "is", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `type` | *string* | :heavy_minus_sign: | N/A | resolution | +| `operator` | [operations.Operator](../../../sdk/models/operations/operator.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/filter.md b/docs/sdk/models/operations/filter.md similarity index 79% rename from docs/models/filter.md rename to docs/sdk/models/operations/filter.md index 08978a75..7579d234 100644 --- a/docs/models/filter.md +++ b/docs/sdk/models/operations/filter.md @@ -5,7 +5,7 @@ Filter ## Example Usage ```typescript -import { Filter } from "@lukehagar/plexjs"; +import { Filter } from "@lukehagar/plexjs/sdk/models/operations"; let value: Filter = Filter.Available; ``` diff --git a/docs/models/force.md b/docs/sdk/models/operations/force.md similarity index 78% rename from docs/models/force.md rename to docs/sdk/models/operations/force.md index 08651572..5265772f 100644 --- a/docs/models/force.md +++ b/docs/sdk/models/operations/force.md @@ -5,7 +5,7 @@ Force the refresh even if the library is already being refreshed. ## Example Usage ```typescript -import { Force } from "@lukehagar/plexjs"; +import { Force } from "@lukehagar/plexjs/sdk/models/operations"; let value: Force = Force.One; ``` diff --git a/docs/sdk/models/operations/friend.md b/docs/sdk/models/operations/friend.md new file mode 100644 index 00000000..898d6c9b --- /dev/null +++ b/docs/sdk/models/operations/friend.md @@ -0,0 +1,39 @@ +# Friend + +## Example Usage + +```typescript +import { Friend, Status } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Friend = { + email: "username@email.com", + friendlyName: "exampleUser", + home: true, + id: 0, + restricted: false, + sharedServers: [{}], + sharedSources: [{}], + status: Status.Accepted, + thumb: "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578", + title: "username123", + username: "username123", + uuid: "7d1916e0d8f6e76b", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `email` | *string* | :heavy_check_mark: | The account email address | username@email.com | +| `friendlyName` | *string* | :heavy_check_mark: | The account full name | exampleUser | +| `home` | *boolean* | :heavy_check_mark: | If the account is a Plex Home user | | +| `id` | *number* | :heavy_check_mark: | The Plex account ID | | +| `restricted` | *boolean* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `sharedServers` | [operations.SharedServers](../../../sdk/models/operations/sharedservers.md)[] | :heavy_check_mark: | N/A | | +| `sharedSources` | [operations.SharedSources](../../../sdk/models/operations/sharedsources.md)[] | :heavy_check_mark: | N/A | | +| `status` | [operations.Status](../../../sdk/models/operations/status.md) | :heavy_check_mark: | Current friend request status | accepted | +| `thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578 | +| `title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | username123 | +| `username` | *string* | :heavy_check_mark: | The account username | username123 | +| `uuid` | *string* | :heavy_check_mark: | The account Universally Unique Identifier (UUID) | 7d1916e0d8f6e76b | \ No newline at end of file diff --git a/docs/models/genre.md b/docs/sdk/models/operations/genre.md similarity index 86% rename from docs/models/genre.md rename to docs/sdk/models/operations/genre.md index 105e7ed8..bb10341c 100644 --- a/docs/models/genre.md +++ b/docs/sdk/models/operations/genre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Genre } from "@lukehagar/plexjs"; +import { Genre } from "@lukehagar/plexjs/sdk/models/operations"; let value: Genre = { tag: "Comedy", diff --git a/docs/models/geodata.md b/docs/sdk/models/operations/geodata.md similarity index 98% rename from docs/models/geodata.md rename to docs/sdk/models/operations/geodata.md index ba4f1e0d..b76219d6 100644 --- a/docs/models/geodata.md +++ b/docs/sdk/models/operations/geodata.md @@ -5,7 +5,7 @@ Geo location data ## Example Usage ```typescript -import { GeoData } from "@lukehagar/plexjs"; +import { GeoData } from "@lukehagar/plexjs/sdk/models/operations"; let value: GeoData = { code: "VI", diff --git a/docs/sdk/models/operations/getalllibrariesdirectory.md b/docs/sdk/models/operations/getalllibrariesdirectory.md new file mode 100644 index 00000000..22fd7c58 --- /dev/null +++ b/docs/sdk/models/operations/getalllibrariesdirectory.md @@ -0,0 +1,62 @@ +# GetAllLibrariesDirectory + +## Example Usage + +```typescript +import { GetAllLibrariesDirectory } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetAllLibrariesDirectory = { + allowSync: true, + art: "/:/resources/movie-fanart.jpg", + composite: "/library/sections/1/composite/1705615584", + filters: true, + refreshing: false, + thumb: "/:/resources/movie.png", + key: "1", + type: "movie", + title: "Movies", + agent: "tv.plex.agents.movie", + scanner: "Plex Movie", + language: "en-US", + uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", + updatedAt: 1556281940, + createdAt: 1556281940, + scannedAt: 1556281940, + content: true, + directory: true, + contentChangedAt: 3192854, + hidden: 0, + location: [ + { + id: 1, + path: "/movies", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | +| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `composite` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | +| `filters` | *boolean* | :heavy_minus_sign: | N/A | true | +| `refreshing` | *boolean* | :heavy_minus_sign: | N/A | false | +| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `key` | *string* | :heavy_minus_sign: | N/A | 1 | +| `type` | *string* | :heavy_minus_sign: | N/A | movie | +| `title` | *string* | :heavy_minus_sign: | N/A | Movies | +| `agent` | *string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | +| `scanner` | *string* | :heavy_minus_sign: | N/A | Plex Movie | +| `language` | *string* | :heavy_minus_sign: | N/A | en-US | +| `uuid` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `updatedAt` | *number* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | +| `createdAt` | *number* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | +| `scannedAt` | *number* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | +| `content` | *boolean* | :heavy_minus_sign: | N/A | true | +| `directory` | *boolean* | :heavy_minus_sign: | N/A | true | +| `contentChangedAt` | *number* | :heavy_minus_sign: | N/A | 3192854 | +| `hidden` | *number* | :heavy_minus_sign: | N/A | 0 | +| `location` | [operations.Location](../../../sdk/models/operations/location.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalllibrariesmediacontainer.md b/docs/sdk/models/operations/getalllibrariesmediacontainer.md new file mode 100644 index 00000000..e0b8c2c1 --- /dev/null +++ b/docs/sdk/models/operations/getalllibrariesmediacontainer.md @@ -0,0 +1,52 @@ +# GetAllLibrariesMediaContainer + +## Example Usage + +```typescript +import { GetAllLibrariesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetAllLibrariesMediaContainer = { + size: 5, + allowSync: false, + title1: "Plex Library", + directory: [ + { + allowSync: true, + art: "/:/resources/movie-fanart.jpg", + composite: "/library/sections/1/composite/1705615584", + filters: true, + refreshing: false, + thumb: "/:/resources/movie.png", + key: "1", + type: "movie", + title: "Movies", + agent: "tv.plex.agents.movie", + scanner: "Plex Movie", + language: "en-US", + uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", + updatedAt: 1556281940, + createdAt: 1556281940, + scannedAt: 1556281940, + content: true, + directory: true, + contentChangedAt: 3192854, + hidden: 0, + location: [ + { + id: 1, + path: "/movies", + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_check_mark: | N/A | 5 | +| `allowSync` | *boolean* | :heavy_check_mark: | N/A | false | +| `title1` | *string* | :heavy_check_mark: | N/A | Plex Library | +| `directory` | [operations.GetAllLibrariesDirectory](../../../sdk/models/operations/getalllibrariesdirectory.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getalllibrariesresponse.md b/docs/sdk/models/operations/getalllibrariesresponse.md new file mode 100644 index 00000000..d8075a3e --- /dev/null +++ b/docs/sdk/models/operations/getalllibrariesresponse.md @@ -0,0 +1,61 @@ +# GetAllLibrariesResponse + +## Example Usage + +```typescript +import { GetAllLibrariesResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetAllLibrariesResponse = { + contentType: "", + statusCode: 613064, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 5, + allowSync: false, + title1: "Plex Library", + directory: [ + { + allowSync: true, + art: "/:/resources/movie-fanart.jpg", + composite: "/library/sections/1/composite/1705615584", + filters: true, + refreshing: false, + thumb: "/:/resources/movie.png", + key: "1", + type: "movie", + title: "Movies", + agent: "tv.plex.agents.movie", + scanner: "Plex Movie", + language: "en-US", + uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", + updatedAt: 1556281940, + createdAt: 1556281940, + scannedAt: 1556281940, + content: true, + directory: true, + contentChangedAt: 3192854, + hidden: 0, + location: [ + { + id: 1, + path: "/movies", + }, + ], + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetAllLibrariesResponseBody](../../../sdk/models/operations/getalllibrariesresponsebody.md) | :heavy_minus_sign: | The libraries available on the Server | \ No newline at end of file diff --git a/docs/models/getalllibrariesresponsebody.md b/docs/sdk/models/operations/getalllibrariesresponsebody.md similarity index 54% rename from docs/models/getalllibrariesresponsebody.md rename to docs/sdk/models/operations/getalllibrariesresponsebody.md index 70e5e07c..2d13e401 100644 --- a/docs/models/getalllibrariesresponsebody.md +++ b/docs/sdk/models/operations/getalllibrariesresponsebody.md @@ -5,7 +5,7 @@ The libraries available on the Server ## Example Usage ```typescript -import { GetAllLibrariesResponseBody } from "@lukehagar/plexjs"; +import { GetAllLibrariesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetAllLibrariesResponseBody = { mediaContainer: { @@ -48,6 +48,6 @@ let value: GetAllLibrariesResponseBody = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetAllLibrariesMediaContainer](../models/getalllibrariesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetAllLibrariesMediaContainer](../../../sdk/models/operations/getalllibrariesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailableclientsmediacontainer.md b/docs/sdk/models/operations/getavailableclientsmediacontainer.md new file mode 100644 index 00000000..028c8e98 --- /dev/null +++ b/docs/sdk/models/operations/getavailableclientsmediacontainer.md @@ -0,0 +1,33 @@ +# GetAvailableClientsMediaContainer + +## Example Usage + +```typescript +import { GetAvailableClientsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetAvailableClientsMediaContainer = { + size: 1, + server: [ + { + name: "iPad", + host: "10.10.10.102", + address: "10.10.10.102", + port: 32500, + machineIdentifier: "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05", + version: "8.17", + protocol: "plex", + product: "Plex for iOS", + deviceClass: "tablet", + protocolVersion: 2, + protocolCapabilities: "playback,playqueues,timeline,provider-playback", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `server` | [operations.Server](../../../sdk/models/operations/server.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailableclientsresponse.md b/docs/sdk/models/operations/getavailableclientsresponse.md new file mode 100644 index 00000000..e98b762b --- /dev/null +++ b/docs/sdk/models/operations/getavailableclientsresponse.md @@ -0,0 +1,44 @@ +# GetAvailableClientsResponse + +## Example Usage + +```typescript +import { GetAvailableClientsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetAvailableClientsResponse = { + contentType: "", + statusCode: 715190, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 1, + server: [ + { + name: "iPad", + host: "10.10.10.102", + address: "10.10.10.102", + port: 32500, + machineIdentifier: "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05", + version: "8.17", + protocol: "plex", + product: "Plex for iOS", + deviceClass: "tablet", + protocolVersion: 2, + protocolCapabilities: "playback,playqueues,timeline,provider-playback", + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetAvailableClientsResponseBody](../../../sdk/models/operations/getavailableclientsresponsebody.md) | :heavy_minus_sign: | Available Clients | \ No newline at end of file diff --git a/docs/sdk/models/operations/getavailableclientsresponsebody.md b/docs/sdk/models/operations/getavailableclientsresponsebody.md new file mode 100644 index 00000000..5d29d3c4 --- /dev/null +++ b/docs/sdk/models/operations/getavailableclientsresponsebody.md @@ -0,0 +1,36 @@ +# GetAvailableClientsResponseBody + +Available Clients + +## Example Usage + +```typescript +import { GetAvailableClientsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetAvailableClientsResponseBody = { + mediaContainer: { + size: 1, + server: [ + { + name: "iPad", + host: "10.10.10.102", + address: "10.10.10.102", + port: 32500, + machineIdentifier: "A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05", + version: "8.17", + protocol: "plex", + product: "Plex for iOS", + deviceClass: "tablet", + protocolVersion: 2, + protocolCapabilities: "playback,playqueues,timeline,provider-playback", + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetAvailableClientsMediaContainer](../../../sdk/models/operations/getavailableclientsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getbandwidthstatisticsaccount.md b/docs/sdk/models/operations/getbandwidthstatisticsaccount.md similarity index 99% rename from docs/models/getbandwidthstatisticsaccount.md rename to docs/sdk/models/operations/getbandwidthstatisticsaccount.md index e2c85b49..4fe1221f 100644 --- a/docs/models/getbandwidthstatisticsaccount.md +++ b/docs/sdk/models/operations/getbandwidthstatisticsaccount.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBandwidthStatisticsAccount } from "@lukehagar/plexjs"; +import { GetBandwidthStatisticsAccount } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetBandwidthStatisticsAccount = { id: 238960586, diff --git a/docs/models/getbandwidthstatisticsdevice.md b/docs/sdk/models/operations/getbandwidthstatisticsdevice.md similarity index 94% rename from docs/models/getbandwidthstatisticsdevice.md rename to docs/sdk/models/operations/getbandwidthstatisticsdevice.md index 734258df..b7fd042d 100644 --- a/docs/models/getbandwidthstatisticsdevice.md +++ b/docs/sdk/models/operations/getbandwidthstatisticsdevice.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBandwidthStatisticsDevice } from "@lukehagar/plexjs"; +import { GetBandwidthStatisticsDevice } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetBandwidthStatisticsDevice = { id: 208, diff --git a/docs/sdk/models/operations/getbandwidthstatisticsmediacontainer.md b/docs/sdk/models/operations/getbandwidthstatisticsmediacontainer.md new file mode 100644 index 00000000..a105f847 --- /dev/null +++ b/docs/sdk/models/operations/getbandwidthstatisticsmediacontainer.md @@ -0,0 +1,51 @@ +# GetBandwidthStatisticsMediaContainer + +## Example Usage + +```typescript +import { GetBandwidthStatisticsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetBandwidthStatisticsMediaContainer = { + size: 5497, + device: [ + { + id: 208, + name: "Roku Express", + platform: "Roku", + clientIdentifier: "793095d235660625108ef785cc7646e9", + createdAt: 1706470556, + }, + ], + account: [ + { + id: 238960586, + key: "/accounts/238960586", + name: "Diane", + defaultAudioLanguage: "en", + autoSelectAudio: true, + defaultSubtitleLanguage: "en", + subtitleMode: 1, + thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", + }, + ], + statisticsBandwidth: [ + { + accountID: 238960586, + deviceID: 208, + timespan: 6, + at: 1718387650, + lan: true, + bytes: 22, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 5497 | +| `device` | [operations.GetBandwidthStatisticsDevice](../../../sdk/models/operations/getbandwidthstatisticsdevice.md)[] | :heavy_minus_sign: | N/A | | +| `account` | [operations.GetBandwidthStatisticsAccount](../../../sdk/models/operations/getbandwidthstatisticsaccount.md)[] | :heavy_minus_sign: | N/A | | +| `statisticsBandwidth` | [operations.StatisticsBandwidth](../../../sdk/models/operations/statisticsbandwidth.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getbandwidthstatisticsrequest.md b/docs/sdk/models/operations/getbandwidthstatisticsrequest.md similarity index 98% rename from docs/models/getbandwidthstatisticsrequest.md rename to docs/sdk/models/operations/getbandwidthstatisticsrequest.md index 82d6a56f..f1caa56c 100644 --- a/docs/models/getbandwidthstatisticsrequest.md +++ b/docs/sdk/models/operations/getbandwidthstatisticsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBandwidthStatisticsRequest } from "@lukehagar/plexjs"; +import { GetBandwidthStatisticsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetBandwidthStatisticsRequest = { timespan: 4, diff --git a/docs/sdk/models/operations/getbandwidthstatisticsresponse.md b/docs/sdk/models/operations/getbandwidthstatisticsresponse.md new file mode 100644 index 00000000..36b8fe84 --- /dev/null +++ b/docs/sdk/models/operations/getbandwidthstatisticsresponse.md @@ -0,0 +1,60 @@ +# GetBandwidthStatisticsResponse + +## Example Usage + +```typescript +import { GetBandwidthStatisticsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetBandwidthStatisticsResponse = { + contentType: "", + statusCode: 916723, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 5497, + device: [ + { + id: 208, + name: "Roku Express", + platform: "Roku", + clientIdentifier: "793095d235660625108ef785cc7646e9", + createdAt: 1706470556, + }, + ], + account: [ + { + id: 238960586, + key: "/accounts/238960586", + name: "Diane", + defaultAudioLanguage: "en", + autoSelectAudio: true, + defaultSubtitleLanguage: "en", + subtitleMode: 1, + thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", + }, + ], + statisticsBandwidth: [ + { + accountID: 238960586, + deviceID: 208, + timespan: 6, + at: 1718387650, + lan: true, + bytes: 22, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetBandwidthStatisticsResponseBody](../../../sdk/models/operations/getbandwidthstatisticsresponsebody.md) | :heavy_minus_sign: | Bandwidth Statistics | \ No newline at end of file diff --git a/docs/models/getbandwidthstatisticsresponsebody.md b/docs/sdk/models/operations/getbandwidthstatisticsresponsebody.md similarity index 60% rename from docs/models/getbandwidthstatisticsresponsebody.md rename to docs/sdk/models/operations/getbandwidthstatisticsresponsebody.md index 28f8de38..ce1506cb 100644 --- a/docs/models/getbandwidthstatisticsresponsebody.md +++ b/docs/sdk/models/operations/getbandwidthstatisticsresponsebody.md @@ -5,7 +5,7 @@ Bandwidth Statistics ## Example Usage ```typescript -import { GetBandwidthStatisticsResponseBody } from "@lukehagar/plexjs"; +import { GetBandwidthStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetBandwidthStatisticsResponseBody = { mediaContainer: { @@ -47,6 +47,6 @@ let value: GetBandwidthStatisticsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetBandwidthStatisticsMediaContainer](../models/getbandwidthstatisticsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetBandwidthStatisticsMediaContainer](../../../sdk/models/operations/getbandwidthstatisticsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getbannerimagerequest.md b/docs/sdk/models/operations/getbannerimagerequest.md similarity index 96% rename from docs/models/getbannerimagerequest.md rename to docs/sdk/models/operations/getbannerimagerequest.md index c5b8b807..c2864269 100644 --- a/docs/models/getbannerimagerequest.md +++ b/docs/sdk/models/operations/getbannerimagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBannerImageRequest } from "@lukehagar/plexjs"; +import { GetBannerImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetBannerImageRequest = { ratingKey: 9518, diff --git a/docs/models/getbannerimageresponse.md b/docs/sdk/models/operations/getbannerimageresponse.md similarity index 96% rename from docs/models/getbannerimageresponse.md rename to docs/sdk/models/operations/getbannerimageresponse.md index 1649dcd2..a2eb8cd8 100644 --- a/docs/models/getbannerimageresponse.md +++ b/docs/sdk/models/operations/getbannerimageresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBannerImageResponse } from "@lukehagar/plexjs"; +import { GetBannerImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; // No examples available for this model ``` diff --git a/docs/sdk/models/operations/getbutlertasksresponse.md b/docs/sdk/models/operations/getbutlertasksresponse.md new file mode 100644 index 00000000..9756f565 --- /dev/null +++ b/docs/sdk/models/operations/getbutlertasksresponse.md @@ -0,0 +1,37 @@ +# GetButlerTasksResponse + +## Example Usage + +```typescript +import { GetButlerTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetButlerTasksResponse = { + contentType: "", + statusCode: 812169, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + butlerTasks: { + butlerTask: [ + { + name: "BackupDatabase", + interval: 3, + title: "Backup Database", + description: + "Create a backup copy of the server's database in the configured backup directory", + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetButlerTasksResponseBody](../../../sdk/models/operations/getbutlertasksresponsebody.md) | :heavy_minus_sign: | All butler tasks | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbutlertasksresponsebody.md b/docs/sdk/models/operations/getbutlertasksresponsebody.md new file mode 100644 index 00000000..e342dfd9 --- /dev/null +++ b/docs/sdk/models/operations/getbutlertasksresponsebody.md @@ -0,0 +1,29 @@ +# GetButlerTasksResponseBody + +All butler tasks + +## Example Usage + +```typescript +import { GetButlerTasksResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetButlerTasksResponseBody = { + butlerTasks: { + butlerTask: [ + { + name: "BackupDatabase", + interval: 3, + title: "Backup Database", + description: + "Create a backup copy of the server's database in the configured backup directory", + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `butlerTasks` | [operations.ButlerTasks](../../../sdk/models/operations/butlertasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcompanionsdataresponse.md b/docs/sdk/models/operations/getcompanionsdataresponse.md new file mode 100644 index 00000000..8810eb99 --- /dev/null +++ b/docs/sdk/models/operations/getcompanionsdataresponse.md @@ -0,0 +1,34 @@ +# GetCompanionsDataResponse + +## Example Usage + +```typescript +import { GetCompanionsDataResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetCompanionsDataResponse = { + contentType: "", + statusCode: 87129, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + responseBodies: [ + { + identifier: "tv.plex.sonos", + baseURL: "https://sonos.plex.tv", + title: "Sonos", + linkURL: "https://sonos.plex.tv/link", + provides: "client,player", + token: "", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `responseBodies` | [operations.ResponseBody](../../../sdk/models/operations/responsebody.md)[] | :heavy_minus_sign: | Companions Data | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicesmediacontainer.md b/docs/sdk/models/operations/getdevicesmediacontainer.md new file mode 100644 index 00000000..6498be8d --- /dev/null +++ b/docs/sdk/models/operations/getdevicesmediacontainer.md @@ -0,0 +1,28 @@ +# GetDevicesMediaContainer + +## Example Usage + +```typescript +import { GetDevicesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetDevicesMediaContainer = { + size: 151, + identifier: "com.plexapp.system.devices", + device: [ + { + id: 1, + name: "iPhone", + platform: "iOS", + createdAt: 1654131230, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 151 | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.system.devices | +| `device` | [operations.Device](../../../sdk/models/operations/device.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicesresponse.md b/docs/sdk/models/operations/getdevicesresponse.md new file mode 100644 index 00000000..26e82dd8 --- /dev/null +++ b/docs/sdk/models/operations/getdevicesresponse.md @@ -0,0 +1,38 @@ +# GetDevicesResponse + +## Example Usage + +```typescript +import { GetDevicesResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetDevicesResponse = { + contentType: "", + statusCode: 844266, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 151, + identifier: "com.plexapp.system.devices", + device: [ + { + id: 1, + name: "iPhone", + platform: "iOS", + createdAt: 1654131230, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetDevicesResponseBody](../../../sdk/models/operations/getdevicesresponsebody.md) | :heavy_minus_sign: | Devices | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdevicesresponsebody.md b/docs/sdk/models/operations/getdevicesresponsebody.md new file mode 100644 index 00000000..a628f680 --- /dev/null +++ b/docs/sdk/models/operations/getdevicesresponsebody.md @@ -0,0 +1,30 @@ +# GetDevicesResponseBody + +Devices + +## Example Usage + +```typescript +import { GetDevicesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetDevicesResponseBody = { + mediaContainer: { + size: 151, + identifier: "com.plexapp.system.devices", + device: [ + { + id: 1, + name: "iPhone", + platform: "iOS", + createdAt: 1654131230, + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetDevicesMediaContainer](../../../sdk/models/operations/getdevicesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getfilehashrequest.md b/docs/sdk/models/operations/getfilehashrequest.md similarity index 95% rename from docs/models/getfilehashrequest.md rename to docs/sdk/models/operations/getfilehashrequest.md index 8eb6f134..4820e12d 100644 --- a/docs/models/getfilehashrequest.md +++ b/docs/sdk/models/operations/getfilehashrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFileHashRequest } from "@lukehagar/plexjs"; +import { GetFileHashRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetFileHashRequest = { url: "file://C:Image.png&type=13", diff --git a/docs/models/getfilehashresponse.md b/docs/sdk/models/operations/getfilehashresponse.md similarity index 95% rename from docs/models/getfilehashresponse.md rename to docs/sdk/models/operations/getfilehashresponse.md index 7be5445e..bcd422ee 100644 --- a/docs/models/getfilehashresponse.md +++ b/docs/sdk/models/operations/getfilehashresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetFileHashResponse } from "@lukehagar/plexjs"; +import { GetFileHashResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetFileHashResponse = { contentType: "", diff --git a/docs/models/getgeodatageodata.md b/docs/sdk/models/operations/getgeodatageodata.md similarity index 98% rename from docs/models/getgeodatageodata.md rename to docs/sdk/models/operations/getgeodatageodata.md index 8246c091..ce59e61e 100644 --- a/docs/models/getgeodatageodata.md +++ b/docs/sdk/models/operations/getgeodatageodata.md @@ -5,7 +5,7 @@ Geo location data ## Example Usage ```typescript -import { GetGeoDataGeoData } from "@lukehagar/plexjs"; +import { GetGeoDataGeoData } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetGeoDataGeoData = { code: "VI", diff --git a/docs/models/getgeodataresponse.md b/docs/sdk/models/operations/getgeodataresponse.md similarity index 98% rename from docs/models/getgeodataresponse.md rename to docs/sdk/models/operations/getgeodataresponse.md index 67ae426b..1e6965b9 100644 --- a/docs/models/getgeodataresponse.md +++ b/docs/sdk/models/operations/getgeodataresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetGeoDataResponse } from "@lukehagar/plexjs"; +import { GetGeoDataResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetGeoDataResponse = { contentType: "", @@ -34,4 +34,4 @@ let value: GetGeoDataResponse = { | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | | `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `geoData` | [models.GetGeoDataGeoData](../models/getgeodatageodata.md) | :heavy_minus_sign: | Gets the geo location data of the user | {
"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"
} | \ No newline at end of file +| `geoData` | [operations.GetGeoDataGeoData](../../../sdk/models/operations/getgeodatageodata.md) | :heavy_minus_sign: | Gets the geo location data of the user | {
"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"
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getglobalhubsmediacontainer.md b/docs/sdk/models/operations/getglobalhubsmediacontainer.md new file mode 100644 index 00000000..7bd2ad69 --- /dev/null +++ b/docs/sdk/models/operations/getglobalhubsmediacontainer.md @@ -0,0 +1,57 @@ +# GetGlobalHubsMediaContainer + +## Example Usage + +```typescript +import { GetGlobalHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetGlobalHubsMediaContainer = { + size: 8, + allowSync: true, + identifier: "com.plexapp.plugins.library", + hub: [ + { + hubKey: "/library/metadata/50768,65523,58188,57341,57302,57070", + key: "/playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio", + title: "Recent Playlists", + type: "playlist", + hubIdentifier: "home.playlists", + context: "hub.home.playlists", + size: 6, + more: true, + style: "shelf", + promoted: true, + metadata: [ + { + ratingKey: "57070", + key: "/playlists/57070/items", + guid: "com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c", + type: "playlist", + title: "November Movie Day", + titleSort: "Tracks", + summary: "", + smart: false, + playlistType: "video", + composite: "/playlists/57070/composite/1668787730", + icon: "playlist://image.smart", + viewCount: 2, + lastViewedAt: 1668787732, + duration: 16873000, + leafCount: 3, + addedAt: 1668779618, + updatedAt: 1668787730, + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 8 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `hub` | [operations.Hub](../../../sdk/models/operations/hub.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getglobalhubsmetadata.md b/docs/sdk/models/operations/getglobalhubsmetadata.md similarity index 98% rename from docs/models/getglobalhubsmetadata.md rename to docs/sdk/models/operations/getglobalhubsmetadata.md index 903082b6..a7a76cb4 100644 --- a/docs/models/getglobalhubsmetadata.md +++ b/docs/sdk/models/operations/getglobalhubsmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetGlobalHubsMetadata } from "@lukehagar/plexjs"; +import { GetGlobalHubsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetGlobalHubsMetadata = { ratingKey: "57070", diff --git a/docs/models/getglobalhubsrequest.md b/docs/sdk/models/operations/getglobalhubsrequest.md similarity index 92% rename from docs/models/getglobalhubsrequest.md rename to docs/sdk/models/operations/getglobalhubsrequest.md index 6ebd56c0..29955959 100644 --- a/docs/models/getglobalhubsrequest.md +++ b/docs/sdk/models/operations/getglobalhubsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetGlobalHubsRequest } from "@lukehagar/plexjs"; +import { GetGlobalHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetGlobalHubsRequest = {}; ``` @@ -13,4 +13,4 @@ let value: GetGlobalHubsRequest = {}; | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `count` | *number* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [models.OnlyTransient](../models/onlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file +| `onlyTransient` | [operations.OnlyTransient](../../../sdk/models/operations/onlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file diff --git a/docs/models/getglobalhubsresponse.md b/docs/sdk/models/operations/getglobalhubsresponse.md similarity index 53% rename from docs/models/getglobalhubsresponse.md rename to docs/sdk/models/operations/getglobalhubsresponse.md index 7694a0ec..8f69a51f 100644 --- a/docs/models/getglobalhubsresponse.md +++ b/docs/sdk/models/operations/getglobalhubsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetGlobalHubsResponse } from "@lukehagar/plexjs"; +import { GetGlobalHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetGlobalHubsResponse = { contentType: "", @@ -58,9 +58,9 @@ let value: GetGlobalHubsResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetGlobalHubsResponseBody](../models/getglobalhubsresponsebody.md) | :heavy_minus_sign: | returns global hubs | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetGlobalHubsResponseBody](../../../sdk/models/operations/getglobalhubsresponsebody.md) | :heavy_minus_sign: | returns global hubs | \ No newline at end of file diff --git a/docs/models/getglobalhubsresponsebody.md b/docs/sdk/models/operations/getglobalhubsresponsebody.md similarity index 68% rename from docs/models/getglobalhubsresponsebody.md rename to docs/sdk/models/operations/getglobalhubsresponsebody.md index 91603600..3c8d54c5 100644 --- a/docs/models/getglobalhubsresponsebody.md +++ b/docs/sdk/models/operations/getglobalhubsresponsebody.md @@ -5,7 +5,7 @@ returns global hubs ## Example Usage ```typescript -import { GetGlobalHubsResponseBody } from "@lukehagar/plexjs"; +import { GetGlobalHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetGlobalHubsResponseBody = { mediaContainer: { @@ -53,6 +53,6 @@ let value: GetGlobalHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetGlobalHubsMediaContainer](../models/getglobalhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetGlobalHubsMediaContainer](../../../sdk/models/operations/getglobalhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gethomedataresponse.md b/docs/sdk/models/operations/gethomedataresponse.md new file mode 100644 index 00000000..52f775bb --- /dev/null +++ b/docs/sdk/models/operations/gethomedataresponse.md @@ -0,0 +1,30 @@ +# GetHomeDataResponse + +## Example Usage + +```typescript +import { GetHomeDataResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetHomeDataResponse = { + contentType: "", + statusCode: 368241, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + id: 1841489, + name: "Blindkitty38's home", + guestUserID: 58815432, + guestUserUUID: "f3df4e01bfca0787", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetHomeDataResponseBody](../../../sdk/models/operations/gethomedataresponsebody.md) | :heavy_minus_sign: | Home Data | \ No newline at end of file diff --git a/docs/models/gethomedataresponsebody.md b/docs/sdk/models/operations/gethomedataresponsebody.md similarity index 93% rename from docs/models/gethomedataresponsebody.md rename to docs/sdk/models/operations/gethomedataresponsebody.md index 862c98ec..31332c19 100644 --- a/docs/models/gethomedataresponsebody.md +++ b/docs/sdk/models/operations/gethomedataresponsebody.md @@ -5,7 +5,7 @@ Home Data ## Example Usage ```typescript -import { GetHomeDataResponseBody } from "@lukehagar/plexjs"; +import { GetHomeDataResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetHomeDataResponseBody = { id: 1841489, diff --git a/docs/models/getlibrarydetailsdirectory.md b/docs/sdk/models/operations/getlibrarydetailsdirectory.md similarity index 92% rename from docs/models/getlibrarydetailsdirectory.md rename to docs/sdk/models/operations/getlibrarydetailsdirectory.md index fc990273..a9bbc725 100644 --- a/docs/models/getlibrarydetailsdirectory.md +++ b/docs/sdk/models/operations/getlibrarydetailsdirectory.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsDirectory } from "@lukehagar/plexjs"; +import { GetLibraryDetailsDirectory } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryDetailsDirectory = { key: "search?type=1", diff --git a/docs/models/getlibrarydetailsfilter.md b/docs/sdk/models/operations/getlibrarydetailsfilter.md similarity index 93% rename from docs/models/getlibrarydetailsfilter.md rename to docs/sdk/models/operations/getlibrarydetailsfilter.md index 43ea6e4f..1061b2ca 100644 --- a/docs/models/getlibrarydetailsfilter.md +++ b/docs/sdk/models/operations/getlibrarydetailsfilter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsFilter } from "@lukehagar/plexjs"; +import { GetLibraryDetailsFilter } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryDetailsFilter = { filter: "label", diff --git a/docs/sdk/models/operations/getlibrarydetailsmediacontainer.md b/docs/sdk/models/operations/getlibrarydetailsmediacontainer.md new file mode 100644 index 00000000..50439bd2 --- /dev/null +++ b/docs/sdk/models/operations/getlibrarydetailsmediacontainer.md @@ -0,0 +1,97 @@ +# GetLibraryDetailsMediaContainer + +## Example Usage + +```typescript +import { GetLibraryDetailsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetLibraryDetailsMediaContainer = { + 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: [ + { + key: "search?type=1", + title: "Search...", + secondary: true, + prompt: "Search Movies", + search: true, + }, + ], + type: [ + { + key: "/library/sections/1/all?type=1", + type: "movie", + title: "Movies", + active: false, + filter: [ + { + filter: "label", + filterType: "string", + key: "/library/sections/1/label", + title: "Labels", + type: "filter", + }, + ], + sort: [ + { + default: "asc", + defaultDirection: "desc", + descKey: "random:desc", + firstCharacterKey: "/library/sections/1/firstCharacter", + key: "random", + title: "Randomly", + }, + ], + field: [ + { + key: "label", + title: "Label", + type: "tag", + subType: "bitrate", + }, + ], + }, + ], + fieldType: [ + { + type: "resolution", + operator: [ + { + key: "=", + title: "is", + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 29 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | false | +| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `content` | *string* | :heavy_minus_sign: | N/A | secondary | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1701731894 | +| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `title1` | *string* | :heavy_minus_sign: | N/A | Movies | +| `viewGroup` | *string* | :heavy_minus_sign: | N/A | secondary | +| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 | +| `directory` | [operations.GetLibraryDetailsDirectory](../../../sdk/models/operations/getlibrarydetailsdirectory.md)[] | :heavy_minus_sign: | N/A | | +| `type` | [operations.GetLibraryDetailsType](../../../sdk/models/operations/getlibrarydetailstype.md)[] | :heavy_minus_sign: | N/A | | +| `fieldType` | [operations.FieldType](../../../sdk/models/operations/fieldtype.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibrarydetailsrequest.md b/docs/sdk/models/operations/getlibrarydetailsrequest.md similarity index 94% rename from docs/models/getlibrarydetailsrequest.md rename to docs/sdk/models/operations/getlibrarydetailsrequest.md index 84397010..08cb5be4 100644 --- a/docs/models/getlibrarydetailsrequest.md +++ b/docs/sdk/models/operations/getlibrarydetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsRequest } from "@lukehagar/plexjs"; +import { GetLibraryDetailsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryDetailsRequest = { sectionKey: 9518, @@ -15,4 +15,4 @@ let value: GetLibraryDetailsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | -| `includeDetails` | [models.IncludeDetails](../models/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | \ No newline at end of file +| `includeDetails` | [operations.IncludeDetails](../../../sdk/models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | \ No newline at end of file diff --git a/docs/models/getlibrarydetailsresponse.md b/docs/sdk/models/operations/getlibrarydetailsresponse.md similarity index 56% rename from docs/models/getlibrarydetailsresponse.md rename to docs/sdk/models/operations/getlibrarydetailsresponse.md index 82fd685b..310f0997 100644 --- a/docs/models/getlibrarydetailsresponse.md +++ b/docs/sdk/models/operations/getlibrarydetailsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryDetailsResponse } from "@lukehagar/plexjs"; +import { GetLibraryDetailsResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryDetailsResponse = { contentType: "", @@ -87,9 +87,9 @@ let value: GetLibraryDetailsResponse = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetLibraryDetailsResponseBody](../models/getlibrarydetailsresponsebody.md) | :heavy_minus_sign: | The details of the library | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetLibraryDetailsResponseBody](../../../sdk/models/operations/getlibrarydetailsresponsebody.md) | :heavy_minus_sign: | The details of the library | \ No newline at end of file diff --git a/docs/models/getlibrarydetailsresponsebody.md b/docs/sdk/models/operations/getlibrarydetailsresponsebody.md similarity index 72% rename from docs/models/getlibrarydetailsresponsebody.md rename to docs/sdk/models/operations/getlibrarydetailsresponsebody.md index 1ed74b72..5aedeb9d 100644 --- a/docs/models/getlibrarydetailsresponsebody.md +++ b/docs/sdk/models/operations/getlibrarydetailsresponsebody.md @@ -5,7 +5,7 @@ The details of the library ## Example Usage ```typescript -import { GetLibraryDetailsResponseBody } from "@lukehagar/plexjs"; +import { GetLibraryDetailsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryDetailsResponseBody = { mediaContainer: { @@ -82,6 +82,6 @@ let value: GetLibraryDetailsResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetLibraryDetailsMediaContainer](../models/getlibrarydetailsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetLibraryDetailsMediaContainer](../../../sdk/models/operations/getlibrarydetailsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibrarydetailstype.md b/docs/sdk/models/operations/getlibrarydetailstype.md new file mode 100644 index 00000000..34f13450 --- /dev/null +++ b/docs/sdk/models/operations/getlibrarydetailstype.md @@ -0,0 +1,53 @@ +# GetLibraryDetailsType + +## Example Usage + +```typescript +import { GetLibraryDetailsType } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetLibraryDetailsType = { + key: "/library/sections/1/all?type=1", + type: "movie", + title: "Movies", + active: false, + filter: [ + { + filter: "label", + filterType: "string", + key: "/library/sections/1/label", + title: "Labels", + type: "filter", + }, + ], + sort: [ + { + default: "asc", + defaultDirection: "desc", + descKey: "random:desc", + firstCharacterKey: "/library/sections/1/firstCharacter", + key: "random", + title: "Randomly", + }, + ], + field: [ + { + key: "label", + title: "Label", + type: "tag", + subType: "bitrate", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `key` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | +| `type` | *string* | :heavy_minus_sign: | N/A | movie | +| `title` | *string* | :heavy_minus_sign: | N/A | Movies | +| `active` | *boolean* | :heavy_minus_sign: | N/A | false | +| `filter` | [operations.GetLibraryDetailsFilter](../../../sdk/models/operations/getlibrarydetailsfilter.md)[] | :heavy_minus_sign: | N/A | | +| `sort` | [operations.Sort](../../../sdk/models/operations/sort.md)[] | :heavy_minus_sign: | N/A | | +| `field` | [operations.Field](../../../sdk/models/operations/field.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryhubscountry.md b/docs/sdk/models/operations/getlibraryhubscountry.md similarity index 87% rename from docs/models/getlibraryhubscountry.md rename to docs/sdk/models/operations/getlibraryhubscountry.md index 8a1b9e42..804a1b12 100644 --- a/docs/models/getlibraryhubscountry.md +++ b/docs/sdk/models/operations/getlibraryhubscountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsCountry } from "@lukehagar/plexjs"; +import { GetLibraryHubsCountry } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsCountry = { tag: "United States of America", diff --git a/docs/models/getlibraryhubsdirector.md b/docs/sdk/models/operations/getlibraryhubsdirector.md similarity index 84% rename from docs/models/getlibraryhubsdirector.md rename to docs/sdk/models/operations/getlibraryhubsdirector.md index f057dac0..2778c516 100644 --- a/docs/models/getlibraryhubsdirector.md +++ b/docs/sdk/models/operations/getlibraryhubsdirector.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsDirector } from "@lukehagar/plexjs"; +import { GetLibraryHubsDirector } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsDirector = { tag: "Nathan Greno", diff --git a/docs/models/getlibraryhubsgenre.md b/docs/sdk/models/operations/getlibraryhubsgenre.md similarity index 85% rename from docs/models/getlibraryhubsgenre.md rename to docs/sdk/models/operations/getlibraryhubsgenre.md index b828adae..f617265f 100644 --- a/docs/models/getlibraryhubsgenre.md +++ b/docs/sdk/models/operations/getlibraryhubsgenre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsGenre } from "@lukehagar/plexjs"; +import { GetLibraryHubsGenre } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsGenre = { tag: "Animation", diff --git a/docs/sdk/models/operations/getlibraryhubshub.md b/docs/sdk/models/operations/getlibraryhubshub.md new file mode 100644 index 00000000..dc1f8da6 --- /dev/null +++ b/docs/sdk/models/operations/getlibraryhubshub.md @@ -0,0 +1,131 @@ +# GetLibraryHubsHub + +## Example Usage + +```typescript +import { GetLibraryHubsHub } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; + +let value: GetLibraryHubsHub = { + key: "/library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0", + title: "Recently Played Movies", + type: "movie", + hubIdentifier: "movie.recentlyviewed.1", + context: "hub.movie.recentlyviewed", + size: 6, + more: true, + style: "shelf", + hubKey: "/library/metadata/66485,66098,57249,11449,5858,14944", + metadata: [ + { + ratingKey: "14944", + key: "/library/metadata/14944", + guid: "plex://movie/5d77686eeb5d26001f1eb339", + studio: "Walt Disney Animation Studios", + type: "movie", + title: "Tangled", + librarySectionTitle: "Movies", + librarySectionID: 1, + librarySectionKey: "/library/sections/1", + contentRating: "PG", + summary: + "The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is.", + rating: 8.9, + audienceRating: 8.7, + viewCount: 1, + lastViewedAt: 1704936047, + year: 2010, + tagline: "They're taking adventure to new lengths.", + thumb: "/library/metadata/14944/thumb/1705739847", + art: "/library/metadata/14944/art/1705739847", + duration: 6017237, + originallyAvailableAt: new RFCDate("2010-11-24T00:00:00Z"), + addedAt: 1589412494, + updatedAt: 1705739847, + audienceRatingImage: "rottentomatoes://image.rating.upright", + primaryExtraKey: "/library/metadata/14952", + ratingImage: "rottentomatoes://image.rating.ripe", + media: [ + { + id: 38247, + duration: 6017237, + bitrate: 2051, + width: 1920, + height: 1080, + aspectRatio: 1.78, + audioChannels: 2, + audioCodec: "aac", + videoCodec: "h264", + videoResolution: "1080", + container: "mp4", + videoFrameRate: "24p", + optimizedForStreaming: 1, + audioProfile: "lc", + has64bitOffsets: false, + videoProfile: "high", + part: [ + { + id: 38247, + key: "/library/parts/38247/1589412494/file.mp4", + duration: 6017237, + file: "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4", + size: 1545647447, + audioProfile: "lc", + container: "mp4", + has64bitOffsets: false, + optimizedForStreaming: true, + videoProfile: "high", + }, + ], + }, + ], + genre: [ + { + tag: "Animation", + }, + ], + country: [ + { + tag: "United States of America", + }, + ], + director: [ + { + tag: "Nathan Greno", + }, + ], + role: [ + { + tag: "Donna Murphy", + }, + ], + writer: [ + { + tag: "Wilhelm Grimm", + }, + ], + skipCount: 1, + chapterSource: "media", + }, + ], + promoted: true, + random: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `key` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | +| `title` | *string* | :heavy_minus_sign: | N/A | Recently Played Movies | +| `type` | *string* | :heavy_minus_sign: | N/A | movie | +| `hubIdentifier` | *string* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | +| `context` | *string* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | +| `size` | *number* | :heavy_minus_sign: | N/A | 6 | +| `more` | *boolean* | :heavy_minus_sign: | N/A | true | +| `style` | *string* | :heavy_minus_sign: | N/A | shelf | +| `hubKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | +| `metadata` | [operations.GetLibraryHubsMetadata](../../../sdk/models/operations/getlibraryhubsmetadata.md)[] | :heavy_minus_sign: | N/A | | +| `promoted` | *boolean* | :heavy_minus_sign: | N/A | true | +| `random` | *boolean* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryhubsmedia.md b/docs/sdk/models/operations/getlibraryhubsmedia.md new file mode 100644 index 00000000..e043cb0f --- /dev/null +++ b/docs/sdk/models/operations/getlibraryhubsmedia.md @@ -0,0 +1,62 @@ +# GetLibraryHubsMedia + +## Example Usage + +```typescript +import { GetLibraryHubsMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetLibraryHubsMedia = { + id: 38247, + duration: 6017237, + bitrate: 2051, + width: 1920, + height: 1080, + aspectRatio: 1.78, + audioChannels: 2, + audioCodec: "aac", + videoCodec: "h264", + videoResolution: "1080", + container: "mp4", + videoFrameRate: "24p", + optimizedForStreaming: 1, + audioProfile: "lc", + has64bitOffsets: false, + videoProfile: "high", + part: [ + { + id: 38247, + key: "/library/parts/38247/1589412494/file.mp4", + duration: 6017237, + file: "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4", + size: 1545647447, + audioProfile: "lc", + container: "mp4", + has64bitOffsets: false, + optimizedForStreaming: true, + videoProfile: "high", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 38247 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 6017237 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 2051 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *number* | :heavy_minus_sign: | N/A | 1080 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.78 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 1 | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | +| `part` | [operations.GetLibraryHubsPart](../../../sdk/models/operations/getlibraryhubspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryhubsmediacontainer.md b/docs/sdk/models/operations/getlibraryhubsmediacontainer.md similarity index 54% rename from docs/models/getlibraryhubsmediacontainer.md rename to docs/sdk/models/operations/getlibraryhubsmediacontainer.md index 95f80420..5bfe969c 100644 --- a/docs/models/getlibraryhubsmediacontainer.md +++ b/docs/sdk/models/operations/getlibraryhubsmediacontainer.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryHubsMediaContainer } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryHubsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryHubsMediaContainer = { size: 7, @@ -125,12 +125,12 @@ let value: GetLibraryHubsMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | 7 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `hub` | [models.GetLibraryHubsHub](../models/getlibraryhubshub.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 7 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `hub` | [operations.GetLibraryHubsHub](../../../sdk/models/operations/getlibraryhubshub.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryhubsmetadata.md b/docs/sdk/models/operations/getlibraryhubsmetadata.md similarity index 97% rename from docs/models/getlibraryhubsmetadata.md rename to docs/sdk/models/operations/getlibraryhubsmetadata.md index adaa70f3..19ae6016 100644 --- a/docs/models/getlibraryhubsmetadata.md +++ b/docs/sdk/models/operations/getlibraryhubsmetadata.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryHubsMetadata } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryHubsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryHubsMetadata = { ratingKey: "14944", @@ -122,17 +122,17 @@ let value: GetLibraryHubsMetadata = { | `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/14944/thumb/1705739847 | | `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/14944/art/1705739847 | | `duration` | *number* | :heavy_minus_sign: | N/A | 6017237 | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2010-11-24 00:00:00 +0000 UTC | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2010-11-24 00:00:00 +0000 UTC | | `addedAt` | *number* | :heavy_minus_sign: | N/A | 1589412494 | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1705739847 | | `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | | `primaryExtraKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/14952 | | `ratingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | [models.GetLibraryHubsMedia](../models/getlibraryhubsmedia.md)[] | :heavy_minus_sign: | N/A | | -| `genre` | [models.GetLibraryHubsGenre](../models/getlibraryhubsgenre.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.GetLibraryHubsCountry](../models/getlibraryhubscountry.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [models.GetLibraryHubsDirector](../models/getlibraryhubsdirector.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.GetLibraryHubsRole](../models/getlibraryhubsrole.md)[] | :heavy_minus_sign: | N/A | | -| `writer` | [models.GetLibraryHubsWriter](../models/getlibraryhubswriter.md)[] | :heavy_minus_sign: | N/A | | +| `media` | [operations.GetLibraryHubsMedia](../../../sdk/models/operations/getlibraryhubsmedia.md)[] | :heavy_minus_sign: | N/A | | +| `genre` | [operations.GetLibraryHubsGenre](../../../sdk/models/operations/getlibraryhubsgenre.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.GetLibraryHubsCountry](../../../sdk/models/operations/getlibraryhubscountry.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [operations.GetLibraryHubsDirector](../../../sdk/models/operations/getlibraryhubsdirector.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.GetLibraryHubsRole](../../../sdk/models/operations/getlibraryhubsrole.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [operations.GetLibraryHubsWriter](../../../sdk/models/operations/getlibraryhubswriter.md)[] | :heavy_minus_sign: | N/A | | | `skipCount` | *number* | :heavy_minus_sign: | N/A | 1 | | `chapterSource` | *string* | :heavy_minus_sign: | N/A | media | \ No newline at end of file diff --git a/docs/models/getlibraryhubspart.md b/docs/sdk/models/operations/getlibraryhubspart.md similarity index 98% rename from docs/models/getlibraryhubspart.md rename to docs/sdk/models/operations/getlibraryhubspart.md index 8adfbd38..2ea59349 100644 --- a/docs/models/getlibraryhubspart.md +++ b/docs/sdk/models/operations/getlibraryhubspart.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsPart } from "@lukehagar/plexjs"; +import { GetLibraryHubsPart } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsPart = { id: 38247, diff --git a/docs/models/getlibraryhubsrequest.md b/docs/sdk/models/operations/getlibraryhubsrequest.md similarity index 93% rename from docs/models/getlibraryhubsrequest.md rename to docs/sdk/models/operations/getlibraryhubsrequest.md index 1a70baae..96311f31 100644 --- a/docs/models/getlibraryhubsrequest.md +++ b/docs/sdk/models/operations/getlibraryhubsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsRequest } from "@lukehagar/plexjs"; +import { GetLibraryHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsRequest = { sectionId: 2223.21, @@ -16,4 +16,4 @@ let value: GetLibraryHubsRequest = { | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query | | `count` | *number* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [models.QueryParamOnlyTransient](../models/queryparamonlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file +| `onlyTransient` | [operations.QueryParamOnlyTransient](../../../sdk/models/operations/queryparamonlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file diff --git a/docs/models/getlibraryhubsresponse.md b/docs/sdk/models/operations/getlibraryhubsresponse.md similarity index 74% rename from docs/models/getlibraryhubsresponse.md rename to docs/sdk/models/operations/getlibraryhubsresponse.md index 519c00f2..6c7998c7 100644 --- a/docs/models/getlibraryhubsresponse.md +++ b/docs/sdk/models/operations/getlibraryhubsresponse.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryHubsResponse } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryHubsResponse } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryHubsResponse = { contentType: "", @@ -134,9 +134,9 @@ let value: GetLibraryHubsResponse = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetLibraryHubsResponseBody](../models/getlibraryhubsresponsebody.md) | :heavy_minus_sign: | The hubs specific to the library | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetLibraryHubsResponseBody](../../../sdk/models/operations/getlibraryhubsresponsebody.md) | :heavy_minus_sign: | The hubs specific to the library | \ No newline at end of file diff --git a/docs/models/getlibraryhubsresponsebody.md b/docs/sdk/models/operations/getlibraryhubsresponsebody.md similarity index 83% rename from docs/models/getlibraryhubsresponsebody.md rename to docs/sdk/models/operations/getlibraryhubsresponsebody.md index c0d8d7fd..904f9234 100644 --- a/docs/models/getlibraryhubsresponsebody.md +++ b/docs/sdk/models/operations/getlibraryhubsresponsebody.md @@ -5,8 +5,8 @@ The hubs specific to the library ## Example Usage ```typescript -import { GetLibraryHubsResponseBody } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryHubsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryHubsResponseBody = { mediaContainer: { @@ -129,6 +129,6 @@ let value: GetLibraryHubsResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetLibraryHubsMediaContainer](../models/getlibraryhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetLibraryHubsMediaContainer](../../../sdk/models/operations/getlibraryhubsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getlibraryhubsrole.md b/docs/sdk/models/operations/getlibraryhubsrole.md similarity index 85% rename from docs/models/getlibraryhubsrole.md rename to docs/sdk/models/operations/getlibraryhubsrole.md index 0fb2b10a..706a1480 100644 --- a/docs/models/getlibraryhubsrole.md +++ b/docs/sdk/models/operations/getlibraryhubsrole.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsRole } from "@lukehagar/plexjs"; +import { GetLibraryHubsRole } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsRole = { tag: "Donna Murphy", diff --git a/docs/models/getlibraryhubswriter.md b/docs/sdk/models/operations/getlibraryhubswriter.md similarity index 85% rename from docs/models/getlibraryhubswriter.md rename to docs/sdk/models/operations/getlibraryhubswriter.md index 91017838..5235dfac 100644 --- a/docs/models/getlibraryhubswriter.md +++ b/docs/sdk/models/operations/getlibraryhubswriter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryHubsWriter } from "@lukehagar/plexjs"; +import { GetLibraryHubsWriter } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryHubsWriter = { tag: "Wilhelm Grimm", diff --git a/docs/models/getlibraryitemscountry.md b/docs/sdk/models/operations/getlibraryitemscountry.md similarity index 87% rename from docs/models/getlibraryitemscountry.md rename to docs/sdk/models/operations/getlibraryitemscountry.md index 48b4a5e4..cec8485d 100644 --- a/docs/models/getlibraryitemscountry.md +++ b/docs/sdk/models/operations/getlibraryitemscountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsCountry } from "@lukehagar/plexjs"; +import { GetLibraryItemsCountry } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsCountry = { tag: "United States of America", diff --git a/docs/models/getlibraryitemsdirector.md b/docs/sdk/models/operations/getlibraryitemsdirector.md similarity index 84% rename from docs/models/getlibraryitemsdirector.md rename to docs/sdk/models/operations/getlibraryitemsdirector.md index 8aa13831..30412f87 100644 --- a/docs/models/getlibraryitemsdirector.md +++ b/docs/sdk/models/operations/getlibraryitemsdirector.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsDirector } from "@lukehagar/plexjs"; +import { GetLibraryItemsDirector } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsDirector = { tag: "James Cameron", diff --git a/docs/models/getlibraryitemsgenre.md b/docs/sdk/models/operations/getlibraryitemsgenre.md similarity index 85% rename from docs/models/getlibraryitemsgenre.md rename to docs/sdk/models/operations/getlibraryitemsgenre.md index 7b4c4c0e..1b1a5c9b 100644 --- a/docs/models/getlibraryitemsgenre.md +++ b/docs/sdk/models/operations/getlibraryitemsgenre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsGenre } from "@lukehagar/plexjs"; +import { GetLibraryItemsGenre } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsGenre = { tag: "Adventure", diff --git a/docs/sdk/models/operations/getlibraryitemsmedia.md b/docs/sdk/models/operations/getlibraryitemsmedia.md new file mode 100644 index 00000000..8b7499b3 --- /dev/null +++ b/docs/sdk/models/operations/getlibraryitemsmedia.md @@ -0,0 +1,53 @@ +# GetLibraryItemsMedia + +## Example Usage + +```typescript +import { GetLibraryItemsMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetLibraryItemsMedia = { + id: 119534, + duration: 11558112, + bitrate: 25025, + width: 3840, + height: 2072, + aspectRatio: 1.85, + audioChannels: 6, + audioCodec: "eac3", + videoCodec: "hevc", + videoResolution: "4k", + container: "mkv", + videoFrameRate: "24p", + videoProfile: "main 10", + part: [ + { + id: 119542, + key: "/library/parts/119542/1680457526/file.mkv", + duration: 11558112, + file: "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", + size: 36158371307, + container: "mkv", + videoProfile: "main 10", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 119534 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 25025 | +| `width` | *number* | :heavy_minus_sign: | N/A | 3840 | +| `height` | *number* | :heavy_minus_sign: | N/A | 2072 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.85 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | eac3 | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 4k | +| `container` | *string* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 | +| `part` | [operations.GetLibraryItemsPart](../../../sdk/models/operations/getlibraryitemspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryitemsmediacontainer.md b/docs/sdk/models/operations/getlibraryitemsmediacontainer.md new file mode 100644 index 00000000..8f3c5f96 --- /dev/null +++ b/docs/sdk/models/operations/getlibraryitemsmediacontainer.md @@ -0,0 +1,155 @@ +# GetLibraryItemsMediaContainer + +## Example Usage + +```typescript +import { GetLibraryItemsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; + +let value: GetLibraryItemsMediaContainer = { + 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: [ + { + ratingKey: "58683", + key: "/library/metadata/58683", + guid: "plex://movie/5d7768ba96b655001fdc0408", + studio: "20th Century Studios", + type: "movie", + title: "Avatar: The Way of Water", + contentRating: "PG-13", + summary: + "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.", + rating: 7.6, + audienceRating: 9.2, + year: 2022, + tagline: "Return to Pandora.", + thumb: "/library/metadata/58683/thumb/1703239236", + art: "/library/metadata/58683/art/1703239236", + duration: 11558112, + originallyAvailableAt: new RFCDate("2022-12-14T00:00:00Z"), + addedAt: 1680457607, + updatedAt: 1703239236, + audienceRatingImage: "rottentomatoes://image.rating.upright", + chapterSource: "media", + primaryExtraKey: "/library/metadata/58684", + ratingImage: "rottentomatoes://image.rating.ripe", + grandparentRatingKey: "66", + grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4", + grandparentKey: "/library/metadata/66", + grandparentTitle: "Caprica", + grandparentThumb: "/library/metadata/66/thumb/1705716261", + grandparentArt: "/library/metadata/66/art/1705716261", + grandparentTheme: "/library/metadata/66/theme/1705716261", + media: [ + { + id: 119534, + duration: 11558112, + bitrate: 25025, + width: 3840, + height: 2072, + aspectRatio: 1.85, + audioChannels: 6, + audioCodec: "eac3", + videoCodec: "hevc", + videoResolution: "4k", + container: "mkv", + videoFrameRate: "24p", + videoProfile: "main 10", + part: [ + { + id: 119542, + key: "/library/parts/119542/1680457526/file.mkv", + duration: 11558112, + file: "/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv", + size: 36158371307, + container: "mkv", + videoProfile: "main 10", + }, + ], + }, + ], + genre: [ + { + tag: "Adventure", + }, + ], + country: [ + { + tag: "United States of America", + }, + ], + director: [ + { + tag: "James Cameron", + }, + ], + writer: [ + { + tag: "James Cameron", + }, + ], + role: [ + { + tag: "Sigourney Weaver", + }, + ], + titleSort: "Whale", + viewCount: 1, + lastViewedAt: 1682752242, + originalTitle: "映画 ブラッククローバー 魔法帝の剣", + viewOffset: 5222500, + skipCount: 1, + index: 1, + theme: "/library/metadata/1/theme/1705636920", + leafCount: 14, + viewedLeafCount: 0, + childCount: 1, + hasPremiumExtras: "1", + hasPremiumPrimaryExtra: "1", + parentRatingKey: "66", + parentGuid: "plex://show/5d9c081b170e24001f2a7be4", + parentStudio: "UCP", + parentKey: "/library/metadata/66", + parentTitle: "Caprica", + parentIndex: 1, + parentYear: 2010, + parentThumb: "/library/metadata/66/thumb/1705716261", + parentTheme: "/library/metadata/66/theme/1705716261", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 70 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | +| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *operations.LibrarySectionID* | :heavy_minus_sign: | N/A | | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1701731894 | +| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `title1` | *string* | :heavy_minus_sign: | N/A | Movies | +| `title2` | *string* | :heavy_minus_sign: | N/A | Recently Released | +| `viewGroup` | *string* | :heavy_minus_sign: | N/A | movie | +| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 | +| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true | +| `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getlibraryitemsmetadata.md b/docs/sdk/models/operations/getlibraryitemsmetadata.md similarity index 98% rename from docs/models/getlibraryitemsmetadata.md rename to docs/sdk/models/operations/getlibraryitemsmetadata.md index 740c0b96..7d00ede9 100644 --- a/docs/models/getlibraryitemsmetadata.md +++ b/docs/sdk/models/operations/getlibraryitemsmetadata.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryItemsMetadata } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryItemsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryItemsMetadata = { ratingKey: "58683", @@ -134,7 +134,7 @@ let value: GetLibraryItemsMetadata = { | `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 | | `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 | | `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC | | `addedAt` | *number* | :heavy_minus_sign: | N/A | 1680457607 | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1703239236 | | `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | @@ -148,12 +148,12 @@ let value: GetLibraryItemsMetadata = { | `grandparentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | | `grandparentArt` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 | | `grandparentTheme` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | -| `media` | [models.GetLibraryItemsMedia](../models/getlibraryitemsmedia.md)[] | :heavy_minus_sign: | N/A | | -| `genre` | [models.GetLibraryItemsGenre](../models/getlibraryitemsgenre.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.GetLibraryItemsCountry](../models/getlibraryitemscountry.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [models.GetLibraryItemsDirector](../models/getlibraryitemsdirector.md)[] | :heavy_minus_sign: | N/A | | -| `writer` | [models.GetLibraryItemsWriter](../models/getlibraryitemswriter.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.GetLibraryItemsRole](../models/getlibraryitemsrole.md)[] | :heavy_minus_sign: | N/A | | +| `media` | [operations.GetLibraryItemsMedia](../../../sdk/models/operations/getlibraryitemsmedia.md)[] | :heavy_minus_sign: | N/A | | +| `genre` | [operations.GetLibraryItemsGenre](../../../sdk/models/operations/getlibraryitemsgenre.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.GetLibraryItemsCountry](../../../sdk/models/operations/getlibraryitemscountry.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [operations.GetLibraryItemsDirector](../../../sdk/models/operations/getlibraryitemsdirector.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [operations.GetLibraryItemsWriter](../../../sdk/models/operations/getlibraryitemswriter.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.GetLibraryItemsRole](../../../sdk/models/operations/getlibraryitemsrole.md)[] | :heavy_minus_sign: | N/A | | | `titleSort` | *string* | :heavy_minus_sign: | N/A | Whale | | `viewCount` | *number* | :heavy_minus_sign: | N/A | 1 | | `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1682752242 | diff --git a/docs/models/getlibraryitemspart.md b/docs/sdk/models/operations/getlibraryitemspart.md similarity index 98% rename from docs/models/getlibraryitemspart.md rename to docs/sdk/models/operations/getlibraryitemspart.md index b1c6335d..1fb642fa 100644 --- a/docs/models/getlibraryitemspart.md +++ b/docs/sdk/models/operations/getlibraryitemspart.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsPart } from "@lukehagar/plexjs"; +import { GetLibraryItemsPart } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsPart = { id: 119542, diff --git a/docs/models/getlibraryitemsrequest.md b/docs/sdk/models/operations/getlibraryitemsrequest.md similarity index 92% rename from docs/models/getlibraryitemsrequest.md rename to docs/sdk/models/operations/getlibraryitemsrequest.md index 4c792abd..5752035e 100644 --- a/docs/models/getlibraryitemsrequest.md +++ b/docs/sdk/models/operations/getlibraryitemsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsRequest, IncludeGuids, IncludeMeta, Tag, Type } from "@lukehagar/plexjs"; +import { GetLibraryItemsRequest, IncludeGuids, IncludeMeta, Tag, Type } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsRequest = { sectionKey: 9518, @@ -21,9 +21,9 @@ let value: GetLibraryItemsRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | -| `tag` | [models.Tag](../models/tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | -| `includeGuids` | [models.IncludeGuids](../models/includeguids.md) | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | -| `includeMeta` | [models.IncludeMeta](../models/includemeta.md) | :heavy_minus_sign: | Adds the Meta object to the response
| 1 | -| `type` | [models.Type](../models/type.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `tag` | [operations.Tag](../../../sdk/models/operations/tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | +| `includeGuids` | [operations.IncludeGuids](../../../sdk/models/operations/includeguids.md) | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | +| `includeMeta` | [operations.IncludeMeta](../../../sdk/models/operations/includemeta.md) | :heavy_minus_sign: | Adds the Meta object to the response
| 1 | +| `type` | [operations.Type](../../../sdk/models/operations/type.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | | `xPlexContainerStart` | *number* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 0
| 0 | | `xPlexContainerSize` | *number* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 50
| 50 | \ No newline at end of file diff --git a/docs/models/getlibraryitemsresponse.md b/docs/sdk/models/operations/getlibraryitemsresponse.md similarity index 75% rename from docs/models/getlibraryitemsresponse.md rename to docs/sdk/models/operations/getlibraryitemsresponse.md index d1431883..beb9cf06 100644 --- a/docs/models/getlibraryitemsresponse.md +++ b/docs/sdk/models/operations/getlibraryitemsresponse.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetLibraryItemsResponse } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryItemsResponse } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryItemsResponse = { contentType: "", @@ -144,9 +144,9 @@ let value: GetLibraryItemsResponse = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetLibraryItemsResponseBody](../models/getlibraryitemsresponsebody.md) | :heavy_minus_sign: | The contents of the library by section and tag | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetLibraryItemsResponseBody](../../../sdk/models/operations/getlibraryitemsresponsebody.md) | :heavy_minus_sign: | The contents of the library by section and tag | \ No newline at end of file diff --git a/docs/models/getlibraryitemsresponsebody.md b/docs/sdk/models/operations/getlibraryitemsresponsebody.md similarity index 81% rename from docs/models/getlibraryitemsresponsebody.md rename to docs/sdk/models/operations/getlibraryitemsresponsebody.md index 2e02accf..f11c1cec 100644 --- a/docs/models/getlibraryitemsresponsebody.md +++ b/docs/sdk/models/operations/getlibraryitemsresponsebody.md @@ -5,8 +5,8 @@ The contents of the library by section and tag ## Example Usage ```typescript -import { GetLibraryItemsResponseBody } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetLibraryItemsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetLibraryItemsResponseBody = { mediaContainer: { @@ -139,6 +139,6 @@ let value: GetLibraryItemsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetLibraryItemsMediaContainer](../models/getlibraryitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetLibraryItemsMediaContainer](../../../sdk/models/operations/getlibraryitemsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getlibraryitemsrole.md b/docs/sdk/models/operations/getlibraryitemsrole.md similarity index 85% rename from docs/models/getlibraryitemsrole.md rename to docs/sdk/models/operations/getlibraryitemsrole.md index b832eb09..fcc996cd 100644 --- a/docs/models/getlibraryitemsrole.md +++ b/docs/sdk/models/operations/getlibraryitemsrole.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsRole } from "@lukehagar/plexjs"; +import { GetLibraryItemsRole } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsRole = { tag: "Sigourney Weaver", diff --git a/docs/models/getlibraryitemswriter.md b/docs/sdk/models/operations/getlibraryitemswriter.md similarity index 85% rename from docs/models/getlibraryitemswriter.md rename to docs/sdk/models/operations/getlibraryitemswriter.md index c0c89738..b564e179 100644 --- a/docs/models/getlibraryitemswriter.md +++ b/docs/sdk/models/operations/getlibraryitemswriter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLibraryItemsWriter } from "@lukehagar/plexjs"; +import { GetLibraryItemsWriter } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsWriter = { tag: "James Cameron", diff --git a/docs/sdk/models/operations/getmediaprovidersdirectory.md b/docs/sdk/models/operations/getmediaprovidersdirectory.md new file mode 100644 index 00000000..20250666 --- /dev/null +++ b/docs/sdk/models/operations/getmediaprovidersdirectory.md @@ -0,0 +1,28 @@ +# GetMediaProvidersDirectory + +## Example Usage + +```typescript +import { GetMediaProvidersDirectory } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMediaProvidersDirectory = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `hubKey` | *string* | :heavy_minus_sign: | N/A | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `agent` | *string* | :heavy_minus_sign: | N/A | +| `language` | *string* | :heavy_minus_sign: | N/A | +| `refreshing` | *boolean* | :heavy_minus_sign: | N/A | +| `scanner` | *string* | :heavy_minus_sign: | N/A | +| `uuid` | *string* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `type` | *string* | :heavy_minus_sign: | N/A | +| `subtype` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `scannedAt` | *number* | :heavy_minus_sign: | N/A | +| `pivot` | [operations.Pivot](../../../sdk/models/operations/pivot.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmediaprovidersmediacontainer.md b/docs/sdk/models/operations/getmediaprovidersmediacontainer.md new file mode 100644 index 00000000..33f0e8cb --- /dev/null +++ b/docs/sdk/models/operations/getmediaprovidersmediacontainer.md @@ -0,0 +1,58 @@ +# GetMediaProvidersMediaContainer + +## Example Usage + +```typescript +import { GetMediaProvidersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMediaProvidersMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | +| `allowCameraUpload` | *boolean* | :heavy_minus_sign: | N/A | +| `allowChannelAccess` | *boolean* | :heavy_minus_sign: | N/A | +| `allowSharing` | *boolean* | :heavy_minus_sign: | N/A | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | +| `allowTuners` | *boolean* | :heavy_minus_sign: | N/A | +| `backgroundProcessing` | *boolean* | :heavy_minus_sign: | N/A | +| `certificate` | *boolean* | :heavy_minus_sign: | N/A | +| `companionProxy` | *boolean* | :heavy_minus_sign: | N/A | +| `countryCode` | *string* | :heavy_minus_sign: | N/A | +| `diagnostics` | *string* | :heavy_minus_sign: | N/A | +| `eventStream` | *boolean* | :heavy_minus_sign: | N/A | +| `friendlyName` | *string* | :heavy_minus_sign: | N/A | +| `livetv` | *number* | :heavy_minus_sign: | N/A | +| `machineIdentifier` | *string* | :heavy_minus_sign: | N/A | +| `musicAnalysis` | *number* | :heavy_minus_sign: | N/A | +| `myPlex` | *boolean* | :heavy_minus_sign: | N/A | +| `myPlexMappingState` | *string* | :heavy_minus_sign: | N/A | +| `myPlexSigninState` | *string* | :heavy_minus_sign: | N/A | +| `myPlexSubscription` | *boolean* | :heavy_minus_sign: | N/A | +| `myPlexUsername` | *string* | :heavy_minus_sign: | N/A | +| `offlineTranscode` | *number* | :heavy_minus_sign: | N/A | +| `ownerFeatures` | *string* | :heavy_minus_sign: | N/A | +| `platform` | *string* | :heavy_minus_sign: | N/A | +| `platformVersion` | *string* | :heavy_minus_sign: | N/A | +| `pluginHost` | *boolean* | :heavy_minus_sign: | N/A | +| `pushNotifications` | *boolean* | :heavy_minus_sign: | N/A | +| `readOnlyLibraries` | *boolean* | :heavy_minus_sign: | N/A | +| `streamingBrainABRVersion` | *number* | :heavy_minus_sign: | N/A | +| `streamingBrainVersion` | *number* | :heavy_minus_sign: | N/A | +| `sync` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderActiveVideoSessions` | *number* | :heavy_minus_sign: | N/A | +| `transcoderAudio` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderLyrics` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderSubtitles` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderVideo` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderVideoBitrates` | *string* | :heavy_minus_sign: | N/A | +| `transcoderVideoQualities` | *string* | :heavy_minus_sign: | N/A | +| `transcoderVideoResolutions` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `updater` | *boolean* | :heavy_minus_sign: | N/A | +| `version` | *string* | :heavy_minus_sign: | N/A | +| `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | +| `mediaProvider` | [operations.MediaProvider](../../../sdk/models/operations/mediaprovider.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getmediaprovidersrequest.md b/docs/sdk/models/operations/getmediaprovidersrequest.md similarity index 87% rename from docs/models/getmediaprovidersrequest.md rename to docs/sdk/models/operations/getmediaprovidersrequest.md index 7c942c71..ff1d92fc 100644 --- a/docs/models/getmediaprovidersrequest.md +++ b/docs/sdk/models/operations/getmediaprovidersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMediaProvidersRequest } from "@lukehagar/plexjs"; +import { GetMediaProvidersRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMediaProvidersRequest = { xPlexToken: "CV5xoxjTpFKUzBTShsaf", diff --git a/docs/sdk/models/operations/getmediaprovidersresponse.md b/docs/sdk/models/operations/getmediaprovidersresponse.md new file mode 100644 index 00000000..42b59360 --- /dev/null +++ b/docs/sdk/models/operations/getmediaprovidersresponse.md @@ -0,0 +1,24 @@ +# GetMediaProvidersResponse + +## Example Usage + +```typescript +import { GetMediaProvidersResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMediaProvidersResponse = { + contentType: "", + statusCode: 437587, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetMediaProvidersResponseBody](../../../sdk/models/operations/getmediaprovidersresponsebody.md) | :heavy_minus_sign: | Media providers and their features | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmediaprovidersresponsebody.md b/docs/sdk/models/operations/getmediaprovidersresponsebody.md new file mode 100644 index 00000000..8c2da6ab --- /dev/null +++ b/docs/sdk/models/operations/getmediaprovidersresponsebody.md @@ -0,0 +1,17 @@ +# GetMediaProvidersResponseBody + +Media providers and their features + +## Example Usage + +```typescript +import { GetMediaProvidersResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMediaProvidersResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetMediaProvidersMediaContainer](../../../sdk/models/operations/getmediaprovidersmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeycountry.md b/docs/sdk/models/operations/getmetadatabyratingkeycountry.md similarity index 97% rename from docs/models/getmetadatabyratingkeycountry.md rename to docs/sdk/models/operations/getmetadatabyratingkeycountry.md index a76ad183..a174fd0d 100644 --- a/docs/models/getmetadatabyratingkeycountry.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeycountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyCountry } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyCountry } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetaDataByRatingKeyCountry = { id: 116, diff --git a/docs/models/getmetadatabyratingkeydirector.md b/docs/sdk/models/operations/getmetadatabyratingkeydirector.md similarity index 99% rename from docs/models/getmetadatabyratingkeydirector.md rename to docs/sdk/models/operations/getmetadatabyratingkeydirector.md index c122ab65..86f7e758 100644 --- a/docs/models/getmetadatabyratingkeydirector.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeydirector.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyDirector } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyDirector } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetaDataByRatingKeyDirector = { id: 130, diff --git a/docs/models/getmetadatabyratingkeygenre.md b/docs/sdk/models/operations/getmetadatabyratingkeygenre.md similarity index 89% rename from docs/models/getmetadatabyratingkeygenre.md rename to docs/sdk/models/operations/getmetadatabyratingkeygenre.md index 021d9cdc..e743657d 100644 --- a/docs/models/getmetadatabyratingkeygenre.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeygenre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyGenre } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyGenre } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetaDataByRatingKeyGenre = { id: 184, diff --git a/docs/sdk/models/operations/getmetadatabyratingkeymedia.md b/docs/sdk/models/operations/getmetadatabyratingkeymedia.md new file mode 100644 index 00000000..566ef362 --- /dev/null +++ b/docs/sdk/models/operations/getmetadatabyratingkeymedia.md @@ -0,0 +1,98 @@ +# GetMetaDataByRatingKeyMedia + +## Example Usage + +```typescript +import { GetMetaDataByRatingKeyMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMetaDataByRatingKeyMedia = { + id: 15, + duration: 141417, + bitrate: 2278, + width: 1920, + height: 814, + aspectRatio: 2.35, + audioChannels: 2, + audioCodec: "aac", + videoCodec: "h264", + videoResolution: "1080", + container: "mp4", + videoFrameRate: "24p", + optimizedForStreaming: 0, + audioProfile: "lc", + has64bitOffsets: false, + videoProfile: "high", + part: [ + { + id: 15, + key: "/library/parts/15/1705637151/file.mp4", + duration: 141417, + file: "/movies/Serenity (2005)/Serenity (2005).mp4", + size: 40271948, + audioProfile: "lc", + container: "mp4", + has64bitOffsets: false, + optimizedForStreaming: false, + videoProfile: "high", + stream: [ + { + id: 29, + streamType: 2, + default: true, + codec: "aac", + index: 0, + bitrate: 128, + bitDepth: 8, + chromaLocation: "left", + chromaSubsampling: "14520", + codedHeight: 816, + codedWidth: 1920, + colorPrimaries: "bt709", + colorRange: "tv", + colorSpace: "bt709", + colorTrc: "bt709", + frameRate: 24, + hasScalingMatrix: false, + height: 814, + level: 40, + profile: "lc", + refFrames: 4, + scanType: "progressive", + streamIdentifier: "1", + width: 1920, + displayTitle: "English (AAC Stereo)", + extendedDisplayTitle: "English (AAC Stereo)", + selected: true, + channels: 2, + language: "English", + languageTag: "en", + languageCode: "eng", + samplingRate: 44100, + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 15 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 141417 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 2278 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *number* | :heavy_minus_sign: | N/A | 814 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 0 | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | +| `part` | [operations.GetMetaDataByRatingKeyPart](../../../sdk/models/operations/getmetadatabyratingkeypart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeymediacontainer.md b/docs/sdk/models/operations/getmetadatabyratingkeymediacontainer.md similarity index 60% rename from docs/models/getmetadatabyratingkeymediacontainer.md rename to docs/sdk/models/operations/getmetadatabyratingkeymediacontainer.md index 02165886..9aab0334 100644 --- a/docs/models/getmetadatabyratingkeymediacontainer.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeymediacontainer.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyMediaContainer } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetMetaDataByRatingKeyMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetMetaDataByRatingKeyMediaContainer = { size: 1, @@ -182,14 +182,14 @@ let value: GetMetaDataByRatingKeyMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *string* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1698860922 | -| `metadata` | [models.GetMetaDataByRatingKeyMetadata](../models/getmetadatabyratingkeymetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *string* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1698860922 | +| `metadata` | [operations.GetMetaDataByRatingKeyMetadata](../../../sdk/models/operations/getmetadatabyratingkeymetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeymetadata.md b/docs/sdk/models/operations/getmetadatabyratingkeymetadata.md similarity index 97% rename from docs/models/getmetadatabyratingkeymetadata.md rename to docs/sdk/models/operations/getmetadatabyratingkeymetadata.md index 95773d8e..6a203833 100644 --- a/docs/models/getmetadatabyratingkeymetadata.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeymetadata.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyMetadata } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetMetaDataByRatingKeyMetadata } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetMetaDataByRatingKeyMetadata = { ratingKey: "17", @@ -190,18 +190,18 @@ let value: GetMetaDataByRatingKeyMetadata = { | `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | | `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | | `duration` | *number* | :heavy_minus_sign: | N/A | 141417 | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | | `addedAt` | *number* | :heavy_minus_sign: | N/A | 1705637164 | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1705637165 | | `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | | `hasPremiumPrimaryExtra` | *string* | :heavy_minus_sign: | N/A | 1 | | `ratingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | [models.GetMetaDataByRatingKeyMedia](../models/getmetadatabyratingkeymedia.md)[] | :heavy_minus_sign: | N/A | | -| `genre` | [models.GetMetaDataByRatingKeyGenre](../models/getmetadatabyratingkeygenre.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.GetMetaDataByRatingKeyCountry](../models/getmetadatabyratingkeycountry.md)[] | :heavy_minus_sign: | N/A | | -| `guids` | [models.Guids](../models/guids.md)[] | :heavy_minus_sign: | N/A | | -| `ratings` | [models.Ratings](../models/ratings.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [models.GetMetaDataByRatingKeyDirector](../models/getmetadatabyratingkeydirector.md)[] | :heavy_minus_sign: | N/A | | -| `writer` | [models.GetMetaDataByRatingKeyWriter](../models/getmetadatabyratingkeywriter.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.GetMetaDataByRatingKeyRole](../models/getmetadatabyratingkeyrole.md)[] | :heavy_minus_sign: | N/A | | -| `producer` | [models.Producer](../models/producer.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | [operations.GetMetaDataByRatingKeyMedia](../../../sdk/models/operations/getmetadatabyratingkeymedia.md)[] | :heavy_minus_sign: | N/A | | +| `genre` | [operations.GetMetaDataByRatingKeyGenre](../../../sdk/models/operations/getmetadatabyratingkeygenre.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.GetMetaDataByRatingKeyCountry](../../../sdk/models/operations/getmetadatabyratingkeycountry.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [operations.Guids](../../../sdk/models/operations/guids.md)[] | :heavy_minus_sign: | N/A | | +| `ratings` | [operations.Ratings](../../../sdk/models/operations/ratings.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [operations.GetMetaDataByRatingKeyDirector](../../../sdk/models/operations/getmetadatabyratingkeydirector.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [operations.GetMetaDataByRatingKeyWriter](../../../sdk/models/operations/getmetadatabyratingkeywriter.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.GetMetaDataByRatingKeyRole](../../../sdk/models/operations/getmetadatabyratingkeyrole.md)[] | :heavy_minus_sign: | N/A | | +| `producer` | [operations.Producer](../../../sdk/models/operations/producer.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmetadatabyratingkeypart.md b/docs/sdk/models/operations/getmetadatabyratingkeypart.md new file mode 100644 index 00000000..9bcee6ad --- /dev/null +++ b/docs/sdk/models/operations/getmetadatabyratingkeypart.md @@ -0,0 +1,72 @@ +# GetMetaDataByRatingKeyPart + +## Example Usage + +```typescript +import { GetMetaDataByRatingKeyPart } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMetaDataByRatingKeyPart = { + id: 15, + key: "/library/parts/15/1705637151/file.mp4", + duration: 141417, + file: "/movies/Serenity (2005)/Serenity (2005).mp4", + size: 40271948, + audioProfile: "lc", + container: "mp4", + has64bitOffsets: false, + optimizedForStreaming: false, + videoProfile: "high", + stream: [ + { + id: 29, + streamType: 2, + default: true, + codec: "aac", + index: 0, + bitrate: 128, + bitDepth: 8, + chromaLocation: "left", + chromaSubsampling: "14520", + codedHeight: 816, + codedWidth: 1920, + colorPrimaries: "bt709", + colorRange: "tv", + colorSpace: "bt709", + colorTrc: "bt709", + frameRate: 24, + hasScalingMatrix: false, + height: 814, + level: 40, + profile: "lc", + refFrames: 4, + scanType: "progressive", + streamIdentifier: "1", + width: 1920, + displayTitle: "English (AAC Stereo)", + extendedDisplayTitle: "English (AAC Stereo)", + selected: true, + channels: 2, + language: "English", + languageTag: "en", + languageCode: "eng", + samplingRate: 44100, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 15 | +| `key` | *string* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 141417 | +| `file` | *string* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | +| `size` | *number* | :heavy_minus_sign: | N/A | 40271948 | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | +| `stream` | [operations.Stream](../../../sdk/models/operations/stream.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeyrequest.md b/docs/sdk/models/operations/getmetadatabyratingkeyrequest.md similarity index 97% rename from docs/models/getmetadatabyratingkeyrequest.md rename to docs/sdk/models/operations/getmetadatabyratingkeyrequest.md index 46c9c723..f55adda0 100644 --- a/docs/models/getmetadatabyratingkeyrequest.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeyrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyRequest } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetaDataByRatingKeyRequest = { ratingKey: 9518, diff --git a/docs/models/getmetadatabyratingkeyresponse.md b/docs/sdk/models/operations/getmetadatabyratingkeyresponse.md similarity index 78% rename from docs/models/getmetadatabyratingkeyresponse.md rename to docs/sdk/models/operations/getmetadatabyratingkeyresponse.md index eb3cac03..32986316 100644 --- a/docs/models/getmetadatabyratingkeyresponse.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeyresponse.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyResponse } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetMetaDataByRatingKeyResponse } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetMetaDataByRatingKeyResponse = { contentType: "", @@ -191,9 +191,9 @@ let value: GetMetaDataByRatingKeyResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetMetaDataByRatingKeyResponseBody](../models/getmetadatabyratingkeyresponsebody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetMetaDataByRatingKeyResponseBody](../../../sdk/models/operations/getmetadatabyratingkeyresponsebody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeyresponsebody.md b/docs/sdk/models/operations/getmetadatabyratingkeyresponsebody.md similarity index 88% rename from docs/models/getmetadatabyratingkeyresponsebody.md rename to docs/sdk/models/operations/getmetadatabyratingkeyresponsebody.md index 4e850b8a..d5ccc7ad 100644 --- a/docs/models/getmetadatabyratingkeyresponsebody.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeyresponsebody.md @@ -5,8 +5,8 @@ The metadata of the library item. ## Example Usage ```typescript -import { GetMetaDataByRatingKeyResponseBody } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetMetaDataByRatingKeyResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetMetaDataByRatingKeyResponseBody = { mediaContainer: { @@ -186,6 +186,6 @@ let value: GetMetaDataByRatingKeyResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetMetaDataByRatingKeyMediaContainer](../models/getmetadatabyratingkeymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetMetaDataByRatingKeyMediaContainer](../../../sdk/models/operations/getmetadatabyratingkeymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getmetadatabyratingkeyrole.md b/docs/sdk/models/operations/getmetadatabyratingkeyrole.md similarity index 97% rename from docs/models/getmetadatabyratingkeyrole.md rename to docs/sdk/models/operations/getmetadatabyratingkeyrole.md index 54c9dbcf..8317542c 100644 --- a/docs/models/getmetadatabyratingkeyrole.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeyrole.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyRole } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyRole } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetaDataByRatingKeyRole = { id: 220, diff --git a/docs/models/getmetadatabyratingkeywriter.md b/docs/sdk/models/operations/getmetadatabyratingkeywriter.md similarity index 96% rename from docs/models/getmetadatabyratingkeywriter.md rename to docs/sdk/models/operations/getmetadatabyratingkeywriter.md index 0cd9655b..4a35c45d 100644 --- a/docs/models/getmetadatabyratingkeywriter.md +++ b/docs/sdk/models/operations/getmetadatabyratingkeywriter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetaDataByRatingKeyWriter } from "@lukehagar/plexjs"; +import { GetMetaDataByRatingKeyWriter } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetaDataByRatingKeyWriter = { id: 132, diff --git a/docs/models/getmetadatachildrendirectory.md b/docs/sdk/models/operations/getmetadatachildrendirectory.md similarity index 95% rename from docs/models/getmetadatachildrendirectory.md rename to docs/sdk/models/operations/getmetadatachildrendirectory.md index d94aaef4..73652063 100644 --- a/docs/models/getmetadatachildrendirectory.md +++ b/docs/sdk/models/operations/getmetadatachildrendirectory.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataChildrenDirectory } from "@lukehagar/plexjs"; +import { GetMetadataChildrenDirectory } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataChildrenDirectory = { leafCount: 16, diff --git a/docs/models/getmetadatachildrenmediacontainer.md b/docs/sdk/models/operations/getmetadatachildrenmediacontainer.md similarity index 98% rename from docs/models/getmetadatachildrenmediacontainer.md rename to docs/sdk/models/operations/getmetadatachildrenmediacontainer.md index 334985e5..c8456e91 100644 --- a/docs/models/getmetadatachildrenmediacontainer.md +++ b/docs/sdk/models/operations/getmetadatachildrenmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataChildrenMediaContainer } from "@lukehagar/plexjs"; +import { GetMetadataChildrenMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataChildrenMediaContainer = { size: 3, @@ -97,5 +97,5 @@ let value: GetMetadataChildrenMediaContainer = { | `title2` | *string* | :heavy_minus_sign: | N/A | Reacher | | `viewGroup` | *string* | :heavy_minus_sign: | N/A | season | | `viewMode` | *number* | :heavy_minus_sign: | N/A | 65593 | -| `directory` | [models.GetMetadataChildrenDirectory](../models/getmetadatachildrendirectory.md)[] | :heavy_minus_sign: | N/A | [
{
"leafCount": 16,
"thumb": "/library/metadata/30072/thumb/1705739923",
"viewedLeafCount": 16,
"key": "/library/metadata/30072/allLeaves",
"title": "All episodes"
}
] | -| `metadata` | [models.GetMetadataChildrenMetadata](../models/getmetadatachildrenmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `directory` | [operations.GetMetadataChildrenDirectory](../../../sdk/models/operations/getmetadatachildrendirectory.md)[] | :heavy_minus_sign: | N/A | [
{
"leafCount": 16,
"thumb": "/library/metadata/30072/thumb/1705739923",
"viewedLeafCount": 16,
"key": "/library/metadata/30072/allLeaves",
"title": "All episodes"
}
] | +| `metadata` | [operations.GetMetadataChildrenMetadata](../../../sdk/models/operations/getmetadatachildrenmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getmetadatachildrenmetadata.md b/docs/sdk/models/operations/getmetadatachildrenmetadata.md similarity index 99% rename from docs/models/getmetadatachildrenmetadata.md rename to docs/sdk/models/operations/getmetadatachildrenmetadata.md index 91071236..1e1df8ce 100644 --- a/docs/models/getmetadatachildrenmetadata.md +++ b/docs/sdk/models/operations/getmetadatachildrenmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataChildrenMetadata } from "@lukehagar/plexjs"; +import { GetMetadataChildrenMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataChildrenMetadata = { ratingKey: "66488", diff --git a/docs/models/getmetadatachildrenrequest.md b/docs/sdk/models/operations/getmetadatachildrenrequest.md similarity index 93% rename from docs/models/getmetadatachildrenrequest.md rename to docs/sdk/models/operations/getmetadatachildrenrequest.md index 49e841e6..cca98363 100644 --- a/docs/models/getmetadatachildrenrequest.md +++ b/docs/sdk/models/operations/getmetadatachildrenrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataChildrenRequest } from "@lukehagar/plexjs"; +import { GetMetadataChildrenRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataChildrenRequest = { ratingKey: 1289.26, diff --git a/docs/models/getmetadatachildrenresponse.md b/docs/sdk/models/operations/getmetadatachildrenresponse.md similarity index 63% rename from docs/models/getmetadatachildrenresponse.md rename to docs/sdk/models/operations/getmetadatachildrenresponse.md index 0533182b..87d19645 100644 --- a/docs/models/getmetadatachildrenresponse.md +++ b/docs/sdk/models/operations/getmetadatachildrenresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetadataChildrenResponse } from "@lukehagar/plexjs"; +import { GetMetadataChildrenResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataChildrenResponse = { contentType: "", @@ -83,9 +83,9 @@ let value: GetMetadataChildrenResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetMetadataChildrenResponseBody](../models/getmetadatachildrenresponsebody.md) | :heavy_minus_sign: | The children of the library item. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetMetadataChildrenResponseBody](../../../sdk/models/operations/getmetadatachildrenresponsebody.md) | :heavy_minus_sign: | The children of the library item. | \ No newline at end of file diff --git a/docs/models/getmetadatachildrenresponsebody.md b/docs/sdk/models/operations/getmetadatachildrenresponsebody.md similarity index 73% rename from docs/models/getmetadatachildrenresponsebody.md rename to docs/sdk/models/operations/getmetadatachildrenresponsebody.md index 74b28e36..b81f7251 100644 --- a/docs/models/getmetadatachildrenresponsebody.md +++ b/docs/sdk/models/operations/getmetadatachildrenresponsebody.md @@ -5,7 +5,7 @@ The children of the library item. ## Example Usage ```typescript -import { GetMetadataChildrenResponseBody } from "@lukehagar/plexjs"; +import { GetMetadataChildrenResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMetadataChildrenResponseBody = { mediaContainer: { @@ -78,6 +78,6 @@ let value: GetMetadataChildrenResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetMetadataChildrenMediaContainer](../models/getmetadatachildrenmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetMetadataChildrenMediaContainer](../../../sdk/models/operations/getmetadatachildrenmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmyplexaccountresponse.md b/docs/sdk/models/operations/getmyplexaccountresponse.md new file mode 100644 index 00000000..37464a17 --- /dev/null +++ b/docs/sdk/models/operations/getmyplexaccountresponse.md @@ -0,0 +1,39 @@ +# GetMyPlexAccountResponse + +## Example Usage + +```typescript +import { GetMyPlexAccountResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetMyPlexAccountResponse = { + contentType: "", + statusCode: 857946, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + 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", + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetMyPlexAccountResponseBody](../../../sdk/models/operations/getmyplexaccountresponsebody.md) | :heavy_minus_sign: | MyPlex Account | \ No newline at end of file diff --git a/docs/models/getmyplexaccountresponsebody.md b/docs/sdk/models/operations/getmyplexaccountresponsebody.md similarity index 50% rename from docs/models/getmyplexaccountresponsebody.md rename to docs/sdk/models/operations/getmyplexaccountresponsebody.md index 564b154c..4b441364 100644 --- a/docs/models/getmyplexaccountresponsebody.md +++ b/docs/sdk/models/operations/getmyplexaccountresponsebody.md @@ -5,7 +5,7 @@ MyPlex Account ## Example Usage ```typescript -import { GetMyPlexAccountResponseBody } from "@lukehagar/plexjs"; +import { GetMyPlexAccountResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetMyPlexAccountResponseBody = { myPlex: { @@ -26,6 +26,6 @@ let value: GetMyPlexAccountResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `myPlex` | [models.MyPlex](../models/myplex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `myPlex` | [operations.MyPlex](../../../sdk/models/operations/myplex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getondeckguids.md b/docs/sdk/models/operations/getondeckguids.md similarity index 85% rename from docs/models/getondeckguids.md rename to docs/sdk/models/operations/getondeckguids.md index 0d31fb1c..f3c10d63 100644 --- a/docs/models/getondeckguids.md +++ b/docs/sdk/models/operations/getondeckguids.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOnDeckGuids } from "@lukehagar/plexjs"; +import { GetOnDeckGuids } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetOnDeckGuids = { id: "imdb://tt13303712", diff --git a/docs/sdk/models/operations/getondeckmedia.md b/docs/sdk/models/operations/getondeckmedia.md new file mode 100644 index 00000000..72c05c49 --- /dev/null +++ b/docs/sdk/models/operations/getondeckmedia.md @@ -0,0 +1,82 @@ +# GetOnDeckMedia + +## Example Usage + +```typescript +import { GetOnDeckMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetOnDeckMedia = { + id: 80994, + duration: 420080, + bitrate: 1046, + width: 1920, + height: 1080, + aspectRatio: 1.78, + audioChannels: 2, + audioCodec: "aac", + videoCodec: "hevc", + videoResolution: "1080", + container: "mkv", + videoFrameRate: "PAL", + audioProfile: "lc", + videoProfile: "main", + part: [ + { + id: 80994, + key: "/library/parts/80994/1655007810/file.mkv", + duration: 420080, + file: "/tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv", + size: 55148931, + audioProfile: "lc", + container: "mkv", + videoProfile: "main", + stream: [ + { + id: 211234, + streamType: 1, + codec: "hevc", + index: 0, + bitrate: 918, + language: "English", + languageTag: "en", + languageCode: "eng", + bitDepth: 8, + chromaLocation: "left", + chromaSubsampling: "4:2:0", + codedHeight: 1080, + codedWidth: 1920, + colorRange: "tv", + frameRate: 25, + height: 1080, + level: 120, + profile: "main", + refFrames: 1, + width: 1920, + displayTitle: "1080p (HEVC Main)", + extendedDisplayTitle: "1080p (HEVC Main)", + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 80994 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 420080 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 1046 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *number* | :heavy_minus_sign: | N/A | 1080 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.78 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *string* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | PAL | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | +| `part` | [operations.GetOnDeckPart](../../../sdk/models/operations/getondeckpart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getondeckmediacontainer.md b/docs/sdk/models/operations/getondeckmediacontainer.md similarity index 53% rename from docs/models/getondeckmediacontainer.md rename to docs/sdk/models/operations/getondeckmediacontainer.md index 1acf8144..d4909290 100644 --- a/docs/models/getondeckmediacontainer.md +++ b/docs/sdk/models/operations/getondeckmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOnDeckMediaContainer } from "@lukehagar/plexjs"; +import { GetOnDeckMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetOnDeckMediaContainer = { size: 16, @@ -114,12 +114,12 @@ let value: GetOnDeckMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `size` | *number* | :heavy_minus_sign: | N/A | 16 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1680021154 | -| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | | -| `metadata` | [models.GetOnDeckMetadata](../models/getondeckmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 16 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1680021154 | +| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | | +| `metadata` | [operations.GetOnDeckMetadata](../../../sdk/models/operations/getondeckmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getondeckmetadata.md b/docs/sdk/models/operations/getondeckmetadata.md similarity index 99% rename from docs/models/getondeckmetadata.md rename to docs/sdk/models/operations/getondeckmetadata.md index 6a8ebb67..ecd527fd 100644 --- a/docs/models/getondeckmetadata.md +++ b/docs/sdk/models/operations/getondeckmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOnDeckMetadata } from "@lukehagar/plexjs"; +import { GetOnDeckMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetOnDeckMetadata = { librarySectionID: 2, @@ -142,5 +142,5 @@ let value: GetOnDeckMetadata = { | `originallyAvailableAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | 2020-10-31 00:00:00 +0000 UTC | | `addedAt` | *number* | :heavy_minus_sign: | N/A | 1654258196 | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1654258204 | -| `media` | [models.GetOnDeckMedia](../models/getondeckmedia.md)[] | :heavy_minus_sign: | N/A | | -| `guids` | [models.GetOnDeckGuids](../models/getondeckguids.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | [operations.GetOnDeckMedia](../../../sdk/models/operations/getondeckmedia.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [operations.GetOnDeckGuids](../../../sdk/models/operations/getondeckguids.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getondeckpart.md b/docs/sdk/models/operations/getondeckpart.md new file mode 100644 index 00000000..5ec8bc20 --- /dev/null +++ b/docs/sdk/models/operations/getondeckpart.md @@ -0,0 +1,58 @@ +# GetOnDeckPart + +## Example Usage + +```typescript +import { GetOnDeckPart } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetOnDeckPart = { + id: 80994, + key: "/library/parts/80994/1655007810/file.mkv", + duration: 420080, + file: "/tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv", + size: 55148931, + audioProfile: "lc", + container: "mkv", + videoProfile: "main", + stream: [ + { + id: 211234, + streamType: 1, + codec: "hevc", + index: 0, + bitrate: 918, + language: "English", + languageTag: "en", + languageCode: "eng", + bitDepth: 8, + chromaLocation: "left", + chromaSubsampling: "4:2:0", + codedHeight: 1080, + codedWidth: 1920, + colorRange: "tv", + frameRate: 25, + height: 1080, + level: 120, + profile: "main", + refFrames: 1, + width: 1920, + displayTitle: "1080p (HEVC Main)", + extendedDisplayTitle: "1080p (HEVC Main)", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 80994 | +| `key` | *string* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv | +| `duration` | *number* | :heavy_minus_sign: | N/A | 420080 | +| `file` | *string* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv | +| `size` | *number* | :heavy_minus_sign: | N/A | 55148931 | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `container` | *string* | :heavy_minus_sign: | N/A | mkv | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main | +| `stream` | [operations.GetOnDeckStream](../../../sdk/models/operations/getondeckstream.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getondeckresponse.md b/docs/sdk/models/operations/getondeckresponse.md similarity index 75% rename from docs/models/getondeckresponse.md rename to docs/sdk/models/operations/getondeckresponse.md index 7ad361cf..bf05738b 100644 --- a/docs/models/getondeckresponse.md +++ b/docs/sdk/models/operations/getondeckresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOnDeckResponse } from "@lukehagar/plexjs"; +import { GetOnDeckResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetOnDeckResponse = { contentType: "", @@ -123,9 +123,9 @@ let value: GetOnDeckResponse = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetOnDeckResponseBody](../models/getondeckresponsebody.md) | :heavy_minus_sign: | The on Deck content | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetOnDeckResponseBody](../../../sdk/models/operations/getondeckresponsebody.md) | :heavy_minus_sign: | The on Deck content | \ No newline at end of file diff --git a/docs/models/getondeckresponsebody.md b/docs/sdk/models/operations/getondeckresponsebody.md similarity index 83% rename from docs/models/getondeckresponsebody.md rename to docs/sdk/models/operations/getondeckresponsebody.md index bf7ae871..592a353a 100644 --- a/docs/models/getondeckresponsebody.md +++ b/docs/sdk/models/operations/getondeckresponsebody.md @@ -5,7 +5,7 @@ The on Deck content ## Example Usage ```typescript -import { GetOnDeckResponseBody } from "@lukehagar/plexjs"; +import { GetOnDeckResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetOnDeckResponseBody = { mediaContainer: { @@ -118,6 +118,6 @@ let value: GetOnDeckResponseBody = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `mediaContainer` | [models.GetOnDeckMediaContainer](../models/getondeckmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetOnDeckMediaContainer](../../../sdk/models/operations/getondeckmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getondeckstream.md b/docs/sdk/models/operations/getondeckstream.md similarity index 98% rename from docs/models/getondeckstream.md rename to docs/sdk/models/operations/getondeckstream.md index 90f28570..58847c52 100644 --- a/docs/models/getondeckstream.md +++ b/docs/sdk/models/operations/getondeckstream.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOnDeckStream } from "@lukehagar/plexjs"; +import { GetOnDeckStream } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetOnDeckStream = { id: 211234, diff --git a/docs/models/getpinauthpincontainer.md b/docs/sdk/models/operations/getpinauthpincontainer.md similarity index 99% rename from docs/models/getpinauthpincontainer.md rename to docs/sdk/models/operations/getpinauthpincontainer.md index 39025cec..78a24ce2 100644 --- a/docs/models/getpinauthpincontainer.md +++ b/docs/sdk/models/operations/getpinauthpincontainer.md @@ -5,7 +5,7 @@ Requests a new pin id used in the authentication flow ## Example Usage ```typescript -import { GetPinAuthPinContainer } from "@lukehagar/plexjs"; +import { GetPinAuthPinContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPinAuthPinContainer = { id: 308667304, @@ -45,7 +45,7 @@ let value: GetPinAuthPinContainer = { | `trusted` | *boolean* | :heavy_minus_sign: | N/A | | | `qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | | `clientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | -| `location` | [models.GeoData](../models/geodata.md) | :heavy_check_mark: | Geo location data | {
"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"
} | +| `location` | [operations.GeoData](../../../sdk/models/operations/geodata.md) | :heavy_check_mark: | Geo location data | {
"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"
} | | `expiresIn` | *number* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | | `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | diff --git a/docs/models/getpinglobals.md b/docs/sdk/models/operations/getpinglobals.md similarity index 97% rename from docs/models/getpinglobals.md rename to docs/sdk/models/operations/getpinglobals.md index 63fb3880..12543995 100644 --- a/docs/models/getpinglobals.md +++ b/docs/sdk/models/operations/getpinglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPinGlobals } from "@lukehagar/plexjs"; +import { GetPinGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPinGlobals = {}; ``` diff --git a/docs/models/getpinrequest.md b/docs/sdk/models/operations/getpinrequest.md similarity index 98% rename from docs/models/getpinrequest.md rename to docs/sdk/models/operations/getpinrequest.md index 2d75edfa..58c85c79 100644 --- a/docs/models/getpinrequest.md +++ b/docs/sdk/models/operations/getpinrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPinRequest } from "@lukehagar/plexjs"; +import { GetPinRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPinRequest = { xPlexProduct: "Plex Web", diff --git a/docs/models/getpinresponse.md b/docs/sdk/models/operations/getpinresponse.md similarity index 98% rename from docs/models/getpinresponse.md rename to docs/sdk/models/operations/getpinresponse.md index 08e70429..dc375f73 100644 --- a/docs/models/getpinresponse.md +++ b/docs/sdk/models/operations/getpinresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPinResponse } from "@lukehagar/plexjs"; +import { GetPinResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPinResponse = { contentType: "", @@ -47,4 +47,4 @@ let value: GetPinResponse = { | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | | `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `authPinContainer` | [models.GetPinAuthPinContainer](../models/getpinauthpincontainer.md) | :heavy_minus_sign: | Requests a new pin id used in the authentication flow | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"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"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file +| `authPinContainer` | [operations.GetPinAuthPinContainer](../../../sdk/models/operations/getpinauthpincontainer.md) | :heavy_minus_sign: | Requests a new pin id used in the authentication flow | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"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"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file diff --git a/docs/models/getplaylistcontentscountry.md b/docs/sdk/models/operations/getplaylistcontentscountry.md similarity index 86% rename from docs/models/getplaylistcontentscountry.md rename to docs/sdk/models/operations/getplaylistcontentscountry.md index 01285d0f..5a84bdfd 100644 --- a/docs/models/getplaylistcontentscountry.md +++ b/docs/sdk/models/operations/getplaylistcontentscountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsCountry } from "@lukehagar/plexjs"; +import { GetPlaylistContentsCountry } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsCountry = { tag: "United States of America", diff --git a/docs/models/getplaylistcontentsdirector.md b/docs/sdk/models/operations/getplaylistcontentsdirector.md similarity index 84% rename from docs/models/getplaylistcontentsdirector.md rename to docs/sdk/models/operations/getplaylistcontentsdirector.md index 7ce2d21f..5492de75 100644 --- a/docs/models/getplaylistcontentsdirector.md +++ b/docs/sdk/models/operations/getplaylistcontentsdirector.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsDirector } from "@lukehagar/plexjs"; +import { GetPlaylistContentsDirector } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsDirector = { tag: "Joss Whedon", diff --git a/docs/models/getplaylistcontentsgenre.md b/docs/sdk/models/operations/getplaylistcontentsgenre.md similarity index 84% rename from docs/models/getplaylistcontentsgenre.md rename to docs/sdk/models/operations/getplaylistcontentsgenre.md index 1b859d6d..c335a1fc 100644 --- a/docs/models/getplaylistcontentsgenre.md +++ b/docs/sdk/models/operations/getplaylistcontentsgenre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsGenre } from "@lukehagar/plexjs"; +import { GetPlaylistContentsGenre } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsGenre = { tag: "Action", diff --git a/docs/sdk/models/operations/getplaylistcontentsmedia.md b/docs/sdk/models/operations/getplaylistcontentsmedia.md new file mode 100644 index 00000000..9d3bff49 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistcontentsmedia.md @@ -0,0 +1,62 @@ +# GetPlaylistContentsMedia + +## Example Usage + +```typescript +import { GetPlaylistContentsMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistContentsMedia = { + id: 15, + duration: 141416, + bitrate: 2273, + width: 1920, + height: 814, + aspectRatio: 2.35, + audioChannels: 2, + audioCodec: "aac", + videoCodec: "h264", + videoResolution: "1080", + container: "mp4", + videoFrameRate: "24p", + optimizedForStreaming: 0, + audioProfile: "lc", + has64bitOffsets: false, + videoProfile: "high", + part: [ + { + id: 15, + key: "/library/parts/15/1705637151/file.mp4", + duration: 141416, + file: "/movies/Serenity (2005)/Serenity (2005).mp4", + size: 40271948, + audioProfile: "lc", + container: "mp4", + has64bitOffsets: false, + optimizedForStreaming: false, + videoProfile: "high", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 15 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 141416 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 2273 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *number* | :heavy_minus_sign: | N/A | 814 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 0 | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | +| `part` | [operations.GetPlaylistContentsPart](../../../sdk/models/operations/getplaylistcontentspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsmediacontainer.md b/docs/sdk/models/operations/getplaylistcontentsmediacontainer.md similarity index 51% rename from docs/models/getplaylistcontentsmediacontainer.md rename to docs/sdk/models/operations/getplaylistcontentsmediacontainer.md index c62aa23b..2ccf4a74 100644 --- a/docs/models/getplaylistcontentsmediacontainer.md +++ b/docs/sdk/models/operations/getplaylistcontentsmediacontainer.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetPlaylistContentsMediaContainer } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetPlaylistContentsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetPlaylistContentsMediaContainer = { size: 2, @@ -110,14 +110,14 @@ let value: GetPlaylistContentsMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 2 | -| `composite` | *string* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | -| `duration` | *number* | :heavy_minus_sign: | N/A | 282 | -| `leafCount` | *number* | :heavy_minus_sign: | N/A | 2 | -| `playlistType` | *string* | :heavy_minus_sign: | N/A | video | -| `ratingKey` | *string* | :heavy_minus_sign: | N/A | 95 | -| `smart` | *boolean* | :heavy_minus_sign: | N/A | true | -| `title` | *string* | :heavy_minus_sign: | N/A | Smart Movie Playlist | -| `metadata` | [models.GetPlaylistContentsMetadata](../models/getplaylistcontentsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 2 | +| `composite` | *string* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 282 | +| `leafCount` | *number* | :heavy_minus_sign: | N/A | 2 | +| `playlistType` | *string* | :heavy_minus_sign: | N/A | video | +| `ratingKey` | *string* | :heavy_minus_sign: | N/A | 95 | +| `smart` | *boolean* | :heavy_minus_sign: | N/A | true | +| `title` | *string* | :heavy_minus_sign: | N/A | Smart Movie Playlist | +| `metadata` | [operations.GetPlaylistContentsMetadata](../../../sdk/models/operations/getplaylistcontentsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsmetadata.md b/docs/sdk/models/operations/getplaylistcontentsmetadata.md similarity index 98% rename from docs/models/getplaylistcontentsmetadata.md rename to docs/sdk/models/operations/getplaylistcontentsmetadata.md index 8993eaf9..2ab8ae39 100644 --- a/docs/models/getplaylistcontentsmetadata.md +++ b/docs/sdk/models/operations/getplaylistcontentsmetadata.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetPlaylistContentsMetadata } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetPlaylistContentsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetPlaylistContentsMetadata = { ratingKey: "17", @@ -119,16 +119,16 @@ let value: GetPlaylistContentsMetadata = { | `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | | `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | | `duration` | *number* | :heavy_minus_sign: | N/A | 141416 | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | | `addedAt` | *number* | :heavy_minus_sign: | N/A | 1705637164 | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1705637165 | | `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | | `hasPremiumExtras` | *string* | :heavy_minus_sign: | N/A | 1 | | `hasPremiumPrimaryExtra` | *string* | :heavy_minus_sign: | N/A | 1 | | `ratingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | [models.GetPlaylistContentsMedia](../models/getplaylistcontentsmedia.md)[] | :heavy_minus_sign: | N/A | | -| `genre` | [models.GetPlaylistContentsGenre](../models/getplaylistcontentsgenre.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.GetPlaylistContentsCountry](../models/getplaylistcontentscountry.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [models.GetPlaylistContentsDirector](../models/getplaylistcontentsdirector.md)[] | :heavy_minus_sign: | N/A | | -| `writer` | [models.GetPlaylistContentsWriter](../models/getplaylistcontentswriter.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.GetPlaylistContentsRole](../models/getplaylistcontentsrole.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | [operations.GetPlaylistContentsMedia](../../../sdk/models/operations/getplaylistcontentsmedia.md)[] | :heavy_minus_sign: | N/A | | +| `genre` | [operations.GetPlaylistContentsGenre](../../../sdk/models/operations/getplaylistcontentsgenre.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.GetPlaylistContentsCountry](../../../sdk/models/operations/getplaylistcontentscountry.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [operations.GetPlaylistContentsDirector](../../../sdk/models/operations/getplaylistcontentsdirector.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [operations.GetPlaylistContentsWriter](../../../sdk/models/operations/getplaylistcontentswriter.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.GetPlaylistContentsRole](../../../sdk/models/operations/getplaylistcontentsrole.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistcontentspart.md b/docs/sdk/models/operations/getplaylistcontentspart.md similarity index 97% rename from docs/models/getplaylistcontentspart.md rename to docs/sdk/models/operations/getplaylistcontentspart.md index 5bacaef4..f47b4ba5 100644 --- a/docs/models/getplaylistcontentspart.md +++ b/docs/sdk/models/operations/getplaylistcontentspart.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsPart } from "@lukehagar/plexjs"; +import { GetPlaylistContentsPart } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsPart = { id: 15, diff --git a/docs/models/getplaylistcontentsqueryparamtype.md b/docs/sdk/models/operations/getplaylistcontentsqueryparamtype.md similarity index 94% rename from docs/models/getplaylistcontentsqueryparamtype.md rename to docs/sdk/models/operations/getplaylistcontentsqueryparamtype.md index 25e3173a..409861e9 100644 --- a/docs/models/getplaylistcontentsqueryparamtype.md +++ b/docs/sdk/models/operations/getplaylistcontentsqueryparamtype.md @@ -11,7 +11,7 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Example Usage ```typescript -import { GetPlaylistContentsQueryParamType } from "@lukehagar/plexjs"; +import { GetPlaylistContentsQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsQueryParamType = GetPlaylistContentsQueryParamType.Two; ``` diff --git a/docs/models/getplaylistcontentsrequest.md b/docs/sdk/models/operations/getplaylistcontentsrequest.md similarity index 93% rename from docs/models/getplaylistcontentsrequest.md rename to docs/sdk/models/operations/getplaylistcontentsrequest.md index a86b4352..cfe8412a 100644 --- a/docs/models/getplaylistcontentsrequest.md +++ b/docs/sdk/models/operations/getplaylistcontentsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsQueryParamType, GetPlaylistContentsRequest } from "@lukehagar/plexjs"; +import { GetPlaylistContentsQueryParamType, GetPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsRequest = { playlistID: 7783.46, @@ -16,4 +16,4 @@ let value: GetPlaylistContentsRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `playlistID` | *number* | :heavy_check_mark: | the ID of the playlist | | -| `type` | [models.GetPlaylistContentsQueryParamType](../models/getplaylistcontentsqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file +| `type` | [operations.GetPlaylistContentsQueryParamType](../../../sdk/models/operations/getplaylistcontentsqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsresponse.md b/docs/sdk/models/operations/getplaylistcontentsresponse.md similarity index 69% rename from docs/models/getplaylistcontentsresponse.md rename to docs/sdk/models/operations/getplaylistcontentsresponse.md index 93b99c2b..dd73a900 100644 --- a/docs/models/getplaylistcontentsresponse.md +++ b/docs/sdk/models/operations/getplaylistcontentsresponse.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetPlaylistContentsResponse } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetPlaylistContentsResponse = { contentType: "", @@ -119,9 +119,9 @@ let value: GetPlaylistContentsResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetPlaylistContentsResponseBody](../models/getplaylistcontentsresponsebody.md) | :heavy_minus_sign: | The playlist contents | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetPlaylistContentsResponseBody](../../../sdk/models/operations/getplaylistcontentsresponsebody.md) | :heavy_minus_sign: | The playlist contents | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsresponsebody.md b/docs/sdk/models/operations/getplaylistcontentsresponsebody.md similarity index 78% rename from docs/models/getplaylistcontentsresponsebody.md rename to docs/sdk/models/operations/getplaylistcontentsresponsebody.md index ae796769..4bbf02e9 100644 --- a/docs/models/getplaylistcontentsresponsebody.md +++ b/docs/sdk/models/operations/getplaylistcontentsresponsebody.md @@ -5,8 +5,8 @@ The playlist contents ## Example Usage ```typescript -import { GetPlaylistContentsResponseBody } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetPlaylistContentsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetPlaylistContentsResponseBody = { mediaContainer: { @@ -114,6 +114,6 @@ let value: GetPlaylistContentsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetPlaylistContentsMediaContainer](../models/getplaylistcontentsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPlaylistContentsMediaContainer](../../../sdk/models/operations/getplaylistcontentsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getplaylistcontentsrole.md b/docs/sdk/models/operations/getplaylistcontentsrole.md similarity index 84% rename from docs/models/getplaylistcontentsrole.md rename to docs/sdk/models/operations/getplaylistcontentsrole.md index 4ad2a796..16c3381e 100644 --- a/docs/models/getplaylistcontentsrole.md +++ b/docs/sdk/models/operations/getplaylistcontentsrole.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsRole } from "@lukehagar/plexjs"; +import { GetPlaylistContentsRole } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsRole = { tag: "Gina Torres", diff --git a/docs/models/getplaylistcontentswriter.md b/docs/sdk/models/operations/getplaylistcontentswriter.md similarity index 84% rename from docs/models/getplaylistcontentswriter.md rename to docs/sdk/models/operations/getplaylistcontentswriter.md index 0db4e47a..91da2c1d 100644 --- a/docs/models/getplaylistcontentswriter.md +++ b/docs/sdk/models/operations/getplaylistcontentswriter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistContentsWriter } from "@lukehagar/plexjs"; +import { GetPlaylistContentsWriter } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistContentsWriter = { tag: "Joss Whedon", diff --git a/docs/sdk/models/operations/getplaylistmediacontainer.md b/docs/sdk/models/operations/getplaylistmediacontainer.md new file mode 100644 index 00000000..d847bdb1 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistmediacontainer.md @@ -0,0 +1,38 @@ +# GetPlaylistMediaContainer + +## Example Usage + +```typescript +import { GetPlaylistMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistMediaContainer = { + size: 1, + metadata: [ + { + content: + "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1", + ratingKey: "95", + key: "/playlists/95/items", + guid: "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91", + type: "playlist", + title: "Smart Movie Playlist", + summary: "", + smart: true, + playlistType: "video", + composite: "/playlists/95/composite/1705717387", + icon: "playlist://image.smart", + duration: 282000, + leafCount: 2, + addedAt: 1705716493, + updatedAt: 1705717387, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | [operations.GetPlaylistMetadata](../../../sdk/models/operations/getplaylistmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistmetadata.md b/docs/sdk/models/operations/getplaylistmetadata.md similarity index 99% rename from docs/models/getplaylistmetadata.md rename to docs/sdk/models/operations/getplaylistmetadata.md index 06583ed7..a1fcf218 100644 --- a/docs/models/getplaylistmetadata.md +++ b/docs/sdk/models/operations/getplaylistmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistMetadata } from "@lukehagar/plexjs"; +import { GetPlaylistMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistMetadata = { content: diff --git a/docs/models/getplaylistrequest.md b/docs/sdk/models/operations/getplaylistrequest.md similarity index 84% rename from docs/models/getplaylistrequest.md rename to docs/sdk/models/operations/getplaylistrequest.md index cebf6e66..e630c358 100644 --- a/docs/models/getplaylistrequest.md +++ b/docs/sdk/models/operations/getplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistRequest } from "@lukehagar/plexjs"; +import { GetPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistRequest = { playlistID: 3380.07, diff --git a/docs/sdk/models/operations/getplaylistresponse.md b/docs/sdk/models/operations/getplaylistresponse.md new file mode 100644 index 00000000..8dc21753 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistresponse.md @@ -0,0 +1,49 @@ +# GetPlaylistResponse + +## Example Usage + +```typescript +import { GetPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistResponse = { + contentType: "", + statusCode: 110375, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 1, + metadata: [ + { + content: + "library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1", + ratingKey: "95", + key: "/playlists/95/items", + guid: "com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91", + type: "playlist", + title: "Smart Movie Playlist", + summary: "", + smart: true, + playlistType: "video", + composite: "/playlists/95/composite/1705717387", + icon: "playlist://image.smart", + duration: 282000, + leafCount: 2, + addedAt: 1705716493, + updatedAt: 1705717387, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetPlaylistResponseBody](../../../sdk/models/operations/getplaylistresponsebody.md) | :heavy_minus_sign: | The playlist | \ No newline at end of file diff --git a/docs/models/getplaylistresponsebody.md b/docs/sdk/models/operations/getplaylistresponsebody.md similarity index 51% rename from docs/models/getplaylistresponsebody.md rename to docs/sdk/models/operations/getplaylistresponsebody.md index 140c0bf7..2b0a1a94 100644 --- a/docs/models/getplaylistresponsebody.md +++ b/docs/sdk/models/operations/getplaylistresponsebody.md @@ -5,7 +5,7 @@ The playlist ## Example Usage ```typescript -import { GetPlaylistResponseBody } from "@lukehagar/plexjs"; +import { GetPlaylistResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistResponseBody = { mediaContainer: { @@ -36,6 +36,6 @@ let value: GetPlaylistResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetPlaylistMediaContainer](../models/getplaylistmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPlaylistMediaContainer](../../../sdk/models/operations/getplaylistmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistsmediacontainer.md b/docs/sdk/models/operations/getplaylistsmediacontainer.md new file mode 100644 index 00000000..502a38e9 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistsmediacontainer.md @@ -0,0 +1,38 @@ +# GetPlaylistsMediaContainer + +## Example Usage + +```typescript +import { GetPlaylistsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistsMediaContainer = { + size: 4, + metadata: [ + { + ratingKey: "92", + key: "/playlists/92/items", + guid: "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903", + type: "playlist", + title: "Static Playlist", + summary: "A Great Playlist", + smart: false, + playlistType: "video", + composite: "/playlists/92/composite/1705716440", + icon: "playlist://image.smart", + viewCount: 1, + lastViewedAt: 1705716298, + duration: 7328000, + leafCount: 32, + addedAt: 1705716298, + updatedAt: 1705716440, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 4 | +| `metadata` | [operations.GetPlaylistsMetadata](../../../sdk/models/operations/getplaylistsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getplaylistsmetadata.md b/docs/sdk/models/operations/getplaylistsmetadata.md similarity index 98% rename from docs/models/getplaylistsmetadata.md rename to docs/sdk/models/operations/getplaylistsmetadata.md index c8a5998b..e4273fb2 100644 --- a/docs/models/getplaylistsmetadata.md +++ b/docs/sdk/models/operations/getplaylistsmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPlaylistsMetadata } from "@lukehagar/plexjs"; +import { GetPlaylistsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetPlaylistsMetadata = { ratingKey: "92", diff --git a/docs/sdk/models/operations/getplaylistsrequest.md b/docs/sdk/models/operations/getplaylistsrequest.md new file mode 100644 index 00000000..450a6329 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistsrequest.md @@ -0,0 +1,16 @@ +# GetPlaylistsRequest + +## Example Usage + +```typescript +import { GetPlaylistsRequest } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistsRequest = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `playlistType` | [operations.PlaylistType](../../../sdk/models/operations/playlisttype.md) | :heavy_minus_sign: | limit to a type of playlist. | +| `smart` | [operations.QueryParamSmart](../../../sdk/models/operations/queryparamsmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistsresponse.md b/docs/sdk/models/operations/getplaylistsresponse.md new file mode 100644 index 00000000..760a7ab3 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistsresponse.md @@ -0,0 +1,49 @@ +# GetPlaylistsResponse + +## Example Usage + +```typescript +import { GetPlaylistsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistsResponse = { + contentType: "", + statusCode: 158969, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 4, + metadata: [ + { + ratingKey: "92", + key: "/playlists/92/items", + guid: "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903", + type: "playlist", + title: "Static Playlist", + summary: "A Great Playlist", + smart: false, + playlistType: "video", + composite: "/playlists/92/composite/1705716440", + icon: "playlist://image.smart", + viewCount: 1, + lastViewedAt: 1705716298, + duration: 7328000, + leafCount: 32, + addedAt: 1705716298, + updatedAt: 1705716440, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetPlaylistsResponseBody](../../../sdk/models/operations/getplaylistsresponsebody.md) | :heavy_minus_sign: | returns all playlists | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplaylistsresponsebody.md b/docs/sdk/models/operations/getplaylistsresponsebody.md new file mode 100644 index 00000000..0772c058 --- /dev/null +++ b/docs/sdk/models/operations/getplaylistsresponsebody.md @@ -0,0 +1,41 @@ +# GetPlaylistsResponseBody + +returns all playlists + +## Example Usage + +```typescript +import { GetPlaylistsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetPlaylistsResponseBody = { + mediaContainer: { + size: 4, + metadata: [ + { + ratingKey: "92", + key: "/playlists/92/items", + guid: "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903", + type: "playlist", + title: "Static Playlist", + summary: "A Great Playlist", + smart: false, + playlistType: "video", + composite: "/playlists/92/composite/1705716440", + icon: "playlist://image.smart", + viewCount: 1, + lastViewedAt: 1705716298, + duration: 7328000, + leafCount: 32, + addedAt: 1705716298, + updatedAt: 1705716440, + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetPlaylistsMediaContainer](../../../sdk/models/operations/getplaylistsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getrecentlyaddedmediacontainer.md b/docs/sdk/models/operations/getrecentlyaddedmediacontainer.md similarity index 55% rename from docs/models/getrecentlyaddedmediacontainer.md rename to docs/sdk/models/operations/getrecentlyaddedmediacontainer.md index e77dbc15..0701b80e 100644 --- a/docs/models/getrecentlyaddedmediacontainer.md +++ b/docs/sdk/models/operations/getrecentlyaddedmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRecentlyAddedMediaContainer } from "@lukehagar/plexjs"; +import { GetRecentlyAddedMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRecentlyAddedMediaContainer = { size: 50, @@ -100,12 +100,12 @@ let value: GetRecentlyAddedMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 50 | -| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1680021154 | -| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | | -| `metadata` | [models.GetRecentlyAddedMetadata](../models/getrecentlyaddedmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 50 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1680021154 | +| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | | +| `metadata` | [operations.GetRecentlyAddedMetadata](../../../sdk/models/operations/getrecentlyaddedmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getrecentlyaddedmetadata.md b/docs/sdk/models/operations/getrecentlyaddedmetadata.md similarity index 97% rename from docs/models/getrecentlyaddedmetadata.md rename to docs/sdk/models/operations/getrecentlyaddedmetadata.md index eab60610..3642d616 100644 --- a/docs/models/getrecentlyaddedmetadata.md +++ b/docs/sdk/models/operations/getrecentlyaddedmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRecentlyAddedMetadata } from "@lukehagar/plexjs"; +import { GetRecentlyAddedMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRecentlyAddedMetadata = { librarySectionID: 1, @@ -120,9 +120,9 @@ let value: GetRecentlyAddedMetadata = { | `chapterSource` | *string* | :heavy_minus_sign: | N/A | media | | `primaryExtraKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/59399 | | `ratingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.rotten | -| `media` | [models.GetRecentlyAddedMedia](../models/getrecentlyaddedmedia.md)[] | :heavy_minus_sign: | N/A | | -| `genre` | [models.Genre](../models/genre.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [models.Director](../models/director.md)[] | :heavy_minus_sign: | N/A | | -| `writer` | [models.Writer](../models/writer.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.Country](../models/country.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.Role](../models/role.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | [operations.Media](../../../sdk/models/operations/media.md)[] | :heavy_minus_sign: | N/A | | +| `genre` | [operations.Genre](../../../sdk/models/operations/genre.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [operations.Director](../../../sdk/models/operations/director.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [operations.Writer](../../../sdk/models/operations/writer.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.Country](../../../sdk/models/operations/country.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.Role](../../../sdk/models/operations/role.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getrecentlyaddedrequest.md b/docs/sdk/models/operations/getrecentlyaddedrequest.md similarity index 97% rename from docs/models/getrecentlyaddedrequest.md rename to docs/sdk/models/operations/getrecentlyaddedrequest.md index 7a8e5715..6e1a1989 100644 --- a/docs/models/getrecentlyaddedrequest.md +++ b/docs/sdk/models/operations/getrecentlyaddedrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRecentlyAddedRequest } from "@lukehagar/plexjs"; +import { GetRecentlyAddedRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRecentlyAddedRequest = { xPlexContainerStart: 0, diff --git a/docs/models/getrecentlyaddedresponse.md b/docs/sdk/models/operations/getrecentlyaddedresponse.md similarity index 68% rename from docs/models/getrecentlyaddedresponse.md rename to docs/sdk/models/operations/getrecentlyaddedresponse.md index 18e4bb71..db471292 100644 --- a/docs/models/getrecentlyaddedresponse.md +++ b/docs/sdk/models/operations/getrecentlyaddedresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRecentlyAddedResponse } from "@lukehagar/plexjs"; +import { GetRecentlyAddedResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRecentlyAddedResponse = { contentType: "", @@ -109,9 +109,9 @@ let value: GetRecentlyAddedResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetRecentlyAddedResponseBody](../models/getrecentlyaddedresponsebody.md) | :heavy_minus_sign: | The recently added content | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetRecentlyAddedResponseBody](../../../sdk/models/operations/getrecentlyaddedresponsebody.md) | :heavy_minus_sign: | The recently added content | \ No newline at end of file diff --git a/docs/models/getrecentlyaddedresponsebody.md b/docs/sdk/models/operations/getrecentlyaddedresponsebody.md similarity index 78% rename from docs/models/getrecentlyaddedresponsebody.md rename to docs/sdk/models/operations/getrecentlyaddedresponsebody.md index 6104350b..0d0b9fe4 100644 --- a/docs/models/getrecentlyaddedresponsebody.md +++ b/docs/sdk/models/operations/getrecentlyaddedresponsebody.md @@ -5,7 +5,7 @@ The recently added content ## Example Usage ```typescript -import { GetRecentlyAddedResponseBody } from "@lukehagar/plexjs"; +import { GetRecentlyAddedResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRecentlyAddedResponseBody = { mediaContainer: { @@ -104,6 +104,6 @@ let value: GetRecentlyAddedResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetRecentlyAddedMediaContainer](../models/getrecentlyaddedmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetRecentlyAddedMediaContainer](../../../sdk/models/operations/getrecentlyaddedmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getrefreshlibrarymetadatarequest.md b/docs/sdk/models/operations/getrefreshlibrarymetadatarequest.md similarity index 92% rename from docs/models/getrefreshlibrarymetadatarequest.md rename to docs/sdk/models/operations/getrefreshlibrarymetadatarequest.md index 832f6288..11fc6b95 100644 --- a/docs/models/getrefreshlibrarymetadatarequest.md +++ b/docs/sdk/models/operations/getrefreshlibrarymetadatarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Force, GetRefreshLibraryMetadataRequest } from "@lukehagar/plexjs"; +import { Force, GetRefreshLibraryMetadataRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRefreshLibraryMetadataRequest = { sectionKey: 9518, @@ -16,4 +16,4 @@ let value: GetRefreshLibraryMetadataRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | -| `force` | [models.Force](../models/force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | 0 | \ No newline at end of file +| `force` | [operations.Force](../../../sdk/models/operations/force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | 0 | \ No newline at end of file diff --git a/docs/models/getrefreshlibrarymetadataresponse.md b/docs/sdk/models/operations/getrefreshlibrarymetadataresponse.md similarity index 98% rename from docs/models/getrefreshlibrarymetadataresponse.md rename to docs/sdk/models/operations/getrefreshlibrarymetadataresponse.md index 767584df..922675bd 100644 --- a/docs/models/getrefreshlibrarymetadataresponse.md +++ b/docs/sdk/models/operations/getrefreshlibrarymetadataresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRefreshLibraryMetadataResponse } from "@lukehagar/plexjs"; +import { GetRefreshLibraryMetadataResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetRefreshLibraryMetadataResponse = { contentType: "", diff --git a/docs/models/getresizedphotorequest.md b/docs/sdk/models/operations/getresizedphotorequest.md similarity index 95% rename from docs/models/getresizedphotorequest.md rename to docs/sdk/models/operations/getresizedphotorequest.md index 87331461..679b5629 100644 --- a/docs/models/getresizedphotorequest.md +++ b/docs/sdk/models/operations/getresizedphotorequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetResizedPhotoRequest, MinSize, Upscale } from "@lukehagar/plexjs"; +import { GetResizedPhotoRequest, MinSize, Upscale } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetResizedPhotoRequest = { width: 110, @@ -24,6 +24,6 @@ let value: GetResizedPhotoRequest = { | `height` | *number* | :heavy_check_mark: | The height for the resized photo | 165 | | `opacity` | *number* | :heavy_check_mark: | The opacity for the resized photo | | | `blur` | *number* | :heavy_check_mark: | The width for the resized photo | 0 | -| `minSize` | [models.MinSize](../models/minsize.md) | :heavy_check_mark: | images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. | | -| `upscale` | [models.Upscale](../models/upscale.md) | :heavy_check_mark: | allow images to be resized beyond native dimensions. | | +| `minSize` | [operations.MinSize](../../../sdk/models/operations/minsize.md) | :heavy_check_mark: | images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. | | +| `upscale` | [operations.Upscale](../../../sdk/models/operations/upscale.md) | :heavy_check_mark: | allow images to be resized beyond native dimensions. | | | `url` | *string* | :heavy_check_mark: | path to image within Plex | /library/metadata/49564/thumb/1654258204 | \ No newline at end of file diff --git a/docs/models/getresizedphotoresponse.md b/docs/sdk/models/operations/getresizedphotoresponse.md similarity index 95% rename from docs/models/getresizedphotoresponse.md rename to docs/sdk/models/operations/getresizedphotoresponse.md index 7dd527eb..f7324e42 100644 --- a/docs/models/getresizedphotoresponse.md +++ b/docs/sdk/models/operations/getresizedphotoresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetResizedPhotoResponse } from "@lukehagar/plexjs"; +import { GetResizedPhotoResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetResizedPhotoResponse = { contentType: "", diff --git a/docs/sdk/models/operations/getresourcesstatisticsmediacontainer.md b/docs/sdk/models/operations/getresourcesstatisticsmediacontainer.md new file mode 100644 index 00000000..cf7514d6 --- /dev/null +++ b/docs/sdk/models/operations/getresourcesstatisticsmediacontainer.md @@ -0,0 +1,28 @@ +# GetResourcesStatisticsMediaContainer + +## Example Usage + +```typescript +import { GetResourcesStatisticsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetResourcesStatisticsMediaContainer = { + size: 5497, + statisticsResources: [ + { + timespan: 6, + at: 1718384427, + hostCpuUtilization: 1.276, + processCpuUtilization: 0.025, + hostMemoryUtilization: 17.026, + processMemoryUtilization: 0.493, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 5497 | +| `statisticsResources` | [operations.StatisticsResources](../../../sdk/models/operations/statisticsresources.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getresourcesstatisticsrequest.md b/docs/sdk/models/operations/getresourcesstatisticsrequest.md similarity index 98% rename from docs/models/getresourcesstatisticsrequest.md rename to docs/sdk/models/operations/getresourcesstatisticsrequest.md index 1268f8ac..69bc1da4 100644 --- a/docs/models/getresourcesstatisticsrequest.md +++ b/docs/sdk/models/operations/getresourcesstatisticsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetResourcesStatisticsRequest } from "@lukehagar/plexjs"; +import { GetResourcesStatisticsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetResourcesStatisticsRequest = { timespan: 4, diff --git a/docs/sdk/models/operations/getresourcesstatisticsresponse.md b/docs/sdk/models/operations/getresourcesstatisticsresponse.md new file mode 100644 index 00000000..802ad68e --- /dev/null +++ b/docs/sdk/models/operations/getresourcesstatisticsresponse.md @@ -0,0 +1,39 @@ +# GetResourcesStatisticsResponse + +## Example Usage + +```typescript +import { GetResourcesStatisticsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetResourcesStatisticsResponse = { + contentType: "", + statusCode: 523248, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 5497, + statisticsResources: [ + { + timespan: 6, + at: 1718384427, + hostCpuUtilization: 1.276, + processCpuUtilization: 0.025, + hostMemoryUtilization: 17.026, + processMemoryUtilization: 0.493, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetResourcesStatisticsResponseBody](../../../sdk/models/operations/getresourcesstatisticsresponsebody.md) | :heavy_minus_sign: | Resource Statistics | \ No newline at end of file diff --git a/docs/sdk/models/operations/getresourcesstatisticsresponsebody.md b/docs/sdk/models/operations/getresourcesstatisticsresponsebody.md new file mode 100644 index 00000000..316a5741 --- /dev/null +++ b/docs/sdk/models/operations/getresourcesstatisticsresponsebody.md @@ -0,0 +1,31 @@ +# GetResourcesStatisticsResponseBody + +Resource Statistics + +## Example Usage + +```typescript +import { GetResourcesStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetResourcesStatisticsResponseBody = { + mediaContainer: { + size: 5497, + statisticsResources: [ + { + timespan: 6, + at: 1718384427, + hostCpuUtilization: 1.276, + processCpuUtilization: 0.025, + hostMemoryUtilization: 17.026, + processMemoryUtilization: 0.493, + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetResourcesStatisticsMediaContainer](../../../sdk/models/operations/getresourcesstatisticsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsearchlibrarymediacontainer.md b/docs/sdk/models/operations/getsearchlibrarymediacontainer.md new file mode 100644 index 00000000..2d58873f --- /dev/null +++ b/docs/sdk/models/operations/getsearchlibrarymediacontainer.md @@ -0,0 +1,65 @@ +# GetSearchLibraryMediaContainer + +## Example Usage + +```typescript +import { GetSearchLibraryMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetSearchLibraryMediaContainer = { + 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: [ + { + ratingKey: "2", + key: "/library/metadata/2/children", + parentRatingKey: "1", + guid: "plex://season/602e67e766dfdb002c0a1b5b", + parentGuid: "plex://show/5d9c086c7d06d9001ffd27aa", + parentStudio: "Mutant Enemy Productions", + type: "season", + title: "Season 1", + parentKey: "/library/metadata/1", + parentTitle: "Firefly", + summary: + "Captain Malcolm 'Mal' Reynolds is a former galactic war veteran who is the captain of the transport ship \"Serenity\". Mal and his crew, ensign Zoe Alleyne Washburne; Zoe's husband, pilot Hoban 'Wash' Washburne; muscular mercenary Jayne Cobb; young mechanic Kaylee Frye; former Alliance medical officer Simon Tam; his disturbed teenage sister River (both on the run from the interplanetary government \"The Alliance\"); the beautiful courtesan Inara Serra; and preacher Shepherd Book do any jobs, legal or illegal, they can find as the Serenity crew travels across the outskirts of outer space.", + index: 1, + parentIndex: 1, + parentYear: 2002, + thumb: "/library/metadata/2/thumb/1705636920", + art: "/library/metadata/1/art/1705636920", + parentThumb: "/library/metadata/1/thumb/1705636920", + parentTheme: "/library/metadata/1/theme/1705636920", + addedAt: 1705636916, + updatedAt: 1705636920, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 2 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | false | +| `art` | *string* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1698860922 | +| `nocache` | *boolean* | :heavy_minus_sign: | N/A | true | +| `thumb` | *string* | :heavy_minus_sign: | N/A | /:/resources/show.png | +| `title1` | *string* | :heavy_minus_sign: | N/A | TV Shows | +| `title2` | *string* | :heavy_minus_sign: | N/A | Search for '' | +| `viewGroup` | *string* | :heavy_minus_sign: | N/A | season | +| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65593 | +| `metadata` | [operations.GetSearchLibraryMetadata](../../../sdk/models/operations/getsearchlibrarymetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsearchlibrarymetadata.md b/docs/sdk/models/operations/getsearchlibrarymetadata.md similarity index 99% rename from docs/models/getsearchlibrarymetadata.md rename to docs/sdk/models/operations/getsearchlibrarymetadata.md index bbc2facf..8e4b8073 100644 --- a/docs/models/getsearchlibrarymetadata.md +++ b/docs/sdk/models/operations/getsearchlibrarymetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchLibraryMetadata } from "@lukehagar/plexjs"; +import { GetSearchLibraryMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchLibraryMetadata = { ratingKey: "2", diff --git a/docs/models/getsearchlibraryrequest.md b/docs/sdk/models/operations/getsearchlibraryrequest.md similarity index 94% rename from docs/models/getsearchlibraryrequest.md rename to docs/sdk/models/operations/getsearchlibraryrequest.md index 97b4141f..01a9826a 100644 --- a/docs/models/getsearchlibraryrequest.md +++ b/docs/sdk/models/operations/getsearchlibraryrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchLibraryRequest, QueryParamType } from "@lukehagar/plexjs"; +import { GetSearchLibraryRequest, QueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchLibraryRequest = { sectionKey: 9518, @@ -16,4 +16,4 @@ let value: GetSearchLibraryRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | -| `type` | [models.QueryParamType](../models/queryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file +| `type` | [operations.QueryParamType](../../../sdk/models/operations/queryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file diff --git a/docs/models/getsearchlibraryresponse.md b/docs/sdk/models/operations/getsearchlibraryresponse.md similarity index 56% rename from docs/models/getsearchlibraryresponse.md rename to docs/sdk/models/operations/getsearchlibraryresponse.md index e65a7e80..0cf87d2a 100644 --- a/docs/models/getsearchlibraryresponse.md +++ b/docs/sdk/models/operations/getsearchlibraryresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchLibraryResponse } from "@lukehagar/plexjs"; +import { GetSearchLibraryResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchLibraryResponse = { contentType: "", @@ -57,9 +57,9 @@ let value: GetSearchLibraryResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetSearchLibraryResponseBody](../models/getsearchlibraryresponsebody.md) | :heavy_minus_sign: | The contents of the library by section and type | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetSearchLibraryResponseBody](../../../sdk/models/operations/getsearchlibraryresponsebody.md) | :heavy_minus_sign: | The contents of the library by section and type | \ No newline at end of file diff --git a/docs/models/getsearchlibraryresponsebody.md b/docs/sdk/models/operations/getsearchlibraryresponsebody.md similarity index 69% rename from docs/models/getsearchlibraryresponsebody.md rename to docs/sdk/models/operations/getsearchlibraryresponsebody.md index 1ae9bbdc..8f5c9ab8 100644 --- a/docs/models/getsearchlibraryresponsebody.md +++ b/docs/sdk/models/operations/getsearchlibraryresponsebody.md @@ -5,7 +5,7 @@ The contents of the library by section and type ## Example Usage ```typescript -import { GetSearchLibraryResponseBody } from "@lukehagar/plexjs"; +import { GetSearchLibraryResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchLibraryResponseBody = { mediaContainer: { @@ -52,6 +52,6 @@ let value: GetSearchLibraryResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetSearchLibraryMediaContainer](../models/getsearchlibrarymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSearchLibraryMediaContainer](../../../sdk/models/operations/getsearchlibrarymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchresultscountry.md b/docs/sdk/models/operations/getsearchresultscountry.md similarity index 87% rename from docs/models/getsearchresultscountry.md rename to docs/sdk/models/operations/getsearchresultscountry.md index 235da461..eb552625 100644 --- a/docs/models/getsearchresultscountry.md +++ b/docs/sdk/models/operations/getsearchresultscountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsCountry } from "@lukehagar/plexjs"; +import { GetSearchResultsCountry } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsCountry = { tag: "United States of America", diff --git a/docs/models/getsearchresultsdirector.md b/docs/sdk/models/operations/getsearchresultsdirector.md similarity index 84% rename from docs/models/getsearchresultsdirector.md rename to docs/sdk/models/operations/getsearchresultsdirector.md index c3d0a437..d13d0d0e 100644 --- a/docs/models/getsearchresultsdirector.md +++ b/docs/sdk/models/operations/getsearchresultsdirector.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsDirector } from "@lukehagar/plexjs"; +import { GetSearchResultsDirector } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsDirector = { tag: "Brian De Palma", diff --git a/docs/models/getsearchresultsgenre.md b/docs/sdk/models/operations/getsearchresultsgenre.md similarity index 84% rename from docs/models/getsearchresultsgenre.md rename to docs/sdk/models/operations/getsearchresultsgenre.md index 7e3739d5..c613ffc4 100644 --- a/docs/models/getsearchresultsgenre.md +++ b/docs/sdk/models/operations/getsearchresultsgenre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsGenre } from "@lukehagar/plexjs"; +import { GetSearchResultsGenre } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsGenre = { tag: "Action", diff --git a/docs/sdk/models/operations/getsearchresultsmedia.md b/docs/sdk/models/operations/getsearchresultsmedia.md new file mode 100644 index 00000000..0a458d83 --- /dev/null +++ b/docs/sdk/models/operations/getsearchresultsmedia.md @@ -0,0 +1,56 @@ +# GetSearchResultsMedia + +## Example Usage + +```typescript +import { GetSearchResultsMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetSearchResultsMedia = { + id: 26610, + duration: 6612628, + bitrate: 4751, + width: 1916, + height: 796, + aspectRatio: 2.35, + audioChannels: 6, + audioCodec: "aac", + videoCodec: "hevc", + videoResolution: 1080, + container: "mkv", + videoFrameRate: "24p", + audioProfile: "lc", + videoProfile: "main 10", + part: [ + { + id: 26610, + key: "/library/parts/26610/1589234571/file.mkv", + duration: 6612628, + file: "/movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv", + size: 3926903851, + audioProfile: "lc", + container: "mkv", + videoProfile: "main 10", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 26610 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 6612628 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 4751 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1916 | +| `height` | *number* | :heavy_minus_sign: | N/A | 796 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *number* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *string* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `audioProfile` | *string* | :heavy_minus_sign: | N/A | lc | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 | +| `part` | [operations.GetSearchResultsPart](../../../sdk/models/operations/getsearchresultspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsearchresultsmediacontainer.md b/docs/sdk/models/operations/getsearchresultsmediacontainer.md similarity index 58% rename from docs/models/getsearchresultsmediacontainer.md rename to docs/sdk/models/operations/getsearchresultsmediacontainer.md index 3d63d742..fab02eba 100644 --- a/docs/models/getsearchresultsmediacontainer.md +++ b/docs/sdk/models/operations/getsearchresultsmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsMediaContainer } from "@lukehagar/plexjs"; +import { GetSearchResultsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsMediaContainer = { size: 26, @@ -108,11 +108,11 @@ let value: GetSearchResultsMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 26 | -| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1680021154 | -| `metadata` | [models.GetSearchResultsMetadata](../models/getsearchresultsmetadata.md)[] | :heavy_minus_sign: | N/A | | -| `provider` | [models.Provider](../models/provider.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 26 | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1680021154 | +| `metadata` | [operations.GetSearchResultsMetadata](../../../sdk/models/operations/getsearchresultsmetadata.md)[] | :heavy_minus_sign: | N/A | | +| `provider` | [operations.Provider](../../../sdk/models/operations/provider.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsearchresultsmetadata.md b/docs/sdk/models/operations/getsearchresultsmetadata.md similarity index 97% rename from docs/models/getsearchresultsmetadata.md rename to docs/sdk/models/operations/getsearchresultsmetadata.md index 61c11e7b..c736a84e 100644 --- a/docs/models/getsearchresultsmetadata.md +++ b/docs/sdk/models/operations/getsearchresultsmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsMetadata } from "@lukehagar/plexjs"; +import { GetSearchResultsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsMetadata = { librarySectionID: 1, @@ -123,9 +123,9 @@ let value: GetSearchResultsMetadata = { | `chapterSource` | *string* | :heavy_minus_sign: | N/A | media | | `primaryExtraKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/10501 | | `ratingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | [models.GetSearchResultsMedia](../models/getsearchresultsmedia.md)[] | :heavy_minus_sign: | N/A | | -| `genre` | [models.GetSearchResultsGenre](../models/getsearchresultsgenre.md)[] | :heavy_minus_sign: | N/A | | -| `director` | [models.GetSearchResultsDirector](../models/getsearchresultsdirector.md)[] | :heavy_minus_sign: | N/A | | -| `writer` | [models.GetSearchResultsWriter](../models/getsearchresultswriter.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.GetSearchResultsCountry](../models/getsearchresultscountry.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.GetSearchResultsRole](../models/getsearchresultsrole.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | [operations.GetSearchResultsMedia](../../../sdk/models/operations/getsearchresultsmedia.md)[] | :heavy_minus_sign: | N/A | | +| `genre` | [operations.GetSearchResultsGenre](../../../sdk/models/operations/getsearchresultsgenre.md)[] | :heavy_minus_sign: | N/A | | +| `director` | [operations.GetSearchResultsDirector](../../../sdk/models/operations/getsearchresultsdirector.md)[] | :heavy_minus_sign: | N/A | | +| `writer` | [operations.GetSearchResultsWriter](../../../sdk/models/operations/getsearchresultswriter.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.GetSearchResultsCountry](../../../sdk/models/operations/getsearchresultscountry.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.GetSearchResultsRole](../../../sdk/models/operations/getsearchresultsrole.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsearchresultspart.md b/docs/sdk/models/operations/getsearchresultspart.md similarity index 98% rename from docs/models/getsearchresultspart.md rename to docs/sdk/models/operations/getsearchresultspart.md index 5739da90..a8d71077 100644 --- a/docs/models/getsearchresultspart.md +++ b/docs/sdk/models/operations/getsearchresultspart.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsPart } from "@lukehagar/plexjs"; +import { GetSearchResultsPart } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsPart = { id: 26610, diff --git a/docs/models/getsearchresultsrequest.md b/docs/sdk/models/operations/getsearchresultsrequest.md similarity index 88% rename from docs/models/getsearchresultsrequest.md rename to docs/sdk/models/operations/getsearchresultsrequest.md index 5b9c3e2c..7e592c6d 100644 --- a/docs/models/getsearchresultsrequest.md +++ b/docs/sdk/models/operations/getsearchresultsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsRequest } from "@lukehagar/plexjs"; +import { GetSearchResultsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsRequest = { query: "110", diff --git a/docs/models/getsearchresultsresponse.md b/docs/sdk/models/operations/getsearchresultsresponse.md similarity index 69% rename from docs/models/getsearchresultsresponse.md rename to docs/sdk/models/operations/getsearchresultsresponse.md index da62f9d0..e0e555b1 100644 --- a/docs/models/getsearchresultsresponse.md +++ b/docs/sdk/models/operations/getsearchresultsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsResponse } from "@lukehagar/plexjs"; +import { GetSearchResultsResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsResponse = { contentType: "", @@ -117,9 +117,9 @@ let value: GetSearchResultsResponse = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetSearchResultsResponseBody](../models/getsearchresultsresponsebody.md) | :heavy_minus_sign: | Search Results | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetSearchResultsResponseBody](../../../sdk/models/operations/getsearchresultsresponsebody.md) | :heavy_minus_sign: | Search Results | \ No newline at end of file diff --git a/docs/models/getsearchresultsresponsebody.md b/docs/sdk/models/operations/getsearchresultsresponsebody.md similarity index 79% rename from docs/models/getsearchresultsresponsebody.md rename to docs/sdk/models/operations/getsearchresultsresponsebody.md index 1673e709..1fb0c5e2 100644 --- a/docs/models/getsearchresultsresponsebody.md +++ b/docs/sdk/models/operations/getsearchresultsresponsebody.md @@ -5,7 +5,7 @@ Search Results ## Example Usage ```typescript -import { GetSearchResultsResponseBody } from "@lukehagar/plexjs"; +import { GetSearchResultsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsResponseBody = { mediaContainer: { @@ -112,6 +112,6 @@ let value: GetSearchResultsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetSearchResultsMediaContainer](../models/getsearchresultsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSearchResultsMediaContainer](../../../sdk/models/operations/getsearchresultsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchresultsrole.md b/docs/sdk/models/operations/getsearchresultsrole.md similarity index 85% rename from docs/models/getsearchresultsrole.md rename to docs/sdk/models/operations/getsearchresultsrole.md index c64d9bd0..7b08374c 100644 --- a/docs/models/getsearchresultsrole.md +++ b/docs/sdk/models/operations/getsearchresultsrole.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsRole } from "@lukehagar/plexjs"; +import { GetSearchResultsRole } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsRole = { tag: "Tom Cruise", diff --git a/docs/models/getsearchresultswriter.md b/docs/sdk/models/operations/getsearchresultswriter.md similarity index 84% rename from docs/models/getsearchresultswriter.md rename to docs/sdk/models/operations/getsearchresultswriter.md index cf1fe421..2fbee9d8 100644 --- a/docs/models/getsearchresultswriter.md +++ b/docs/sdk/models/operations/getsearchresultswriter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSearchResultsWriter } from "@lukehagar/plexjs"; +import { GetSearchResultsWriter } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSearchResultsWriter = { tag: "David Koepp", diff --git a/docs/sdk/models/operations/getserveractivitiesmediacontainer.md b/docs/sdk/models/operations/getserveractivitiesmediacontainer.md new file mode 100644 index 00000000..ab641525 --- /dev/null +++ b/docs/sdk/models/operations/getserveractivitiesmediacontainer.md @@ -0,0 +1,16 @@ +# GetServerActivitiesMediaContainer + +## Example Usage + +```typescript +import { GetServerActivitiesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerActivitiesMediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | +| `activity` | [operations.Activity](../../../sdk/models/operations/activity.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserveractivitiesresponse.md b/docs/sdk/models/operations/getserveractivitiesresponse.md new file mode 100644 index 00000000..10c5c8dc --- /dev/null +++ b/docs/sdk/models/operations/getserveractivitiesresponse.md @@ -0,0 +1,24 @@ +# GetServerActivitiesResponse + +## Example Usage + +```typescript +import { GetServerActivitiesResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerActivitiesResponse = { + contentType: "", + statusCode: 477665, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetServerActivitiesResponseBody](../../../sdk/models/operations/getserveractivitiesresponsebody.md) | :heavy_minus_sign: | The Server Activities | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserveractivitiesresponsebody.md b/docs/sdk/models/operations/getserveractivitiesresponsebody.md new file mode 100644 index 00000000..2faf4db9 --- /dev/null +++ b/docs/sdk/models/operations/getserveractivitiesresponsebody.md @@ -0,0 +1,17 @@ +# GetServerActivitiesResponseBody + +The Server Activities + +## Example Usage + +```typescript +import { GetServerActivitiesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerActivitiesResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetServerActivitiesMediaContainer](../../../sdk/models/operations/getserveractivitiesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getservercapabilitiesresponse.md b/docs/sdk/models/operations/getservercapabilitiesresponse.md new file mode 100644 index 00000000..9a85da48 --- /dev/null +++ b/docs/sdk/models/operations/getservercapabilitiesresponse.md @@ -0,0 +1,24 @@ +# GetServerCapabilitiesResponse + +## Example Usage + +```typescript +import { GetServerCapabilitiesResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerCapabilitiesResponse = { + contentType: "", + statusCode: 548814, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetServerCapabilitiesResponseBody](../../../sdk/models/operations/getservercapabilitiesresponsebody.md) | :heavy_minus_sign: | The Server Capabilities | \ No newline at end of file diff --git a/docs/sdk/models/operations/getservercapabilitiesresponsebody.md b/docs/sdk/models/operations/getservercapabilitiesresponsebody.md new file mode 100644 index 00000000..37896cfb --- /dev/null +++ b/docs/sdk/models/operations/getservercapabilitiesresponsebody.md @@ -0,0 +1,17 @@ +# GetServerCapabilitiesResponseBody + +The Server Capabilities + +## Example Usage + +```typescript +import { GetServerCapabilitiesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerCapabilitiesResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `mediaContainer` | [operations.MediaContainer](../../../sdk/models/operations/mediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserveridentitymediacontainer.md b/docs/sdk/models/operations/getserveridentitymediacontainer.md similarity index 98% rename from docs/models/getserveridentitymediacontainer.md rename to docs/sdk/models/operations/getserveridentitymediacontainer.md index 16157de6..b6db7196 100644 --- a/docs/models/getserveridentitymediacontainer.md +++ b/docs/sdk/models/operations/getserveridentitymediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerIdentityMediaContainer } from "@lukehagar/plexjs"; +import { GetServerIdentityMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetServerIdentityMediaContainer = { size: 0, diff --git a/docs/sdk/models/operations/getserveridentityresponse.md b/docs/sdk/models/operations/getserveridentityresponse.md new file mode 100644 index 00000000..8ef2bc3a --- /dev/null +++ b/docs/sdk/models/operations/getserveridentityresponse.md @@ -0,0 +1,31 @@ +# GetServerIdentityResponse + +## Example Usage + +```typescript +import { GetServerIdentityResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerIdentityResponse = { + contentType: "", + statusCode: 602763, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 0, + machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", + version: "1.31.3.6868-28fc46b27", + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetServerIdentityResponseBody](../../../sdk/models/operations/getserveridentityresponsebody.md) | :heavy_minus_sign: | The Server Identity information | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserveridentityresponsebody.md b/docs/sdk/models/operations/getserveridentityresponsebody.md new file mode 100644 index 00000000..e89be2df --- /dev/null +++ b/docs/sdk/models/operations/getserveridentityresponsebody.md @@ -0,0 +1,23 @@ +# GetServerIdentityResponseBody + +The Server Identity information + +## Example Usage + +```typescript +import { GetServerIdentityResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerIdentityResponseBody = { + mediaContainer: { + size: 0, + machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", + version: "1.31.3.6868-28fc46b27", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetServerIdentityMediaContainer](../../../sdk/models/operations/getserveridentitymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverlistmediacontainer.md b/docs/sdk/models/operations/getserverlistmediacontainer.md new file mode 100644 index 00000000..4834c744 --- /dev/null +++ b/docs/sdk/models/operations/getserverlistmediacontainer.md @@ -0,0 +1,28 @@ +# GetServerListMediaContainer + +## Example Usage + +```typescript +import { GetServerListMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerListMediaContainer = { + size: 1, + server: [ + { + name: "Hera", + host: "10.10.10.47", + address: "10.10.10.47", + port: 32400, + machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", + version: "1.31.3.6868-28fc46b27", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `server` | [operations.GetServerListServer](../../../sdk/models/operations/getserverlistserver.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverlistresponse.md b/docs/sdk/models/operations/getserverlistresponse.md new file mode 100644 index 00000000..af9b3b50 --- /dev/null +++ b/docs/sdk/models/operations/getserverlistresponse.md @@ -0,0 +1,39 @@ +# GetServerListResponse + +## Example Usage + +```typescript +import { GetServerListResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerListResponse = { + contentType: "", + statusCode: 297534, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 1, + server: [ + { + name: "Hera", + host: "10.10.10.47", + address: "10.10.10.47", + port: 32400, + machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", + version: "1.31.3.6868-28fc46b27", + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetServerListResponseBody](../../../sdk/models/operations/getserverlistresponsebody.md) | :heavy_minus_sign: | List of Servers | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverlistresponsebody.md b/docs/sdk/models/operations/getserverlistresponsebody.md new file mode 100644 index 00000000..2566183d --- /dev/null +++ b/docs/sdk/models/operations/getserverlistresponsebody.md @@ -0,0 +1,31 @@ +# GetServerListResponseBody + +List of Servers + +## Example Usage + +```typescript +import { GetServerListResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerListResponseBody = { + mediaContainer: { + size: 1, + server: [ + { + name: "Hera", + host: "10.10.10.47", + address: "10.10.10.47", + port: 32400, + machineIdentifier: "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", + version: "1.31.3.6868-28fc46b27", + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetServerListMediaContainer](../../../sdk/models/operations/getserverlistmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserverlistserver.md b/docs/sdk/models/operations/getserverlistserver.md similarity index 96% rename from docs/models/getserverlistserver.md rename to docs/sdk/models/operations/getserverlistserver.md index 95ccbf7f..5794c81f 100644 --- a/docs/models/getserverlistserver.md +++ b/docs/sdk/models/operations/getserverlistserver.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerListServer } from "@lukehagar/plexjs"; +import { GetServerListServer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetServerListServer = { name: "Hera", diff --git a/docs/sdk/models/operations/getserverpreferencesmediacontainer.md b/docs/sdk/models/operations/getserverpreferencesmediacontainer.md new file mode 100644 index 00000000..b0af3191 --- /dev/null +++ b/docs/sdk/models/operations/getserverpreferencesmediacontainer.md @@ -0,0 +1,32 @@ +# GetServerPreferencesMediaContainer + +## Example Usage + +```typescript +import { GetServerPreferencesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerPreferencesMediaContainer = { + size: 161, + setting: [ + { + id: "EnableDatabaseTrace", + label: "", + summary: "", + type: "bool", + default: false, + value: false, + hidden: true, + advanced: false, + group: "", + enumValues: "1:admin only|2:everyone", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 161 | +| `setting` | [operations.Setting](../../../sdk/models/operations/setting.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverpreferencesresponse.md b/docs/sdk/models/operations/getserverpreferencesresponse.md new file mode 100644 index 00000000..a722b3e2 --- /dev/null +++ b/docs/sdk/models/operations/getserverpreferencesresponse.md @@ -0,0 +1,43 @@ +# GetServerPreferencesResponse + +## Example Usage + +```typescript +import { GetServerPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerPreferencesResponse = { + contentType: "", + statusCode: 592845, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 161, + setting: [ + { + id: "EnableDatabaseTrace", + label: "", + summary: "", + type: "bool", + default: false, + value: false, + hidden: true, + advanced: false, + group: "", + enumValues: "1:admin only|2:everyone", + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetServerPreferencesResponseBody](../../../sdk/models/operations/getserverpreferencesresponsebody.md) | :heavy_minus_sign: | Server Preferences | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverpreferencesresponsebody.md b/docs/sdk/models/operations/getserverpreferencesresponsebody.md new file mode 100644 index 00000000..47235cae --- /dev/null +++ b/docs/sdk/models/operations/getserverpreferencesresponsebody.md @@ -0,0 +1,35 @@ +# GetServerPreferencesResponseBody + +Server Preferences + +## Example Usage + +```typescript +import { GetServerPreferencesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerPreferencesResponseBody = { + mediaContainer: { + size: 161, + setting: [ + { + id: "EnableDatabaseTrace", + label: "", + summary: "", + type: "bool", + default: false, + value: false, + hidden: true, + advanced: false, + group: "", + enumValues: "1:admin only|2:everyone", + }, + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetServerPreferencesMediaContainer](../../../sdk/models/operations/getserverpreferencesmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getserverresourcesglobals.md b/docs/sdk/models/operations/getserverresourcesglobals.md similarity index 96% rename from docs/models/getserverresourcesglobals.md rename to docs/sdk/models/operations/getserverresourcesglobals.md index 3daa48da..e634d779 100644 --- a/docs/models/getserverresourcesglobals.md +++ b/docs/sdk/models/operations/getserverresourcesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerResourcesGlobals } from "@lukehagar/plexjs"; +import { GetServerResourcesGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetServerResourcesGlobals = {}; ``` diff --git a/docs/models/getserverresourcesrequest.md b/docs/sdk/models/operations/getserverresourcesrequest.md similarity index 92% rename from docs/models/getserverresourcesrequest.md rename to docs/sdk/models/operations/getserverresourcesrequest.md index 1222101c..28ba8fc1 100644 --- a/docs/models/getserverresourcesrequest.md +++ b/docs/sdk/models/operations/getserverresourcesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetServerResourcesRequest, IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs"; +import { GetServerResourcesRequest, IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetServerResourcesRequest = { xPlexToken: "CV5xoxjTpFKUzBTShsaf", @@ -19,6 +19,6 @@ let value: GetServerResourcesRequest = { | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | | `xPlexToken` | *string* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | -| `includeHttps` | [models.IncludeHttps](../models/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | -| `includeRelay` | [models.IncludeRelay](../models/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | -| `includeIPv6` | [models.IncludeIPv6](../models/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file +| `includeHttps` | [operations.IncludeHttps](../../../sdk/models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `includeRelay` | [operations.IncludeRelay](../../../sdk/models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `includeIPv6` | [operations.IncludeIPv6](../../../sdk/models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getserverresourcesresponse.md b/docs/sdk/models/operations/getserverresourcesresponse.md new file mode 100644 index 00000000..d5e8953b --- /dev/null +++ b/docs/sdk/models/operations/getserverresourcesresponse.md @@ -0,0 +1,24 @@ +# GetServerResourcesResponse + +## Example Usage + +```typescript +import { GetServerResourcesResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetServerResourcesResponse = { + contentType: "", + statusCode: 568434, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `plexDevices` | [operations.PlexDevice](../../../sdk/models/operations/plexdevice.md)[] | :heavy_minus_sign: | List of Plex Devices. This includes Plex hosted servers and clients | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionhistorymediacontainer.md b/docs/sdk/models/operations/getsessionhistorymediacontainer.md new file mode 100644 index 00000000..9f55e5d9 --- /dev/null +++ b/docs/sdk/models/operations/getsessionhistorymediacontainer.md @@ -0,0 +1,42 @@ +# GetSessionHistoryMediaContainer + +## Example Usage + +```typescript +import { GetSessionHistoryMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; + +let value: GetSessionHistoryMediaContainer = { + size: 10855, + metadata: [ + { + historyKey: "/status/sessions/history/1", + key: "/library/metadata/32171", + ratingKey: "32171", + librarySectionID: "2", + parentKey: "/library/metadata/32170", + grandparentKey: "/library/metadata/32132", + title: "The Noise That Blue Makes", + grandparentTitle: "Taskmaster", + type: "episode", + thumb: "/library/metadata/32171/thumb/-1", + parentThumb: "/library/metadata/32170/thumb/1654134301", + grandparentThumb: "/library/metadata/32132/thumb/1703933346", + grandparentArt: "/library/metadata/32132/art/1703933346", + index: 1, + parentIndex: 13, + originallyAvailableAt: new RFCDate("2022-04-14T00:00:00Z"), + viewedAt: 1654139223, + accountID: 1, + deviceID: 5, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 10855 | +| `metadata` | [operations.GetSessionHistoryMetadata](../../../sdk/models/operations/getsessionhistorymetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionhistorymetadata.md b/docs/sdk/models/operations/getsessionhistorymetadata.md similarity index 95% rename from docs/models/getsessionhistorymetadata.md rename to docs/sdk/models/operations/getsessionhistorymetadata.md index 6a2791ca..76089160 100644 --- a/docs/models/getsessionhistorymetadata.md +++ b/docs/sdk/models/operations/getsessionhistorymetadata.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetSessionHistoryMetadata } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetSessionHistoryMetadata } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetSessionHistoryMetadata = { historyKey: "/status/sessions/history/1", @@ -48,7 +48,7 @@ let value: GetSessionHistoryMetadata = { | `grandparentArt` | *string* | :heavy_minus_sign: | N/A | /library/metadata/32132/art/1703933346 | | `index` | *number* | :heavy_minus_sign: | N/A | 1 | | `parentIndex` | *number* | :heavy_minus_sign: | N/A | 13 | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2022-04-14 00:00:00 +0000 UTC | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2022-04-14 00:00:00 +0000 UTC | | `viewedAt` | *number* | :heavy_minus_sign: | N/A | 1654139223 | | `accountID` | *number* | :heavy_minus_sign: | N/A | 1 | | `deviceID` | *number* | :heavy_minus_sign: | N/A | 5 | \ No newline at end of file diff --git a/docs/models/getsessionhistoryrequest.md b/docs/sdk/models/operations/getsessionhistoryrequest.md similarity index 96% rename from docs/models/getsessionhistoryrequest.md rename to docs/sdk/models/operations/getsessionhistoryrequest.md index 0eca08a5..49fd7a6c 100644 --- a/docs/models/getsessionhistoryrequest.md +++ b/docs/sdk/models/operations/getsessionhistoryrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionHistoryRequest } from "@lukehagar/plexjs"; +import { GetSessionHistoryRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionHistoryRequest = { accountId: 1, @@ -18,5 +18,5 @@ let value: GetSessionHistoryRequest = { | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `sort` | *string* | :heavy_minus_sign: | Sorts the results by the specified field followed by the direction (asc, desc)
| | | `accountId` | *number* | :heavy_minus_sign: | Filter results by those that are related to a specific users id
| 1 | -| `filter` | [models.QueryParamFilter](../models/queryparamfilter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | +| `filter` | [operations.QueryParamFilter](../../../sdk/models/operations/queryparamfilter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | | `librarySectionID` | *number* | :heavy_minus_sign: | Filters the results based on the id of a valid library section
| 12 | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionhistoryresponse.md b/docs/sdk/models/operations/getsessionhistoryresponse.md new file mode 100644 index 00000000..2dcc3a6b --- /dev/null +++ b/docs/sdk/models/operations/getsessionhistoryresponse.md @@ -0,0 +1,53 @@ +# GetSessionHistoryResponse + +## Example Usage + +```typescript +import { GetSessionHistoryResponse } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; + +let value: GetSessionHistoryResponse = { + contentType: "", + statusCode: 921158, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 10855, + metadata: [ + { + historyKey: "/status/sessions/history/1", + key: "/library/metadata/32171", + ratingKey: "32171", + librarySectionID: "2", + parentKey: "/library/metadata/32170", + grandparentKey: "/library/metadata/32132", + title: "The Noise That Blue Makes", + grandparentTitle: "Taskmaster", + type: "episode", + thumb: "/library/metadata/32171/thumb/-1", + parentThumb: "/library/metadata/32170/thumb/1654134301", + grandparentThumb: "/library/metadata/32132/thumb/1703933346", + grandparentArt: "/library/metadata/32132/art/1703933346", + index: 1, + parentIndex: 13, + originallyAvailableAt: new RFCDate("2022-04-14T00:00:00Z"), + viewedAt: 1654139223, + accountID: 1, + deviceID: 5, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetSessionHistoryResponseBody](../../../sdk/models/operations/getsessionhistoryresponsebody.md) | :heavy_minus_sign: | List of Plex Sessions | \ No newline at end of file diff --git a/docs/models/getsessionhistoryresponsebody.md b/docs/sdk/models/operations/getsessionhistoryresponsebody.md similarity index 60% rename from docs/models/getsessionhistoryresponsebody.md rename to docs/sdk/models/operations/getsessionhistoryresponsebody.md index e9651be7..a9e74e04 100644 --- a/docs/models/getsessionhistoryresponsebody.md +++ b/docs/sdk/models/operations/getsessionhistoryresponsebody.md @@ -5,8 +5,8 @@ List of Plex Sessions ## Example Usage ```typescript -import { GetSessionHistoryResponseBody } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetSessionHistoryResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetSessionHistoryResponseBody = { mediaContainer: { @@ -40,6 +40,6 @@ let value: GetSessionHistoryResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetSessionHistoryMediaContainer](../models/getsessionhistorymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSessionHistoryMediaContainer](../../../sdk/models/operations/getsessionhistorymediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionsmedia.md b/docs/sdk/models/operations/getsessionsmedia.md new file mode 100644 index 00000000..446ce23e --- /dev/null +++ b/docs/sdk/models/operations/getsessionsmedia.md @@ -0,0 +1,67 @@ +# GetSessionsMedia + +## Example Usage + +```typescript +import { GetSessionsMedia } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetSessionsMedia = { + audioChannels: 2, + audioCodec: "flac", + bitrate: 1014, + container: "flac", + duration: 186240, + id: "130355", + selected: true, + part: [ + { + container: "flac", + duration: 186240, + file: "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac", + hasThumbnail: "1", + id: "130625", + key: "/library/parts/130625/1705543268/file.flac", + size: 23644000, + decision: "directplay", + selected: true, + stream: [ + { + albumGain: "-12.94", + albumPeak: "1.000000", + albumRange: "4.751014", + audioChannelLayout: "stereo", + bitDepth: 16, + bitrate: 1014, + channels: 2, + codec: "flac", + displayTitle: "FLAC (Stereo)", + extendedDisplayTitle: "FLAC (Stereo)", + gain: "-12.94", + id: "352487", + index: 0, + loudness: "-5.94", + lra: "1.74", + peak: "1.000000", + samplingRate: 44100, + selected: true, + streamType: 2, + location: "direct", + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | flac | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 1014 | +| `container` | *string* | :heavy_minus_sign: | N/A | flac | +| `duration` | *number* | :heavy_minus_sign: | N/A | 186240 | +| `id` | *string* | :heavy_minus_sign: | N/A | 130355 | +| `selected` | *boolean* | :heavy_minus_sign: | N/A | true | +| `part` | [operations.GetSessionsPart](../../../sdk/models/operations/getsessionspart.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionsmediacontainer.md b/docs/sdk/models/operations/getsessionsmediacontainer.md similarity index 75% rename from docs/models/getsessionsmediacontainer.md rename to docs/sdk/models/operations/getsessionsmediacontainer.md index 03988b2e..41045a86 100644 --- a/docs/models/getsessionsmediacontainer.md +++ b/docs/sdk/models/operations/getsessionsmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionsMediaContainer } from "@lukehagar/plexjs"; +import { GetSessionsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionsMediaContainer = { size: 1, @@ -124,7 +124,7 @@ let value: GetSessionsMediaContainer = { ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | [models.GetSessionsMetadata](../models/getsessionsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | [operations.GetSessionsMetadata](../../../sdk/models/operations/getsessionsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/getsessionsmetadata.md b/docs/sdk/models/operations/getsessionsmetadata.md new file mode 100644 index 00000000..fe633d50 --- /dev/null +++ b/docs/sdk/models/operations/getsessionsmetadata.md @@ -0,0 +1,160 @@ +# GetSessionsMetadata + +## Example Usage + +```typescript +import { GetSessionsMetadata } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetSessionsMetadata = { + addedAt: 1705543312, + art: "/library/metadata/39904/art/1705310687", + duration: 186240, + grandparentArt: "/library/metadata/39904/art/1705310687", + grandparentGuid: "plex://artist/5d07bbfd403c6402904a6480", + grandparentKey: "/library/metadata/39904", + grandparentRatingKey: "39904", + grandparentThumb: "/library/metadata/39904/thumb/1705310687", + grandparentTitle: "Green Day", + guid: "plex://track/6535834f71f22f36f71a8e8f", + index: 1, + key: "/library/metadata/67085", + librarySectionID: "3", + librarySectionKey: "/library/sections/3", + librarySectionTitle: "Music", + musicAnalysisVersion: "1", + parentGuid: "plex://album/65394d6d472b8ab03ef47f12", + parentIndex: 1, + parentKey: "/library/metadata/67084", + parentRatingKey: "67084", + parentStudio: "Reprise Records", + parentThumb: "/library/metadata/67084/thumb/1705543314", + parentTitle: "Saviors", + parentYear: 2024, + ratingCount: 45885, + ratingKey: "67085", + sessionKey: "203", + thumb: "/library/metadata/67084/thumb/1705543314", + title: "The American Dream Is Killing Me", + titleSort: "American Dream Is Killing Me", + type: "track", + updatedAt: 1705543314, + viewOffset: 1000, + media: [ + { + audioChannels: 2, + audioCodec: "flac", + bitrate: 1014, + container: "flac", + duration: 186240, + id: "130355", + selected: true, + part: [ + { + container: "flac", + duration: 186240, + file: "/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac", + hasThumbnail: "1", + id: "130625", + key: "/library/parts/130625/1705543268/file.flac", + size: 23644000, + decision: "directplay", + selected: true, + stream: [ + { + albumGain: "-12.94", + albumPeak: "1.000000", + albumRange: "4.751014", + audioChannelLayout: "stereo", + bitDepth: 16, + bitrate: 1014, + channels: 2, + codec: "flac", + displayTitle: "FLAC (Stereo)", + extendedDisplayTitle: "FLAC (Stereo)", + gain: "-12.94", + id: "352487", + index: 0, + loudness: "-5.94", + lra: "1.74", + peak: "1.000000", + samplingRate: 44100, + selected: true, + streamType: 2, + location: "direct", + }, + ], + }, + ], + }, + ], + user: { + id: "1", + thumb: "https://plex.tv/users/844780fc6f8a26b5/avatar?c=1705853661", + title: "Blindkitty38", + }, + player: { + address: "10.10.10.171", + machineIdentifier: "3tsdzir85m2onc3qyr255aq1", + model: "standalone", + platform: "windows", + platformVersion: "10.0.22621", + product: "Plex for Windows", + profile: "Plex Desktop", + remotePublicAddress: "68.248.140.20", + state: "playing", + title: "DESKTOP-BL80MTD", + version: "1.85.0.4071-21128b56", + local: true, + relayed: false, + secure: true, + userID: 1, + }, + session: { + id: "93h7e00ncblxncqw9lkfaoxi", + bandwidth: 1050, + location: "lan", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `addedAt` | *number* | :heavy_minus_sign: | N/A | 1705543312 | +| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 186240 | +| `grandparentArt` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `grandparentGuid` | *string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | +| `grandparentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | +| `grandparentRatingKey` | *string* | :heavy_minus_sign: | N/A | 39904 | +| `grandparentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | +| `grandparentTitle` | *string* | :heavy_minus_sign: | N/A | Green Day | +| `guid` | *string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | +| `index` | *number* | :heavy_minus_sign: | N/A | 1 | +| `key` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | +| `librarySectionID` | *string* | :heavy_minus_sign: | N/A | 3 | +| `librarySectionKey` | *string* | :heavy_minus_sign: | N/A | /library/sections/3 | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Music | +| `musicAnalysisVersion` | *string* | :heavy_minus_sign: | N/A | 1 | +| `parentGuid` | *string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | +| `parentIndex` | *number* | :heavy_minus_sign: | N/A | 1 | +| `parentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | +| `parentRatingKey` | *string* | :heavy_minus_sign: | N/A | 67084 | +| `parentStudio` | *string* | :heavy_minus_sign: | N/A | Reprise Records | +| `parentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `parentTitle` | *string* | :heavy_minus_sign: | N/A | Saviors | +| `parentYear` | *number* | :heavy_minus_sign: | N/A | 2024 | +| `ratingCount` | *number* | :heavy_minus_sign: | N/A | 45885 | +| `ratingKey` | *string* | :heavy_minus_sign: | N/A | 67085 | +| `sessionKey` | *string* | :heavy_minus_sign: | N/A | 203 | +| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `title` | *string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | +| `titleSort` | *string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | +| `type` | *string* | :heavy_minus_sign: | N/A | track | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1705543314 | +| `viewOffset` | *number* | :heavy_minus_sign: | N/A | 1000 | +| `media` | [operations.GetSessionsMedia](../../../sdk/models/operations/getsessionsmedia.md)[] | :heavy_minus_sign: | N/A | | +| `user` | [operations.GetSessionsUser](../../../sdk/models/operations/getsessionsuser.md) | :heavy_minus_sign: | N/A | | +| `player` | [operations.Player](../../../sdk/models/operations/player.md) | :heavy_minus_sign: | N/A | | +| `session` | [operations.Session](../../../sdk/models/operations/session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionspart.md b/docs/sdk/models/operations/getsessionspart.md similarity index 97% rename from docs/models/getsessionspart.md rename to docs/sdk/models/operations/getsessionspart.md index 3be41a7f..b8575dc7 100644 --- a/docs/models/getsessionspart.md +++ b/docs/sdk/models/operations/getsessionspart.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionsPart } from "@lukehagar/plexjs"; +import { GetSessionsPart } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionsPart = { container: "flac", @@ -55,4 +55,4 @@ let value: GetSessionsPart = { | `size` | *number* | :heavy_minus_sign: | N/A | 23644000 | | `decision` | *string* | :heavy_minus_sign: | N/A | directplay | | `selected` | *boolean* | :heavy_minus_sign: | N/A | true | -| `stream` | [models.GetSessionsStream](../models/getsessionsstream.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `stream` | [operations.GetSessionsStream](../../../sdk/models/operations/getsessionsstream.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getsessionsresponse.md b/docs/sdk/models/operations/getsessionsresponse.md similarity index 75% rename from docs/models/getsessionsresponse.md rename to docs/sdk/models/operations/getsessionsresponse.md index 8f15292f..d312da02 100644 --- a/docs/models/getsessionsresponse.md +++ b/docs/sdk/models/operations/getsessionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionsResponse } from "@lukehagar/plexjs"; +import { GetSessionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionsResponse = { contentType: "", @@ -133,9 +133,9 @@ let value: GetSessionsResponse = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetSessionsResponseBody](../models/getsessionsresponsebody.md) | :heavy_minus_sign: | List of Active Plex Sessions | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetSessionsResponseBody](../../../sdk/models/operations/getsessionsresponsebody.md) | :heavy_minus_sign: | List of Active Plex Sessions | \ No newline at end of file diff --git a/docs/models/getsessionsresponsebody.md b/docs/sdk/models/operations/getsessionsresponsebody.md similarity index 83% rename from docs/models/getsessionsresponsebody.md rename to docs/sdk/models/operations/getsessionsresponsebody.md index 33fef891..20bd1755 100644 --- a/docs/models/getsessionsresponsebody.md +++ b/docs/sdk/models/operations/getsessionsresponsebody.md @@ -5,7 +5,7 @@ List of Active Plex Sessions ## Example Usage ```typescript -import { GetSessionsResponseBody } from "@lukehagar/plexjs"; +import { GetSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionsResponseBody = { mediaContainer: { @@ -128,6 +128,6 @@ let value: GetSessionsResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetSessionsMediaContainer](../models/getsessionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetSessionsMediaContainer](../../../sdk/models/operations/getsessionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getsessionsstream.md b/docs/sdk/models/operations/getsessionsstream.md similarity index 97% rename from docs/models/getsessionsstream.md rename to docs/sdk/models/operations/getsessionsstream.md index 5647bba7..f473e940 100644 --- a/docs/models/getsessionsstream.md +++ b/docs/sdk/models/operations/getsessionsstream.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionsStream } from "@lukehagar/plexjs"; +import { GetSessionsStream } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionsStream = { albumGain: "-12.94", diff --git a/docs/models/getsessionsuser.md b/docs/sdk/models/operations/getsessionsuser.md similarity index 95% rename from docs/models/getsessionsuser.md rename to docs/sdk/models/operations/getsessionsuser.md index 982af662..afa79320 100644 --- a/docs/models/getsessionsuser.md +++ b/docs/sdk/models/operations/getsessionsuser.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSessionsUser } from "@lukehagar/plexjs"; +import { GetSessionsUser } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSessionsUser = { id: "1", diff --git a/docs/models/getsourceconnectioninformationrequest.md b/docs/sdk/models/operations/getsourceconnectioninformationrequest.md similarity index 96% rename from docs/models/getsourceconnectioninformationrequest.md rename to docs/sdk/models/operations/getsourceconnectioninformationrequest.md index acea216e..409b8ac0 100644 --- a/docs/models/getsourceconnectioninformationrequest.md +++ b/docs/sdk/models/operations/getsourceconnectioninformationrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSourceConnectionInformationRequest } from "@lukehagar/plexjs"; +import { GetSourceConnectionInformationRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSourceConnectionInformationRequest = { source: "provider://provider-identifier", diff --git a/docs/models/getsourceconnectioninformationresponse.md b/docs/sdk/models/operations/getsourceconnectioninformationresponse.md similarity index 98% rename from docs/models/getsourceconnectioninformationresponse.md rename to docs/sdk/models/operations/getsourceconnectioninformationresponse.md index 820a019c..91205b68 100644 --- a/docs/models/getsourceconnectioninformationresponse.md +++ b/docs/sdk/models/operations/getsourceconnectioninformationresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSourceConnectionInformationResponse } from "@lukehagar/plexjs"; +import { GetSourceConnectionInformationResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetSourceConnectionInformationResponse = { contentType: "", diff --git a/docs/models/getstatisticsdevice.md b/docs/sdk/models/operations/getstatisticsdevice.md similarity index 94% rename from docs/models/getstatisticsdevice.md rename to docs/sdk/models/operations/getstatisticsdevice.md index 90666044..d49bbca9 100644 --- a/docs/models/getstatisticsdevice.md +++ b/docs/sdk/models/operations/getstatisticsdevice.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStatisticsDevice } from "@lukehagar/plexjs"; +import { GetStatisticsDevice } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetStatisticsDevice = { id: 208, diff --git a/docs/sdk/models/operations/getstatisticsmediacontainer.md b/docs/sdk/models/operations/getstatisticsmediacontainer.md new file mode 100644 index 00000000..353908e6 --- /dev/null +++ b/docs/sdk/models/operations/getstatisticsmediacontainer.md @@ -0,0 +1,52 @@ +# GetStatisticsMediaContainer + +## Example Usage + +```typescript +import { GetStatisticsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetStatisticsMediaContainer = { + size: 5497, + device: [ + { + id: 208, + name: "Roku Express", + platform: "Roku", + clientIdentifier: "793095d235660625108ef785cc7646e9", + createdAt: 1706470556, + }, + ], + account: [ + { + id: 238960586, + key: "/accounts/238960586", + name: "Diane", + defaultAudioLanguage: "en", + autoSelectAudio: true, + defaultSubtitleLanguage: "en", + subtitleMode: 1, + thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", + }, + ], + statisticsMedia: [ + { + accountID: 1, + deviceID: 13, + timespan: 4, + at: 1707141600, + metadataType: 4, + count: 1, + duration: 1555, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 5497 | +| `device` | [operations.GetStatisticsDevice](../../../sdk/models/operations/getstatisticsdevice.md)[] | :heavy_minus_sign: | N/A | | +| `account` | [operations.Account](../../../sdk/models/operations/account.md)[] | :heavy_minus_sign: | N/A | | +| `statisticsMedia` | [operations.StatisticsMedia](../../../sdk/models/operations/statisticsmedia.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/getstatisticsrequest.md b/docs/sdk/models/operations/getstatisticsrequest.md similarity index 95% rename from docs/models/getstatisticsrequest.md rename to docs/sdk/models/operations/getstatisticsrequest.md index 3378fbf9..4e1cae66 100644 --- a/docs/models/getstatisticsrequest.md +++ b/docs/sdk/models/operations/getstatisticsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStatisticsRequest } from "@lukehagar/plexjs"; +import { GetStatisticsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetStatisticsRequest = { timespan: 4, diff --git a/docs/sdk/models/operations/getstatisticsresponse.md b/docs/sdk/models/operations/getstatisticsresponse.md new file mode 100644 index 00000000..2a317f72 --- /dev/null +++ b/docs/sdk/models/operations/getstatisticsresponse.md @@ -0,0 +1,61 @@ +# GetStatisticsResponse + +## Example Usage + +```typescript +import { GetStatisticsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetStatisticsResponse = { + contentType: "", + statusCode: 508969, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + mediaContainer: { + size: 5497, + device: [ + { + id: 208, + name: "Roku Express", + platform: "Roku", + clientIdentifier: "793095d235660625108ef785cc7646e9", + createdAt: 1706470556, + }, + ], + account: [ + { + id: 238960586, + key: "/accounts/238960586", + name: "Diane", + defaultAudioLanguage: "en", + autoSelectAudio: true, + defaultSubtitleLanguage: "en", + subtitleMode: 1, + thumb: "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967", + }, + ], + statisticsMedia: [ + { + accountID: 1, + deviceID: 13, + timespan: 4, + at: 1707141600, + metadataType: 4, + count: 1, + duration: 1555, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetStatisticsResponseBody](../../../sdk/models/operations/getstatisticsresponsebody.md) | :heavy_minus_sign: | Media Statistics | \ No newline at end of file diff --git a/docs/models/getstatisticsresponsebody.md b/docs/sdk/models/operations/getstatisticsresponsebody.md similarity index 60% rename from docs/models/getstatisticsresponsebody.md rename to docs/sdk/models/operations/getstatisticsresponsebody.md index 20bcc272..639a1c71 100644 --- a/docs/models/getstatisticsresponsebody.md +++ b/docs/sdk/models/operations/getstatisticsresponsebody.md @@ -5,7 +5,7 @@ Media Statistics ## Example Usage ```typescript -import { GetStatisticsResponseBody } from "@lukehagar/plexjs"; +import { GetStatisticsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetStatisticsResponseBody = { mediaContainer: { @@ -48,6 +48,6 @@ let value: GetStatisticsResponseBody = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `mediaContainer` | [models.GetStatisticsMediaContainer](../models/getstatisticsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetStatisticsMediaContainer](../../../sdk/models/operations/getstatisticsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getthumbimagerequest.md b/docs/sdk/models/operations/getthumbimagerequest.md similarity index 96% rename from docs/models/getthumbimagerequest.md rename to docs/sdk/models/operations/getthumbimagerequest.md index 95759339..7f54fc7e 100644 --- a/docs/models/getthumbimagerequest.md +++ b/docs/sdk/models/operations/getthumbimagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetThumbImageRequest } from "@lukehagar/plexjs"; +import { GetThumbImageRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetThumbImageRequest = { ratingKey: 9518, diff --git a/docs/models/getthumbimageresponse.md b/docs/sdk/models/operations/getthumbimageresponse.md similarity index 96% rename from docs/models/getthumbimageresponse.md rename to docs/sdk/models/operations/getthumbimageresponse.md index 2d529da8..4191c249 100644 --- a/docs/models/getthumbimageresponse.md +++ b/docs/sdk/models/operations/getthumbimageresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetThumbImageResponse } from "@lukehagar/plexjs"; +import { GetThumbImageResponse } from "@lukehagar/plexjs/sdk/models/operations"; // No examples available for this model ``` diff --git a/docs/sdk/models/operations/gettimelinerequest.md b/docs/sdk/models/operations/gettimelinerequest.md new file mode 100644 index 00000000..ff1d5302 --- /dev/null +++ b/docs/sdk/models/operations/gettimelinerequest.md @@ -0,0 +1,35 @@ +# GetTimelineRequest + +## Example Usage + +```typescript +import { GetTimelineRequest, State } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetTimelineRequest = { + ratingKey: 23409, + key: "/library/metadata/23409", + state: State.Playing, + hasMDE: 1, + time: 2000, + duration: 10000, + context: "home:hub.continueWatching", + playQueueItemID: 1, + playBackTime: 2000, + row: 1, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `ratingKey` | *number* | :heavy_check_mark: | The rating key of the media item | 23409 | +| `key` | *string* | :heavy_check_mark: | The key of the media item to get the timeline for | /library/metadata/23409 | +| `state` | [operations.State](../../../sdk/models/operations/state.md) | :heavy_check_mark: | The state of the media item | playing | +| `hasMDE` | *number* | :heavy_check_mark: | Whether the media item has MDE | 1 | +| `time` | *number* | :heavy_check_mark: | The time of the media item | 2000 | +| `duration` | *number* | :heavy_check_mark: | The duration of the media item | 10000 | +| `context` | *string* | :heavy_check_mark: | The context of the media item | home:hub.continueWatching | +| `playQueueItemID` | *number* | :heavy_check_mark: | The play queue item ID of the media item | 1 | +| `playBackTime` | *number* | :heavy_check_mark: | The playback time of the media item | 2000 | +| `row` | *number* | :heavy_check_mark: | The row of the media item | 1 | \ No newline at end of file diff --git a/docs/models/gettimelineresponse.md b/docs/sdk/models/operations/gettimelineresponse.md similarity index 95% rename from docs/models/gettimelineresponse.md rename to docs/sdk/models/operations/gettimelineresponse.md index 2ee7facc..bff66336 100644 --- a/docs/models/gettimelineresponse.md +++ b/docs/sdk/models/operations/gettimelineresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTimelineResponse } from "@lukehagar/plexjs"; +import { GetTimelineResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTimelineResponse = { contentType: "", diff --git a/docs/models/gettokenbypinidauthpincontainer.md b/docs/sdk/models/operations/gettokenbypinidauthpincontainer.md similarity index 99% rename from docs/models/gettokenbypinidauthpincontainer.md rename to docs/sdk/models/operations/gettokenbypinidauthpincontainer.md index 67e445ad..5cd5ed62 100644 --- a/docs/models/gettokenbypinidauthpincontainer.md +++ b/docs/sdk/models/operations/gettokenbypinidauthpincontainer.md @@ -5,7 +5,7 @@ The Pin with a non-null authToken when it has been verified by the user ## Example Usage ```typescript -import { GetTokenByPinIdAuthPinContainer } from "@lukehagar/plexjs"; +import { GetTokenByPinIdAuthPinContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTokenByPinIdAuthPinContainer = { id: 308667304, @@ -45,7 +45,7 @@ let value: GetTokenByPinIdAuthPinContainer = { | `trusted` | *boolean* | :heavy_minus_sign: | N/A | | | `qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | | `clientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | -| `location` | [models.GetTokenByPinIdGeoData](../models/gettokenbypinidgeodata.md) | :heavy_check_mark: | Geo location data | {
"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"
} | +| `location` | [operations.GetTokenByPinIdGeoData](../../../sdk/models/operations/gettokenbypinidgeodata.md) | :heavy_check_mark: | Geo location data | {
"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"
} | | `expiresIn` | *number* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | | `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | diff --git a/docs/models/gettokenbypinidgeodata.md b/docs/sdk/models/operations/gettokenbypinidgeodata.md similarity index 98% rename from docs/models/gettokenbypinidgeodata.md rename to docs/sdk/models/operations/gettokenbypinidgeodata.md index 26bc6df1..ca93e306 100644 --- a/docs/models/gettokenbypinidgeodata.md +++ b/docs/sdk/models/operations/gettokenbypinidgeodata.md @@ -5,7 +5,7 @@ Geo location data ## Example Usage ```typescript -import { GetTokenByPinIdGeoData } from "@lukehagar/plexjs"; +import { GetTokenByPinIdGeoData } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTokenByPinIdGeoData = { code: "VI", diff --git a/docs/models/gettokenbypinidglobals.md b/docs/sdk/models/operations/gettokenbypinidglobals.md similarity index 97% rename from docs/models/gettokenbypinidglobals.md rename to docs/sdk/models/operations/gettokenbypinidglobals.md index edcad1a8..08c5bf2d 100644 --- a/docs/models/gettokenbypinidglobals.md +++ b/docs/sdk/models/operations/gettokenbypinidglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenByPinIdGlobals } from "@lukehagar/plexjs"; +import { GetTokenByPinIdGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTokenByPinIdGlobals = {}; ``` diff --git a/docs/models/gettokenbypinidrequest.md b/docs/sdk/models/operations/gettokenbypinidrequest.md similarity index 97% rename from docs/models/gettokenbypinidrequest.md rename to docs/sdk/models/operations/gettokenbypinidrequest.md index 21f9663a..c1255dcd 100644 --- a/docs/models/gettokenbypinidrequest.md +++ b/docs/sdk/models/operations/gettokenbypinidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenByPinIdRequest } from "@lukehagar/plexjs"; +import { GetTokenByPinIdRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTokenByPinIdRequest = { pinID: 18789, diff --git a/docs/models/gettokenbypinidresponse.md b/docs/sdk/models/operations/gettokenbypinidresponse.md similarity index 98% rename from docs/models/gettokenbypinidresponse.md rename to docs/sdk/models/operations/gettokenbypinidresponse.md index 756e33c9..612e916e 100644 --- a/docs/models/gettokenbypinidresponse.md +++ b/docs/sdk/models/operations/gettokenbypinidresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenByPinIdResponse } from "@lukehagar/plexjs"; +import { GetTokenByPinIdResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTokenByPinIdResponse = { contentType: "", @@ -47,4 +47,4 @@ let value: GetTokenByPinIdResponse = { | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | | `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `authPinContainer` | [models.GetTokenByPinIdAuthPinContainer](../models/gettokenbypinidauthpincontainer.md) | :heavy_minus_sign: | The Pin with a non-null authToken when it has been verified by the user | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"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"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file +| `authPinContainer` | [operations.GetTokenByPinIdAuthPinContainer](../../../sdk/models/operations/gettokenbypinidauthpincontainer.md) | :heavy_minus_sign: | The Pin with a non-null authToken when it has been verified by the user | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"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"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file diff --git a/docs/models/gettopwatchedcontentcountry.md b/docs/sdk/models/operations/gettopwatchedcontentcountry.md similarity index 91% rename from docs/models/gettopwatchedcontentcountry.md rename to docs/sdk/models/operations/gettopwatchedcontentcountry.md index cc2839f4..e33dcabc 100644 --- a/docs/models/gettopwatchedcontentcountry.md +++ b/docs/sdk/models/operations/gettopwatchedcontentcountry.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTopWatchedContentCountry } from "@lukehagar/plexjs"; +import { GetTopWatchedContentCountry } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTopWatchedContentCountry = { id: 116, diff --git a/docs/models/gettopwatchedcontentgenre.md b/docs/sdk/models/operations/gettopwatchedcontentgenre.md similarity index 89% rename from docs/models/gettopwatchedcontentgenre.md rename to docs/sdk/models/operations/gettopwatchedcontentgenre.md index cfa71f7c..206e18fa 100644 --- a/docs/models/gettopwatchedcontentgenre.md +++ b/docs/sdk/models/operations/gettopwatchedcontentgenre.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTopWatchedContentGenre } from "@lukehagar/plexjs"; +import { GetTopWatchedContentGenre } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTopWatchedContentGenre = { id: 184, diff --git a/docs/models/gettopwatchedcontentguids.md b/docs/sdk/models/operations/gettopwatchedcontentguids.md similarity index 84% rename from docs/models/gettopwatchedcontentguids.md rename to docs/sdk/models/operations/gettopwatchedcontentguids.md index 024a9650..770813fc 100644 --- a/docs/models/gettopwatchedcontentguids.md +++ b/docs/sdk/models/operations/gettopwatchedcontentguids.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTopWatchedContentGuids } from "@lukehagar/plexjs"; +import { GetTopWatchedContentGuids } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTopWatchedContentGuids = { id: "tvdb://2337", diff --git a/docs/sdk/models/operations/gettopwatchedcontentmediacontainer.md b/docs/sdk/models/operations/gettopwatchedcontentmediacontainer.md new file mode 100644 index 00000000..f6f8bce9 --- /dev/null +++ b/docs/sdk/models/operations/gettopwatchedcontentmediacontainer.md @@ -0,0 +1,93 @@ +# GetTopWatchedContentMediaContainer + +## Example Usage + +```typescript +import { GetTopWatchedContentMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; + +let value: GetTopWatchedContentMediaContainer = { + size: 1, + allowSync: true, + identifier: "com.plexapp.plugins.library", + mediaTagPrefix: "/system/bundle/media/flags/", + mediaTagVersion: 1698860922, + metadata: [ + { + ratingKey: "17", + key: "/library/metadata/17", + guid: "plex://movie/5d77683f6f4521001ea9dc53", + slug: "waterloo-road", + studio: "Universal Pictures", + type: "movie", + title: "Serenity", + librarySectionTitle: "Movies", + librarySectionID: 1, + librarySectionKey: "/library/sections/1", + contentRating: "PG-13", + summary: + "Serenity continues the story of the TV series it was based upon (\"Firefly\"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job.", + index: 1, + audienceRating: 9.1, + year: 2005, + tagline: "They aim to misbehave.", + thumb: "/library/metadata/17/thumb/1705637165", + art: "/library/metadata/17/art/1705637165", + duration: 141417, + originallyAvailableAt: new RFCDate("2005-09-29T00:00:00Z"), + leafCount: 222, + viewedLeafCount: 100, + childCount: 13, + addedAt: 1705637164, + updatedAt: 1705637165, + globalViewCount: 80, + audienceRatingImage: "rottentomatoes://image.rating.upright", + genre: [ + { + id: 184, + filter: "genre=184", + tag: "Thriller", + }, + ], + country: [ + { + id: 116, + filter: "country=116", + tag: "United States of America", + }, + ], + guids: [ + { + id: "tvdb://2337", + }, + ], + role: [ + { + id: 220, + filter: "actor=220", + tag: "Dennis Keiffer", + tagKey: "5d77683554f42c001f8c4708", + role: "Bar Guy (uncredited)", + thumb: "https://metadata-static.plex.tv/6/people/648e9a7ea1d537bccfcd7615134b78ce.jpg", + }, + ], + user: [ + { + id: 220, + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | 1 | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | true | +| `identifier` | *string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *number* | :heavy_minus_sign: | N/A | 1698860922 | +| `metadata` | [operations.GetTopWatchedContentMetadata](../../../sdk/models/operations/gettopwatchedcontentmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/gettopwatchedcontentmetadata.md b/docs/sdk/models/operations/gettopwatchedcontentmetadata.md similarity index 98% rename from docs/models/gettopwatchedcontentmetadata.md rename to docs/sdk/models/operations/gettopwatchedcontentmetadata.md index 3c88f9d2..fe0bf84b 100644 --- a/docs/models/gettopwatchedcontentmetadata.md +++ b/docs/sdk/models/operations/gettopwatchedcontentmetadata.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetTopWatchedContentMetadata } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetTopWatchedContentMetadata } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetTopWatchedContentMetadata = { ratingKey: "17", @@ -95,7 +95,7 @@ let value: GetTopWatchedContentMetadata = { | `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | | `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | | `duration` | *number* | :heavy_minus_sign: | N/A | 141417 | -| `originallyAvailableAt` | [RFCDate](../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | | `leafCount` | *number* | :heavy_minus_sign: | N/A | 222 | | `viewedLeafCount` | *number* | :heavy_minus_sign: | N/A | 100 | | `childCount` | *number* | :heavy_minus_sign: | N/A | 13 | @@ -103,8 +103,8 @@ let value: GetTopWatchedContentMetadata = { | `updatedAt` | *number* | :heavy_minus_sign: | N/A | 1705637165 | | `globalViewCount` | *number* | :heavy_minus_sign: | N/A | 80 | | `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `genre` | [models.GetTopWatchedContentGenre](../models/gettopwatchedcontentgenre.md)[] | :heavy_minus_sign: | N/A | | -| `country` | [models.GetTopWatchedContentCountry](../models/gettopwatchedcontentcountry.md)[] | :heavy_minus_sign: | N/A | | -| `guids` | [models.GetTopWatchedContentGuids](../models/gettopwatchedcontentguids.md)[] | :heavy_minus_sign: | N/A | | -| `role` | [models.GetTopWatchedContentRole](../models/gettopwatchedcontentrole.md)[] | :heavy_minus_sign: | N/A | | -| `user` | [models.User](../models/user.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `genre` | [operations.GetTopWatchedContentGenre](../../../sdk/models/operations/gettopwatchedcontentgenre.md)[] | :heavy_minus_sign: | N/A | | +| `country` | [operations.GetTopWatchedContentCountry](../../../sdk/models/operations/gettopwatchedcontentcountry.md)[] | :heavy_minus_sign: | N/A | | +| `guids` | [operations.GetTopWatchedContentGuids](../../../sdk/models/operations/gettopwatchedcontentguids.md)[] | :heavy_minus_sign: | N/A | | +| `role` | [operations.GetTopWatchedContentRole](../../../sdk/models/operations/gettopwatchedcontentrole.md)[] | :heavy_minus_sign: | N/A | | +| `user` | [operations.User](../../../sdk/models/operations/user.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/gettopwatchedcontentqueryparamtype.md b/docs/sdk/models/operations/gettopwatchedcontentqueryparamtype.md similarity index 94% rename from docs/models/gettopwatchedcontentqueryparamtype.md rename to docs/sdk/models/operations/gettopwatchedcontentqueryparamtype.md index 50e2bfbe..f23e08ca 100644 --- a/docs/models/gettopwatchedcontentqueryparamtype.md +++ b/docs/sdk/models/operations/gettopwatchedcontentqueryparamtype.md @@ -11,7 +11,7 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Example Usage ```typescript -import { GetTopWatchedContentQueryParamType } from "@lukehagar/plexjs"; +import { GetTopWatchedContentQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTopWatchedContentQueryParamType = GetTopWatchedContentQueryParamType.Two; ``` diff --git a/docs/models/gettopwatchedcontentrequest.md b/docs/sdk/models/operations/gettopwatchedcontentrequest.md similarity index 93% rename from docs/models/gettopwatchedcontentrequest.md rename to docs/sdk/models/operations/gettopwatchedcontentrequest.md index 881541fa..bcadb88f 100644 --- a/docs/models/gettopwatchedcontentrequest.md +++ b/docs/sdk/models/operations/gettopwatchedcontentrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTopWatchedContentQueryParamType, GetTopWatchedContentRequest } from "@lukehagar/plexjs"; +import { GetTopWatchedContentQueryParamType, GetTopWatchedContentRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTopWatchedContentRequest = { type: GetTopWatchedContentQueryParamType.Two, @@ -15,5 +15,5 @@ let value: GetTopWatchedContentRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetTopWatchedContentQueryParamType](../models/gettopwatchedcontentqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `type` | [operations.GetTopWatchedContentQueryParamType](../../../sdk/models/operations/gettopwatchedcontentqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | | `includeGuids` | *number* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | \ No newline at end of file diff --git a/docs/models/gettopwatchedcontentresponse.md b/docs/sdk/models/operations/gettopwatchedcontentresponse.md similarity index 62% rename from docs/models/gettopwatchedcontentresponse.md rename to docs/sdk/models/operations/gettopwatchedcontentresponse.md index 253798d2..442c6a6e 100644 --- a/docs/models/gettopwatchedcontentresponse.md +++ b/docs/sdk/models/operations/gettopwatchedcontentresponse.md @@ -3,8 +3,8 @@ ## Example Usage ```typescript -import { GetTopWatchedContentResponse } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetTopWatchedContentResponse } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetTopWatchedContentResponse = { contentType: "", @@ -92,9 +92,9 @@ let value: GetTopWatchedContentResponse = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetTopWatchedContentResponseBody](../models/gettopwatchedcontentresponsebody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetTopWatchedContentResponseBody](../../../sdk/models/operations/gettopwatchedcontentresponsebody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file diff --git a/docs/models/gettopwatchedcontentresponsebody.md b/docs/sdk/models/operations/gettopwatchedcontentresponsebody.md similarity index 72% rename from docs/models/gettopwatchedcontentresponsebody.md rename to docs/sdk/models/operations/gettopwatchedcontentresponsebody.md index 37918f68..72e0faec 100644 --- a/docs/models/gettopwatchedcontentresponsebody.md +++ b/docs/sdk/models/operations/gettopwatchedcontentresponsebody.md @@ -5,8 +5,8 @@ The metadata of the library item. ## Example Usage ```typescript -import { GetTopWatchedContentResponseBody } from "@lukehagar/plexjs"; -import { RFCDate } from "@lukehagar/plexjs/types"; +import { GetTopWatchedContentResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; +import { RFCDate } from "@lukehagar/plexjs/sdk/types"; let value: GetTopWatchedContentResponseBody = { mediaContainer: { @@ -87,6 +87,6 @@ let value: GetTopWatchedContentResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetTopWatchedContentMediaContainer](../models/gettopwatchedcontentmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetTopWatchedContentMediaContainer](../../../sdk/models/operations/gettopwatchedcontentmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/gettopwatchedcontentrole.md b/docs/sdk/models/operations/gettopwatchedcontentrole.md similarity index 97% rename from docs/models/gettopwatchedcontentrole.md rename to docs/sdk/models/operations/gettopwatchedcontentrole.md index 13304236..53930805 100644 --- a/docs/models/gettopwatchedcontentrole.md +++ b/docs/sdk/models/operations/gettopwatchedcontentrole.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTopWatchedContentRole } from "@lukehagar/plexjs"; +import { GetTopWatchedContentRole } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTopWatchedContentRole = { id: 220, diff --git a/docs/models/gettranscodesessionsmediacontainer.md b/docs/sdk/models/operations/gettranscodesessionsmediacontainer.md similarity index 98% rename from docs/models/gettranscodesessionsmediacontainer.md rename to docs/sdk/models/operations/gettranscodesessionsmediacontainer.md index 93a7f403..d3e4c5b8 100644 --- a/docs/models/gettranscodesessionsmediacontainer.md +++ b/docs/sdk/models/operations/gettranscodesessionsmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTranscodeSessionsMediaContainer } from "@lukehagar/plexjs"; +import { GetTranscodeSessionsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTranscodeSessionsMediaContainer = { size: 1, @@ -43,4 +43,4 @@ let value: GetTranscodeSessionsMediaContainer = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `size` | *number* | :heavy_minus_sign: | N/A | 1 | -| `transcodeSession` | [models.TranscodeSession](../models/transcodesession.md)[] | :heavy_minus_sign: | N/A | [
{
"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
}
] | \ No newline at end of file +| `transcodeSession` | [operations.TranscodeSession](../../../sdk/models/operations/transcodesession.md)[] | :heavy_minus_sign: | N/A | [
{
"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
}
] | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettranscodesessionsresponse.md b/docs/sdk/models/operations/gettranscodesessionsresponse.md new file mode 100644 index 00000000..50c83e4a --- /dev/null +++ b/docs/sdk/models/operations/gettranscodesessionsresponse.md @@ -0,0 +1,57 @@ +# GetTranscodeSessionsResponse + +## Example Usage + +```typescript +import { GetTranscodeSessionsResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetTranscodeSessionsResponse = { + contentType: "", + statusCode: 575947, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), + object: { + 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, + }, + ], + }, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetTranscodeSessionsResponseBody](../../../sdk/models/operations/gettranscodesessionsresponsebody.md) | :heavy_minus_sign: | The Transcode Sessions | \ No newline at end of file diff --git a/docs/models/gettranscodesessionsresponsebody.md b/docs/sdk/models/operations/gettranscodesessionsresponsebody.md similarity index 55% rename from docs/models/gettranscodesessionsresponsebody.md rename to docs/sdk/models/operations/gettranscodesessionsresponsebody.md index 4e49690c..e514179f 100644 --- a/docs/models/gettranscodesessionsresponsebody.md +++ b/docs/sdk/models/operations/gettranscodesessionsresponsebody.md @@ -5,7 +5,7 @@ The Transcode Sessions ## Example Usage ```typescript -import { GetTranscodeSessionsResponseBody } from "@lukehagar/plexjs"; +import { GetTranscodeSessionsResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTranscodeSessionsResponseBody = { mediaContainer: { @@ -44,6 +44,6 @@ let value: GetTranscodeSessionsResponseBody = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetTranscodeSessionsMediaContainer](../models/gettranscodesessionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetTranscodeSessionsMediaContainer](../../../sdk/models/operations/gettranscodesessionsmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/gettransienttokenqueryparamtype.md b/docs/sdk/models/operations/gettransienttokenqueryparamtype.md similarity index 93% rename from docs/models/gettransienttokenqueryparamtype.md rename to docs/sdk/models/operations/gettransienttokenqueryparamtype.md index 216263bf..24309e98 100644 --- a/docs/models/gettransienttokenqueryparamtype.md +++ b/docs/sdk/models/operations/gettransienttokenqueryparamtype.md @@ -5,7 +5,7 @@ ## Example Usage ```typescript -import { GetTransientTokenQueryParamType } from "@lukehagar/plexjs"; +import { GetTransientTokenQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTransientTokenQueryParamType = GetTransientTokenQueryParamType.Delegation; ``` diff --git a/docs/sdk/models/operations/gettransienttokenrequest.md b/docs/sdk/models/operations/gettransienttokenrequest.md new file mode 100644 index 00000000..d4dbd0ca --- /dev/null +++ b/docs/sdk/models/operations/gettransienttokenrequest.md @@ -0,0 +1,19 @@ +# GetTransientTokenRequest + +## Example Usage + +```typescript +import { GetTransientTokenQueryParamType, GetTransientTokenRequest, Scope } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetTransientTokenRequest = { + type: GetTransientTokenQueryParamType.Delegation, + scope: Scope.All, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `type` | [operations.GetTransientTokenQueryParamType](../../../sdk/models/operations/gettransienttokenqueryparamtype.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [operations.Scope](../../../sdk/models/operations/scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | \ No newline at end of file diff --git a/docs/models/gettransienttokenresponse.md b/docs/sdk/models/operations/gettransienttokenresponse.md similarity index 95% rename from docs/models/gettransienttokenresponse.md rename to docs/sdk/models/operations/gettransienttokenresponse.md index 59268fa1..1835d547 100644 --- a/docs/models/gettransienttokenresponse.md +++ b/docs/sdk/models/operations/gettransienttokenresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransientTokenResponse } from "@lukehagar/plexjs"; +import { GetTransientTokenResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTransientTokenResponse = { contentType: "", diff --git a/docs/models/getupdatestatusmediacontainer.md b/docs/sdk/models/operations/getupdatestatusmediacontainer.md similarity index 99% rename from docs/models/getupdatestatusmediacontainer.md rename to docs/sdk/models/operations/getupdatestatusmediacontainer.md index ea17b625..31a790ef 100644 --- a/docs/models/getupdatestatusmediacontainer.md +++ b/docs/sdk/models/operations/getupdatestatusmediacontainer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUpdateStatusMediaContainer } from "@lukehagar/plexjs"; +import { GetUpdateStatusMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUpdateStatusMediaContainer = { size: 1, @@ -52,4 +52,4 @@ let value: GetUpdateStatusMediaContainer = { | `checkedAt` | *number* | :heavy_minus_sign: | N/A | 1705801232 | | `downloadURL` | *string* | :heavy_minus_sign: | N/A | https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx | | `status` | *number* | :heavy_minus_sign: | N/A | 0 | -| `release` | [models.Release](../models/release.md)[] | :heavy_minus_sign: | N/A | [
{
"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\u0026build=linux-x86_64\u0026distro=redhat\u0026X-Plex-Token=xxxxxxxxxxxxxxxxxxxx",
"state": "notify"
}
] | \ No newline at end of file +| `release` | [operations.Release](../../../sdk/models/operations/release.md)[] | :heavy_minus_sign: | N/A | [
{
"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\u0026build=linux-x86_64\u0026distro=redhat\u0026X-Plex-Token=xxxxxxxxxxxxxxxxxxxx",
"state": "notify"
}
] | \ No newline at end of file diff --git a/docs/models/getupdatestatusresponse.md b/docs/sdk/models/operations/getupdatestatusresponse.md similarity index 64% rename from docs/models/getupdatestatusresponse.md rename to docs/sdk/models/operations/getupdatestatusresponse.md index 395b3fd0..4321c7e9 100644 --- a/docs/models/getupdatestatusresponse.md +++ b/docs/sdk/models/operations/getupdatestatusresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUpdateStatusResponse } from "@lukehagar/plexjs"; +import { GetUpdateStatusResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUpdateStatusResponse = { contentType: "", @@ -54,9 +54,9 @@ let value: GetUpdateStatusResponse = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [models.GetUpdateStatusResponseBody](../models/getupdatestatusresponsebody.md) | :heavy_minus_sign: | The Server Updates | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetUpdateStatusResponseBody](../../../sdk/models/operations/getupdatestatusresponsebody.md) | :heavy_minus_sign: | The Server Updates | \ No newline at end of file diff --git a/docs/models/getupdatestatusresponsebody.md b/docs/sdk/models/operations/getupdatestatusresponsebody.md similarity index 72% rename from docs/models/getupdatestatusresponsebody.md rename to docs/sdk/models/operations/getupdatestatusresponsebody.md index 2995e20c..9fe536ac 100644 --- a/docs/models/getupdatestatusresponsebody.md +++ b/docs/sdk/models/operations/getupdatestatusresponsebody.md @@ -5,7 +5,7 @@ The Server Updates ## Example Usage ```typescript -import { GetUpdateStatusResponseBody } from "@lukehagar/plexjs"; +import { GetUpdateStatusResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUpdateStatusResponseBody = { mediaContainer: { @@ -49,6 +49,6 @@ let value: GetUpdateStatusResponseBody = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `mediaContainer` | [models.GetUpdateStatusMediaContainer](../models/getupdatestatusmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [operations.GetUpdateStatusMediaContainer](../../../sdk/models/operations/getupdatestatusmediacontainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getuserdetailsauthenticationresponsestatus.md b/docs/sdk/models/operations/getuserdetailsauthenticationresponsestatus.md similarity index 91% rename from docs/models/getuserdetailsauthenticationresponsestatus.md rename to docs/sdk/models/operations/getuserdetailsauthenticationresponsestatus.md index 5ddaba7d..346e9720 100644 --- a/docs/models/getuserdetailsauthenticationresponsestatus.md +++ b/docs/sdk/models/operations/getuserdetailsauthenticationresponsestatus.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { GetUserDetailsAuthenticationResponseStatus } from "@lukehagar/plexjs"; +import { GetUserDetailsAuthenticationResponseStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsAuthenticationResponseStatus = GetUserDetailsAuthenticationResponseStatus.Inactive; diff --git a/docs/models/getuserdetailsauthenticationstatus.md b/docs/sdk/models/operations/getuserdetailsauthenticationstatus.md similarity index 93% rename from docs/models/getuserdetailsauthenticationstatus.md rename to docs/sdk/models/operations/getuserdetailsauthenticationstatus.md index b945f06f..918e58b5 100644 --- a/docs/models/getuserdetailsauthenticationstatus.md +++ b/docs/sdk/models/operations/getuserdetailsauthenticationstatus.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { GetUserDetailsAuthenticationStatus } from "@lukehagar/plexjs"; +import { GetUserDetailsAuthenticationStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsAuthenticationStatus = GetUserDetailsAuthenticationStatus.Inactive; ``` diff --git a/docs/models/getuserdetailsfeatures.md b/docs/sdk/models/operations/getuserdetailsfeatures.md similarity index 98% rename from docs/models/getuserdetailsfeatures.md rename to docs/sdk/models/operations/getuserdetailsfeatures.md index 58452b60..25c0e6cc 100644 --- a/docs/models/getuserdetailsfeatures.md +++ b/docs/sdk/models/operations/getuserdetailsfeatures.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUserDetailsFeatures } from "@lukehagar/plexjs"; +import { GetUserDetailsFeatures } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsFeatures = GetUserDetailsFeatures.HRKEnableEUR; ``` diff --git a/docs/models/getuserdetailsrequest.md b/docs/sdk/models/operations/getuserdetailsrequest.md similarity index 87% rename from docs/models/getuserdetailsrequest.md rename to docs/sdk/models/operations/getuserdetailsrequest.md index 207007d6..cafccd2b 100644 --- a/docs/models/getuserdetailsrequest.md +++ b/docs/sdk/models/operations/getuserdetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUserDetailsRequest } from "@lukehagar/plexjs"; +import { GetUserDetailsRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsRequest = { xPlexToken: "CV5xoxjTpFKUzBTShsaf", diff --git a/docs/models/getuserdetailsresponse.md b/docs/sdk/models/operations/getuserdetailsresponse.md similarity index 99% rename from docs/models/getuserdetailsresponse.md rename to docs/sdk/models/operations/getuserdetailsresponse.md index 76c091ba..47955c2a 100644 --- a/docs/models/getuserdetailsresponse.md +++ b/docs/sdk/models/operations/getuserdetailsresponse.md @@ -16,7 +16,7 @@ import { MailingListStatus, MediaReviewsVisibility, WatchedIndicator, -} from "@lukehagar/plexjs"; +} from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsResponse = { contentType: "", @@ -109,4 +109,4 @@ let value: GetUserDetailsResponse = { | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | | `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `userPlexAccount` | [models.GetUserDetailsUserPlexAccount](../models/getuserdetailsuserplexaccount.md) | :heavy_minus_sign: | Logged in user details | {
"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": "subscribed",
"maxHomeSize": 15,
"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": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"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",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file +| `userPlexAccount` | [operations.GetUserDetailsUserPlexAccount](../../../sdk/models/operations/getuserdetailsuserplexaccount.md) | :heavy_minus_sign: | Logged in user details | {
"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": "subscribed",
"maxHomeSize": 15,
"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": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"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",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file diff --git a/docs/models/getuserdetailsstatus.md b/docs/sdk/models/operations/getuserdetailsstatus.md similarity index 74% rename from docs/models/getuserdetailsstatus.md rename to docs/sdk/models/operations/getuserdetailsstatus.md index 00e83da0..d8eb6d39 100644 --- a/docs/models/getuserdetailsstatus.md +++ b/docs/sdk/models/operations/getuserdetailsstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUserDetailsStatus } from "@lukehagar/plexjs"; +import { GetUserDetailsStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsStatus = GetUserDetailsStatus.Online; ``` diff --git a/docs/sdk/models/operations/getuserdetailssubscription.md b/docs/sdk/models/operations/getuserdetailssubscription.md new file mode 100644 index 00000000..0a9b7ae0 --- /dev/null +++ b/docs/sdk/models/operations/getuserdetailssubscription.md @@ -0,0 +1,24 @@ +# GetUserDetailsSubscription + +## Example Usage + +```typescript +import { GetUserDetailsAuthenticationResponseStatus, GetUserDetailsSubscription } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetUserDetailsSubscription = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: GetUserDetailsAuthenticationResponseStatus.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `features` | [operations.GetUserDetailsFeatures](../../../sdk/models/operations/getuserdetailsfeatures.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [operations.GetUserDetailsAuthenticationResponseStatus](../../../sdk/models/operations/getuserdetailsauthenticationresponsestatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/getuserdetailsuserplexaccount.md b/docs/sdk/models/operations/getuserdetailsuserplexaccount.md similarity index 98% rename from docs/models/getuserdetailsuserplexaccount.md rename to docs/sdk/models/operations/getuserdetailsuserplexaccount.md index adcdc32c..9c4da7f2 100644 --- a/docs/models/getuserdetailsuserplexaccount.md +++ b/docs/sdk/models/operations/getuserdetailsuserplexaccount.md @@ -18,7 +18,7 @@ import { MailingListStatus, MediaReviewsVisibility, WatchedIndicator, -} from "@lukehagar/plexjs"; +} from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserDetailsUserPlexAccount = { adsConsent: true, @@ -123,19 +123,19 @@ let value: GetUserDetailsUserPlexAccount = { | `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | | `locale` | *string* | :heavy_check_mark: | The account locale | | | `mailingListActive` | *boolean* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | -| `mailingListStatus` | [models.MailingListStatus](../models/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | +| `mailingListStatus` | [operations.MailingListStatus](../../../sdk/models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | | `maxHomeSize` | *number* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | ~~`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` | [models.UserProfile](../models/userprofile.md) | :heavy_check_mark: | N/A | | +| `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 | | `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 | | -| `services` | [models.Services](../models/services.md)[] | :heavy_check_mark: | N/A | | -| `subscription` | [models.Subscription](../models/subscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | +| `services` | [operations.Services](../../../sdk/models/operations/services.md)[] | :heavy_check_mark: | N/A | | +| `subscription` | [operations.Subscription](../../../sdk/models/operations/subscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | | `subscriptionDescription` | *string* | :heavy_check_mark: | Description of the Plex Pass subscription | | -| `subscriptions` | [models.GetUserDetailsSubscription](../models/getuserdetailssubscription.md)[] | :heavy_check_mark: | N/A | | +| `subscriptions` | [operations.GetUserDetailsSubscription](../../../sdk/models/operations/getuserdetailssubscription.md)[] | :heavy_check_mark: | N/A | | | `thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | | `title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | | `twoFactorEnabled` | *boolean* | :heavy_minus_sign: | If two-factor authentication is enabled | | diff --git a/docs/models/getuserfriendsresponse.md b/docs/sdk/models/operations/getuserfriendsresponse.md similarity index 94% rename from docs/models/getuserfriendsresponse.md rename to docs/sdk/models/operations/getuserfriendsresponse.md index 533449f8..0f9a4762 100644 --- a/docs/models/getuserfriendsresponse.md +++ b/docs/sdk/models/operations/getuserfriendsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUserFriendsResponse, Status } from "@lukehagar/plexjs"; +import { GetUserFriendsResponse, Status } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetUserFriendsResponse = { contentType: "", @@ -37,4 +37,4 @@ let value: GetUserFriendsResponse = { | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `friends` | [models.Friend](../models/friend.md)[] | :heavy_minus_sign: | Friends Data | \ No newline at end of file +| `friends` | [operations.Friend](../../../sdk/models/operations/friend.md)[] | :heavy_minus_sign: | Friends Data | \ No newline at end of file diff --git a/docs/models/getwatchlistrequest.md b/docs/sdk/models/operations/getwatchlistrequest.md similarity index 94% rename from docs/models/getwatchlistrequest.md rename to docs/sdk/models/operations/getwatchlistrequest.md index bac10f59..5d6ffe31 100644 --- a/docs/models/getwatchlistrequest.md +++ b/docs/sdk/models/operations/getwatchlistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Filter, GetWatchListRequest } from "@lukehagar/plexjs"; +import { Filter, GetWatchListRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetWatchListRequest = { filter: Filter.Available, @@ -17,12 +17,12 @@ let value: GetWatchListRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `filter` | [models.Filter](../models/filter.md) | :heavy_check_mark: | Filter | | +| `filter` | [operations.Filter](../../../sdk/models/operations/filter.md) | :heavy_check_mark: | Filter | | | `sort` | *string* | :heavy_minus_sign: | In the format "field:dir". Available fields are "watchlistedAt" (Added At),
"titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating).
"dir" can be "asc" or "desc"
| | -| `libtype` | [models.Libtype](../models/libtype.md) | :heavy_minus_sign: | The type of library to filter. Can be "movie" or "show", or all if not present.
| | +| `libtype` | [operations.Libtype](../../../sdk/models/operations/libtype.md) | :heavy_minus_sign: | The type of library to filter. Can be "movie" or "show", or all if not present.
| | | `maxresults` | *number* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
| | -| `includeCollections` | [models.IncludeCollections](../models/includecollections.md) | :heavy_minus_sign: | include collections in the results
| | -| `includeExternalMedia` | [models.IncludeExternalMedia](../models/includeexternalmedia.md) | :heavy_minus_sign: | include external media in the results
| | +| `includeCollections` | [operations.IncludeCollections](../../../sdk/models/operations/includecollections.md) | :heavy_minus_sign: | include collections in the results
| | +| `includeExternalMedia` | [operations.IncludeExternalMedia](../../../sdk/models/operations/includeexternalmedia.md) | :heavy_minus_sign: | include external media in the results
| | | `xPlexContainerStart` | *number* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 0
| 0 | | `xPlexContainerSize` | *number* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 50
| 50 | | `xPlexToken` | *string* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | \ No newline at end of file diff --git a/docs/sdk/models/operations/getwatchlistresponse.md b/docs/sdk/models/operations/getwatchlistresponse.md new file mode 100644 index 00000000..ae7ed086 --- /dev/null +++ b/docs/sdk/models/operations/getwatchlistresponse.md @@ -0,0 +1,24 @@ +# GetWatchListResponse + +## Example Usage + +```typescript +import { GetWatchListResponse } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetWatchListResponse = { + contentType: "", + statusCode: 634274, + rawResponse: new Response('{"message": "hello world"}', { + headers: { "Content-Type": "application/json" }, + }), +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetWatchListResponseBody](../../../sdk/models/operations/getwatchlistresponsebody.md) | :heavy_minus_sign: | Watchlist Data | \ No newline at end of file diff --git a/docs/sdk/models/operations/getwatchlistresponsebody.md b/docs/sdk/models/operations/getwatchlistresponsebody.md new file mode 100644 index 00000000..3938dba1 --- /dev/null +++ b/docs/sdk/models/operations/getwatchlistresponsebody.md @@ -0,0 +1,23 @@ +# GetWatchListResponseBody + +Watchlist Data + +## Example Usage + +```typescript +import { GetWatchListResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: GetWatchListResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `librarySectionID` | *string* | :heavy_minus_sign: | N/A | +| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | +| `offset` | *number* | :heavy_minus_sign: | N/A | +| `totalSize` | *number* | :heavy_minus_sign: | N/A | +| `identifier` | *string* | :heavy_minus_sign: | N/A | +| `size` | *number* | :heavy_minus_sign: | N/A | +| `metadata` | [operations.Metadata](../../../sdk/models/operations/metadata.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/guids.md b/docs/sdk/models/operations/guids.md similarity index 86% rename from docs/models/guids.md rename to docs/sdk/models/operations/guids.md index 6c3305ac..a4ca5b7c 100644 --- a/docs/models/guids.md +++ b/docs/sdk/models/operations/guids.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Guids } from "@lukehagar/plexjs"; +import { Guids } from "@lukehagar/plexjs/sdk/models/operations"; let value: Guids = { id: "tvdb://2337", diff --git a/docs/sdk/models/operations/hub.md b/docs/sdk/models/operations/hub.md new file mode 100644 index 00000000..dd104ffc --- /dev/null +++ b/docs/sdk/models/operations/hub.md @@ -0,0 +1,57 @@ +# Hub + +## Example Usage + +```typescript +import { Hub } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Hub = { + hubKey: "/library/metadata/50768,65523,58188,57341,57302,57070", + key: "/playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio", + title: "Recent Playlists", + type: "playlist", + hubIdentifier: "home.playlists", + context: "hub.home.playlists", + size: 6, + more: true, + style: "shelf", + promoted: true, + metadata: [ + { + ratingKey: "57070", + key: "/playlists/57070/items", + guid: "com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c", + type: "playlist", + title: "November Movie Day", + titleSort: "Tracks", + summary: "", + smart: false, + playlistType: "video", + composite: "/playlists/57070/composite/1668787730", + icon: "playlist://image.smart", + viewCount: 2, + lastViewedAt: 1668787732, + duration: 16873000, + leafCount: 3, + addedAt: 1668779618, + updatedAt: 1668787730, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `hubKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | +| `key` | *string* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | +| `title` | *string* | :heavy_minus_sign: | N/A | Recent Playlists | +| `type` | *string* | :heavy_minus_sign: | N/A | playlist | +| `hubIdentifier` | *string* | :heavy_minus_sign: | N/A | home.playlists | +| `context` | *string* | :heavy_minus_sign: | N/A | hub.home.playlists | +| `size` | *number* | :heavy_minus_sign: | N/A | 6 | +| `more` | *boolean* | :heavy_minus_sign: | N/A | true | +| `style` | *string* | :heavy_minus_sign: | N/A | shelf | +| `promoted` | *boolean* | :heavy_minus_sign: | N/A | true | +| `metadata` | [operations.GetGlobalHubsMetadata](../../../sdk/models/operations/getglobalhubsmetadata.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/image.md b/docs/sdk/models/operations/image.md similarity index 88% rename from docs/models/image.md rename to docs/sdk/models/operations/image.md index b822af26..5c41b917 100644 --- a/docs/models/image.md +++ b/docs/sdk/models/operations/image.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Image } from "@lukehagar/plexjs"; +import { Image } from "@lukehagar/plexjs/sdk/models/operations"; let value: Image = {}; ``` diff --git a/docs/models/includecollections.md b/docs/sdk/models/operations/includecollections.md similarity index 75% rename from docs/models/includecollections.md rename to docs/sdk/models/operations/includecollections.md index da89f4e6..2740d703 100644 --- a/docs/models/includecollections.md +++ b/docs/sdk/models/operations/includecollections.md @@ -6,7 +6,7 @@ include collections in the results ## Example Usage ```typescript -import { IncludeCollections } from "@lukehagar/plexjs"; +import { IncludeCollections } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeCollections = IncludeCollections.Zero; ``` diff --git a/docs/models/includedetails.md b/docs/sdk/models/operations/includedetails.md similarity index 83% rename from docs/models/includedetails.md rename to docs/sdk/models/operations/includedetails.md index 0d96de11..2074e151 100644 --- a/docs/models/includedetails.md +++ b/docs/sdk/models/operations/includedetails.md @@ -7,7 +7,7 @@ Only exists for backwards compatibility, media providers other than the server l ## Example Usage ```typescript -import { IncludeDetails } from "@lukehagar/plexjs"; +import { IncludeDetails } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeDetails = IncludeDetails.Zero; ``` diff --git a/docs/models/includeexternalmedia.md b/docs/sdk/models/operations/includeexternalmedia.md similarity index 75% rename from docs/models/includeexternalmedia.md rename to docs/sdk/models/operations/includeexternalmedia.md index 92c83557..309bac8f 100644 --- a/docs/models/includeexternalmedia.md +++ b/docs/sdk/models/operations/includeexternalmedia.md @@ -6,7 +6,7 @@ include external media in the results ## Example Usage ```typescript -import { IncludeExternalMedia } from "@lukehagar/plexjs"; +import { IncludeExternalMedia } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeExternalMedia = IncludeExternalMedia.One; ``` diff --git a/docs/models/includeguids.md b/docs/sdk/models/operations/includeguids.md similarity index 76% rename from docs/models/includeguids.md rename to docs/sdk/models/operations/includeguids.md index a3649f0b..6acd187c 100644 --- a/docs/models/includeguids.md +++ b/docs/sdk/models/operations/includeguids.md @@ -6,7 +6,7 @@ Adds the Guids object to the response ## Example Usage ```typescript -import { IncludeGuids } from "@lukehagar/plexjs"; +import { IncludeGuids } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeGuids = IncludeGuids.One; ``` diff --git a/docs/models/includehttps.md b/docs/sdk/models/operations/includehttps.md similarity index 75% rename from docs/models/includehttps.md rename to docs/sdk/models/operations/includehttps.md index c2de1c4a..bd1d3e9f 100644 --- a/docs/models/includehttps.md +++ b/docs/sdk/models/operations/includehttps.md @@ -5,7 +5,7 @@ Include Https entries in the results ## Example Usage ```typescript -import { IncludeHttps } from "@lukehagar/plexjs"; +import { IncludeHttps } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeHttps = IncludeHttps.One; ``` diff --git a/docs/models/includeipv6.md b/docs/sdk/models/operations/includeipv6.md similarity index 75% rename from docs/models/includeipv6.md rename to docs/sdk/models/operations/includeipv6.md index 9e57b61a..8af68c43 100644 --- a/docs/models/includeipv6.md +++ b/docs/sdk/models/operations/includeipv6.md @@ -5,7 +5,7 @@ Include IPv6 entries in the results ## Example Usage ```typescript -import { IncludeIPv6 } from "@lukehagar/plexjs"; +import { IncludeIPv6 } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeIPv6 = IncludeIPv6.One; ``` diff --git a/docs/models/includemeta.md b/docs/sdk/models/operations/includemeta.md similarity index 75% rename from docs/models/includemeta.md rename to docs/sdk/models/operations/includemeta.md index 12d1d922..e05ef21d 100644 --- a/docs/models/includemeta.md +++ b/docs/sdk/models/operations/includemeta.md @@ -6,7 +6,7 @@ Adds the Meta object to the response ## Example Usage ```typescript -import { IncludeMeta } from "@lukehagar/plexjs"; +import { IncludeMeta } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeMeta = IncludeMeta.One; ``` diff --git a/docs/models/includerelay.md b/docs/sdk/models/operations/includerelay.md similarity index 80% rename from docs/models/includerelay.md rename to docs/sdk/models/operations/includerelay.md index 49ca1196..c69be327 100644 --- a/docs/models/includerelay.md +++ b/docs/sdk/models/operations/includerelay.md @@ -7,7 +7,7 @@ E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 ## Example Usage ```typescript -import { IncludeRelay } from "@lukehagar/plexjs"; +import { IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; let value: IncludeRelay = IncludeRelay.One; ``` diff --git a/docs/models/internalpaymentmethod.md b/docs/sdk/models/operations/internalpaymentmethod.md similarity index 73% rename from docs/models/internalpaymentmethod.md rename to docs/sdk/models/operations/internalpaymentmethod.md index 4212eedc..d01a125c 100644 --- a/docs/models/internalpaymentmethod.md +++ b/docs/sdk/models/operations/internalpaymentmethod.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { InternalPaymentMethod } from "@lukehagar/plexjs"; +import { InternalPaymentMethod } from "@lukehagar/plexjs/sdk/models/operations"; let value: InternalPaymentMethod = {}; ``` diff --git a/docs/models/level.md b/docs/sdk/models/operations/level.md similarity index 84% rename from docs/models/level.md rename to docs/sdk/models/operations/level.md index dd32033b..52a894ce 100644 --- a/docs/models/level.md +++ b/docs/sdk/models/operations/level.md @@ -11,7 +11,7 @@ An integer log level to write to the PMS log with. ## Example Usage ```typescript -import { Level } from "@lukehagar/plexjs"; +import { Level } from "@lukehagar/plexjs/sdk/models/operations"; let value: Level = Level.Four; ``` diff --git a/docs/models/librarysectionid.md b/docs/sdk/models/operations/librarysectionid.md similarity index 77% rename from docs/models/librarysectionid.md rename to docs/sdk/models/operations/librarysectionid.md index f41d01dd..8d1c1a3a 100644 --- a/docs/models/librarysectionid.md +++ b/docs/sdk/models/operations/librarysectionid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LibrarySectionID } from "@lukehagar/plexjs"; +import { LibrarySectionID } from "@lukehagar/plexjs/sdk/models/operations"; let value: LibrarySectionID = ""; ``` diff --git a/docs/models/libtype.md b/docs/sdk/models/operations/libtype.md similarity index 79% rename from docs/models/libtype.md rename to docs/sdk/models/operations/libtype.md index c57d30b2..ff8aa206 100644 --- a/docs/models/libtype.md +++ b/docs/sdk/models/operations/libtype.md @@ -6,7 +6,7 @@ The type of library to filter. Can be "movie" or "show", or all if not present. ## Example Usage ```typescript -import { Libtype } from "@lukehagar/plexjs"; +import { Libtype } from "@lukehagar/plexjs/sdk/models/operations"; let value: Libtype = Libtype.Movie; ``` diff --git a/docs/models/location.md b/docs/sdk/models/operations/location.md similarity index 88% rename from docs/models/location.md rename to docs/sdk/models/operations/location.md index e2c1709a..6719d916 100644 --- a/docs/models/location.md +++ b/docs/sdk/models/operations/location.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Location } from "@lukehagar/plexjs"; +import { Location } from "@lukehagar/plexjs/sdk/models/operations"; let value: Location = { id: 1, diff --git a/docs/models/loglinerequest.md b/docs/sdk/models/operations/loglinerequest.md similarity index 93% rename from docs/models/loglinerequest.md rename to docs/sdk/models/operations/loglinerequest.md index aa3a8952..4ff9fa1c 100644 --- a/docs/models/loglinerequest.md +++ b/docs/sdk/models/operations/loglinerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Level, LogLineRequest } from "@lukehagar/plexjs"; +import { Level, LogLineRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: LogLineRequest = { level: Level.Four, @@ -16,6 +16,6 @@ let value: LogLineRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `level` | [models.Level](../models/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | +| `level` | [operations.Level](../../../sdk/models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | | `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message | | `source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman | \ No newline at end of file diff --git a/docs/models/loglineresponse.md b/docs/sdk/models/operations/loglineresponse.md similarity index 95% rename from docs/models/loglineresponse.md rename to docs/sdk/models/operations/loglineresponse.md index e660fcf3..145a9b97 100644 --- a/docs/models/loglineresponse.md +++ b/docs/sdk/models/operations/loglineresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogLineResponse } from "@lukehagar/plexjs"; +import { LogLineResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: LogLineResponse = { contentType: "", diff --git a/docs/models/logmultilineresponse.md b/docs/sdk/models/operations/logmultilineresponse.md similarity index 95% rename from docs/models/logmultilineresponse.md rename to docs/sdk/models/operations/logmultilineresponse.md index 5e4de477..7ae13c30 100644 --- a/docs/models/logmultilineresponse.md +++ b/docs/sdk/models/operations/logmultilineresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogMultiLineResponse } from "@lukehagar/plexjs"; +import { LogMultiLineResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: LogMultiLineResponse = { contentType: "", diff --git a/docs/models/mailingliststatus.md b/docs/sdk/models/operations/mailingliststatus.md similarity index 80% rename from docs/models/mailingliststatus.md rename to docs/sdk/models/operations/mailingliststatus.md index a6f0ad7c..e3329096 100644 --- a/docs/models/mailingliststatus.md +++ b/docs/sdk/models/operations/mailingliststatus.md @@ -5,7 +5,7 @@ Your current mailing list status ## Example Usage ```typescript -import { MailingListStatus } from "@lukehagar/plexjs"; +import { MailingListStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: MailingListStatus = MailingListStatus.Unsubscribed; ``` diff --git a/docs/models/markplayedrequest.md b/docs/sdk/models/operations/markplayedrequest.md similarity index 89% rename from docs/models/markplayedrequest.md rename to docs/sdk/models/operations/markplayedrequest.md index 3274dbdb..3bd2d9bc 100644 --- a/docs/models/markplayedrequest.md +++ b/docs/sdk/models/operations/markplayedrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkPlayedRequest } from "@lukehagar/plexjs"; +import { MarkPlayedRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: MarkPlayedRequest = { key: 59398, diff --git a/docs/models/markplayedresponse.md b/docs/sdk/models/operations/markplayedresponse.md similarity index 95% rename from docs/models/markplayedresponse.md rename to docs/sdk/models/operations/markplayedresponse.md index 7887c3d8..ed20d5fe 100644 --- a/docs/models/markplayedresponse.md +++ b/docs/sdk/models/operations/markplayedresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkPlayedResponse } from "@lukehagar/plexjs"; +import { MarkPlayedResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: MarkPlayedResponse = { contentType: "", diff --git a/docs/models/markunplayedrequest.md b/docs/sdk/models/operations/markunplayedrequest.md similarity index 89% rename from docs/models/markunplayedrequest.md rename to docs/sdk/models/operations/markunplayedrequest.md index fd49d221..6e5c1ab8 100644 --- a/docs/models/markunplayedrequest.md +++ b/docs/sdk/models/operations/markunplayedrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkUnplayedRequest } from "@lukehagar/plexjs"; +import { MarkUnplayedRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: MarkUnplayedRequest = { key: 59398, diff --git a/docs/models/markunplayedresponse.md b/docs/sdk/models/operations/markunplayedresponse.md similarity index 95% rename from docs/models/markunplayedresponse.md rename to docs/sdk/models/operations/markunplayedresponse.md index 2d42066a..1aabd957 100644 --- a/docs/models/markunplayedresponse.md +++ b/docs/sdk/models/operations/markunplayedresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MarkUnplayedResponse } from "@lukehagar/plexjs"; +import { MarkUnplayedResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: MarkUnplayedResponse = { contentType: "", diff --git a/docs/sdk/models/operations/media.md b/docs/sdk/models/operations/media.md new file mode 100644 index 00000000..b917b0b2 --- /dev/null +++ b/docs/sdk/models/operations/media.md @@ -0,0 +1,57 @@ +# Media + +## Example Usage + +```typescript +import { Media } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Media = { + id: 120345, + duration: 7474422, + bitrate: 3623, + width: 1920, + height: 804, + aspectRatio: 2.35, + audioChannels: 6, + audioCodec: "ac3", + videoCodec: "h264", + videoResolution: 1080, + container: "mp4", + videoFrameRate: "24p", + optimizedForStreaming: 0, + videoProfile: "high", + part: [ + { + id: 120353, + key: "/library/parts/120353/1681803203/file.mp4", + duration: 7474422, + file: "/movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man.and.the.Wasp.Quantumania.2023.1080p.mp4", + size: 3395307162, + container: "mp4", + hasThumbnail: 1, + videoProfile: "high", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | 120345 | +| `duration` | *number* | :heavy_minus_sign: | N/A | 7474422 | +| `bitrate` | *number* | :heavy_minus_sign: | N/A | 3623 | +| `width` | *number* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *number* | :heavy_minus_sign: | N/A | 804 | +| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *string* | :heavy_minus_sign: | N/A | ac3 | +| `videoCodec` | *string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *number* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *number* | :heavy_minus_sign: | N/A | 0 | +| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | | +| `videoProfile` | *string* | :heavy_minus_sign: | N/A | high | +| `part` | [operations.Part](../../../sdk/models/operations/part.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/sdk/models/operations/mediacontainer.md b/docs/sdk/models/operations/mediacontainer.md new file mode 100644 index 00000000..26fd4afb --- /dev/null +++ b/docs/sdk/models/operations/mediacontainer.md @@ -0,0 +1,65 @@ +# MediaContainer + +## Example Usage + +```typescript +import { MediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: MediaContainer = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `size` | *number* | :heavy_minus_sign: | N/A | +| `allowCameraUpload` | *boolean* | :heavy_minus_sign: | N/A | +| `allowChannelAccess` | *boolean* | :heavy_minus_sign: | N/A | +| `allowMediaDeletion` | *boolean* | :heavy_minus_sign: | N/A | +| `allowSharing` | *boolean* | :heavy_minus_sign: | N/A | +| `allowSync` | *boolean* | :heavy_minus_sign: | N/A | +| `allowTuners` | *boolean* | :heavy_minus_sign: | N/A | +| `backgroundProcessing` | *boolean* | :heavy_minus_sign: | N/A | +| `certificate` | *boolean* | :heavy_minus_sign: | N/A | +| `companionProxy` | *boolean* | :heavy_minus_sign: | N/A | +| `countryCode` | *string* | :heavy_minus_sign: | N/A | +| `diagnostics` | *string* | :heavy_minus_sign: | N/A | +| `eventStream` | *boolean* | :heavy_minus_sign: | N/A | +| `friendlyName` | *string* | :heavy_minus_sign: | N/A | +| `hubSearch` | *boolean* | :heavy_minus_sign: | N/A | +| `itemClusters` | *boolean* | :heavy_minus_sign: | N/A | +| `livetv` | *number* | :heavy_minus_sign: | N/A | +| `machineIdentifier` | *string* | :heavy_minus_sign: | N/A | +| `mediaProviders` | *boolean* | :heavy_minus_sign: | N/A | +| `multiuser` | *boolean* | :heavy_minus_sign: | N/A | +| `musicAnalysis` | *number* | :heavy_minus_sign: | N/A | +| `myPlex` | *boolean* | :heavy_minus_sign: | N/A | +| `myPlexMappingState` | *string* | :heavy_minus_sign: | N/A | +| `myPlexSigninState` | *string* | :heavy_minus_sign: | N/A | +| `myPlexSubscription` | *boolean* | :heavy_minus_sign: | N/A | +| `myPlexUsername` | *string* | :heavy_minus_sign: | N/A | +| `offlineTranscode` | *number* | :heavy_minus_sign: | N/A | +| `ownerFeatures` | *string* | :heavy_minus_sign: | N/A | +| `photoAutoTag` | *boolean* | :heavy_minus_sign: | N/A | +| `platform` | *string* | :heavy_minus_sign: | N/A | +| `platformVersion` | *string* | :heavy_minus_sign: | N/A | +| `pluginHost` | *boolean* | :heavy_minus_sign: | N/A | +| `pushNotifications` | *boolean* | :heavy_minus_sign: | N/A | +| `readOnlyLibraries` | *boolean* | :heavy_minus_sign: | N/A | +| `streamingBrainABRVersion` | *number* | :heavy_minus_sign: | N/A | +| `streamingBrainVersion` | *number* | :heavy_minus_sign: | N/A | +| `sync` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderActiveVideoSessions` | *number* | :heavy_minus_sign: | N/A | +| `transcoderAudio` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderLyrics` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderPhoto` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderSubtitles` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderVideo` | *boolean* | :heavy_minus_sign: | N/A | +| `transcoderVideoBitrates` | *string* | :heavy_minus_sign: | N/A | +| `transcoderVideoQualities` | *string* | :heavy_minus_sign: | N/A | +| `transcoderVideoResolutions` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `updater` | *boolean* | :heavy_minus_sign: | N/A | +| `version` | *string* | :heavy_minus_sign: | N/A | +| `voiceSearch` | *boolean* | :heavy_minus_sign: | N/A | +| `directory` | [operations.Directory](../../../sdk/models/operations/directory.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/mediaprovider.md b/docs/sdk/models/operations/mediaprovider.md new file mode 100644 index 00000000..f3b95776 --- /dev/null +++ b/docs/sdk/models/operations/mediaprovider.md @@ -0,0 +1,19 @@ +# MediaProvider + +## Example Usage + +```typescript +import { MediaProvider } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: MediaProvider = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `identifier` | *string* | :heavy_minus_sign: | N/A | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `types` | *string* | :heavy_minus_sign: | N/A | +| `protocols` | *string* | :heavy_minus_sign: | N/A | +| `feature` | [operations.Feature](../../../sdk/models/operations/feature.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/mediareviewsvisibility.md b/docs/sdk/models/operations/mediareviewsvisibility.md similarity index 72% rename from docs/models/mediareviewsvisibility.md rename to docs/sdk/models/operations/mediareviewsvisibility.md index 23b142c7..17050ffd 100644 --- a/docs/models/mediareviewsvisibility.md +++ b/docs/sdk/models/operations/mediareviewsvisibility.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MediaReviewsVisibility } from "@lukehagar/plexjs"; +import { MediaReviewsVisibility } from "@lukehagar/plexjs/sdk/models/operations"; let value: MediaReviewsVisibility = MediaReviewsVisibility.One; ``` diff --git a/docs/sdk/models/operations/metadata.md b/docs/sdk/models/operations/metadata.md new file mode 100644 index 00000000..54e35c52 --- /dev/null +++ b/docs/sdk/models/operations/metadata.md @@ -0,0 +1,49 @@ +# Metadata + +## Example Usage + +```typescript +import { Metadata } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Metadata = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `art` | *string* | :heavy_minus_sign: | N/A | +| `guid` | *string* | :heavy_minus_sign: | N/A | +| `key` | *string* | :heavy_minus_sign: | N/A | +| `ratingKey` | *string* | :heavy_minus_sign: | N/A | +| `studio` | *string* | :heavy_minus_sign: | N/A | +| `tagline` | *string* | :heavy_minus_sign: | N/A | +| `type` | *string* | :heavy_minus_sign: | N/A | +| `thumb` | *string* | :heavy_minus_sign: | N/A | +| `addedAt` | *number* | :heavy_minus_sign: | N/A | +| `duration` | *number* | :heavy_minus_sign: | N/A | +| `publicPagesURL` | *string* | :heavy_minus_sign: | N/A | +| `slug` | *string* | :heavy_minus_sign: | N/A | +| `userState` | *boolean* | :heavy_minus_sign: | N/A | +| `title` | *string* | :heavy_minus_sign: | N/A | +| `contentRating` | *string* | :heavy_minus_sign: | N/A | +| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | +| `year` | *number* | :heavy_minus_sign: | N/A | +| `image` | [operations.Image](../../../sdk/models/operations/image.md)[] | :heavy_minus_sign: | N/A | +| `banner` | *string* | :heavy_minus_sign: | N/A | +| `rating` | *number* | :heavy_minus_sign: | N/A | +| `expiresAt` | *number* | :heavy_minus_sign: | N/A | +| `originalTitle` | *string* | :heavy_minus_sign: | N/A | +| `audienceRating` | *number* | :heavy_minus_sign: | N/A | +| `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | +| `ratingImage` | *string* | :heavy_minus_sign: | N/A | +| `imdbRatingCount` | *number* | :heavy_minus_sign: | N/A | +| `subtype` | *string* | :heavy_minus_sign: | N/A | +| `theme` | *string* | :heavy_minus_sign: | N/A | +| `leafCount` | *number* | :heavy_minus_sign: | N/A | +| `childCount` | *number* | :heavy_minus_sign: | N/A | +| `isContinuingSeries` | *boolean* | :heavy_minus_sign: | N/A | +| `skipChildren` | *boolean* | :heavy_minus_sign: | N/A | +| `availabilityId` | *string* | :heavy_minus_sign: | N/A | +| `streamingMediaId` | *string* | :heavy_minus_sign: | N/A | +| `playableKey` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/minsize.md b/docs/sdk/models/operations/minsize.md similarity index 82% rename from docs/models/minsize.md rename to docs/sdk/models/operations/minsize.md index de1381ac..64e2a566 100644 --- a/docs/models/minsize.md +++ b/docs/sdk/models/operations/minsize.md @@ -5,7 +5,7 @@ images are always scaled proportionally. A value of '1' in minSize will make the ## Example Usage ```typescript -import { MinSize } from "@lukehagar/plexjs"; +import { MinSize } from "@lukehagar/plexjs/sdk/models/operations"; let value: MinSize = MinSize.One; ``` diff --git a/docs/models/myplex.md b/docs/sdk/models/operations/myplex.md similarity index 99% rename from docs/models/myplex.md rename to docs/sdk/models/operations/myplex.md index d47646fa..50a617db 100644 --- a/docs/models/myplex.md +++ b/docs/sdk/models/operations/myplex.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MyPlex } from "@lukehagar/plexjs"; +import { MyPlex } from "@lukehagar/plexjs/sdk/models/operations"; let value: MyPlex = { authToken: "Z5v-PrNASDFpsaCi3CPK7", diff --git a/docs/models/onlytransient.md b/docs/sdk/models/operations/onlytransient.md similarity index 82% rename from docs/models/onlytransient.md rename to docs/sdk/models/operations/onlytransient.md index a33351b5..f550a91c 100644 --- a/docs/models/onlytransient.md +++ b/docs/sdk/models/operations/onlytransient.md @@ -5,7 +5,7 @@ Only return hubs which are "transient", meaning those which are prone to changin ## Example Usage ```typescript -import { OnlyTransient } from "@lukehagar/plexjs"; +import { OnlyTransient } from "@lukehagar/plexjs/sdk/models/operations"; let value: OnlyTransient = OnlyTransient.One; ``` diff --git a/docs/models/operator.md b/docs/sdk/models/operations/operator.md similarity index 88% rename from docs/models/operator.md rename to docs/sdk/models/operations/operator.md index 204834fe..3be885d6 100644 --- a/docs/models/operator.md +++ b/docs/sdk/models/operations/operator.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Operator } from "@lukehagar/plexjs"; +import { Operator } from "@lukehagar/plexjs/sdk/models/operations"; let value: Operator = { key: "=", diff --git a/docs/models/part.md b/docs/sdk/models/operations/part.md similarity index 98% rename from docs/models/part.md rename to docs/sdk/models/operations/part.md index 182b1337..371d5088 100644 --- a/docs/models/part.md +++ b/docs/sdk/models/operations/part.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Part } from "@lukehagar/plexjs"; +import { Part } from "@lukehagar/plexjs/sdk/models/operations"; let value: Part = { id: 120353, diff --git a/docs/sdk/models/operations/pastsubscription.md b/docs/sdk/models/operations/pastsubscription.md new file mode 100644 index 00000000..9f1abf45 --- /dev/null +++ b/docs/sdk/models/operations/pastsubscription.md @@ -0,0 +1,48 @@ +# PastSubscription + +## Example Usage + +```typescript +import { PastSubscription, PostUsersSignInDataState } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: PastSubscription = { + id: "", + mode: "", + renewsAt: 1556281940, + endsAt: 1556281940, + canceled: false, + gracePeriod: false, + onHold: false, + canReactivate: false, + canUpgrade: false, + canDowngrade: false, + canConvert: false, + type: "plexpass", + transfer: "", + state: PostUsersSignInDataState.Ended, + billing: { + internalPaymentMethod: {}, + paymentMethodId: 880476, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | N/A | | +| `mode` | *string* | :heavy_check_mark: | N/A | | +| `renewsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | +| `endsAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | +| `canceled` | *boolean* | :heavy_minus_sign: | N/A | false | +| `gracePeriod` | *boolean* | :heavy_minus_sign: | N/A | false | +| `onHold` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canReactivate` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canUpgrade` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canDowngrade` | *boolean* | :heavy_minus_sign: | N/A | false | +| `canConvert` | *boolean* | :heavy_minus_sign: | N/A | false | +| `type` | *string* | :heavy_check_mark: | N/A | plexpass | +| `transfer` | *string* | :heavy_check_mark: | N/A | | +| `state` | [operations.PostUsersSignInDataState](../../../sdk/models/operations/postuserssignindatastate.md) | :heavy_check_mark: | N/A | ended | +| `billing` | [operations.Billing](../../../sdk/models/operations/billing.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/pathparamtaskname.md b/docs/sdk/models/operations/pathparamtaskname.md similarity index 93% rename from docs/models/pathparamtaskname.md rename to docs/sdk/models/operations/pathparamtaskname.md index 62dd848b..e5495341 100644 --- a/docs/models/pathparamtaskname.md +++ b/docs/sdk/models/operations/pathparamtaskname.md @@ -5,7 +5,7 @@ The name of the task to be started. ## Example Usage ```typescript -import { PathParamTaskName } from "@lukehagar/plexjs"; +import { PathParamTaskName } from "@lukehagar/plexjs/sdk/models/operations"; let value: PathParamTaskName = PathParamTaskName.RefreshLocalMedia; ``` diff --git a/docs/models/performsearchrequest.md b/docs/sdk/models/operations/performsearchrequest.md similarity index 96% rename from docs/models/performsearchrequest.md rename to docs/sdk/models/operations/performsearchrequest.md index 4bbbb093..36d55198 100644 --- a/docs/models/performsearchrequest.md +++ b/docs/sdk/models/operations/performsearchrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PerformSearchRequest } from "@lukehagar/plexjs"; +import { PerformSearchRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: PerformSearchRequest = { query: "arnold", diff --git a/docs/models/performsearchresponse.md b/docs/sdk/models/operations/performsearchresponse.md similarity index 95% rename from docs/models/performsearchresponse.md rename to docs/sdk/models/operations/performsearchresponse.md index f198d629..2591d173 100644 --- a/docs/models/performsearchresponse.md +++ b/docs/sdk/models/operations/performsearchresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PerformSearchResponse } from "@lukehagar/plexjs"; +import { PerformSearchResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: PerformSearchResponse = { contentType: "", diff --git a/docs/models/performvoicesearchrequest.md b/docs/sdk/models/operations/performvoicesearchrequest.md similarity index 96% rename from docs/models/performvoicesearchrequest.md rename to docs/sdk/models/operations/performvoicesearchrequest.md index 042e3f1a..0a7bcd19 100644 --- a/docs/models/performvoicesearchrequest.md +++ b/docs/sdk/models/operations/performvoicesearchrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PerformVoiceSearchRequest } from "@lukehagar/plexjs"; +import { PerformVoiceSearchRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: PerformVoiceSearchRequest = { query: "dead+poop", diff --git a/docs/models/performvoicesearchresponse.md b/docs/sdk/models/operations/performvoicesearchresponse.md similarity index 95% rename from docs/models/performvoicesearchresponse.md rename to docs/sdk/models/operations/performvoicesearchresponse.md index 597e8051..ef4467f6 100644 --- a/docs/models/performvoicesearchresponse.md +++ b/docs/sdk/models/operations/performvoicesearchresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PerformVoiceSearchResponse } from "@lukehagar/plexjs"; +import { PerformVoiceSearchResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: PerformVoiceSearchResponse = { contentType: "", diff --git a/docs/models/pivot.md b/docs/sdk/models/operations/pivot.md similarity index 92% rename from docs/models/pivot.md rename to docs/sdk/models/operations/pivot.md index 90bb3526..2a53ce75 100644 --- a/docs/models/pivot.md +++ b/docs/sdk/models/operations/pivot.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Pivot } from "@lukehagar/plexjs"; +import { Pivot } from "@lukehagar/plexjs/sdk/models/operations"; let value: Pivot = {}; ``` diff --git a/docs/models/player.md b/docs/sdk/models/operations/player.md similarity index 97% rename from docs/models/player.md rename to docs/sdk/models/operations/player.md index dde0e062..dfdefd94 100644 --- a/docs/models/player.md +++ b/docs/sdk/models/operations/player.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Player } from "@lukehagar/plexjs"; +import { Player } from "@lukehagar/plexjs/sdk/models/operations"; let value: Player = { address: "10.10.10.171", diff --git a/docs/models/playlisttype.md b/docs/sdk/models/operations/playlisttype.md similarity index 77% rename from docs/models/playlisttype.md rename to docs/sdk/models/operations/playlisttype.md index c27d5c4e..70ecd107 100644 --- a/docs/models/playlisttype.md +++ b/docs/sdk/models/operations/playlisttype.md @@ -5,7 +5,7 @@ limit to a type of playlist. ## Example Usage ```typescript -import { PlaylistType } from "@lukehagar/plexjs"; +import { PlaylistType } from "@lukehagar/plexjs/sdk/models/operations"; let value: PlaylistType = PlaylistType.Audio; ``` diff --git a/docs/models/plexdevice.md b/docs/sdk/models/operations/plexdevice.md similarity index 98% rename from docs/models/plexdevice.md rename to docs/sdk/models/operations/plexdevice.md index e3dc2c66..a56de09f 100644 --- a/docs/models/plexdevice.md +++ b/docs/sdk/models/operations/plexdevice.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PlexDevice } from "@lukehagar/plexjs"; +import { PlexDevice } from "@lukehagar/plexjs/sdk/models/operations"; let value: PlexDevice = { name: "", @@ -70,4 +70,4 @@ let value: PlexDevice = { | `publicAddressMatches` | *boolean* | :heavy_check_mark: | N/A | | `dnsRebindingProtection` | *boolean* | :heavy_check_mark: | N/A | | `natLoopbackSupported` | *boolean* | :heavy_check_mark: | N/A | -| `connections` | [models.Connections](../models/connections.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file +| `connections` | [operations.Connections](../../../sdk/models/operations/connections.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/postuserssignindataauthenticationfeatures.md b/docs/sdk/models/operations/postuserssignindataauthenticationfeatures.md similarity index 99% rename from docs/models/postuserssignindataauthenticationfeatures.md rename to docs/sdk/models/operations/postuserssignindataauthenticationfeatures.md index d57648d2..ad45a703 100644 --- a/docs/models/postuserssignindataauthenticationfeatures.md +++ b/docs/sdk/models/operations/postuserssignindataauthenticationfeatures.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataAuthenticationFeatures } from "@lukehagar/plexjs"; +import { PostUsersSignInDataAuthenticationFeatures } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataAuthenticationFeatures = PostUsersSignInDataAuthenticationFeatures.PhotosFavorites; diff --git a/docs/models/postuserssignindataauthenticationresponsestatus.md b/docs/sdk/models/operations/postuserssignindataauthenticationresponsestatus.md similarity index 91% rename from docs/models/postuserssignindataauthenticationresponsestatus.md rename to docs/sdk/models/operations/postuserssignindataauthenticationresponsestatus.md index 658b9ba3..6eeae9b7 100644 --- a/docs/models/postuserssignindataauthenticationresponsestatus.md +++ b/docs/sdk/models/operations/postuserssignindataauthenticationresponsestatus.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { PostUsersSignInDataAuthenticationResponseStatus } from "@lukehagar/plexjs"; +import { PostUsersSignInDataAuthenticationResponseStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataAuthenticationResponseStatus = PostUsersSignInDataAuthenticationResponseStatus.Inactive; diff --git a/docs/models/postuserssignindataauthenticationstatus.md b/docs/sdk/models/operations/postuserssignindataauthenticationstatus.md similarity index 92% rename from docs/models/postuserssignindataauthenticationstatus.md rename to docs/sdk/models/operations/postuserssignindataauthenticationstatus.md index d75ee071..8f4a7567 100644 --- a/docs/models/postuserssignindataauthenticationstatus.md +++ b/docs/sdk/models/operations/postuserssignindataauthenticationstatus.md @@ -5,7 +5,7 @@ String representation of subscriptionActive ## Example Usage ```typescript -import { PostUsersSignInDataAuthenticationStatus } from "@lukehagar/plexjs"; +import { PostUsersSignInDataAuthenticationStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataAuthenticationStatus = PostUsersSignInDataAuthenticationStatus.Inactive; diff --git a/docs/sdk/models/operations/postuserssignindataauthenticationsubscription.md b/docs/sdk/models/operations/postuserssignindataauthenticationsubscription.md new file mode 100644 index 00000000..adc5a0e6 --- /dev/null +++ b/docs/sdk/models/operations/postuserssignindataauthenticationsubscription.md @@ -0,0 +1,27 @@ +# PostUsersSignInDataAuthenticationSubscription + +## Example Usage + +```typescript +import { + PostUsersSignInDataAuthenticationResponseStatus, + PostUsersSignInDataAuthenticationSubscription, +} from "@lukehagar/plexjs/sdk/models/operations"; + +let value: PostUsersSignInDataAuthenticationSubscription = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: PostUsersSignInDataAuthenticationResponseStatus.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `features` | [operations.PostUsersSignInDataAuthenticationFeatures](../../../sdk/models/operations/postuserssignindataauthenticationfeatures.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [operations.PostUsersSignInDataAuthenticationResponseStatus](../../../sdk/models/operations/postuserssignindataauthenticationresponsestatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/postuserssignindataautoselectsubtitle.md b/docs/sdk/models/operations/postuserssignindataautoselectsubtitle.md similarity index 92% rename from docs/models/postuserssignindataautoselectsubtitle.md rename to docs/sdk/models/operations/postuserssignindataautoselectsubtitle.md index 003a3f02..58cff41b 100644 --- a/docs/models/postuserssignindataautoselectsubtitle.md +++ b/docs/sdk/models/operations/postuserssignindataautoselectsubtitle.md @@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud ## Example Usage ```typescript -import { PostUsersSignInDataAutoSelectSubtitle } from "@lukehagar/plexjs"; +import { PostUsersSignInDataAutoSelectSubtitle } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataAutoSelectSubtitle = PostUsersSignInDataAutoSelectSubtitle.One; ``` diff --git a/docs/models/postuserssignindatadefaultsubtitleaccessibility.md b/docs/sdk/models/operations/postuserssignindatadefaultsubtitleaccessibility.md similarity index 92% rename from docs/models/postuserssignindatadefaultsubtitleaccessibility.md rename to docs/sdk/models/operations/postuserssignindatadefaultsubtitleaccessibility.md index 9a660f05..65290c5e 100644 --- a/docs/models/postuserssignindatadefaultsubtitleaccessibility.md +++ b/docs/sdk/models/operations/postuserssignindatadefaultsubtitleaccessibility.md @@ -5,7 +5,7 @@ The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer no ## Example Usage ```typescript -import { PostUsersSignInDataDefaultSubtitleAccessibility } from "@lukehagar/plexjs"; +import { PostUsersSignInDataDefaultSubtitleAccessibility } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataDefaultSubtitleAccessibility = PostUsersSignInDataDefaultSubtitleAccessibility.One; diff --git a/docs/models/postuserssignindatadefaultsubtitleforced.md b/docs/sdk/models/operations/postuserssignindatadefaultsubtitleforced.md similarity index 93% rename from docs/models/postuserssignindatadefaultsubtitleforced.md rename to docs/sdk/models/operations/postuserssignindatadefaultsubtitleforced.md index 6a768c09..42231c3c 100644 --- a/docs/models/postuserssignindatadefaultsubtitleforced.md +++ b/docs/sdk/models/operations/postuserssignindatadefaultsubtitleforced.md @@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer ## Example Usage ```typescript -import { PostUsersSignInDataDefaultSubtitleForced } from "@lukehagar/plexjs"; +import { PostUsersSignInDataDefaultSubtitleForced } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataDefaultSubtitleForced = PostUsersSignInDataDefaultSubtitleForced.Zero; ``` diff --git a/docs/models/postuserssignindatafeatures.md b/docs/sdk/models/operations/postuserssignindatafeatures.md similarity index 98% rename from docs/models/postuserssignindatafeatures.md rename to docs/sdk/models/operations/postuserssignindatafeatures.md index 618b9c56..00cc8da9 100644 --- a/docs/models/postuserssignindatafeatures.md +++ b/docs/sdk/models/operations/postuserssignindatafeatures.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataFeatures } from "@lukehagar/plexjs"; +import { PostUsersSignInDataFeatures } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataFeatures = PostUsersSignInDataFeatures.AmazonLoopDebug; ``` diff --git a/docs/models/postuserssignindataglobals.md b/docs/sdk/models/operations/postuserssignindataglobals.md similarity index 96% rename from docs/models/postuserssignindataglobals.md rename to docs/sdk/models/operations/postuserssignindataglobals.md index 5de331a6..f60c8c1f 100644 --- a/docs/models/postuserssignindataglobals.md +++ b/docs/sdk/models/operations/postuserssignindataglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataGlobals } from "@lukehagar/plexjs"; +import { PostUsersSignInDataGlobals } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataGlobals = {}; ``` diff --git a/docs/models/postuserssignindatamailingliststatus.md b/docs/sdk/models/operations/postuserssignindatamailingliststatus.md similarity index 93% rename from docs/models/postuserssignindatamailingliststatus.md rename to docs/sdk/models/operations/postuserssignindatamailingliststatus.md index 0f45ba2b..72fde72b 100644 --- a/docs/models/postuserssignindatamailingliststatus.md +++ b/docs/sdk/models/operations/postuserssignindatamailingliststatus.md @@ -5,7 +5,7 @@ Your current mailing list status ## Example Usage ```typescript -import { PostUsersSignInDataMailingListStatus } from "@lukehagar/plexjs"; +import { PostUsersSignInDataMailingListStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataMailingListStatus = PostUsersSignInDataMailingListStatus.Unsubscribed; ``` diff --git a/docs/models/postuserssignindatamediareviewsvisibility.md b/docs/sdk/models/operations/postuserssignindatamediareviewsvisibility.md similarity index 90% rename from docs/models/postuserssignindatamediareviewsvisibility.md rename to docs/sdk/models/operations/postuserssignindatamediareviewsvisibility.md index 80f068e5..198d4772 100644 --- a/docs/models/postuserssignindatamediareviewsvisibility.md +++ b/docs/sdk/models/operations/postuserssignindatamediareviewsvisibility.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataMediaReviewsVisibility } from "@lukehagar/plexjs"; +import { PostUsersSignInDataMediaReviewsVisibility } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataMediaReviewsVisibility = PostUsersSignInDataMediaReviewsVisibility.Zero; diff --git a/docs/models/postuserssignindatarequest.md b/docs/sdk/models/operations/postuserssignindatarequest.md similarity index 92% rename from docs/models/postuserssignindatarequest.md rename to docs/sdk/models/operations/postuserssignindatarequest.md index 126313e1..202cc6fb 100644 --- a/docs/models/postuserssignindatarequest.md +++ b/docs/sdk/models/operations/postuserssignindatarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataRequest } from "@lukehagar/plexjs"; +import { PostUsersSignInDataRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataRequest = { requestBody: { @@ -18,4 +18,4 @@ let value: PostUsersSignInDataRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `requestBody` | [models.PostUsersSignInDataRequestBody](../models/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file +| `requestBody` | [operations.PostUsersSignInDataRequestBody](../../../sdk/models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/models/postuserssignindatarequestbody.md b/docs/sdk/models/operations/postuserssignindatarequestbody.md similarity index 96% rename from docs/models/postuserssignindatarequestbody.md rename to docs/sdk/models/operations/postuserssignindatarequestbody.md index 4f557139..9fa32f92 100644 --- a/docs/models/postuserssignindatarequestbody.md +++ b/docs/sdk/models/operations/postuserssignindatarequestbody.md @@ -5,7 +5,7 @@ Login credentials ## Example Usage ```typescript -import { PostUsersSignInDataRequestBody } from "@lukehagar/plexjs"; +import { PostUsersSignInDataRequestBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataRequestBody = { login: "username@email.com", diff --git a/docs/models/postuserssignindataresponse.md b/docs/sdk/models/operations/postuserssignindataresponse.md similarity index 99% rename from docs/models/postuserssignindataresponse.md rename to docs/sdk/models/operations/postuserssignindataresponse.md index 85f3e6ae..c4ffcf6c 100644 --- a/docs/models/postuserssignindataresponse.md +++ b/docs/sdk/models/operations/postuserssignindataresponse.md @@ -17,7 +17,7 @@ import { PostUsersSignInDataState, PostUsersSignInDataStatus, PostUsersSignInDataWatchedIndicator, -} from "@lukehagar/plexjs"; +} from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataResponse = { contentType: "", @@ -133,4 +133,4 @@ let value: PostUsersSignInDataResponse = { | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | | `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `userPlexAccount` | [models.PostUsersSignInDataUserPlexAccount](../models/postuserssignindatauserplexaccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | {
"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": "subscribed",
"maxHomeSize": 15,
"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": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"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",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file +| `userPlexAccount` | [operations.PostUsersSignInDataUserPlexAccount](../../../sdk/models/operations/postuserssignindatauserplexaccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | {
"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": "subscribed",
"maxHomeSize": 15,
"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": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"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",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindataservices.md b/docs/sdk/models/operations/postuserssignindataservices.md new file mode 100644 index 00000000..ff8001dd --- /dev/null +++ b/docs/sdk/models/operations/postuserssignindataservices.md @@ -0,0 +1,25 @@ +# PostUsersSignInDataServices + +## Example Usage + +```typescript +import { PostUsersSignInDataServices, PostUsersSignInDataStatus } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: PostUsersSignInDataServices = { + identifier: "metadata-dev", + endpoint: "https://epg.provider.plex.tv", + token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", + secret: "", + status: PostUsersSignInDataStatus.Online, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | +| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `secret` | *string* | :heavy_check_mark: | N/A | | +| `status` | [operations.PostUsersSignInDataStatus](../../../sdk/models/operations/postuserssignindatastatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/models/postuserssignindatastate.md b/docs/sdk/models/operations/postuserssignindatastate.md similarity index 71% rename from docs/models/postuserssignindatastate.md rename to docs/sdk/models/operations/postuserssignindatastate.md index 1f1c0a64..f120fcda 100644 --- a/docs/models/postuserssignindatastate.md +++ b/docs/sdk/models/operations/postuserssignindatastate.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataState } from "@lukehagar/plexjs"; +import { PostUsersSignInDataState } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataState = PostUsersSignInDataState.Ended; ``` diff --git a/docs/models/postuserssignindatastatus.md b/docs/sdk/models/operations/postuserssignindatastatus.md similarity index 74% rename from docs/models/postuserssignindatastatus.md rename to docs/sdk/models/operations/postuserssignindatastatus.md index b21353cb..07371388 100644 --- a/docs/models/postuserssignindatastatus.md +++ b/docs/sdk/models/operations/postuserssignindatastatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataStatus } from "@lukehagar/plexjs"; +import { PostUsersSignInDataStatus } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataStatus = PostUsersSignInDataStatus.Online; ``` diff --git a/docs/sdk/models/operations/postuserssignindatasubscription.md b/docs/sdk/models/operations/postuserssignindatasubscription.md new file mode 100644 index 00000000..51de8410 --- /dev/null +++ b/docs/sdk/models/operations/postuserssignindatasubscription.md @@ -0,0 +1,26 @@ +# PostUsersSignInDataSubscription + +If the account’s Plex Pass subscription is active + +## Example Usage + +```typescript +import { PostUsersSignInDataAuthenticationStatus, PostUsersSignInDataSubscription } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: PostUsersSignInDataSubscription = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: PostUsersSignInDataAuthenticationStatus.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `features` | [operations.PostUsersSignInDataFeatures](../../../sdk/models/operations/postuserssignindatafeatures.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [operations.PostUsersSignInDataAuthenticationStatus](../../../sdk/models/operations/postuserssignindataauthenticationstatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/postuserssignindatauserplexaccount.md b/docs/sdk/models/operations/postuserssignindatauserplexaccount.md similarity index 96% rename from docs/models/postuserssignindatauserplexaccount.md rename to docs/sdk/models/operations/postuserssignindatauserplexaccount.md index 9c3d30d5..6d3870a0 100644 --- a/docs/models/postuserssignindatauserplexaccount.md +++ b/docs/sdk/models/operations/postuserssignindatauserplexaccount.md @@ -19,7 +19,7 @@ import { PostUsersSignInDataStatus, PostUsersSignInDataUserPlexAccount, PostUsersSignInDataWatchedIndicator, -} from "@lukehagar/plexjs"; +} from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataUserPlexAccount = { adsConsent: true, @@ -147,23 +147,23 @@ let value: PostUsersSignInDataUserPlexAccount = { | `joinedAt` | *number* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | | `locale` | *string* | :heavy_check_mark: | The account locale | | | `mailingListActive` | *boolean* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | -| `mailingListStatus` | [models.PostUsersSignInDataMailingListStatus](../models/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | +| `mailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../../sdk/models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | | `maxHomeSize` | *number* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | ~~`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` | [models.PostUsersSignInDataUserProfile](../models/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | | +| `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 | | `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 | | -| `services` | [models.PostUsersSignInDataServices](../models/postuserssignindataservices.md)[] | :heavy_check_mark: | N/A | | -| `subscription` | [models.PostUsersSignInDataSubscription](../models/postuserssignindatasubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | +| `services` | [operations.PostUsersSignInDataServices](../../../sdk/models/operations/postuserssignindataservices.md)[] | :heavy_check_mark: | N/A | | +| `subscription` | [operations.PostUsersSignInDataSubscription](../../../sdk/models/operations/postuserssignindatasubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | | `subscriptionDescription` | *string* | :heavy_check_mark: | Description of the Plex Pass subscription | | -| `subscriptions` | [models.PostUsersSignInDataAuthenticationSubscription](../models/postuserssignindataauthenticationsubscription.md)[] | :heavy_check_mark: | N/A | | +| `subscriptions` | [operations.PostUsersSignInDataAuthenticationSubscription](../../../sdk/models/operations/postuserssignindataauthenticationsubscription.md)[] | :heavy_check_mark: | N/A | | | `thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | | `title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | | `twoFactorEnabled` | *boolean* | :heavy_minus_sign: | If two-factor authentication is enabled | | | `username` | *string* | :heavy_check_mark: | The account username | Username | | `uuid` | *string* | :heavy_check_mark: | The account UUID | dae343c1f45beb4f | -| `pastSubscriptions` | [models.PastSubscription](../models/pastsubscription.md)[] | :heavy_check_mark: | N/A | | -| `trials` | [models.Trials](../models/trials.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file +| `pastSubscriptions` | [operations.PastSubscription](../../../sdk/models/operations/pastsubscription.md)[] | :heavy_check_mark: | N/A | | +| `trials` | [operations.Trials](../../../sdk/models/operations/trials.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/postuserssignindatauserprofile.md b/docs/sdk/models/operations/postuserssignindatauserprofile.md similarity index 88% rename from docs/models/postuserssignindatauserprofile.md rename to docs/sdk/models/operations/postuserssignindatauserprofile.md index 94486f2d..c02acf13 100644 --- a/docs/models/postuserssignindatauserprofile.md +++ b/docs/sdk/models/operations/postuserssignindatauserprofile.md @@ -10,7 +10,7 @@ import { PostUsersSignInDataMediaReviewsVisibility, PostUsersSignInDataUserProfile, PostUsersSignInDataWatchedIndicator, -} from "@lukehagar/plexjs"; +} from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataUserProfile = { autoSelectAudio: true, @@ -31,8 +31,8 @@ let value: PostUsersSignInDataUserProfile = { | `autoSelectAudio` | *boolean* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | | `defaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | | `defaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | -| `autoSelectSubtitle` | [models.PostUsersSignInDataAutoSelectSubtitle](../models/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | -| `defaultSubtitleAccessibility` | [models.PostUsersSignInDataDefaultSubtitleAccessibility](../models/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | -| `defaultSubtitleForced` | [models.PostUsersSignInDataDefaultSubtitleForced](../models/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | -| `watchedIndicator` | [models.PostUsersSignInDataWatchedIndicator](../models/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 | -| `mediaReviewsVisibility` | [models.PostUsersSignInDataMediaReviewsVisibility](../models/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file +| `autoSelectSubtitle` | [operations.PostUsersSignInDataAutoSelectSubtitle](../../../sdk/models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | +| `defaultSubtitleAccessibility` | [operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../../sdk/models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | +| `defaultSubtitleForced` | [operations.PostUsersSignInDataDefaultSubtitleForced](../../../sdk/models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | +| `watchedIndicator` | [operations.PostUsersSignInDataWatchedIndicator](../../../sdk/models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 | +| `mediaReviewsVisibility` | [operations.PostUsersSignInDataMediaReviewsVisibility](../../../sdk/models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/models/postuserssignindatawatchedindicator.md b/docs/sdk/models/operations/postuserssignindatawatchedindicator.md similarity index 91% rename from docs/models/postuserssignindatawatchedindicator.md rename to docs/sdk/models/operations/postuserssignindatawatchedindicator.md index 2950234a..130c12a1 100644 --- a/docs/models/postuserssignindatawatchedindicator.md +++ b/docs/sdk/models/operations/postuserssignindatawatchedindicator.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PostUsersSignInDataWatchedIndicator } from "@lukehagar/plexjs"; +import { PostUsersSignInDataWatchedIndicator } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataWatchedIndicator = PostUsersSignInDataWatchedIndicator.One; ``` diff --git a/docs/models/producer.md b/docs/sdk/models/operations/producer.md similarity index 97% rename from docs/models/producer.md rename to docs/sdk/models/operations/producer.md index 1f9c2d9e..0fae42e0 100644 --- a/docs/models/producer.md +++ b/docs/sdk/models/operations/producer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Producer } from "@lukehagar/plexjs"; +import { Producer } from "@lukehagar/plexjs/sdk/models/operations"; let value: Producer = { id: 221, diff --git a/docs/models/provider.md b/docs/sdk/models/operations/provider.md similarity index 91% rename from docs/models/provider.md rename to docs/sdk/models/operations/provider.md index e64487d7..7788532f 100644 --- a/docs/models/provider.md +++ b/docs/sdk/models/operations/provider.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Provider } from "@lukehagar/plexjs"; +import { Provider } from "@lukehagar/plexjs/sdk/models/operations"; let value: Provider = { key: "/system/search", diff --git a/docs/models/queryparamfilter.md b/docs/sdk/models/operations/queryparamfilter.md similarity index 80% rename from docs/models/queryparamfilter.md rename to docs/sdk/models/operations/queryparamfilter.md index 8a0dad6c..844ae64a 100644 --- a/docs/models/queryparamfilter.md +++ b/docs/sdk/models/operations/queryparamfilter.md @@ -7,7 +7,7 @@ Filters content by field and direction/equality ## Example Usage ```typescript -import { QueryParamFilter } from "@lukehagar/plexjs"; +import { QueryParamFilter } from "@lukehagar/plexjs/sdk/models/operations"; let value: QueryParamFilter = {}; ``` diff --git a/docs/models/queryparamforce.md b/docs/sdk/models/operations/queryparamforce.md similarity index 87% rename from docs/models/queryparamforce.md rename to docs/sdk/models/operations/queryparamforce.md index c3e17813..a105e3bd 100644 --- a/docs/models/queryparamforce.md +++ b/docs/sdk/models/operations/queryparamforce.md @@ -9,7 +9,7 @@ If the `force` argument is set to 0, a new playlist will be created suffixed wit ## Example Usage ```typescript -import { QueryParamForce } from "@lukehagar/plexjs"; +import { QueryParamForce } from "@lukehagar/plexjs/sdk/models/operations"; let value: QueryParamForce = QueryParamForce.Zero; ``` diff --git a/docs/models/queryparamonlytransient.md b/docs/sdk/models/operations/queryparamonlytransient.md similarity index 81% rename from docs/models/queryparamonlytransient.md rename to docs/sdk/models/operations/queryparamonlytransient.md index 81986153..7741ec6b 100644 --- a/docs/models/queryparamonlytransient.md +++ b/docs/sdk/models/operations/queryparamonlytransient.md @@ -5,7 +5,7 @@ Only return hubs which are "transient", meaning those which are prone to changin ## Example Usage ```typescript -import { QueryParamOnlyTransient } from "@lukehagar/plexjs"; +import { QueryParamOnlyTransient } from "@lukehagar/plexjs/sdk/models/operations"; let value: QueryParamOnlyTransient = QueryParamOnlyTransient.One; ``` diff --git a/docs/models/queryparamsmart.md b/docs/sdk/models/operations/queryparamsmart.md similarity index 76% rename from docs/models/queryparamsmart.md rename to docs/sdk/models/operations/queryparamsmart.md index 7f59c8d9..9d34d3da 100644 --- a/docs/models/queryparamsmart.md +++ b/docs/sdk/models/operations/queryparamsmart.md @@ -5,7 +5,7 @@ type of playlists to return (default is all). ## Example Usage ```typescript -import { QueryParamSmart } from "@lukehagar/plexjs"; +import { QueryParamSmart } from "@lukehagar/plexjs/sdk/models/operations"; let value: QueryParamSmart = QueryParamSmart.One; ``` diff --git a/docs/models/queryparamtype.md b/docs/sdk/models/operations/queryparamtype.md similarity index 85% rename from docs/models/queryparamtype.md rename to docs/sdk/models/operations/queryparamtype.md index 9d3bce4b..1d7e46c2 100644 --- a/docs/models/queryparamtype.md +++ b/docs/sdk/models/operations/queryparamtype.md @@ -11,7 +11,7 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Example Usage ```typescript -import { QueryParamType } from "@lukehagar/plexjs"; +import { QueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; let value: QueryParamType = QueryParamType.Two; ``` diff --git a/docs/models/ratings.md b/docs/sdk/models/operations/ratings.md similarity index 92% rename from docs/models/ratings.md rename to docs/sdk/models/operations/ratings.md index 6d28396f..8f57debf 100644 --- a/docs/models/ratings.md +++ b/docs/sdk/models/operations/ratings.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Ratings } from "@lukehagar/plexjs"; +import { Ratings } from "@lukehagar/plexjs/sdk/models/operations"; let value: Ratings = { image: "themoviedb://image.rating", diff --git a/docs/models/release.md b/docs/sdk/models/operations/release.md similarity index 99% rename from docs/models/release.md rename to docs/sdk/models/operations/release.md index 739c7369..a80fc538 100644 --- a/docs/models/release.md +++ b/docs/sdk/models/operations/release.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Release } from "@lukehagar/plexjs"; +import { Release } from "@lukehagar/plexjs/sdk/models/operations"; let value: Release = { key: "https://plex.tv/updater/releases/5136", diff --git a/docs/models/responsebody.md b/docs/sdk/models/operations/responsebody.md similarity index 96% rename from docs/models/responsebody.md rename to docs/sdk/models/operations/responsebody.md index c2651217..c9e6c45a 100644 --- a/docs/models/responsebody.md +++ b/docs/sdk/models/operations/responsebody.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResponseBody } from "@lukehagar/plexjs"; +import { ResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; let value: ResponseBody = { identifier: "tv.plex.sonos", diff --git a/docs/models/role.md b/docs/sdk/models/operations/role.md similarity index 86% rename from docs/models/role.md rename to docs/sdk/models/operations/role.md index bc84a37b..6ef4db36 100644 --- a/docs/models/role.md +++ b/docs/sdk/models/operations/role.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Role } from "@lukehagar/plexjs"; +import { Role } from "@lukehagar/plexjs/sdk/models/operations"; let value: Role = { tag: "Paul Rudd", diff --git a/docs/models/scope.md b/docs/sdk/models/operations/scope.md similarity index 75% rename from docs/models/scope.md rename to docs/sdk/models/operations/scope.md index 9fd3669e..732bb304 100644 --- a/docs/models/scope.md +++ b/docs/sdk/models/operations/scope.md @@ -5,7 +5,7 @@ ## Example Usage ```typescript -import { Scope } from "@lukehagar/plexjs"; +import { Scope } from "@lukehagar/plexjs/sdk/models/operations"; let value: Scope = Scope.All; ``` diff --git a/docs/models/getavailableclientsserver.md b/docs/sdk/models/operations/server.md similarity index 96% rename from docs/models/getavailableclientsserver.md rename to docs/sdk/models/operations/server.md index 0080df73..7299e59c 100644 --- a/docs/models/getavailableclientsserver.md +++ b/docs/sdk/models/operations/server.md @@ -1,11 +1,11 @@ -# GetAvailableClientsServer +# Server ## Example Usage ```typescript -import { GetAvailableClientsServer } from "@lukehagar/plexjs"; +import { Server } from "@lukehagar/plexjs/sdk/models/operations"; -let value: GetAvailableClientsServer = { +let value: Server = { name: "iPad", host: "10.10.10.102", address: "10.10.10.102", diff --git a/docs/sdk/models/operations/services.md b/docs/sdk/models/operations/services.md new file mode 100644 index 00000000..46a84629 --- /dev/null +++ b/docs/sdk/models/operations/services.md @@ -0,0 +1,25 @@ +# Services + +## Example Usage + +```typescript +import { GetUserDetailsStatus, Services } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Services = { + identifier: "metadata-dev", + endpoint: "https://epg.provider.plex.tv", + token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", + secret: "", + status: GetUserDetailsStatus.Online, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev | +| `endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `secret` | *string* | :heavy_check_mark: | N/A | | +| `status` | [operations.GetUserDetailsStatus](../../../sdk/models/operations/getuserdetailsstatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/models/session.md b/docs/sdk/models/operations/session.md similarity index 92% rename from docs/models/session.md rename to docs/sdk/models/operations/session.md index 3008e881..18fc6837 100644 --- a/docs/models/session.md +++ b/docs/sdk/models/operations/session.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Session } from "@lukehagar/plexjs"; +import { Session } from "@lukehagar/plexjs/sdk/models/operations"; let value: Session = { id: "93h7e00ncblxncqw9lkfaoxi", diff --git a/docs/models/setting.md b/docs/sdk/models/operations/setting.md similarity index 96% rename from docs/models/setting.md rename to docs/sdk/models/operations/setting.md index 542ce884..400d186f 100644 --- a/docs/models/setting.md +++ b/docs/sdk/models/operations/setting.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Setting } from "@lukehagar/plexjs"; +import { Setting } from "@lukehagar/plexjs/sdk/models/operations"; let value: Setting = { id: "EnableDatabaseTrace", diff --git a/docs/models/sharedservers.md b/docs/sdk/models/operations/sharedservers.md similarity index 74% rename from docs/models/sharedservers.md rename to docs/sdk/models/operations/sharedservers.md index cc205929..56c4246a 100644 --- a/docs/models/sharedservers.md +++ b/docs/sdk/models/operations/sharedservers.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SharedServers } from "@lukehagar/plexjs"; +import { SharedServers } from "@lukehagar/plexjs/sdk/models/operations"; let value: SharedServers = {}; ``` diff --git a/docs/models/sharedsources.md b/docs/sdk/models/operations/sharedsources.md similarity index 74% rename from docs/models/sharedsources.md rename to docs/sdk/models/operations/sharedsources.md index b3c1f1c3..12f2492b 100644 --- a/docs/models/sharedsources.md +++ b/docs/sdk/models/operations/sharedsources.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SharedSources } from "@lukehagar/plexjs"; +import { SharedSources } from "@lukehagar/plexjs/sdk/models/operations"; let value: SharedSources = {}; ``` diff --git a/docs/models/skip.md b/docs/sdk/models/operations/skip.md similarity index 82% rename from docs/models/skip.md rename to docs/sdk/models/operations/skip.md index 27d543af..61385834 100644 --- a/docs/models/skip.md +++ b/docs/sdk/models/operations/skip.md @@ -5,7 +5,7 @@ Indicate that the latest version should be marked as skipped. The [Release] entr ## Example Usage ```typescript -import { Skip } from "@lukehagar/plexjs"; +import { Skip } from "@lukehagar/plexjs/sdk/models/operations"; let value: Skip = Skip.One; ``` diff --git a/docs/models/smart.md b/docs/sdk/models/operations/smart.md similarity index 76% rename from docs/models/smart.md rename to docs/sdk/models/operations/smart.md index b527acdd..74b6be4f 100644 --- a/docs/models/smart.md +++ b/docs/sdk/models/operations/smart.md @@ -5,7 +5,7 @@ whether the playlist is smart or not ## Example Usage ```typescript -import { Smart } from "@lukehagar/plexjs"; +import { Smart } from "@lukehagar/plexjs/sdk/models/operations"; let value: Smart = Smart.Zero; ``` diff --git a/docs/models/sort.md b/docs/sdk/models/operations/sort.md similarity index 96% rename from docs/models/sort.md rename to docs/sdk/models/operations/sort.md index 49515ca7..fd155701 100644 --- a/docs/models/sort.md +++ b/docs/sdk/models/operations/sort.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Sort } from "@lukehagar/plexjs"; +import { Sort } from "@lukehagar/plexjs/sdk/models/operations"; let value: Sort = { default: "asc", diff --git a/docs/models/startalltasksresponse.md b/docs/sdk/models/operations/startalltasksresponse.md similarity index 95% rename from docs/models/startalltasksresponse.md rename to docs/sdk/models/operations/startalltasksresponse.md index 06ac4741..48af8b53 100644 --- a/docs/models/startalltasksresponse.md +++ b/docs/sdk/models/operations/startalltasksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartAllTasksResponse } from "@lukehagar/plexjs"; +import { StartAllTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartAllTasksResponse = { contentType: "", diff --git a/docs/sdk/models/operations/starttaskrequest.md b/docs/sdk/models/operations/starttaskrequest.md new file mode 100644 index 00000000..5a360c3c --- /dev/null +++ b/docs/sdk/models/operations/starttaskrequest.md @@ -0,0 +1,17 @@ +# StartTaskRequest + +## Example Usage + +```typescript +import { StartTaskRequest, TaskName } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: StartTaskRequest = { + taskName: TaskName.DeepMediaAnalysis, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `taskName` | [operations.TaskName](../../../sdk/models/operations/taskname.md) | :heavy_check_mark: | the name of the task to be started. | \ No newline at end of file diff --git a/docs/models/starttaskresponse.md b/docs/sdk/models/operations/starttaskresponse.md similarity index 95% rename from docs/models/starttaskresponse.md rename to docs/sdk/models/operations/starttaskresponse.md index 00e8f246..216050ee 100644 --- a/docs/models/starttaskresponse.md +++ b/docs/sdk/models/operations/starttaskresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartTaskResponse } from "@lukehagar/plexjs"; +import { StartTaskResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartTaskResponse = { contentType: "", diff --git a/docs/models/startuniversaltranscoderequest.md b/docs/sdk/models/operations/startuniversaltranscoderequest.md similarity index 99% rename from docs/models/startuniversaltranscoderequest.md rename to docs/sdk/models/operations/startuniversaltranscoderequest.md index 68d5cae4..2e88f4c2 100644 --- a/docs/models/startuniversaltranscoderequest.md +++ b/docs/sdk/models/operations/startuniversaltranscoderequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartUniversalTranscodeRequest } from "@lukehagar/plexjs"; +import { StartUniversalTranscodeRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartUniversalTranscodeRequest = { hasMDE: 1, diff --git a/docs/models/startuniversaltranscoderesponse.md b/docs/sdk/models/operations/startuniversaltranscoderesponse.md similarity index 98% rename from docs/models/startuniversaltranscoderesponse.md rename to docs/sdk/models/operations/startuniversaltranscoderesponse.md index f400f913..fda53bb8 100644 --- a/docs/models/startuniversaltranscoderesponse.md +++ b/docs/sdk/models/operations/startuniversaltranscoderesponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StartUniversalTranscodeResponse } from "@lukehagar/plexjs"; +import { StartUniversalTranscodeResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: StartUniversalTranscodeResponse = { contentType: "", diff --git a/docs/models/state.md b/docs/sdk/models/operations/state.md similarity index 79% rename from docs/models/state.md rename to docs/sdk/models/operations/state.md index 7a19c883..ab58c24c 100644 --- a/docs/models/state.md +++ b/docs/sdk/models/operations/state.md @@ -5,7 +5,7 @@ The state of the media item ## Example Usage ```typescript -import { State } from "@lukehagar/plexjs"; +import { State } from "@lukehagar/plexjs/sdk/models/operations"; let value: State = State.Playing; ``` diff --git a/docs/models/statisticsbandwidth.md b/docs/sdk/models/operations/statisticsbandwidth.md similarity index 93% rename from docs/models/statisticsbandwidth.md rename to docs/sdk/models/operations/statisticsbandwidth.md index f30cba81..6bc0f429 100644 --- a/docs/models/statisticsbandwidth.md +++ b/docs/sdk/models/operations/statisticsbandwidth.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StatisticsBandwidth } from "@lukehagar/plexjs"; +import { StatisticsBandwidth } from "@lukehagar/plexjs/sdk/models/operations"; let value: StatisticsBandwidth = { accountID: 238960586, diff --git a/docs/models/statisticsmedia.md b/docs/sdk/models/operations/statisticsmedia.md similarity index 94% rename from docs/models/statisticsmedia.md rename to docs/sdk/models/operations/statisticsmedia.md index 32f26f02..473e35dd 100644 --- a/docs/models/statisticsmedia.md +++ b/docs/sdk/models/operations/statisticsmedia.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StatisticsMedia } from "@lukehagar/plexjs"; +import { StatisticsMedia } from "@lukehagar/plexjs/sdk/models/operations"; let value: StatisticsMedia = { accountID: 1, diff --git a/docs/models/statisticsresources.md b/docs/sdk/models/operations/statisticsresources.md similarity index 94% rename from docs/models/statisticsresources.md rename to docs/sdk/models/operations/statisticsresources.md index f4c792a9..a340481e 100644 --- a/docs/models/statisticsresources.md +++ b/docs/sdk/models/operations/statisticsresources.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StatisticsResources } from "@lukehagar/plexjs"; +import { StatisticsResources } from "@lukehagar/plexjs/sdk/models/operations"; let value: StatisticsResources = { timespan: 6, diff --git a/docs/models/status.md b/docs/sdk/models/operations/status.md similarity index 76% rename from docs/models/status.md rename to docs/sdk/models/operations/status.md index 613142b2..c82bd4ff 100644 --- a/docs/models/status.md +++ b/docs/sdk/models/operations/status.md @@ -5,7 +5,7 @@ Current friend request status ## Example Usage ```typescript -import { Status } from "@lukehagar/plexjs"; +import { Status } from "@lukehagar/plexjs/sdk/models/operations"; let value: Status = Status.Accepted; ``` diff --git a/docs/models/stopalltasksresponse.md b/docs/sdk/models/operations/stopalltasksresponse.md similarity index 95% rename from docs/models/stopalltasksresponse.md rename to docs/sdk/models/operations/stopalltasksresponse.md index 4ab9c502..ea7387d5 100644 --- a/docs/models/stopalltasksresponse.md +++ b/docs/sdk/models/operations/stopalltasksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopAllTasksResponse } from "@lukehagar/plexjs"; +import { StopAllTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopAllTasksResponse = { contentType: "", diff --git a/docs/sdk/models/operations/stoptaskrequest.md b/docs/sdk/models/operations/stoptaskrequest.md new file mode 100644 index 00000000..790bbedd --- /dev/null +++ b/docs/sdk/models/operations/stoptaskrequest.md @@ -0,0 +1,17 @@ +# StopTaskRequest + +## Example Usage + +```typescript +import { PathParamTaskName, StopTaskRequest } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: StopTaskRequest = { + taskName: PathParamTaskName.BackupDatabase, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `taskName` | [operations.PathParamTaskName](../../../sdk/models/operations/pathparamtaskname.md) | :heavy_check_mark: | The name of the task to be started. | \ No newline at end of file diff --git a/docs/models/stoptaskresponse.md b/docs/sdk/models/operations/stoptaskresponse.md similarity index 95% rename from docs/models/stoptaskresponse.md rename to docs/sdk/models/operations/stoptaskresponse.md index ae17a24b..ab870688 100644 --- a/docs/models/stoptaskresponse.md +++ b/docs/sdk/models/operations/stoptaskresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopTaskResponse } from "@lukehagar/plexjs"; +import { StopTaskResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopTaskResponse = { contentType: "", diff --git a/docs/models/stoptranscodesessionrequest.md b/docs/sdk/models/operations/stoptranscodesessionrequest.md similarity index 90% rename from docs/models/stoptranscodesessionrequest.md rename to docs/sdk/models/operations/stoptranscodesessionrequest.md index 1d876a2b..a891a1c4 100644 --- a/docs/models/stoptranscodesessionrequest.md +++ b/docs/sdk/models/operations/stoptranscodesessionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopTranscodeSessionRequest } from "@lukehagar/plexjs"; +import { StopTranscodeSessionRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopTranscodeSessionRequest = { sessionKey: "zz7llzqlx8w9vnrsbnwhbmep", diff --git a/docs/models/stoptranscodesessionresponse.md b/docs/sdk/models/operations/stoptranscodesessionresponse.md similarity index 95% rename from docs/models/stoptranscodesessionresponse.md rename to docs/sdk/models/operations/stoptranscodesessionresponse.md index 7d3a5d87..da1d5d19 100644 --- a/docs/models/stoptranscodesessionresponse.md +++ b/docs/sdk/models/operations/stoptranscodesessionresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StopTranscodeSessionResponse } from "@lukehagar/plexjs"; +import { StopTranscodeSessionResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: StopTranscodeSessionResponse = { contentType: "", diff --git a/docs/models/stream.md b/docs/sdk/models/operations/stream.md similarity index 98% rename from docs/models/stream.md rename to docs/sdk/models/operations/stream.md index fd7bce62..866aebf0 100644 --- a/docs/models/stream.md +++ b/docs/sdk/models/operations/stream.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Stream } from "@lukehagar/plexjs"; +import { Stream } from "@lukehagar/plexjs/sdk/models/operations"; let value: Stream = { id: 29, diff --git a/docs/sdk/models/operations/subscription.md b/docs/sdk/models/operations/subscription.md new file mode 100644 index 00000000..d3357c36 --- /dev/null +++ b/docs/sdk/models/operations/subscription.md @@ -0,0 +1,26 @@ +# Subscription + +If the account’s Plex Pass subscription is active + +## Example Usage + +```typescript +import { GetUserDetailsAuthenticationStatus, Subscription } from "@lukehagar/plexjs/sdk/models/operations"; + +let value: Subscription = { + active: true, + subscribedAt: "2021-04-12T18:21:12Z", + status: GetUserDetailsAuthenticationStatus.Inactive, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `features` | [operations.Features](../../../sdk/models/operations/features.md)[] | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *boolean* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [operations.GetUserDetailsAuthenticationStatus](../../../sdk/models/operations/getuserdetailsauthenticationstatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/tag.md b/docs/sdk/models/operations/tag.md similarity index 93% rename from docs/models/tag.md rename to docs/sdk/models/operations/tag.md index e73e4f6e..0459f911 100644 --- a/docs/models/tag.md +++ b/docs/sdk/models/operations/tag.md @@ -5,7 +5,7 @@ A key representing a specific tag within the section. ## Example Usage ```typescript -import { Tag } from "@lukehagar/plexjs"; +import { Tag } from "@lukehagar/plexjs/sdk/models/operations"; let value: Tag = Tag.Unwatched; ``` diff --git a/docs/models/taskname.md b/docs/sdk/models/operations/taskname.md similarity index 94% rename from docs/models/taskname.md rename to docs/sdk/models/operations/taskname.md index 275640df..ebaaa568 100644 --- a/docs/models/taskname.md +++ b/docs/sdk/models/operations/taskname.md @@ -5,7 +5,7 @@ the name of the task to be started. ## Example Usage ```typescript -import { TaskName } from "@lukehagar/plexjs"; +import { TaskName } from "@lukehagar/plexjs/sdk/models/operations"; let value: TaskName = TaskName.GenerateChapterThumbs; ``` diff --git a/docs/models/tonight.md b/docs/sdk/models/operations/tonight.md similarity index 82% rename from docs/models/tonight.md rename to docs/sdk/models/operations/tonight.md index 83f1c6a6..638ea09d 100644 --- a/docs/models/tonight.md +++ b/docs/sdk/models/operations/tonight.md @@ -5,7 +5,7 @@ Indicate that you want the update to run during the next Butler execution. Omitt ## Example Usage ```typescript -import { Tonight } from "@lukehagar/plexjs"; +import { Tonight } from "@lukehagar/plexjs/sdk/models/operations"; let value: Tonight = Tonight.One; ``` diff --git a/docs/models/transcodesession.md b/docs/sdk/models/operations/transcodesession.md similarity index 98% rename from docs/models/transcodesession.md rename to docs/sdk/models/operations/transcodesession.md index 7f05cf92..07ef5522 100644 --- a/docs/models/transcodesession.md +++ b/docs/sdk/models/operations/transcodesession.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TranscodeSession } from "@lukehagar/plexjs"; +import { TranscodeSession } from "@lukehagar/plexjs/sdk/models/operations"; let value: TranscodeSession = { key: "vv3i2q2lax92qlzul1hbd4bx", diff --git a/docs/models/trials.md b/docs/sdk/models/operations/trials.md similarity index 75% rename from docs/models/trials.md rename to docs/sdk/models/operations/trials.md index 721084cd..76260f29 100644 --- a/docs/models/trials.md +++ b/docs/sdk/models/operations/trials.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Trials } from "@lukehagar/plexjs"; +import { Trials } from "@lukehagar/plexjs/sdk/models/operations"; let value: Trials = {}; ``` diff --git a/docs/models/type.md b/docs/sdk/models/operations/type.md similarity index 85% rename from docs/models/type.md rename to docs/sdk/models/operations/type.md index d32384ed..5ea081d0 100644 --- a/docs/models/type.md +++ b/docs/sdk/models/operations/type.md @@ -11,7 +11,7 @@ E.g. A movie library will not return anything with type 3 as there are no season ## Example Usage ```typescript -import { Type } from "@lukehagar/plexjs"; +import { Type } from "@lukehagar/plexjs/sdk/models/operations"; let value: Type = Type.Two; ``` diff --git a/docs/models/updateplaylistrequest.md b/docs/sdk/models/operations/updateplaylistrequest.md similarity index 91% rename from docs/models/updateplaylistrequest.md rename to docs/sdk/models/operations/updateplaylistrequest.md index f1a982b9..279dec47 100644 --- a/docs/models/updateplaylistrequest.md +++ b/docs/sdk/models/operations/updateplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlaylistRequest } from "@lukehagar/plexjs"; +import { UpdatePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdatePlaylistRequest = { playlistID: 3172.02, diff --git a/docs/models/updateplaylistresponse.md b/docs/sdk/models/operations/updateplaylistresponse.md similarity index 95% rename from docs/models/updateplaylistresponse.md rename to docs/sdk/models/operations/updateplaylistresponse.md index d7d72149..63225f53 100644 --- a/docs/models/updateplaylistresponse.md +++ b/docs/sdk/models/operations/updateplaylistresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlaylistResponse } from "@lukehagar/plexjs"; +import { UpdatePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdatePlaylistResponse = { contentType: "", diff --git a/docs/models/updateplayprogressrequest.md b/docs/sdk/models/operations/updateplayprogressrequest.md similarity index 95% rename from docs/models/updateplayprogressrequest.md rename to docs/sdk/models/operations/updateplayprogressrequest.md index ea200974..b8058336 100644 --- a/docs/models/updateplayprogressrequest.md +++ b/docs/sdk/models/operations/updateplayprogressrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlayProgressRequest } from "@lukehagar/plexjs"; +import { UpdatePlayProgressRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdatePlayProgressRequest = { key: "", diff --git a/docs/models/updateplayprogressresponse.md b/docs/sdk/models/operations/updateplayprogressresponse.md similarity index 95% rename from docs/models/updateplayprogressresponse.md rename to docs/sdk/models/operations/updateplayprogressresponse.md index 3ca2f217..62f0f5ad 100644 --- a/docs/models/updateplayprogressresponse.md +++ b/docs/sdk/models/operations/updateplayprogressresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdatePlayProgressResponse } from "@lukehagar/plexjs"; +import { UpdatePlayProgressResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: UpdatePlayProgressResponse = { contentType: "", diff --git a/docs/models/uploadplaylistrequest.md b/docs/sdk/models/operations/uploadplaylistrequest.md similarity index 98% rename from docs/models/uploadplaylistrequest.md rename to docs/sdk/models/operations/uploadplaylistrequest.md index ce6370de..a82679f5 100644 --- a/docs/models/uploadplaylistrequest.md +++ b/docs/sdk/models/operations/uploadplaylistrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { QueryParamForce, UploadPlaylistRequest } from "@lukehagar/plexjs"; +import { QueryParamForce, UploadPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations"; let value: UploadPlaylistRequest = { path: "/home/barkley/playlist.m3u", @@ -16,4 +16,4 @@ let value: UploadPlaylistRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | -| `force` | [models.QueryParamForce](../models/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | \ No newline at end of file +| `force` | [operations.QueryParamForce](../../../sdk/models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | \ No newline at end of file diff --git a/docs/models/uploadplaylistresponse.md b/docs/sdk/models/operations/uploadplaylistresponse.md similarity index 95% rename from docs/models/uploadplaylistresponse.md rename to docs/sdk/models/operations/uploadplaylistresponse.md index 706f66b6..b7e6f562 100644 --- a/docs/models/uploadplaylistresponse.md +++ b/docs/sdk/models/operations/uploadplaylistresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UploadPlaylistResponse } from "@lukehagar/plexjs"; +import { UploadPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"; let value: UploadPlaylistResponse = { contentType: "", diff --git a/docs/models/upscale.md b/docs/sdk/models/operations/upscale.md similarity index 77% rename from docs/models/upscale.md rename to docs/sdk/models/operations/upscale.md index b7e489b3..e164564c 100644 --- a/docs/models/upscale.md +++ b/docs/sdk/models/operations/upscale.md @@ -5,7 +5,7 @@ allow images to be resized beyond native dimensions. ## Example Usage ```typescript -import { Upscale } from "@lukehagar/plexjs"; +import { Upscale } from "@lukehagar/plexjs/sdk/models/operations"; let value: Upscale = Upscale.One; ``` diff --git a/docs/models/user.md b/docs/sdk/models/operations/user.md similarity index 86% rename from docs/models/user.md rename to docs/sdk/models/operations/user.md index 0ed5a974..78651f66 100644 --- a/docs/models/user.md +++ b/docs/sdk/models/operations/user.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { User } from "@lukehagar/plexjs"; +import { User } from "@lukehagar/plexjs/sdk/models/operations"; let value: User = { id: 220, diff --git a/docs/models/userprofile.md b/docs/sdk/models/operations/userprofile.md similarity index 89% rename from docs/models/userprofile.md rename to docs/sdk/models/operations/userprofile.md index ef373c98..924658a0 100644 --- a/docs/models/userprofile.md +++ b/docs/sdk/models/operations/userprofile.md @@ -10,7 +10,7 @@ import { MediaReviewsVisibility, UserProfile, WatchedIndicator, -} from "@lukehagar/plexjs"; +} from "@lukehagar/plexjs/sdk/models/operations"; let value: UserProfile = { autoSelectAudio: true, @@ -31,8 +31,8 @@ let value: UserProfile = { | `autoSelectAudio` | *boolean* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | | `defaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja | | `defaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en | -| `autoSelectSubtitle` | [models.AutoSelectSubtitle](../models/autoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | -| `defaultSubtitleAccessibility` | [models.DefaultSubtitleAccessibility](../models/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | -| `defaultSubtitleForced` | [models.DefaultSubtitleForced](../models/defaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | -| `watchedIndicator` | [models.WatchedIndicator](../models/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 | -| `mediaReviewsVisibility` | [models.MediaReviewsVisibility](../models/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file +| `autoSelectSubtitle` | [operations.AutoSelectSubtitle](../../../sdk/models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | +| `defaultSubtitleAccessibility` | [operations.DefaultSubtitleAccessibility](../../../sdk/models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | +| `defaultSubtitleForced` | [operations.DefaultSubtitleForced](../../../sdk/models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | +| `watchedIndicator` | [operations.WatchedIndicator](../../../sdk/models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 | +| `mediaReviewsVisibility` | [operations.MediaReviewsVisibility](../../../sdk/models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/models/watchedindicator.md b/docs/sdk/models/operations/watchedindicator.md similarity index 72% rename from docs/models/watchedindicator.md rename to docs/sdk/models/operations/watchedindicator.md index 5f552906..a4ee7ed3 100644 --- a/docs/models/watchedindicator.md +++ b/docs/sdk/models/operations/watchedindicator.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WatchedIndicator } from "@lukehagar/plexjs"; +import { WatchedIndicator } from "@lukehagar/plexjs/sdk/models/operations"; let value: WatchedIndicator = WatchedIndicator.One; ``` diff --git a/docs/models/writer.md b/docs/sdk/models/operations/writer.md similarity index 86% rename from docs/models/writer.md rename to docs/sdk/models/operations/writer.md index 9554261c..5f3e2a2c 100644 --- a/docs/models/writer.md +++ b/docs/sdk/models/operations/writer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Writer } from "@lukehagar/plexjs"; +import { Writer } from "@lukehagar/plexjs/sdk/models/operations"; let value: Writer = { tag: "Jeff Loveness", diff --git a/docs/models/security.md b/docs/sdk/models/shared/security.md similarity index 84% rename from docs/models/security.md rename to docs/sdk/models/shared/security.md index 9497a244..0a6d2f14 100644 --- a/docs/models/security.md +++ b/docs/sdk/models/shared/security.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Security } from "@lukehagar/plexjs"; +import { Security } from "@lukehagar/plexjs/sdk/models/shared"; let value: Security = {}; ``` diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 0c0ca556..64e41b32 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -82,14 +82,14 @@ run(); ### Response -**Promise\<[models.GetServerActivitiesResponse](../../models/getserveractivitiesresponse.md)\>** +**Promise\<[operations.GetServerActivitiesResponse](../../sdk/models/operations/getserveractivitiesresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| models.GetServerActivitiesActivitiesResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetServerActivitiesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## cancelServerActivities @@ -158,11 +158,11 @@ run(); ### Response -**Promise\<[models.CancelServerActivitiesResponse](../../models/cancelserveractivitiesresponse.md)\>** +**Promise\<[operations.CancelServerActivitiesResponse](../../sdk/models/operations/cancelserveractivitiesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models.CancelServerActivitiesResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.CancelServerActivitiesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index a5acf098..b4d001db 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -21,7 +21,8 @@ This endpoint provides the caller with a temporary token with the same access le ### Example Usage ```typescript -import { GetTransientTokenQueryParamType, PlexAPI, Scope } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { GetTransientTokenQueryParamType, Scope } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -43,9 +44,9 @@ run(); The standalone function version of this method: ```typescript -import { GetTransientTokenQueryParamType, Scope } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { authenticationGetTransientToken } from "@lukehagar/plexjs/funcs/authenticationGetTransientToken.js"; +import { GetTransientTokenQueryParamType, Scope } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -74,22 +75,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetTransientTokenQueryParamType](../../models/gettransienttokenqueryparamtype.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | -| `scope` | [models.Scope](../../models/scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | +| `type` | [operations.GetTransientTokenQueryParamType](../../sdk/models/operations/gettransienttokenqueryparamtype.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [operations.Scope](../../sdk/models/operations/scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetTransientTokenResponse](../../models/gettransienttokenresponse.md)\>** +**Promise\<[operations.GetTransientTokenResponse](../../sdk/models/operations/gettransienttokenresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models.GetTransientTokenResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetTransientTokenResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSourceConnectionInformation @@ -160,14 +161,14 @@ run(); ### Response -**Promise\<[models.GetSourceConnectionInformationResponse](../../models/getsourceconnectioninformationresponse.md)\>** +**Promise\<[operations.GetSourceConnectionInformationResponse](../../sdk/models/operations/getsourceconnectioninformationresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| models.GetSourceConnectionInformationResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetSourceConnectionInformationResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getUserDetails @@ -237,14 +238,14 @@ run(); ### Response -**Promise\<[models.GetUserDetailsResponse](../../models/getuserdetailsresponse.md)\>** +**Promise\<[operations.GetUserDetailsResponse](../../sdk/models/operations/getuserdetailsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| models.GetUserDetailsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetUserDetailsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## postUsersSignInData @@ -311,7 +312,7 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| [object Object] | -| `requestBody` | [models.PostUsersSignInDataRequestBody](../../models/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | +| `requestBody` | [operations.PostUsersSignInDataRequestBody](../../sdk/models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | @@ -319,11 +320,11 @@ run(); ### Response -**Promise\<[models.PostUsersSignInDataResponse](../../models/postuserssignindataresponse.md)\>** +**Promise\<[operations.PostUsersSignInDataResponse](../../sdk/models/operations/postuserssignindataresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models.PostUsersSignInDataResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.PostUsersSignInDataResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index fff5d4b8..2d5b2a90 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -79,14 +79,14 @@ run(); ### Response -**Promise\<[models.GetButlerTasksResponse](../../models/getbutlertasksresponse.md)\>** +**Promise\<[operations.GetButlerTasksResponse](../../sdk/models/operations/getbutlertasksresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models.GetButlerTasksButlerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.GetButlerTasksResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## startAllTasks @@ -159,14 +159,14 @@ run(); ### Response -**Promise\<[models.StartAllTasksResponse](../../models/startalltasksresponse.md)\>** +**Promise\<[operations.StartAllTasksResponse](../../sdk/models/operations/startalltasksresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| models.StartAllTasksResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.StartAllTasksResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## stopAllTasks @@ -235,14 +235,14 @@ run(); ### Response -**Promise\<[models.StopAllTasksResponse](../../models/stopalltasksresponse.md)\>** +**Promise\<[operations.StopAllTasksResponse](../../sdk/models/operations/stopalltasksresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------- | ------------------------------- | ------------------------------- | -| models.StopAllTasksResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.StopAllTasksResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## startTask @@ -257,7 +257,8 @@ This endpoint will attempt to start a single Butler task that is enabled in the ### Example Usage ```typescript -import { PlexAPI, TaskName } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { TaskName } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -279,9 +280,9 @@ run(); The standalone function version of this method: ```typescript -import { TaskName } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { butlerStartTask } from "@lukehagar/plexjs/funcs/butlerStartTask.js"; +import { TaskName } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -291,7 +292,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await butlerStartTask(plexAPI, TaskName.DeepMediaAnalysis); + const res = await butlerStartTask(plexAPI, TaskName.CleanOldBundles); if (!res.ok) { throw res.error; @@ -310,21 +311,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `taskName` | [models.TaskName](../../models/taskname.md) | :heavy_check_mark: | the name of the task to be started. | +| `taskName` | [operations.TaskName](../../sdk/models/operations/taskname.md) | :heavy_check_mark: | the name of the task to be started. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.StartTaskResponse](../../models/starttaskresponse.md)\>** +**Promise\<[operations.StartTaskResponse](../../sdk/models/operations/starttaskresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ---------------------------- | ---------------------------- | ---------------------------- | -| models.StartTaskResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.StartTaskResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## stopTask @@ -335,7 +336,8 @@ This endpoint will stop a currently running task by name, or remove it from the ### Example Usage ```typescript -import { PathParamTaskName, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { PathParamTaskName } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -357,9 +359,9 @@ run(); The standalone function version of this method: ```typescript -import { PathParamTaskName } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { butlerStopTask } from "@lukehagar/plexjs/funcs/butlerStopTask.js"; +import { PathParamTaskName } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -369,7 +371,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await butlerStopTask(plexAPI, PathParamTaskName.RefreshPeriodicMetadata); + const res = await butlerStopTask(plexAPI, PathParamTaskName.BackupDatabase); if (!res.ok) { throw res.error; @@ -388,18 +390,18 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `taskName` | [models.PathParamTaskName](../../models/pathparamtaskname.md) | :heavy_check_mark: | The name of the task to be started. | +| `taskName` | [operations.PathParamTaskName](../../sdk/models/operations/pathparamtaskname.md) | :heavy_check_mark: | The name of the task to be started. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.StopTaskResponse](../../models/stoptaskresponse.md)\>** +**Promise\<[operations.StopTaskResponse](../../sdk/models/operations/stoptaskresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------- | --------------------------- | --------------------------- | -| models.StopTaskResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.StopTaskResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 2fe9ad68..57aa09c2 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -71,21 +71,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `count` | *number* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [models.OnlyTransient](../../models/onlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | +| `onlyTransient` | [operations.OnlyTransient](../../sdk/models/operations/onlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetGlobalHubsResponse](../../models/getglobalhubsresponse.md)\>** +**Promise\<[operations.GetGlobalHubsResponse](../../sdk/models/operations/getglobalhubsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models.GetGlobalHubsHubsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------- | -------------------------------- | -------------------------------- | +| errors.GetGlobalHubsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getLibraryHubs @@ -129,7 +129,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await hubsGetLibraryHubs(plexAPI, 639.24); + const res = await hubsGetLibraryHubs(plexAPI, 6728.76); if (!res.ok) { throw res.error; @@ -150,18 +150,18 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query | | `count` | *number* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [models.QueryParamOnlyTransient](../../models/queryparamonlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | +| `onlyTransient` | [operations.QueryParamOnlyTransient](../../sdk/models/operations/queryparamonlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetLibraryHubsResponse](../../models/getlibraryhubsresponse.md)\>** +**Promise\<[operations.GetLibraryHubsResponse](../../sdk/models/operations/getlibraryhubsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models.GetLibraryHubsHubsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.GetLibraryHubsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index a3469a08..b541bf0a 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -88,14 +88,14 @@ run(); ### Response -**Promise\<[models.GetFileHashResponse](../../models/getfilehashresponse.md)\>** +**Promise\<[operations.GetFileHashResponse](../../sdk/models/operations/getfilehashresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------ | ------------------------------ | ------------------------------ | -| models.GetFileHashResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetFileHashResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getRecentlyAdded @@ -166,14 +166,14 @@ run(); ### Response -**Promise\<[models.GetRecentlyAddedResponse](../../models/getrecentlyaddedresponse.md)\>** +**Promise\<[operations.GetRecentlyAddedResponse](../../sdk/models/operations/getrecentlyaddedresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.GetRecentlyAddedLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetRecentlyAddedResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getAllLibraries @@ -247,14 +247,14 @@ run(); ### Response -**Promise\<[models.GetAllLibrariesResponse](../../models/getalllibrariesresponse.md)\>** +**Promise\<[operations.GetAllLibrariesResponse](../../sdk/models/operations/getalllibrariesresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models.GetAllLibrariesLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.GetAllLibrariesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getLibraryDetails @@ -356,21 +356,21 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| [object Object] | -| `includeDetails` | [models.IncludeDetails](../../models/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | +| `includeDetails` | [operations.IncludeDetails](../../sdk/models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.GetLibraryDetailsResponse](../../models/getlibrarydetailsresponse.md)\>** +**Promise\<[operations.GetLibraryDetailsResponse](../../sdk/models/operations/getlibrarydetailsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| models.GetLibraryDetailsLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| errors.GetLibraryDetailsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## deleteLibrary @@ -439,14 +439,14 @@ run(); ### Response -**Promise\<[models.DeleteLibraryResponse](../../models/deletelibraryresponse.md)\>** +**Promise\<[operations.DeleteLibraryResponse](../../sdk/models/operations/deletelibraryresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| models.DeleteLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.DeleteLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getLibraryItems @@ -476,7 +476,8 @@ Fetches details from a specific section of the library identified by a section k ### Example Usage ```typescript -import { IncludeGuids, IncludeMeta, PlexAPI, Tag, Type } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { IncludeGuids, IncludeMeta, Tag, Type } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -506,9 +507,9 @@ run(); The standalone function version of this method: ```typescript -import { IncludeGuids, IncludeMeta, Tag, Type } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetLibraryItems } from "@lukehagar/plexjs/funcs/libraryGetLibraryItems.js"; +import { IncludeGuids, IncludeMeta, Tag, Type } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -520,7 +521,7 @@ const plexAPI = new PlexAPICore({ async function run() { const res = await libraryGetLibraryItems(plexAPI, { sectionKey: 9518, - tag: Tag.Actor, + tag: Tag.Edition, includeGuids: IncludeGuids.One, includeMeta: IncludeMeta.One, type: Type.Two, @@ -545,21 +546,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetLibraryItemsRequest](../../models/getlibraryitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetLibraryItemsRequest](../../sdk/models/operations/getlibraryitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetLibraryItemsResponse](../../models/getlibraryitemsresponse.md)\>** +**Promise\<[operations.GetLibraryItemsResponse](../../sdk/models/operations/getlibraryitemsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models.GetLibraryItemsLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.GetLibraryItemsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getRefreshLibraryMetadata @@ -570,7 +571,8 @@ This endpoint Refreshes all the Metadata of the library. ### Example Usage ```typescript -import { Force, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { Force } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -592,9 +594,9 @@ run(); The standalone function version of this method: ```typescript -import { Force } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetRefreshLibraryMetadata } from "@lukehagar/plexjs/funcs/libraryGetRefreshLibraryMetadata.js"; +import { Force } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -624,21 +626,21 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| [object Object] | -| `force` | [models.Force](../../models/force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | [object Object] | +| `force` | [operations.Force](../../sdk/models/operations/force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.GetRefreshLibraryMetadataResponse](../../models/getrefreshlibrarymetadataresponse.md)\>** +**Promise\<[operations.GetRefreshLibraryMetadataResponse](../../sdk/models/operations/getrefreshlibrarymetadataresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models.GetRefreshLibraryMetadataResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetRefreshLibraryMetadataResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSearchLibrary @@ -666,7 +668,8 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ### Example Usage ```typescript -import { PlexAPI, QueryParamType } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { QueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -688,9 +691,9 @@ run(); The standalone function version of this method: ```typescript -import { QueryParamType } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetSearchLibrary } from "@lukehagar/plexjs/funcs/libraryGetSearchLibrary.js"; +import { QueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -720,21 +723,21 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| [object Object] | -| `type` | [models.QueryParamType](../../models/queryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| [object Object] | +| `type` | [operations.QueryParamType](../../sdk/models/operations/queryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.GetSearchLibraryResponse](../../models/getsearchlibraryresponse.md)\>** +**Promise\<[operations.GetSearchLibraryResponse](../../sdk/models/operations/getsearchlibraryresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.GetSearchLibraryLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetSearchLibraryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMetaDataByRatingKey @@ -804,14 +807,14 @@ run(); ### Response -**Promise\<[models.GetMetaDataByRatingKeyResponse](../../models/getmetadatabyratingkeyresponse.md)\>** +**Promise\<[operations.GetMetaDataByRatingKeyResponse](../../sdk/models/operations/getmetadatabyratingkeyresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| models.GetMetaDataByRatingKeyLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetMetaDataByRatingKeyResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMetadataChildren @@ -855,7 +858,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await libraryGetMetadataChildren(plexAPI, 5800.4, "Stream"); + const res = await libraryGetMetadataChildren(plexAPI, 1539.14, "Stream"); if (!res.ok) { throw res.error; @@ -882,14 +885,14 @@ run(); ### Response -**Promise\<[models.GetMetadataChildrenResponse](../../models/getmetadatachildrenresponse.md)\>** +**Promise\<[operations.GetMetadataChildrenResponse](../../sdk/models/operations/getmetadatachildrenresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models.GetMetadataChildrenLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetMetadataChildrenResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getTopWatchedContent @@ -900,7 +903,8 @@ This endpoint will return the top watched content from libraries of a certain ty ### Example Usage ```typescript -import { GetTopWatchedContentQueryParamType, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { GetTopWatchedContentQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -922,9 +926,9 @@ run(); The standalone function version of this method: ```typescript -import { GetTopWatchedContentQueryParamType } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { libraryGetTopWatchedContent } from "@lukehagar/plexjs/funcs/libraryGetTopWatchedContent.js"; +import { GetTopWatchedContentQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -953,7 +957,7 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetTopWatchedContentQueryParamType](../../models/gettopwatchedcontentqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| [object Object] | +| `type` | [operations.GetTopWatchedContentQueryParamType](../../sdk/models/operations/gettopwatchedcontentqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| [object Object] | | `includeGuids` | *number* | :heavy_minus_sign: | Adds the Guids object to the response
| [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | @@ -961,14 +965,14 @@ run(); ### Response -**Promise\<[models.GetTopWatchedContentResponse](../../models/gettopwatchedcontentresponse.md)\>** +**Promise\<[operations.GetTopWatchedContentResponse](../../sdk/models/operations/gettopwatchedcontentresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| models.GetTopWatchedContentLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| errors.GetTopWatchedContentResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getOnDeck @@ -1037,11 +1041,11 @@ run(); ### Response -**Promise\<[models.GetOnDeckResponse](../../models/getondeckresponse.md)\>** +**Promise\<[operations.GetOnDeckResponse](../../sdk/models/operations/getondeckresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models.GetOnDeckLibraryResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.GetOnDeckResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index b8f394d8..1291e7bd 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -20,7 +20,8 @@ This endpoint will write a single-line log message, including a level and source ### Example Usage ```typescript -import { Level, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { Level } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -42,9 +43,9 @@ run(); The standalone function version of this method: ```typescript -import { Level } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { logLogLine } from "@lukehagar/plexjs/funcs/logLogLine.js"; +import { Level } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -54,7 +55,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await logLogLine(plexAPI, Level.One, "Test log message", "Postman"); + const res = await logLogLine(plexAPI, Level.Three, "Test log message", "Postman"); if (!res.ok) { throw res.error; @@ -73,7 +74,7 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `level` | [models.Level](../../models/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | +| `level` | [operations.Level](../../sdk/models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | | `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | [object Object] | | `source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | @@ -82,14 +83,14 @@ run(); ### Response -**Promise\<[models.LogLineResponse](../../models/loglineresponse.md)\>** +**Promise\<[operations.LogLineResponse](../../sdk/models/operations/loglineresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------- | -------------------------- | -------------------------- | -| models.LogLineResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.LogLineResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## logMultiLine @@ -183,14 +184,14 @@ run(); ### Response -**Promise\<[models.LogMultiLineResponse](../../models/logmultilineresponse.md)\>** +**Promise\<[operations.LogMultiLineResponse](../../sdk/models/operations/logmultilineresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------- | ------------------------------- | ------------------------------- | -| models.LogMultiLineResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.LogMultiLineResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## enablePaperTrail @@ -259,11 +260,11 @@ run(); ### Response -**Promise\<[models.EnablePaperTrailResponse](../../models/enablepapertrailresponse.md)\>** +**Promise\<[operations.EnablePaperTrailResponse](../../sdk/models/operations/enablepapertrailresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models.EnablePaperTrailResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.EnablePaperTrailResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index a565f679..ed7df073 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -80,14 +80,14 @@ run(); ### Response -**Promise\<[models.MarkPlayedResponse](../../models/markplayedresponse.md)\>** +**Promise\<[operations.MarkPlayedResponse](../../sdk/models/operations/markplayedresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ----------------------------- | ----------------------------- | ----------------------------- | -| models.MarkPlayedResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.MarkPlayedResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## markUnplayed @@ -156,14 +156,14 @@ run(); ### Response -**Promise\<[models.MarkUnplayedResponse](../../models/markunplayedresponse.md)\>** +**Promise\<[operations.MarkUnplayedResponse](../../sdk/models/operations/markunplayedresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------- | ------------------------------- | ------------------------------- | -| models.MarkUnplayedResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.MarkUnplayedResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## updatePlayProgress @@ -235,14 +235,14 @@ run(); ### Response -**Promise\<[models.UpdatePlayProgressResponse](../../models/updateplayprogressresponse.md)\>** +**Promise\<[operations.UpdatePlayProgressResponse](../../sdk/models/operations/updateplayprogressresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models.UpdatePlayProgressResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.UpdatePlayProgressResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getBannerImage @@ -318,21 +318,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetBannerImageRequest](../../models/getbannerimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetBannerImageRequest](../../sdk/models/operations/getbannerimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetBannerImageResponse](../../models/getbannerimageresponse.md)\>** +**Promise\<[operations.GetBannerImageResponse](../../sdk/models/operations/getbannerimageresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| models.GetBannerImageResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetBannerImageResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getThumbImage @@ -408,18 +408,18 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetThumbImageRequest](../../models/getthumbimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetThumbImageRequest](../../sdk/models/operations/getthumbimagerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetThumbImageResponse](../../models/getthumbimageresponse.md)\>** +**Promise\<[operations.GetThumbImageResponse](../../sdk/models/operations/getthumbimageresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| models.GetThumbImageResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetThumbImageResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index d98b6aa5..9cf579b8 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -31,7 +31,8 @@ Create a new playlist. By default the playlist is blank. To create a playlist al ### Example Usage ```typescript -import { CreatePlaylistQueryParamType, PlexAPI, Smart } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { CreatePlaylistQueryParamType, Smart } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -58,9 +59,9 @@ run(); The standalone function version of this method: ```typescript -import { CreatePlaylistQueryParamType, Smart } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playlistsCreatePlaylist } from "@lukehagar/plexjs/funcs/playlistsCreatePlaylist.js"; +import { CreatePlaylistQueryParamType, Smart } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -72,9 +73,9 @@ const plexAPI = new PlexAPICore({ async function run() { const res = await playlistsCreatePlaylist(plexAPI, { title: "", - type: CreatePlaylistQueryParamType.Video, - smart: Smart.Zero, - uri: "http://doting-hake.biz", + type: CreatePlaylistQueryParamType.Photo, + smart: Smart.One, + uri: "https://inborn-brochure.biz", }); if (!res.ok) { @@ -94,21 +95,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.CreatePlaylistRequest](../../models/createplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.CreatePlaylistRequest](../../sdk/models/operations/createplaylistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.CreatePlaylistResponse](../../models/createplaylistresponse.md)\>** +**Promise\<[operations.CreatePlaylistResponse](../../sdk/models/operations/createplaylistresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.CreatePlaylistPlaylistsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.CreatePlaylistResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPlaylists @@ -170,22 +171,22 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `playlistType` | [models.PlaylistType](../../models/playlisttype.md) | :heavy_minus_sign: | limit to a type of playlist. | -| `smart` | [models.QueryParamSmart](../../models/queryparamsmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | +| `playlistType` | [operations.PlaylistType](../../sdk/models/operations/playlisttype.md) | :heavy_minus_sign: | limit to a type of playlist. | +| `smart` | [operations.QueryParamSmart](../../sdk/models/operations/queryparamsmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetPlaylistsResponse](../../models/getplaylistsresponse.md)\>** +**Promise\<[operations.GetPlaylistsResponse](../../sdk/models/operations/getplaylistsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models.GetPlaylistsPlaylistsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| errors.GetPlaylistsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPlaylist @@ -230,7 +231,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await playlistsGetPlaylist(plexAPI, 7975.52); + const res = await playlistsGetPlaylist(plexAPI, 4109.48); if (!res.ok) { throw res.error; @@ -256,14 +257,14 @@ run(); ### Response -**Promise\<[models.GetPlaylistResponse](../../models/getplaylistresponse.md)\>** +**Promise\<[operations.GetPlaylistResponse](../../sdk/models/operations/getplaylistresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models.GetPlaylistPlaylistsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.GetPlaylistResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## deletePlaylist @@ -307,7 +308,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await playlistsDeletePlaylist(plexAPI, 8383.28); + const res = await playlistsDeletePlaylist(plexAPI, 216.22); if (!res.ok) { throw res.error; @@ -333,14 +334,14 @@ run(); ### Response -**Promise\<[models.DeletePlaylistResponse](../../models/deleteplaylistresponse.md)\>** +**Promise\<[operations.DeletePlaylistResponse](../../sdk/models/operations/deleteplaylistresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| models.DeletePlaylistResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.DeletePlaylistResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## updatePlaylist @@ -384,7 +385,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await playlistsUpdatePlaylist(plexAPI, 9776.24); + const res = await playlistsUpdatePlaylist(plexAPI, 3915); if (!res.ok) { throw res.error; @@ -412,14 +413,14 @@ run(); ### Response -**Promise\<[models.UpdatePlaylistResponse](../../models/updateplaylistresponse.md)\>** +**Promise\<[operations.UpdatePlaylistResponse](../../sdk/models/operations/updateplaylistresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| models.UpdatePlaylistResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.UpdatePlaylistResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPlaylistContents @@ -433,7 +434,8 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u ### Example Usage ```typescript -import { GetPlaylistContentsQueryParamType, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { GetPlaylistContentsQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -455,9 +457,9 @@ run(); The standalone function version of this method: ```typescript -import { GetPlaylistContentsQueryParamType } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playlistsGetPlaylistContents } from "@lukehagar/plexjs/funcs/playlistsGetPlaylistContents.js"; +import { GetPlaylistContentsQueryParamType } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -467,7 +469,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await playlistsGetPlaylistContents(plexAPI, 2778.32, GetPlaylistContentsQueryParamType.Two); + const res = await playlistsGetPlaylistContents(plexAPI, 5004.46, GetPlaylistContentsQueryParamType.Two); if (!res.ok) { throw res.error; @@ -487,21 +489,21 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `playlistID` | *number* | :heavy_check_mark: | the ID of the playlist | | -| `type` | [models.GetPlaylistContentsQueryParamType](../../models/getplaylistcontentsqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| [object Object] | +| `type` | [operations.GetPlaylistContentsQueryParamType](../../sdk/models/operations/getplaylistcontentsqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.GetPlaylistContentsResponse](../../models/getplaylistcontentsresponse.md)\>** +**Promise\<[operations.GetPlaylistContentsResponse](../../sdk/models/operations/getplaylistcontentsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| models.GetPlaylistContentsPlaylistsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetPlaylistContentsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## clearPlaylistContents @@ -545,7 +547,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await playlistsClearPlaylistContents(plexAPI, 8890.12); + const res = await playlistsClearPlaylistContents(plexAPI, 1893.18); if (!res.ok) { throw res.error; @@ -571,14 +573,14 @@ run(); ### Response -**Promise\<[models.ClearPlaylistContentsResponse](../../models/clearplaylistcontentsresponse.md)\>** +**Promise\<[operations.ClearPlaylistContentsResponse](../../sdk/models/operations/clearplaylistcontentsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models.ClearPlaylistContentsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.ClearPlaylistContentsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## addPlaylistContents @@ -623,7 +625,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await playlistsAddPlaylistContents(plexAPI, 4298.05, "server://12345/com.plexapp.plugins.library/library/metadata/1", 123); + const res = await playlistsAddPlaylistContents(plexAPI, 8502.01, "server://12345/com.plexapp.plugins.library/library/metadata/1", 123); if (!res.ok) { throw res.error; @@ -651,14 +653,14 @@ run(); ### Response -**Promise\<[models.AddPlaylistContentsResponse](../../models/addplaylistcontentsresponse.md)\>** +**Promise\<[operations.AddPlaylistContentsResponse](../../sdk/models/operations/addplaylistcontentsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| models.AddPlaylistContentsPlaylistsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.AddPlaylistContentsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## uploadPlaylist @@ -669,7 +671,8 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted ### Example Usage ```typescript -import { PlexAPI, QueryParamForce } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { QueryParamForce } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -691,9 +694,9 @@ run(); The standalone function version of this method: ```typescript -import { QueryParamForce } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { playlistsUploadPlaylist } from "@lukehagar/plexjs/funcs/playlistsUploadPlaylist.js"; +import { QueryParamForce } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -723,18 +726,18 @@ run(); | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| [object Object] | -| `force` | [models.QueryParamForce](../../models/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | +| `force` | [operations.QueryParamForce](../../sdk/models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.UploadPlaylistResponse](../../models/uploadplaylistresponse.md)\>** +**Promise\<[operations.UploadPlaylistResponse](../../sdk/models/operations/uploadplaylistresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| models.UploadPlaylistResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.UploadPlaylistResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index cb5032d6..75692e85 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -82,14 +82,14 @@ run(); ### Response -**Promise\<[models.GetCompanionsDataResponse](../../models/getcompanionsdataresponse.md)\>** +**Promise\<[operations.GetCompanionsDataResponse](../../sdk/models/operations/getcompanionsdataresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models.GetCompanionsDataResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetCompanionsDataResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getUserFriends @@ -158,14 +158,14 @@ run(); ### Response -**Promise\<[models.GetUserFriendsResponse](../../models/getuserfriendsresponse.md)\>** +**Promise\<[operations.GetUserFriendsResponse](../../sdk/models/operations/getuserfriendsresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| models.GetUserFriendsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetUserFriendsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getGeoData @@ -232,14 +232,14 @@ run(); ### Response -**Promise\<[models.GetGeoDataResponse](../../models/getgeodataresponse.md)\>** +**Promise\<[operations.GetGeoDataResponse](../../sdk/models/operations/getgeodataresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ----------------------------- | ----------------------------- | ----------------------------- | -| models.GetGeoDataResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetGeoDataResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getHomeData @@ -307,14 +307,14 @@ run(); ### Response -**Promise\<[models.GetHomeDataResponse](../../models/gethomedataresponse.md)\>** +**Promise\<[operations.GetHomeDataResponse](../../sdk/models/operations/gethomedataresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models.GetHomeDataPlexResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.GetHomeDataResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerResources @@ -324,7 +324,8 @@ Get Plex server access tokens and server connections ### Example Usage ```typescript -import { IncludeHttps, IncludeIPv6, IncludeRelay, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -351,9 +352,9 @@ run(); The standalone function version of this method: ```typescript -import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { plexGetServerResources } from "@lukehagar/plexjs/funcs/plexGetServerResources.js"; +import { IncludeHttps, IncludeIPv6, IncludeRelay } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -387,7 +388,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetServerResourcesRequest](../../models/getserverresourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetServerResourcesRequest](../../sdk/models/operations/getserverresourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -395,14 +396,14 @@ run(); ### Response -**Promise\<[models.GetServerResourcesResponse](../../models/getserverresourcesresponse.md)\>** +**Promise\<[operations.GetServerResourcesResponse](../../sdk/models/operations/getserverresourcesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models.GetServerResourcesResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetServerResourcesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getPin @@ -472,14 +473,14 @@ run(); ### Response -**Promise\<[models.GetPinResponse](../../models/getpinresponse.md)\>** +**Promise\<[operations.GetPinResponse](../../sdk/models/operations/getpinresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models.GetPinResponseBody | 400 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetPinResponseBody | 400 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getTokenByPinId @@ -520,7 +521,7 @@ const plexAPI = new PlexAPICore({ }); async function run() { - const res = await plexGetTokenByPinId(plexAPI, 537318, "gcgzw5rz2xovp84b4vha3a40"); + const res = await plexGetTokenByPinId(plexAPI, 408895, "gcgzw5rz2xovp84b4vha3a40"); if (!res.ok) { throw res.error; @@ -548,12 +549,12 @@ run(); ### Response -**Promise\<[models.GetTokenByPinIdResponse](../../models/gettokenbypinidresponse.md)\>** +**Promise\<[operations.GetTokenByPinIdResponse](../../sdk/models/operations/gettokenbypinidresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models.GetTokenByPinIdResponseBody | 400 | application/json | -| models.GetTokenByPinIdPlexResponseBody | 404 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetTokenByPinIdResponseBody | 400 | application/json | +| errors.GetTokenByPinIdPlexResponseBody | 404 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 5c907769..6604c140 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -39,7 +39,7 @@ const plexAPI = new PlexAPI({ }); async function run() { - const result = await plexAPI.search.performSearch("arnold", 5); + const result = await plexAPI.search.performSearch("dylan", 5); // Handle the result console.log(result) @@ -92,14 +92,14 @@ run(); ### Response -**Promise\<[models.PerformSearchResponse](../../models/performsearchresponse.md)\>** +**Promise\<[operations.PerformSearchResponse](../../sdk/models/operations/performsearchresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| models.PerformSearchResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.PerformSearchResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## performVoiceSearch @@ -174,14 +174,14 @@ run(); ### Response -**Promise\<[models.PerformVoiceSearchResponse](../../models/performvoicesearchresponse.md)\>** +**Promise\<[operations.PerformVoiceSearchResponse](../../sdk/models/operations/performvoicesearchresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models.PerformVoiceSearchResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.PerformVoiceSearchResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSearchResults @@ -250,11 +250,11 @@ run(); ### Response -**Promise\<[models.GetSearchResultsResponse](../../models/getsearchresultsresponse.md)\>** +**Promise\<[operations.GetSearchResultsResponse](../../sdk/models/operations/getsearchresultsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models.GetSearchResultsSearchResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetSearchResultsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 612e396d..9def6f4e 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -83,14 +83,14 @@ run(); ### Response -**Promise\<[models.GetServerCapabilitiesResponse](../../models/getservercapabilitiesresponse.md)\>** +**Promise\<[operations.GetServerCapabilitiesResponse](../../sdk/models/operations/getservercapabilitiesresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| models.GetServerCapabilitiesServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| errors.GetServerCapabilitiesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerPreferences @@ -158,14 +158,14 @@ run(); ### Response -**Promise\<[models.GetServerPreferencesResponse](../../models/getserverpreferencesresponse.md)\>** +**Promise\<[operations.GetServerPreferencesResponse](../../sdk/models/operations/getserverpreferencesresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models.GetServerPreferencesServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| errors.GetServerPreferencesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getAvailableClients @@ -233,14 +233,14 @@ run(); ### Response -**Promise\<[models.GetAvailableClientsResponse](../../models/getavailableclientsresponse.md)\>** +**Promise\<[operations.GetAvailableClientsResponse](../../sdk/models/operations/getavailableclientsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models.GetAvailableClientsServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.GetAvailableClientsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getDevices @@ -308,14 +308,14 @@ run(); ### Response -**Promise\<[models.GetDevicesResponse](../../models/getdevicesresponse.md)\>** +**Promise\<[operations.GetDevicesResponse](../../sdk/models/operations/getdevicesresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models.GetDevicesServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------- | ----------------------------- | ----------------------------- | +| errors.GetDevicesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerIdentity @@ -381,14 +381,14 @@ run(); ### Response -**Promise\<[models.GetServerIdentityResponse](../../models/getserveridentityresponse.md)\>** +**Promise\<[operations.GetServerIdentityResponse](../../sdk/models/operations/getserveridentityresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.GetServerIdentityServerResponseBody | 408 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| errors.GetServerIdentityResponseBody | 408 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMyPlexAccount @@ -456,14 +456,14 @@ run(); ### Response -**Promise\<[models.GetMyPlexAccountResponse](../../models/getmyplexaccountresponse.md)\>** +**Promise\<[operations.GetMyPlexAccountResponse](../../sdk/models/operations/getmyplexaccountresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models.GetMyPlexAccountServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.GetMyPlexAccountResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getResizedPhoto @@ -474,7 +474,8 @@ Plex's Photo transcoder is used throughout the service to serve images at specif ### Example Usage ```typescript -import { MinSize, PlexAPI, Upscale } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { MinSize, Upscale } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -488,7 +489,7 @@ async function run() { opacity: 100, blur: 20, minSize: MinSize.One, - upscale: Upscale.Zero, + upscale: Upscale.One, url: "/library/metadata/49564/thumb/1654258204", }); @@ -504,9 +505,9 @@ run(); The standalone function version of this method: ```typescript -import { MinSize, Upscale } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { serverGetResizedPhoto } from "@lukehagar/plexjs/funcs/serverGetResizedPhoto.js"; +import { MinSize, Upscale } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -543,21 +544,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetResizedPhotoRequest](../../models/getresizedphotorequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetResizedPhotoRequest](../../sdk/models/operations/getresizedphotorequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetResizedPhotoResponse](../../models/getresizedphotoresponse.md)\>** +**Promise\<[operations.GetResizedPhotoResponse](../../sdk/models/operations/getresizedphotoresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models.GetResizedPhotoResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetResizedPhotoResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getMediaProviders @@ -626,14 +627,14 @@ run(); ### Response -**Promise\<[models.GetMediaProvidersResponse](../../models/getmediaprovidersresponse.md)\>** +**Promise\<[operations.GetMediaProvidersResponse](../../sdk/models/operations/getmediaprovidersresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.GetMediaProvidersServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| errors.GetMediaProvidersResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getServerList @@ -701,11 +702,11 @@ run(); ### Response -**Promise\<[models.GetServerListResponse](../../models/getserverlistresponse.md)\>** +**Promise\<[operations.GetServerListResponse](../../sdk/models/operations/getserverlistresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models.GetServerListServerResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------- | -------------------------------- | -------------------------------- | +| errors.GetServerListResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 30859cab..aa6f7789 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -78,14 +78,14 @@ run(); ### Response -**Promise\<[models.GetSessionsResponse](../../models/getsessionsresponse.md)\>** +**Promise\<[operations.GetSessionsResponse](../../sdk/models/operations/getsessionsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models.GetSessionsSessionsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.GetSessionsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getSessionHistory @@ -149,7 +149,7 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sort` | *string* | :heavy_minus_sign: | Sorts the results by the specified field followed by the direction (asc, desc)
| | | `accountId` | *number* | :heavy_minus_sign: | Filter results by those that are related to a specific users id
| [object Object] | -| `filter` | [models.QueryParamFilter](../../models/queryparamfilter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| [object Object] | +| `filter` | [operations.QueryParamFilter](../../sdk/models/operations/queryparamfilter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| [object Object] | | `librarySectionID` | *number* | :heavy_minus_sign: | Filters the results based on the id of a valid library section
| [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | @@ -157,14 +157,14 @@ run(); ### Response -**Promise\<[models.GetSessionHistoryResponse](../../models/getsessionhistoryresponse.md)\>** +**Promise\<[operations.GetSessionHistoryResponse](../../sdk/models/operations/getsessionhistoryresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models.GetSessionHistorySessionsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| errors.GetSessionHistoryResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getTranscodeSessions @@ -232,14 +232,14 @@ run(); ### Response -**Promise\<[models.GetTranscodeSessionsResponse](../../models/gettranscodesessionsresponse.md)\>** +**Promise\<[operations.GetTranscodeSessionsResponse](../../sdk/models/operations/gettranscodesessionsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| models.GetTranscodeSessionsSessionsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| errors.GetTranscodeSessionsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## stopTranscodeSession @@ -308,11 +308,11 @@ run(); ### Response -**Promise\<[models.StopTranscodeSessionResponse](../../models/stoptranscodesessionresponse.md)\>** +**Promise\<[operations.StopTranscodeSessionResponse](../../sdk/models/operations/stoptranscodesessionresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models.StopTranscodeSessionResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.StopTranscodeSessionResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index db3eac5b..3eb76261 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -78,14 +78,14 @@ run(); ### Response -**Promise\<[models.GetStatisticsResponse](../../models/getstatisticsresponse.md)\>** +**Promise\<[operations.GetStatisticsResponse](../../sdk/models/operations/getstatisticsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.GetStatisticsStatisticsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| -------------------------------- | -------------------------------- | -------------------------------- | +| errors.GetStatisticsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getResourcesStatistics @@ -154,14 +154,14 @@ run(); ### Response -**Promise\<[models.GetResourcesStatisticsResponse](../../models/getresourcesstatisticsresponse.md)\>** +**Promise\<[operations.GetResourcesStatisticsResponse](../../sdk/models/operations/getresourcesstatisticsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| models.GetResourcesStatisticsStatisticsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetResourcesStatisticsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## getBandwidthStatistics @@ -230,11 +230,11 @@ run(); ### Response -**Promise\<[models.GetBandwidthStatisticsResponse](../../models/getbandwidthstatisticsresponse.md)\>** +**Promise\<[operations.GetBandwidthStatisticsResponse](../../sdk/models/operations/getbandwidthstatisticsresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| models.GetBandwidthStatisticsStatisticsResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.GetBandwidthStatisticsResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index c47e34c4..d4897085 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -78,14 +78,14 @@ run(); ### Response -**Promise\<[models.GetUpdateStatusResponse](../../models/getupdatestatusresponse.md)\>** +**Promise\<[operations.GetUpdateStatusResponse](../../sdk/models/operations/getupdatestatusresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models.GetUpdateStatusUpdaterResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | +| errors.GetUpdateStatusResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## checkForUpdates @@ -95,7 +95,8 @@ Checking for updates ### Example Usage ```typescript -import { Download, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { Download } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -117,9 +118,9 @@ run(); The standalone function version of this method: ```typescript -import { Download } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { updaterCheckForUpdates } from "@lukehagar/plexjs/funcs/updaterCheckForUpdates.js"; +import { Download } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -148,21 +149,21 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `download` | [models.Download](../../models/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | [object Object] | +| `download` | [operations.Download](../../sdk/models/operations/download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.CheckForUpdatesResponse](../../models/checkforupdatesresponse.md)\>** +**Promise\<[operations.CheckForUpdatesResponse](../../sdk/models/operations/checkforupdatesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models.CheckForUpdatesResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.CheckForUpdatesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## applyUpdates @@ -173,7 +174,8 @@ Note that these two parameters are effectively mutually exclusive. The `tonight` ### Example Usage ```typescript -import { PlexAPI, Skip, Tonight } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { Skip, Tonight } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -195,9 +197,9 @@ run(); The standalone function version of this method: ```typescript -import { Skip, Tonight } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { updaterApplyUpdates } from "@lukehagar/plexjs/funcs/updaterApplyUpdates.js"; +import { Skip, Tonight } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -226,19 +228,19 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `tonight` | [models.Tonight](../../models/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | [object Object] | -| `skip` | [models.Skip](../../models/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`. | [object Object] | +| `tonight` | [operations.Tonight](../../sdk/models/operations/tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | [object Object] | +| `skip` | [operations.Skip](../../sdk/models/operations/skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`. | [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | ### Response -**Promise\<[models.ApplyUpdatesResponse](../../models/applyupdatesresponse.md)\>** +**Promise\<[operations.ApplyUpdatesResponse](../../sdk/models/operations/applyupdatesresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------- | ------------------------------- | ------------------------------- | -| models.ApplyUpdatesResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.ApplyUpdatesResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index be7c6a3e..9e14aa6f 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -18,7 +18,8 @@ Get the timeline for a media item ### Example Usage ```typescript -import { PlexAPI, State } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { State } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -51,9 +52,9 @@ run(); The standalone function version of this method: ```typescript -import { State } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { videoGetTimeline } from "@lukehagar/plexjs/funcs/videoGetTimeline.js"; +import { State } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -93,21 +94,21 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetTimelineRequest](../../models/gettimelinerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetTimelineRequest](../../sdk/models/operations/gettimelinerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.GetTimelineResponse](../../models/gettimelineresponse.md)\>** +**Promise\<[operations.GetTimelineResponse](../../sdk/models/operations/gettimelineresponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------ | ------------------------------ | ------------------------------ | -| models.GetTimelineResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.GetTimelineResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | ## startUniversalTranscode @@ -203,18 +204,18 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.StartUniversalTranscodeRequest](../../models/startuniversaltranscoderequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.StartUniversalTranscodeRequest](../../sdk/models/operations/startuniversaltranscoderequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[models.StartUniversalTranscodeResponse](../../models/startuniversaltranscoderesponse.md)\>** +**Promise\<[operations.StartUniversalTranscodeResponse](../../sdk/models/operations/startuniversaltranscoderesponse.md)\>** ### Errors | Error Object | Status Code | Content Type | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models.StartUniversalTranscodeResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| errors.StartUniversalTranscodeResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index 3e79db21..f350a120 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -17,7 +17,8 @@ Get User Watchlist ### Example Usage ```typescript -import { Filter, PlexAPI } from "@lukehagar/plexjs"; +import { PlexAPI } from "@lukehagar/plexjs"; +import { Filter } from "@lukehagar/plexjs/sdk/models/operations"; const plexAPI = new PlexAPI({ accessToken: "", @@ -44,9 +45,9 @@ run(); The standalone function version of this method: ```typescript -import { Filter } from "@lukehagar/plexjs"; import { PlexAPICore } from "@lukehagar/plexjs/core.js"; import { watchlistGetWatchList } from "@lukehagar/plexjs/funcs/watchlistGetWatchList.js"; +import { Filter } from "@lukehagar/plexjs/sdk/models/operations"; // Use `PlexAPICore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -57,7 +58,7 @@ const plexAPI = new PlexAPICore({ async function run() { const res = await watchlistGetWatchList(plexAPI, { - filter: Filter.Released, + filter: Filter.Available, xPlexContainerStart: 0, xPlexContainerSize: 50, xPlexToken: "CV5xoxjTpFKUzBTShsaf", @@ -80,7 +81,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [models.GetWatchListRequest](../../models/getwatchlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetWatchListRequest](../../sdk/models/operations/getwatchlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -88,11 +89,11 @@ run(); ### Response -**Promise\<[models.GetWatchListResponse](../../models/getwatchlistresponse.md)\>** +**Promise\<[operations.GetWatchListResponse](../../sdk/models/operations/getwatchlistresponse.md)\>** ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models.GetWatchListWatchlistResponseBody | 401 | application/json | -| models.SDKError | 4xx-5xx | */* | +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| errors.GetWatchListResponseBody | 401 | application/json | +| errors.SDKError | 4xx-5xx | */* | diff --git a/jsr.json b/jsr.json index e0b9a73b..7670fc55 100644 --- a/jsr.json +++ b/jsr.json @@ -2,15 +2,17 @@ { "name": "@lukehagar/plexjs", - "version": "0.20.0", + "version": "0.20.1", "exports": { ".": "./src/index.ts", - "./models": "./src/models/index.ts", + "./sdk/models/errors": "./src/sdk/models/errors/index.ts", + "./sdk/models/shared": "./src/sdk/models/shared/index.ts", + "./sdk/models/operations": "./src/sdk/models/operations/index.ts", "./lib/config": "./src/lib/config.ts", "./lib/http": "./src/lib/http.ts", "./lib/retries": "./src/lib/retries.ts", "./lib/sdks": "./src/lib/sdks.ts", - "./types": "./src/types/index.ts" + "./types": "./src/sdk/types/index.ts" }, "publish": { "include": [ diff --git a/package-lock.json b/package-lock.json index 9205faad..491ac1e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.20.0", + "version": "0.20.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.20.0", + "version": "0.20.1", "devDependencies": { "@types/node": "^18.19.3", "@typescript-eslint/eslint-plugin": "^7.7.1", diff --git a/package.json b/package.json index 1a50e582..59e2e141 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.20.0", + "version": "0.20.1", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/activitiesCancelServerActivities.ts b/src/funcs/activitiesCancelServerActivities.ts index cecc73f3..24679a6c 100644 --- a/src/funcs/activitiesCancelServerActivities.ts +++ b/src/funcs/activitiesCancelServerActivities.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Cancel Server Activities @@ -33,8 +34,8 @@ export async function activitiesCancelServerActivities( options?: RequestOptions ): Promise< Result< - models.CancelServerActivitiesResponse, - | models.CancelServerActivitiesResponseBody + operations.CancelServerActivitiesResponse, + | errors.CancelServerActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function activitiesCancelServerActivities( | ConnectionError > > { - const input$: models.CancelServerActivitiesRequest = { + const input$: operations.CancelServerActivitiesRequest = { activityUUID: activityUUID, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.CancelServerActivitiesRequest$outboundSchema.parse(value$), + (value$) => operations.CancelServerActivitiesRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -117,8 +118,8 @@ export async function activitiesCancelServerActivities( }; const [result$] = await m$.match< - models.CancelServerActivitiesResponse, - | models.CancelServerActivitiesResponseBody + operations.CancelServerActivitiesResponse, + | errors.CancelServerActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,9 +128,9 @@ export async function activitiesCancelServerActivities( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.CancelServerActivitiesResponse$inboundSchema), + m$.nil(200, operations.CancelServerActivitiesResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.CancelServerActivitiesResponseBody$inboundSchema) + m$.jsonErr(401, errors.CancelServerActivitiesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/activitiesGetServerActivities.ts b/src/funcs/activitiesGetServerActivities.ts index 7acd9f80..8eaecbf0 100644 --- a/src/funcs/activitiesGetServerActivities.ts +++ b/src/funcs/activitiesGetServerActivities.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Server Activities @@ -30,8 +31,8 @@ export async function activitiesGetServerActivities( options?: RequestOptions ): Promise< Result< - models.GetServerActivitiesResponse, - | models.GetServerActivitiesActivitiesResponseBody + operations.GetServerActivitiesResponse, + | errors.GetServerActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function activitiesGetServerActivities( }; const [result$] = await m$.match< - models.GetServerActivitiesResponse, - | models.GetServerActivitiesActivitiesResponseBody + operations.GetServerActivitiesResponse, + | errors.GetServerActivitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function activitiesGetServerActivities( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetServerActivitiesResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetServerActivitiesResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetServerActivitiesActivitiesResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetServerActivitiesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationGetSourceConnectionInformation.ts b/src/funcs/authenticationGetSourceConnectionInformation.ts index 06c658b5..73a8afe1 100644 --- a/src/funcs/authenticationGetSourceConnectionInformation.ts +++ b/src/funcs/authenticationGetSourceConnectionInformation.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Source Connection Information @@ -35,8 +36,8 @@ export async function authenticationGetSourceConnectionInformation( options?: RequestOptions ): Promise< Result< - models.GetSourceConnectionInformationResponse, - | models.GetSourceConnectionInformationResponseBody + operations.GetSourceConnectionInformationResponse, + | errors.GetSourceConnectionInformationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,13 +47,13 @@ export async function authenticationGetSourceConnectionInformation( | ConnectionError > > { - const input$: models.GetSourceConnectionInformationRequest = { + const input$: operations.GetSourceConnectionInformationRequest = { source: source, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetSourceConnectionInformationRequest$outboundSchema.parse(value$), + (value$) => operations.GetSourceConnectionInformationRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -117,8 +118,8 @@ export async function authenticationGetSourceConnectionInformation( }; const [result$] = await m$.match< - models.GetSourceConnectionInformationResponse, - | models.GetSourceConnectionInformationResponseBody + operations.GetSourceConnectionInformationResponse, + | errors.GetSourceConnectionInformationResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,9 +128,9 @@ export async function authenticationGetSourceConnectionInformation( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.GetSourceConnectionInformationResponse$inboundSchema), + m$.nil(200, operations.GetSourceConnectionInformationResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetSourceConnectionInformationResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetSourceConnectionInformationResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationGetTransientToken.ts b/src/funcs/authenticationGetTransientToken.ts index 01f63ea7..614469c9 100644 --- a/src/funcs/authenticationGetTransientToken.ts +++ b/src/funcs/authenticationGetTransientToken.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get a Transient Token. @@ -30,13 +31,13 @@ import { Result } from "../types/fp.js"; */ export async function authenticationGetTransientToken( client$: PlexAPICore, - type: models.GetTransientTokenQueryParamType, - scope: models.Scope, + type: operations.GetTransientTokenQueryParamType, + scope: operations.Scope, options?: RequestOptions ): Promise< Result< - models.GetTransientTokenResponse, - | models.GetTransientTokenResponseBody + operations.GetTransientTokenResponse, + | errors.GetTransientTokenResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,14 +47,14 @@ export async function authenticationGetTransientToken( | ConnectionError > > { - const input$: models.GetTransientTokenRequest = { + const input$: operations.GetTransientTokenRequest = { type: type, scope: scope, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetTransientTokenRequest$outboundSchema.parse(value$), + (value$) => operations.GetTransientTokenRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -119,8 +120,8 @@ export async function authenticationGetTransientToken( }; const [result$] = await m$.match< - models.GetTransientTokenResponse, - | models.GetTransientTokenResponseBody + operations.GetTransientTokenResponse, + | errors.GetTransientTokenResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,9 +130,9 @@ export async function authenticationGetTransientToken( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.GetTransientTokenResponse$inboundSchema), + m$.nil(200, operations.GetTransientTokenResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetTransientTokenResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetTransientTokenResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationGetUserDetails.ts b/src/funcs/authenticationGetUserDetails.ts index bd5860d9..1a385941 100644 --- a/src/funcs/authenticationGetUserDetails.ts +++ b/src/funcs/authenticationGetUserDetails.ts @@ -9,18 +9,19 @@ import * as schemas$ from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { GetUserDetailsOpServerList } from "../models/getuserdetailsop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetUserDetailsServerList } from "../sdk/models/operations/getuserdetails.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get User Data By Token @@ -34,8 +35,8 @@ export async function authenticationGetUserDetails( options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetUserDetailsResponse, - | models.GetUserDetailsResponseBody + operations.GetUserDetailsResponse, + | errors.GetUserDetailsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,13 +46,13 @@ export async function authenticationGetUserDetails( | ConnectionError > > { - const input$: models.GetUserDetailsRequest = { + const input$: operations.GetUserDetailsRequest = { xPlexToken: xPlexToken, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetUserDetailsRequest$outboundSchema.parse(value$), + (value$) => operations.GetUserDetailsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -62,7 +63,7 @@ export async function authenticationGetUserDetails( const baseURL$ = options?.serverURL || - pathToFunc(GetUserDetailsOpServerList[0], { charEncoding: "percent" })(); + pathToFunc(GetUserDetailsServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/user")(); @@ -121,8 +122,8 @@ export async function authenticationGetUserDetails( }; const [result$] = await m$.match< - models.GetUserDetailsResponse, - | models.GetUserDetailsResponseBody + operations.GetUserDetailsResponse, + | errors.GetUserDetailsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -131,9 +132,9 @@ export async function authenticationGetUserDetails( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetUserDetailsResponse$inboundSchema, { key: "UserPlexAccount" }), + m$.json(200, operations.GetUserDetailsResponse$inboundSchema, { key: "UserPlexAccount" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetUserDetailsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetUserDetailsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/authenticationPostUsersSignInData.ts b/src/funcs/authenticationPostUsersSignInData.ts index 7a090a8f..3d1c914c 100644 --- a/src/funcs/authenticationPostUsersSignInData.ts +++ b/src/funcs/authenticationPostUsersSignInData.ts @@ -17,12 +17,13 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { PostUsersSignInDataOpServerList } from "../models/postuserssignindataop.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { PostUsersSignInDataServerList } from "../sdk/models/operations/postuserssignindata.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get User SignIn Data @@ -33,12 +34,12 @@ import { Result } from "../types/fp.js"; export async function authenticationPostUsersSignInData( client$: PlexAPICore, xPlexClientIdentifier?: string | undefined, - requestBody?: models.PostUsersSignInDataRequestBody | undefined, + requestBody?: operations.PostUsersSignInDataRequestBody | undefined, options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.PostUsersSignInDataResponse, - | models.PostUsersSignInDataResponseBody + operations.PostUsersSignInDataResponse, + | errors.PostUsersSignInDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -48,14 +49,14 @@ export async function authenticationPostUsersSignInData( | ConnectionError > > { - const input$: models.PostUsersSignInDataRequest = { + const input$: operations.PostUsersSignInDataRequest = { xPlexClientIdentifier: xPlexClientIdentifier, requestBody: requestBody, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.PostUsersSignInDataRequest$outboundSchema.parse(value$), + (value$) => operations.PostUsersSignInDataRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -70,7 +71,7 @@ export async function authenticationPostUsersSignInData( const baseURL$ = options?.serverURL || - pathToFunc(PostUsersSignInDataOpServerList[0], { charEncoding: "percent" })(); + pathToFunc(PostUsersSignInDataServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/users/signin")(); @@ -127,8 +128,8 @@ export async function authenticationPostUsersSignInData( }; const [result$] = await m$.match< - models.PostUsersSignInDataResponse, - | models.PostUsersSignInDataResponseBody + operations.PostUsersSignInDataResponse, + | errors.PostUsersSignInDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -137,9 +138,11 @@ export async function authenticationPostUsersSignInData( | RequestTimeoutError | ConnectionError >( - m$.json(201, models.PostUsersSignInDataResponse$inboundSchema, { key: "UserPlexAccount" }), + m$.json(201, operations.PostUsersSignInDataResponse$inboundSchema, { + key: "UserPlexAccount", + }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.PostUsersSignInDataResponseBody$inboundSchema) + m$.jsonErr(401, errors.PostUsersSignInDataResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerGetButlerTasks.ts b/src/funcs/butlerGetButlerTasks.ts index d0e6778d..bbcb2b70 100644 --- a/src/funcs/butlerGetButlerTasks.ts +++ b/src/funcs/butlerGetButlerTasks.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Butler tasks @@ -30,8 +31,8 @@ export async function butlerGetButlerTasks( options?: RequestOptions ): Promise< Result< - models.GetButlerTasksResponse, - | models.GetButlerTasksButlerResponseBody + operations.GetButlerTasksResponse, + | errors.GetButlerTasksResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function butlerGetButlerTasks( }; const [result$] = await m$.match< - models.GetButlerTasksResponse, - | models.GetButlerTasksButlerResponseBody + operations.GetButlerTasksResponse, + | errors.GetButlerTasksResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function butlerGetButlerTasks( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetButlerTasksResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetButlerTasksResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetButlerTasksButlerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetButlerTasksResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStartAllTasks.ts b/src/funcs/butlerStartAllTasks.ts index d70aeedc..77514a3e 100644 --- a/src/funcs/butlerStartAllTasks.ts +++ b/src/funcs/butlerStartAllTasks.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Start all Butler tasks @@ -35,8 +36,8 @@ export async function butlerStartAllTasks( options?: RequestOptions ): Promise< Result< - models.StartAllTasksResponse, - | models.StartAllTasksResponseBody + operations.StartAllTasksResponse, + | errors.StartAllTasksResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -96,8 +97,8 @@ export async function butlerStartAllTasks( }; const [result$] = await m$.match< - models.StartAllTasksResponse, - | models.StartAllTasksResponseBody + operations.StartAllTasksResponse, + | errors.StartAllTasksResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -106,9 +107,9 @@ export async function butlerStartAllTasks( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.StartAllTasksResponse$inboundSchema), + m$.nil(200, operations.StartAllTasksResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.StartAllTasksResponseBody$inboundSchema) + m$.jsonErr(401, errors.StartAllTasksResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStartTask.ts b/src/funcs/butlerStartTask.ts index e72f6cc2..e1412207 100644 --- a/src/funcs/butlerStartTask.ts +++ b/src/funcs/butlerStartTask.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Start a single Butler task @@ -34,12 +35,12 @@ import { Result } from "../types/fp.js"; */ export async function butlerStartTask( client$: PlexAPICore, - taskName: models.TaskName, + taskName: operations.TaskName, options?: RequestOptions ): Promise< Result< - models.StartTaskResponse, - | models.StartTaskResponseBody + operations.StartTaskResponse, + | errors.StartTaskResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -49,13 +50,13 @@ export async function butlerStartTask( | ConnectionError > > { - const input$: models.StartTaskRequest = { + const input$: operations.StartTaskRequest = { taskName: taskName, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.StartTaskRequest$outboundSchema.parse(value$), + (value$) => operations.StartTaskRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -122,8 +123,8 @@ export async function butlerStartTask( }; const [result$] = await m$.match< - models.StartTaskResponse, - | models.StartTaskResponseBody + operations.StartTaskResponse, + | errors.StartTaskResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -132,9 +133,9 @@ export async function butlerStartTask( | RequestTimeoutError | ConnectionError >( - m$.nil([200, 202], models.StartTaskResponse$inboundSchema), + m$.nil([200, 202], operations.StartTaskResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.StartTaskResponseBody$inboundSchema) + m$.jsonErr(401, errors.StartTaskResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStopAllTasks.ts b/src/funcs/butlerStopAllTasks.ts index 2378044c..a42d6752 100644 --- a/src/funcs/butlerStopAllTasks.ts +++ b/src/funcs/butlerStopAllTasks.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Stop all Butler tasks @@ -31,8 +32,8 @@ export async function butlerStopAllTasks( options?: RequestOptions ): Promise< Result< - models.StopAllTasksResponse, - | models.StopAllTasksResponseBody + operations.StopAllTasksResponse, + | errors.StopAllTasksResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -92,8 +93,8 @@ export async function butlerStopAllTasks( }; const [result$] = await m$.match< - models.StopAllTasksResponse, - | models.StopAllTasksResponseBody + operations.StopAllTasksResponse, + | errors.StopAllTasksResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -102,9 +103,9 @@ export async function butlerStopAllTasks( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.StopAllTasksResponse$inboundSchema), + m$.nil(200, operations.StopAllTasksResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.StopAllTasksResponseBody$inboundSchema) + m$.jsonErr(401, errors.StopAllTasksResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/butlerStopTask.ts b/src/funcs/butlerStopTask.ts index 0fe027ce..936b7706 100644 --- a/src/funcs/butlerStopTask.ts +++ b/src/funcs/butlerStopTask.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Stop a single Butler task @@ -30,12 +31,12 @@ import { Result } from "../types/fp.js"; */ export async function butlerStopTask( client$: PlexAPICore, - taskName: models.PathParamTaskName, + taskName: operations.PathParamTaskName, options?: RequestOptions ): Promise< Result< - models.StopTaskResponse, - | models.StopTaskResponseBody + operations.StopTaskResponse, + | errors.StopTaskResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,13 +46,13 @@ export async function butlerStopTask( | ConnectionError > > { - const input$: models.StopTaskRequest = { + const input$: operations.StopTaskRequest = { taskName: taskName, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.StopTaskRequest$outboundSchema.parse(value$), + (value$) => operations.StopTaskRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function butlerStopTask( }; const [result$] = await m$.match< - models.StopTaskResponse, - | models.StopTaskResponseBody + operations.StopTaskResponse, + | errors.StopTaskResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function butlerStopTask( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.StopTaskResponse$inboundSchema), + m$.nil(200, operations.StopTaskResponse$inboundSchema), m$.fail([400, 404, "4XX", "5XX"]), - m$.jsonErr(401, models.StopTaskResponseBody$inboundSchema) + m$.jsonErr(401, errors.StopTaskResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/hubsGetGlobalHubs.ts b/src/funcs/hubsGetGlobalHubs.ts index 01aa4381..2bd16b90 100644 --- a/src/funcs/hubsGetGlobalHubs.ts +++ b/src/funcs/hubsGetGlobalHubs.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Global Hubs @@ -30,12 +31,12 @@ import { Result } from "../types/fp.js"; export async function hubsGetGlobalHubs( client$: PlexAPICore, count?: number | undefined, - onlyTransient?: models.OnlyTransient | undefined, + onlyTransient?: operations.OnlyTransient | undefined, options?: RequestOptions ): Promise< Result< - models.GetGlobalHubsResponse, - | models.GetGlobalHubsHubsResponseBody + operations.GetGlobalHubsResponse, + | errors.GetGlobalHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,14 +46,14 @@ export async function hubsGetGlobalHubs( | ConnectionError > > { - const input$: models.GetGlobalHubsRequest = { + const input$: operations.GetGlobalHubsRequest = { count: count, onlyTransient: onlyTransient, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetGlobalHubsRequest$outboundSchema.parse(value$), + (value$) => operations.GetGlobalHubsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function hubsGetGlobalHubs( }; const [result$] = await m$.match< - models.GetGlobalHubsResponse, - | models.GetGlobalHubsHubsResponseBody + operations.GetGlobalHubsResponse, + | errors.GetGlobalHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function hubsGetGlobalHubs( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetGlobalHubsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetGlobalHubsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetGlobalHubsHubsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetGlobalHubsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/hubsGetLibraryHubs.ts b/src/funcs/hubsGetLibraryHubs.ts index adc3808e..5c978fb8 100644 --- a/src/funcs/hubsGetLibraryHubs.ts +++ b/src/funcs/hubsGetLibraryHubs.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get library specific hubs @@ -35,12 +36,12 @@ export async function hubsGetLibraryHubs( client$: PlexAPICore, sectionId: number, count?: number | undefined, - onlyTransient?: models.QueryParamOnlyTransient | undefined, + onlyTransient?: operations.QueryParamOnlyTransient | undefined, options?: RequestOptions ): Promise< Result< - models.GetLibraryHubsResponse, - | models.GetLibraryHubsHubsResponseBody + operations.GetLibraryHubsResponse, + | errors.GetLibraryHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -50,7 +51,7 @@ export async function hubsGetLibraryHubs( | ConnectionError > > { - const input$: models.GetLibraryHubsRequest = { + const input$: operations.GetLibraryHubsRequest = { sectionId: sectionId, count: count, onlyTransient: onlyTransient, @@ -58,7 +59,7 @@ export async function hubsGetLibraryHubs( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetLibraryHubsRequest$outboundSchema.parse(value$), + (value$) => operations.GetLibraryHubsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -131,8 +132,8 @@ export async function hubsGetLibraryHubs( }; const [result$] = await m$.match< - models.GetLibraryHubsResponse, - | models.GetLibraryHubsHubsResponseBody + operations.GetLibraryHubsResponse, + | errors.GetLibraryHubsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -141,9 +142,9 @@ export async function hubsGetLibraryHubs( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetLibraryHubsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetLibraryHubsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetLibraryHubsHubsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetLibraryHubsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryDeleteLibrary.ts b/src/funcs/libraryDeleteLibrary.ts index ddb88f27..21bfeb4d 100644 --- a/src/funcs/libraryDeleteLibrary.ts +++ b/src/funcs/libraryDeleteLibrary.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Delete Library Section @@ -33,8 +34,8 @@ export async function libraryDeleteLibrary( options?: RequestOptions ): Promise< Result< - models.DeleteLibraryResponse, - | models.DeleteLibraryResponseBody + operations.DeleteLibraryResponse, + | errors.DeleteLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function libraryDeleteLibrary( | ConnectionError > > { - const input$: models.DeleteLibraryRequest = { + const input$: operations.DeleteLibraryRequest = { sectionKey: sectionKey, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.DeleteLibraryRequest$outboundSchema.parse(value$), + (value$) => operations.DeleteLibraryRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -117,8 +118,8 @@ export async function libraryDeleteLibrary( }; const [result$] = await m$.match< - models.DeleteLibraryResponse, - | models.DeleteLibraryResponseBody + operations.DeleteLibraryResponse, + | errors.DeleteLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,9 +128,9 @@ export async function libraryDeleteLibrary( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.DeleteLibraryResponse$inboundSchema), + m$.nil(200, operations.DeleteLibraryResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.DeleteLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.DeleteLibraryResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetAllLibraries.ts b/src/funcs/libraryGetAllLibraries.ts index 8312db32..02ced857 100644 --- a/src/funcs/libraryGetAllLibraries.ts +++ b/src/funcs/libraryGetAllLibraries.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get All Libraries @@ -36,8 +37,8 @@ export async function libraryGetAllLibraries( options?: RequestOptions ): Promise< Result< - models.GetAllLibrariesResponse, - | models.GetAllLibrariesLibraryResponseBody + operations.GetAllLibrariesResponse, + | errors.GetAllLibrariesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -97,8 +98,8 @@ export async function libraryGetAllLibraries( }; const [result$] = await m$.match< - models.GetAllLibrariesResponse, - | models.GetAllLibrariesLibraryResponseBody + operations.GetAllLibrariesResponse, + | errors.GetAllLibrariesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -107,9 +108,9 @@ export async function libraryGetAllLibraries( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetAllLibrariesResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetAllLibrariesResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetAllLibrariesLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetAllLibrariesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetFileHash.ts b/src/funcs/libraryGetFileHash.ts index 3f299eda..f9200825 100644 --- a/src/funcs/libraryGetFileHash.ts +++ b/src/funcs/libraryGetFileHash.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Hash Value @@ -34,8 +35,8 @@ export async function libraryGetFileHash( options?: RequestOptions ): Promise< Result< - models.GetFileHashResponse, - | models.GetFileHashResponseBody + operations.GetFileHashResponse, + | errors.GetFileHashResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,14 +46,14 @@ export async function libraryGetFileHash( | ConnectionError > > { - const input$: models.GetFileHashRequest = { + const input$: operations.GetFileHashRequest = { url: url, type: type, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetFileHashRequest$outboundSchema.parse(value$), + (value$) => operations.GetFileHashRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function libraryGetFileHash( }; const [result$] = await m$.match< - models.GetFileHashResponse, - | models.GetFileHashResponseBody + operations.GetFileHashResponse, + | errors.GetFileHashResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function libraryGetFileHash( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.GetFileHashResponse$inboundSchema), + m$.nil(200, operations.GetFileHashResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetFileHashResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetFileHashResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetLibraryDetails.ts b/src/funcs/libraryGetLibraryDetails.ts index 6b2225c2..f38ca007 100644 --- a/src/funcs/libraryGetLibraryDetails.ts +++ b/src/funcs/libraryGetLibraryDetails.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Library Details @@ -72,12 +73,12 @@ import { Result } from "../types/fp.js"; export async function libraryGetLibraryDetails( client$: PlexAPICore, sectionKey: number, - includeDetails?: models.IncludeDetails | undefined, + includeDetails?: operations.IncludeDetails | undefined, options?: RequestOptions ): Promise< Result< - models.GetLibraryDetailsResponse, - | models.GetLibraryDetailsLibraryResponseBody + operations.GetLibraryDetailsResponse, + | errors.GetLibraryDetailsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -87,14 +88,14 @@ export async function libraryGetLibraryDetails( | ConnectionError > > { - const input$: models.GetLibraryDetailsRequest = { + const input$: operations.GetLibraryDetailsRequest = { sectionKey: sectionKey, includeDetails: includeDetails, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetLibraryDetailsRequest$outboundSchema.parse(value$), + (value$) => operations.GetLibraryDetailsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -166,8 +167,8 @@ export async function libraryGetLibraryDetails( }; const [result$] = await m$.match< - models.GetLibraryDetailsResponse, - | models.GetLibraryDetailsLibraryResponseBody + operations.GetLibraryDetailsResponse, + | errors.GetLibraryDetailsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -176,9 +177,9 @@ export async function libraryGetLibraryDetails( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetLibraryDetailsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetLibraryDetailsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetLibraryDetailsLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetLibraryDetailsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetLibraryItems.ts b/src/funcs/libraryGetLibraryItems.ts index 7ba5eeef..00ad5d51 100644 --- a/src/funcs/libraryGetLibraryItems.ts +++ b/src/funcs/libraryGetLibraryItems.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Library Items @@ -52,12 +53,12 @@ import { Result } from "../types/fp.js"; */ export async function libraryGetLibraryItems( client$: PlexAPICore, - request: models.GetLibraryItemsRequest, + request: operations.GetLibraryItemsRequest, options?: RequestOptions ): Promise< Result< - models.GetLibraryItemsResponse, - | models.GetLibraryItemsLibraryResponseBody + operations.GetLibraryItemsResponse, + | errors.GetLibraryItemsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -71,7 +72,7 @@ export async function libraryGetLibraryItems( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetLibraryItemsRequest$outboundSchema.parse(value$), + (value$) => operations.GetLibraryItemsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -148,8 +149,8 @@ export async function libraryGetLibraryItems( }; const [result$] = await m$.match< - models.GetLibraryItemsResponse, - | models.GetLibraryItemsLibraryResponseBody + operations.GetLibraryItemsResponse, + | errors.GetLibraryItemsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -158,9 +159,9 @@ export async function libraryGetLibraryItems( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetLibraryItemsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetLibraryItemsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetLibraryItemsLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetLibraryItemsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetMetaDataByRatingKey.ts b/src/funcs/libraryGetMetaDataByRatingKey.ts index 93c509e6..7bb09ba3 100644 --- a/src/funcs/libraryGetMetaDataByRatingKey.ts +++ b/src/funcs/libraryGetMetaDataByRatingKey.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Metadata by RatingKey @@ -34,8 +35,8 @@ export async function libraryGetMetaDataByRatingKey( options?: RequestOptions ): Promise< Result< - models.GetMetaDataByRatingKeyResponse, - | models.GetMetaDataByRatingKeyLibraryResponseBody + operations.GetMetaDataByRatingKeyResponse, + | errors.GetMetaDataByRatingKeyResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,13 +46,13 @@ export async function libraryGetMetaDataByRatingKey( | ConnectionError > > { - const input$: models.GetMetaDataByRatingKeyRequest = { + const input$: operations.GetMetaDataByRatingKeyRequest = { ratingKey: ratingKey, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetMetaDataByRatingKeyRequest$outboundSchema.parse(value$), + (value$) => operations.GetMetaDataByRatingKeyRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function libraryGetMetaDataByRatingKey( }; const [result$] = await m$.match< - models.GetMetaDataByRatingKeyResponse, - | models.GetMetaDataByRatingKeyLibraryResponseBody + operations.GetMetaDataByRatingKeyResponse, + | errors.GetMetaDataByRatingKeyResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function libraryGetMetaDataByRatingKey( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetMetaDataByRatingKeyResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetMetaDataByRatingKeyResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetMetaDataByRatingKeyLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetMetaDataByRatingKeyResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetMetadataChildren.ts b/src/funcs/libraryGetMetadataChildren.ts index 0587bdcf..1acdbae6 100644 --- a/src/funcs/libraryGetMetadataChildren.ts +++ b/src/funcs/libraryGetMetadataChildren.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Items Children @@ -38,8 +39,8 @@ export async function libraryGetMetadataChildren( options?: RequestOptions ): Promise< Result< - models.GetMetadataChildrenResponse, - | models.GetMetadataChildrenLibraryResponseBody + operations.GetMetadataChildrenResponse, + | errors.GetMetadataChildrenResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -49,14 +50,14 @@ export async function libraryGetMetadataChildren( | ConnectionError > > { - const input$: models.GetMetadataChildrenRequest = { + const input$: operations.GetMetadataChildrenRequest = { ratingKey: ratingKey, includeElements: includeElements, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetMetadataChildrenRequest$outboundSchema.parse(value$), + (value$) => operations.GetMetadataChildrenRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -128,8 +129,8 @@ export async function libraryGetMetadataChildren( }; const [result$] = await m$.match< - models.GetMetadataChildrenResponse, - | models.GetMetadataChildrenLibraryResponseBody + operations.GetMetadataChildrenResponse, + | errors.GetMetadataChildrenResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -138,9 +139,9 @@ export async function libraryGetMetadataChildren( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetMetadataChildrenResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetMetadataChildrenResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetMetadataChildrenLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetMetadataChildrenResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetOnDeck.ts b/src/funcs/libraryGetOnDeck.ts index d09e87db..959bd764 100644 --- a/src/funcs/libraryGetOnDeck.ts +++ b/src/funcs/libraryGetOnDeck.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get On Deck @@ -31,8 +32,8 @@ export async function libraryGetOnDeck( options?: RequestOptions ): Promise< Result< - models.GetOnDeckResponse, - | models.GetOnDeckLibraryResponseBody + operations.GetOnDeckResponse, + | errors.GetOnDeckResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -92,8 +93,8 @@ export async function libraryGetOnDeck( }; const [result$] = await m$.match< - models.GetOnDeckResponse, - | models.GetOnDeckLibraryResponseBody + operations.GetOnDeckResponse, + | errors.GetOnDeckResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -102,9 +103,9 @@ export async function libraryGetOnDeck( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetOnDeckResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetOnDeckResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetOnDeckLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetOnDeckResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetRecentlyAdded.ts b/src/funcs/libraryGetRecentlyAdded.ts index 141ad44b..19ec6e39 100644 --- a/src/funcs/libraryGetRecentlyAdded.ts +++ b/src/funcs/libraryGetRecentlyAdded.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Recently Added @@ -35,8 +36,8 @@ export async function libraryGetRecentlyAdded( options?: RequestOptions ): Promise< Result< - models.GetRecentlyAddedResponse, - | models.GetRecentlyAddedLibraryResponseBody + operations.GetRecentlyAddedResponse, + | errors.GetRecentlyAddedResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,14 +47,14 @@ export async function libraryGetRecentlyAdded( | ConnectionError > > { - const input$: models.GetRecentlyAddedRequest = { + const input$: operations.GetRecentlyAddedRequest = { xPlexContainerStart: xPlexContainerStart, xPlexContainerSize: xPlexContainerSize, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetRecentlyAddedRequest$outboundSchema.parse(value$), + (value$) => operations.GetRecentlyAddedRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -119,8 +120,8 @@ export async function libraryGetRecentlyAdded( }; const [result$] = await m$.match< - models.GetRecentlyAddedResponse, - | models.GetRecentlyAddedLibraryResponseBody + operations.GetRecentlyAddedResponse, + | errors.GetRecentlyAddedResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,9 +130,9 @@ export async function libraryGetRecentlyAdded( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetRecentlyAddedResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetRecentlyAddedResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetRecentlyAddedLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetRecentlyAddedResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetRefreshLibraryMetadata.ts b/src/funcs/libraryGetRefreshLibraryMetadata.ts index 0b723765..f9c4b33b 100644 --- a/src/funcs/libraryGetRefreshLibraryMetadata.ts +++ b/src/funcs/libraryGetRefreshLibraryMetadata.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Refresh Metadata Of The Library @@ -34,12 +35,12 @@ import { Result } from "../types/fp.js"; export async function libraryGetRefreshLibraryMetadata( client$: PlexAPICore, sectionKey: number, - force?: models.Force | undefined, + force?: operations.Force | undefined, options?: RequestOptions ): Promise< Result< - models.GetRefreshLibraryMetadataResponse, - | models.GetRefreshLibraryMetadataResponseBody + operations.GetRefreshLibraryMetadataResponse, + | errors.GetRefreshLibraryMetadataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -49,14 +50,14 @@ export async function libraryGetRefreshLibraryMetadata( | ConnectionError > > { - const input$: models.GetRefreshLibraryMetadataRequest = { + const input$: operations.GetRefreshLibraryMetadataRequest = { sectionKey: sectionKey, force: force, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetRefreshLibraryMetadataRequest$outboundSchema.parse(value$), + (value$) => operations.GetRefreshLibraryMetadataRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -128,8 +129,8 @@ export async function libraryGetRefreshLibraryMetadata( }; const [result$] = await m$.match< - models.GetRefreshLibraryMetadataResponse, - | models.GetRefreshLibraryMetadataResponseBody + operations.GetRefreshLibraryMetadataResponse, + | errors.GetRefreshLibraryMetadataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -138,9 +139,9 @@ export async function libraryGetRefreshLibraryMetadata( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.GetRefreshLibraryMetadataResponse$inboundSchema), + m$.nil(200, operations.GetRefreshLibraryMetadataResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetRefreshLibraryMetadataResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetRefreshLibraryMetadataResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetSearchLibrary.ts b/src/funcs/libraryGetSearchLibrary.ts index 2b843147..e1ea0f0c 100644 --- a/src/funcs/libraryGetSearchLibrary.ts +++ b/src/funcs/libraryGetSearchLibrary.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Search Library @@ -51,12 +52,12 @@ import { Result } from "../types/fp.js"; export async function libraryGetSearchLibrary( client$: PlexAPICore, sectionKey: number, - type: models.QueryParamType, + type: operations.QueryParamType, options?: RequestOptions ): Promise< Result< - models.GetSearchLibraryResponse, - | models.GetSearchLibraryLibraryResponseBody + operations.GetSearchLibraryResponse, + | errors.GetSearchLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -66,14 +67,14 @@ export async function libraryGetSearchLibrary( | ConnectionError > > { - const input$: models.GetSearchLibraryRequest = { + const input$: operations.GetSearchLibraryRequest = { sectionKey: sectionKey, type: type, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetSearchLibraryRequest$outboundSchema.parse(value$), + (value$) => operations.GetSearchLibraryRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -145,8 +146,8 @@ export async function libraryGetSearchLibrary( }; const [result$] = await m$.match< - models.GetSearchLibraryResponse, - | models.GetSearchLibraryLibraryResponseBody + operations.GetSearchLibraryResponse, + | errors.GetSearchLibraryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -155,9 +156,9 @@ export async function libraryGetSearchLibrary( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetSearchLibraryResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetSearchLibraryResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetSearchLibraryLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetSearchLibraryResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/libraryGetTopWatchedContent.ts b/src/funcs/libraryGetTopWatchedContent.ts index e9c833e4..d52c9eb7 100644 --- a/src/funcs/libraryGetTopWatchedContent.ts +++ b/src/funcs/libraryGetTopWatchedContent.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Top Watched Content @@ -30,13 +31,13 @@ import { Result } from "../types/fp.js"; */ export async function libraryGetTopWatchedContent( client$: PlexAPICore, - type: models.GetTopWatchedContentQueryParamType, + type: operations.GetTopWatchedContentQueryParamType, includeGuids?: number | undefined, options?: RequestOptions ): Promise< Result< - models.GetTopWatchedContentResponse, - | models.GetTopWatchedContentLibraryResponseBody + operations.GetTopWatchedContentResponse, + | errors.GetTopWatchedContentResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,14 +47,14 @@ export async function libraryGetTopWatchedContent( | ConnectionError > > { - const input$: models.GetTopWatchedContentRequest = { + const input$: operations.GetTopWatchedContentRequest = { type: type, includeGuids: includeGuids, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetTopWatchedContentRequest$outboundSchema.parse(value$), + (value$) => operations.GetTopWatchedContentRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -119,8 +120,8 @@ export async function libraryGetTopWatchedContent( }; const [result$] = await m$.match< - models.GetTopWatchedContentResponse, - | models.GetTopWatchedContentLibraryResponseBody + operations.GetTopWatchedContentResponse, + | errors.GetTopWatchedContentResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,9 +130,9 @@ export async function libraryGetTopWatchedContent( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetTopWatchedContentResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetTopWatchedContentResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetTopWatchedContentLibraryResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetTopWatchedContentResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/logEnablePaperTrail.ts b/src/funcs/logEnablePaperTrail.ts index 161164b8..ab4177de 100644 --- a/src/funcs/logEnablePaperTrail.ts +++ b/src/funcs/logEnablePaperTrail.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Enabling Papertrail @@ -31,8 +32,8 @@ export async function logEnablePaperTrail( options?: RequestOptions ): Promise< Result< - models.EnablePaperTrailResponse, - | models.EnablePaperTrailResponseBody + operations.EnablePaperTrailResponse, + | errors.EnablePaperTrailResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -92,8 +93,8 @@ export async function logEnablePaperTrail( }; const [result$] = await m$.match< - models.EnablePaperTrailResponse, - | models.EnablePaperTrailResponseBody + operations.EnablePaperTrailResponse, + | errors.EnablePaperTrailResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -102,9 +103,9 @@ export async function logEnablePaperTrail( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.EnablePaperTrailResponse$inboundSchema), + m$.nil(200, operations.EnablePaperTrailResponse$inboundSchema), m$.fail([400, 403, "4XX", "5XX"]), - m$.jsonErr(401, models.EnablePaperTrailResponseBody$inboundSchema) + m$.jsonErr(401, errors.EnablePaperTrailResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/logLogLine.ts b/src/funcs/logLogLine.ts index 57ededa0..e618c31f 100644 --- a/src/funcs/logLogLine.ts +++ b/src/funcs/logLogLine.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Logging a single line message. @@ -30,14 +31,14 @@ import { Result } from "../types/fp.js"; */ export async function logLogLine( client$: PlexAPICore, - level: models.Level, + level: operations.Level, message: string, source: string, options?: RequestOptions ): Promise< Result< - models.LogLineResponse, - | models.LogLineResponseBody + operations.LogLineResponse, + | errors.LogLineResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -47,7 +48,7 @@ export async function logLogLine( | ConnectionError > > { - const input$: models.LogLineRequest = { + const input$: operations.LogLineRequest = { level: level, message: message, source: source, @@ -55,7 +56,7 @@ export async function logLogLine( const parsed$ = schemas$.safeParse( input$, - (value$) => models.LogLineRequest$outboundSchema.parse(value$), + (value$) => operations.LogLineRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -122,8 +123,8 @@ export async function logLogLine( }; const [result$] = await m$.match< - models.LogLineResponse, - | models.LogLineResponseBody + operations.LogLineResponse, + | errors.LogLineResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -132,9 +133,9 @@ export async function logLogLine( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.LogLineResponse$inboundSchema), + m$.nil(200, operations.LogLineResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.LogLineResponseBody$inboundSchema) + m$.jsonErr(401, errors.LogLineResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/logLogMultiLine.ts b/src/funcs/logLogMultiLine.ts index 755c903c..f6c5b304 100644 --- a/src/funcs/logLogMultiLine.ts +++ b/src/funcs/logLogMultiLine.ts @@ -14,11 +14,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; import * as z from "zod"; /** @@ -54,8 +55,8 @@ export async function logLogMultiLine( options?: RequestOptions ): Promise< Result< - models.LogMultiLineResponse, - | models.LogMultiLineResponseBody + operations.LogMultiLineResponse, + | errors.LogMultiLineResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,8 +131,8 @@ export async function logLogMultiLine( }; const [result$] = await m$.match< - models.LogMultiLineResponse, - | models.LogMultiLineResponseBody + operations.LogMultiLineResponse, + | errors.LogMultiLineResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -140,9 +141,9 @@ export async function logLogMultiLine( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.LogMultiLineResponse$inboundSchema), + m$.nil(200, operations.LogMultiLineResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.LogMultiLineResponseBody$inboundSchema) + m$.jsonErr(401, errors.LogMultiLineResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaGetBannerImage.ts b/src/funcs/mediaGetBannerImage.ts index f24f3825..1fcd4e30 100644 --- a/src/funcs/mediaGetBannerImage.ts +++ b/src/funcs/mediaGetBannerImage.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Banner Image @@ -32,12 +33,12 @@ import { Result } from "../types/fp.js"; */ export async function mediaGetBannerImage( client$: PlexAPICore, - request: models.GetBannerImageRequest, + request: operations.GetBannerImageRequest, options?: RequestOptions ): Promise< Result< - models.GetBannerImageResponse, - | models.GetBannerImageResponseBody + operations.GetBannerImageResponse, + | errors.GetBannerImageResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -51,7 +52,7 @@ export async function mediaGetBannerImage( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetBannerImageRequest$outboundSchema.parse(value$), + (value$) => operations.GetBannerImageRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -127,8 +128,8 @@ export async function mediaGetBannerImage( }; const [result$] = await m$.match< - models.GetBannerImageResponse, - | models.GetBannerImageResponseBody + operations.GetBannerImageResponse, + | errors.GetBannerImageResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -137,13 +138,13 @@ export async function mediaGetBannerImage( | RequestTimeoutError | ConnectionError >( - m$.stream(200, models.GetBannerImageResponse$inboundSchema, { + m$.stream(200, operations.GetBannerImageResponse$inboundSchema, { ctype: "image/jpeg", hdrs: true, key: "response-stream", }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetBannerImageResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetBannerImageResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaGetThumbImage.ts b/src/funcs/mediaGetThumbImage.ts index 08f7d241..d80dec52 100644 --- a/src/funcs/mediaGetThumbImage.ts +++ b/src/funcs/mediaGetThumbImage.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Thumb Image @@ -32,12 +33,12 @@ import { Result } from "../types/fp.js"; */ export async function mediaGetThumbImage( client$: PlexAPICore, - request: models.GetThumbImageRequest, + request: operations.GetThumbImageRequest, options?: RequestOptions ): Promise< Result< - models.GetThumbImageResponse, - | models.GetThumbImageResponseBody + operations.GetThumbImageResponse, + | errors.GetThumbImageResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -51,7 +52,7 @@ export async function mediaGetThumbImage( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetThumbImageRequest$outboundSchema.parse(value$), + (value$) => operations.GetThumbImageRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -127,8 +128,8 @@ export async function mediaGetThumbImage( }; const [result$] = await m$.match< - models.GetThumbImageResponse, - | models.GetThumbImageResponseBody + operations.GetThumbImageResponse, + | errors.GetThumbImageResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -137,13 +138,13 @@ export async function mediaGetThumbImage( | RequestTimeoutError | ConnectionError >( - m$.stream(200, models.GetThumbImageResponse$inboundSchema, { + m$.stream(200, operations.GetThumbImageResponse$inboundSchema, { ctype: "image/jpeg", hdrs: true, key: "response-stream", }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetThumbImageResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetThumbImageResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaMarkPlayed.ts b/src/funcs/mediaMarkPlayed.ts index 1f43eb57..08b450e9 100644 --- a/src/funcs/mediaMarkPlayed.ts +++ b/src/funcs/mediaMarkPlayed.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Mark Media Played @@ -33,8 +34,8 @@ export async function mediaMarkPlayed( options?: RequestOptions ): Promise< Result< - models.MarkPlayedResponse, - | models.MarkPlayedResponseBody + operations.MarkPlayedResponse, + | errors.MarkPlayedResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function mediaMarkPlayed( | ConnectionError > > { - const input$: models.MarkPlayedRequest = { + const input$: operations.MarkPlayedRequest = { key: key, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.MarkPlayedRequest$outboundSchema.parse(value$), + (value$) => operations.MarkPlayedRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function mediaMarkPlayed( }; const [result$] = await m$.match< - models.MarkPlayedResponse, - | models.MarkPlayedResponseBody + operations.MarkPlayedResponse, + | errors.MarkPlayedResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function mediaMarkPlayed( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.MarkPlayedResponse$inboundSchema), + m$.nil(200, operations.MarkPlayedResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.MarkPlayedResponseBody$inboundSchema) + m$.jsonErr(401, errors.MarkPlayedResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaMarkUnplayed.ts b/src/funcs/mediaMarkUnplayed.ts index 6d0006e4..2b0681df 100644 --- a/src/funcs/mediaMarkUnplayed.ts +++ b/src/funcs/mediaMarkUnplayed.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Mark Media Unplayed @@ -33,8 +34,8 @@ export async function mediaMarkUnplayed( options?: RequestOptions ): Promise< Result< - models.MarkUnplayedResponse, - | models.MarkUnplayedResponseBody + operations.MarkUnplayedResponse, + | errors.MarkUnplayedResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function mediaMarkUnplayed( | ConnectionError > > { - const input$: models.MarkUnplayedRequest = { + const input$: operations.MarkUnplayedRequest = { key: key, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.MarkUnplayedRequest$outboundSchema.parse(value$), + (value$) => operations.MarkUnplayedRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function mediaMarkUnplayed( }; const [result$] = await m$.match< - models.MarkUnplayedResponse, - | models.MarkUnplayedResponseBody + operations.MarkUnplayedResponse, + | errors.MarkUnplayedResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function mediaMarkUnplayed( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.MarkUnplayedResponse$inboundSchema), + m$.nil(200, operations.MarkUnplayedResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.MarkUnplayedResponseBody$inboundSchema) + m$.jsonErr(401, errors.MarkUnplayedResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/mediaUpdatePlayProgress.ts b/src/funcs/mediaUpdatePlayProgress.ts index cc2f05f8..a4be1bbb 100644 --- a/src/funcs/mediaUpdatePlayProgress.ts +++ b/src/funcs/mediaUpdatePlayProgress.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Update Media Play Progress @@ -36,8 +37,8 @@ export async function mediaUpdatePlayProgress( options?: RequestOptions ): Promise< Result< - models.UpdatePlayProgressResponse, - | models.UpdatePlayProgressResponseBody + operations.UpdatePlayProgressResponse, + | errors.UpdatePlayProgressResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -47,7 +48,7 @@ export async function mediaUpdatePlayProgress( | ConnectionError > > { - const input$: models.UpdatePlayProgressRequest = { + const input$: operations.UpdatePlayProgressRequest = { key: key, time: time, state: state, @@ -55,7 +56,7 @@ export async function mediaUpdatePlayProgress( const parsed$ = schemas$.safeParse( input$, - (value$) => models.UpdatePlayProgressRequest$outboundSchema.parse(value$), + (value$) => operations.UpdatePlayProgressRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -122,8 +123,8 @@ export async function mediaUpdatePlayProgress( }; const [result$] = await m$.match< - models.UpdatePlayProgressResponse, - | models.UpdatePlayProgressResponseBody + operations.UpdatePlayProgressResponse, + | errors.UpdatePlayProgressResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -132,9 +133,9 @@ export async function mediaUpdatePlayProgress( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.UpdatePlayProgressResponse$inboundSchema), + m$.nil(200, operations.UpdatePlayProgressResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.UpdatePlayProgressResponseBody$inboundSchema) + m$.jsonErr(401, errors.UpdatePlayProgressResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsAddPlaylistContents.ts b/src/funcs/playlistsAddPlaylistContents.ts index afbc6337..77a611f9 100644 --- a/src/funcs/playlistsAddPlaylistContents.ts +++ b/src/funcs/playlistsAddPlaylistContents.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Adding to a Playlist @@ -40,8 +41,8 @@ export async function playlistsAddPlaylistContents( options?: RequestOptions ): Promise< Result< - models.AddPlaylistContentsResponse, - | models.AddPlaylistContentsPlaylistsResponseBody + operations.AddPlaylistContentsResponse, + | errors.AddPlaylistContentsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -51,7 +52,7 @@ export async function playlistsAddPlaylistContents( | ConnectionError > > { - const input$: models.AddPlaylistContentsRequest = { + const input$: operations.AddPlaylistContentsRequest = { playlistID: playlistID, uri: uri, playQueueID: playQueueID, @@ -59,7 +60,7 @@ export async function playlistsAddPlaylistContents( const parsed$ = schemas$.safeParse( input$, - (value$) => models.AddPlaylistContentsRequest$outboundSchema.parse(value$), + (value$) => operations.AddPlaylistContentsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -132,8 +133,8 @@ export async function playlistsAddPlaylistContents( }; const [result$] = await m$.match< - models.AddPlaylistContentsResponse, - | models.AddPlaylistContentsPlaylistsResponseBody + operations.AddPlaylistContentsResponse, + | errors.AddPlaylistContentsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -142,9 +143,9 @@ export async function playlistsAddPlaylistContents( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.AddPlaylistContentsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.AddPlaylistContentsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.AddPlaylistContentsPlaylistsResponseBody$inboundSchema) + m$.jsonErr(401, errors.AddPlaylistContentsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsClearPlaylistContents.ts b/src/funcs/playlistsClearPlaylistContents.ts index 82c1bed3..1ea1c889 100644 --- a/src/funcs/playlistsClearPlaylistContents.ts +++ b/src/funcs/playlistsClearPlaylistContents.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Delete Playlist Contents @@ -34,8 +35,8 @@ export async function playlistsClearPlaylistContents( options?: RequestOptions ): Promise< Result< - models.ClearPlaylistContentsResponse, - | models.ClearPlaylistContentsResponseBody + operations.ClearPlaylistContentsResponse, + | errors.ClearPlaylistContentsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,13 +46,13 @@ export async function playlistsClearPlaylistContents( | ConnectionError > > { - const input$: models.ClearPlaylistContentsRequest = { + const input$: operations.ClearPlaylistContentsRequest = { playlistID: playlistID, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.ClearPlaylistContentsRequest$outboundSchema.parse(value$), + (value$) => operations.ClearPlaylistContentsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function playlistsClearPlaylistContents( }; const [result$] = await m$.match< - models.ClearPlaylistContentsResponse, - | models.ClearPlaylistContentsResponseBody + operations.ClearPlaylistContentsResponse, + | errors.ClearPlaylistContentsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function playlistsClearPlaylistContents( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.ClearPlaylistContentsResponse$inboundSchema), + m$.nil(200, operations.ClearPlaylistContentsResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.ClearPlaylistContentsResponseBody$inboundSchema) + m$.jsonErr(401, errors.ClearPlaylistContentsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsCreatePlaylist.ts b/src/funcs/playlistsCreatePlaylist.ts index 25b2d974..bfc65008 100644 --- a/src/funcs/playlistsCreatePlaylist.ts +++ b/src/funcs/playlistsCreatePlaylist.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Create a Playlist @@ -32,12 +33,12 @@ import { Result } from "../types/fp.js"; */ export async function playlistsCreatePlaylist( client$: PlexAPICore, - request: models.CreatePlaylistRequest, + request: operations.CreatePlaylistRequest, options?: RequestOptions ): Promise< Result< - models.CreatePlaylistResponse, - | models.CreatePlaylistPlaylistsResponseBody + operations.CreatePlaylistResponse, + | errors.CreatePlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -51,7 +52,7 @@ export async function playlistsCreatePlaylist( const parsed$ = schemas$.safeParse( input$, - (value$) => models.CreatePlaylistRequest$outboundSchema.parse(value$), + (value$) => operations.CreatePlaylistRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -120,8 +121,8 @@ export async function playlistsCreatePlaylist( }; const [result$] = await m$.match< - models.CreatePlaylistResponse, - | models.CreatePlaylistPlaylistsResponseBody + operations.CreatePlaylistResponse, + | errors.CreatePlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,9 +131,9 @@ export async function playlistsCreatePlaylist( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.CreatePlaylistResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.CreatePlaylistResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.CreatePlaylistPlaylistsResponseBody$inboundSchema) + m$.jsonErr(401, errors.CreatePlaylistResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsDeletePlaylist.ts b/src/funcs/playlistsDeletePlaylist.ts index a3019c7d..3946d752 100644 --- a/src/funcs/playlistsDeletePlaylist.ts +++ b/src/funcs/playlistsDeletePlaylist.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Deletes a Playlist @@ -34,8 +35,8 @@ export async function playlistsDeletePlaylist( options?: RequestOptions ): Promise< Result< - models.DeletePlaylistResponse, - | models.DeletePlaylistResponseBody + operations.DeletePlaylistResponse, + | errors.DeletePlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,13 +46,13 @@ export async function playlistsDeletePlaylist( | ConnectionError > > { - const input$: models.DeletePlaylistRequest = { + const input$: operations.DeletePlaylistRequest = { playlistID: playlistID, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.DeletePlaylistRequest$outboundSchema.parse(value$), + (value$) => operations.DeletePlaylistRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function playlistsDeletePlaylist( }; const [result$] = await m$.match< - models.DeletePlaylistResponse, - | models.DeletePlaylistResponseBody + operations.DeletePlaylistResponse, + | errors.DeletePlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function playlistsDeletePlaylist( | RequestTimeoutError | ConnectionError >( - m$.nil(204, models.DeletePlaylistResponse$inboundSchema), + m$.nil(204, operations.DeletePlaylistResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.DeletePlaylistResponseBody$inboundSchema) + m$.jsonErr(401, errors.DeletePlaylistResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsGetPlaylist.ts b/src/funcs/playlistsGetPlaylist.ts index b3d814ec..68151a74 100644 --- a/src/funcs/playlistsGetPlaylist.ts +++ b/src/funcs/playlistsGetPlaylist.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Retrieve Playlist @@ -35,8 +36,8 @@ export async function playlistsGetPlaylist( options?: RequestOptions ): Promise< Result< - models.GetPlaylistResponse, - | models.GetPlaylistPlaylistsResponseBody + operations.GetPlaylistResponse, + | errors.GetPlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,13 +47,13 @@ export async function playlistsGetPlaylist( | ConnectionError > > { - const input$: models.GetPlaylistRequest = { + const input$: operations.GetPlaylistRequest = { playlistID: playlistID, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetPlaylistRequest$outboundSchema.parse(value$), + (value$) => operations.GetPlaylistRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -119,8 +120,8 @@ export async function playlistsGetPlaylist( }; const [result$] = await m$.match< - models.GetPlaylistResponse, - | models.GetPlaylistPlaylistsResponseBody + operations.GetPlaylistResponse, + | errors.GetPlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,9 +130,9 @@ export async function playlistsGetPlaylist( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetPlaylistResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetPlaylistResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetPlaylistPlaylistsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetPlaylistResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsGetPlaylistContents.ts b/src/funcs/playlistsGetPlaylistContents.ts index c23588b9..665d195a 100644 --- a/src/funcs/playlistsGetPlaylistContents.ts +++ b/src/funcs/playlistsGetPlaylistContents.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Retrieve Playlist Contents @@ -37,12 +38,12 @@ import { Result } from "../types/fp.js"; export async function playlistsGetPlaylistContents( client$: PlexAPICore, playlistID: number, - type: models.GetPlaylistContentsQueryParamType, + type: operations.GetPlaylistContentsQueryParamType, options?: RequestOptions ): Promise< Result< - models.GetPlaylistContentsResponse, - | models.GetPlaylistContentsPlaylistsResponseBody + operations.GetPlaylistContentsResponse, + | errors.GetPlaylistContentsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -52,14 +53,14 @@ export async function playlistsGetPlaylistContents( | ConnectionError > > { - const input$: models.GetPlaylistContentsRequest = { + const input$: operations.GetPlaylistContentsRequest = { playlistID: playlistID, type: type, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetPlaylistContentsRequest$outboundSchema.parse(value$), + (value$) => operations.GetPlaylistContentsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -131,8 +132,8 @@ export async function playlistsGetPlaylistContents( }; const [result$] = await m$.match< - models.GetPlaylistContentsResponse, - | models.GetPlaylistContentsPlaylistsResponseBody + operations.GetPlaylistContentsResponse, + | errors.GetPlaylistContentsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -141,9 +142,9 @@ export async function playlistsGetPlaylistContents( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetPlaylistContentsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetPlaylistContentsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetPlaylistContentsPlaylistsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetPlaylistContentsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsGetPlaylists.ts b/src/funcs/playlistsGetPlaylists.ts index d0deb586..90d7b753 100644 --- a/src/funcs/playlistsGetPlaylists.ts +++ b/src/funcs/playlistsGetPlaylists.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get All Playlists @@ -29,13 +30,13 @@ import { Result } from "../types/fp.js"; */ export async function playlistsGetPlaylists( client$: PlexAPICore, - playlistType?: models.PlaylistType | undefined, - smart?: models.QueryParamSmart | undefined, + playlistType?: operations.PlaylistType | undefined, + smart?: operations.QueryParamSmart | undefined, options?: RequestOptions ): Promise< Result< - models.GetPlaylistsResponse, - | models.GetPlaylistsPlaylistsResponseBody + operations.GetPlaylistsResponse, + | errors.GetPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -45,14 +46,14 @@ export async function playlistsGetPlaylists( | ConnectionError > > { - const input$: models.GetPlaylistsRequest = { + const input$: operations.GetPlaylistsRequest = { playlistType: playlistType, smart: smart, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetPlaylistsRequest$outboundSchema.parse(value$), + (value$) => operations.GetPlaylistsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -118,8 +119,8 @@ export async function playlistsGetPlaylists( }; const [result$] = await m$.match< - models.GetPlaylistsResponse, - | models.GetPlaylistsPlaylistsResponseBody + operations.GetPlaylistsResponse, + | errors.GetPlaylistsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,9 +129,9 @@ export async function playlistsGetPlaylists( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetPlaylistsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetPlaylistsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetPlaylistsPlaylistsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetPlaylistsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsUpdatePlaylist.ts b/src/funcs/playlistsUpdatePlaylist.ts index f71d9ceb..61dda5f4 100644 --- a/src/funcs/playlistsUpdatePlaylist.ts +++ b/src/funcs/playlistsUpdatePlaylist.ts @@ -18,11 +18,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Update a Playlist @@ -39,8 +40,8 @@ export async function playlistsUpdatePlaylist( options?: RequestOptions ): Promise< Result< - models.UpdatePlaylistResponse, - | models.UpdatePlaylistResponseBody + operations.UpdatePlaylistResponse, + | errors.UpdatePlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -50,7 +51,7 @@ export async function playlistsUpdatePlaylist( | ConnectionError > > { - const input$: models.UpdatePlaylistRequest = { + const input$: operations.UpdatePlaylistRequest = { playlistID: playlistID, title: title, summary: summary, @@ -58,7 +59,7 @@ export async function playlistsUpdatePlaylist( const parsed$ = schemas$.safeParse( input$, - (value$) => models.UpdatePlaylistRequest$outboundSchema.parse(value$), + (value$) => operations.UpdatePlaylistRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -131,8 +132,8 @@ export async function playlistsUpdatePlaylist( }; const [result$] = await m$.match< - models.UpdatePlaylistResponse, - | models.UpdatePlaylistResponseBody + operations.UpdatePlaylistResponse, + | errors.UpdatePlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -141,9 +142,9 @@ export async function playlistsUpdatePlaylist( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.UpdatePlaylistResponse$inboundSchema), + m$.nil(200, operations.UpdatePlaylistResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.UpdatePlaylistResponseBody$inboundSchema) + m$.jsonErr(401, errors.UpdatePlaylistResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/playlistsUploadPlaylist.ts b/src/funcs/playlistsUploadPlaylist.ts index 38cbf455..611a0c5c 100644 --- a/src/funcs/playlistsUploadPlaylist.ts +++ b/src/funcs/playlistsUploadPlaylist.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Upload Playlist @@ -31,12 +32,12 @@ import { Result } from "../types/fp.js"; export async function playlistsUploadPlaylist( client$: PlexAPICore, path: string, - force: models.QueryParamForce, + force: operations.QueryParamForce, options?: RequestOptions ): Promise< Result< - models.UploadPlaylistResponse, - | models.UploadPlaylistResponseBody + operations.UploadPlaylistResponse, + | errors.UploadPlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,14 +47,14 @@ export async function playlistsUploadPlaylist( | ConnectionError > > { - const input$: models.UploadPlaylistRequest = { + const input$: operations.UploadPlaylistRequest = { path: path, force: force, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.UploadPlaylistRequest$outboundSchema.parse(value$), + (value$) => operations.UploadPlaylistRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -119,8 +120,8 @@ export async function playlistsUploadPlaylist( }; const [result$] = await m$.match< - models.UploadPlaylistResponse, - | models.UploadPlaylistResponseBody + operations.UploadPlaylistResponse, + | errors.UploadPlaylistResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,9 +130,9 @@ export async function playlistsUploadPlaylist( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.UploadPlaylistResponse$inboundSchema), + m$.nil(200, operations.UploadPlaylistResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.UploadPlaylistResponseBody$inboundSchema) + m$.jsonErr(401, errors.UploadPlaylistResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetCompanionsData.ts b/src/funcs/plexGetCompanionsData.ts index 43e5bc42..ee4090f0 100644 --- a/src/funcs/plexGetCompanionsData.ts +++ b/src/funcs/plexGetCompanionsData.ts @@ -7,18 +7,19 @@ import * as m$ from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { GetCompanionsDataOpServerList } from "../models/getcompanionsdataop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetCompanionsDataServerList } from "../sdk/models/operations/getcompanionsdata.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Companions Data @@ -31,8 +32,8 @@ export async function plexGetCompanionsData( options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetCompanionsDataResponse, - | models.GetCompanionsDataResponseBody + operations.GetCompanionsDataResponse, + | errors.GetCompanionsDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,7 +45,7 @@ export async function plexGetCompanionsData( > { const baseURL$ = options?.serverURL || - pathToFunc(GetCompanionsDataOpServerList[0], { charEncoding: "percent" })(); + pathToFunc(GetCompanionsDataServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/companions")(); @@ -97,8 +98,8 @@ export async function plexGetCompanionsData( }; const [result$] = await m$.match< - models.GetCompanionsDataResponse, - | models.GetCompanionsDataResponseBody + operations.GetCompanionsDataResponse, + | errors.GetCompanionsDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -107,9 +108,9 @@ export async function plexGetCompanionsData( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetCompanionsDataResponse$inboundSchema, { key: "responseBodies" }), + m$.json(200, operations.GetCompanionsDataResponse$inboundSchema, { key: "responseBodies" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetCompanionsDataResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetCompanionsDataResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetGeoData.ts b/src/funcs/plexGetGeoData.ts index 62464e98..fd31bcdb 100644 --- a/src/funcs/plexGetGeoData.ts +++ b/src/funcs/plexGetGeoData.ts @@ -6,18 +6,19 @@ import { PlexAPICore } from "../core.js"; import * as m$ from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { pathToFunc } from "../lib/url.js"; -import { GetGeoDataOpServerList } from "../models/getgeodataop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetGeoDataServerList } from "../sdk/models/operations/getgeodata.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Geo Data @@ -30,8 +31,8 @@ export async function plexGetGeoData( options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetGeoDataResponse, - | models.GetGeoDataResponseBody + operations.GetGeoDataResponse, + | errors.GetGeoDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -42,7 +43,7 @@ export async function plexGetGeoData( > > { const baseURL$ = - options?.serverURL || pathToFunc(GetGeoDataOpServerList[0], { charEncoding: "percent" })(); + options?.serverURL || pathToFunc(GetGeoDataServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/geoip")(); @@ -87,8 +88,8 @@ export async function plexGetGeoData( }; const [result$] = await m$.match< - models.GetGeoDataResponse, - | models.GetGeoDataResponseBody + operations.GetGeoDataResponse, + | errors.GetGeoDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -97,9 +98,9 @@ export async function plexGetGeoData( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetGeoDataResponse$inboundSchema, { key: "GeoData" }), + m$.json(200, operations.GetGeoDataResponse$inboundSchema, { key: "GeoData" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetGeoDataResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetGeoDataResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetHomeData.ts b/src/funcs/plexGetHomeData.ts index 232acc70..81617e11 100644 --- a/src/funcs/plexGetHomeData.ts +++ b/src/funcs/plexGetHomeData.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Plex Home Data @@ -30,8 +31,8 @@ export async function plexGetHomeData( options?: RequestOptions ): Promise< Result< - models.GetHomeDataResponse, - | models.GetHomeDataPlexResponseBody + operations.GetHomeDataResponse, + | errors.GetHomeDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function plexGetHomeData( }; const [result$] = await m$.match< - models.GetHomeDataResponse, - | models.GetHomeDataPlexResponseBody + operations.GetHomeDataResponse, + | errors.GetHomeDataResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function plexGetHomeData( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetHomeDataResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetHomeDataResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetHomeDataPlexResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetHomeDataResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetPin.ts b/src/funcs/plexGetPin.ts index 57973f07..fb1928b8 100644 --- a/src/funcs/plexGetPin.ts +++ b/src/funcs/plexGetPin.ts @@ -8,18 +8,19 @@ import * as m$ from "../lib/matchers.js"; import * as schemas$ from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { pathToFunc } from "../lib/url.js"; -import { GetPinOpServerList } from "../models/getpinop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetPinServerList } from "../sdk/models/operations/getpin.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get a Pin @@ -35,8 +36,8 @@ export async function plexGetPin( options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetPinResponse, - | models.GetPinResponseBody + operations.GetPinResponse, + | errors.GetPinResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,7 +47,7 @@ export async function plexGetPin( | ConnectionError > > { - const input$: models.GetPinRequest = { + const input$: operations.GetPinRequest = { strong: strong, xPlexClientIdentifier: xPlexClientIdentifier, xPlexProduct: xPlexProduct, @@ -54,7 +55,7 @@ export async function plexGetPin( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetPinRequest$outboundSchema.parse(value$), + (value$) => operations.GetPinRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -64,7 +65,7 @@ export async function plexGetPin( const body$ = null; const baseURL$ = - options?.serverURL || pathToFunc(GetPinOpServerList[0], { charEncoding: "percent" })(); + options?.serverURL || pathToFunc(GetPinServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/pins")(); @@ -118,8 +119,8 @@ export async function plexGetPin( }; const [result$] = await m$.match< - models.GetPinResponse, - | models.GetPinResponseBody + operations.GetPinResponse, + | errors.GetPinResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -128,8 +129,8 @@ export async function plexGetPin( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetPinResponse$inboundSchema, { key: "AuthPinContainer" }), - m$.jsonErr(400, models.GetPinResponseBody$inboundSchema), + m$.json(200, operations.GetPinResponse$inboundSchema, { key: "AuthPinContainer" }), + m$.jsonErr(400, errors.GetPinResponseBody$inboundSchema), m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { diff --git a/src/funcs/plexGetServerResources.ts b/src/funcs/plexGetServerResources.ts index bf5f57c3..741f718b 100644 --- a/src/funcs/plexGetServerResources.ts +++ b/src/funcs/plexGetServerResources.ts @@ -9,18 +9,19 @@ import * as schemas$ from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { GetServerResourcesOpServerList } from "../models/getserverresourcesop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetServerResourcesServerList } from "../sdk/models/operations/getserverresources.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Server Resources @@ -30,12 +31,12 @@ import { Result } from "../types/fp.js"; */ export async function plexGetServerResources( client$: PlexAPICore, - request: models.GetServerResourcesRequest, + request: operations.GetServerResourcesRequest, options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetServerResourcesResponse, - | models.GetServerResourcesResponseBody + operations.GetServerResourcesResponse, + | errors.GetServerResourcesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -49,7 +50,7 @@ export async function plexGetServerResources( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetServerResourcesRequest$outboundSchema.parse(value$), + (value$) => operations.GetServerResourcesRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -60,7 +61,7 @@ export async function plexGetServerResources( const baseURL$ = options?.serverURL || - pathToFunc(GetServerResourcesOpServerList[0], { charEncoding: "percent" })(); + pathToFunc(GetServerResourcesServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/resources")(); @@ -124,8 +125,8 @@ export async function plexGetServerResources( }; const [result$] = await m$.match< - models.GetServerResourcesResponse, - | models.GetServerResourcesResponseBody + operations.GetServerResourcesResponse, + | errors.GetServerResourcesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,9 +135,9 @@ export async function plexGetServerResources( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetServerResourcesResponse$inboundSchema, { key: "PlexDevices" }), + m$.json(200, operations.GetServerResourcesResponse$inboundSchema, { key: "PlexDevices" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetServerResourcesResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetServerResourcesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/plexGetTokenByPinId.ts b/src/funcs/plexGetTokenByPinId.ts index 0ff10d7b..a5fcee61 100644 --- a/src/funcs/plexGetTokenByPinId.ts +++ b/src/funcs/plexGetTokenByPinId.ts @@ -11,18 +11,19 @@ import * as m$ from "../lib/matchers.js"; import * as schemas$ from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { pathToFunc } from "../lib/url.js"; -import { GetTokenByPinIdOpServerList } from "../models/gettokenbypinidop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetTokenByPinIdServerList } from "../sdk/models/operations/gettokenbypinid.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Access Token by PinId @@ -37,9 +38,9 @@ export async function plexGetTokenByPinId( options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetTokenByPinIdResponse, - | models.GetTokenByPinIdResponseBody - | models.GetTokenByPinIdPlexResponseBody + operations.GetTokenByPinIdResponse, + | errors.GetTokenByPinIdResponseBody + | errors.GetTokenByPinIdPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -49,14 +50,14 @@ export async function plexGetTokenByPinId( | ConnectionError > > { - const input$: models.GetTokenByPinIdRequest = { + const input$: operations.GetTokenByPinIdRequest = { xPlexClientIdentifier: xPlexClientIdentifier, pinID: pinID, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetTokenByPinIdRequest$outboundSchema.parse(value$), + (value$) => operations.GetTokenByPinIdRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -67,7 +68,7 @@ export async function plexGetTokenByPinId( const baseURL$ = options?.serverURL || - pathToFunc(GetTokenByPinIdOpServerList[0], { charEncoding: "percent" })(); + pathToFunc(GetTokenByPinIdServerList[0], { charEncoding: "percent" })(); const pathParams$ = { pinID: encodeSimple$("pinID", payload$.pinID, { explode: false, charEncoding: "percent" }), @@ -123,9 +124,9 @@ export async function plexGetTokenByPinId( }; const [result$] = await m$.match< - models.GetTokenByPinIdResponse, - | models.GetTokenByPinIdResponseBody - | models.GetTokenByPinIdPlexResponseBody + operations.GetTokenByPinIdResponse, + | errors.GetTokenByPinIdResponseBody + | errors.GetTokenByPinIdPlexResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,9 +135,9 @@ export async function plexGetTokenByPinId( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetTokenByPinIdResponse$inboundSchema, { key: "AuthPinContainer" }), - m$.jsonErr(400, models.GetTokenByPinIdResponseBody$inboundSchema), - m$.jsonErr(404, models.GetTokenByPinIdPlexResponseBody$inboundSchema), + m$.json(200, operations.GetTokenByPinIdResponse$inboundSchema, { key: "AuthPinContainer" }), + m$.jsonErr(400, errors.GetTokenByPinIdResponseBody$inboundSchema), + m$.jsonErr(404, errors.GetTokenByPinIdPlexResponseBody$inboundSchema), m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { diff --git a/src/funcs/plexGetUserFriends.ts b/src/funcs/plexGetUserFriends.ts index d280f52a..294dc232 100644 --- a/src/funcs/plexGetUserFriends.ts +++ b/src/funcs/plexGetUserFriends.ts @@ -7,18 +7,19 @@ import * as m$ from "../lib/matchers.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { GetUserFriendsOpServerList } from "../models/getuserfriendsop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetUserFriendsServerList } from "../sdk/models/operations/getuserfriends.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get list of friends of the user logged in @@ -31,8 +32,8 @@ export async function plexGetUserFriends( options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetUserFriendsResponse, - | models.GetUserFriendsResponseBody + operations.GetUserFriendsResponse, + | errors.GetUserFriendsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,7 +45,7 @@ export async function plexGetUserFriends( > { const baseURL$ = options?.serverURL || - pathToFunc(GetUserFriendsOpServerList[0], { charEncoding: "percent" })(); + pathToFunc(GetUserFriendsServerList[0], { charEncoding: "percent" })(); const path$ = pathToFunc("/friends")(); @@ -97,8 +98,8 @@ export async function plexGetUserFriends( }; const [result$] = await m$.match< - models.GetUserFriendsResponse, - | models.GetUserFriendsResponseBody + operations.GetUserFriendsResponse, + | errors.GetUserFriendsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -107,9 +108,9 @@ export async function plexGetUserFriends( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetUserFriendsResponse$inboundSchema, { key: "Friends" }), + m$.json(200, operations.GetUserFriendsResponse$inboundSchema, { key: "Friends" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetUserFriendsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetUserFriendsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/searchGetSearchResults.ts b/src/funcs/searchGetSearchResults.ts index 6ccc51ce..59e72d52 100644 --- a/src/funcs/searchGetSearchResults.ts +++ b/src/funcs/searchGetSearchResults.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Search Results @@ -33,8 +34,8 @@ export async function searchGetSearchResults( options?: RequestOptions ): Promise< Result< - models.GetSearchResultsResponse, - | models.GetSearchResultsSearchResponseBody + operations.GetSearchResultsResponse, + | errors.GetSearchResultsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function searchGetSearchResults( | ConnectionError > > { - const input$: models.GetSearchResultsRequest = { + const input$: operations.GetSearchResultsRequest = { query: query, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetSearchResultsRequest$outboundSchema.parse(value$), + (value$) => operations.GetSearchResultsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function searchGetSearchResults( }; const [result$] = await m$.match< - models.GetSearchResultsResponse, - | models.GetSearchResultsSearchResponseBody + operations.GetSearchResultsResponse, + | errors.GetSearchResultsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function searchGetSearchResults( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetSearchResultsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetSearchResultsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetSearchResultsSearchResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetSearchResultsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/searchPerformSearch.ts b/src/funcs/searchPerformSearch.ts index e273f1b8..80478f0e 100644 --- a/src/funcs/searchPerformSearch.ts +++ b/src/funcs/searchPerformSearch.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Perform a search @@ -47,8 +48,8 @@ export async function searchPerformSearch( options?: RequestOptions ): Promise< Result< - models.PerformSearchResponse, - | models.PerformSearchResponseBody + operations.PerformSearchResponse, + | errors.PerformSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -58,7 +59,7 @@ export async function searchPerformSearch( | ConnectionError > > { - const input$: models.PerformSearchRequest = { + const input$: operations.PerformSearchRequest = { query: query, sectionId: sectionId, limit: limit, @@ -66,7 +67,7 @@ export async function searchPerformSearch( const parsed$ = schemas$.safeParse( input$, - (value$) => models.PerformSearchRequest$outboundSchema.parse(value$), + (value$) => operations.PerformSearchRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -133,8 +134,8 @@ export async function searchPerformSearch( }; const [result$] = await m$.match< - models.PerformSearchResponse, - | models.PerformSearchResponseBody + operations.PerformSearchResponse, + | errors.PerformSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -143,9 +144,9 @@ export async function searchPerformSearch( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.PerformSearchResponse$inboundSchema), + m$.nil(200, operations.PerformSearchResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.PerformSearchResponseBody$inboundSchema) + m$.jsonErr(401, errors.PerformSearchResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/searchPerformVoiceSearch.ts b/src/funcs/searchPerformVoiceSearch.ts index 9cc9da59..ea487397 100644 --- a/src/funcs/searchPerformVoiceSearch.ts +++ b/src/funcs/searchPerformVoiceSearch.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Perform a voice search @@ -39,8 +40,8 @@ export async function searchPerformVoiceSearch( options?: RequestOptions ): Promise< Result< - models.PerformVoiceSearchResponse, - | models.PerformVoiceSearchResponseBody + operations.PerformVoiceSearchResponse, + | errors.PerformVoiceSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -50,7 +51,7 @@ export async function searchPerformVoiceSearch( | ConnectionError > > { - const input$: models.PerformVoiceSearchRequest = { + const input$: operations.PerformVoiceSearchRequest = { query: query, sectionId: sectionId, limit: limit, @@ -58,7 +59,7 @@ export async function searchPerformVoiceSearch( const parsed$ = schemas$.safeParse( input$, - (value$) => models.PerformVoiceSearchRequest$outboundSchema.parse(value$), + (value$) => operations.PerformVoiceSearchRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -125,8 +126,8 @@ export async function searchPerformVoiceSearch( }; const [result$] = await m$.match< - models.PerformVoiceSearchResponse, - | models.PerformVoiceSearchResponseBody + operations.PerformVoiceSearchResponse, + | errors.PerformVoiceSearchResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -135,9 +136,9 @@ export async function searchPerformVoiceSearch( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.PerformVoiceSearchResponse$inboundSchema), + m$.nil(200, operations.PerformVoiceSearchResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.PerformVoiceSearchResponseBody$inboundSchema) + m$.jsonErr(401, errors.PerformVoiceSearchResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetAvailableClients.ts b/src/funcs/serverGetAvailableClients.ts index 99092732..51119334 100644 --- a/src/funcs/serverGetAvailableClients.ts +++ b/src/funcs/serverGetAvailableClients.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Available Clients @@ -30,8 +31,8 @@ export async function serverGetAvailableClients( options?: RequestOptions ): Promise< Result< - models.GetAvailableClientsResponse, - | models.GetAvailableClientsServerResponseBody + operations.GetAvailableClientsResponse, + | errors.GetAvailableClientsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function serverGetAvailableClients( }; const [result$] = await m$.match< - models.GetAvailableClientsResponse, - | models.GetAvailableClientsServerResponseBody + operations.GetAvailableClientsResponse, + | errors.GetAvailableClientsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function serverGetAvailableClients( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetAvailableClientsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetAvailableClientsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetAvailableClientsServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetAvailableClientsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetDevices.ts b/src/funcs/serverGetDevices.ts index 5ea36a8e..d62b4e74 100644 --- a/src/funcs/serverGetDevices.ts +++ b/src/funcs/serverGetDevices.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Devices @@ -30,8 +31,8 @@ export async function serverGetDevices( options?: RequestOptions ): Promise< Result< - models.GetDevicesResponse, - | models.GetDevicesServerResponseBody + operations.GetDevicesResponse, + | errors.GetDevicesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function serverGetDevices( }; const [result$] = await m$.match< - models.GetDevicesResponse, - | models.GetDevicesServerResponseBody + operations.GetDevicesResponse, + | errors.GetDevicesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function serverGetDevices( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetDevicesResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetDevicesResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetDevicesServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetDevicesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetMediaProviders.ts b/src/funcs/serverGetMediaProviders.ts index 156f69b3..3380bb38 100644 --- a/src/funcs/serverGetMediaProviders.ts +++ b/src/funcs/serverGetMediaProviders.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Media Providers @@ -33,8 +34,8 @@ export async function serverGetMediaProviders( options?: RequestOptions ): Promise< Result< - models.GetMediaProvidersResponse, - | models.GetMediaProvidersServerResponseBody + operations.GetMediaProvidersResponse, + | errors.GetMediaProvidersResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function serverGetMediaProviders( | ConnectionError > > { - const input$: models.GetMediaProvidersRequest = { + const input$: operations.GetMediaProvidersRequest = { xPlexToken: xPlexToken, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetMediaProvidersRequest$outboundSchema.parse(value$), + (value$) => operations.GetMediaProvidersRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function serverGetMediaProviders( }; const [result$] = await m$.match< - models.GetMediaProvidersResponse, - | models.GetMediaProvidersServerResponseBody + operations.GetMediaProvidersResponse, + | errors.GetMediaProvidersResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function serverGetMediaProviders( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetMediaProvidersResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetMediaProvidersResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetMediaProvidersServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetMediaProvidersResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetMyPlexAccount.ts b/src/funcs/serverGetMyPlexAccount.ts index b68214ad..005e1305 100644 --- a/src/funcs/serverGetMyPlexAccount.ts +++ b/src/funcs/serverGetMyPlexAccount.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get MyPlex Account @@ -30,8 +31,8 @@ export async function serverGetMyPlexAccount( options?: RequestOptions ): Promise< Result< - models.GetMyPlexAccountResponse, - | models.GetMyPlexAccountServerResponseBody + operations.GetMyPlexAccountResponse, + | errors.GetMyPlexAccountResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function serverGetMyPlexAccount( }; const [result$] = await m$.match< - models.GetMyPlexAccountResponse, - | models.GetMyPlexAccountServerResponseBody + operations.GetMyPlexAccountResponse, + | errors.GetMyPlexAccountResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function serverGetMyPlexAccount( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetMyPlexAccountResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetMyPlexAccountResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetMyPlexAccountServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetMyPlexAccountResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetResizedPhoto.ts b/src/funcs/serverGetResizedPhoto.ts index 041eb04e..6e86a74f 100644 --- a/src/funcs/serverGetResizedPhoto.ts +++ b/src/funcs/serverGetResizedPhoto.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get a Resized Photo @@ -30,12 +31,12 @@ import { Result } from "../types/fp.js"; */ export async function serverGetResizedPhoto( client$: PlexAPICore, - request: models.GetResizedPhotoRequest, + request: operations.GetResizedPhotoRequest, options?: RequestOptions ): Promise< Result< - models.GetResizedPhotoResponse, - | models.GetResizedPhotoResponseBody + operations.GetResizedPhotoResponse, + | errors.GetResizedPhotoResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -49,7 +50,7 @@ export async function serverGetResizedPhoto( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetResizedPhotoRequest$outboundSchema.parse(value$), + (value$) => operations.GetResizedPhotoRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -120,8 +121,8 @@ export async function serverGetResizedPhoto( }; const [result$] = await m$.match< - models.GetResizedPhotoResponse, - | models.GetResizedPhotoResponseBody + operations.GetResizedPhotoResponse, + | errors.GetResizedPhotoResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -130,9 +131,9 @@ export async function serverGetResizedPhoto( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.GetResizedPhotoResponse$inboundSchema), + m$.nil(200, operations.GetResizedPhotoResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetResizedPhotoResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetResizedPhotoResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetServerCapabilities.ts b/src/funcs/serverGetServerCapabilities.ts index b1e6943f..8c677a42 100644 --- a/src/funcs/serverGetServerCapabilities.ts +++ b/src/funcs/serverGetServerCapabilities.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Server Capabilities @@ -30,8 +31,8 @@ export async function serverGetServerCapabilities( options?: RequestOptions ): Promise< Result< - models.GetServerCapabilitiesResponse, - | models.GetServerCapabilitiesServerResponseBody + operations.GetServerCapabilitiesResponse, + | errors.GetServerCapabilitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function serverGetServerCapabilities( }; const [result$] = await m$.match< - models.GetServerCapabilitiesResponse, - | models.GetServerCapabilitiesServerResponseBody + operations.GetServerCapabilitiesResponse, + | errors.GetServerCapabilitiesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function serverGetServerCapabilities( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetServerCapabilitiesResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetServerCapabilitiesResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetServerCapabilitiesServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetServerCapabilitiesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetServerIdentity.ts b/src/funcs/serverGetServerIdentity.ts index c97a52e8..4db721ba 100644 --- a/src/funcs/serverGetServerIdentity.ts +++ b/src/funcs/serverGetServerIdentity.ts @@ -12,11 +12,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Server Identity @@ -29,8 +30,8 @@ export async function serverGetServerIdentity( options?: RequestOptions ): Promise< Result< - models.GetServerIdentityResponse, - | models.GetServerIdentityServerResponseBody + operations.GetServerIdentityResponse, + | errors.GetServerIdentityResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -82,8 +83,8 @@ export async function serverGetServerIdentity( }; const [result$] = await m$.match< - models.GetServerIdentityResponse, - | models.GetServerIdentityServerResponseBody + operations.GetServerIdentityResponse, + | errors.GetServerIdentityResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -92,8 +93,8 @@ export async function serverGetServerIdentity( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetServerIdentityResponse$inboundSchema, { key: "object" }), - m$.jsonErr(408, models.GetServerIdentityServerResponseBody$inboundSchema), + m$.json(200, operations.GetServerIdentityResponse$inboundSchema, { key: "object" }), + m$.jsonErr(408, errors.GetServerIdentityResponseBody$inboundSchema), m$.fail(["4XX", "5XX"]) )(response, { extraFields: responseFields$ }); if (!result$.ok) { diff --git a/src/funcs/serverGetServerList.ts b/src/funcs/serverGetServerList.ts index 11462b97..2d729999 100644 --- a/src/funcs/serverGetServerList.ts +++ b/src/funcs/serverGetServerList.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Server List @@ -30,8 +31,8 @@ export async function serverGetServerList( options?: RequestOptions ): Promise< Result< - models.GetServerListResponse, - | models.GetServerListServerResponseBody + operations.GetServerListResponse, + | errors.GetServerListResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function serverGetServerList( }; const [result$] = await m$.match< - models.GetServerListResponse, - | models.GetServerListServerResponseBody + operations.GetServerListResponse, + | errors.GetServerListResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function serverGetServerList( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetServerListResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetServerListResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetServerListServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetServerListResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/serverGetServerPreferences.ts b/src/funcs/serverGetServerPreferences.ts index a4e15554..39eda4ff 100644 --- a/src/funcs/serverGetServerPreferences.ts +++ b/src/funcs/serverGetServerPreferences.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Server Preferences @@ -30,8 +31,8 @@ export async function serverGetServerPreferences( options?: RequestOptions ): Promise< Result< - models.GetServerPreferencesResponse, - | models.GetServerPreferencesServerResponseBody + operations.GetServerPreferencesResponse, + | errors.GetServerPreferencesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function serverGetServerPreferences( }; const [result$] = await m$.match< - models.GetServerPreferencesResponse, - | models.GetServerPreferencesServerResponseBody + operations.GetServerPreferencesResponse, + | errors.GetServerPreferencesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function serverGetServerPreferences( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetServerPreferencesResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetServerPreferencesResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetServerPreferencesServerResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetServerPreferencesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsGetSessionHistory.ts b/src/funcs/sessionsGetSessionHistory.ts index 1c9f89f9..961ec558 100644 --- a/src/funcs/sessionsGetSessionHistory.ts +++ b/src/funcs/sessionsGetSessionHistory.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Session History @@ -31,13 +32,13 @@ export async function sessionsGetSessionHistory( client$: PlexAPICore, sort?: string | undefined, accountId?: number | undefined, - filter?: models.QueryParamFilter | undefined, + filter?: operations.QueryParamFilter | undefined, librarySectionID?: number | undefined, options?: RequestOptions ): Promise< Result< - models.GetSessionHistoryResponse, - | models.GetSessionHistorySessionsResponseBody + operations.GetSessionHistoryResponse, + | errors.GetSessionHistoryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -47,7 +48,7 @@ export async function sessionsGetSessionHistory( | ConnectionError > > { - const input$: models.GetSessionHistoryRequest = { + const input$: operations.GetSessionHistoryRequest = { sort: sort, accountId: accountId, filter: filter, @@ -56,7 +57,7 @@ export async function sessionsGetSessionHistory( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetSessionHistoryRequest$outboundSchema.parse(value$), + (value$) => operations.GetSessionHistoryRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -124,8 +125,8 @@ export async function sessionsGetSessionHistory( }; const [result$] = await m$.match< - models.GetSessionHistoryResponse, - | models.GetSessionHistorySessionsResponseBody + operations.GetSessionHistoryResponse, + | errors.GetSessionHistoryResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -134,9 +135,9 @@ export async function sessionsGetSessionHistory( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetSessionHistoryResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetSessionHistoryResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetSessionHistorySessionsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetSessionHistoryResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsGetSessions.ts b/src/funcs/sessionsGetSessions.ts index 3c2e7d3c..48a63fe5 100644 --- a/src/funcs/sessionsGetSessions.ts +++ b/src/funcs/sessionsGetSessions.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Active Sessions @@ -30,8 +31,8 @@ export async function sessionsGetSessions( options?: RequestOptions ): Promise< Result< - models.GetSessionsResponse, - | models.GetSessionsSessionsResponseBody + operations.GetSessionsResponse, + | errors.GetSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function sessionsGetSessions( }; const [result$] = await m$.match< - models.GetSessionsResponse, - | models.GetSessionsSessionsResponseBody + operations.GetSessionsResponse, + | errors.GetSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function sessionsGetSessions( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetSessionsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetSessionsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetSessionsSessionsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetSessionsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsGetTranscodeSessions.ts b/src/funcs/sessionsGetTranscodeSessions.ts index 7e5f27cf..f8ad9b78 100644 --- a/src/funcs/sessionsGetTranscodeSessions.ts +++ b/src/funcs/sessionsGetTranscodeSessions.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Transcode Sessions @@ -30,8 +31,8 @@ export async function sessionsGetTranscodeSessions( options?: RequestOptions ): Promise< Result< - models.GetTranscodeSessionsResponse, - | models.GetTranscodeSessionsSessionsResponseBody + operations.GetTranscodeSessionsResponse, + | errors.GetTranscodeSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function sessionsGetTranscodeSessions( }; const [result$] = await m$.match< - models.GetTranscodeSessionsResponse, - | models.GetTranscodeSessionsSessionsResponseBody + operations.GetTranscodeSessionsResponse, + | errors.GetTranscodeSessionsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function sessionsGetTranscodeSessions( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetTranscodeSessionsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetTranscodeSessionsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetTranscodeSessionsSessionsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetTranscodeSessionsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/sessionsStopTranscodeSession.ts b/src/funcs/sessionsStopTranscodeSession.ts index 6cd7d68f..890a2360 100644 --- a/src/funcs/sessionsStopTranscodeSession.ts +++ b/src/funcs/sessionsStopTranscodeSession.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Stop a Transcode Session @@ -33,8 +34,8 @@ export async function sessionsStopTranscodeSession( options?: RequestOptions ): Promise< Result< - models.StopTranscodeSessionResponse, - | models.StopTranscodeSessionResponseBody + operations.StopTranscodeSessionResponse, + | errors.StopTranscodeSessionResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function sessionsStopTranscodeSession( | ConnectionError > > { - const input$: models.StopTranscodeSessionRequest = { + const input$: operations.StopTranscodeSessionRequest = { sessionKey: sessionKey, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.StopTranscodeSessionRequest$outboundSchema.parse(value$), + (value$) => operations.StopTranscodeSessionRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -117,8 +118,8 @@ export async function sessionsStopTranscodeSession( }; const [result$] = await m$.match< - models.StopTranscodeSessionResponse, - | models.StopTranscodeSessionResponseBody + operations.StopTranscodeSessionResponse, + | errors.StopTranscodeSessionResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -127,9 +128,9 @@ export async function sessionsStopTranscodeSession( | RequestTimeoutError | ConnectionError >( - m$.nil(204, models.StopTranscodeSessionResponse$inboundSchema), + m$.nil(204, operations.StopTranscodeSessionResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.StopTranscodeSessionResponseBody$inboundSchema) + m$.jsonErr(401, errors.StopTranscodeSessionResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/statisticsGetBandwidthStatistics.ts b/src/funcs/statisticsGetBandwidthStatistics.ts index bf4c07cb..962b01f5 100644 --- a/src/funcs/statisticsGetBandwidthStatistics.ts +++ b/src/funcs/statisticsGetBandwidthStatistics.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Bandwidth Statistics @@ -33,8 +34,8 @@ export async function statisticsGetBandwidthStatistics( options?: RequestOptions ): Promise< Result< - models.GetBandwidthStatisticsResponse, - | models.GetBandwidthStatisticsStatisticsResponseBody + operations.GetBandwidthStatisticsResponse, + | errors.GetBandwidthStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function statisticsGetBandwidthStatistics( | ConnectionError > > { - const input$: models.GetBandwidthStatisticsRequest = { + const input$: operations.GetBandwidthStatisticsRequest = { timespan: timespan, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetBandwidthStatisticsRequest$outboundSchema.parse(value$), + (value$) => operations.GetBandwidthStatisticsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function statisticsGetBandwidthStatistics( }; const [result$] = await m$.match< - models.GetBandwidthStatisticsResponse, - | models.GetBandwidthStatisticsStatisticsResponseBody + operations.GetBandwidthStatisticsResponse, + | errors.GetBandwidthStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function statisticsGetBandwidthStatistics( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetBandwidthStatisticsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetBandwidthStatisticsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetBandwidthStatisticsStatisticsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetBandwidthStatisticsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/statisticsGetResourcesStatistics.ts b/src/funcs/statisticsGetResourcesStatistics.ts index 18fd128f..75411058 100644 --- a/src/funcs/statisticsGetResourcesStatistics.ts +++ b/src/funcs/statisticsGetResourcesStatistics.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Resources Statistics @@ -33,8 +34,8 @@ export async function statisticsGetResourcesStatistics( options?: RequestOptions ): Promise< Result< - models.GetResourcesStatisticsResponse, - | models.GetResourcesStatisticsStatisticsResponseBody + operations.GetResourcesStatisticsResponse, + | errors.GetResourcesStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function statisticsGetResourcesStatistics( | ConnectionError > > { - const input$: models.GetResourcesStatisticsRequest = { + const input$: operations.GetResourcesStatisticsRequest = { timespan: timespan, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetResourcesStatisticsRequest$outboundSchema.parse(value$), + (value$) => operations.GetResourcesStatisticsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function statisticsGetResourcesStatistics( }; const [result$] = await m$.match< - models.GetResourcesStatisticsResponse, - | models.GetResourcesStatisticsStatisticsResponseBody + operations.GetResourcesStatisticsResponse, + | errors.GetResourcesStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function statisticsGetResourcesStatistics( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetResourcesStatisticsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetResourcesStatisticsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetResourcesStatisticsStatisticsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetResourcesStatisticsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/statisticsGetStatistics.ts b/src/funcs/statisticsGetStatistics.ts index 972dbee5..88d18189 100644 --- a/src/funcs/statisticsGetStatistics.ts +++ b/src/funcs/statisticsGetStatistics.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get Media Statistics @@ -33,8 +34,8 @@ export async function statisticsGetStatistics( options?: RequestOptions ): Promise< Result< - models.GetStatisticsResponse, - | models.GetStatisticsStatisticsResponseBody + operations.GetStatisticsResponse, + | errors.GetStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function statisticsGetStatistics( | ConnectionError > > { - const input$: models.GetStatisticsRequest = { + const input$: operations.GetStatisticsRequest = { timespan: timespan, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetStatisticsRequest$outboundSchema.parse(value$), + (value$) => operations.GetStatisticsRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function statisticsGetStatistics( }; const [result$] = await m$.match< - models.GetStatisticsResponse, - | models.GetStatisticsStatisticsResponseBody + operations.GetStatisticsResponse, + | errors.GetStatisticsResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function statisticsGetStatistics( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetStatisticsResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetStatisticsResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetStatisticsStatisticsResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetStatisticsResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/updaterApplyUpdates.ts b/src/funcs/updaterApplyUpdates.ts index 3ca481a0..9a5935e3 100644 --- a/src/funcs/updaterApplyUpdates.ts +++ b/src/funcs/updaterApplyUpdates.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Apply Updates @@ -30,13 +31,13 @@ import { Result } from "../types/fp.js"; */ export async function updaterApplyUpdates( client$: PlexAPICore, - tonight?: models.Tonight | undefined, - skip?: models.Skip | undefined, + tonight?: operations.Tonight | undefined, + skip?: operations.Skip | undefined, options?: RequestOptions ): Promise< Result< - models.ApplyUpdatesResponse, - | models.ApplyUpdatesResponseBody + operations.ApplyUpdatesResponse, + | errors.ApplyUpdatesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -46,14 +47,14 @@ export async function updaterApplyUpdates( | ConnectionError > > { - const input$: models.ApplyUpdatesRequest = { + const input$: operations.ApplyUpdatesRequest = { tonight: tonight, skip: skip, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.ApplyUpdatesRequest$outboundSchema.parse(value$), + (value$) => operations.ApplyUpdatesRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -119,8 +120,8 @@ export async function updaterApplyUpdates( }; const [result$] = await m$.match< - models.ApplyUpdatesResponse, - | models.ApplyUpdatesResponseBody + operations.ApplyUpdatesResponse, + | errors.ApplyUpdatesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -129,9 +130,9 @@ export async function updaterApplyUpdates( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.ApplyUpdatesResponse$inboundSchema), + m$.nil(200, operations.ApplyUpdatesResponse$inboundSchema), m$.fail([400, "4XX", 500, "5XX"]), - m$.jsonErr(401, models.ApplyUpdatesResponseBody$inboundSchema) + m$.jsonErr(401, errors.ApplyUpdatesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/updaterCheckForUpdates.ts b/src/funcs/updaterCheckForUpdates.ts index 491f61c3..5f8a6bed 100644 --- a/src/funcs/updaterCheckForUpdates.ts +++ b/src/funcs/updaterCheckForUpdates.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Checking for updates @@ -29,12 +30,12 @@ import { Result } from "../types/fp.js"; */ export async function updaterCheckForUpdates( client$: PlexAPICore, - download?: models.Download | undefined, + download?: operations.Download | undefined, options?: RequestOptions ): Promise< Result< - models.CheckForUpdatesResponse, - | models.CheckForUpdatesResponseBody + operations.CheckForUpdatesResponse, + | errors.CheckForUpdatesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -44,13 +45,13 @@ export async function updaterCheckForUpdates( | ConnectionError > > { - const input$: models.CheckForUpdatesRequest = { + const input$: operations.CheckForUpdatesRequest = { download: download, }; const parsed$ = schemas$.safeParse( input$, - (value$) => models.CheckForUpdatesRequest$outboundSchema.parse(value$), + (value$) => operations.CheckForUpdatesRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -115,8 +116,8 @@ export async function updaterCheckForUpdates( }; const [result$] = await m$.match< - models.CheckForUpdatesResponse, - | models.CheckForUpdatesResponseBody + operations.CheckForUpdatesResponse, + | errors.CheckForUpdatesResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -125,9 +126,9 @@ export async function updaterCheckForUpdates( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.CheckForUpdatesResponse$inboundSchema), + m$.nil(200, operations.CheckForUpdatesResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.CheckForUpdatesResponseBody$inboundSchema) + m$.jsonErr(401, errors.CheckForUpdatesResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/updaterGetUpdateStatus.ts b/src/funcs/updaterGetUpdateStatus.ts index ac2bcaad..75fc12fa 100644 --- a/src/funcs/updaterGetUpdateStatus.ts +++ b/src/funcs/updaterGetUpdateStatus.ts @@ -13,11 +13,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Querying status of updates @@ -30,8 +31,8 @@ export async function updaterGetUpdateStatus( options?: RequestOptions ): Promise< Result< - models.GetUpdateStatusResponse, - | models.GetUpdateStatusUpdaterResponseBody + operations.GetUpdateStatusResponse, + | errors.GetUpdateStatusResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -91,8 +92,8 @@ export async function updaterGetUpdateStatus( }; const [result$] = await m$.match< - models.GetUpdateStatusResponse, - | models.GetUpdateStatusUpdaterResponseBody + operations.GetUpdateStatusResponse, + | errors.GetUpdateStatusResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -101,9 +102,9 @@ export async function updaterGetUpdateStatus( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetUpdateStatusResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetUpdateStatusResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetUpdateStatusUpdaterResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetUpdateStatusResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/videoGetTimeline.ts b/src/funcs/videoGetTimeline.ts index 38f6ad0b..ffa8c510 100644 --- a/src/funcs/videoGetTimeline.ts +++ b/src/funcs/videoGetTimeline.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get the timeline for a media item @@ -29,12 +30,12 @@ import { Result } from "../types/fp.js"; */ export async function videoGetTimeline( client$: PlexAPICore, - request: models.GetTimelineRequest, + request: operations.GetTimelineRequest, options?: RequestOptions ): Promise< Result< - models.GetTimelineResponse, - | models.GetTimelineResponseBody + operations.GetTimelineResponse, + | errors.GetTimelineResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -48,7 +49,7 @@ export async function videoGetTimeline( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetTimelineRequest$outboundSchema.parse(value$), + (value$) => operations.GetTimelineRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -122,8 +123,8 @@ export async function videoGetTimeline( }; const [result$] = await m$.match< - models.GetTimelineResponse, - | models.GetTimelineResponseBody + operations.GetTimelineResponse, + | errors.GetTimelineResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -132,9 +133,9 @@ export async function videoGetTimeline( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.GetTimelineResponse$inboundSchema), + m$.nil(200, operations.GetTimelineResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetTimelineResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetTimelineResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/videoStartUniversalTranscode.ts b/src/funcs/videoStartUniversalTranscode.ts index 151929e6..cc95f538 100644 --- a/src/funcs/videoStartUniversalTranscode.ts +++ b/src/funcs/videoStartUniversalTranscode.ts @@ -15,11 +15,12 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Start Universal Transcode @@ -29,12 +30,12 @@ import { Result } from "../types/fp.js"; */ export async function videoStartUniversalTranscode( client$: PlexAPICore, - request: models.StartUniversalTranscodeRequest, + request: operations.StartUniversalTranscodeRequest, options?: RequestOptions ): Promise< Result< - models.StartUniversalTranscodeResponse, - | models.StartUniversalTranscodeResponseBody + operations.StartUniversalTranscodeResponse, + | errors.StartUniversalTranscodeResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -48,7 +49,7 @@ export async function videoStartUniversalTranscode( const parsed$ = schemas$.safeParse( input$, - (value$) => models.StartUniversalTranscodeRequest$outboundSchema.parse(value$), + (value$) => operations.StartUniversalTranscodeRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -128,8 +129,8 @@ export async function videoStartUniversalTranscode( }; const [result$] = await m$.match< - models.StartUniversalTranscodeResponse, - | models.StartUniversalTranscodeResponseBody + operations.StartUniversalTranscodeResponse, + | errors.StartUniversalTranscodeResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -138,9 +139,9 @@ export async function videoStartUniversalTranscode( | RequestTimeoutError | ConnectionError >( - m$.nil(200, models.StartUniversalTranscodeResponse$inboundSchema), + m$.nil(200, operations.StartUniversalTranscodeResponse$inboundSchema), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.StartUniversalTranscodeResponseBody$inboundSchema) + m$.jsonErr(401, errors.StartUniversalTranscodeResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/funcs/watchlistGetWatchList.ts b/src/funcs/watchlistGetWatchList.ts index b74cfb68..c7dfbb29 100644 --- a/src/funcs/watchlistGetWatchList.ts +++ b/src/funcs/watchlistGetWatchList.ts @@ -12,18 +12,19 @@ import * as schemas$ from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { GetWatchListOpServerList } from "../models/getwatchlistop.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import * as models from "../models/index.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { GetWatchListServerList } from "../sdk/models/operations/getwatchlist.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { Result } from "../sdk/types/fp.js"; /** * Get User Watchlist @@ -33,12 +34,12 @@ import { Result } from "../types/fp.js"; */ export async function watchlistGetWatchList( client$: PlexAPICore, - request: models.GetWatchListRequest, + request: operations.GetWatchListRequest, options?: RequestOptions & { serverURL?: string } ): Promise< Result< - models.GetWatchListResponse, - | models.GetWatchListWatchlistResponseBody + operations.GetWatchListResponse, + | errors.GetWatchListResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -52,7 +53,7 @@ export async function watchlistGetWatchList( const parsed$ = schemas$.safeParse( input$, - (value$) => models.GetWatchListRequest$outboundSchema.parse(value$), + (value$) => operations.GetWatchListRequest$outboundSchema.parse(value$), "Input validation failed" ); if (!parsed$.ok) { @@ -62,8 +63,7 @@ export async function watchlistGetWatchList( const body$ = null; const baseURL$ = - options?.serverURL || - pathToFunc(GetWatchListOpServerList[0], { charEncoding: "percent" })(); + options?.serverURL || pathToFunc(GetWatchListServerList[0], { charEncoding: "percent" })(); const pathParams$ = { filter: encodeSimple$("filter", payload$.filter, { @@ -136,8 +136,8 @@ export async function watchlistGetWatchList( }; const [result$] = await m$.match< - models.GetWatchListResponse, - | models.GetWatchListWatchlistResponseBody + operations.GetWatchListResponse, + | errors.GetWatchListResponseBody | SDKError | SDKValidationError | UnexpectedClientError @@ -146,9 +146,9 @@ export async function watchlistGetWatchList( | RequestTimeoutError | ConnectionError >( - m$.json(200, models.GetWatchListResponse$inboundSchema, { key: "object" }), + m$.json(200, operations.GetWatchListResponse$inboundSchema, { key: "object" }), m$.fail([400, "4XX", "5XX"]), - m$.jsonErr(401, models.GetWatchListWatchlistResponseBody$inboundSchema) + m$.jsonErr(401, errors.GetWatchListResponseBody$inboundSchema) )(response, { extraFields: responseFields$ }); if (!result$.ok) { return result$; diff --git a/src/index.ts b/src/index.ts index e81fbd36..c6fc7f02 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,3 @@ export * from "./sdk/sdk.js"; export * from "./lib/config.js"; export * as files from "./lib/files.js"; - -export * from "./models/index.js"; -export * as types from "./types/index.js"; diff --git a/src/lib/config.ts b/src/lib/config.ts index 759052ae..c2ce187c 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ClosedEnum } from "../types/enums.js"; +import { ClosedEnum } from "../sdk/types/enums.js"; import { HTTPClient } from "./http.js"; import { Logger } from "./logger.js"; import { RetryConfig } from "./retries.js"; @@ -89,7 +89,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.3", - sdkVersion: "0.20.0", - genVersion: "2.409.8", - userAgent: "speakeasy-sdk/typescript 0.20.0 2.409.8 0.0.3 @lukehagar/plexjs", + sdkVersion: "0.20.1", + genVersion: "2.411.9", + userAgent: "speakeasy-sdk/typescript 0.20.1 2.411.9 0.0.3 @lukehagar/plexjs", } as const; diff --git a/src/lib/matchers.ts b/src/lib/matchers.ts index 0843e432..923764e7 100644 --- a/src/lib/matchers.ts +++ b/src/lib/matchers.ts @@ -5,9 +5,9 @@ import { safeParse } from "./schemas.js"; import { StatusCodePredicate, matchResponse, matchStatusCode } from "./http.js"; import { isPlainObject } from "./is-plain-object.js"; -import { SDKError } from "../models/sdkerror.js"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +import { SDKError } from "../sdk/models/errors/sdkerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { Result } from "../sdk/types/fp.js"; export type Encoding = "json" | "text" | "bytes" | "stream" | "sse" | "nil" | "fail"; diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index c74ac859..3eda5117 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -3,8 +3,8 @@ */ import { output, ZodEffects, ZodError, ZodObject, ZodRawShape, ZodTypeAny } from "zod"; -import { SDKValidationError } from "../models/sdkvalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { ERR, OK, Result } from "../sdk/types/fp.js"; /** * Utility function that executes some code which may throw a ZodError. It diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index 7c039c1f..4a53181a 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -24,8 +24,8 @@ import { RequestAbortedError, RequestTimeoutError, UnexpectedClientError, -} from "../models/httpclienterrors.js"; -import { ERR, OK, Result } from "../types/fp.js"; +} from "../sdk/models/errors/httpclienterrors.js"; +import { ERR, OK, Result } from "../sdk/types/fp.js"; export type RequestOptions = { /** diff --git a/src/lib/security.ts b/src/lib/security.ts index aed85a75..3b6cf83a 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as models from "../models/index.js"; +import * as shared from "../sdk/models/shared/index.js"; export enum SecurityErrorCode { Incomplete = "incomplete", @@ -181,7 +181,7 @@ function applyBearer( state.headers[spec.fieldName] = value; } export function resolveGlobalSecurity( - security: Partial | null | undefined + security: Partial | null | undefined ): SecurityState | null { return resolveSecurity([ { diff --git a/src/models/gethomedataop.ts b/src/models/gethomedataop.ts deleted file mode 100644 index 8b155478..00000000 --- a/src/models/gethomedataop.ts +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { remap as remap$ } from "../lib/primitives.js"; -import * as z from "zod"; - -export type GetHomeDataErrors = { - 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"; - } -} - -/** - * Home Data - */ -export type GetHomeDataResponseBody = { - id?: number | undefined; - name?: string | undefined; - guestUserID?: number | undefined; - guestUserUUID?: string | undefined; - guestEnabled?: boolean | undefined; - subscription?: boolean | undefined; -}; - -export type GetHomeDataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * Home Data - */ - object?: GetHomeDataResponseBody | undefined; -}; - -/** @internal */ -export const GetHomeDataErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetHomeDataErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetHomeDataErrors$outboundSchema: z.ZodType< - GetHomeDataErrors$Outbound, - z.ZodTypeDef, - GetHomeDataErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHomeDataErrors$ { - /** @deprecated use `GetHomeDataErrors$inboundSchema` instead. */ - export const inboundSchema = GetHomeDataErrors$inboundSchema; - /** @deprecated use `GetHomeDataErrors$outboundSchema` instead. */ - export const outboundSchema = GetHomeDataErrors$outboundSchema; - /** @deprecated use `GetHomeDataErrors$Outbound` instead. */ - export type Outbound = GetHomeDataErrors$Outbound; -} - -/** @internal */ -export const GetHomeDataPlexResponseBody$inboundSchema: z.ZodType< - GetHomeDataPlexResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetHomeDataErrors$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(() => GetHomeDataErrors$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 GetHomeDataResponseBody$inboundSchema: z.ZodType< - GetHomeDataResponseBody, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.number().optional(), - name: z.string().optional(), - guestUserID: z.number().optional(), - guestUserUUID: z.string().optional(), - guestEnabled: z.boolean().optional(), - subscription: z.boolean().optional(), -}); - -/** @internal */ -export type GetHomeDataResponseBody$Outbound = { - id?: number | undefined; - name?: string | undefined; - guestUserID?: number | undefined; - guestUserUUID?: string | undefined; - guestEnabled?: boolean | undefined; - subscription?: boolean | undefined; -}; - -/** @internal */ -export const GetHomeDataResponseBody$outboundSchema: z.ZodType< - GetHomeDataResponseBody$Outbound, - z.ZodTypeDef, - GetHomeDataResponseBody -> = z.object({ - id: z.number().optional(), - name: z.string().optional(), - guestUserID: z.number().optional(), - guestUserUUID: z.string().optional(), - guestEnabled: z.boolean().optional(), - subscription: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHomeDataResponseBody$ { - /** @deprecated use `GetHomeDataResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetHomeDataResponseBody$inboundSchema; - /** @deprecated use `GetHomeDataResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetHomeDataResponseBody$outboundSchema; - /** @deprecated use `GetHomeDataResponseBody$Outbound` instead. */ - export type Outbound = GetHomeDataResponseBody$Outbound; -} - -/** @internal */ -export const GetHomeDataResponse$inboundSchema: z.ZodType< - GetHomeDataResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - object: z.lazy(() => GetHomeDataResponseBody$inboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type GetHomeDataResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - object?: GetHomeDataResponseBody$Outbound | undefined; -}; - -/** @internal */ -export const GetHomeDataResponse$outboundSchema: z.ZodType< - GetHomeDataResponse$Outbound, - z.ZodTypeDef, - GetHomeDataResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - object: z.lazy(() => GetHomeDataResponseBody$outboundSchema).optional(), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 GetHomeDataResponse$ { - /** @deprecated use `GetHomeDataResponse$inboundSchema` instead. */ - export const inboundSchema = GetHomeDataResponse$inboundSchema; - /** @deprecated use `GetHomeDataResponse$outboundSchema` instead. */ - export const outboundSchema = GetHomeDataResponse$outboundSchema; - /** @deprecated use `GetHomeDataResponse$Outbound` instead. */ - export type Outbound = GetHomeDataResponse$Outbound; -} diff --git a/src/models/index.ts b/src/models/index.ts deleted file mode 100644 index f089e03c..00000000 --- a/src/models/index.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./addplaylistcontentsop.js"; -export * from "./applyupdatesop.js"; -export * from "./cancelserveractivitiesop.js"; -export * from "./checkforupdatesop.js"; -export * from "./clearplaylistcontentsop.js"; -export * from "./createplaylistop.js"; -export * from "./deletelibraryop.js"; -export * from "./deleteplaylistop.js"; -export * from "./enablepapertrailop.js"; -export * from "./getalllibrariesop.js"; -export * from "./getavailableclientsop.js"; -export * from "./getbandwidthstatisticsop.js"; -export * from "./getbannerimageop.js"; -export * from "./getbutlertasksop.js"; -export * from "./getcompanionsdataop.js"; -export * from "./getdevicesop.js"; -export * from "./getfilehashop.js"; -export * from "./getgeodataop.js"; -export * from "./getglobalhubsop.js"; -export * from "./gethomedataop.js"; -export * from "./getlibrarydetailsop.js"; -export * from "./getlibraryhubsop.js"; -export * from "./getlibraryitemsop.js"; -export * from "./getmediaprovidersop.js"; -export * from "./getmetadatabyratingkeyop.js"; -export * from "./getmetadatachildrenop.js"; -export * from "./getmyplexaccountop.js"; -export * from "./getondeckop.js"; -export * from "./getpinop.js"; -export * from "./getplaylistcontentsop.js"; -export * from "./getplaylistop.js"; -export * from "./getplaylistsop.js"; -export * from "./getrecentlyaddedop.js"; -export * from "./getrefreshlibrarymetadataop.js"; -export * from "./getresizedphotoop.js"; -export * from "./getresourcesstatisticsop.js"; -export * from "./getsearchlibraryop.js"; -export * from "./getsearchresultsop.js"; -export * from "./getserveractivitiesop.js"; -export * from "./getservercapabilitiesop.js"; -export * from "./getserveridentityop.js"; -export * from "./getserverlistop.js"; -export * from "./getserverpreferencesop.js"; -export * from "./getserverresourcesop.js"; -export * from "./getsessionhistoryop.js"; -export * from "./getsessionsop.js"; -export * from "./getsourceconnectioninformationop.js"; -export * from "./getstatisticsop.js"; -export * from "./getthumbimageop.js"; -export * from "./gettimelineop.js"; -export * from "./gettokenbypinidop.js"; -export * from "./gettopwatchedcontentop.js"; -export * from "./gettranscodesessionsop.js"; -export * from "./gettransienttokenop.js"; -export * from "./getupdatestatusop.js"; -export * from "./getuserdetailsop.js"; -export * from "./getuserfriendsop.js"; -export * from "./getwatchlistop.js"; -export * from "./httpclienterrors.js"; -export * from "./loglineop.js"; -export * from "./logmultilineop.js"; -export * from "./markplayedop.js"; -export * from "./markunplayedop.js"; -export * from "./performsearchop.js"; -export * from "./performvoicesearchop.js"; -export * from "./postuserssignindataop.js"; -export * from "./sdkerror.js"; -export * from "./sdkvalidationerror.js"; -export * from "./security.js"; -export * from "./startalltasksop.js"; -export * from "./starttaskop.js"; -export * from "./startuniversaltranscodeop.js"; -export * from "./stopalltasksop.js"; -export * from "./stoptaskop.js"; -export * from "./stoptranscodesessionop.js"; -export * from "./updateplaylistop.js"; -export * from "./updateplayprogressop.js"; -export * from "./uploadplaylistop.js"; diff --git a/src/sdk/activities.ts b/src/sdk/activities.ts index 9d8e499e..e7f16ce3 100644 --- a/src/sdk/activities.ts +++ b/src/sdk/activities.ts @@ -5,8 +5,8 @@ import { activitiesCancelServerActivities } from "../funcs/activitiesCancelServerActivities.js"; import { activitiesGetServerActivities } from "../funcs/activitiesGetServerActivities.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Activities extends ClientSDK { /** @@ -17,7 +17,7 @@ export class Activities extends ClientSDK { */ async getServerActivities( options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(activitiesGetServerActivities(this, options)); } @@ -30,7 +30,7 @@ export class Activities extends ClientSDK { async cancelServerActivities( activityUUID: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(activitiesCancelServerActivities(this, activityUUID, options)); } } diff --git a/src/sdk/authentication.ts b/src/sdk/authentication.ts index dbe7916e..2d906f5b 100644 --- a/src/sdk/authentication.ts +++ b/src/sdk/authentication.ts @@ -7,8 +7,8 @@ import { authenticationGetTransientToken } from "../funcs/authenticationGetTrans import { authenticationGetUserDetails } from "../funcs/authenticationGetUserDetails.js"; import { authenticationPostUsersSignInData } from "../funcs/authenticationPostUsersSignInData.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Authentication extends ClientSDK { /** @@ -19,10 +19,10 @@ export class Authentication extends ClientSDK { * */ async getTransientToken( - type: models.GetTransientTokenQueryParamType, - scope: models.Scope, + type: operations.GetTransientTokenQueryParamType, + scope: operations.Scope, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(authenticationGetTransientToken(this, type, scope, options)); } @@ -37,7 +37,7 @@ export class Authentication extends ClientSDK { async getSourceConnectionInformation( source: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(authenticationGetSourceConnectionInformation(this, source, options)); } @@ -50,7 +50,7 @@ export class Authentication extends ClientSDK { async getUserDetails( xPlexToken: string, options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(authenticationGetUserDetails(this, xPlexToken, options)); } @@ -62,9 +62,9 @@ export class Authentication extends ClientSDK { */ async postUsersSignInData( xPlexClientIdentifier?: string | undefined, - requestBody?: models.PostUsersSignInDataRequestBody | undefined, + requestBody?: operations.PostUsersSignInDataRequestBody | undefined, options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync( authenticationPostUsersSignInData(this, xPlexClientIdentifier, requestBody, options) ); diff --git a/src/sdk/butler.ts b/src/sdk/butler.ts index 6a5b2cbf..5ec4f888 100644 --- a/src/sdk/butler.ts +++ b/src/sdk/butler.ts @@ -8,8 +8,8 @@ import { butlerStartTask } from "../funcs/butlerStartTask.js"; import { butlerStopAllTasks } from "../funcs/butlerStopAllTasks.js"; import { butlerStopTask } from "../funcs/butlerStopTask.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Butler extends ClientSDK { /** @@ -18,7 +18,7 @@ export class Butler extends ClientSDK { * @remarks * Returns a list of butler tasks */ - async getButlerTasks(options?: RequestOptions): Promise { + async getButlerTasks(options?: RequestOptions): Promise { return unwrapAsync(butlerGetButlerTasks(this, options)); } @@ -33,7 +33,7 @@ export class Butler extends ClientSDK { * 4. If we are outside the configured window, the task will start immediately. * */ - async startAllTasks(options?: RequestOptions): Promise { + async startAllTasks(options?: RequestOptions): Promise { return unwrapAsync(butlerStartAllTasks(this, options)); } @@ -44,7 +44,7 @@ export class Butler extends ClientSDK { * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. * */ - async stopAllTasks(options?: RequestOptions): Promise { + async stopAllTasks(options?: RequestOptions): Promise { return unwrapAsync(butlerStopAllTasks(this, options)); } @@ -60,9 +60,9 @@ export class Butler extends ClientSDK { * */ async startTask( - taskName: models.TaskName, + taskName: operations.TaskName, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(butlerStartTask(this, taskName, options)); } @@ -74,9 +74,9 @@ export class Butler extends ClientSDK { * */ async stopTask( - taskName: models.PathParamTaskName, + taskName: operations.PathParamTaskName, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(butlerStopTask(this, taskName, options)); } } diff --git a/src/sdk/hubs.ts b/src/sdk/hubs.ts index 2417fd2c..930a2812 100644 --- a/src/sdk/hubs.ts +++ b/src/sdk/hubs.ts @@ -5,8 +5,8 @@ import { hubsGetGlobalHubs } from "../funcs/hubsGetGlobalHubs.js"; import { hubsGetLibraryHubs } from "../funcs/hubsGetLibraryHubs.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Hubs extends ClientSDK { /** @@ -17,9 +17,9 @@ export class Hubs extends ClientSDK { */ async getGlobalHubs( count?: number | undefined, - onlyTransient?: models.OnlyTransient | undefined, + onlyTransient?: operations.OnlyTransient | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(hubsGetGlobalHubs(this, count, onlyTransient, options)); } @@ -33,9 +33,9 @@ export class Hubs extends ClientSDK { async getLibraryHubs( sectionId: number, count?: number | undefined, - onlyTransient?: models.QueryParamOnlyTransient | undefined, + onlyTransient?: operations.QueryParamOnlyTransient | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(hubsGetLibraryHubs(this, sectionId, count, onlyTransient, options)); } } diff --git a/src/sdk/library.ts b/src/sdk/library.ts index 76293dab..4ce04109 100644 --- a/src/sdk/library.ts +++ b/src/sdk/library.ts @@ -15,8 +15,8 @@ import { libraryGetRefreshLibraryMetadata } from "../funcs/libraryGetRefreshLibr import { libraryGetSearchLibrary } from "../funcs/libraryGetSearchLibrary.js"; import { libraryGetTopWatchedContent } from "../funcs/libraryGetTopWatchedContent.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Library extends ClientSDK { /** @@ -29,7 +29,7 @@ export class Library extends ClientSDK { url: string, type?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetFileHash(this, url, type, options)); } @@ -44,7 +44,7 @@ export class Library extends ClientSDK { xPlexContainerStart?: number | undefined, xPlexContainerSize?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync( libraryGetRecentlyAdded(this, xPlexContainerStart, xPlexContainerSize, options) ); @@ -62,7 +62,7 @@ export class Library extends ClientSDK { * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). * */ - async getAllLibraries(options?: RequestOptions): Promise { + async getAllLibraries(options?: RequestOptions): Promise { return unwrapAsync(libraryGetAllLibraries(this, options)); } @@ -113,9 +113,9 @@ export class Library extends ClientSDK { */ async getLibraryDetails( sectionKey: number, - includeDetails?: models.IncludeDetails | undefined, + includeDetails?: operations.IncludeDetails | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetLibraryDetails(this, sectionKey, includeDetails, options)); } @@ -128,7 +128,7 @@ export class Library extends ClientSDK { async deleteLibrary( sectionKey: number, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryDeleteLibrary(this, sectionKey, options)); } @@ -159,9 +159,9 @@ export class Library extends ClientSDK { * */ async getLibraryItems( - request: models.GetLibraryItemsRequest, + request: operations.GetLibraryItemsRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetLibraryItems(this, request, options)); } @@ -174,9 +174,9 @@ export class Library extends ClientSDK { */ async getRefreshLibraryMetadata( sectionKey: number, - force?: models.Force | undefined, + force?: operations.Force | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetRefreshLibraryMetadata(this, sectionKey, force, options)); } @@ -206,9 +206,9 @@ export class Library extends ClientSDK { */ async getSearchLibrary( sectionKey: number, - type: models.QueryParamType, + type: operations.QueryParamType, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetSearchLibrary(this, sectionKey, type, options)); } @@ -222,7 +222,7 @@ export class Library extends ClientSDK { async getMetaDataByRatingKey( ratingKey: number, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetMetaDataByRatingKey(this, ratingKey, options)); } @@ -237,7 +237,7 @@ export class Library extends ClientSDK { ratingKey: number, includeElements?: string | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetMetadataChildren(this, ratingKey, includeElements, options)); } @@ -249,10 +249,10 @@ export class Library extends ClientSDK { * */ async getTopWatchedContent( - type: models.GetTopWatchedContentQueryParamType, + type: operations.GetTopWatchedContentQueryParamType, includeGuids?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(libraryGetTopWatchedContent(this, type, includeGuids, options)); } @@ -263,7 +263,7 @@ export class Library extends ClientSDK { * This endpoint will return the on deck content. * */ - async getOnDeck(options?: RequestOptions): Promise { + async getOnDeck(options?: RequestOptions): Promise { return unwrapAsync(libraryGetOnDeck(this, options)); } } diff --git a/src/sdk/log.ts b/src/sdk/log.ts index 54c88c04..423cce39 100644 --- a/src/sdk/log.ts +++ b/src/sdk/log.ts @@ -6,8 +6,8 @@ import { logEnablePaperTrail } from "../funcs/logEnablePaperTrail.js"; import { logLogLine } from "../funcs/logLogLine.js"; import { logLogMultiLine } from "../funcs/logLogMultiLine.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Log extends ClientSDK { /** @@ -18,11 +18,11 @@ export class Log extends ClientSDK { * */ async logLine( - level: models.Level, + level: operations.Level, message: string, source: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(logLogLine(this, level, message, source, options)); } @@ -56,7 +56,7 @@ export class Log extends ClientSDK { async logMultiLine( request: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(logLogMultiLine(this, request, options)); } @@ -67,7 +67,7 @@ export class Log extends ClientSDK { * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. * */ - async enablePaperTrail(options?: RequestOptions): Promise { + async enablePaperTrail(options?: RequestOptions): Promise { return unwrapAsync(logEnablePaperTrail(this, options)); } } diff --git a/src/sdk/media.ts b/src/sdk/media.ts index cfb11d42..bf09d555 100644 --- a/src/sdk/media.ts +++ b/src/sdk/media.ts @@ -8,8 +8,8 @@ import { mediaMarkPlayed } from "../funcs/mediaMarkPlayed.js"; import { mediaMarkUnplayed } from "../funcs/mediaMarkUnplayed.js"; import { mediaUpdatePlayProgress } from "../funcs/mediaUpdatePlayProgress.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Media extends ClientSDK { /** @@ -18,7 +18,10 @@ export class Media extends ClientSDK { * @remarks * This will mark the provided media key as Played. */ - async markPlayed(key: number, options?: RequestOptions): Promise { + async markPlayed( + key: number, + options?: RequestOptions + ): Promise { return unwrapAsync(mediaMarkPlayed(this, key, options)); } @@ -31,7 +34,7 @@ export class Media extends ClientSDK { async markUnplayed( key: number, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(mediaMarkUnplayed(this, key, options)); } @@ -47,7 +50,7 @@ export class Media extends ClientSDK { time: number, state: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(mediaUpdatePlayProgress(this, key, time, state, options)); } @@ -58,9 +61,9 @@ export class Media extends ClientSDK { * Gets the banner image of the media item */ async getBannerImage( - request: models.GetBannerImageRequest, + request: operations.GetBannerImageRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(mediaGetBannerImage(this, request, options)); } @@ -71,9 +74,9 @@ export class Media extends ClientSDK { * Gets the thumbnail image of the media item */ async getThumbImage( - request: models.GetThumbImageRequest, + request: operations.GetThumbImageRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(mediaGetThumbImage(this, request, options)); } } diff --git a/src/sdk/models/errors/addplaylistcontents.ts b/src/sdk/models/errors/addplaylistcontents.ts new file mode 100644 index 00000000..d86afe33 --- /dev/null +++ b/src/sdk/models/errors/addplaylistcontents.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type AddPlaylistContentsErrors = { + 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 AddPlaylistContentsResponseBodyData = { + 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 AddPlaylistContentsResponseBody 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$: AddPlaylistContentsResponseBodyData; + + constructor(err: AddPlaylistContentsResponseBodyData) { + 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 = "AddPlaylistContentsResponseBody"; + } +} + +/** @internal */ +export const AddPlaylistContentsErrors$inboundSchema: z.ZodType< + AddPlaylistContentsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type AddPlaylistContentsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const AddPlaylistContentsErrors$outboundSchema: z.ZodType< + AddPlaylistContentsErrors$Outbound, + z.ZodTypeDef, + AddPlaylistContentsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AddPlaylistContentsErrors$ { + /** @deprecated use `AddPlaylistContentsErrors$inboundSchema` instead. */ + export const inboundSchema = AddPlaylistContentsErrors$inboundSchema; + /** @deprecated use `AddPlaylistContentsErrors$outboundSchema` instead. */ + export const outboundSchema = AddPlaylistContentsErrors$outboundSchema; + /** @deprecated use `AddPlaylistContentsErrors$Outbound` instead. */ + export type Outbound = AddPlaylistContentsErrors$Outbound; +} + +/** @internal */ +export const AddPlaylistContentsResponseBody$inboundSchema: z.ZodType< + AddPlaylistContentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => AddPlaylistContentsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new AddPlaylistContentsResponseBody(remapped); + }); + +/** @internal */ +export type AddPlaylistContentsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const AddPlaylistContentsResponseBody$outboundSchema: z.ZodType< + AddPlaylistContentsResponseBody$Outbound, + z.ZodTypeDef, + AddPlaylistContentsResponseBody +> = z + .instanceof(AddPlaylistContentsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => AddPlaylistContentsErrors$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 AddPlaylistContentsResponseBody$ { + /** @deprecated use `AddPlaylistContentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = AddPlaylistContentsResponseBody$inboundSchema; + /** @deprecated use `AddPlaylistContentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = AddPlaylistContentsResponseBody$outboundSchema; + /** @deprecated use `AddPlaylistContentsResponseBody$Outbound` instead. */ + export type Outbound = AddPlaylistContentsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/applyupdates.ts b/src/sdk/models/errors/applyupdates.ts new file mode 100644 index 00000000..f9b54d80 --- /dev/null +++ b/src/sdk/models/errors/applyupdates.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type ApplyUpdatesErrors = { + 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 ApplyUpdatesResponseBodyData = { + 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 ApplyUpdatesResponseBody 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$: ApplyUpdatesResponseBodyData; + + constructor(err: ApplyUpdatesResponseBodyData) { + 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 = "ApplyUpdatesResponseBody"; + } +} + +/** @internal */ +export const ApplyUpdatesErrors$inboundSchema: z.ZodType< + ApplyUpdatesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type ApplyUpdatesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const ApplyUpdatesErrors$outboundSchema: z.ZodType< + ApplyUpdatesErrors$Outbound, + z.ZodTypeDef, + ApplyUpdatesErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ApplyUpdatesErrors$ { + /** @deprecated use `ApplyUpdatesErrors$inboundSchema` instead. */ + export const inboundSchema = ApplyUpdatesErrors$inboundSchema; + /** @deprecated use `ApplyUpdatesErrors$outboundSchema` instead. */ + export const outboundSchema = ApplyUpdatesErrors$outboundSchema; + /** @deprecated use `ApplyUpdatesErrors$Outbound` instead. */ + export type Outbound = ApplyUpdatesErrors$Outbound; +} + +/** @internal */ +export const ApplyUpdatesResponseBody$inboundSchema: z.ZodType< + ApplyUpdatesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => ApplyUpdatesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new ApplyUpdatesResponseBody(remapped); + }); + +/** @internal */ +export type ApplyUpdatesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const ApplyUpdatesResponseBody$outboundSchema: z.ZodType< + ApplyUpdatesResponseBody$Outbound, + z.ZodTypeDef, + ApplyUpdatesResponseBody +> = z + .instanceof(ApplyUpdatesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => ApplyUpdatesErrors$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 ApplyUpdatesResponseBody$ { + /** @deprecated use `ApplyUpdatesResponseBody$inboundSchema` instead. */ + export const inboundSchema = ApplyUpdatesResponseBody$inboundSchema; + /** @deprecated use `ApplyUpdatesResponseBody$outboundSchema` instead. */ + export const outboundSchema = ApplyUpdatesResponseBody$outboundSchema; + /** @deprecated use `ApplyUpdatesResponseBody$Outbound` instead. */ + export type Outbound = ApplyUpdatesResponseBody$Outbound; +} diff --git a/src/models/cancelserveractivitiesop.ts b/src/sdk/models/errors/cancelserveractivities.ts similarity index 59% rename from src/models/cancelserveractivitiesop.ts rename to src/sdk/models/errors/cancelserveractivities.ts index 5f07e967..dcd08539 100644 --- a/src/models/cancelserveractivitiesop.ts +++ b/src/sdk/models/errors/cancelserveractivities.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type CancelServerActivitiesRequest = { - /** - * The UUID of the activity to cancel. - */ - activityUUID: string; -}; - export type CancelServerActivitiesErrors = { code?: number | undefined; message?: string | undefined; @@ -61,57 +54,6 @@ export class CancelServerActivitiesResponseBody extends Error { } } -export type CancelServerActivitiesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const CancelServerActivitiesRequest$inboundSchema: z.ZodType< - CancelServerActivitiesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - activityUUID: z.string(), -}); - -/** @internal */ -export type CancelServerActivitiesRequest$Outbound = { - activityUUID: string; -}; - -/** @internal */ -export const CancelServerActivitiesRequest$outboundSchema: z.ZodType< - CancelServerActivitiesRequest$Outbound, - z.ZodTypeDef, - CancelServerActivitiesRequest -> = z.object({ - activityUUID: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CancelServerActivitiesRequest$ { - /** @deprecated use `CancelServerActivitiesRequest$inboundSchema` instead. */ - export const inboundSchema = CancelServerActivitiesRequest$inboundSchema; - /** @deprecated use `CancelServerActivitiesRequest$outboundSchema` instead. */ - export const outboundSchema = CancelServerActivitiesRequest$outboundSchema; - /** @deprecated use `CancelServerActivitiesRequest$Outbound` instead. */ - export type Outbound = CancelServerActivitiesRequest$Outbound; -} - /** @internal */ export const CancelServerActivitiesErrors$inboundSchema: z.ZodType< CancelServerActivitiesErrors, @@ -218,63 +160,3 @@ export namespace CancelServerActivitiesResponseBody$ { /** @deprecated use `CancelServerActivitiesResponseBody$Outbound` instead. */ export type Outbound = CancelServerActivitiesResponseBody$Outbound; } - -/** @internal */ -export const CancelServerActivitiesResponse$inboundSchema: z.ZodType< - CancelServerActivitiesResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type CancelServerActivitiesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CancelServerActivitiesResponse$outboundSchema: z.ZodType< - CancelServerActivitiesResponse$Outbound, - z.ZodTypeDef, - CancelServerActivitiesResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 CancelServerActivitiesResponse$ { - /** @deprecated use `CancelServerActivitiesResponse$inboundSchema` instead. */ - export const inboundSchema = CancelServerActivitiesResponse$inboundSchema; - /** @deprecated use `CancelServerActivitiesResponse$outboundSchema` instead. */ - export const outboundSchema = CancelServerActivitiesResponse$outboundSchema; - /** @deprecated use `CancelServerActivitiesResponse$Outbound` instead. */ - export type Outbound = CancelServerActivitiesResponse$Outbound; -} diff --git a/src/models/checkforupdatesop.ts b/src/sdk/models/errors/checkforupdates.ts similarity index 53% rename from src/models/checkforupdatesop.ts rename to src/sdk/models/errors/checkforupdates.ts index 7472e3b5..e654c81a 100644 --- a/src/models/checkforupdatesop.ts +++ b/src/sdk/models/errors/checkforupdates.ts @@ -2,24 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -/** - * Indicate that you want to start download any updates found. - */ -export enum Download { - Zero = 0, - One = 1, -} - -export type CheckForUpdatesRequest = { - /** - * Indicate that you want to start download any updates found. - */ - download?: Download | undefined; -}; - export type CheckForUpdatesErrors = { code?: number | undefined; message?: string | undefined; @@ -69,74 +54,6 @@ export class CheckForUpdatesResponseBody extends Error { } } -export type CheckForUpdatesResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const Download$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Download); - -/** @internal */ -export const Download$outboundSchema: z.ZodNativeEnum = Download$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Download$ { - /** @deprecated use `Download$inboundSchema` instead. */ - export const inboundSchema = Download$inboundSchema; - /** @deprecated use `Download$outboundSchema` instead. */ - export const outboundSchema = Download$outboundSchema; -} - -/** @internal */ -export const CheckForUpdatesRequest$inboundSchema: z.ZodType< - CheckForUpdatesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - download: Download$inboundSchema.optional(), -}); - -/** @internal */ -export type CheckForUpdatesRequest$Outbound = { - download?: number | undefined; -}; - -/** @internal */ -export const CheckForUpdatesRequest$outboundSchema: z.ZodType< - CheckForUpdatesRequest$Outbound, - z.ZodTypeDef, - CheckForUpdatesRequest -> = z.object({ - download: Download$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckForUpdatesRequest$ { - /** @deprecated use `CheckForUpdatesRequest$inboundSchema` instead. */ - export const inboundSchema = CheckForUpdatesRequest$inboundSchema; - /** @deprecated use `CheckForUpdatesRequest$outboundSchema` instead. */ - export const outboundSchema = CheckForUpdatesRequest$outboundSchema; - /** @deprecated use `CheckForUpdatesRequest$Outbound` instead. */ - export type Outbound = CheckForUpdatesRequest$Outbound; -} - /** @internal */ export const CheckForUpdatesErrors$inboundSchema: z.ZodType< CheckForUpdatesErrors, @@ -241,63 +158,3 @@ export namespace CheckForUpdatesResponseBody$ { /** @deprecated use `CheckForUpdatesResponseBody$Outbound` instead. */ export type Outbound = CheckForUpdatesResponseBody$Outbound; } - -/** @internal */ -export const CheckForUpdatesResponse$inboundSchema: z.ZodType< - CheckForUpdatesResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type CheckForUpdatesResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const CheckForUpdatesResponse$outboundSchema: z.ZodType< - CheckForUpdatesResponse$Outbound, - z.ZodTypeDef, - CheckForUpdatesResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 CheckForUpdatesResponse$ { - /** @deprecated use `CheckForUpdatesResponse$inboundSchema` instead. */ - export const inboundSchema = CheckForUpdatesResponse$inboundSchema; - /** @deprecated use `CheckForUpdatesResponse$outboundSchema` instead. */ - export const outboundSchema = CheckForUpdatesResponse$outboundSchema; - /** @deprecated use `CheckForUpdatesResponse$Outbound` instead. */ - export type Outbound = CheckForUpdatesResponse$Outbound; -} diff --git a/src/models/clearplaylistcontentsop.ts b/src/sdk/models/errors/clearplaylistcontents.ts similarity index 59% rename from src/models/clearplaylistcontentsop.ts rename to src/sdk/models/errors/clearplaylistcontents.ts index 3367ce95..d987f9f2 100644 --- a/src/models/clearplaylistcontentsop.ts +++ b/src/sdk/models/errors/clearplaylistcontents.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type ClearPlaylistContentsRequest = { - /** - * the ID of the playlist - */ - playlistID: number; -}; - export type ClearPlaylistContentsErrors = { code?: number | undefined; message?: string | undefined; @@ -61,57 +54,6 @@ export class ClearPlaylistContentsResponseBody extends Error { } } -export type ClearPlaylistContentsResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const ClearPlaylistContentsRequest$inboundSchema: z.ZodType< - ClearPlaylistContentsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - playlistID: z.number(), -}); - -/** @internal */ -export type ClearPlaylistContentsRequest$Outbound = { - playlistID: number; -}; - -/** @internal */ -export const ClearPlaylistContentsRequest$outboundSchema: z.ZodType< - ClearPlaylistContentsRequest$Outbound, - z.ZodTypeDef, - ClearPlaylistContentsRequest -> = z.object({ - playlistID: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClearPlaylistContentsRequest$ { - /** @deprecated use `ClearPlaylistContentsRequest$inboundSchema` instead. */ - export const inboundSchema = ClearPlaylistContentsRequest$inboundSchema; - /** @deprecated use `ClearPlaylistContentsRequest$outboundSchema` instead. */ - export const outboundSchema = ClearPlaylistContentsRequest$outboundSchema; - /** @deprecated use `ClearPlaylistContentsRequest$Outbound` instead. */ - export type Outbound = ClearPlaylistContentsRequest$Outbound; -} - /** @internal */ export const ClearPlaylistContentsErrors$inboundSchema: z.ZodType< ClearPlaylistContentsErrors, @@ -218,63 +160,3 @@ export namespace ClearPlaylistContentsResponseBody$ { /** @deprecated use `ClearPlaylistContentsResponseBody$Outbound` instead. */ export type Outbound = ClearPlaylistContentsResponseBody$Outbound; } - -/** @internal */ -export const ClearPlaylistContentsResponse$inboundSchema: z.ZodType< - ClearPlaylistContentsResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type ClearPlaylistContentsResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const ClearPlaylistContentsResponse$outboundSchema: z.ZodType< - ClearPlaylistContentsResponse$Outbound, - z.ZodTypeDef, - ClearPlaylistContentsResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 ClearPlaylistContentsResponse$ { - /** @deprecated use `ClearPlaylistContentsResponse$inboundSchema` instead. */ - export const inboundSchema = ClearPlaylistContentsResponse$inboundSchema; - /** @deprecated use `ClearPlaylistContentsResponse$outboundSchema` instead. */ - export const outboundSchema = ClearPlaylistContentsResponse$outboundSchema; - /** @deprecated use `ClearPlaylistContentsResponse$Outbound` instead. */ - export type Outbound = ClearPlaylistContentsResponse$Outbound; -} diff --git a/src/sdk/models/errors/createplaylist.ts b/src/sdk/models/errors/createplaylist.ts new file mode 100644 index 00000000..bdc9d288 --- /dev/null +++ b/src/sdk/models/errors/createplaylist.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type CreatePlaylistErrors = { + 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 CreatePlaylistResponseBodyData = { + 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 CreatePlaylistResponseBody 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$: CreatePlaylistResponseBodyData; + + constructor(err: CreatePlaylistResponseBodyData) { + 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 = "CreatePlaylistResponseBody"; + } +} + +/** @internal */ +export const CreatePlaylistErrors$inboundSchema: z.ZodType< + CreatePlaylistErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type CreatePlaylistErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const CreatePlaylistErrors$outboundSchema: z.ZodType< + CreatePlaylistErrors$Outbound, + z.ZodTypeDef, + CreatePlaylistErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreatePlaylistErrors$ { + /** @deprecated use `CreatePlaylistErrors$inboundSchema` instead. */ + export const inboundSchema = CreatePlaylistErrors$inboundSchema; + /** @deprecated use `CreatePlaylistErrors$outboundSchema` instead. */ + export const outboundSchema = CreatePlaylistErrors$outboundSchema; + /** @deprecated use `CreatePlaylistErrors$Outbound` instead. */ + export type Outbound = CreatePlaylistErrors$Outbound; +} + +/** @internal */ +export const CreatePlaylistResponseBody$inboundSchema: z.ZodType< + CreatePlaylistResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => CreatePlaylistErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new CreatePlaylistResponseBody(remapped); + }); + +/** @internal */ +export type CreatePlaylistResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const CreatePlaylistResponseBody$outboundSchema: z.ZodType< + CreatePlaylistResponseBody$Outbound, + z.ZodTypeDef, + CreatePlaylistResponseBody +> = z + .instanceof(CreatePlaylistResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => CreatePlaylistErrors$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 CreatePlaylistResponseBody$ { + /** @deprecated use `CreatePlaylistResponseBody$inboundSchema` instead. */ + export const inboundSchema = CreatePlaylistResponseBody$inboundSchema; + /** @deprecated use `CreatePlaylistResponseBody$outboundSchema` instead. */ + export const outboundSchema = CreatePlaylistResponseBody$outboundSchema; + /** @deprecated use `CreatePlaylistResponseBody$Outbound` instead. */ + export type Outbound = CreatePlaylistResponseBody$Outbound; +} diff --git a/src/models/deletelibraryop.ts b/src/sdk/models/errors/deletelibrary.ts similarity index 58% rename from src/models/deletelibraryop.ts rename to src/sdk/models/errors/deletelibrary.ts index 39ed80e2..0ea22887 100644 --- a/src/models/deletelibraryop.ts +++ b/src/sdk/models/errors/deletelibrary.ts @@ -2,20 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type DeleteLibraryRequest = { - /** - * The unique key of the Plex library. - * - * @remarks - * Note: This is unique in the context of the Plex server. - * - */ - sectionKey: number; -}; - export type DeleteLibraryErrors = { code?: number | undefined; message?: string | undefined; @@ -65,57 +54,6 @@ export class DeleteLibraryResponseBody extends Error { } } -export type DeleteLibraryResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const DeleteLibraryRequest$inboundSchema: z.ZodType< - DeleteLibraryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - sectionKey: z.number().int(), -}); - -/** @internal */ -export type DeleteLibraryRequest$Outbound = { - sectionKey: number; -}; - -/** @internal */ -export const DeleteLibraryRequest$outboundSchema: z.ZodType< - DeleteLibraryRequest$Outbound, - z.ZodTypeDef, - DeleteLibraryRequest -> = z.object({ - sectionKey: z.number().int(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLibraryRequest$ { - /** @deprecated use `DeleteLibraryRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteLibraryRequest$inboundSchema; - /** @deprecated use `DeleteLibraryRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteLibraryRequest$outboundSchema; - /** @deprecated use `DeleteLibraryRequest$Outbound` instead. */ - export type Outbound = DeleteLibraryRequest$Outbound; -} - /** @internal */ export const DeleteLibraryErrors$inboundSchema: z.ZodType< DeleteLibraryErrors, @@ -220,63 +158,3 @@ export namespace DeleteLibraryResponseBody$ { /** @deprecated use `DeleteLibraryResponseBody$Outbound` instead. */ export type Outbound = DeleteLibraryResponseBody$Outbound; } - -/** @internal */ -export const DeleteLibraryResponse$inboundSchema: z.ZodType< - DeleteLibraryResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type DeleteLibraryResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeleteLibraryResponse$outboundSchema: z.ZodType< - DeleteLibraryResponse$Outbound, - z.ZodTypeDef, - DeleteLibraryResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 DeleteLibraryResponse$ { - /** @deprecated use `DeleteLibraryResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteLibraryResponse$inboundSchema; - /** @deprecated use `DeleteLibraryResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteLibraryResponse$outboundSchema; - /** @deprecated use `DeleteLibraryResponse$Outbound` instead. */ - export type Outbound = DeleteLibraryResponse$Outbound; -} diff --git a/src/models/deleteplaylistop.ts b/src/sdk/models/errors/deleteplaylist.ts similarity index 59% rename from src/models/deleteplaylistop.ts rename to src/sdk/models/errors/deleteplaylist.ts index 3233610f..eb60e783 100644 --- a/src/models/deleteplaylistop.ts +++ b/src/sdk/models/errors/deleteplaylist.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type DeletePlaylistRequest = { - /** - * the ID of the playlist - */ - playlistID: number; -}; - export type DeletePlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -61,57 +54,6 @@ export class DeletePlaylistResponseBody extends Error { } } -export type DeletePlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const DeletePlaylistRequest$inboundSchema: z.ZodType< - DeletePlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - playlistID: z.number(), -}); - -/** @internal */ -export type DeletePlaylistRequest$Outbound = { - playlistID: number; -}; - -/** @internal */ -export const DeletePlaylistRequest$outboundSchema: z.ZodType< - DeletePlaylistRequest$Outbound, - z.ZodTypeDef, - DeletePlaylistRequest -> = z.object({ - playlistID: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePlaylistRequest$ { - /** @deprecated use `DeletePlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistRequest$inboundSchema; - /** @deprecated use `DeletePlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistRequest$outboundSchema; - /** @deprecated use `DeletePlaylistRequest$Outbound` instead. */ - export type Outbound = DeletePlaylistRequest$Outbound; -} - /** @internal */ export const DeletePlaylistErrors$inboundSchema: z.ZodType< DeletePlaylistErrors, @@ -216,63 +158,3 @@ export namespace DeletePlaylistResponseBody$ { /** @deprecated use `DeletePlaylistResponseBody$Outbound` instead. */ export type Outbound = DeletePlaylistResponseBody$Outbound; } - -/** @internal */ -export const DeletePlaylistResponse$inboundSchema: z.ZodType< - DeletePlaylistResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type DeletePlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const DeletePlaylistResponse$outboundSchema: z.ZodType< - DeletePlaylistResponse$Outbound, - z.ZodTypeDef, - DeletePlaylistResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 DeletePlaylistResponse$ { - /** @deprecated use `DeletePlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePlaylistResponse$inboundSchema; - /** @deprecated use `DeletePlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePlaylistResponse$outboundSchema; - /** @deprecated use `DeletePlaylistResponse$Outbound` instead. */ - export type Outbound = DeletePlaylistResponse$Outbound; -} diff --git a/src/models/enablepapertrailop.ts b/src/sdk/models/errors/enablepapertrail.ts similarity index 69% rename from src/models/enablepapertrailop.ts rename to src/sdk/models/errors/enablepapertrail.ts index fe30114d..ac5a4bca 100644 --- a/src/models/enablepapertrailop.ts +++ b/src/sdk/models/errors/enablepapertrail.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type EnablePaperTrailErrors = { @@ -54,21 +54,6 @@ export class EnablePaperTrailResponseBody extends Error { } } -export type EnablePaperTrailResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export const EnablePaperTrailErrors$inboundSchema: z.ZodType< EnablePaperTrailErrors, @@ -173,63 +158,3 @@ export namespace EnablePaperTrailResponseBody$ { /** @deprecated use `EnablePaperTrailResponseBody$Outbound` instead. */ export type Outbound = EnablePaperTrailResponseBody$Outbound; } - -/** @internal */ -export const EnablePaperTrailResponse$inboundSchema: z.ZodType< - EnablePaperTrailResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type EnablePaperTrailResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const EnablePaperTrailResponse$outboundSchema: z.ZodType< - EnablePaperTrailResponse$Outbound, - z.ZodTypeDef, - EnablePaperTrailResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 EnablePaperTrailResponse$ { - /** @deprecated use `EnablePaperTrailResponse$inboundSchema` instead. */ - export const inboundSchema = EnablePaperTrailResponse$inboundSchema; - /** @deprecated use `EnablePaperTrailResponse$outboundSchema` instead. */ - export const outboundSchema = EnablePaperTrailResponse$outboundSchema; - /** @deprecated use `EnablePaperTrailResponse$Outbound` instead. */ - export type Outbound = EnablePaperTrailResponse$Outbound; -} diff --git a/src/sdk/models/errors/getalllibraries.ts b/src/sdk/models/errors/getalllibraries.ts new file mode 100644 index 00000000..e6787322 --- /dev/null +++ b/src/sdk/models/errors/getalllibraries.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetAllLibrariesErrors = { + 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 GetAllLibrariesResponseBodyData = { + 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 GetAllLibrariesResponseBody 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$: GetAllLibrariesResponseBodyData; + + constructor(err: GetAllLibrariesResponseBodyData) { + 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 = "GetAllLibrariesResponseBody"; + } +} + +/** @internal */ +export const GetAllLibrariesErrors$inboundSchema: z.ZodType< + GetAllLibrariesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetAllLibrariesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetAllLibrariesErrors$outboundSchema: z.ZodType< + GetAllLibrariesErrors$Outbound, + z.ZodTypeDef, + GetAllLibrariesErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetAllLibrariesErrors$ { + /** @deprecated use `GetAllLibrariesErrors$inboundSchema` instead. */ + export const inboundSchema = GetAllLibrariesErrors$inboundSchema; + /** @deprecated use `GetAllLibrariesErrors$outboundSchema` instead. */ + export const outboundSchema = GetAllLibrariesErrors$outboundSchema; + /** @deprecated use `GetAllLibrariesErrors$Outbound` instead. */ + export type Outbound = GetAllLibrariesErrors$Outbound; +} + +/** @internal */ +export const GetAllLibrariesResponseBody$inboundSchema: z.ZodType< + GetAllLibrariesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetAllLibrariesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetAllLibrariesResponseBody(remapped); + }); + +/** @internal */ +export type GetAllLibrariesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetAllLibrariesResponseBody$outboundSchema: z.ZodType< + GetAllLibrariesResponseBody$Outbound, + z.ZodTypeDef, + GetAllLibrariesResponseBody +> = z + .instanceof(GetAllLibrariesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetAllLibrariesErrors$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 GetAllLibrariesResponseBody$ { + /** @deprecated use `GetAllLibrariesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetAllLibrariesResponseBody$inboundSchema; + /** @deprecated use `GetAllLibrariesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetAllLibrariesResponseBody$outboundSchema; + /** @deprecated use `GetAllLibrariesResponseBody$Outbound` instead. */ + export type Outbound = GetAllLibrariesResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getavailableclients.ts b/src/sdk/models/errors/getavailableclients.ts new file mode 100644 index 00000000..ec59647d --- /dev/null +++ b/src/sdk/models/errors/getavailableclients.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetAvailableClientsErrors = { + 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 GetAvailableClientsResponseBodyData = { + 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 GetAvailableClientsResponseBody 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$: GetAvailableClientsResponseBodyData; + + constructor(err: GetAvailableClientsResponseBodyData) { + 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 = "GetAvailableClientsResponseBody"; + } +} + +/** @internal */ +export const GetAvailableClientsErrors$inboundSchema: z.ZodType< + GetAvailableClientsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetAvailableClientsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetAvailableClientsErrors$outboundSchema: z.ZodType< + GetAvailableClientsErrors$Outbound, + z.ZodTypeDef, + GetAvailableClientsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetAvailableClientsErrors$ { + /** @deprecated use `GetAvailableClientsErrors$inboundSchema` instead. */ + export const inboundSchema = GetAvailableClientsErrors$inboundSchema; + /** @deprecated use `GetAvailableClientsErrors$outboundSchema` instead. */ + export const outboundSchema = GetAvailableClientsErrors$outboundSchema; + /** @deprecated use `GetAvailableClientsErrors$Outbound` instead. */ + export type Outbound = GetAvailableClientsErrors$Outbound; +} + +/** @internal */ +export const GetAvailableClientsResponseBody$inboundSchema: z.ZodType< + GetAvailableClientsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetAvailableClientsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetAvailableClientsResponseBody(remapped); + }); + +/** @internal */ +export type GetAvailableClientsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetAvailableClientsResponseBody$outboundSchema: z.ZodType< + GetAvailableClientsResponseBody$Outbound, + z.ZodTypeDef, + GetAvailableClientsResponseBody +> = z + .instanceof(GetAvailableClientsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetAvailableClientsErrors$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 GetAvailableClientsResponseBody$ { + /** @deprecated use `GetAvailableClientsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetAvailableClientsResponseBody$inboundSchema; + /** @deprecated use `GetAvailableClientsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetAvailableClientsResponseBody$outboundSchema; + /** @deprecated use `GetAvailableClientsResponseBody$Outbound` instead. */ + export type Outbound = GetAvailableClientsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getbandwidthstatistics.ts b/src/sdk/models/errors/getbandwidthstatistics.ts new file mode 100644 index 00000000..9623f0c6 --- /dev/null +++ b/src/sdk/models/errors/getbandwidthstatistics.ts @@ -0,0 +1,162 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetBandwidthStatisticsErrors = { + 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 GetBandwidthStatisticsResponseBodyData = { + 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 GetBandwidthStatisticsResponseBody 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$: GetBandwidthStatisticsResponseBodyData; + + constructor(err: GetBandwidthStatisticsResponseBodyData) { + 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 = "GetBandwidthStatisticsResponseBody"; + } +} + +/** @internal */ +export const GetBandwidthStatisticsErrors$inboundSchema: z.ZodType< + GetBandwidthStatisticsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetBandwidthStatisticsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetBandwidthStatisticsErrors$outboundSchema: z.ZodType< + GetBandwidthStatisticsErrors$Outbound, + z.ZodTypeDef, + GetBandwidthStatisticsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetBandwidthStatisticsErrors$ { + /** @deprecated use `GetBandwidthStatisticsErrors$inboundSchema` instead. */ + export const inboundSchema = GetBandwidthStatisticsErrors$inboundSchema; + /** @deprecated use `GetBandwidthStatisticsErrors$outboundSchema` instead. */ + export const outboundSchema = GetBandwidthStatisticsErrors$outboundSchema; + /** @deprecated use `GetBandwidthStatisticsErrors$Outbound` instead. */ + export type Outbound = GetBandwidthStatisticsErrors$Outbound; +} + +/** @internal */ +export const GetBandwidthStatisticsResponseBody$inboundSchema: z.ZodType< + GetBandwidthStatisticsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetBandwidthStatisticsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetBandwidthStatisticsResponseBody(remapped); + }); + +/** @internal */ +export type GetBandwidthStatisticsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetBandwidthStatisticsResponseBody$outboundSchema: z.ZodType< + GetBandwidthStatisticsResponseBody$Outbound, + z.ZodTypeDef, + GetBandwidthStatisticsResponseBody +> = z + .instanceof(GetBandwidthStatisticsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetBandwidthStatisticsErrors$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 GetBandwidthStatisticsResponseBody$ { + /** @deprecated use `GetBandwidthStatisticsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetBandwidthStatisticsResponseBody$inboundSchema; + /** @deprecated use `GetBandwidthStatisticsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetBandwidthStatisticsResponseBody$outboundSchema; + /** @deprecated use `GetBandwidthStatisticsResponseBody$Outbound` instead. */ + export type Outbound = GetBandwidthStatisticsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getbannerimage.ts b/src/sdk/models/errors/getbannerimage.ts new file mode 100644 index 00000000..3c5694c5 --- /dev/null +++ b/src/sdk/models/errors/getbannerimage.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetBannerImageErrors = { + 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 GetBannerImageResponseBodyData = { + 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 GetBannerImageResponseBody 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$: GetBannerImageResponseBodyData; + + constructor(err: GetBannerImageResponseBodyData) { + 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 = "GetBannerImageResponseBody"; + } +} + +/** @internal */ +export const GetBannerImageErrors$inboundSchema: z.ZodType< + GetBannerImageErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetBannerImageErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetBannerImageErrors$outboundSchema: z.ZodType< + GetBannerImageErrors$Outbound, + z.ZodTypeDef, + GetBannerImageErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetBannerImageErrors$ { + /** @deprecated use `GetBannerImageErrors$inboundSchema` instead. */ + export const inboundSchema = GetBannerImageErrors$inboundSchema; + /** @deprecated use `GetBannerImageErrors$outboundSchema` instead. */ + export const outboundSchema = GetBannerImageErrors$outboundSchema; + /** @deprecated use `GetBannerImageErrors$Outbound` instead. */ + export type Outbound = GetBannerImageErrors$Outbound; +} + +/** @internal */ +export const GetBannerImageResponseBody$inboundSchema: z.ZodType< + GetBannerImageResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetBannerImageErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetBannerImageResponseBody(remapped); + }); + +/** @internal */ +export type GetBannerImageResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetBannerImageResponseBody$outboundSchema: z.ZodType< + GetBannerImageResponseBody$Outbound, + z.ZodTypeDef, + GetBannerImageResponseBody +> = z + .instanceof(GetBannerImageResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetBannerImageErrors$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 GetBannerImageResponseBody$ { + /** @deprecated use `GetBannerImageResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetBannerImageResponseBody$inboundSchema; + /** @deprecated use `GetBannerImageResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetBannerImageResponseBody$outboundSchema; + /** @deprecated use `GetBannerImageResponseBody$Outbound` instead. */ + export type Outbound = GetBannerImageResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getbutlertasks.ts b/src/sdk/models/errors/getbutlertasks.ts new file mode 100644 index 00000000..4e3aea67 --- /dev/null +++ b/src/sdk/models/errors/getbutlertasks.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetButlerTasksErrors = { + 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 GetButlerTasksResponseBodyData = { + 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 GetButlerTasksResponseBody 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$: GetButlerTasksResponseBodyData; + + constructor(err: GetButlerTasksResponseBodyData) { + 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 = "GetButlerTasksResponseBody"; + } +} + +/** @internal */ +export const GetButlerTasksErrors$inboundSchema: z.ZodType< + GetButlerTasksErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetButlerTasksErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetButlerTasksErrors$outboundSchema: z.ZodType< + GetButlerTasksErrors$Outbound, + z.ZodTypeDef, + GetButlerTasksErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetButlerTasksErrors$ { + /** @deprecated use `GetButlerTasksErrors$inboundSchema` instead. */ + export const inboundSchema = GetButlerTasksErrors$inboundSchema; + /** @deprecated use `GetButlerTasksErrors$outboundSchema` instead. */ + export const outboundSchema = GetButlerTasksErrors$outboundSchema; + /** @deprecated use `GetButlerTasksErrors$Outbound` instead. */ + export type Outbound = GetButlerTasksErrors$Outbound; +} + +/** @internal */ +export const GetButlerTasksResponseBody$inboundSchema: z.ZodType< + GetButlerTasksResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetButlerTasksErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetButlerTasksResponseBody(remapped); + }); + +/** @internal */ +export type GetButlerTasksResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetButlerTasksResponseBody$outboundSchema: z.ZodType< + GetButlerTasksResponseBody$Outbound, + z.ZodTypeDef, + GetButlerTasksResponseBody +> = z + .instanceof(GetButlerTasksResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetButlerTasksErrors$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 GetButlerTasksResponseBody$ { + /** @deprecated use `GetButlerTasksResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetButlerTasksResponseBody$inboundSchema; + /** @deprecated use `GetButlerTasksResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetButlerTasksResponseBody$outboundSchema; + /** @deprecated use `GetButlerTasksResponseBody$Outbound` instead. */ + export type Outbound = GetButlerTasksResponseBody$Outbound; +} diff --git a/src/models/getcompanionsdataop.ts b/src/sdk/models/errors/getcompanionsdata.ts similarity index 54% rename from src/models/getcompanionsdataop.ts rename to src/sdk/models/errors/getcompanionsdata.ts index 8a09987a..b03fec80 100644 --- a/src/models/getcompanionsdataop.ts +++ b/src/sdk/models/errors/getcompanionsdata.ts @@ -2,11 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetCompanionsDataOpServerList = ["https://plex.tv/api/v2"] as const; - export type GetCompanionsDataErrors = { code?: number | undefined; message?: string | undefined; @@ -56,37 +54,6 @@ export class GetCompanionsDataResponseBody extends Error { } } -export type ResponseBody = { - identifier: string; - baseURL: string; - title: string; - linkURL: string; - provides: string; - /** - * The plex authtoken used to identify with - */ - token: string; -}; - -export type GetCompanionsDataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; - /** - * Companions Data - */ - responseBodies?: Array | undefined; -}; - /** @internal */ export const GetCompanionsDataErrors$inboundSchema: z.ZodType< GetCompanionsDataErrors, @@ -191,113 +158,3 @@ export namespace GetCompanionsDataResponseBody$ { /** @deprecated use `GetCompanionsDataResponseBody$Outbound` instead. */ export type Outbound = GetCompanionsDataResponseBody$Outbound; } - -/** @internal */ -export const ResponseBody$inboundSchema: z.ZodType = z.object({ - identifier: z.string(), - baseURL: z.string(), - title: z.string(), - linkURL: z.string(), - provides: z.string(), - token: z.string(), -}); - -/** @internal */ -export type ResponseBody$Outbound = { - identifier: string; - baseURL: string; - title: string; - linkURL: string; - provides: string; - token: string; -}; - -/** @internal */ -export const ResponseBody$outboundSchema: z.ZodType< - ResponseBody$Outbound, - z.ZodTypeDef, - ResponseBody -> = z.object({ - identifier: z.string(), - baseURL: z.string(), - title: z.string(), - linkURL: z.string(), - provides: z.string(), - token: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResponseBody$ { - /** @deprecated use `ResponseBody$inboundSchema` instead. */ - export const inboundSchema = ResponseBody$inboundSchema; - /** @deprecated use `ResponseBody$outboundSchema` instead. */ - export const outboundSchema = ResponseBody$outboundSchema; - /** @deprecated use `ResponseBody$Outbound` instead. */ - export type Outbound = ResponseBody$Outbound; -} - -/** @internal */ -export const GetCompanionsDataResponse$inboundSchema: z.ZodType< - GetCompanionsDataResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - responseBodies: z.array(z.lazy(() => ResponseBody$inboundSchema)).optional(), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type GetCompanionsDataResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; - responseBodies?: Array | undefined; -}; - -/** @internal */ -export const GetCompanionsDataResponse$outboundSchema: z.ZodType< - GetCompanionsDataResponse$Outbound, - z.ZodTypeDef, - GetCompanionsDataResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - responseBodies: z.array(z.lazy(() => ResponseBody$outboundSchema)).optional(), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 GetCompanionsDataResponse$ { - /** @deprecated use `GetCompanionsDataResponse$inboundSchema` instead. */ - export const inboundSchema = GetCompanionsDataResponse$inboundSchema; - /** @deprecated use `GetCompanionsDataResponse$outboundSchema` instead. */ - export const outboundSchema = GetCompanionsDataResponse$outboundSchema; - /** @deprecated use `GetCompanionsDataResponse$Outbound` instead. */ - export type Outbound = GetCompanionsDataResponse$Outbound; -} diff --git a/src/sdk/models/errors/getdevices.ts b/src/sdk/models/errors/getdevices.ts new file mode 100644 index 00000000..c1f70ebb --- /dev/null +++ b/src/sdk/models/errors/getdevices.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetDevicesErrors = { + 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 GetDevicesResponseBodyData = { + 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 GetDevicesResponseBody 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$: GetDevicesResponseBodyData; + + constructor(err: GetDevicesResponseBodyData) { + 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 = "GetDevicesResponseBody"; + } +} + +/** @internal */ +export const GetDevicesErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetDevicesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetDevicesErrors$outboundSchema: z.ZodType< + GetDevicesErrors$Outbound, + z.ZodTypeDef, + GetDevicesErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetDevicesErrors$ { + /** @deprecated use `GetDevicesErrors$inboundSchema` instead. */ + export const inboundSchema = GetDevicesErrors$inboundSchema; + /** @deprecated use `GetDevicesErrors$outboundSchema` instead. */ + export const outboundSchema = GetDevicesErrors$outboundSchema; + /** @deprecated use `GetDevicesErrors$Outbound` instead. */ + export type Outbound = GetDevicesErrors$Outbound; +} + +/** @internal */ +export const GetDevicesResponseBody$inboundSchema: z.ZodType< + GetDevicesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetDevicesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetDevicesResponseBody(remapped); + }); + +/** @internal */ +export type GetDevicesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetDevicesResponseBody$outboundSchema: z.ZodType< + GetDevicesResponseBody$Outbound, + z.ZodTypeDef, + GetDevicesResponseBody +> = z + .instanceof(GetDevicesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetDevicesErrors$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 GetDevicesResponseBody$ { + /** @deprecated use `GetDevicesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetDevicesResponseBody$inboundSchema; + /** @deprecated use `GetDevicesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetDevicesResponseBody$outboundSchema; + /** @deprecated use `GetDevicesResponseBody$Outbound` instead. */ + export type Outbound = GetDevicesResponseBody$Outbound; +} diff --git a/src/models/getfilehashop.ts b/src/sdk/models/errors/getfilehash.ts similarity index 57% rename from src/models/getfilehashop.ts rename to src/sdk/models/errors/getfilehash.ts index 34412238..612f97b9 100644 --- a/src/models/getfilehashop.ts +++ b/src/sdk/models/errors/getfilehash.ts @@ -2,20 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetFileHashRequest = { - /** - * This is the path to the local file, must be prefixed by `file://` - */ - url: string; - /** - * Item type - */ - type?: number | undefined; -}; - export type GetFileHashErrors = { code?: number | undefined; message?: string | undefined; @@ -65,60 +54,6 @@ export class GetFileHashResponseBody extends Error { } } -export type GetFileHashResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const GetFileHashRequest$inboundSchema: z.ZodType< - GetFileHashRequest, - z.ZodTypeDef, - unknown -> = z.object({ - url: z.string(), - type: z.number().optional(), -}); - -/** @internal */ -export type GetFileHashRequest$Outbound = { - url: string; - type?: number | undefined; -}; - -/** @internal */ -export const GetFileHashRequest$outboundSchema: z.ZodType< - GetFileHashRequest$Outbound, - z.ZodTypeDef, - GetFileHashRequest -> = z.object({ - url: z.string(), - type: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFileHashRequest$ { - /** @deprecated use `GetFileHashRequest$inboundSchema` instead. */ - export const inboundSchema = GetFileHashRequest$inboundSchema; - /** @deprecated use `GetFileHashRequest$outboundSchema` instead. */ - export const outboundSchema = GetFileHashRequest$outboundSchema; - /** @deprecated use `GetFileHashRequest$Outbound` instead. */ - export type Outbound = GetFileHashRequest$Outbound; -} - /** @internal */ export const GetFileHashErrors$inboundSchema: z.ZodType = z.object({ @@ -220,63 +155,3 @@ export namespace GetFileHashResponseBody$ { /** @deprecated use `GetFileHashResponseBody$Outbound` instead. */ export type Outbound = GetFileHashResponseBody$Outbound; } - -/** @internal */ -export const GetFileHashResponse$inboundSchema: z.ZodType< - GetFileHashResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type GetFileHashResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetFileHashResponse$outboundSchema: z.ZodType< - GetFileHashResponse$Outbound, - z.ZodTypeDef, - GetFileHashResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 GetFileHashResponse$ { - /** @deprecated use `GetFileHashResponse$inboundSchema` instead. */ - export const inboundSchema = GetFileHashResponse$inboundSchema; - /** @deprecated use `GetFileHashResponse$outboundSchema` instead. */ - export const outboundSchema = GetFileHashResponse$outboundSchema; - /** @deprecated use `GetFileHashResponse$Outbound` instead. */ - export type Outbound = GetFileHashResponse$Outbound; -} diff --git a/src/sdk/models/errors/getgeodata.ts b/src/sdk/models/errors/getgeodata.ts new file mode 100644 index 00000000..6ad6b4e4 --- /dev/null +++ b/src/sdk/models/errors/getgeodata.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetGeoDataErrors = { + 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 GetGeoDataResponseBodyData = { + 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 GetGeoDataResponseBody 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$: GetGeoDataResponseBodyData; + + constructor(err: GetGeoDataResponseBodyData) { + 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 = "GetGeoDataResponseBody"; + } +} + +/** @internal */ +export const GetGeoDataErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetGeoDataErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetGeoDataErrors$outboundSchema: z.ZodType< + GetGeoDataErrors$Outbound, + z.ZodTypeDef, + GetGeoDataErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetGeoDataErrors$ { + /** @deprecated use `GetGeoDataErrors$inboundSchema` instead. */ + export const inboundSchema = GetGeoDataErrors$inboundSchema; + /** @deprecated use `GetGeoDataErrors$outboundSchema` instead. */ + export const outboundSchema = GetGeoDataErrors$outboundSchema; + /** @deprecated use `GetGeoDataErrors$Outbound` instead. */ + export type Outbound = GetGeoDataErrors$Outbound; +} + +/** @internal */ +export const GetGeoDataResponseBody$inboundSchema: z.ZodType< + GetGeoDataResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetGeoDataErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetGeoDataResponseBody(remapped); + }); + +/** @internal */ +export type GetGeoDataResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetGeoDataResponseBody$outboundSchema: z.ZodType< + GetGeoDataResponseBody$Outbound, + z.ZodTypeDef, + GetGeoDataResponseBody +> = z + .instanceof(GetGeoDataResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetGeoDataErrors$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 GetGeoDataResponseBody$ { + /** @deprecated use `GetGeoDataResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetGeoDataResponseBody$inboundSchema; + /** @deprecated use `GetGeoDataResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetGeoDataResponseBody$outboundSchema; + /** @deprecated use `GetGeoDataResponseBody$Outbound` instead. */ + export type Outbound = GetGeoDataResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getglobalhubs.ts b/src/sdk/models/errors/getglobalhubs.ts new file mode 100644 index 00000000..740aeec3 --- /dev/null +++ b/src/sdk/models/errors/getglobalhubs.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetGlobalHubsErrors = { + 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 GetGlobalHubsResponseBodyData = { + 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 GetGlobalHubsResponseBody 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$: GetGlobalHubsResponseBodyData; + + constructor(err: GetGlobalHubsResponseBodyData) { + 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 = "GetGlobalHubsResponseBody"; + } +} + +/** @internal */ +export const GetGlobalHubsErrors$inboundSchema: z.ZodType< + GetGlobalHubsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetGlobalHubsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetGlobalHubsErrors$outboundSchema: z.ZodType< + GetGlobalHubsErrors$Outbound, + z.ZodTypeDef, + GetGlobalHubsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetGlobalHubsErrors$ { + /** @deprecated use `GetGlobalHubsErrors$inboundSchema` instead. */ + export const inboundSchema = GetGlobalHubsErrors$inboundSchema; + /** @deprecated use `GetGlobalHubsErrors$outboundSchema` instead. */ + export const outboundSchema = GetGlobalHubsErrors$outboundSchema; + /** @deprecated use `GetGlobalHubsErrors$Outbound` instead. */ + export type Outbound = GetGlobalHubsErrors$Outbound; +} + +/** @internal */ +export const GetGlobalHubsResponseBody$inboundSchema: z.ZodType< + GetGlobalHubsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetGlobalHubsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetGlobalHubsResponseBody(remapped); + }); + +/** @internal */ +export type GetGlobalHubsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetGlobalHubsResponseBody$outboundSchema: z.ZodType< + GetGlobalHubsResponseBody$Outbound, + z.ZodTypeDef, + GetGlobalHubsResponseBody +> = z + .instanceof(GetGlobalHubsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetGlobalHubsErrors$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 GetGlobalHubsResponseBody$ { + /** @deprecated use `GetGlobalHubsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetGlobalHubsResponseBody$inboundSchema; + /** @deprecated use `GetGlobalHubsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetGlobalHubsResponseBody$outboundSchema; + /** @deprecated use `GetGlobalHubsResponseBody$Outbound` instead. */ + export type Outbound = GetGlobalHubsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/gethomedata.ts b/src/sdk/models/errors/gethomedata.ts new file mode 100644 index 00000000..7c7979c4 --- /dev/null +++ b/src/sdk/models/errors/gethomedata.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetHomeDataErrors = { + 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 GetHomeDataResponseBodyData = { + 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 GetHomeDataResponseBody 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$: GetHomeDataResponseBodyData; + + constructor(err: GetHomeDataResponseBodyData) { + 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 = "GetHomeDataResponseBody"; + } +} + +/** @internal */ +export const GetHomeDataErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetHomeDataErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetHomeDataErrors$outboundSchema: z.ZodType< + GetHomeDataErrors$Outbound, + z.ZodTypeDef, + GetHomeDataErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetHomeDataErrors$ { + /** @deprecated use `GetHomeDataErrors$inboundSchema` instead. */ + export const inboundSchema = GetHomeDataErrors$inboundSchema; + /** @deprecated use `GetHomeDataErrors$outboundSchema` instead. */ + export const outboundSchema = GetHomeDataErrors$outboundSchema; + /** @deprecated use `GetHomeDataErrors$Outbound` instead. */ + export type Outbound = GetHomeDataErrors$Outbound; +} + +/** @internal */ +export const GetHomeDataResponseBody$inboundSchema: z.ZodType< + GetHomeDataResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetHomeDataErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetHomeDataResponseBody(remapped); + }); + +/** @internal */ +export type GetHomeDataResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetHomeDataResponseBody$outboundSchema: z.ZodType< + GetHomeDataResponseBody$Outbound, + z.ZodTypeDef, + GetHomeDataResponseBody +> = z + .instanceof(GetHomeDataResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetHomeDataErrors$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 GetHomeDataResponseBody$ { + /** @deprecated use `GetHomeDataResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetHomeDataResponseBody$inboundSchema; + /** @deprecated use `GetHomeDataResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetHomeDataResponseBody$outboundSchema; + /** @deprecated use `GetHomeDataResponseBody$Outbound` instead. */ + export type Outbound = GetHomeDataResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getlibrarydetails.ts b/src/sdk/models/errors/getlibrarydetails.ts new file mode 100644 index 00000000..61c4f6bb --- /dev/null +++ b/src/sdk/models/errors/getlibrarydetails.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetLibraryDetailsErrors = { + 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 GetLibraryDetailsResponseBodyData = { + 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 GetLibraryDetailsResponseBody 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$: GetLibraryDetailsResponseBodyData; + + constructor(err: GetLibraryDetailsResponseBodyData) { + 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 = "GetLibraryDetailsResponseBody"; + } +} + +/** @internal */ +export const GetLibraryDetailsErrors$inboundSchema: z.ZodType< + GetLibraryDetailsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetLibraryDetailsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetLibraryDetailsErrors$outboundSchema: z.ZodType< + GetLibraryDetailsErrors$Outbound, + z.ZodTypeDef, + GetLibraryDetailsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryDetailsErrors$ { + /** @deprecated use `GetLibraryDetailsErrors$inboundSchema` instead. */ + export const inboundSchema = GetLibraryDetailsErrors$inboundSchema; + /** @deprecated use `GetLibraryDetailsErrors$outboundSchema` instead. */ + export const outboundSchema = GetLibraryDetailsErrors$outboundSchema; + /** @deprecated use `GetLibraryDetailsErrors$Outbound` instead. */ + export type Outbound = GetLibraryDetailsErrors$Outbound; +} + +/** @internal */ +export const GetLibraryDetailsResponseBody$inboundSchema: z.ZodType< + GetLibraryDetailsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetLibraryDetailsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetLibraryDetailsResponseBody(remapped); + }); + +/** @internal */ +export type GetLibraryDetailsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetLibraryDetailsResponseBody$outboundSchema: z.ZodType< + GetLibraryDetailsResponseBody$Outbound, + z.ZodTypeDef, + GetLibraryDetailsResponseBody +> = z + .instanceof(GetLibraryDetailsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetLibraryDetailsErrors$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 GetLibraryDetailsResponseBody$ { + /** @deprecated use `GetLibraryDetailsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetLibraryDetailsResponseBody$inboundSchema; + /** @deprecated use `GetLibraryDetailsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetLibraryDetailsResponseBody$outboundSchema; + /** @deprecated use `GetLibraryDetailsResponseBody$Outbound` instead. */ + export type Outbound = GetLibraryDetailsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getlibraryhubs.ts b/src/sdk/models/errors/getlibraryhubs.ts new file mode 100644 index 00000000..578bacd4 --- /dev/null +++ b/src/sdk/models/errors/getlibraryhubs.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetLibraryHubsErrors = { + 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 GetLibraryHubsResponseBodyData = { + 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 GetLibraryHubsResponseBody 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$: GetLibraryHubsResponseBodyData; + + constructor(err: GetLibraryHubsResponseBodyData) { + 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 = "GetLibraryHubsResponseBody"; + } +} + +/** @internal */ +export const GetLibraryHubsErrors$inboundSchema: z.ZodType< + GetLibraryHubsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetLibraryHubsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetLibraryHubsErrors$outboundSchema: z.ZodType< + GetLibraryHubsErrors$Outbound, + z.ZodTypeDef, + GetLibraryHubsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryHubsErrors$ { + /** @deprecated use `GetLibraryHubsErrors$inboundSchema` instead. */ + export const inboundSchema = GetLibraryHubsErrors$inboundSchema; + /** @deprecated use `GetLibraryHubsErrors$outboundSchema` instead. */ + export const outboundSchema = GetLibraryHubsErrors$outboundSchema; + /** @deprecated use `GetLibraryHubsErrors$Outbound` instead. */ + export type Outbound = GetLibraryHubsErrors$Outbound; +} + +/** @internal */ +export const GetLibraryHubsResponseBody$inboundSchema: z.ZodType< + GetLibraryHubsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetLibraryHubsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetLibraryHubsResponseBody(remapped); + }); + +/** @internal */ +export type GetLibraryHubsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetLibraryHubsResponseBody$outboundSchema: z.ZodType< + GetLibraryHubsResponseBody$Outbound, + z.ZodTypeDef, + GetLibraryHubsResponseBody +> = z + .instanceof(GetLibraryHubsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetLibraryHubsErrors$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 GetLibraryHubsResponseBody$ { + /** @deprecated use `GetLibraryHubsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetLibraryHubsResponseBody$inboundSchema; + /** @deprecated use `GetLibraryHubsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetLibraryHubsResponseBody$outboundSchema; + /** @deprecated use `GetLibraryHubsResponseBody$Outbound` instead. */ + export type Outbound = GetLibraryHubsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getlibraryitems.ts b/src/sdk/models/errors/getlibraryitems.ts new file mode 100644 index 00000000..00c705a6 --- /dev/null +++ b/src/sdk/models/errors/getlibraryitems.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetLibraryItemsErrors = { + 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 GetLibraryItemsResponseBodyData = { + 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 GetLibraryItemsResponseBody 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$: GetLibraryItemsResponseBodyData; + + constructor(err: GetLibraryItemsResponseBodyData) { + 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 = "GetLibraryItemsResponseBody"; + } +} + +/** @internal */ +export const GetLibraryItemsErrors$inboundSchema: z.ZodType< + GetLibraryItemsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetLibraryItemsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetLibraryItemsErrors$outboundSchema: z.ZodType< + GetLibraryItemsErrors$Outbound, + z.ZodTypeDef, + GetLibraryItemsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLibraryItemsErrors$ { + /** @deprecated use `GetLibraryItemsErrors$inboundSchema` instead. */ + export const inboundSchema = GetLibraryItemsErrors$inboundSchema; + /** @deprecated use `GetLibraryItemsErrors$outboundSchema` instead. */ + export const outboundSchema = GetLibraryItemsErrors$outboundSchema; + /** @deprecated use `GetLibraryItemsErrors$Outbound` instead. */ + export type Outbound = GetLibraryItemsErrors$Outbound; +} + +/** @internal */ +export const GetLibraryItemsResponseBody$inboundSchema: z.ZodType< + GetLibraryItemsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetLibraryItemsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetLibraryItemsResponseBody(remapped); + }); + +/** @internal */ +export type GetLibraryItemsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetLibraryItemsResponseBody$outboundSchema: z.ZodType< + GetLibraryItemsResponseBody$Outbound, + z.ZodTypeDef, + GetLibraryItemsResponseBody +> = z + .instanceof(GetLibraryItemsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetLibraryItemsErrors$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 GetLibraryItemsResponseBody$ { + /** @deprecated use `GetLibraryItemsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetLibraryItemsResponseBody$inboundSchema; + /** @deprecated use `GetLibraryItemsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetLibraryItemsResponseBody$outboundSchema; + /** @deprecated use `GetLibraryItemsResponseBody$Outbound` instead. */ + export type Outbound = GetLibraryItemsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getmediaproviders.ts b/src/sdk/models/errors/getmediaproviders.ts new file mode 100644 index 00000000..d7dded27 --- /dev/null +++ b/src/sdk/models/errors/getmediaproviders.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetMediaProvidersErrors = { + 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 GetMediaProvidersResponseBodyData = { + 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 GetMediaProvidersResponseBody 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$: GetMediaProvidersResponseBodyData; + + constructor(err: GetMediaProvidersResponseBodyData) { + 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 = "GetMediaProvidersResponseBody"; + } +} + +/** @internal */ +export const GetMediaProvidersErrors$inboundSchema: z.ZodType< + GetMediaProvidersErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetMediaProvidersErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMediaProvidersErrors$outboundSchema: z.ZodType< + GetMediaProvidersErrors$Outbound, + z.ZodTypeDef, + GetMediaProvidersErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMediaProvidersErrors$ { + /** @deprecated use `GetMediaProvidersErrors$inboundSchema` instead. */ + export const inboundSchema = GetMediaProvidersErrors$inboundSchema; + /** @deprecated use `GetMediaProvidersErrors$outboundSchema` instead. */ + export const outboundSchema = GetMediaProvidersErrors$outboundSchema; + /** @deprecated use `GetMediaProvidersErrors$Outbound` instead. */ + export type Outbound = GetMediaProvidersErrors$Outbound; +} + +/** @internal */ +export const GetMediaProvidersResponseBody$inboundSchema: z.ZodType< + GetMediaProvidersResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMediaProvidersErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMediaProvidersResponseBody(remapped); + }); + +/** @internal */ +export type GetMediaProvidersResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMediaProvidersResponseBody$outboundSchema: z.ZodType< + GetMediaProvidersResponseBody$Outbound, + z.ZodTypeDef, + GetMediaProvidersResponseBody +> = z + .instanceof(GetMediaProvidersResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetMediaProvidersErrors$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 GetMediaProvidersResponseBody$ { + /** @deprecated use `GetMediaProvidersResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMediaProvidersResponseBody$inboundSchema; + /** @deprecated use `GetMediaProvidersResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMediaProvidersResponseBody$outboundSchema; + /** @deprecated use `GetMediaProvidersResponseBody$Outbound` instead. */ + export type Outbound = GetMediaProvidersResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getmetadatabyratingkey.ts b/src/sdk/models/errors/getmetadatabyratingkey.ts new file mode 100644 index 00000000..f2bae81f --- /dev/null +++ b/src/sdk/models/errors/getmetadatabyratingkey.ts @@ -0,0 +1,162 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetMetaDataByRatingKeyErrors = { + 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 GetMetaDataByRatingKeyResponseBodyData = { + 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 GetMetaDataByRatingKeyResponseBody 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$: GetMetaDataByRatingKeyResponseBodyData; + + constructor(err: GetMetaDataByRatingKeyResponseBodyData) { + 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 = "GetMetaDataByRatingKeyResponseBody"; + } +} + +/** @internal */ +export const GetMetaDataByRatingKeyErrors$inboundSchema: z.ZodType< + GetMetaDataByRatingKeyErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetMetaDataByRatingKeyErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMetaDataByRatingKeyErrors$outboundSchema: z.ZodType< + GetMetaDataByRatingKeyErrors$Outbound, + z.ZodTypeDef, + GetMetaDataByRatingKeyErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetaDataByRatingKeyErrors$ { + /** @deprecated use `GetMetaDataByRatingKeyErrors$inboundSchema` instead. */ + export const inboundSchema = GetMetaDataByRatingKeyErrors$inboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyErrors$outboundSchema` instead. */ + export const outboundSchema = GetMetaDataByRatingKeyErrors$outboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyErrors$Outbound` instead. */ + export type Outbound = GetMetaDataByRatingKeyErrors$Outbound; +} + +/** @internal */ +export const GetMetaDataByRatingKeyResponseBody$inboundSchema: z.ZodType< + GetMetaDataByRatingKeyResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMetaDataByRatingKeyErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMetaDataByRatingKeyResponseBody(remapped); + }); + +/** @internal */ +export type GetMetaDataByRatingKeyResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMetaDataByRatingKeyResponseBody$outboundSchema: z.ZodType< + GetMetaDataByRatingKeyResponseBody$Outbound, + z.ZodTypeDef, + GetMetaDataByRatingKeyResponseBody +> = z + .instanceof(GetMetaDataByRatingKeyResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetMetaDataByRatingKeyErrors$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 GetMetaDataByRatingKeyResponseBody$ { + /** @deprecated use `GetMetaDataByRatingKeyResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMetaDataByRatingKeyResponseBody$inboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMetaDataByRatingKeyResponseBody$outboundSchema; + /** @deprecated use `GetMetaDataByRatingKeyResponseBody$Outbound` instead. */ + export type Outbound = GetMetaDataByRatingKeyResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getmetadatachildren.ts b/src/sdk/models/errors/getmetadatachildren.ts new file mode 100644 index 00000000..3788f44a --- /dev/null +++ b/src/sdk/models/errors/getmetadatachildren.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetMetadataChildrenErrors = { + 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 GetMetadataChildrenResponseBodyData = { + 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 GetMetadataChildrenResponseBody 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$: GetMetadataChildrenResponseBodyData; + + constructor(err: GetMetadataChildrenResponseBodyData) { + 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 = "GetMetadataChildrenResponseBody"; + } +} + +/** @internal */ +export const GetMetadataChildrenErrors$inboundSchema: z.ZodType< + GetMetadataChildrenErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetMetadataChildrenErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMetadataChildrenErrors$outboundSchema: z.ZodType< + GetMetadataChildrenErrors$Outbound, + z.ZodTypeDef, + GetMetadataChildrenErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetadataChildrenErrors$ { + /** @deprecated use `GetMetadataChildrenErrors$inboundSchema` instead. */ + export const inboundSchema = GetMetadataChildrenErrors$inboundSchema; + /** @deprecated use `GetMetadataChildrenErrors$outboundSchema` instead. */ + export const outboundSchema = GetMetadataChildrenErrors$outboundSchema; + /** @deprecated use `GetMetadataChildrenErrors$Outbound` instead. */ + export type Outbound = GetMetadataChildrenErrors$Outbound; +} + +/** @internal */ +export const GetMetadataChildrenResponseBody$inboundSchema: z.ZodType< + GetMetadataChildrenResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMetadataChildrenErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMetadataChildrenResponseBody(remapped); + }); + +/** @internal */ +export type GetMetadataChildrenResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMetadataChildrenResponseBody$outboundSchema: z.ZodType< + GetMetadataChildrenResponseBody$Outbound, + z.ZodTypeDef, + GetMetadataChildrenResponseBody +> = z + .instanceof(GetMetadataChildrenResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetMetadataChildrenErrors$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 GetMetadataChildrenResponseBody$ { + /** @deprecated use `GetMetadataChildrenResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMetadataChildrenResponseBody$inboundSchema; + /** @deprecated use `GetMetadataChildrenResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMetadataChildrenResponseBody$outboundSchema; + /** @deprecated use `GetMetadataChildrenResponseBody$Outbound` instead. */ + export type Outbound = GetMetadataChildrenResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getmyplexaccount.ts b/src/sdk/models/errors/getmyplexaccount.ts new file mode 100644 index 00000000..db08e8f6 --- /dev/null +++ b/src/sdk/models/errors/getmyplexaccount.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetMyPlexAccountErrors = { + 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 GetMyPlexAccountResponseBodyData = { + 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 GetMyPlexAccountResponseBody 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$: GetMyPlexAccountResponseBodyData; + + constructor(err: GetMyPlexAccountResponseBodyData) { + 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 = "GetMyPlexAccountResponseBody"; + } +} + +/** @internal */ +export const GetMyPlexAccountErrors$inboundSchema: z.ZodType< + GetMyPlexAccountErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetMyPlexAccountErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetMyPlexAccountErrors$outboundSchema: z.ZodType< + GetMyPlexAccountErrors$Outbound, + z.ZodTypeDef, + GetMyPlexAccountErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMyPlexAccountErrors$ { + /** @deprecated use `GetMyPlexAccountErrors$inboundSchema` instead. */ + export const inboundSchema = GetMyPlexAccountErrors$inboundSchema; + /** @deprecated use `GetMyPlexAccountErrors$outboundSchema` instead. */ + export const outboundSchema = GetMyPlexAccountErrors$outboundSchema; + /** @deprecated use `GetMyPlexAccountErrors$Outbound` instead. */ + export type Outbound = GetMyPlexAccountErrors$Outbound; +} + +/** @internal */ +export const GetMyPlexAccountResponseBody$inboundSchema: z.ZodType< + GetMyPlexAccountResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetMyPlexAccountErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetMyPlexAccountResponseBody(remapped); + }); + +/** @internal */ +export type GetMyPlexAccountResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetMyPlexAccountResponseBody$outboundSchema: z.ZodType< + GetMyPlexAccountResponseBody$Outbound, + z.ZodTypeDef, + GetMyPlexAccountResponseBody +> = z + .instanceof(GetMyPlexAccountResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetMyPlexAccountErrors$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 GetMyPlexAccountResponseBody$ { + /** @deprecated use `GetMyPlexAccountResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetMyPlexAccountResponseBody$inboundSchema; + /** @deprecated use `GetMyPlexAccountResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetMyPlexAccountResponseBody$outboundSchema; + /** @deprecated use `GetMyPlexAccountResponseBody$Outbound` instead. */ + export type Outbound = GetMyPlexAccountResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getondeck.ts b/src/sdk/models/errors/getondeck.ts new file mode 100644 index 00000000..72cd5a62 --- /dev/null +++ b/src/sdk/models/errors/getondeck.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetOnDeckErrors = { + 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 GetOnDeckResponseBodyData = { + 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 GetOnDeckResponseBody 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$: GetOnDeckResponseBodyData; + + constructor(err: GetOnDeckResponseBodyData) { + 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 = "GetOnDeckResponseBody"; + } +} + +/** @internal */ +export const GetOnDeckErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetOnDeckErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetOnDeckErrors$outboundSchema: z.ZodType< + GetOnDeckErrors$Outbound, + z.ZodTypeDef, + GetOnDeckErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetOnDeckErrors$ { + /** @deprecated use `GetOnDeckErrors$inboundSchema` instead. */ + export const inboundSchema = GetOnDeckErrors$inboundSchema; + /** @deprecated use `GetOnDeckErrors$outboundSchema` instead. */ + export const outboundSchema = GetOnDeckErrors$outboundSchema; + /** @deprecated use `GetOnDeckErrors$Outbound` instead. */ + export type Outbound = GetOnDeckErrors$Outbound; +} + +/** @internal */ +export const GetOnDeckResponseBody$inboundSchema: z.ZodType< + GetOnDeckResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetOnDeckErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetOnDeckResponseBody(remapped); + }); + +/** @internal */ +export type GetOnDeckResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetOnDeckResponseBody$outboundSchema: z.ZodType< + GetOnDeckResponseBody$Outbound, + z.ZodTypeDef, + GetOnDeckResponseBody +> = z + .instanceof(GetOnDeckResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetOnDeckErrors$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 GetOnDeckResponseBody$ { + /** @deprecated use `GetOnDeckResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetOnDeckResponseBody$inboundSchema; + /** @deprecated use `GetOnDeckResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetOnDeckResponseBody$outboundSchema; + /** @deprecated use `GetOnDeckResponseBody$Outbound` instead. */ + export type Outbound = GetOnDeckResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getpin.ts b/src/sdk/models/errors/getpin.ts new file mode 100644 index 00000000..1874d6cb --- /dev/null +++ b/src/sdk/models/errors/getpin.ts @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetPinErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Bad Request response when the X-Plex-Client-Identifier is missing + */ +export type GetPinResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Bad Request response when the X-Plex-Client-Identifier is missing + */ +export class GetPinResponseBody 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$: GetPinResponseBodyData; + + constructor(err: GetPinResponseBodyData) { + 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 = "GetPinResponseBody"; + } +} + +/** @internal */ +export const GetPinErrors$inboundSchema: z.ZodType = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetPinErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPinErrors$outboundSchema: z.ZodType< + GetPinErrors$Outbound, + z.ZodTypeDef, + GetPinErrors +> = 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 GetPinErrors$ { + /** @deprecated use `GetPinErrors$inboundSchema` instead. */ + export const inboundSchema = GetPinErrors$inboundSchema; + /** @deprecated use `GetPinErrors$outboundSchema` instead. */ + export const outboundSchema = GetPinErrors$outboundSchema; + /** @deprecated use `GetPinErrors$Outbound` instead. */ + export type Outbound = GetPinErrors$Outbound; +} + +/** @internal */ +export const GetPinResponseBody$inboundSchema: z.ZodType< + GetPinResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPinErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPinResponseBody(remapped); + }); + +/** @internal */ +export type GetPinResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPinResponseBody$outboundSchema: z.ZodType< + GetPinResponseBody$Outbound, + z.ZodTypeDef, + GetPinResponseBody +> = z + .instanceof(GetPinResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetPinErrors$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 GetPinResponseBody$ { + /** @deprecated use `GetPinResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPinResponseBody$inboundSchema; + /** @deprecated use `GetPinResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPinResponseBody$outboundSchema; + /** @deprecated use `GetPinResponseBody$Outbound` instead. */ + export type Outbound = GetPinResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getplaylist.ts b/src/sdk/models/errors/getplaylist.ts new file mode 100644 index 00000000..637aa7b5 --- /dev/null +++ b/src/sdk/models/errors/getplaylist.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetPlaylistErrors = { + 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 GetPlaylistResponseBodyData = { + 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 GetPlaylistResponseBody 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$: GetPlaylistResponseBodyData; + + constructor(err: GetPlaylistResponseBodyData) { + 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 = "GetPlaylistResponseBody"; + } +} + +/** @internal */ +export const GetPlaylistErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetPlaylistErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPlaylistErrors$outboundSchema: z.ZodType< + GetPlaylistErrors$Outbound, + z.ZodTypeDef, + GetPlaylistErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistErrors$ { + /** @deprecated use `GetPlaylistErrors$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistErrors$inboundSchema; + /** @deprecated use `GetPlaylistErrors$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistErrors$outboundSchema; + /** @deprecated use `GetPlaylistErrors$Outbound` instead. */ + export type Outbound = GetPlaylistErrors$Outbound; +} + +/** @internal */ +export const GetPlaylistResponseBody$inboundSchema: z.ZodType< + GetPlaylistResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPlaylistErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPlaylistResponseBody(remapped); + }); + +/** @internal */ +export type GetPlaylistResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPlaylistResponseBody$outboundSchema: z.ZodType< + GetPlaylistResponseBody$Outbound, + z.ZodTypeDef, + GetPlaylistResponseBody +> = z + .instanceof(GetPlaylistResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetPlaylistErrors$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 GetPlaylistResponseBody$ { + /** @deprecated use `GetPlaylistResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistResponseBody$inboundSchema; + /** @deprecated use `GetPlaylistResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistResponseBody$outboundSchema; + /** @deprecated use `GetPlaylistResponseBody$Outbound` instead. */ + export type Outbound = GetPlaylistResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getplaylistcontents.ts b/src/sdk/models/errors/getplaylistcontents.ts new file mode 100644 index 00000000..cb4a66a5 --- /dev/null +++ b/src/sdk/models/errors/getplaylistcontents.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetPlaylistContentsErrors = { + 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 GetPlaylistContentsResponseBodyData = { + 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 GetPlaylistContentsResponseBody 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$: GetPlaylistContentsResponseBodyData; + + constructor(err: GetPlaylistContentsResponseBodyData) { + 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 = "GetPlaylistContentsResponseBody"; + } +} + +/** @internal */ +export const GetPlaylistContentsErrors$inboundSchema: z.ZodType< + GetPlaylistContentsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetPlaylistContentsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPlaylistContentsErrors$outboundSchema: z.ZodType< + GetPlaylistContentsErrors$Outbound, + z.ZodTypeDef, + GetPlaylistContentsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistContentsErrors$ { + /** @deprecated use `GetPlaylistContentsErrors$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistContentsErrors$inboundSchema; + /** @deprecated use `GetPlaylistContentsErrors$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistContentsErrors$outboundSchema; + /** @deprecated use `GetPlaylistContentsErrors$Outbound` instead. */ + export type Outbound = GetPlaylistContentsErrors$Outbound; +} + +/** @internal */ +export const GetPlaylistContentsResponseBody$inboundSchema: z.ZodType< + GetPlaylistContentsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPlaylistContentsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPlaylistContentsResponseBody(remapped); + }); + +/** @internal */ +export type GetPlaylistContentsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPlaylistContentsResponseBody$outboundSchema: z.ZodType< + GetPlaylistContentsResponseBody$Outbound, + z.ZodTypeDef, + GetPlaylistContentsResponseBody +> = z + .instanceof(GetPlaylistContentsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetPlaylistContentsErrors$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 GetPlaylistContentsResponseBody$ { + /** @deprecated use `GetPlaylistContentsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistContentsResponseBody$inboundSchema; + /** @deprecated use `GetPlaylistContentsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistContentsResponseBody$outboundSchema; + /** @deprecated use `GetPlaylistContentsResponseBody$Outbound` instead. */ + export type Outbound = GetPlaylistContentsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getplaylists.ts b/src/sdk/models/errors/getplaylists.ts new file mode 100644 index 00000000..ae20571c --- /dev/null +++ b/src/sdk/models/errors/getplaylists.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetPlaylistsErrors = { + 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 GetPlaylistsResponseBodyData = { + 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 GetPlaylistsResponseBody 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$: GetPlaylistsResponseBodyData; + + constructor(err: GetPlaylistsResponseBodyData) { + 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 = "GetPlaylistsResponseBody"; + } +} + +/** @internal */ +export const GetPlaylistsErrors$inboundSchema: z.ZodType< + GetPlaylistsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetPlaylistsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetPlaylistsErrors$outboundSchema: z.ZodType< + GetPlaylistsErrors$Outbound, + z.ZodTypeDef, + GetPlaylistsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetPlaylistsErrors$ { + /** @deprecated use `GetPlaylistsErrors$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistsErrors$inboundSchema; + /** @deprecated use `GetPlaylistsErrors$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistsErrors$outboundSchema; + /** @deprecated use `GetPlaylistsErrors$Outbound` instead. */ + export type Outbound = GetPlaylistsErrors$Outbound; +} + +/** @internal */ +export const GetPlaylistsResponseBody$inboundSchema: z.ZodType< + GetPlaylistsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetPlaylistsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetPlaylistsResponseBody(remapped); + }); + +/** @internal */ +export type GetPlaylistsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetPlaylistsResponseBody$outboundSchema: z.ZodType< + GetPlaylistsResponseBody$Outbound, + z.ZodTypeDef, + GetPlaylistsResponseBody +> = z + .instanceof(GetPlaylistsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetPlaylistsErrors$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 GetPlaylistsResponseBody$ { + /** @deprecated use `GetPlaylistsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetPlaylistsResponseBody$inboundSchema; + /** @deprecated use `GetPlaylistsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetPlaylistsResponseBody$outboundSchema; + /** @deprecated use `GetPlaylistsResponseBody$Outbound` instead. */ + export type Outbound = GetPlaylistsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getrecentlyadded.ts b/src/sdk/models/errors/getrecentlyadded.ts new file mode 100644 index 00000000..f4853894 --- /dev/null +++ b/src/sdk/models/errors/getrecentlyadded.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetRecentlyAddedErrors = { + 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 GetRecentlyAddedResponseBodyData = { + 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 GetRecentlyAddedResponseBody 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$: GetRecentlyAddedResponseBodyData; + + constructor(err: GetRecentlyAddedResponseBodyData) { + 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 = "GetRecentlyAddedResponseBody"; + } +} + +/** @internal */ +export const GetRecentlyAddedErrors$inboundSchema: z.ZodType< + GetRecentlyAddedErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetRecentlyAddedErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetRecentlyAddedErrors$outboundSchema: z.ZodType< + GetRecentlyAddedErrors$Outbound, + z.ZodTypeDef, + GetRecentlyAddedErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRecentlyAddedErrors$ { + /** @deprecated use `GetRecentlyAddedErrors$inboundSchema` instead. */ + export const inboundSchema = GetRecentlyAddedErrors$inboundSchema; + /** @deprecated use `GetRecentlyAddedErrors$outboundSchema` instead. */ + export const outboundSchema = GetRecentlyAddedErrors$outboundSchema; + /** @deprecated use `GetRecentlyAddedErrors$Outbound` instead. */ + export type Outbound = GetRecentlyAddedErrors$Outbound; +} + +/** @internal */ +export const GetRecentlyAddedResponseBody$inboundSchema: z.ZodType< + GetRecentlyAddedResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetRecentlyAddedErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetRecentlyAddedResponseBody(remapped); + }); + +/** @internal */ +export type GetRecentlyAddedResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetRecentlyAddedResponseBody$outboundSchema: z.ZodType< + GetRecentlyAddedResponseBody$Outbound, + z.ZodTypeDef, + GetRecentlyAddedResponseBody +> = z + .instanceof(GetRecentlyAddedResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetRecentlyAddedErrors$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 GetRecentlyAddedResponseBody$ { + /** @deprecated use `GetRecentlyAddedResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetRecentlyAddedResponseBody$inboundSchema; + /** @deprecated use `GetRecentlyAddedResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetRecentlyAddedResponseBody$outboundSchema; + /** @deprecated use `GetRecentlyAddedResponseBody$Outbound` instead. */ + export type Outbound = GetRecentlyAddedResponseBody$Outbound; +} diff --git a/src/models/getrefreshlibrarymetadataop.ts b/src/sdk/models/errors/getrefreshlibrarymetadata.ts similarity index 52% rename from src/models/getrefreshlibrarymetadataop.ts rename to src/sdk/models/errors/getrefreshlibrarymetadata.ts index edc61c94..e2efbeae 100644 --- a/src/models/getrefreshlibrarymetadataop.ts +++ b/src/sdk/models/errors/getrefreshlibrarymetadata.ts @@ -2,32 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -/** - * Force the refresh even if the library is already being refreshed. - */ -export enum Force { - Zero = 0, - One = 1, -} - -export type GetRefreshLibraryMetadataRequest = { - /** - * The unique key of the Plex library. - * - * @remarks - * Note: This is unique in the context of the Plex server. - * - */ - sectionKey: number; - /** - * Force the refresh even if the library is already being refreshed. - */ - force?: Force | undefined; -}; - export type GetRefreshLibraryMetadataErrors = { code?: number | undefined; message?: string | undefined; @@ -77,77 +54,6 @@ export class GetRefreshLibraryMetadataResponseBody extends Error { } } -export type GetRefreshLibraryMetadataResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const Force$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Force); - -/** @internal */ -export const Force$outboundSchema: z.ZodNativeEnum = Force$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Force$ { - /** @deprecated use `Force$inboundSchema` instead. */ - export const inboundSchema = Force$inboundSchema; - /** @deprecated use `Force$outboundSchema` instead. */ - export const outboundSchema = Force$outboundSchema; -} - -/** @internal */ -export const GetRefreshLibraryMetadataRequest$inboundSchema: z.ZodType< - GetRefreshLibraryMetadataRequest, - z.ZodTypeDef, - unknown -> = z.object({ - sectionKey: z.number().int(), - force: Force$inboundSchema.optional(), -}); - -/** @internal */ -export type GetRefreshLibraryMetadataRequest$Outbound = { - sectionKey: number; - force?: number | undefined; -}; - -/** @internal */ -export const GetRefreshLibraryMetadataRequest$outboundSchema: z.ZodType< - GetRefreshLibraryMetadataRequest$Outbound, - z.ZodTypeDef, - GetRefreshLibraryMetadataRequest -> = z.object({ - sectionKey: z.number().int(), - force: Force$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRefreshLibraryMetadataRequest$ { - /** @deprecated use `GetRefreshLibraryMetadataRequest$inboundSchema` instead. */ - export const inboundSchema = GetRefreshLibraryMetadataRequest$inboundSchema; - /** @deprecated use `GetRefreshLibraryMetadataRequest$outboundSchema` instead. */ - export const outboundSchema = GetRefreshLibraryMetadataRequest$outboundSchema; - /** @deprecated use `GetRefreshLibraryMetadataRequest$Outbound` instead. */ - export type Outbound = GetRefreshLibraryMetadataRequest$Outbound; -} - /** @internal */ export const GetRefreshLibraryMetadataErrors$inboundSchema: z.ZodType< GetRefreshLibraryMetadataErrors, @@ -254,63 +160,3 @@ export namespace GetRefreshLibraryMetadataResponseBody$ { /** @deprecated use `GetRefreshLibraryMetadataResponseBody$Outbound` instead. */ export type Outbound = GetRefreshLibraryMetadataResponseBody$Outbound; } - -/** @internal */ -export const GetRefreshLibraryMetadataResponse$inboundSchema: z.ZodType< - GetRefreshLibraryMetadataResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type GetRefreshLibraryMetadataResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetRefreshLibraryMetadataResponse$outboundSchema: z.ZodType< - GetRefreshLibraryMetadataResponse$Outbound, - z.ZodTypeDef, - GetRefreshLibraryMetadataResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 GetRefreshLibraryMetadataResponse$ { - /** @deprecated use `GetRefreshLibraryMetadataResponse$inboundSchema` instead. */ - export const inboundSchema = GetRefreshLibraryMetadataResponse$inboundSchema; - /** @deprecated use `GetRefreshLibraryMetadataResponse$outboundSchema` instead. */ - export const outboundSchema = GetRefreshLibraryMetadataResponse$outboundSchema; - /** @deprecated use `GetRefreshLibraryMetadataResponse$Outbound` instead. */ - export type Outbound = GetRefreshLibraryMetadataResponse$Outbound; -} diff --git a/src/sdk/models/errors/getresizedphoto.ts b/src/sdk/models/errors/getresizedphoto.ts new file mode 100644 index 00000000..5934500e --- /dev/null +++ b/src/sdk/models/errors/getresizedphoto.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetResizedPhotoErrors = { + 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 GetResizedPhotoResponseBodyData = { + 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 GetResizedPhotoResponseBody 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$: GetResizedPhotoResponseBodyData; + + constructor(err: GetResizedPhotoResponseBodyData) { + 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 = "GetResizedPhotoResponseBody"; + } +} + +/** @internal */ +export const GetResizedPhotoErrors$inboundSchema: z.ZodType< + GetResizedPhotoErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetResizedPhotoErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetResizedPhotoErrors$outboundSchema: z.ZodType< + GetResizedPhotoErrors$Outbound, + z.ZodTypeDef, + GetResizedPhotoErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetResizedPhotoErrors$ { + /** @deprecated use `GetResizedPhotoErrors$inboundSchema` instead. */ + export const inboundSchema = GetResizedPhotoErrors$inboundSchema; + /** @deprecated use `GetResizedPhotoErrors$outboundSchema` instead. */ + export const outboundSchema = GetResizedPhotoErrors$outboundSchema; + /** @deprecated use `GetResizedPhotoErrors$Outbound` instead. */ + export type Outbound = GetResizedPhotoErrors$Outbound; +} + +/** @internal */ +export const GetResizedPhotoResponseBody$inboundSchema: z.ZodType< + GetResizedPhotoResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetResizedPhotoErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetResizedPhotoResponseBody(remapped); + }); + +/** @internal */ +export type GetResizedPhotoResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetResizedPhotoResponseBody$outboundSchema: z.ZodType< + GetResizedPhotoResponseBody$Outbound, + z.ZodTypeDef, + GetResizedPhotoResponseBody +> = z + .instanceof(GetResizedPhotoResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetResizedPhotoErrors$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 GetResizedPhotoResponseBody$ { + /** @deprecated use `GetResizedPhotoResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetResizedPhotoResponseBody$inboundSchema; + /** @deprecated use `GetResizedPhotoResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetResizedPhotoResponseBody$outboundSchema; + /** @deprecated use `GetResizedPhotoResponseBody$Outbound` instead. */ + export type Outbound = GetResizedPhotoResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getresourcesstatistics.ts b/src/sdk/models/errors/getresourcesstatistics.ts new file mode 100644 index 00000000..a4aad6ed --- /dev/null +++ b/src/sdk/models/errors/getresourcesstatistics.ts @@ -0,0 +1,162 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetResourcesStatisticsErrors = { + 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 GetResourcesStatisticsResponseBodyData = { + 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 GetResourcesStatisticsResponseBody 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$: GetResourcesStatisticsResponseBodyData; + + constructor(err: GetResourcesStatisticsResponseBodyData) { + 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 = "GetResourcesStatisticsResponseBody"; + } +} + +/** @internal */ +export const GetResourcesStatisticsErrors$inboundSchema: z.ZodType< + GetResourcesStatisticsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetResourcesStatisticsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetResourcesStatisticsErrors$outboundSchema: z.ZodType< + GetResourcesStatisticsErrors$Outbound, + z.ZodTypeDef, + GetResourcesStatisticsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetResourcesStatisticsErrors$ { + /** @deprecated use `GetResourcesStatisticsErrors$inboundSchema` instead. */ + export const inboundSchema = GetResourcesStatisticsErrors$inboundSchema; + /** @deprecated use `GetResourcesStatisticsErrors$outboundSchema` instead. */ + export const outboundSchema = GetResourcesStatisticsErrors$outboundSchema; + /** @deprecated use `GetResourcesStatisticsErrors$Outbound` instead. */ + export type Outbound = GetResourcesStatisticsErrors$Outbound; +} + +/** @internal */ +export const GetResourcesStatisticsResponseBody$inboundSchema: z.ZodType< + GetResourcesStatisticsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetResourcesStatisticsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetResourcesStatisticsResponseBody(remapped); + }); + +/** @internal */ +export type GetResourcesStatisticsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetResourcesStatisticsResponseBody$outboundSchema: z.ZodType< + GetResourcesStatisticsResponseBody$Outbound, + z.ZodTypeDef, + GetResourcesStatisticsResponseBody +> = z + .instanceof(GetResourcesStatisticsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => GetResourcesStatisticsErrors$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 GetResourcesStatisticsResponseBody$ { + /** @deprecated use `GetResourcesStatisticsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetResourcesStatisticsResponseBody$inboundSchema; + /** @deprecated use `GetResourcesStatisticsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetResourcesStatisticsResponseBody$outboundSchema; + /** @deprecated use `GetResourcesStatisticsResponseBody$Outbound` instead. */ + export type Outbound = GetResourcesStatisticsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getsearchlibrary.ts b/src/sdk/models/errors/getsearchlibrary.ts new file mode 100644 index 00000000..c053f03b --- /dev/null +++ b/src/sdk/models/errors/getsearchlibrary.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetSearchLibraryErrors = { + 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 GetSearchLibraryResponseBodyData = { + 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 GetSearchLibraryResponseBody 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$: GetSearchLibraryResponseBodyData; + + constructor(err: GetSearchLibraryResponseBodyData) { + 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 = "GetSearchLibraryResponseBody"; + } +} + +/** @internal */ +export const GetSearchLibraryErrors$inboundSchema: z.ZodType< + GetSearchLibraryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetSearchLibraryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSearchLibraryErrors$outboundSchema: z.ZodType< + GetSearchLibraryErrors$Outbound, + z.ZodTypeDef, + GetSearchLibraryErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSearchLibraryErrors$ { + /** @deprecated use `GetSearchLibraryErrors$inboundSchema` instead. */ + export const inboundSchema = GetSearchLibraryErrors$inboundSchema; + /** @deprecated use `GetSearchLibraryErrors$outboundSchema` instead. */ + export const outboundSchema = GetSearchLibraryErrors$outboundSchema; + /** @deprecated use `GetSearchLibraryErrors$Outbound` instead. */ + export type Outbound = GetSearchLibraryErrors$Outbound; +} + +/** @internal */ +export const GetSearchLibraryResponseBody$inboundSchema: z.ZodType< + GetSearchLibraryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSearchLibraryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSearchLibraryResponseBody(remapped); + }); + +/** @internal */ +export type GetSearchLibraryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSearchLibraryResponseBody$outboundSchema: z.ZodType< + GetSearchLibraryResponseBody$Outbound, + z.ZodTypeDef, + GetSearchLibraryResponseBody +> = z + .instanceof(GetSearchLibraryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetSearchLibraryErrors$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 GetSearchLibraryResponseBody$ { + /** @deprecated use `GetSearchLibraryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSearchLibraryResponseBody$inboundSchema; + /** @deprecated use `GetSearchLibraryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSearchLibraryResponseBody$outboundSchema; + /** @deprecated use `GetSearchLibraryResponseBody$Outbound` instead. */ + export type Outbound = GetSearchLibraryResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getsearchresults.ts b/src/sdk/models/errors/getsearchresults.ts new file mode 100644 index 00000000..2f3fe606 --- /dev/null +++ b/src/sdk/models/errors/getsearchresults.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetSearchResultsErrors = { + 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 GetSearchResultsResponseBodyData = { + 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 GetSearchResultsResponseBody 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$: GetSearchResultsResponseBodyData; + + constructor(err: GetSearchResultsResponseBodyData) { + 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 = "GetSearchResultsResponseBody"; + } +} + +/** @internal */ +export const GetSearchResultsErrors$inboundSchema: z.ZodType< + GetSearchResultsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetSearchResultsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSearchResultsErrors$outboundSchema: z.ZodType< + GetSearchResultsErrors$Outbound, + z.ZodTypeDef, + GetSearchResultsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSearchResultsErrors$ { + /** @deprecated use `GetSearchResultsErrors$inboundSchema` instead. */ + export const inboundSchema = GetSearchResultsErrors$inboundSchema; + /** @deprecated use `GetSearchResultsErrors$outboundSchema` instead. */ + export const outboundSchema = GetSearchResultsErrors$outboundSchema; + /** @deprecated use `GetSearchResultsErrors$Outbound` instead. */ + export type Outbound = GetSearchResultsErrors$Outbound; +} + +/** @internal */ +export const GetSearchResultsResponseBody$inboundSchema: z.ZodType< + GetSearchResultsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSearchResultsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSearchResultsResponseBody(remapped); + }); + +/** @internal */ +export type GetSearchResultsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSearchResultsResponseBody$outboundSchema: z.ZodType< + GetSearchResultsResponseBody$Outbound, + z.ZodTypeDef, + GetSearchResultsResponseBody +> = z + .instanceof(GetSearchResultsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetSearchResultsErrors$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 GetSearchResultsResponseBody$ { + /** @deprecated use `GetSearchResultsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSearchResultsResponseBody$inboundSchema; + /** @deprecated use `GetSearchResultsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSearchResultsResponseBody$outboundSchema; + /** @deprecated use `GetSearchResultsResponseBody$Outbound` instead. */ + export type Outbound = GetSearchResultsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getserveractivities.ts b/src/sdk/models/errors/getserveractivities.ts new file mode 100644 index 00000000..32a82c77 --- /dev/null +++ b/src/sdk/models/errors/getserveractivities.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetServerActivitiesErrors = { + 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 GetServerActivitiesResponseBodyData = { + 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 GetServerActivitiesResponseBody 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$: GetServerActivitiesResponseBodyData; + + constructor(err: GetServerActivitiesResponseBodyData) { + 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 = "GetServerActivitiesResponseBody"; + } +} + +/** @internal */ +export const GetServerActivitiesErrors$inboundSchema: z.ZodType< + GetServerActivitiesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetServerActivitiesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerActivitiesErrors$outboundSchema: z.ZodType< + GetServerActivitiesErrors$Outbound, + z.ZodTypeDef, + GetServerActivitiesErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerActivitiesErrors$ { + /** @deprecated use `GetServerActivitiesErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerActivitiesErrors$inboundSchema; + /** @deprecated use `GetServerActivitiesErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerActivitiesErrors$outboundSchema; + /** @deprecated use `GetServerActivitiesErrors$Outbound` instead. */ + export type Outbound = GetServerActivitiesErrors$Outbound; +} + +/** @internal */ +export const GetServerActivitiesResponseBody$inboundSchema: z.ZodType< + GetServerActivitiesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerActivitiesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerActivitiesResponseBody(remapped); + }); + +/** @internal */ +export type GetServerActivitiesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerActivitiesResponseBody$outboundSchema: z.ZodType< + GetServerActivitiesResponseBody$Outbound, + z.ZodTypeDef, + GetServerActivitiesResponseBody +> = z + .instanceof(GetServerActivitiesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetServerActivitiesErrors$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 GetServerActivitiesResponseBody$ { + /** @deprecated use `GetServerActivitiesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerActivitiesResponseBody$inboundSchema; + /** @deprecated use `GetServerActivitiesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerActivitiesResponseBody$outboundSchema; + /** @deprecated use `GetServerActivitiesResponseBody$Outbound` instead. */ + export type Outbound = GetServerActivitiesResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getservercapabilities.ts b/src/sdk/models/errors/getservercapabilities.ts new file mode 100644 index 00000000..5afa2f5a --- /dev/null +++ b/src/sdk/models/errors/getservercapabilities.ts @@ -0,0 +1,152 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type Errors = { + 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 GetServerCapabilitiesResponseBodyData = { + 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 GetServerCapabilitiesResponseBody 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$: GetServerCapabilitiesResponseBodyData; + + constructor(err: GetServerCapabilitiesResponseBodyData) { + 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 = "GetServerCapabilitiesResponseBody"; + } +} + +/** @internal */ +export const Errors$inboundSchema: z.ZodType = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type Errors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const Errors$outboundSchema: z.ZodType = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Errors$ { + /** @deprecated use `Errors$inboundSchema` instead. */ + export const inboundSchema = Errors$inboundSchema; + /** @deprecated use `Errors$outboundSchema` instead. */ + export const outboundSchema = Errors$outboundSchema; + /** @deprecated use `Errors$Outbound` instead. */ + export type Outbound = Errors$Outbound; +} + +/** @internal */ +export const GetServerCapabilitiesResponseBody$inboundSchema: z.ZodType< + GetServerCapabilitiesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => Errors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerCapabilitiesResponseBody(remapped); + }); + +/** @internal */ +export type GetServerCapabilitiesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerCapabilitiesResponseBody$outboundSchema: z.ZodType< + GetServerCapabilitiesResponseBody$Outbound, + z.ZodTypeDef, + GetServerCapabilitiesResponseBody +> = z + .instanceof(GetServerCapabilitiesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => Errors$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 GetServerCapabilitiesResponseBody$ { + /** @deprecated use `GetServerCapabilitiesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerCapabilitiesResponseBody$inboundSchema; + /** @deprecated use `GetServerCapabilitiesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerCapabilitiesResponseBody$outboundSchema; + /** @deprecated use `GetServerCapabilitiesResponseBody$Outbound` instead. */ + export type Outbound = GetServerCapabilitiesResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getserveridentity.ts b/src/sdk/models/errors/getserveridentity.ts new file mode 100644 index 00000000..470264f6 --- /dev/null +++ b/src/sdk/models/errors/getserveridentity.ts @@ -0,0 +1,116 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +/** + * Request Timeout + */ +export type GetServerIdentityResponseBodyData = { + code?: number | undefined; + message?: string | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Request Timeout + */ +export class GetServerIdentityResponseBody extends Error { + code?: number | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; + + /** The original data that was passed to this error instance. */ + data$: GetServerIdentityResponseBodyData; + + constructor(err: GetServerIdentityResponseBodyData) { + const message = + "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message); + this.data$ = err; + + if (err.code != null) { + this.code = err.code; + } + if (err.rawResponse != null) { + this.rawResponse = err.rawResponse; + } + + this.name = "GetServerIdentityResponseBody"; + } +} + +/** @internal */ +export const GetServerIdentityResponseBody$inboundSchema: z.ZodType< + GetServerIdentityResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + code: z.number().int().optional(), + message: z.string().optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerIdentityResponseBody(remapped); + }); + +/** @internal */ +export type GetServerIdentityResponseBody$Outbound = { + code?: number | undefined; + message?: string | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerIdentityResponseBody$outboundSchema: z.ZodType< + GetServerIdentityResponseBody$Outbound, + z.ZodTypeDef, + GetServerIdentityResponseBody +> = z + .instanceof(GetServerIdentityResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + code: z.number().int().optional(), + message: z.string().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 GetServerIdentityResponseBody$ { + /** @deprecated use `GetServerIdentityResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerIdentityResponseBody$inboundSchema; + /** @deprecated use `GetServerIdentityResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerIdentityResponseBody$outboundSchema; + /** @deprecated use `GetServerIdentityResponseBody$Outbound` instead. */ + export type Outbound = GetServerIdentityResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getserverlist.ts b/src/sdk/models/errors/getserverlist.ts new file mode 100644 index 00000000..605c8872 --- /dev/null +++ b/src/sdk/models/errors/getserverlist.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetServerListErrors = { + 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 GetServerListResponseBodyData = { + 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 GetServerListResponseBody 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$: GetServerListResponseBodyData; + + constructor(err: GetServerListResponseBodyData) { + 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 = "GetServerListResponseBody"; + } +} + +/** @internal */ +export const GetServerListErrors$inboundSchema: z.ZodType< + GetServerListErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetServerListErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerListErrors$outboundSchema: z.ZodType< + GetServerListErrors$Outbound, + z.ZodTypeDef, + GetServerListErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerListErrors$ { + /** @deprecated use `GetServerListErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerListErrors$inboundSchema; + /** @deprecated use `GetServerListErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerListErrors$outboundSchema; + /** @deprecated use `GetServerListErrors$Outbound` instead. */ + export type Outbound = GetServerListErrors$Outbound; +} + +/** @internal */ +export const GetServerListResponseBody$inboundSchema: z.ZodType< + GetServerListResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerListErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerListResponseBody(remapped); + }); + +/** @internal */ +export type GetServerListResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerListResponseBody$outboundSchema: z.ZodType< + GetServerListResponseBody$Outbound, + z.ZodTypeDef, + GetServerListResponseBody +> = z + .instanceof(GetServerListResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetServerListErrors$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 GetServerListResponseBody$ { + /** @deprecated use `GetServerListResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerListResponseBody$inboundSchema; + /** @deprecated use `GetServerListResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerListResponseBody$outboundSchema; + /** @deprecated use `GetServerListResponseBody$Outbound` instead. */ + export type Outbound = GetServerListResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getserverpreferences.ts b/src/sdk/models/errors/getserverpreferences.ts new file mode 100644 index 00000000..99ac3a17 --- /dev/null +++ b/src/sdk/models/errors/getserverpreferences.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetServerPreferencesErrors = { + 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 GetServerPreferencesResponseBodyData = { + 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 GetServerPreferencesResponseBody 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$: GetServerPreferencesResponseBodyData; + + constructor(err: GetServerPreferencesResponseBodyData) { + 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 = "GetServerPreferencesResponseBody"; + } +} + +/** @internal */ +export const GetServerPreferencesErrors$inboundSchema: z.ZodType< + GetServerPreferencesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetServerPreferencesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerPreferencesErrors$outboundSchema: z.ZodType< + GetServerPreferencesErrors$Outbound, + z.ZodTypeDef, + GetServerPreferencesErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerPreferencesErrors$ { + /** @deprecated use `GetServerPreferencesErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerPreferencesErrors$inboundSchema; + /** @deprecated use `GetServerPreferencesErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerPreferencesErrors$outboundSchema; + /** @deprecated use `GetServerPreferencesErrors$Outbound` instead. */ + export type Outbound = GetServerPreferencesErrors$Outbound; +} + +/** @internal */ +export const GetServerPreferencesResponseBody$inboundSchema: z.ZodType< + GetServerPreferencesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerPreferencesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerPreferencesResponseBody(remapped); + }); + +/** @internal */ +export type GetServerPreferencesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerPreferencesResponseBody$outboundSchema: z.ZodType< + GetServerPreferencesResponseBody$Outbound, + z.ZodTypeDef, + GetServerPreferencesResponseBody +> = z + .instanceof(GetServerPreferencesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetServerPreferencesErrors$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 GetServerPreferencesResponseBody$ { + /** @deprecated use `GetServerPreferencesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerPreferencesResponseBody$inboundSchema; + /** @deprecated use `GetServerPreferencesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerPreferencesResponseBody$outboundSchema; + /** @deprecated use `GetServerPreferencesResponseBody$Outbound` instead. */ + export type Outbound = GetServerPreferencesResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getserverresources.ts b/src/sdk/models/errors/getserverresources.ts new file mode 100644 index 00000000..42d906b7 --- /dev/null +++ b/src/sdk/models/errors/getserverresources.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetServerResourcesErrors = { + 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 GetServerResourcesResponseBodyData = { + 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 GetServerResourcesResponseBody 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$: GetServerResourcesResponseBodyData; + + constructor(err: GetServerResourcesResponseBodyData) { + 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 = "GetServerResourcesResponseBody"; + } +} + +/** @internal */ +export const GetServerResourcesErrors$inboundSchema: z.ZodType< + GetServerResourcesErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetServerResourcesErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetServerResourcesErrors$outboundSchema: z.ZodType< + GetServerResourcesErrors$Outbound, + z.ZodTypeDef, + GetServerResourcesErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetServerResourcesErrors$ { + /** @deprecated use `GetServerResourcesErrors$inboundSchema` instead. */ + export const inboundSchema = GetServerResourcesErrors$inboundSchema; + /** @deprecated use `GetServerResourcesErrors$outboundSchema` instead. */ + export const outboundSchema = GetServerResourcesErrors$outboundSchema; + /** @deprecated use `GetServerResourcesErrors$Outbound` instead. */ + export type Outbound = GetServerResourcesErrors$Outbound; +} + +/** @internal */ +export const GetServerResourcesResponseBody$inboundSchema: z.ZodType< + GetServerResourcesResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetServerResourcesErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetServerResourcesResponseBody(remapped); + }); + +/** @internal */ +export type GetServerResourcesResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetServerResourcesResponseBody$outboundSchema: z.ZodType< + GetServerResourcesResponseBody$Outbound, + z.ZodTypeDef, + GetServerResourcesResponseBody +> = z + .instanceof(GetServerResourcesResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetServerResourcesErrors$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 GetServerResourcesResponseBody$ { + /** @deprecated use `GetServerResourcesResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetServerResourcesResponseBody$inboundSchema; + /** @deprecated use `GetServerResourcesResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetServerResourcesResponseBody$outboundSchema; + /** @deprecated use `GetServerResourcesResponseBody$Outbound` instead. */ + export type Outbound = GetServerResourcesResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getsessionhistory.ts b/src/sdk/models/errors/getsessionhistory.ts new file mode 100644 index 00000000..69e7527d --- /dev/null +++ b/src/sdk/models/errors/getsessionhistory.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetSessionHistoryErrors = { + 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 GetSessionHistoryResponseBodyData = { + 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 GetSessionHistoryResponseBody 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$: GetSessionHistoryResponseBodyData; + + constructor(err: GetSessionHistoryResponseBodyData) { + 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 = "GetSessionHistoryResponseBody"; + } +} + +/** @internal */ +export const GetSessionHistoryErrors$inboundSchema: z.ZodType< + GetSessionHistoryErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetSessionHistoryErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSessionHistoryErrors$outboundSchema: z.ZodType< + GetSessionHistoryErrors$Outbound, + z.ZodTypeDef, + GetSessionHistoryErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSessionHistoryErrors$ { + /** @deprecated use `GetSessionHistoryErrors$inboundSchema` instead. */ + export const inboundSchema = GetSessionHistoryErrors$inboundSchema; + /** @deprecated use `GetSessionHistoryErrors$outboundSchema` instead. */ + export const outboundSchema = GetSessionHistoryErrors$outboundSchema; + /** @deprecated use `GetSessionHistoryErrors$Outbound` instead. */ + export type Outbound = GetSessionHistoryErrors$Outbound; +} + +/** @internal */ +export const GetSessionHistoryResponseBody$inboundSchema: z.ZodType< + GetSessionHistoryResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSessionHistoryErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSessionHistoryResponseBody(remapped); + }); + +/** @internal */ +export type GetSessionHistoryResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSessionHistoryResponseBody$outboundSchema: z.ZodType< + GetSessionHistoryResponseBody$Outbound, + z.ZodTypeDef, + GetSessionHistoryResponseBody +> = z + .instanceof(GetSessionHistoryResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetSessionHistoryErrors$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 GetSessionHistoryResponseBody$ { + /** @deprecated use `GetSessionHistoryResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSessionHistoryResponseBody$inboundSchema; + /** @deprecated use `GetSessionHistoryResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSessionHistoryResponseBody$outboundSchema; + /** @deprecated use `GetSessionHistoryResponseBody$Outbound` instead. */ + export type Outbound = GetSessionHistoryResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getsessions.ts b/src/sdk/models/errors/getsessions.ts new file mode 100644 index 00000000..9b766019 --- /dev/null +++ b/src/sdk/models/errors/getsessions.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetSessionsErrors = { + 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 GetSessionsResponseBodyData = { + 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 GetSessionsResponseBody 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$: GetSessionsResponseBodyData; + + constructor(err: GetSessionsResponseBodyData) { + 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 = "GetSessionsResponseBody"; + } +} + +/** @internal */ +export const GetSessionsErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetSessionsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetSessionsErrors$outboundSchema: z.ZodType< + GetSessionsErrors$Outbound, + z.ZodTypeDef, + GetSessionsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSessionsErrors$ { + /** @deprecated use `GetSessionsErrors$inboundSchema` instead. */ + export const inboundSchema = GetSessionsErrors$inboundSchema; + /** @deprecated use `GetSessionsErrors$outboundSchema` instead. */ + export const outboundSchema = GetSessionsErrors$outboundSchema; + /** @deprecated use `GetSessionsErrors$Outbound` instead. */ + export type Outbound = GetSessionsErrors$Outbound; +} + +/** @internal */ +export const GetSessionsResponseBody$inboundSchema: z.ZodType< + GetSessionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetSessionsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetSessionsResponseBody(remapped); + }); + +/** @internal */ +export type GetSessionsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetSessionsResponseBody$outboundSchema: z.ZodType< + GetSessionsResponseBody$Outbound, + z.ZodTypeDef, + GetSessionsResponseBody +> = z + .instanceof(GetSessionsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetSessionsErrors$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 GetSessionsResponseBody$ { + /** @deprecated use `GetSessionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetSessionsResponseBody$inboundSchema; + /** @deprecated use `GetSessionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetSessionsResponseBody$outboundSchema; + /** @deprecated use `GetSessionsResponseBody$Outbound` instead. */ + export type Outbound = GetSessionsResponseBody$Outbound; +} diff --git a/src/models/getsourceconnectioninformationop.ts b/src/sdk/models/errors/getsourceconnectioninformation.ts similarity index 59% rename from src/models/getsourceconnectioninformationop.ts rename to src/sdk/models/errors/getsourceconnectioninformation.ts index dc142920..608f2206 100644 --- a/src/models/getsourceconnectioninformationop.ts +++ b/src/sdk/models/errors/getsourceconnectioninformation.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetSourceConnectionInformationRequest = { - /** - * The source identifier with an included prefix. - */ - source: string; -}; - export type GetSourceConnectionInformationErrors = { code?: number | undefined; message?: string | undefined; @@ -61,57 +54,6 @@ export class GetSourceConnectionInformationResponseBody extends Error { } } -export type GetSourceConnectionInformationResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const GetSourceConnectionInformationRequest$inboundSchema: z.ZodType< - GetSourceConnectionInformationRequest, - z.ZodTypeDef, - unknown -> = z.object({ - source: z.string(), -}); - -/** @internal */ -export type GetSourceConnectionInformationRequest$Outbound = { - source: string; -}; - -/** @internal */ -export const GetSourceConnectionInformationRequest$outboundSchema: z.ZodType< - GetSourceConnectionInformationRequest$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationRequest -> = z.object({ - source: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSourceConnectionInformationRequest$ { - /** @deprecated use `GetSourceConnectionInformationRequest$inboundSchema` instead. */ - export const inboundSchema = GetSourceConnectionInformationRequest$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationRequest$outboundSchema` instead. */ - export const outboundSchema = GetSourceConnectionInformationRequest$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationRequest$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationRequest$Outbound; -} - /** @internal */ export const GetSourceConnectionInformationErrors$inboundSchema: z.ZodType< GetSourceConnectionInformationErrors, @@ -220,63 +162,3 @@ export namespace GetSourceConnectionInformationResponseBody$ { /** @deprecated use `GetSourceConnectionInformationResponseBody$Outbound` instead. */ export type Outbound = GetSourceConnectionInformationResponseBody$Outbound; } - -/** @internal */ -export const GetSourceConnectionInformationResponse$inboundSchema: z.ZodType< - GetSourceConnectionInformationResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type GetSourceConnectionInformationResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const GetSourceConnectionInformationResponse$outboundSchema: z.ZodType< - GetSourceConnectionInformationResponse$Outbound, - z.ZodTypeDef, - GetSourceConnectionInformationResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 GetSourceConnectionInformationResponse$ { - /** @deprecated use `GetSourceConnectionInformationResponse$inboundSchema` instead. */ - export const inboundSchema = GetSourceConnectionInformationResponse$inboundSchema; - /** @deprecated use `GetSourceConnectionInformationResponse$outboundSchema` instead. */ - export const outboundSchema = GetSourceConnectionInformationResponse$outboundSchema; - /** @deprecated use `GetSourceConnectionInformationResponse$Outbound` instead. */ - export type Outbound = GetSourceConnectionInformationResponse$Outbound; -} diff --git a/src/sdk/models/errors/getstatistics.ts b/src/sdk/models/errors/getstatistics.ts new file mode 100644 index 00000000..e880a9da --- /dev/null +++ b/src/sdk/models/errors/getstatistics.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetStatisticsErrors = { + 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 GetStatisticsResponseBodyData = { + 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 GetStatisticsResponseBody 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$: GetStatisticsResponseBodyData; + + constructor(err: GetStatisticsResponseBodyData) { + 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 = "GetStatisticsResponseBody"; + } +} + +/** @internal */ +export const GetStatisticsErrors$inboundSchema: z.ZodType< + GetStatisticsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetStatisticsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetStatisticsErrors$outboundSchema: z.ZodType< + GetStatisticsErrors$Outbound, + z.ZodTypeDef, + GetStatisticsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetStatisticsErrors$ { + /** @deprecated use `GetStatisticsErrors$inboundSchema` instead. */ + export const inboundSchema = GetStatisticsErrors$inboundSchema; + /** @deprecated use `GetStatisticsErrors$outboundSchema` instead. */ + export const outboundSchema = GetStatisticsErrors$outboundSchema; + /** @deprecated use `GetStatisticsErrors$Outbound` instead. */ + export type Outbound = GetStatisticsErrors$Outbound; +} + +/** @internal */ +export const GetStatisticsResponseBody$inboundSchema: z.ZodType< + GetStatisticsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetStatisticsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetStatisticsResponseBody(remapped); + }); + +/** @internal */ +export type GetStatisticsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetStatisticsResponseBody$outboundSchema: z.ZodType< + GetStatisticsResponseBody$Outbound, + z.ZodTypeDef, + GetStatisticsResponseBody +> = z + .instanceof(GetStatisticsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetStatisticsErrors$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 GetStatisticsResponseBody$ { + /** @deprecated use `GetStatisticsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetStatisticsResponseBody$inboundSchema; + /** @deprecated use `GetStatisticsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetStatisticsResponseBody$outboundSchema; + /** @deprecated use `GetStatisticsResponseBody$Outbound` instead. */ + export type Outbound = GetStatisticsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getthumbimage.ts b/src/sdk/models/errors/getthumbimage.ts new file mode 100644 index 00000000..0d185be9 --- /dev/null +++ b/src/sdk/models/errors/getthumbimage.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetThumbImageErrors = { + 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 GetThumbImageResponseBodyData = { + 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 GetThumbImageResponseBody 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$: GetThumbImageResponseBodyData; + + constructor(err: GetThumbImageResponseBodyData) { + 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 = "GetThumbImageResponseBody"; + } +} + +/** @internal */ +export const GetThumbImageErrors$inboundSchema: z.ZodType< + GetThumbImageErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetThumbImageErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetThumbImageErrors$outboundSchema: z.ZodType< + GetThumbImageErrors$Outbound, + z.ZodTypeDef, + GetThumbImageErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetThumbImageErrors$ { + /** @deprecated use `GetThumbImageErrors$inboundSchema` instead. */ + export const inboundSchema = GetThumbImageErrors$inboundSchema; + /** @deprecated use `GetThumbImageErrors$outboundSchema` instead. */ + export const outboundSchema = GetThumbImageErrors$outboundSchema; + /** @deprecated use `GetThumbImageErrors$Outbound` instead. */ + export type Outbound = GetThumbImageErrors$Outbound; +} + +/** @internal */ +export const GetThumbImageResponseBody$inboundSchema: z.ZodType< + GetThumbImageResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetThumbImageErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetThumbImageResponseBody(remapped); + }); + +/** @internal */ +export type GetThumbImageResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetThumbImageResponseBody$outboundSchema: z.ZodType< + GetThumbImageResponseBody$Outbound, + z.ZodTypeDef, + GetThumbImageResponseBody +> = z + .instanceof(GetThumbImageResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetThumbImageErrors$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 GetThumbImageResponseBody$ { + /** @deprecated use `GetThumbImageResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetThumbImageResponseBody$inboundSchema; + /** @deprecated use `GetThumbImageResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetThumbImageResponseBody$outboundSchema; + /** @deprecated use `GetThumbImageResponseBody$Outbound` instead. */ + export type Outbound = GetThumbImageResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/gettimeline.ts b/src/sdk/models/errors/gettimeline.ts new file mode 100644 index 00000000..830de407 --- /dev/null +++ b/src/sdk/models/errors/gettimeline.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetTimelineErrors = { + 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 GetTimelineResponseBodyData = { + 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 GetTimelineResponseBody 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$: GetTimelineResponseBodyData; + + constructor(err: GetTimelineResponseBodyData) { + 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 = "GetTimelineResponseBody"; + } +} + +/** @internal */ +export const GetTimelineErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type GetTimelineErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTimelineErrors$outboundSchema: z.ZodType< + GetTimelineErrors$Outbound, + z.ZodTypeDef, + GetTimelineErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTimelineErrors$ { + /** @deprecated use `GetTimelineErrors$inboundSchema` instead. */ + export const inboundSchema = GetTimelineErrors$inboundSchema; + /** @deprecated use `GetTimelineErrors$outboundSchema` instead. */ + export const outboundSchema = GetTimelineErrors$outboundSchema; + /** @deprecated use `GetTimelineErrors$Outbound` instead. */ + export type Outbound = GetTimelineErrors$Outbound; +} + +/** @internal */ +export const GetTimelineResponseBody$inboundSchema: z.ZodType< + GetTimelineResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTimelineErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTimelineResponseBody(remapped); + }); + +/** @internal */ +export type GetTimelineResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTimelineResponseBody$outboundSchema: z.ZodType< + GetTimelineResponseBody$Outbound, + z.ZodTypeDef, + GetTimelineResponseBody +> = z + .instanceof(GetTimelineResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTimelineErrors$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 GetTimelineResponseBody$ { + /** @deprecated use `GetTimelineResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTimelineResponseBody$inboundSchema; + /** @deprecated use `GetTimelineResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTimelineResponseBody$outboundSchema; + /** @deprecated use `GetTimelineResponseBody$Outbound` instead. */ + export type Outbound = GetTimelineResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/gettokenbypinid.ts b/src/sdk/models/errors/gettokenbypinid.ts new file mode 100644 index 00000000..ed972f35 --- /dev/null +++ b/src/sdk/models/errors/gettokenbypinid.ts @@ -0,0 +1,310 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetTokenByPinIdPlexErrors = { + code?: number | undefined; + message?: string | undefined; +}; + +/** + * Not Found or Expired + */ +export type GetTokenByPinIdPlexResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Not Found or Expired + */ +export class GetTokenByPinIdPlexResponseBody 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$: GetTokenByPinIdPlexResponseBodyData; + + constructor(err: GetTokenByPinIdPlexResponseBodyData) { + 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 = "GetTokenByPinIdPlexResponseBody"; + } +} + +export type GetTokenByPinIdErrors = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** + * Bad Request response when the X-Plex-Client-Identifier is missing + */ +export type GetTokenByPinIdResponseBodyData = { + errors?: Array | undefined; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse?: Response | undefined; +}; + +/** + * Bad Request response when the X-Plex-Client-Identifier is missing + */ +export class GetTokenByPinIdResponseBody 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$: GetTokenByPinIdResponseBodyData; + + constructor(err: GetTokenByPinIdResponseBodyData) { + 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 = "GetTokenByPinIdResponseBody"; + } +} + +/** @internal */ +export const GetTokenByPinIdPlexErrors$inboundSchema: z.ZodType< + GetTokenByPinIdPlexErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), +}); + +/** @internal */ +export type GetTokenByPinIdPlexErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; +}; + +/** @internal */ +export const GetTokenByPinIdPlexErrors$outboundSchema: z.ZodType< + GetTokenByPinIdPlexErrors$Outbound, + z.ZodTypeDef, + GetTokenByPinIdPlexErrors +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTokenByPinIdPlexErrors$ { + /** @deprecated use `GetTokenByPinIdPlexErrors$inboundSchema` instead. */ + export const inboundSchema = GetTokenByPinIdPlexErrors$inboundSchema; + /** @deprecated use `GetTokenByPinIdPlexErrors$outboundSchema` instead. */ + export const outboundSchema = GetTokenByPinIdPlexErrors$outboundSchema; + /** @deprecated use `GetTokenByPinIdPlexErrors$Outbound` instead. */ + export type Outbound = GetTokenByPinIdPlexErrors$Outbound; +} + +/** @internal */ +export const GetTokenByPinIdPlexResponseBody$inboundSchema: z.ZodType< + GetTokenByPinIdPlexResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTokenByPinIdPlexErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTokenByPinIdPlexResponseBody(remapped); + }); + +/** @internal */ +export type GetTokenByPinIdPlexResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTokenByPinIdPlexResponseBody$outboundSchema: z.ZodType< + GetTokenByPinIdPlexResponseBody$Outbound, + z.ZodTypeDef, + GetTokenByPinIdPlexResponseBody +> = z + .instanceof(GetTokenByPinIdPlexResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTokenByPinIdPlexErrors$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 GetTokenByPinIdPlexResponseBody$ { + /** @deprecated use `GetTokenByPinIdPlexResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTokenByPinIdPlexResponseBody$inboundSchema; + /** @deprecated use `GetTokenByPinIdPlexResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTokenByPinIdPlexResponseBody$outboundSchema; + /** @deprecated use `GetTokenByPinIdPlexResponseBody$Outbound` instead. */ + export type Outbound = GetTokenByPinIdPlexResponseBody$Outbound; +} + +/** @internal */ +export const GetTokenByPinIdErrors$inboundSchema: z.ZodType< + GetTokenByPinIdErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().int().optional(), + message: z.string().optional(), + status: z.number().int().optional(), +}); + +/** @internal */ +export type GetTokenByPinIdErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTokenByPinIdErrors$outboundSchema: z.ZodType< + GetTokenByPinIdErrors$Outbound, + z.ZodTypeDef, + GetTokenByPinIdErrors +> = 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 GetTokenByPinIdErrors$ { + /** @deprecated use `GetTokenByPinIdErrors$inboundSchema` instead. */ + export const inboundSchema = GetTokenByPinIdErrors$inboundSchema; + /** @deprecated use `GetTokenByPinIdErrors$outboundSchema` instead. */ + export const outboundSchema = GetTokenByPinIdErrors$outboundSchema; + /** @deprecated use `GetTokenByPinIdErrors$Outbound` instead. */ + export type Outbound = GetTokenByPinIdErrors$Outbound; +} + +/** @internal */ +export const GetTokenByPinIdResponseBody$inboundSchema: z.ZodType< + GetTokenByPinIdResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTokenByPinIdErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTokenByPinIdResponseBody(remapped); + }); + +/** @internal */ +export type GetTokenByPinIdResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTokenByPinIdResponseBody$outboundSchema: z.ZodType< + GetTokenByPinIdResponseBody$Outbound, + z.ZodTypeDef, + GetTokenByPinIdResponseBody +> = z + .instanceof(GetTokenByPinIdResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTokenByPinIdErrors$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 GetTokenByPinIdResponseBody$ { + /** @deprecated use `GetTokenByPinIdResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTokenByPinIdResponseBody$inboundSchema; + /** @deprecated use `GetTokenByPinIdResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTokenByPinIdResponseBody$outboundSchema; + /** @deprecated use `GetTokenByPinIdResponseBody$Outbound` instead. */ + export type Outbound = GetTokenByPinIdResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/gettopwatchedcontent.ts b/src/sdk/models/errors/gettopwatchedcontent.ts new file mode 100644 index 00000000..68fb47ff --- /dev/null +++ b/src/sdk/models/errors/gettopwatchedcontent.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetTopWatchedContentErrors = { + 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 GetTopWatchedContentResponseBodyData = { + 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 GetTopWatchedContentResponseBody 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$: GetTopWatchedContentResponseBodyData; + + constructor(err: GetTopWatchedContentResponseBodyData) { + 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 = "GetTopWatchedContentResponseBody"; + } +} + +/** @internal */ +export const GetTopWatchedContentErrors$inboundSchema: z.ZodType< + GetTopWatchedContentErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetTopWatchedContentErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTopWatchedContentErrors$outboundSchema: z.ZodType< + GetTopWatchedContentErrors$Outbound, + z.ZodTypeDef, + GetTopWatchedContentErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTopWatchedContentErrors$ { + /** @deprecated use `GetTopWatchedContentErrors$inboundSchema` instead. */ + export const inboundSchema = GetTopWatchedContentErrors$inboundSchema; + /** @deprecated use `GetTopWatchedContentErrors$outboundSchema` instead. */ + export const outboundSchema = GetTopWatchedContentErrors$outboundSchema; + /** @deprecated use `GetTopWatchedContentErrors$Outbound` instead. */ + export type Outbound = GetTopWatchedContentErrors$Outbound; +} + +/** @internal */ +export const GetTopWatchedContentResponseBody$inboundSchema: z.ZodType< + GetTopWatchedContentResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTopWatchedContentErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTopWatchedContentResponseBody(remapped); + }); + +/** @internal */ +export type GetTopWatchedContentResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTopWatchedContentResponseBody$outboundSchema: z.ZodType< + GetTopWatchedContentResponseBody$Outbound, + z.ZodTypeDef, + GetTopWatchedContentResponseBody +> = z + .instanceof(GetTopWatchedContentResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTopWatchedContentErrors$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 GetTopWatchedContentResponseBody$ { + /** @deprecated use `GetTopWatchedContentResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTopWatchedContentResponseBody$inboundSchema; + /** @deprecated use `GetTopWatchedContentResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTopWatchedContentResponseBody$outboundSchema; + /** @deprecated use `GetTopWatchedContentResponseBody$Outbound` instead. */ + export type Outbound = GetTopWatchedContentResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/gettranscodesessions.ts b/src/sdk/models/errors/gettranscodesessions.ts new file mode 100644 index 00000000..7f471aad --- /dev/null +++ b/src/sdk/models/errors/gettranscodesessions.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetTranscodeSessionsErrors = { + 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 GetTranscodeSessionsResponseBodyData = { + 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 GetTranscodeSessionsResponseBody 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$: GetTranscodeSessionsResponseBodyData; + + constructor(err: GetTranscodeSessionsResponseBodyData) { + 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 = "GetTranscodeSessionsResponseBody"; + } +} + +/** @internal */ +export const GetTranscodeSessionsErrors$inboundSchema: z.ZodType< + GetTranscodeSessionsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetTranscodeSessionsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTranscodeSessionsErrors$outboundSchema: z.ZodType< + GetTranscodeSessionsErrors$Outbound, + z.ZodTypeDef, + GetTranscodeSessionsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTranscodeSessionsErrors$ { + /** @deprecated use `GetTranscodeSessionsErrors$inboundSchema` instead. */ + export const inboundSchema = GetTranscodeSessionsErrors$inboundSchema; + /** @deprecated use `GetTranscodeSessionsErrors$outboundSchema` instead. */ + export const outboundSchema = GetTranscodeSessionsErrors$outboundSchema; + /** @deprecated use `GetTranscodeSessionsErrors$Outbound` instead. */ + export type Outbound = GetTranscodeSessionsErrors$Outbound; +} + +/** @internal */ +export const GetTranscodeSessionsResponseBody$inboundSchema: z.ZodType< + GetTranscodeSessionsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTranscodeSessionsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTranscodeSessionsResponseBody(remapped); + }); + +/** @internal */ +export type GetTranscodeSessionsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTranscodeSessionsResponseBody$outboundSchema: z.ZodType< + GetTranscodeSessionsResponseBody$Outbound, + z.ZodTypeDef, + GetTranscodeSessionsResponseBody +> = z + .instanceof(GetTranscodeSessionsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTranscodeSessionsErrors$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 GetTranscodeSessionsResponseBody$ { + /** @deprecated use `GetTranscodeSessionsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTranscodeSessionsResponseBody$inboundSchema; + /** @deprecated use `GetTranscodeSessionsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTranscodeSessionsResponseBody$outboundSchema; + /** @deprecated use `GetTranscodeSessionsResponseBody$Outbound` instead. */ + export type Outbound = GetTranscodeSessionsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/gettransienttoken.ts b/src/sdk/models/errors/gettransienttoken.ts new file mode 100644 index 00000000..0c52ea11 --- /dev/null +++ b/src/sdk/models/errors/gettransienttoken.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetTransientTokenErrors = { + 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 GetTransientTokenResponseBodyData = { + 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 GetTransientTokenResponseBody 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$: GetTransientTokenResponseBodyData; + + constructor(err: GetTransientTokenResponseBodyData) { + 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 = "GetTransientTokenResponseBody"; + } +} + +/** @internal */ +export const GetTransientTokenErrors$inboundSchema: z.ZodType< + GetTransientTokenErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetTransientTokenErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetTransientTokenErrors$outboundSchema: z.ZodType< + GetTransientTokenErrors$Outbound, + z.ZodTypeDef, + GetTransientTokenErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTransientTokenErrors$ { + /** @deprecated use `GetTransientTokenErrors$inboundSchema` instead. */ + export const inboundSchema = GetTransientTokenErrors$inboundSchema; + /** @deprecated use `GetTransientTokenErrors$outboundSchema` instead. */ + export const outboundSchema = GetTransientTokenErrors$outboundSchema; + /** @deprecated use `GetTransientTokenErrors$Outbound` instead. */ + export type Outbound = GetTransientTokenErrors$Outbound; +} + +/** @internal */ +export const GetTransientTokenResponseBody$inboundSchema: z.ZodType< + GetTransientTokenResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetTransientTokenErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetTransientTokenResponseBody(remapped); + }); + +/** @internal */ +export type GetTransientTokenResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetTransientTokenResponseBody$outboundSchema: z.ZodType< + GetTransientTokenResponseBody$Outbound, + z.ZodTypeDef, + GetTransientTokenResponseBody +> = z + .instanceof(GetTransientTokenResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetTransientTokenErrors$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 GetTransientTokenResponseBody$ { + /** @deprecated use `GetTransientTokenResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetTransientTokenResponseBody$inboundSchema; + /** @deprecated use `GetTransientTokenResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetTransientTokenResponseBody$outboundSchema; + /** @deprecated use `GetTransientTokenResponseBody$Outbound` instead. */ + export type Outbound = GetTransientTokenResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getupdatestatus.ts b/src/sdk/models/errors/getupdatestatus.ts new file mode 100644 index 00000000..6ccface9 --- /dev/null +++ b/src/sdk/models/errors/getupdatestatus.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetUpdateStatusErrors = { + 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 GetUpdateStatusResponseBodyData = { + 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 GetUpdateStatusResponseBody 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$: GetUpdateStatusResponseBodyData; + + constructor(err: GetUpdateStatusResponseBodyData) { + 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 = "GetUpdateStatusResponseBody"; + } +} + +/** @internal */ +export const GetUpdateStatusErrors$inboundSchema: z.ZodType< + GetUpdateStatusErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetUpdateStatusErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetUpdateStatusErrors$outboundSchema: z.ZodType< + GetUpdateStatusErrors$Outbound, + z.ZodTypeDef, + GetUpdateStatusErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUpdateStatusErrors$ { + /** @deprecated use `GetUpdateStatusErrors$inboundSchema` instead. */ + export const inboundSchema = GetUpdateStatusErrors$inboundSchema; + /** @deprecated use `GetUpdateStatusErrors$outboundSchema` instead. */ + export const outboundSchema = GetUpdateStatusErrors$outboundSchema; + /** @deprecated use `GetUpdateStatusErrors$Outbound` instead. */ + export type Outbound = GetUpdateStatusErrors$Outbound; +} + +/** @internal */ +export const GetUpdateStatusResponseBody$inboundSchema: z.ZodType< + GetUpdateStatusResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetUpdateStatusErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetUpdateStatusResponseBody(remapped); + }); + +/** @internal */ +export type GetUpdateStatusResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetUpdateStatusResponseBody$outboundSchema: z.ZodType< + GetUpdateStatusResponseBody$Outbound, + z.ZodTypeDef, + GetUpdateStatusResponseBody +> = z + .instanceof(GetUpdateStatusResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetUpdateStatusErrors$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 GetUpdateStatusResponseBody$ { + /** @deprecated use `GetUpdateStatusResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetUpdateStatusResponseBody$inboundSchema; + /** @deprecated use `GetUpdateStatusResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetUpdateStatusResponseBody$outboundSchema; + /** @deprecated use `GetUpdateStatusResponseBody$Outbound` instead. */ + export type Outbound = GetUpdateStatusResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getuserdetails.ts b/src/sdk/models/errors/getuserdetails.ts new file mode 100644 index 00000000..3cad8771 --- /dev/null +++ b/src/sdk/models/errors/getuserdetails.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetUserDetailsErrors = { + 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 GetUserDetailsResponseBodyData = { + 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 GetUserDetailsResponseBody 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$: GetUserDetailsResponseBodyData; + + constructor(err: GetUserDetailsResponseBodyData) { + 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 = "GetUserDetailsResponseBody"; + } +} + +/** @internal */ +export const GetUserDetailsErrors$inboundSchema: z.ZodType< + GetUserDetailsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetUserDetailsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetUserDetailsErrors$outboundSchema: z.ZodType< + GetUserDetailsErrors$Outbound, + z.ZodTypeDef, + GetUserDetailsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUserDetailsErrors$ { + /** @deprecated use `GetUserDetailsErrors$inboundSchema` instead. */ + export const inboundSchema = GetUserDetailsErrors$inboundSchema; + /** @deprecated use `GetUserDetailsErrors$outboundSchema` instead. */ + export const outboundSchema = GetUserDetailsErrors$outboundSchema; + /** @deprecated use `GetUserDetailsErrors$Outbound` instead. */ + export type Outbound = GetUserDetailsErrors$Outbound; +} + +/** @internal */ +export const GetUserDetailsResponseBody$inboundSchema: z.ZodType< + GetUserDetailsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetUserDetailsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetUserDetailsResponseBody(remapped); + }); + +/** @internal */ +export type GetUserDetailsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetUserDetailsResponseBody$outboundSchema: z.ZodType< + GetUserDetailsResponseBody$Outbound, + z.ZodTypeDef, + GetUserDetailsResponseBody +> = z + .instanceof(GetUserDetailsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetUserDetailsErrors$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 GetUserDetailsResponseBody$ { + /** @deprecated use `GetUserDetailsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetUserDetailsResponseBody$inboundSchema; + /** @deprecated use `GetUserDetailsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetUserDetailsResponseBody$outboundSchema; + /** @deprecated use `GetUserDetailsResponseBody$Outbound` instead. */ + export type Outbound = GetUserDetailsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getuserfriends.ts b/src/sdk/models/errors/getuserfriends.ts new file mode 100644 index 00000000..e1d21169 --- /dev/null +++ b/src/sdk/models/errors/getuserfriends.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetUserFriendsErrors = { + 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 GetUserFriendsResponseBodyData = { + 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 GetUserFriendsResponseBody 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$: GetUserFriendsResponseBodyData; + + constructor(err: GetUserFriendsResponseBodyData) { + 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 = "GetUserFriendsResponseBody"; + } +} + +/** @internal */ +export const GetUserFriendsErrors$inboundSchema: z.ZodType< + GetUserFriendsErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetUserFriendsErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetUserFriendsErrors$outboundSchema: z.ZodType< + GetUserFriendsErrors$Outbound, + z.ZodTypeDef, + GetUserFriendsErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetUserFriendsErrors$ { + /** @deprecated use `GetUserFriendsErrors$inboundSchema` instead. */ + export const inboundSchema = GetUserFriendsErrors$inboundSchema; + /** @deprecated use `GetUserFriendsErrors$outboundSchema` instead. */ + export const outboundSchema = GetUserFriendsErrors$outboundSchema; + /** @deprecated use `GetUserFriendsErrors$Outbound` instead. */ + export type Outbound = GetUserFriendsErrors$Outbound; +} + +/** @internal */ +export const GetUserFriendsResponseBody$inboundSchema: z.ZodType< + GetUserFriendsResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetUserFriendsErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetUserFriendsResponseBody(remapped); + }); + +/** @internal */ +export type GetUserFriendsResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetUserFriendsResponseBody$outboundSchema: z.ZodType< + GetUserFriendsResponseBody$Outbound, + z.ZodTypeDef, + GetUserFriendsResponseBody +> = z + .instanceof(GetUserFriendsResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetUserFriendsErrors$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 GetUserFriendsResponseBody$ { + /** @deprecated use `GetUserFriendsResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetUserFriendsResponseBody$inboundSchema; + /** @deprecated use `GetUserFriendsResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetUserFriendsResponseBody$outboundSchema; + /** @deprecated use `GetUserFriendsResponseBody$Outbound` instead. */ + export type Outbound = GetUserFriendsResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/getwatchlist.ts b/src/sdk/models/errors/getwatchlist.ts new file mode 100644 index 00000000..ec62cd14 --- /dev/null +++ b/src/sdk/models/errors/getwatchlist.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetWatchListErrors = { + 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 GetWatchListResponseBodyData = { + 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 GetWatchListResponseBody 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$: GetWatchListResponseBodyData; + + constructor(err: GetWatchListResponseBodyData) { + 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 = "GetWatchListResponseBody"; + } +} + +/** @internal */ +export const GetWatchListErrors$inboundSchema: z.ZodType< + GetWatchListErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type GetWatchListErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const GetWatchListErrors$outboundSchema: z.ZodType< + GetWatchListErrors$Outbound, + z.ZodTypeDef, + GetWatchListErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetWatchListErrors$ { + /** @deprecated use `GetWatchListErrors$inboundSchema` instead. */ + export const inboundSchema = GetWatchListErrors$inboundSchema; + /** @deprecated use `GetWatchListErrors$outboundSchema` instead. */ + export const outboundSchema = GetWatchListErrors$outboundSchema; + /** @deprecated use `GetWatchListErrors$Outbound` instead. */ + export type Outbound = GetWatchListErrors$Outbound; +} + +/** @internal */ +export const GetWatchListResponseBody$inboundSchema: z.ZodType< + GetWatchListResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => GetWatchListErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new GetWatchListResponseBody(remapped); + }); + +/** @internal */ +export type GetWatchListResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const GetWatchListResponseBody$outboundSchema: z.ZodType< + GetWatchListResponseBody$Outbound, + z.ZodTypeDef, + GetWatchListResponseBody +> = z + .instanceof(GetWatchListResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => GetWatchListErrors$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 GetWatchListResponseBody$ { + /** @deprecated use `GetWatchListResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetWatchListResponseBody$inboundSchema; + /** @deprecated use `GetWatchListResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetWatchListResponseBody$outboundSchema; + /** @deprecated use `GetWatchListResponseBody$Outbound` instead. */ + export type Outbound = GetWatchListResponseBody$Outbound; +} diff --git a/src/models/httpclienterrors.ts b/src/sdk/models/errors/httpclienterrors.ts similarity index 100% rename from src/models/httpclienterrors.ts rename to src/sdk/models/errors/httpclienterrors.ts diff --git a/src/sdk/models/errors/index.ts b/src/sdk/models/errors/index.ts new file mode 100644 index 00000000..82e878af --- /dev/null +++ b/src/sdk/models/errors/index.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +export * from "./addplaylistcontents.js"; +export * from "./applyupdates.js"; +export * from "./cancelserveractivities.js"; +export * from "./checkforupdates.js"; +export * from "./clearplaylistcontents.js"; +export * from "./createplaylist.js"; +export * from "./deletelibrary.js"; +export * from "./deleteplaylist.js"; +export * from "./enablepapertrail.js"; +export * from "./getalllibraries.js"; +export * from "./getavailableclients.js"; +export * from "./getbandwidthstatistics.js"; +export * from "./getbannerimage.js"; +export * from "./getbutlertasks.js"; +export * from "./getcompanionsdata.js"; +export * from "./getdevices.js"; +export * from "./getfilehash.js"; +export * from "./getgeodata.js"; +export * from "./getglobalhubs.js"; +export * from "./gethomedata.js"; +export * from "./getlibrarydetails.js"; +export * from "./getlibraryhubs.js"; +export * from "./getlibraryitems.js"; +export * from "./getmediaproviders.js"; +export * from "./getmetadatabyratingkey.js"; +export * from "./getmetadatachildren.js"; +export * from "./getmyplexaccount.js"; +export * from "./getondeck.js"; +export * from "./getpin.js"; +export * from "./getplaylist.js"; +export * from "./getplaylistcontents.js"; +export * from "./getplaylists.js"; +export * from "./getrecentlyadded.js"; +export * from "./getrefreshlibrarymetadata.js"; +export * from "./getresizedphoto.js"; +export * from "./getresourcesstatistics.js"; +export * from "./getsearchlibrary.js"; +export * from "./getsearchresults.js"; +export * from "./getserveractivities.js"; +export * from "./getservercapabilities.js"; +export * from "./getserveridentity.js"; +export * from "./getserverlist.js"; +export * from "./getserverpreferences.js"; +export * from "./getserverresources.js"; +export * from "./getsessionhistory.js"; +export * from "./getsessions.js"; +export * from "./getsourceconnectioninformation.js"; +export * from "./getstatistics.js"; +export * from "./getthumbimage.js"; +export * from "./gettimeline.js"; +export * from "./gettokenbypinid.js"; +export * from "./gettopwatchedcontent.js"; +export * from "./gettranscodesessions.js"; +export * from "./gettransienttoken.js"; +export * from "./getupdatestatus.js"; +export * from "./getuserdetails.js"; +export * from "./getuserfriends.js"; +export * from "./getwatchlist.js"; +export * from "./httpclienterrors.js"; +export * from "./logline.js"; +export * from "./logmultiline.js"; +export * from "./markplayed.js"; +export * from "./markunplayed.js"; +export * from "./performsearch.js"; +export * from "./performvoicesearch.js"; +export * from "./postuserssignindata.js"; +export * from "./sdkerror.js"; +export * from "./sdkvalidationerror.js"; +export * from "./startalltasks.js"; +export * from "./starttask.js"; +export * from "./startuniversaltranscode.js"; +export * from "./stopalltasks.js"; +export * from "./stoptask.js"; +export * from "./stoptranscodesession.js"; +export * from "./updateplaylist.js"; +export * from "./updateplayprogress.js"; +export * from "./uploadplaylist.js"; diff --git a/src/models/loglineop.ts b/src/sdk/models/errors/logline.ts similarity index 50% rename from src/models/loglineop.ts rename to src/sdk/models/errors/logline.ts index 0d7f420e..a679f530 100644 --- a/src/models/loglineop.ts +++ b/src/sdk/models/errors/logline.ts @@ -2,51 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -/** - * An integer log level to write to the PMS log with. - * - * @remarks - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ -export enum Level { - Zero = 0, - One = 1, - Two = 2, - Three = 3, - Four = 4, -} - -export type LogLineRequest = { - /** - * An integer log level to write to the PMS log with. - * - * @remarks - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ - level: Level; - /** - * The text of the message to write to the log. - */ - message: string; - /** - * a string indicating the source of the message. - */ - source: string; -}; - export type LogLineErrors = { code?: number | undefined; message?: string | undefined; @@ -96,77 +54,6 @@ export class LogLineResponseBody extends Error { } } -export type LogLineResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const Level$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Level); - -/** @internal */ -export const Level$outboundSchema: z.ZodNativeEnum = Level$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Level$ { - /** @deprecated use `Level$inboundSchema` instead. */ - export const inboundSchema = Level$inboundSchema; - /** @deprecated use `Level$outboundSchema` instead. */ - export const outboundSchema = Level$outboundSchema; -} - -/** @internal */ -export const LogLineRequest$inboundSchema: z.ZodType = - z.object({ - level: Level$inboundSchema, - message: z.string(), - source: z.string(), - }); - -/** @internal */ -export type LogLineRequest$Outbound = { - level: number; - message: string; - source: string; -}; - -/** @internal */ -export const LogLineRequest$outboundSchema: z.ZodType< - LogLineRequest$Outbound, - z.ZodTypeDef, - LogLineRequest -> = z.object({ - level: Level$outboundSchema, - message: z.string(), - source: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogLineRequest$ { - /** @deprecated use `LogLineRequest$inboundSchema` instead. */ - export const inboundSchema = LogLineRequest$inboundSchema; - /** @deprecated use `LogLineRequest$outboundSchema` instead. */ - export const outboundSchema = LogLineRequest$outboundSchema; - /** @deprecated use `LogLineRequest$Outbound` instead. */ - export type Outbound = LogLineRequest$Outbound; -} - /** @internal */ export const LogLineErrors$inboundSchema: z.ZodType = z.object({ @@ -268,59 +155,3 @@ export namespace LogLineResponseBody$ { /** @deprecated use `LogLineResponseBody$Outbound` instead. */ export type Outbound = LogLineResponseBody$Outbound; } - -/** @internal */ -export const LogLineResponse$inboundSchema: z.ZodType = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type LogLineResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const LogLineResponse$outboundSchema: z.ZodType< - LogLineResponse$Outbound, - z.ZodTypeDef, - LogLineResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 LogLineResponse$ { - /** @deprecated use `LogLineResponse$inboundSchema` instead. */ - export const inboundSchema = LogLineResponse$inboundSchema; - /** @deprecated use `LogLineResponse$outboundSchema` instead. */ - export const outboundSchema = LogLineResponse$outboundSchema; - /** @deprecated use `LogLineResponse$Outbound` instead. */ - export type Outbound = LogLineResponse$Outbound; -} diff --git a/src/models/logmultilineop.ts b/src/sdk/models/errors/logmultiline.ts similarity index 69% rename from src/models/logmultilineop.ts rename to src/sdk/models/errors/logmultiline.ts index aedd5aff..fb6c6d0b 100644 --- a/src/models/logmultilineop.ts +++ b/src/sdk/models/errors/logmultiline.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type LogMultiLineErrors = { @@ -54,21 +54,6 @@ export class LogMultiLineResponseBody extends Error { } } -export type LogMultiLineResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export const LogMultiLineErrors$inboundSchema: z.ZodType< LogMultiLineErrors, @@ -173,63 +158,3 @@ export namespace LogMultiLineResponseBody$ { /** @deprecated use `LogMultiLineResponseBody$Outbound` instead. */ export type Outbound = LogMultiLineResponseBody$Outbound; } - -/** @internal */ -export const LogMultiLineResponse$inboundSchema: z.ZodType< - LogMultiLineResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type LogMultiLineResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const LogMultiLineResponse$outboundSchema: z.ZodType< - LogMultiLineResponse$Outbound, - z.ZodTypeDef, - LogMultiLineResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 LogMultiLineResponse$ { - /** @deprecated use `LogMultiLineResponse$inboundSchema` instead. */ - export const inboundSchema = LogMultiLineResponse$inboundSchema; - /** @deprecated use `LogMultiLineResponse$outboundSchema` instead. */ - export const outboundSchema = LogMultiLineResponse$outboundSchema; - /** @deprecated use `LogMultiLineResponse$Outbound` instead. */ - export type Outbound = LogMultiLineResponse$Outbound; -} diff --git a/src/models/markplayedop.ts b/src/sdk/models/errors/markplayed.ts similarity index 59% rename from src/models/markplayedop.ts rename to src/sdk/models/errors/markplayed.ts index 6daa7b55..b0971605 100644 --- a/src/models/markplayedop.ts +++ b/src/sdk/models/errors/markplayed.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type MarkPlayedRequest = { - /** - * The media key to mark as played - */ - key: number; -}; - export type MarkPlayedErrors = { code?: number | undefined; message?: string | undefined; @@ -61,54 +54,6 @@ export class MarkPlayedResponseBody extends Error { } } -export type MarkPlayedResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const MarkPlayedRequest$inboundSchema: z.ZodType = - z.object({ - key: z.number(), - }); - -/** @internal */ -export type MarkPlayedRequest$Outbound = { - key: number; -}; - -/** @internal */ -export const MarkPlayedRequest$outboundSchema: z.ZodType< - MarkPlayedRequest$Outbound, - z.ZodTypeDef, - MarkPlayedRequest -> = z.object({ - key: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MarkPlayedRequest$ { - /** @deprecated use `MarkPlayedRequest$inboundSchema` instead. */ - export const inboundSchema = MarkPlayedRequest$inboundSchema; - /** @deprecated use `MarkPlayedRequest$outboundSchema` instead. */ - export const outboundSchema = MarkPlayedRequest$outboundSchema; - /** @deprecated use `MarkPlayedRequest$Outbound` instead. */ - export type Outbound = MarkPlayedRequest$Outbound; -} - /** @internal */ export const MarkPlayedErrors$inboundSchema: z.ZodType = z.object({ @@ -210,63 +155,3 @@ export namespace MarkPlayedResponseBody$ { /** @deprecated use `MarkPlayedResponseBody$Outbound` instead. */ export type Outbound = MarkPlayedResponseBody$Outbound; } - -/** @internal */ -export const MarkPlayedResponse$inboundSchema: z.ZodType< - MarkPlayedResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type MarkPlayedResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const MarkPlayedResponse$outboundSchema: z.ZodType< - MarkPlayedResponse$Outbound, - z.ZodTypeDef, - MarkPlayedResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 MarkPlayedResponse$ { - /** @deprecated use `MarkPlayedResponse$inboundSchema` instead. */ - export const inboundSchema = MarkPlayedResponse$inboundSchema; - /** @deprecated use `MarkPlayedResponse$outboundSchema` instead. */ - export const outboundSchema = MarkPlayedResponse$outboundSchema; - /** @deprecated use `MarkPlayedResponse$Outbound` instead. */ - export type Outbound = MarkPlayedResponse$Outbound; -} diff --git a/src/models/markunplayedop.ts b/src/sdk/models/errors/markunplayed.ts similarity index 59% rename from src/models/markunplayedop.ts rename to src/sdk/models/errors/markunplayed.ts index 0e5313ee..fb380d6f 100644 --- a/src/models/markunplayedop.ts +++ b/src/sdk/models/errors/markunplayed.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type MarkUnplayedRequest = { - /** - * The media key to mark as Unplayed - */ - key: number; -}; - export type MarkUnplayedErrors = { code?: number | undefined; message?: string | undefined; @@ -61,57 +54,6 @@ export class MarkUnplayedResponseBody extends Error { } } -export type MarkUnplayedResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const MarkUnplayedRequest$inboundSchema: z.ZodType< - MarkUnplayedRequest, - z.ZodTypeDef, - unknown -> = z.object({ - key: z.number(), -}); - -/** @internal */ -export type MarkUnplayedRequest$Outbound = { - key: number; -}; - -/** @internal */ -export const MarkUnplayedRequest$outboundSchema: z.ZodType< - MarkUnplayedRequest$Outbound, - z.ZodTypeDef, - MarkUnplayedRequest -> = z.object({ - key: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MarkUnplayedRequest$ { - /** @deprecated use `MarkUnplayedRequest$inboundSchema` instead. */ - export const inboundSchema = MarkUnplayedRequest$inboundSchema; - /** @deprecated use `MarkUnplayedRequest$outboundSchema` instead. */ - export const outboundSchema = MarkUnplayedRequest$outboundSchema; - /** @deprecated use `MarkUnplayedRequest$Outbound` instead. */ - export type Outbound = MarkUnplayedRequest$Outbound; -} - /** @internal */ export const MarkUnplayedErrors$inboundSchema: z.ZodType< MarkUnplayedErrors, @@ -216,63 +158,3 @@ export namespace MarkUnplayedResponseBody$ { /** @deprecated use `MarkUnplayedResponseBody$Outbound` instead. */ export type Outbound = MarkUnplayedResponseBody$Outbound; } - -/** @internal */ -export const MarkUnplayedResponse$inboundSchema: z.ZodType< - MarkUnplayedResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type MarkUnplayedResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const MarkUnplayedResponse$outboundSchema: z.ZodType< - MarkUnplayedResponse$Outbound, - z.ZodTypeDef, - MarkUnplayedResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 MarkUnplayedResponse$ { - /** @deprecated use `MarkUnplayedResponse$inboundSchema` instead. */ - export const inboundSchema = MarkUnplayedResponse$inboundSchema; - /** @deprecated use `MarkUnplayedResponse$outboundSchema` instead. */ - export const outboundSchema = MarkUnplayedResponse$outboundSchema; - /** @deprecated use `MarkUnplayedResponse$Outbound` instead. */ - export type Outbound = MarkUnplayedResponse$Outbound; -} diff --git a/src/models/performsearchop.ts b/src/sdk/models/errors/performsearch.ts similarity index 56% rename from src/models/performsearchop.ts rename to src/sdk/models/errors/performsearch.ts index bc46b107..70a032d1 100644 --- a/src/models/performsearchop.ts +++ b/src/sdk/models/errors/performsearch.ts @@ -2,24 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type PerformSearchRequest = { - /** - * The query term - */ - query: string; - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - sectionId?: number | undefined; - /** - * The number of items to return per hub - */ - limit?: number | undefined; -}; - export type PerformSearchErrors = { code?: number | undefined; message?: string | undefined; @@ -69,63 +54,6 @@ export class PerformSearchResponseBody extends Error { } } -export type PerformSearchResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const PerformSearchRequest$inboundSchema: z.ZodType< - PerformSearchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - query: z.string(), - sectionId: z.number().optional(), - limit: z.number().default(3), -}); - -/** @internal */ -export type PerformSearchRequest$Outbound = { - query: string; - sectionId?: number | undefined; - limit: number; -}; - -/** @internal */ -export const PerformSearchRequest$outboundSchema: z.ZodType< - PerformSearchRequest$Outbound, - z.ZodTypeDef, - PerformSearchRequest -> = z.object({ - query: z.string(), - sectionId: z.number().optional(), - limit: z.number().default(3), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PerformSearchRequest$ { - /** @deprecated use `PerformSearchRequest$inboundSchema` instead. */ - export const inboundSchema = PerformSearchRequest$inboundSchema; - /** @deprecated use `PerformSearchRequest$outboundSchema` instead. */ - export const outboundSchema = PerformSearchRequest$outboundSchema; - /** @deprecated use `PerformSearchRequest$Outbound` instead. */ - export type Outbound = PerformSearchRequest$Outbound; -} - /** @internal */ export const PerformSearchErrors$inboundSchema: z.ZodType< PerformSearchErrors, @@ -230,63 +158,3 @@ export namespace PerformSearchResponseBody$ { /** @deprecated use `PerformSearchResponseBody$Outbound` instead. */ export type Outbound = PerformSearchResponseBody$Outbound; } - -/** @internal */ -export const PerformSearchResponse$inboundSchema: z.ZodType< - PerformSearchResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type PerformSearchResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const PerformSearchResponse$outboundSchema: z.ZodType< - PerformSearchResponse$Outbound, - z.ZodTypeDef, - PerformSearchResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 PerformSearchResponse$ { - /** @deprecated use `PerformSearchResponse$inboundSchema` instead. */ - export const inboundSchema = PerformSearchResponse$inboundSchema; - /** @deprecated use `PerformSearchResponse$outboundSchema` instead. */ - export const outboundSchema = PerformSearchResponse$outboundSchema; - /** @deprecated use `PerformSearchResponse$Outbound` instead. */ - export type Outbound = PerformSearchResponse$Outbound; -} diff --git a/src/models/performvoicesearchop.ts b/src/sdk/models/errors/performvoicesearch.ts similarity index 56% rename from src/models/performvoicesearchop.ts rename to src/sdk/models/errors/performvoicesearch.ts index 747dca88..236b61bd 100644 --- a/src/models/performvoicesearchop.ts +++ b/src/sdk/models/errors/performvoicesearch.ts @@ -2,24 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type PerformVoiceSearchRequest = { - /** - * The query term - */ - query: string; - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - sectionId?: number | undefined; - /** - * The number of items to return per hub - */ - limit?: number | undefined; -}; - export type PerformVoiceSearchErrors = { code?: number | undefined; message?: string | undefined; @@ -69,63 +54,6 @@ export class PerformVoiceSearchResponseBody extends Error { } } -export type PerformVoiceSearchResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const PerformVoiceSearchRequest$inboundSchema: z.ZodType< - PerformVoiceSearchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - query: z.string(), - sectionId: z.number().optional(), - limit: z.number().default(3), -}); - -/** @internal */ -export type PerformVoiceSearchRequest$Outbound = { - query: string; - sectionId?: number | undefined; - limit: number; -}; - -/** @internal */ -export const PerformVoiceSearchRequest$outboundSchema: z.ZodType< - PerformVoiceSearchRequest$Outbound, - z.ZodTypeDef, - PerformVoiceSearchRequest -> = z.object({ - query: z.string(), - sectionId: z.number().optional(), - limit: z.number().default(3), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PerformVoiceSearchRequest$ { - /** @deprecated use `PerformVoiceSearchRequest$inboundSchema` instead. */ - export const inboundSchema = PerformVoiceSearchRequest$inboundSchema; - /** @deprecated use `PerformVoiceSearchRequest$outboundSchema` instead. */ - export const outboundSchema = PerformVoiceSearchRequest$outboundSchema; - /** @deprecated use `PerformVoiceSearchRequest$Outbound` instead. */ - export type Outbound = PerformVoiceSearchRequest$Outbound; -} - /** @internal */ export const PerformVoiceSearchErrors$inboundSchema: z.ZodType< PerformVoiceSearchErrors, @@ -230,63 +158,3 @@ export namespace PerformVoiceSearchResponseBody$ { /** @deprecated use `PerformVoiceSearchResponseBody$Outbound` instead. */ export type Outbound = PerformVoiceSearchResponseBody$Outbound; } - -/** @internal */ -export const PerformVoiceSearchResponse$inboundSchema: z.ZodType< - PerformVoiceSearchResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type PerformVoiceSearchResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const PerformVoiceSearchResponse$outboundSchema: z.ZodType< - PerformVoiceSearchResponse$Outbound, - z.ZodTypeDef, - PerformVoiceSearchResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 PerformVoiceSearchResponse$ { - /** @deprecated use `PerformVoiceSearchResponse$inboundSchema` instead. */ - export const inboundSchema = PerformVoiceSearchResponse$inboundSchema; - /** @deprecated use `PerformVoiceSearchResponse$outboundSchema` instead. */ - export const outboundSchema = PerformVoiceSearchResponse$outboundSchema; - /** @deprecated use `PerformVoiceSearchResponse$Outbound` instead. */ - export type Outbound = PerformVoiceSearchResponse$Outbound; -} diff --git a/src/sdk/models/errors/postuserssignindata.ts b/src/sdk/models/errors/postuserssignindata.ts new file mode 100644 index 00000000..63f2500a --- /dev/null +++ b/src/sdk/models/errors/postuserssignindata.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type PostUsersSignInDataErrors = { + 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 PostUsersSignInDataResponseBodyData = { + 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 PostUsersSignInDataResponseBody 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$: PostUsersSignInDataResponseBodyData; + + constructor(err: PostUsersSignInDataResponseBodyData) { + 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 = "PostUsersSignInDataResponseBody"; + } +} + +/** @internal */ +export const PostUsersSignInDataErrors$inboundSchema: z.ZodType< + PostUsersSignInDataErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type PostUsersSignInDataErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const PostUsersSignInDataErrors$outboundSchema: z.ZodType< + PostUsersSignInDataErrors$Outbound, + z.ZodTypeDef, + PostUsersSignInDataErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PostUsersSignInDataErrors$ { + /** @deprecated use `PostUsersSignInDataErrors$inboundSchema` instead. */ + export const inboundSchema = PostUsersSignInDataErrors$inboundSchema; + /** @deprecated use `PostUsersSignInDataErrors$outboundSchema` instead. */ + export const outboundSchema = PostUsersSignInDataErrors$outboundSchema; + /** @deprecated use `PostUsersSignInDataErrors$Outbound` instead. */ + export type Outbound = PostUsersSignInDataErrors$Outbound; +} + +/** @internal */ +export const PostUsersSignInDataResponseBody$inboundSchema: z.ZodType< + PostUsersSignInDataResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => PostUsersSignInDataErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new PostUsersSignInDataResponseBody(remapped); + }); + +/** @internal */ +export type PostUsersSignInDataResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const PostUsersSignInDataResponseBody$outboundSchema: z.ZodType< + PostUsersSignInDataResponseBody$Outbound, + z.ZodTypeDef, + PostUsersSignInDataResponseBody +> = z + .instanceof(PostUsersSignInDataResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => PostUsersSignInDataErrors$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 PostUsersSignInDataResponseBody$ { + /** @deprecated use `PostUsersSignInDataResponseBody$inboundSchema` instead. */ + export const inboundSchema = PostUsersSignInDataResponseBody$inboundSchema; + /** @deprecated use `PostUsersSignInDataResponseBody$outboundSchema` instead. */ + export const outboundSchema = PostUsersSignInDataResponseBody$outboundSchema; + /** @deprecated use `PostUsersSignInDataResponseBody$Outbound` instead. */ + export type Outbound = PostUsersSignInDataResponseBody$Outbound; +} diff --git a/src/models/sdkerror.ts b/src/sdk/models/errors/sdkerror.ts similarity index 100% rename from src/models/sdkerror.ts rename to src/sdk/models/errors/sdkerror.ts diff --git a/src/models/sdkvalidationerror.ts b/src/sdk/models/errors/sdkvalidationerror.ts similarity index 100% rename from src/models/sdkvalidationerror.ts rename to src/sdk/models/errors/sdkvalidationerror.ts diff --git a/src/models/startalltasksop.ts b/src/sdk/models/errors/startalltasks.ts similarity index 69% rename from src/models/startalltasksop.ts rename to src/sdk/models/errors/startalltasks.ts index d9271cd9..f9af6dab 100644 --- a/src/models/startalltasksop.ts +++ b/src/sdk/models/errors/startalltasks.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type StartAllTasksErrors = { @@ -54,21 +54,6 @@ export class StartAllTasksResponseBody extends Error { } } -export type StartAllTasksResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export const StartAllTasksErrors$inboundSchema: z.ZodType< StartAllTasksErrors, @@ -173,63 +158,3 @@ export namespace StartAllTasksResponseBody$ { /** @deprecated use `StartAllTasksResponseBody$Outbound` instead. */ export type Outbound = StartAllTasksResponseBody$Outbound; } - -/** @internal */ -export const StartAllTasksResponse$inboundSchema: z.ZodType< - StartAllTasksResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type StartAllTasksResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StartAllTasksResponse$outboundSchema: z.ZodType< - StartAllTasksResponse$Outbound, - z.ZodTypeDef, - StartAllTasksResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 StartAllTasksResponse$ { - /** @deprecated use `StartAllTasksResponse$inboundSchema` instead. */ - export const inboundSchema = StartAllTasksResponse$inboundSchema; - /** @deprecated use `StartAllTasksResponse$outboundSchema` instead. */ - export const outboundSchema = StartAllTasksResponse$outboundSchema; - /** @deprecated use `StartAllTasksResponse$Outbound` instead. */ - export type Outbound = StartAllTasksResponse$Outbound; -} diff --git a/src/sdk/models/errors/starttask.ts b/src/sdk/models/errors/starttask.ts new file mode 100644 index 00000000..5f4998ca --- /dev/null +++ b/src/sdk/models/errors/starttask.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type StartTaskErrors = { + 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 StartTaskResponseBodyData = { + 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 StartTaskResponseBody 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$: StartTaskResponseBodyData; + + constructor(err: StartTaskResponseBodyData) { + 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 = "StartTaskResponseBody"; + } +} + +/** @internal */ +export const StartTaskErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type StartTaskErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StartTaskErrors$outboundSchema: z.ZodType< + StartTaskErrors$Outbound, + z.ZodTypeDef, + StartTaskErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartTaskErrors$ { + /** @deprecated use `StartTaskErrors$inboundSchema` instead. */ + export const inboundSchema = StartTaskErrors$inboundSchema; + /** @deprecated use `StartTaskErrors$outboundSchema` instead. */ + export const outboundSchema = StartTaskErrors$outboundSchema; + /** @deprecated use `StartTaskErrors$Outbound` instead. */ + export type Outbound = StartTaskErrors$Outbound; +} + +/** @internal */ +export const StartTaskResponseBody$inboundSchema: z.ZodType< + StartTaskResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StartTaskErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StartTaskResponseBody(remapped); + }); + +/** @internal */ +export type StartTaskResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StartTaskResponseBody$outboundSchema: z.ZodType< + StartTaskResponseBody$Outbound, + z.ZodTypeDef, + StartTaskResponseBody +> = z + .instanceof(StartTaskResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => StartTaskErrors$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 StartTaskResponseBody$ { + /** @deprecated use `StartTaskResponseBody$inboundSchema` instead. */ + export const inboundSchema = StartTaskResponseBody$inboundSchema; + /** @deprecated use `StartTaskResponseBody$outboundSchema` instead. */ + export const outboundSchema = StartTaskResponseBody$outboundSchema; + /** @deprecated use `StartTaskResponseBody$Outbound` instead. */ + export type Outbound = StartTaskResponseBody$Outbound; +} diff --git a/src/sdk/models/errors/startuniversaltranscode.ts b/src/sdk/models/errors/startuniversaltranscode.ts new file mode 100644 index 00000000..994b0fc2 --- /dev/null +++ b/src/sdk/models/errors/startuniversaltranscode.ts @@ -0,0 +1,162 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type StartUniversalTranscodeErrors = { + 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 StartUniversalTranscodeResponseBodyData = { + 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 StartUniversalTranscodeResponseBody 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$: StartUniversalTranscodeResponseBodyData; + + constructor(err: StartUniversalTranscodeResponseBodyData) { + 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 = "StartUniversalTranscodeResponseBody"; + } +} + +/** @internal */ +export const StartUniversalTranscodeErrors$inboundSchema: z.ZodType< + StartUniversalTranscodeErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type StartUniversalTranscodeErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StartUniversalTranscodeErrors$outboundSchema: z.ZodType< + StartUniversalTranscodeErrors$Outbound, + z.ZodTypeDef, + StartUniversalTranscodeErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StartUniversalTranscodeErrors$ { + /** @deprecated use `StartUniversalTranscodeErrors$inboundSchema` instead. */ + export const inboundSchema = StartUniversalTranscodeErrors$inboundSchema; + /** @deprecated use `StartUniversalTranscodeErrors$outboundSchema` instead. */ + export const outboundSchema = StartUniversalTranscodeErrors$outboundSchema; + /** @deprecated use `StartUniversalTranscodeErrors$Outbound` instead. */ + export type Outbound = StartUniversalTranscodeErrors$Outbound; +} + +/** @internal */ +export const StartUniversalTranscodeResponseBody$inboundSchema: z.ZodType< + StartUniversalTranscodeResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StartUniversalTranscodeErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StartUniversalTranscodeResponseBody(remapped); + }); + +/** @internal */ +export type StartUniversalTranscodeResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StartUniversalTranscodeResponseBody$outboundSchema: z.ZodType< + StartUniversalTranscodeResponseBody$Outbound, + z.ZodTypeDef, + StartUniversalTranscodeResponseBody +> = z + .instanceof(StartUniversalTranscodeResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z + .array(z.lazy(() => StartUniversalTranscodeErrors$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 StartUniversalTranscodeResponseBody$ { + /** @deprecated use `StartUniversalTranscodeResponseBody$inboundSchema` instead. */ + export const inboundSchema = StartUniversalTranscodeResponseBody$inboundSchema; + /** @deprecated use `StartUniversalTranscodeResponseBody$outboundSchema` instead. */ + export const outboundSchema = StartUniversalTranscodeResponseBody$outboundSchema; + /** @deprecated use `StartUniversalTranscodeResponseBody$Outbound` instead. */ + export type Outbound = StartUniversalTranscodeResponseBody$Outbound; +} diff --git a/src/models/stopalltasksop.ts b/src/sdk/models/errors/stopalltasks.ts similarity index 69% rename from src/models/stopalltasksop.ts rename to src/sdk/models/errors/stopalltasks.ts index ae727e4b..36df45ba 100644 --- a/src/models/stopalltasksop.ts +++ b/src/sdk/models/errors/stopalltasks.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type StopAllTasksErrors = { @@ -54,21 +54,6 @@ export class StopAllTasksResponseBody extends Error { } } -export type StopAllTasksResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - /** @internal */ export const StopAllTasksErrors$inboundSchema: z.ZodType< StopAllTasksErrors, @@ -173,63 +158,3 @@ export namespace StopAllTasksResponseBody$ { /** @deprecated use `StopAllTasksResponseBody$Outbound` instead. */ export type Outbound = StopAllTasksResponseBody$Outbound; } - -/** @internal */ -export const StopAllTasksResponse$inboundSchema: z.ZodType< - StopAllTasksResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type StopAllTasksResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StopAllTasksResponse$outboundSchema: z.ZodType< - StopAllTasksResponse$Outbound, - z.ZodTypeDef, - StopAllTasksResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 StopAllTasksResponse$ { - /** @deprecated use `StopAllTasksResponse$inboundSchema` instead. */ - export const inboundSchema = StopAllTasksResponse$inboundSchema; - /** @deprecated use `StopAllTasksResponse$outboundSchema` instead. */ - export const outboundSchema = StopAllTasksResponse$outboundSchema; - /** @deprecated use `StopAllTasksResponse$Outbound` instead. */ - export type Outbound = StopAllTasksResponse$Outbound; -} diff --git a/src/sdk/models/errors/stoptask.ts b/src/sdk/models/errors/stoptask.ts new file mode 100644 index 00000000..4e361228 --- /dev/null +++ b/src/sdk/models/errors/stoptask.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type StopTaskErrors = { + 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 StopTaskResponseBodyData = { + 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 StopTaskResponseBody 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$: StopTaskResponseBodyData; + + constructor(err: StopTaskResponseBodyData) { + 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 = "StopTaskResponseBody"; + } +} + +/** @internal */ +export const StopTaskErrors$inboundSchema: z.ZodType = + z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), + }); + +/** @internal */ +export type StopTaskErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const StopTaskErrors$outboundSchema: z.ZodType< + StopTaskErrors$Outbound, + z.ZodTypeDef, + StopTaskErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopTaskErrors$ { + /** @deprecated use `StopTaskErrors$inboundSchema` instead. */ + export const inboundSchema = StopTaskErrors$inboundSchema; + /** @deprecated use `StopTaskErrors$outboundSchema` instead. */ + export const outboundSchema = StopTaskErrors$outboundSchema; + /** @deprecated use `StopTaskErrors$Outbound` instead. */ + export type Outbound = StopTaskErrors$Outbound; +} + +/** @internal */ +export const StopTaskResponseBody$inboundSchema: z.ZodType< + StopTaskResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => StopTaskErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new StopTaskResponseBody(remapped); + }); + +/** @internal */ +export type StopTaskResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const StopTaskResponseBody$outboundSchema: z.ZodType< + StopTaskResponseBody$Outbound, + z.ZodTypeDef, + StopTaskResponseBody +> = z + .instanceof(StopTaskResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => StopTaskErrors$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 StopTaskResponseBody$ { + /** @deprecated use `StopTaskResponseBody$inboundSchema` instead. */ + export const inboundSchema = StopTaskResponseBody$inboundSchema; + /** @deprecated use `StopTaskResponseBody$outboundSchema` instead. */ + export const outboundSchema = StopTaskResponseBody$outboundSchema; + /** @deprecated use `StopTaskResponseBody$Outbound` instead. */ + export type Outbound = StopTaskResponseBody$Outbound; +} diff --git a/src/models/stoptranscodesessionop.ts b/src/sdk/models/errors/stoptranscodesession.ts similarity index 58% rename from src/models/stoptranscodesessionop.ts rename to src/sdk/models/errors/stoptranscodesession.ts index 48649d38..7be1d69a 100644 --- a/src/models/stoptranscodesessionop.ts +++ b/src/sdk/models/errors/stoptranscodesession.ts @@ -2,16 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type StopTranscodeSessionRequest = { - /** - * the Key of the transcode session to stop - */ - sessionKey: string; -}; - export type StopTranscodeSessionErrors = { code?: number | undefined; message?: string | undefined; @@ -61,57 +54,6 @@ export class StopTranscodeSessionResponseBody extends Error { } } -export type StopTranscodeSessionResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const StopTranscodeSessionRequest$inboundSchema: z.ZodType< - StopTranscodeSessionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - sessionKey: z.string(), -}); - -/** @internal */ -export type StopTranscodeSessionRequest$Outbound = { - sessionKey: string; -}; - -/** @internal */ -export const StopTranscodeSessionRequest$outboundSchema: z.ZodType< - StopTranscodeSessionRequest$Outbound, - z.ZodTypeDef, - StopTranscodeSessionRequest -> = z.object({ - sessionKey: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTranscodeSessionRequest$ { - /** @deprecated use `StopTranscodeSessionRequest$inboundSchema` instead. */ - export const inboundSchema = StopTranscodeSessionRequest$inboundSchema; - /** @deprecated use `StopTranscodeSessionRequest$outboundSchema` instead. */ - export const outboundSchema = StopTranscodeSessionRequest$outboundSchema; - /** @deprecated use `StopTranscodeSessionRequest$Outbound` instead. */ - export type Outbound = StopTranscodeSessionRequest$Outbound; -} - /** @internal */ export const StopTranscodeSessionErrors$inboundSchema: z.ZodType< StopTranscodeSessionErrors, @@ -216,63 +158,3 @@ export namespace StopTranscodeSessionResponseBody$ { /** @deprecated use `StopTranscodeSessionResponseBody$Outbound` instead. */ export type Outbound = StopTranscodeSessionResponseBody$Outbound; } - -/** @internal */ -export const StopTranscodeSessionResponse$inboundSchema: z.ZodType< - StopTranscodeSessionResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type StopTranscodeSessionResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const StopTranscodeSessionResponse$outboundSchema: z.ZodType< - StopTranscodeSessionResponse$Outbound, - z.ZodTypeDef, - StopTranscodeSessionResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 StopTranscodeSessionResponse$ { - /** @deprecated use `StopTranscodeSessionResponse$inboundSchema` instead. */ - export const inboundSchema = StopTranscodeSessionResponse$inboundSchema; - /** @deprecated use `StopTranscodeSessionResponse$outboundSchema` instead. */ - export const outboundSchema = StopTranscodeSessionResponse$outboundSchema; - /** @deprecated use `StopTranscodeSessionResponse$Outbound` instead. */ - export type Outbound = StopTranscodeSessionResponse$Outbound; -} diff --git a/src/models/updateplaylistop.ts b/src/sdk/models/errors/updateplaylist.ts similarity index 56% rename from src/models/updateplaylistop.ts rename to src/sdk/models/errors/updateplaylist.ts index c0588d5b..4b41e60c 100644 --- a/src/models/updateplaylistop.ts +++ b/src/sdk/models/errors/updateplaylist.ts @@ -2,24 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type UpdatePlaylistRequest = { - /** - * the ID of the playlist - */ - playlistID: number; - /** - * name of the playlist - */ - title?: string | undefined; - /** - * summary description of the playlist - */ - summary?: string | undefined; -}; - export type UpdatePlaylistErrors = { code?: number | undefined; message?: string | undefined; @@ -69,63 +54,6 @@ export class UpdatePlaylistResponseBody extends Error { } } -export type UpdatePlaylistResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const UpdatePlaylistRequest$inboundSchema: z.ZodType< - UpdatePlaylistRequest, - z.ZodTypeDef, - unknown -> = z.object({ - playlistID: z.number(), - title: z.string().optional(), - summary: z.string().optional(), -}); - -/** @internal */ -export type UpdatePlaylistRequest$Outbound = { - playlistID: number; - title?: string | undefined; - summary?: string | undefined; -}; - -/** @internal */ -export const UpdatePlaylistRequest$outboundSchema: z.ZodType< - UpdatePlaylistRequest$Outbound, - z.ZodTypeDef, - UpdatePlaylistRequest -> = z.object({ - playlistID: z.number(), - title: z.string().optional(), - summary: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePlaylistRequest$ { - /** @deprecated use `UpdatePlaylistRequest$inboundSchema` instead. */ - export const inboundSchema = UpdatePlaylistRequest$inboundSchema; - /** @deprecated use `UpdatePlaylistRequest$outboundSchema` instead. */ - export const outboundSchema = UpdatePlaylistRequest$outboundSchema; - /** @deprecated use `UpdatePlaylistRequest$Outbound` instead. */ - export type Outbound = UpdatePlaylistRequest$Outbound; -} - /** @internal */ export const UpdatePlaylistErrors$inboundSchema: z.ZodType< UpdatePlaylistErrors, @@ -230,63 +158,3 @@ export namespace UpdatePlaylistResponseBody$ { /** @deprecated use `UpdatePlaylistResponseBody$Outbound` instead. */ export type Outbound = UpdatePlaylistResponseBody$Outbound; } - -/** @internal */ -export const UpdatePlaylistResponse$inboundSchema: z.ZodType< - UpdatePlaylistResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type UpdatePlaylistResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UpdatePlaylistResponse$outboundSchema: z.ZodType< - UpdatePlaylistResponse$Outbound, - z.ZodTypeDef, - UpdatePlaylistResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 UpdatePlaylistResponse$ { - /** @deprecated use `UpdatePlaylistResponse$inboundSchema` instead. */ - export const inboundSchema = UpdatePlaylistResponse$inboundSchema; - /** @deprecated use `UpdatePlaylistResponse$outboundSchema` instead. */ - export const outboundSchema = UpdatePlaylistResponse$outboundSchema; - /** @deprecated use `UpdatePlaylistResponse$Outbound` instead. */ - export type Outbound = UpdatePlaylistResponse$Outbound; -} diff --git a/src/models/updateplayprogressop.ts b/src/sdk/models/errors/updateplayprogress.ts similarity index 57% rename from src/models/updateplayprogressop.ts rename to src/sdk/models/errors/updateplayprogress.ts index 9ad8fedf..ce8994bf 100644 --- a/src/models/updateplayprogressop.ts +++ b/src/sdk/models/errors/updateplayprogress.ts @@ -2,24 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type UpdatePlayProgressRequest = { - /** - * the media key - */ - key: string; - /** - * The time, in milliseconds, used to set the media playback progress. - */ - time: number; - /** - * The playback state of the media item. - */ - state: string; -}; - export type UpdatePlayProgressErrors = { code?: number | undefined; message?: string | undefined; @@ -69,63 +54,6 @@ export class UpdatePlayProgressResponseBody extends Error { } } -export type UpdatePlayProgressResponse = { - /** - * HTTP response content type for this operation - */ - contentType: string; - /** - * HTTP response status code for this operation - */ - statusCode: number; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse: Response; -}; - -/** @internal */ -export const UpdatePlayProgressRequest$inboundSchema: z.ZodType< - UpdatePlayProgressRequest, - z.ZodTypeDef, - unknown -> = z.object({ - key: z.string(), - time: z.number(), - state: z.string(), -}); - -/** @internal */ -export type UpdatePlayProgressRequest$Outbound = { - key: string; - time: number; - state: string; -}; - -/** @internal */ -export const UpdatePlayProgressRequest$outboundSchema: z.ZodType< - UpdatePlayProgressRequest$Outbound, - z.ZodTypeDef, - UpdatePlayProgressRequest -> = z.object({ - key: z.string(), - time: z.number(), - state: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePlayProgressRequest$ { - /** @deprecated use `UpdatePlayProgressRequest$inboundSchema` instead. */ - export const inboundSchema = UpdatePlayProgressRequest$inboundSchema; - /** @deprecated use `UpdatePlayProgressRequest$outboundSchema` instead. */ - export const outboundSchema = UpdatePlayProgressRequest$outboundSchema; - /** @deprecated use `UpdatePlayProgressRequest$Outbound` instead. */ - export type Outbound = UpdatePlayProgressRequest$Outbound; -} - /** @internal */ export const UpdatePlayProgressErrors$inboundSchema: z.ZodType< UpdatePlayProgressErrors, @@ -230,63 +158,3 @@ export namespace UpdatePlayProgressResponseBody$ { /** @deprecated use `UpdatePlayProgressResponseBody$Outbound` instead. */ export type Outbound = UpdatePlayProgressResponseBody$Outbound; } - -/** @internal */ -export const UpdatePlayProgressResponse$inboundSchema: z.ZodType< - UpdatePlayProgressResponse, - z.ZodTypeDef, - unknown -> = z - .object({ - ContentType: z.string(), - StatusCode: z.number().int(), - RawResponse: z.instanceof(Response), - }) - .transform((v) => { - return remap$(v, { - ContentType: "contentType", - StatusCode: "statusCode", - RawResponse: "rawResponse", - }); - }); - -/** @internal */ -export type UpdatePlayProgressResponse$Outbound = { - ContentType: string; - StatusCode: number; - RawResponse: never; -}; - -/** @internal */ -export const UpdatePlayProgressResponse$outboundSchema: z.ZodType< - UpdatePlayProgressResponse$Outbound, - z.ZodTypeDef, - UpdatePlayProgressResponse -> = z - .object({ - contentType: z.string(), - statusCode: z.number().int(), - rawResponse: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - }) - .transform((v) => { - return remap$(v, { - contentType: "ContentType", - statusCode: "StatusCode", - 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 UpdatePlayProgressResponse$ { - /** @deprecated use `UpdatePlayProgressResponse$inboundSchema` instead. */ - export const inboundSchema = UpdatePlayProgressResponse$inboundSchema; - /** @deprecated use `UpdatePlayProgressResponse$outboundSchema` instead. */ - export const outboundSchema = UpdatePlayProgressResponse$outboundSchema; - /** @deprecated use `UpdatePlayProgressResponse$Outbound` instead. */ - export type Outbound = UpdatePlayProgressResponse$Outbound; -} diff --git a/src/sdk/models/errors/uploadplaylist.ts b/src/sdk/models/errors/uploadplaylist.ts new file mode 100644 index 00000000..36bae693 --- /dev/null +++ b/src/sdk/models/errors/uploadplaylist.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type UploadPlaylistErrors = { + 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 UploadPlaylistResponseBodyData = { + 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 UploadPlaylistResponseBody 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$: UploadPlaylistResponseBodyData; + + constructor(err: UploadPlaylistResponseBodyData) { + 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 = "UploadPlaylistResponseBody"; + } +} + +/** @internal */ +export const UploadPlaylistErrors$inboundSchema: z.ZodType< + UploadPlaylistErrors, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** @internal */ +export type UploadPlaylistErrors$Outbound = { + code?: number | undefined; + message?: string | undefined; + status?: number | undefined; +}; + +/** @internal */ +export const UploadPlaylistErrors$outboundSchema: z.ZodType< + UploadPlaylistErrors$Outbound, + z.ZodTypeDef, + UploadPlaylistErrors +> = z.object({ + code: z.number().optional(), + message: z.string().optional(), + status: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UploadPlaylistErrors$ { + /** @deprecated use `UploadPlaylistErrors$inboundSchema` instead. */ + export const inboundSchema = UploadPlaylistErrors$inboundSchema; + /** @deprecated use `UploadPlaylistErrors$outboundSchema` instead. */ + export const outboundSchema = UploadPlaylistErrors$outboundSchema; + /** @deprecated use `UploadPlaylistErrors$Outbound` instead. */ + export type Outbound = UploadPlaylistErrors$Outbound; +} + +/** @internal */ +export const UploadPlaylistResponseBody$inboundSchema: z.ZodType< + UploadPlaylistResponseBody, + z.ZodTypeDef, + unknown +> = z + .object({ + errors: z.array(z.lazy(() => UploadPlaylistErrors$inboundSchema)).optional(), + RawResponse: z.instanceof(Response).optional(), + }) + .transform((v) => { + const remapped = remap$(v, { + RawResponse: "rawResponse", + }); + + return new UploadPlaylistResponseBody(remapped); + }); + +/** @internal */ +export type UploadPlaylistResponseBody$Outbound = { + errors?: Array | undefined; + RawResponse?: never | undefined; +}; + +/** @internal */ +export const UploadPlaylistResponseBody$outboundSchema: z.ZodType< + UploadPlaylistResponseBody$Outbound, + z.ZodTypeDef, + UploadPlaylistResponseBody +> = z + .instanceof(UploadPlaylistResponseBody) + .transform((v) => v.data$) + .pipe( + z + .object({ + errors: z.array(z.lazy(() => UploadPlaylistErrors$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 UploadPlaylistResponseBody$ { + /** @deprecated use `UploadPlaylistResponseBody$inboundSchema` instead. */ + export const inboundSchema = UploadPlaylistResponseBody$inboundSchema; + /** @deprecated use `UploadPlaylistResponseBody$outboundSchema` instead. */ + export const outboundSchema = UploadPlaylistResponseBody$outboundSchema; + /** @deprecated use `UploadPlaylistResponseBody$Outbound` instead. */ + export type Outbound = UploadPlaylistResponseBody$Outbound; +} diff --git a/src/models/addplaylistcontentsop.ts b/src/sdk/models/operations/addplaylistcontents.ts similarity index 68% rename from src/models/addplaylistcontentsop.ts rename to src/sdk/models/operations/addplaylistcontents.ts index eded07b6..3f5a0e8d 100644 --- a/src/models/addplaylistcontentsop.ts +++ b/src/sdk/models/operations/addplaylistcontents.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type AddPlaylistContentsRequest = { @@ -20,55 +20,6 @@ export type AddPlaylistContentsRequest = { playQueueID?: number | undefined; }; -export type AddPlaylistContentsErrors = { - 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 AddPlaylistContentsMetadata = { ratingKey?: string | undefined; key?: string | undefined; @@ -160,111 +111,6 @@ export namespace AddPlaylistContentsRequest$ { export type Outbound = AddPlaylistContentsRequest$Outbound; } -/** @internal */ -export const AddPlaylistContentsErrors$inboundSchema: z.ZodType< - AddPlaylistContentsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type AddPlaylistContentsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const AddPlaylistContentsErrors$outboundSchema: z.ZodType< - AddPlaylistContentsErrors$Outbound, - z.ZodTypeDef, - AddPlaylistContentsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddPlaylistContentsErrors$ { - /** @deprecated use `AddPlaylistContentsErrors$inboundSchema` instead. */ - export const inboundSchema = AddPlaylistContentsErrors$inboundSchema; - /** @deprecated use `AddPlaylistContentsErrors$outboundSchema` instead. */ - export const outboundSchema = AddPlaylistContentsErrors$outboundSchema; - /** @deprecated use `AddPlaylistContentsErrors$Outbound` instead. */ - export type Outbound = AddPlaylistContentsErrors$Outbound; -} - -/** @internal */ -export const AddPlaylistContentsPlaylistsResponseBody$inboundSchema: z.ZodType< - AddPlaylistContentsPlaylistsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => AddPlaylistContentsErrors$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(() => AddPlaylistContentsErrors$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 AddPlaylistContentsMetadata$inboundSchema: z.ZodType< AddPlaylistContentsMetadata, diff --git a/src/models/applyupdatesop.ts b/src/sdk/models/operations/applyupdates.ts similarity index 53% rename from src/models/applyupdatesop.ts rename to src/sdk/models/operations/applyupdates.ts index 7755d22f..a4d601ec 100644 --- a/src/models/applyupdatesop.ts +++ b/src/sdk/models/operations/applyupdates.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -32,55 +32,6 @@ export type ApplyUpdatesRequest = { skip?: Skip | undefined; }; -export type ApplyUpdatesErrors = { - 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 ApplyUpdatesResponseBodyData = { - 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 ApplyUpdatesResponseBody 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$: ApplyUpdatesResponseBodyData; - - constructor(err: ApplyUpdatesResponseBodyData) { - 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 = "ApplyUpdatesResponseBody"; - } -} - export type ApplyUpdatesResponse = { /** * HTTP response content type for this operation @@ -169,111 +120,6 @@ export namespace ApplyUpdatesRequest$ { export type Outbound = ApplyUpdatesRequest$Outbound; } -/** @internal */ -export const ApplyUpdatesErrors$inboundSchema: z.ZodType< - ApplyUpdatesErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type ApplyUpdatesErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const ApplyUpdatesErrors$outboundSchema: z.ZodType< - ApplyUpdatesErrors$Outbound, - z.ZodTypeDef, - ApplyUpdatesErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplyUpdatesErrors$ { - /** @deprecated use `ApplyUpdatesErrors$inboundSchema` instead. */ - export const inboundSchema = ApplyUpdatesErrors$inboundSchema; - /** @deprecated use `ApplyUpdatesErrors$outboundSchema` instead. */ - export const outboundSchema = ApplyUpdatesErrors$outboundSchema; - /** @deprecated use `ApplyUpdatesErrors$Outbound` instead. */ - export type Outbound = ApplyUpdatesErrors$Outbound; -} - -/** @internal */ -export const ApplyUpdatesResponseBody$inboundSchema: z.ZodType< - ApplyUpdatesResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => ApplyUpdatesErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new ApplyUpdatesResponseBody(remapped); - }); - -/** @internal */ -export type ApplyUpdatesResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const ApplyUpdatesResponseBody$outboundSchema: z.ZodType< - ApplyUpdatesResponseBody$Outbound, - z.ZodTypeDef, - ApplyUpdatesResponseBody -> = z - .instanceof(ApplyUpdatesResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => ApplyUpdatesErrors$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 ApplyUpdatesResponseBody$ { - /** @deprecated use `ApplyUpdatesResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplyUpdatesResponseBody$inboundSchema; - /** @deprecated use `ApplyUpdatesResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplyUpdatesResponseBody$outboundSchema; - /** @deprecated use `ApplyUpdatesResponseBody$Outbound` instead. */ - export type Outbound = ApplyUpdatesResponseBody$Outbound; -} - /** @internal */ export const ApplyUpdatesResponse$inboundSchema: z.ZodType< ApplyUpdatesResponse, diff --git a/src/sdk/models/operations/cancelserveractivities.ts b/src/sdk/models/operations/cancelserveractivities.ts new file mode 100644 index 00000000..2b188d38 --- /dev/null +++ b/src/sdk/models/operations/cancelserveractivities.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type CancelServerActivitiesRequest = { + /** + * The UUID of the activity to cancel. + */ + activityUUID: string; +}; + +export type CancelServerActivitiesResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const CancelServerActivitiesRequest$inboundSchema: z.ZodType< + CancelServerActivitiesRequest, + z.ZodTypeDef, + unknown +> = z.object({ + activityUUID: z.string(), +}); + +/** @internal */ +export type CancelServerActivitiesRequest$Outbound = { + activityUUID: string; +}; + +/** @internal */ +export const CancelServerActivitiesRequest$outboundSchema: z.ZodType< + CancelServerActivitiesRequest$Outbound, + z.ZodTypeDef, + CancelServerActivitiesRequest +> = z.object({ + activityUUID: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CancelServerActivitiesRequest$ { + /** @deprecated use `CancelServerActivitiesRequest$inboundSchema` instead. */ + export const inboundSchema = CancelServerActivitiesRequest$inboundSchema; + /** @deprecated use `CancelServerActivitiesRequest$outboundSchema` instead. */ + export const outboundSchema = CancelServerActivitiesRequest$outboundSchema; + /** @deprecated use `CancelServerActivitiesRequest$Outbound` instead. */ + export type Outbound = CancelServerActivitiesRequest$Outbound; +} + +/** @internal */ +export const CancelServerActivitiesResponse$inboundSchema: z.ZodType< + CancelServerActivitiesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type CancelServerActivitiesResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const CancelServerActivitiesResponse$outboundSchema: z.ZodType< + CancelServerActivitiesResponse$Outbound, + z.ZodTypeDef, + CancelServerActivitiesResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 CancelServerActivitiesResponse$ { + /** @deprecated use `CancelServerActivitiesResponse$inboundSchema` instead. */ + export const inboundSchema = CancelServerActivitiesResponse$inboundSchema; + /** @deprecated use `CancelServerActivitiesResponse$outboundSchema` instead. */ + export const outboundSchema = CancelServerActivitiesResponse$outboundSchema; + /** @deprecated use `CancelServerActivitiesResponse$Outbound` instead. */ + export type Outbound = CancelServerActivitiesResponse$Outbound; +} diff --git a/src/sdk/models/operations/checkforupdates.ts b/src/sdk/models/operations/checkforupdates.ts new file mode 100644 index 00000000..df64422a --- /dev/null +++ b/src/sdk/models/operations/checkforupdates.ts @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +/** + * Indicate that you want to start download any updates found. + */ +export enum Download { + Zero = 0, + One = 1, +} + +export type CheckForUpdatesRequest = { + /** + * Indicate that you want to start download any updates found. + */ + download?: Download | undefined; +}; + +export type CheckForUpdatesResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const Download$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Download); + +/** @internal */ +export const Download$outboundSchema: z.ZodNativeEnum = Download$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Download$ { + /** @deprecated use `Download$inboundSchema` instead. */ + export const inboundSchema = Download$inboundSchema; + /** @deprecated use `Download$outboundSchema` instead. */ + export const outboundSchema = Download$outboundSchema; +} + +/** @internal */ +export const CheckForUpdatesRequest$inboundSchema: z.ZodType< + CheckForUpdatesRequest, + z.ZodTypeDef, + unknown +> = z.object({ + download: Download$inboundSchema.optional(), +}); + +/** @internal */ +export type CheckForUpdatesRequest$Outbound = { + download?: number | undefined; +}; + +/** @internal */ +export const CheckForUpdatesRequest$outboundSchema: z.ZodType< + CheckForUpdatesRequest$Outbound, + z.ZodTypeDef, + CheckForUpdatesRequest +> = z.object({ + download: Download$outboundSchema.optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckForUpdatesRequest$ { + /** @deprecated use `CheckForUpdatesRequest$inboundSchema` instead. */ + export const inboundSchema = CheckForUpdatesRequest$inboundSchema; + /** @deprecated use `CheckForUpdatesRequest$outboundSchema` instead. */ + export const outboundSchema = CheckForUpdatesRequest$outboundSchema; + /** @deprecated use `CheckForUpdatesRequest$Outbound` instead. */ + export type Outbound = CheckForUpdatesRequest$Outbound; +} + +/** @internal */ +export const CheckForUpdatesResponse$inboundSchema: z.ZodType< + CheckForUpdatesResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type CheckForUpdatesResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const CheckForUpdatesResponse$outboundSchema: z.ZodType< + CheckForUpdatesResponse$Outbound, + z.ZodTypeDef, + CheckForUpdatesResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 CheckForUpdatesResponse$ { + /** @deprecated use `CheckForUpdatesResponse$inboundSchema` instead. */ + export const inboundSchema = CheckForUpdatesResponse$inboundSchema; + /** @deprecated use `CheckForUpdatesResponse$outboundSchema` instead. */ + export const outboundSchema = CheckForUpdatesResponse$outboundSchema; + /** @deprecated use `CheckForUpdatesResponse$Outbound` instead. */ + export type Outbound = CheckForUpdatesResponse$Outbound; +} diff --git a/src/sdk/models/operations/clearplaylistcontents.ts b/src/sdk/models/operations/clearplaylistcontents.ts new file mode 100644 index 00000000..3aca3bde --- /dev/null +++ b/src/sdk/models/operations/clearplaylistcontents.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type ClearPlaylistContentsRequest = { + /** + * the ID of the playlist + */ + playlistID: number; +}; + +export type ClearPlaylistContentsResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const ClearPlaylistContentsRequest$inboundSchema: z.ZodType< + ClearPlaylistContentsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + playlistID: z.number(), +}); + +/** @internal */ +export type ClearPlaylistContentsRequest$Outbound = { + playlistID: number; +}; + +/** @internal */ +export const ClearPlaylistContentsRequest$outboundSchema: z.ZodType< + ClearPlaylistContentsRequest$Outbound, + z.ZodTypeDef, + ClearPlaylistContentsRequest +> = z.object({ + playlistID: z.number(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ClearPlaylistContentsRequest$ { + /** @deprecated use `ClearPlaylistContentsRequest$inboundSchema` instead. */ + export const inboundSchema = ClearPlaylistContentsRequest$inboundSchema; + /** @deprecated use `ClearPlaylistContentsRequest$outboundSchema` instead. */ + export const outboundSchema = ClearPlaylistContentsRequest$outboundSchema; + /** @deprecated use `ClearPlaylistContentsRequest$Outbound` instead. */ + export type Outbound = ClearPlaylistContentsRequest$Outbound; +} + +/** @internal */ +export const ClearPlaylistContentsResponse$inboundSchema: z.ZodType< + ClearPlaylistContentsResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type ClearPlaylistContentsResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const ClearPlaylistContentsResponse$outboundSchema: z.ZodType< + ClearPlaylistContentsResponse$Outbound, + z.ZodTypeDef, + ClearPlaylistContentsResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 ClearPlaylistContentsResponse$ { + /** @deprecated use `ClearPlaylistContentsResponse$inboundSchema` instead. */ + export const inboundSchema = ClearPlaylistContentsResponse$inboundSchema; + /** @deprecated use `ClearPlaylistContentsResponse$outboundSchema` instead. */ + export const outboundSchema = ClearPlaylistContentsResponse$outboundSchema; + /** @deprecated use `ClearPlaylistContentsResponse$Outbound` instead. */ + export type Outbound = ClearPlaylistContentsResponse$Outbound; +} diff --git a/src/models/createplaylistop.ts b/src/sdk/models/operations/createplaylist.ts similarity index 72% rename from src/models/createplaylistop.ts rename to src/sdk/models/operations/createplaylist.ts index c7e61f52..310ffa1d 100644 --- a/src/models/createplaylistop.ts +++ b/src/sdk/models/operations/createplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -45,55 +45,6 @@ export type CreatePlaylistRequest = { playQueueID?: number | undefined; }; -export type CreatePlaylistErrors = { - 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 CreatePlaylistMetadata = { ratingKey?: string | undefined; key?: string | undefined; @@ -230,111 +181,6 @@ export namespace CreatePlaylistRequest$ { export type Outbound = CreatePlaylistRequest$Outbound; } -/** @internal */ -export const CreatePlaylistErrors$inboundSchema: z.ZodType< - CreatePlaylistErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type CreatePlaylistErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const CreatePlaylistErrors$outboundSchema: z.ZodType< - CreatePlaylistErrors$Outbound, - z.ZodTypeDef, - CreatePlaylistErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePlaylistErrors$ { - /** @deprecated use `CreatePlaylistErrors$inboundSchema` instead. */ - export const inboundSchema = CreatePlaylistErrors$inboundSchema; - /** @deprecated use `CreatePlaylistErrors$outboundSchema` instead. */ - export const outboundSchema = CreatePlaylistErrors$outboundSchema; - /** @deprecated use `CreatePlaylistErrors$Outbound` instead. */ - export type Outbound = CreatePlaylistErrors$Outbound; -} - -/** @internal */ -export const CreatePlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< - CreatePlaylistPlaylistsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => CreatePlaylistErrors$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(() => CreatePlaylistErrors$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 CreatePlaylistMetadata$inboundSchema: z.ZodType< CreatePlaylistMetadata, diff --git a/src/sdk/models/operations/deletelibrary.ts b/src/sdk/models/operations/deletelibrary.ts new file mode 100644 index 00000000..3a89a5c3 --- /dev/null +++ b/src/sdk/models/operations/deletelibrary.ts @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type DeleteLibraryRequest = { + /** + * The unique key of the Plex library. + * + * @remarks + * Note: This is unique in the context of the Plex server. + * + */ + sectionKey: number; +}; + +export type DeleteLibraryResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const DeleteLibraryRequest$inboundSchema: z.ZodType< + DeleteLibraryRequest, + z.ZodTypeDef, + unknown +> = z.object({ + sectionKey: z.number().int(), +}); + +/** @internal */ +export type DeleteLibraryRequest$Outbound = { + sectionKey: number; +}; + +/** @internal */ +export const DeleteLibraryRequest$outboundSchema: z.ZodType< + DeleteLibraryRequest$Outbound, + z.ZodTypeDef, + DeleteLibraryRequest +> = z.object({ + sectionKey: z.number().int(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteLibraryRequest$ { + /** @deprecated use `DeleteLibraryRequest$inboundSchema` instead. */ + export const inboundSchema = DeleteLibraryRequest$inboundSchema; + /** @deprecated use `DeleteLibraryRequest$outboundSchema` instead. */ + export const outboundSchema = DeleteLibraryRequest$outboundSchema; + /** @deprecated use `DeleteLibraryRequest$Outbound` instead. */ + export type Outbound = DeleteLibraryRequest$Outbound; +} + +/** @internal */ +export const DeleteLibraryResponse$inboundSchema: z.ZodType< + DeleteLibraryResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type DeleteLibraryResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const DeleteLibraryResponse$outboundSchema: z.ZodType< + DeleteLibraryResponse$Outbound, + z.ZodTypeDef, + DeleteLibraryResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 DeleteLibraryResponse$ { + /** @deprecated use `DeleteLibraryResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteLibraryResponse$inboundSchema; + /** @deprecated use `DeleteLibraryResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteLibraryResponse$outboundSchema; + /** @deprecated use `DeleteLibraryResponse$Outbound` instead. */ + export type Outbound = DeleteLibraryResponse$Outbound; +} diff --git a/src/sdk/models/operations/deleteplaylist.ts b/src/sdk/models/operations/deleteplaylist.ts new file mode 100644 index 00000000..a0548fe9 --- /dev/null +++ b/src/sdk/models/operations/deleteplaylist.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type DeletePlaylistRequest = { + /** + * the ID of the playlist + */ + playlistID: number; +}; + +export type DeletePlaylistResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const DeletePlaylistRequest$inboundSchema: z.ZodType< + DeletePlaylistRequest, + z.ZodTypeDef, + unknown +> = z.object({ + playlistID: z.number(), +}); + +/** @internal */ +export type DeletePlaylistRequest$Outbound = { + playlistID: number; +}; + +/** @internal */ +export const DeletePlaylistRequest$outboundSchema: z.ZodType< + DeletePlaylistRequest$Outbound, + z.ZodTypeDef, + DeletePlaylistRequest +> = z.object({ + playlistID: z.number(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeletePlaylistRequest$ { + /** @deprecated use `DeletePlaylistRequest$inboundSchema` instead. */ + export const inboundSchema = DeletePlaylistRequest$inboundSchema; + /** @deprecated use `DeletePlaylistRequest$outboundSchema` instead. */ + export const outboundSchema = DeletePlaylistRequest$outboundSchema; + /** @deprecated use `DeletePlaylistRequest$Outbound` instead. */ + export type Outbound = DeletePlaylistRequest$Outbound; +} + +/** @internal */ +export const DeletePlaylistResponse$inboundSchema: z.ZodType< + DeletePlaylistResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type DeletePlaylistResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const DeletePlaylistResponse$outboundSchema: z.ZodType< + DeletePlaylistResponse$Outbound, + z.ZodTypeDef, + DeletePlaylistResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 DeletePlaylistResponse$ { + /** @deprecated use `DeletePlaylistResponse$inboundSchema` instead. */ + export const inboundSchema = DeletePlaylistResponse$inboundSchema; + /** @deprecated use `DeletePlaylistResponse$outboundSchema` instead. */ + export const outboundSchema = DeletePlaylistResponse$outboundSchema; + /** @deprecated use `DeletePlaylistResponse$Outbound` instead. */ + export type Outbound = DeletePlaylistResponse$Outbound; +} diff --git a/src/sdk/models/operations/enablepapertrail.ts b/src/sdk/models/operations/enablepapertrail.ts new file mode 100644 index 00000000..441b022d --- /dev/null +++ b/src/sdk/models/operations/enablepapertrail.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type EnablePaperTrailResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const EnablePaperTrailResponse$inboundSchema: z.ZodType< + EnablePaperTrailResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type EnablePaperTrailResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const EnablePaperTrailResponse$outboundSchema: z.ZodType< + EnablePaperTrailResponse$Outbound, + z.ZodTypeDef, + EnablePaperTrailResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 EnablePaperTrailResponse$ { + /** @deprecated use `EnablePaperTrailResponse$inboundSchema` instead. */ + export const inboundSchema = EnablePaperTrailResponse$inboundSchema; + /** @deprecated use `EnablePaperTrailResponse$outboundSchema` instead. */ + export const outboundSchema = EnablePaperTrailResponse$outboundSchema; + /** @deprecated use `EnablePaperTrailResponse$Outbound` instead. */ + export type Outbound = EnablePaperTrailResponse$Outbound; +} diff --git a/src/models/getalllibrariesop.ts b/src/sdk/models/operations/getalllibraries.ts similarity index 70% rename from src/models/getalllibrariesop.ts rename to src/sdk/models/operations/getalllibraries.ts index 4b164507..dd8a84e8 100644 --- a/src/models/getalllibrariesop.ts +++ b/src/sdk/models/operations/getalllibraries.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetAllLibrariesErrors = { - 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 Location = { id?: number | undefined; path?: string | undefined; @@ -125,111 +76,6 @@ export type GetAllLibrariesResponse = { object?: GetAllLibrariesResponseBody | undefined; }; -/** @internal */ -export const GetAllLibrariesErrors$inboundSchema: z.ZodType< - GetAllLibrariesErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetAllLibrariesErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetAllLibrariesErrors$outboundSchema: z.ZodType< - GetAllLibrariesErrors$Outbound, - z.ZodTypeDef, - GetAllLibrariesErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllLibrariesErrors$ { - /** @deprecated use `GetAllLibrariesErrors$inboundSchema` instead. */ - export const inboundSchema = GetAllLibrariesErrors$inboundSchema; - /** @deprecated use `GetAllLibrariesErrors$outboundSchema` instead. */ - export const outboundSchema = GetAllLibrariesErrors$outboundSchema; - /** @deprecated use `GetAllLibrariesErrors$Outbound` instead. */ - export type Outbound = GetAllLibrariesErrors$Outbound; -} - -/** @internal */ -export const GetAllLibrariesLibraryResponseBody$inboundSchema: z.ZodType< - GetAllLibrariesLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetAllLibrariesErrors$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(() => GetAllLibrariesErrors$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 Location$inboundSchema: z.ZodType = z.object({ id: z.number().int().optional(), diff --git a/src/models/getavailableclientsop.ts b/src/sdk/models/operations/getavailableclients.ts similarity index 55% rename from src/models/getavailableclientsop.ts rename to src/sdk/models/operations/getavailableclients.ts index b77c77fc..08943a62 100644 --- a/src/models/getavailableclientsop.ts +++ b/src/sdk/models/operations/getavailableclients.ts @@ -2,59 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetAvailableClientsErrors = { - 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 GetAvailableClientsServer = { +export type Server = { name?: string | undefined; host?: string | undefined; address?: string | undefined; @@ -70,7 +21,7 @@ export type GetAvailableClientsServer = { export type GetAvailableClientsMediaContainer = { size?: number | undefined; - server?: Array | undefined; + server?: Array | undefined; }; /** @@ -100,116 +51,7 @@ export type GetAvailableClientsResponse = { }; /** @internal */ -export const GetAvailableClientsErrors$inboundSchema: z.ZodType< - GetAvailableClientsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetAvailableClientsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetAvailableClientsErrors$outboundSchema: z.ZodType< - GetAvailableClientsErrors$Outbound, - z.ZodTypeDef, - GetAvailableClientsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAvailableClientsErrors$ { - /** @deprecated use `GetAvailableClientsErrors$inboundSchema` instead. */ - export const inboundSchema = GetAvailableClientsErrors$inboundSchema; - /** @deprecated use `GetAvailableClientsErrors$outboundSchema` instead. */ - export const outboundSchema = GetAvailableClientsErrors$outboundSchema; - /** @deprecated use `GetAvailableClientsErrors$Outbound` instead. */ - export type Outbound = GetAvailableClientsErrors$Outbound; -} - -/** @internal */ -export const GetAvailableClientsServerResponseBody$inboundSchema: z.ZodType< - GetAvailableClientsServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetAvailableClientsErrors$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(() => GetAvailableClientsErrors$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 GetAvailableClientsServer$inboundSchema: z.ZodType< - GetAvailableClientsServer, - z.ZodTypeDef, - unknown -> = z.object({ +export const Server$inboundSchema: z.ZodType = z.object({ name: z.string().optional(), host: z.string().optional(), address: z.string().optional(), @@ -224,7 +66,7 @@ export const GetAvailableClientsServer$inboundSchema: z.ZodType< }); /** @internal */ -export type GetAvailableClientsServer$Outbound = { +export type Server$Outbound = { name?: string | undefined; host?: string | undefined; address?: string | undefined; @@ -239,11 +81,7 @@ export type GetAvailableClientsServer$Outbound = { }; /** @internal */ -export const GetAvailableClientsServer$outboundSchema: z.ZodType< - GetAvailableClientsServer$Outbound, - z.ZodTypeDef, - GetAvailableClientsServer -> = z.object({ +export const Server$outboundSchema: z.ZodType = z.object({ name: z.string().optional(), host: z.string().optional(), address: z.string().optional(), @@ -261,13 +99,13 @@ export const GetAvailableClientsServer$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetAvailableClientsServer$ { - /** @deprecated use `GetAvailableClientsServer$inboundSchema` instead. */ - export const inboundSchema = GetAvailableClientsServer$inboundSchema; - /** @deprecated use `GetAvailableClientsServer$outboundSchema` instead. */ - export const outboundSchema = GetAvailableClientsServer$outboundSchema; - /** @deprecated use `GetAvailableClientsServer$Outbound` instead. */ - export type Outbound = GetAvailableClientsServer$Outbound; +export namespace Server$ { + /** @deprecated use `Server$inboundSchema` instead. */ + export const inboundSchema = Server$inboundSchema; + /** @deprecated use `Server$outboundSchema` instead. */ + export const outboundSchema = Server$outboundSchema; + /** @deprecated use `Server$Outbound` instead. */ + export type Outbound = Server$Outbound; } /** @internal */ @@ -278,7 +116,7 @@ export const GetAvailableClientsMediaContainer$inboundSchema: z.ZodType< > = z .object({ size: z.number().optional(), - Server: z.array(z.lazy(() => GetAvailableClientsServer$inboundSchema)).optional(), + Server: z.array(z.lazy(() => Server$inboundSchema)).optional(), }) .transform((v) => { return remap$(v, { @@ -289,7 +127,7 @@ export const GetAvailableClientsMediaContainer$inboundSchema: z.ZodType< /** @internal */ export type GetAvailableClientsMediaContainer$Outbound = { size?: number | undefined; - Server?: Array | undefined; + Server?: Array | undefined; }; /** @internal */ @@ -300,7 +138,7 @@ export const GetAvailableClientsMediaContainer$outboundSchema: z.ZodType< > = z .object({ size: z.number().optional(), - server: z.array(z.lazy(() => GetAvailableClientsServer$outboundSchema)).optional(), + server: z.array(z.lazy(() => Server$outboundSchema)).optional(), }) .transform((v) => { return remap$(v, { diff --git a/src/models/getbandwidthstatisticsop.ts b/src/sdk/models/operations/getbandwidthstatistics.ts similarity index 73% rename from src/models/getbandwidthstatisticsop.ts rename to src/sdk/models/operations/getbandwidthstatistics.ts index c5c08682..e2e42108 100644 --- a/src/models/getbandwidthstatisticsop.ts +++ b/src/sdk/models/operations/getbandwidthstatistics.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetBandwidthStatisticsRequest = { @@ -16,55 +16,6 @@ export type GetBandwidthStatisticsRequest = { timespan?: number | undefined; }; -export type GetBandwidthStatisticsErrors = { - 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 GetBandwidthStatisticsDevice = { id?: number | undefined; name?: string | undefined; @@ -174,113 +125,6 @@ export namespace GetBandwidthStatisticsRequest$ { export type Outbound = GetBandwidthStatisticsRequest$Outbound; } -/** @internal */ -export const GetBandwidthStatisticsErrors$inboundSchema: z.ZodType< - GetBandwidthStatisticsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetBandwidthStatisticsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetBandwidthStatisticsErrors$outboundSchema: z.ZodType< - GetBandwidthStatisticsErrors$Outbound, - z.ZodTypeDef, - GetBandwidthStatisticsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBandwidthStatisticsErrors$ { - /** @deprecated use `GetBandwidthStatisticsErrors$inboundSchema` instead. */ - export const inboundSchema = GetBandwidthStatisticsErrors$inboundSchema; - /** @deprecated use `GetBandwidthStatisticsErrors$outboundSchema` instead. */ - export const outboundSchema = GetBandwidthStatisticsErrors$outboundSchema; - /** @deprecated use `GetBandwidthStatisticsErrors$Outbound` instead. */ - export type Outbound = GetBandwidthStatisticsErrors$Outbound; -} - -/** @internal */ -export const GetBandwidthStatisticsStatisticsResponseBody$inboundSchema: z.ZodType< - GetBandwidthStatisticsStatisticsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetBandwidthStatisticsErrors$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(() => GetBandwidthStatisticsErrors$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 GetBandwidthStatisticsDevice$inboundSchema: z.ZodType< GetBandwidthStatisticsDevice, diff --git a/src/models/getbannerimageop.ts b/src/sdk/models/operations/getbannerimage.ts similarity index 50% rename from src/models/getbannerimageop.ts rename to src/sdk/models/operations/getbannerimage.ts index 79376e4f..5b5500f9 100644 --- a/src/models/getbannerimageop.ts +++ b/src/sdk/models/operations/getbannerimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetBannerImageRequest = { @@ -20,55 +20,6 @@ export type GetBannerImageRequest = { xPlexToken: string; }; -export type GetBannerImageErrors = { - 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 GetBannerImageResponseBodyData = { - 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 GetBannerImageResponseBody 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$: GetBannerImageResponseBodyData; - - constructor(err: GetBannerImageResponseBodyData) { - 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 = "GetBannerImageResponseBody"; - } -} - export type GetBannerImageResponse = { /** * HTTP response content type for this operation @@ -152,111 +103,6 @@ export namespace GetBannerImageRequest$ { export type Outbound = GetBannerImageRequest$Outbound; } -/** @internal */ -export const GetBannerImageErrors$inboundSchema: z.ZodType< - GetBannerImageErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetBannerImageErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetBannerImageErrors$outboundSchema: z.ZodType< - GetBannerImageErrors$Outbound, - z.ZodTypeDef, - GetBannerImageErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBannerImageErrors$ { - /** @deprecated use `GetBannerImageErrors$inboundSchema` instead. */ - export const inboundSchema = GetBannerImageErrors$inboundSchema; - /** @deprecated use `GetBannerImageErrors$outboundSchema` instead. */ - export const outboundSchema = GetBannerImageErrors$outboundSchema; - /** @deprecated use `GetBannerImageErrors$Outbound` instead. */ - export type Outbound = GetBannerImageErrors$Outbound; -} - -/** @internal */ -export const GetBannerImageResponseBody$inboundSchema: z.ZodType< - GetBannerImageResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetBannerImageErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetBannerImageResponseBody(remapped); - }); - -/** @internal */ -export type GetBannerImageResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetBannerImageResponseBody$outboundSchema: z.ZodType< - GetBannerImageResponseBody$Outbound, - z.ZodTypeDef, - GetBannerImageResponseBody -> = z - .instanceof(GetBannerImageResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetBannerImageErrors$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 GetBannerImageResponseBody$ { - /** @deprecated use `GetBannerImageResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetBannerImageResponseBody$inboundSchema; - /** @deprecated use `GetBannerImageResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetBannerImageResponseBody$outboundSchema; - /** @deprecated use `GetBannerImageResponseBody$Outbound` instead. */ - export type Outbound = GetBannerImageResponseBody$Outbound; -} - /** @internal */ export const GetBannerImageResponse$inboundSchema: z.ZodType< GetBannerImageResponse, diff --git a/src/models/getbutlertasksop.ts b/src/sdk/models/operations/getbutlertasks.ts similarity index 59% rename from src/models/getbutlertasksop.ts rename to src/sdk/models/operations/getbutlertasks.ts index 8a312cb9..21e28559 100644 --- a/src/models/getbutlertasksop.ts +++ b/src/sdk/models/operations/getbutlertasks.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetButlerTasksErrors = { - 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 ButlerTask = { name?: string | undefined; interval?: number | undefined; @@ -93,111 +44,6 @@ export type GetButlerTasksResponse = { object?: GetButlerTasksResponseBody | undefined; }; -/** @internal */ -export const GetButlerTasksErrors$inboundSchema: z.ZodType< - GetButlerTasksErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetButlerTasksErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetButlerTasksErrors$outboundSchema: z.ZodType< - GetButlerTasksErrors$Outbound, - z.ZodTypeDef, - GetButlerTasksErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetButlerTasksErrors$ { - /** @deprecated use `GetButlerTasksErrors$inboundSchema` instead. */ - export const inboundSchema = GetButlerTasksErrors$inboundSchema; - /** @deprecated use `GetButlerTasksErrors$outboundSchema` instead. */ - export const outboundSchema = GetButlerTasksErrors$outboundSchema; - /** @deprecated use `GetButlerTasksErrors$Outbound` instead. */ - export type Outbound = GetButlerTasksErrors$Outbound; -} - -/** @internal */ -export const GetButlerTasksButlerResponseBody$inboundSchema: z.ZodType< - GetButlerTasksButlerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetButlerTasksErrors$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(() => GetButlerTasksErrors$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 ButlerTask$inboundSchema: z.ZodType = z.object({ name: z.string().optional(), diff --git a/src/sdk/models/operations/getcompanionsdata.ts b/src/sdk/models/operations/getcompanionsdata.ts new file mode 100644 index 00000000..a6947de0 --- /dev/null +++ b/src/sdk/models/operations/getcompanionsdata.ts @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export const GetCompanionsDataServerList = ["https://plex.tv/api/v2"] as const; + +export type ResponseBody = { + identifier: string; + baseURL: string; + title: string; + linkURL: string; + provides: string; + /** + * The plex authtoken used to identify with + */ + token: string; +}; + +export type GetCompanionsDataResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; + /** + * Companions Data + */ + responseBodies?: Array | undefined; +}; + +/** @internal */ +export const ResponseBody$inboundSchema: z.ZodType = z.object({ + identifier: z.string(), + baseURL: z.string(), + title: z.string(), + linkURL: z.string(), + provides: z.string(), + token: z.string(), +}); + +/** @internal */ +export type ResponseBody$Outbound = { + identifier: string; + baseURL: string; + title: string; + linkURL: string; + provides: string; + token: string; +}; + +/** @internal */ +export const ResponseBody$outboundSchema: z.ZodType< + ResponseBody$Outbound, + z.ZodTypeDef, + ResponseBody +> = z.object({ + identifier: z.string(), + baseURL: z.string(), + title: z.string(), + linkURL: z.string(), + provides: z.string(), + token: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ResponseBody$ { + /** @deprecated use `ResponseBody$inboundSchema` instead. */ + export const inboundSchema = ResponseBody$inboundSchema; + /** @deprecated use `ResponseBody$outboundSchema` instead. */ + export const outboundSchema = ResponseBody$outboundSchema; + /** @deprecated use `ResponseBody$Outbound` instead. */ + export type Outbound = ResponseBody$Outbound; +} + +/** @internal */ +export const GetCompanionsDataResponse$inboundSchema: z.ZodType< + GetCompanionsDataResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + responseBodies: z.array(z.lazy(() => ResponseBody$inboundSchema)).optional(), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type GetCompanionsDataResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; + responseBodies?: Array | undefined; +}; + +/** @internal */ +export const GetCompanionsDataResponse$outboundSchema: z.ZodType< + GetCompanionsDataResponse$Outbound, + z.ZodTypeDef, + GetCompanionsDataResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + responseBodies: z.array(z.lazy(() => ResponseBody$outboundSchema)).optional(), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 GetCompanionsDataResponse$ { + /** @deprecated use `GetCompanionsDataResponse$inboundSchema` instead. */ + export const inboundSchema = GetCompanionsDataResponse$inboundSchema; + /** @deprecated use `GetCompanionsDataResponse$outboundSchema` instead. */ + export const outboundSchema = GetCompanionsDataResponse$outboundSchema; + /** @deprecated use `GetCompanionsDataResponse$Outbound` instead. */ + export type Outbound = GetCompanionsDataResponse$Outbound; +} diff --git a/src/models/getdevicesop.ts b/src/sdk/models/operations/getdevices.ts similarity index 60% rename from src/models/getdevicesop.ts rename to src/sdk/models/operations/getdevices.ts index f6f9e574..b01602b0 100644 --- a/src/models/getdevicesop.ts +++ b/src/sdk/models/operations/getdevices.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetDevicesErrors = { - 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 Device = { id?: number | undefined; name?: string | undefined; @@ -94,108 +45,6 @@ export type GetDevicesResponse = { object?: GetDevicesResponseBody | undefined; }; -/** @internal */ -export const GetDevicesErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetDevicesErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetDevicesErrors$outboundSchema: z.ZodType< - GetDevicesErrors$Outbound, - z.ZodTypeDef, - GetDevicesErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDevicesErrors$ { - /** @deprecated use `GetDevicesErrors$inboundSchema` instead. */ - export const inboundSchema = GetDevicesErrors$inboundSchema; - /** @deprecated use `GetDevicesErrors$outboundSchema` instead. */ - export const outboundSchema = GetDevicesErrors$outboundSchema; - /** @deprecated use `GetDevicesErrors$Outbound` instead. */ - export type Outbound = GetDevicesErrors$Outbound; -} - -/** @internal */ -export const GetDevicesServerResponseBody$inboundSchema: z.ZodType< - GetDevicesServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetDevicesErrors$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(() => GetDevicesErrors$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 Device$inboundSchema: z.ZodType = z.object({ id: z.number().optional(), diff --git a/src/sdk/models/operations/getfilehash.ts b/src/sdk/models/operations/getfilehash.ts new file mode 100644 index 00000000..002ca135 --- /dev/null +++ b/src/sdk/models/operations/getfilehash.ts @@ -0,0 +1,131 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetFileHashRequest = { + /** + * This is the path to the local file, must be prefixed by `file://` + */ + url: string; + /** + * Item type + */ + type?: number | undefined; +}; + +export type GetFileHashResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const GetFileHashRequest$inboundSchema: z.ZodType< + GetFileHashRequest, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), + type: z.number().optional(), +}); + +/** @internal */ +export type GetFileHashRequest$Outbound = { + url: string; + type?: number | undefined; +}; + +/** @internal */ +export const GetFileHashRequest$outboundSchema: z.ZodType< + GetFileHashRequest$Outbound, + z.ZodTypeDef, + GetFileHashRequest +> = z.object({ + url: z.string(), + type: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetFileHashRequest$ { + /** @deprecated use `GetFileHashRequest$inboundSchema` instead. */ + export const inboundSchema = GetFileHashRequest$inboundSchema; + /** @deprecated use `GetFileHashRequest$outboundSchema` instead. */ + export const outboundSchema = GetFileHashRequest$outboundSchema; + /** @deprecated use `GetFileHashRequest$Outbound` instead. */ + export type Outbound = GetFileHashRequest$Outbound; +} + +/** @internal */ +export const GetFileHashResponse$inboundSchema: z.ZodType< + GetFileHashResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type GetFileHashResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const GetFileHashResponse$outboundSchema: z.ZodType< + GetFileHashResponse$Outbound, + z.ZodTypeDef, + GetFileHashResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 GetFileHashResponse$ { + /** @deprecated use `GetFileHashResponse$inboundSchema` instead. */ + export const inboundSchema = GetFileHashResponse$inboundSchema; + /** @deprecated use `GetFileHashResponse$outboundSchema` instead. */ + export const outboundSchema = GetFileHashResponse$outboundSchema; + /** @deprecated use `GetFileHashResponse$Outbound` instead. */ + export type Outbound = GetFileHashResponse$Outbound; +} diff --git a/src/models/getgeodataop.ts b/src/sdk/models/operations/getgeodata.ts similarity index 58% rename from src/models/getgeodataop.ts rename to src/sdk/models/operations/getgeodata.ts index 172d4494..f607bbb7 100644 --- a/src/models/getgeodataop.ts +++ b/src/sdk/models/operations/getgeodata.ts @@ -2,59 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetGeoDataOpServerList = ["https://plex.tv/api/v2"] as const; - -export type GetGeoDataErrors = { - 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 GetGeoDataResponseBodyData = { - 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 GetGeoDataResponseBody 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$: GetGeoDataResponseBodyData; - - constructor(err: GetGeoDataResponseBodyData) { - 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 = "GetGeoDataResponseBody"; - } -} +export const GetGeoDataServerList = ["https://plex.tv/api/v2"] as const; /** * Geo location data @@ -125,108 +76,6 @@ export type GetGeoDataResponse = { geoData?: GetGeoDataGeoData | undefined; }; -/** @internal */ -export const GetGeoDataErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetGeoDataErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetGeoDataErrors$outboundSchema: z.ZodType< - GetGeoDataErrors$Outbound, - z.ZodTypeDef, - GetGeoDataErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGeoDataErrors$ { - /** @deprecated use `GetGeoDataErrors$inboundSchema` instead. */ - export const inboundSchema = GetGeoDataErrors$inboundSchema; - /** @deprecated use `GetGeoDataErrors$outboundSchema` instead. */ - export const outboundSchema = GetGeoDataErrors$outboundSchema; - /** @deprecated use `GetGeoDataErrors$Outbound` instead. */ - export type Outbound = GetGeoDataErrors$Outbound; -} - -/** @internal */ -export const GetGeoDataResponseBody$inboundSchema: z.ZodType< - GetGeoDataResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetGeoDataErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetGeoDataResponseBody(remapped); - }); - -/** @internal */ -export type GetGeoDataResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetGeoDataResponseBody$outboundSchema: z.ZodType< - GetGeoDataResponseBody$Outbound, - z.ZodTypeDef, - GetGeoDataResponseBody -> = z - .instanceof(GetGeoDataResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetGeoDataErrors$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 GetGeoDataResponseBody$ { - /** @deprecated use `GetGeoDataResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetGeoDataResponseBody$inboundSchema; - /** @deprecated use `GetGeoDataResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetGeoDataResponseBody$outboundSchema; - /** @deprecated use `GetGeoDataResponseBody$Outbound` instead. */ - export type Outbound = GetGeoDataResponseBody$Outbound; -} - /** @internal */ export const GetGeoDataGeoData$inboundSchema: z.ZodType = z diff --git a/src/models/getglobalhubsop.ts b/src/sdk/models/operations/getglobalhubs.ts similarity index 75% rename from src/models/getglobalhubsop.ts rename to src/sdk/models/operations/getglobalhubs.ts index bc4ded5d..e9e37374 100644 --- a/src/models/getglobalhubsop.ts +++ b/src/sdk/models/operations/getglobalhubs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -24,55 +24,6 @@ export type GetGlobalHubsRequest = { onlyTransient?: OnlyTransient | undefined; }; -export type GetGlobalHubsErrors = { - 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 GetGlobalHubsMetadata = { ratingKey?: string | undefined; key?: string | undefined; @@ -198,111 +149,6 @@ export namespace GetGlobalHubsRequest$ { export type Outbound = GetGlobalHubsRequest$Outbound; } -/** @internal */ -export const GetGlobalHubsErrors$inboundSchema: z.ZodType< - GetGlobalHubsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetGlobalHubsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetGlobalHubsErrors$outboundSchema: z.ZodType< - GetGlobalHubsErrors$Outbound, - z.ZodTypeDef, - GetGlobalHubsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGlobalHubsErrors$ { - /** @deprecated use `GetGlobalHubsErrors$inboundSchema` instead. */ - export const inboundSchema = GetGlobalHubsErrors$inboundSchema; - /** @deprecated use `GetGlobalHubsErrors$outboundSchema` instead. */ - export const outboundSchema = GetGlobalHubsErrors$outboundSchema; - /** @deprecated use `GetGlobalHubsErrors$Outbound` instead. */ - export type Outbound = GetGlobalHubsErrors$Outbound; -} - -/** @internal */ -export const GetGlobalHubsHubsResponseBody$inboundSchema: z.ZodType< - GetGlobalHubsHubsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetGlobalHubsErrors$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(() => GetGlobalHubsErrors$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 GetGlobalHubsMetadata$inboundSchema: z.ZodType< GetGlobalHubsMetadata, diff --git a/src/sdk/models/operations/gethomedata.ts b/src/sdk/models/operations/gethomedata.ts new file mode 100644 index 00000000..1ea4e27e --- /dev/null +++ b/src/sdk/models/operations/gethomedata.ts @@ -0,0 +1,151 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +/** + * Home Data + */ +export type GetHomeDataResponseBody = { + id?: number | undefined; + name?: string | undefined; + guestUserID?: number | undefined; + guestUserUUID?: string | undefined; + guestEnabled?: boolean | undefined; + subscription?: boolean | undefined; +}; + +export type GetHomeDataResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; + /** + * Home Data + */ + object?: GetHomeDataResponseBody | undefined; +}; + +/** @internal */ +export const GetHomeDataResponseBody$inboundSchema: z.ZodType< + GetHomeDataResponseBody, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.number().optional(), + name: z.string().optional(), + guestUserID: z.number().optional(), + guestUserUUID: z.string().optional(), + guestEnabled: z.boolean().optional(), + subscription: z.boolean().optional(), +}); + +/** @internal */ +export type GetHomeDataResponseBody$Outbound = { + id?: number | undefined; + name?: string | undefined; + guestUserID?: number | undefined; + guestUserUUID?: string | undefined; + guestEnabled?: boolean | undefined; + subscription?: boolean | undefined; +}; + +/** @internal */ +export const GetHomeDataResponseBody$outboundSchema: z.ZodType< + GetHomeDataResponseBody$Outbound, + z.ZodTypeDef, + GetHomeDataResponseBody +> = z.object({ + id: z.number().optional(), + name: z.string().optional(), + guestUserID: z.number().optional(), + guestUserUUID: z.string().optional(), + guestEnabled: z.boolean().optional(), + subscription: z.boolean().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetHomeDataResponseBody$ { + /** @deprecated use `GetHomeDataResponseBody$inboundSchema` instead. */ + export const inboundSchema = GetHomeDataResponseBody$inboundSchema; + /** @deprecated use `GetHomeDataResponseBody$outboundSchema` instead. */ + export const outboundSchema = GetHomeDataResponseBody$outboundSchema; + /** @deprecated use `GetHomeDataResponseBody$Outbound` instead. */ + export type Outbound = GetHomeDataResponseBody$Outbound; +} + +/** @internal */ +export const GetHomeDataResponse$inboundSchema: z.ZodType< + GetHomeDataResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + object: z.lazy(() => GetHomeDataResponseBody$inboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type GetHomeDataResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; + object?: GetHomeDataResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const GetHomeDataResponse$outboundSchema: z.ZodType< + GetHomeDataResponse$Outbound, + z.ZodTypeDef, + GetHomeDataResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + object: z.lazy(() => GetHomeDataResponseBody$outboundSchema).optional(), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 GetHomeDataResponse$ { + /** @deprecated use `GetHomeDataResponse$inboundSchema` instead. */ + export const inboundSchema = GetHomeDataResponse$inboundSchema; + /** @deprecated use `GetHomeDataResponse$outboundSchema` instead. */ + export const outboundSchema = GetHomeDataResponse$outboundSchema; + /** @deprecated use `GetHomeDataResponse$Outbound` instead. */ + export type Outbound = GetHomeDataResponse$Outbound; +} diff --git a/src/models/getlibrarydetailsop.ts b/src/sdk/models/operations/getlibrarydetails.ts similarity index 81% rename from src/models/getlibrarydetailsop.ts rename to src/sdk/models/operations/getlibrarydetails.ts index 4c0faf67..9e0232b5 100644 --- a/src/models/getlibrarydetailsop.ts +++ b/src/sdk/models/operations/getlibrarydetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -36,55 +36,6 @@ export type GetLibraryDetailsRequest = { includeDetails?: IncludeDetails | undefined; }; -export type GetLibraryDetailsErrors = { - 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 GetLibraryDetailsDirectory = { key?: string | undefined; title?: string | undefined; @@ -239,111 +190,6 @@ export namespace GetLibraryDetailsRequest$ { export type Outbound = GetLibraryDetailsRequest$Outbound; } -/** @internal */ -export const GetLibraryDetailsErrors$inboundSchema: z.ZodType< - GetLibraryDetailsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetLibraryDetailsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetLibraryDetailsErrors$outboundSchema: z.ZodType< - GetLibraryDetailsErrors$Outbound, - z.ZodTypeDef, - GetLibraryDetailsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryDetailsErrors$ { - /** @deprecated use `GetLibraryDetailsErrors$inboundSchema` instead. */ - export const inboundSchema = GetLibraryDetailsErrors$inboundSchema; - /** @deprecated use `GetLibraryDetailsErrors$outboundSchema` instead. */ - export const outboundSchema = GetLibraryDetailsErrors$outboundSchema; - /** @deprecated use `GetLibraryDetailsErrors$Outbound` instead. */ - export type Outbound = GetLibraryDetailsErrors$Outbound; -} - -/** @internal */ -export const GetLibraryDetailsLibraryResponseBody$inboundSchema: z.ZodType< - GetLibraryDetailsLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetLibraryDetailsErrors$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(() => GetLibraryDetailsErrors$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 GetLibraryDetailsDirectory$inboundSchema: z.ZodType< GetLibraryDetailsDirectory, diff --git a/src/models/getlibraryhubsop.ts b/src/sdk/models/operations/getlibraryhubs.ts similarity index 87% rename from src/models/getlibraryhubsop.ts rename to src/sdk/models/operations/getlibraryhubs.ts index 1ee07c4d..25582fca 100644 --- a/src/models/getlibraryhubsop.ts +++ b/src/sdk/models/operations/getlibraryhubs.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; /** @@ -29,55 +29,6 @@ export type GetLibraryHubsRequest = { onlyTransient?: QueryParamOnlyTransient | undefined; }; -export type GetLibraryHubsErrors = { - 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 GetLibraryHubsPart = { id?: number | undefined; key?: string | undefined; @@ -282,111 +233,6 @@ export namespace GetLibraryHubsRequest$ { export type Outbound = GetLibraryHubsRequest$Outbound; } -/** @internal */ -export const GetLibraryHubsErrors$inboundSchema: z.ZodType< - GetLibraryHubsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetLibraryHubsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetLibraryHubsErrors$outboundSchema: z.ZodType< - GetLibraryHubsErrors$Outbound, - z.ZodTypeDef, - GetLibraryHubsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryHubsErrors$ { - /** @deprecated use `GetLibraryHubsErrors$inboundSchema` instead. */ - export const inboundSchema = GetLibraryHubsErrors$inboundSchema; - /** @deprecated use `GetLibraryHubsErrors$outboundSchema` instead. */ - export const outboundSchema = GetLibraryHubsErrors$outboundSchema; - /** @deprecated use `GetLibraryHubsErrors$Outbound` instead. */ - export type Outbound = GetLibraryHubsErrors$Outbound; -} - -/** @internal */ -export const GetLibraryHubsHubsResponseBody$inboundSchema: z.ZodType< - GetLibraryHubsHubsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetLibraryHubsErrors$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(() => GetLibraryHubsErrors$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 GetLibraryHubsPart$inboundSchema: z.ZodType< GetLibraryHubsPart, diff --git a/src/models/getlibraryitemsop.ts b/src/sdk/models/operations/getlibraryitems.ts similarity index 88% rename from src/models/getlibraryitemsop.ts rename to src/sdk/models/operations/getlibraryitems.ts index 987d3514..2bd9c9fa 100644 --- a/src/models/getlibraryitemsop.ts +++ b/src/sdk/models/operations/getlibraryitems.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; /** @@ -130,55 +130,6 @@ export type GetLibraryItemsRequest = { xPlexContainerSize?: number | undefined; }; -export type GetLibraryItemsErrors = { - 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 LibrarySectionID = number | string; export type GetLibraryItemsPart = { @@ -473,111 +424,6 @@ export namespace GetLibraryItemsRequest$ { export type Outbound = GetLibraryItemsRequest$Outbound; } -/** @internal */ -export const GetLibraryItemsErrors$inboundSchema: z.ZodType< - GetLibraryItemsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetLibraryItemsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetLibraryItemsErrors$outboundSchema: z.ZodType< - GetLibraryItemsErrors$Outbound, - z.ZodTypeDef, - GetLibraryItemsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLibraryItemsErrors$ { - /** @deprecated use `GetLibraryItemsErrors$inboundSchema` instead. */ - export const inboundSchema = GetLibraryItemsErrors$inboundSchema; - /** @deprecated use `GetLibraryItemsErrors$outboundSchema` instead. */ - export const outboundSchema = GetLibraryItemsErrors$outboundSchema; - /** @deprecated use `GetLibraryItemsErrors$Outbound` instead. */ - export type Outbound = GetLibraryItemsErrors$Outbound; -} - -/** @internal */ -export const GetLibraryItemsLibraryResponseBody$inboundSchema: z.ZodType< - GetLibraryItemsLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetLibraryItemsErrors$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(() => GetLibraryItemsErrors$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 LibrarySectionID$inboundSchema: z.ZodType = z.union([z.number().int(), z.string()]); diff --git a/src/models/getmediaprovidersop.ts b/src/sdk/models/operations/getmediaproviders.ts similarity index 82% rename from src/models/getmediaprovidersop.ts rename to src/sdk/models/operations/getmediaproviders.ts index bb887506..fe9b1805 100644 --- a/src/models/getmediaprovidersop.ts +++ b/src/sdk/models/operations/getmediaproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetMediaProvidersRequest = { @@ -12,55 +12,6 @@ export type GetMediaProvidersRequest = { xPlexToken: string; }; -export type GetMediaProvidersErrors = { - 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 Pivot = { id?: string | undefined; key?: string | undefined; @@ -222,111 +173,6 @@ export namespace GetMediaProvidersRequest$ { export type Outbound = GetMediaProvidersRequest$Outbound; } -/** @internal */ -export const GetMediaProvidersErrors$inboundSchema: z.ZodType< - GetMediaProvidersErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetMediaProvidersErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetMediaProvidersErrors$outboundSchema: z.ZodType< - GetMediaProvidersErrors$Outbound, - z.ZodTypeDef, - GetMediaProvidersErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMediaProvidersErrors$ { - /** @deprecated use `GetMediaProvidersErrors$inboundSchema` instead. */ - export const inboundSchema = GetMediaProvidersErrors$inboundSchema; - /** @deprecated use `GetMediaProvidersErrors$outboundSchema` instead. */ - export const outboundSchema = GetMediaProvidersErrors$outboundSchema; - /** @deprecated use `GetMediaProvidersErrors$Outbound` instead. */ - export type Outbound = GetMediaProvidersErrors$Outbound; -} - -/** @internal */ -export const GetMediaProvidersServerResponseBody$inboundSchema: z.ZodType< - GetMediaProvidersServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetMediaProvidersErrors$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(() => GetMediaProvidersErrors$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 Pivot$inboundSchema: z.ZodType = z.object({ id: z.string().optional(), diff --git a/src/models/getmetadatabyratingkeyop.ts b/src/sdk/models/operations/getmetadatabyratingkey.ts similarity index 88% rename from src/models/getmetadatabyratingkeyop.ts rename to src/sdk/models/operations/getmetadatabyratingkey.ts index d7283b7a..181f6b8b 100644 --- a/src/models/getmetadatabyratingkeyop.ts +++ b/src/sdk/models/operations/getmetadatabyratingkey.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; export type GetMetaDataByRatingKeyRequest = { @@ -13,55 +13,6 @@ export type GetMetaDataByRatingKeyRequest = { ratingKey: number; }; -export type GetMetaDataByRatingKeyErrors = { - 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 Stream = { id?: number | undefined; streamType?: number | undefined; @@ -296,113 +247,6 @@ export namespace GetMetaDataByRatingKeyRequest$ { export type Outbound = GetMetaDataByRatingKeyRequest$Outbound; } -/** @internal */ -export const GetMetaDataByRatingKeyErrors$inboundSchema: z.ZodType< - GetMetaDataByRatingKeyErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetMetaDataByRatingKeyErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetMetaDataByRatingKeyErrors$outboundSchema: z.ZodType< - GetMetaDataByRatingKeyErrors$Outbound, - z.ZodTypeDef, - GetMetaDataByRatingKeyErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetaDataByRatingKeyErrors$ { - /** @deprecated use `GetMetaDataByRatingKeyErrors$inboundSchema` instead. */ - export const inboundSchema = GetMetaDataByRatingKeyErrors$inboundSchema; - /** @deprecated use `GetMetaDataByRatingKeyErrors$outboundSchema` instead. */ - export const outboundSchema = GetMetaDataByRatingKeyErrors$outboundSchema; - /** @deprecated use `GetMetaDataByRatingKeyErrors$Outbound` instead. */ - export type Outbound = GetMetaDataByRatingKeyErrors$Outbound; -} - -/** @internal */ -export const GetMetaDataByRatingKeyLibraryResponseBody$inboundSchema: z.ZodType< - GetMetaDataByRatingKeyLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetMetaDataByRatingKeyErrors$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(() => GetMetaDataByRatingKeyErrors$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 Stream$inboundSchema: z.ZodType = z.object({ id: z.number().int().optional(), diff --git a/src/models/getmetadatachildrenop.ts b/src/sdk/models/operations/getmetadatachildren.ts similarity index 78% rename from src/models/getmetadatachildrenop.ts rename to src/sdk/models/operations/getmetadatachildren.ts index d5e4b9b3..ac31f1a0 100644 --- a/src/models/getmetadatachildrenop.ts +++ b/src/sdk/models/operations/getmetadatachildren.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetMetadataChildrenRequest = { @@ -19,55 +19,6 @@ export type GetMetadataChildrenRequest = { includeElements?: string | undefined; }; -export type GetMetadataChildrenErrors = { - 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 GetMetadataChildrenDirectory = { leafCount?: number | undefined; thumb?: string | undefined; @@ -197,111 +148,6 @@ export namespace GetMetadataChildrenRequest$ { export type Outbound = GetMetadataChildrenRequest$Outbound; } -/** @internal */ -export const GetMetadataChildrenErrors$inboundSchema: z.ZodType< - GetMetadataChildrenErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetMetadataChildrenErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetMetadataChildrenErrors$outboundSchema: z.ZodType< - GetMetadataChildrenErrors$Outbound, - z.ZodTypeDef, - GetMetadataChildrenErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetadataChildrenErrors$ { - /** @deprecated use `GetMetadataChildrenErrors$inboundSchema` instead. */ - export const inboundSchema = GetMetadataChildrenErrors$inboundSchema; - /** @deprecated use `GetMetadataChildrenErrors$outboundSchema` instead. */ - export const outboundSchema = GetMetadataChildrenErrors$outboundSchema; - /** @deprecated use `GetMetadataChildrenErrors$Outbound` instead. */ - export type Outbound = GetMetadataChildrenErrors$Outbound; -} - -/** @internal */ -export const GetMetadataChildrenLibraryResponseBody$inboundSchema: z.ZodType< - GetMetadataChildrenLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetMetadataChildrenErrors$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(() => GetMetadataChildrenErrors$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 GetMetadataChildrenDirectory$inboundSchema: z.ZodType< GetMetadataChildrenDirectory, diff --git a/src/models/getmyplexaccountop.ts b/src/sdk/models/operations/getmyplexaccount.ts similarity index 57% rename from src/models/getmyplexaccountop.ts rename to src/sdk/models/operations/getmyplexaccount.ts index f4d58f21..1bbff9aa 100644 --- a/src/models/getmyplexaccountop.ts +++ b/src/sdk/models/operations/getmyplexaccount.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetMyPlexAccountErrors = { - 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 MyPlex = { authToken?: string | undefined; username?: string | undefined; @@ -95,111 +46,6 @@ export type GetMyPlexAccountResponse = { object?: GetMyPlexAccountResponseBody | undefined; }; -/** @internal */ -export const GetMyPlexAccountErrors$inboundSchema: z.ZodType< - GetMyPlexAccountErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetMyPlexAccountErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetMyPlexAccountErrors$outboundSchema: z.ZodType< - GetMyPlexAccountErrors$Outbound, - z.ZodTypeDef, - GetMyPlexAccountErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMyPlexAccountErrors$ { - /** @deprecated use `GetMyPlexAccountErrors$inboundSchema` instead. */ - export const inboundSchema = GetMyPlexAccountErrors$inboundSchema; - /** @deprecated use `GetMyPlexAccountErrors$outboundSchema` instead. */ - export const outboundSchema = GetMyPlexAccountErrors$outboundSchema; - /** @deprecated use `GetMyPlexAccountErrors$Outbound` instead. */ - export type Outbound = GetMyPlexAccountErrors$Outbound; -} - -/** @internal */ -export const GetMyPlexAccountServerResponseBody$inboundSchema: z.ZodType< - GetMyPlexAccountServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetMyPlexAccountErrors$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(() => GetMyPlexAccountErrors$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 MyPlex$inboundSchema: z.ZodType = z.object({ authToken: z.string().optional(), diff --git a/src/models/getondeckop.ts b/src/sdk/models/operations/getondeck.ts similarity index 84% rename from src/models/getondeckop.ts rename to src/sdk/models/operations/getondeck.ts index 4cbd64c4..8dc5b54c 100644 --- a/src/models/getondeckop.ts +++ b/src/sdk/models/operations/getondeck.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetOnDeckErrors = { - 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 GetOnDeckStream = { id?: number | undefined; streamType?: number | undefined; @@ -189,108 +140,6 @@ export type GetOnDeckResponse = { object?: GetOnDeckResponseBody | undefined; }; -/** @internal */ -export const GetOnDeckErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetOnDeckErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetOnDeckErrors$outboundSchema: z.ZodType< - GetOnDeckErrors$Outbound, - z.ZodTypeDef, - GetOnDeckErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOnDeckErrors$ { - /** @deprecated use `GetOnDeckErrors$inboundSchema` instead. */ - export const inboundSchema = GetOnDeckErrors$inboundSchema; - /** @deprecated use `GetOnDeckErrors$outboundSchema` instead. */ - export const outboundSchema = GetOnDeckErrors$outboundSchema; - /** @deprecated use `GetOnDeckErrors$Outbound` instead. */ - export type Outbound = GetOnDeckErrors$Outbound; -} - -/** @internal */ -export const GetOnDeckLibraryResponseBody$inboundSchema: z.ZodType< - GetOnDeckLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetOnDeckErrors$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(() => GetOnDeckErrors$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 GetOnDeckStream$inboundSchema: z.ZodType = z.object({ diff --git a/src/models/getpinop.ts b/src/sdk/models/operations/getpin.ts similarity index 74% rename from src/models/getpinop.ts rename to src/sdk/models/operations/getpin.ts index b80f0e09..eec2f345 100644 --- a/src/models/getpinop.ts +++ b/src/sdk/models/operations/getpin.ts @@ -2,10 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetPinOpServerList = ["https://plex.tv/api/v2"] as const; +export const GetPinServerList = ["https://plex.tv/api/v2"] as const; export type GetPinGlobals = { /** @@ -41,55 +41,6 @@ export type GetPinRequest = { xPlexProduct?: string | undefined; }; -export type GetPinErrors = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** - * Bad Request response when the X-Plex-Client-Identifier is missing - */ -export type GetPinResponseBodyData = { - errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; -}; - -/** - * Bad Request response when the X-Plex-Client-Identifier is missing - */ -export class GetPinResponseBody 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$: GetPinResponseBodyData; - - constructor(err: GetPinResponseBodyData) { - 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 = "GetPinResponseBody"; - } -} - /** * Geo location data */ @@ -282,107 +233,6 @@ export namespace GetPinRequest$ { export type Outbound = GetPinRequest$Outbound; } -/** @internal */ -export const GetPinErrors$inboundSchema: z.ZodType = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), -}); - -/** @internal */ -export type GetPinErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetPinErrors$outboundSchema: z.ZodType< - GetPinErrors$Outbound, - z.ZodTypeDef, - GetPinErrors -> = 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 GetPinErrors$ { - /** @deprecated use `GetPinErrors$inboundSchema` instead. */ - export const inboundSchema = GetPinErrors$inboundSchema; - /** @deprecated use `GetPinErrors$outboundSchema` instead. */ - export const outboundSchema = GetPinErrors$outboundSchema; - /** @deprecated use `GetPinErrors$Outbound` instead. */ - export type Outbound = GetPinErrors$Outbound; -} - -/** @internal */ -export const GetPinResponseBody$inboundSchema: z.ZodType< - GetPinResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetPinErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetPinResponseBody(remapped); - }); - -/** @internal */ -export type GetPinResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetPinResponseBody$outboundSchema: z.ZodType< - GetPinResponseBody$Outbound, - z.ZodTypeDef, - GetPinResponseBody -> = z - .instanceof(GetPinResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetPinErrors$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 GetPinResponseBody$ { - /** @deprecated use `GetPinResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetPinResponseBody$inboundSchema; - /** @deprecated use `GetPinResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetPinResponseBody$outboundSchema; - /** @deprecated use `GetPinResponseBody$Outbound` instead. */ - export type Outbound = GetPinResponseBody$Outbound; -} - /** @internal */ export const GeoData$inboundSchema: z.ZodType = z .object({ diff --git a/src/models/getplaylistop.ts b/src/sdk/models/operations/getplaylist.ts similarity index 67% rename from src/models/getplaylistop.ts rename to src/sdk/models/operations/getplaylist.ts index 64e015d7..af099fa4 100644 --- a/src/models/getplaylistop.ts +++ b/src/sdk/models/operations/getplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetPlaylistRequest = { @@ -12,55 +12,6 @@ export type GetPlaylistRequest = { playlistID: number; }; -export type GetPlaylistErrors = { - 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 GetPlaylistMetadata = { content?: string | undefined; ratingKey?: string | undefined; @@ -146,108 +97,6 @@ export namespace GetPlaylistRequest$ { export type Outbound = GetPlaylistRequest$Outbound; } -/** @internal */ -export const GetPlaylistErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetPlaylistErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetPlaylistErrors$outboundSchema: z.ZodType< - GetPlaylistErrors$Outbound, - z.ZodTypeDef, - GetPlaylistErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistErrors$ { - /** @deprecated use `GetPlaylistErrors$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistErrors$inboundSchema; - /** @deprecated use `GetPlaylistErrors$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistErrors$outboundSchema; - /** @deprecated use `GetPlaylistErrors$Outbound` instead. */ - export type Outbound = GetPlaylistErrors$Outbound; -} - -/** @internal */ -export const GetPlaylistPlaylistsResponseBody$inboundSchema: z.ZodType< - GetPlaylistPlaylistsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetPlaylistErrors$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(() => GetPlaylistErrors$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 GetPlaylistMetadata$inboundSchema: z.ZodType< GetPlaylistMetadata, diff --git a/src/models/getplaylistcontentsop.ts b/src/sdk/models/operations/getplaylistcontents.ts similarity index 85% rename from src/models/getplaylistcontentsop.ts rename to src/sdk/models/operations/getplaylistcontents.ts index bea0289c..35ee317b 100644 --- a/src/models/getplaylistcontentsop.ts +++ b/src/sdk/models/operations/getplaylistcontents.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; /** @@ -43,55 +43,6 @@ export type GetPlaylistContentsRequest = { type: GetPlaylistContentsQueryParamType; }; -export type GetPlaylistContentsErrors = { - 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 GetPlaylistContentsPart = { id?: number | undefined; key?: string | undefined; @@ -278,111 +229,6 @@ export namespace GetPlaylistContentsRequest$ { export type Outbound = GetPlaylistContentsRequest$Outbound; } -/** @internal */ -export const GetPlaylistContentsErrors$inboundSchema: z.ZodType< - GetPlaylistContentsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetPlaylistContentsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetPlaylistContentsErrors$outboundSchema: z.ZodType< - GetPlaylistContentsErrors$Outbound, - z.ZodTypeDef, - GetPlaylistContentsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistContentsErrors$ { - /** @deprecated use `GetPlaylistContentsErrors$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistContentsErrors$inboundSchema; - /** @deprecated use `GetPlaylistContentsErrors$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistContentsErrors$outboundSchema; - /** @deprecated use `GetPlaylistContentsErrors$Outbound` instead. */ - export type Outbound = GetPlaylistContentsErrors$Outbound; -} - -/** @internal */ -export const GetPlaylistContentsPlaylistsResponseBody$inboundSchema: z.ZodType< - GetPlaylistContentsPlaylistsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetPlaylistContentsErrors$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(() => GetPlaylistContentsErrors$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 GetPlaylistContentsPart$inboundSchema: z.ZodType< GetPlaylistContentsPart, diff --git a/src/models/getplaylistsop.ts b/src/sdk/models/operations/getplaylists.ts similarity index 71% rename from src/models/getplaylistsop.ts rename to src/sdk/models/operations/getplaylists.ts index 6e61e910..c1e7fa92 100644 --- a/src/models/getplaylistsop.ts +++ b/src/sdk/models/operations/getplaylists.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -33,55 +33,6 @@ export type GetPlaylistsRequest = { smart?: QueryParamSmart | undefined; }; -export type GetPlaylistsErrors = { - 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 GetPlaylistsMetadata = { ratingKey?: string | undefined; key?: string | undefined; @@ -209,111 +160,6 @@ export namespace GetPlaylistsRequest$ { export type Outbound = GetPlaylistsRequest$Outbound; } -/** @internal */ -export const GetPlaylistsErrors$inboundSchema: z.ZodType< - GetPlaylistsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetPlaylistsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetPlaylistsErrors$outboundSchema: z.ZodType< - GetPlaylistsErrors$Outbound, - z.ZodTypeDef, - GetPlaylistsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPlaylistsErrors$ { - /** @deprecated use `GetPlaylistsErrors$inboundSchema` instead. */ - export const inboundSchema = GetPlaylistsErrors$inboundSchema; - /** @deprecated use `GetPlaylistsErrors$outboundSchema` instead. */ - export const outboundSchema = GetPlaylistsErrors$outboundSchema; - /** @deprecated use `GetPlaylistsErrors$Outbound` instead. */ - export type Outbound = GetPlaylistsErrors$Outbound; -} - -/** @internal */ -export const GetPlaylistsPlaylistsResponseBody$inboundSchema: z.ZodType< - GetPlaylistsPlaylistsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetPlaylistsErrors$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(() => GetPlaylistsErrors$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 GetPlaylistsMetadata$inboundSchema: z.ZodType< GetPlaylistsMetadata, diff --git a/src/models/getrecentlyaddedop.ts b/src/sdk/models/operations/getrecentlyadded.ts similarity index 81% rename from src/models/getrecentlyaddedop.ts rename to src/sdk/models/operations/getrecentlyadded.ts index 1829aad3..53af07d2 100644 --- a/src/models/getrecentlyaddedop.ts +++ b/src/sdk/models/operations/getrecentlyadded.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetRecentlyAddedRequest = { @@ -26,55 +26,6 @@ export type GetRecentlyAddedRequest = { xPlexContainerSize?: number | undefined; }; -export type GetRecentlyAddedErrors = { - 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 Part = { id?: number | undefined; key?: string | undefined; @@ -88,7 +39,7 @@ export type Part = { videoProfile?: string | undefined; }; -export type GetRecentlyAddedMedia = { +export type Media = { id?: number | undefined; duration?: number | undefined; bitrate?: number | undefined; @@ -154,7 +105,7 @@ export type GetRecentlyAddedMetadata = { chapterSource?: string | undefined; primaryExtraKey?: string | undefined; ratingImage?: string | undefined; - media?: Array | undefined; + media?: Array | undefined; genre?: Array | undefined; director?: Array | undefined; writer?: Array | undefined; @@ -251,111 +202,6 @@ export namespace GetRecentlyAddedRequest$ { export type Outbound = GetRecentlyAddedRequest$Outbound; } -/** @internal */ -export const GetRecentlyAddedErrors$inboundSchema: z.ZodType< - GetRecentlyAddedErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetRecentlyAddedErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetRecentlyAddedErrors$outboundSchema: z.ZodType< - GetRecentlyAddedErrors$Outbound, - z.ZodTypeDef, - GetRecentlyAddedErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRecentlyAddedErrors$ { - /** @deprecated use `GetRecentlyAddedErrors$inboundSchema` instead. */ - export const inboundSchema = GetRecentlyAddedErrors$inboundSchema; - /** @deprecated use `GetRecentlyAddedErrors$outboundSchema` instead. */ - export const outboundSchema = GetRecentlyAddedErrors$outboundSchema; - /** @deprecated use `GetRecentlyAddedErrors$Outbound` instead. */ - export type Outbound = GetRecentlyAddedErrors$Outbound; -} - -/** @internal */ -export const GetRecentlyAddedLibraryResponseBody$inboundSchema: z.ZodType< - GetRecentlyAddedLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetRecentlyAddedErrors$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(() => GetRecentlyAddedErrors$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 Part$inboundSchema: z.ZodType = z.object({ id: z.number().optional(), @@ -412,11 +258,7 @@ export namespace Part$ { } /** @internal */ -export const GetRecentlyAddedMedia$inboundSchema: z.ZodType< - GetRecentlyAddedMedia, - z.ZodTypeDef, - unknown -> = z +export const Media$inboundSchema: z.ZodType = z .object({ id: z.number().optional(), duration: z.number().optional(), @@ -442,7 +284,7 @@ export const GetRecentlyAddedMedia$inboundSchema: z.ZodType< }); /** @internal */ -export type GetRecentlyAddedMedia$Outbound = { +export type Media$Outbound = { id?: number | undefined; duration?: number | undefined; bitrate?: number | undefined; @@ -462,11 +304,7 @@ export type GetRecentlyAddedMedia$Outbound = { }; /** @internal */ -export const GetRecentlyAddedMedia$outboundSchema: z.ZodType< - GetRecentlyAddedMedia$Outbound, - z.ZodTypeDef, - GetRecentlyAddedMedia -> = z +export const Media$outboundSchema: z.ZodType = z .object({ id: z.number().optional(), duration: z.number().optional(), @@ -495,13 +333,13 @@ export const GetRecentlyAddedMedia$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetRecentlyAddedMedia$ { - /** @deprecated use `GetRecentlyAddedMedia$inboundSchema` instead. */ - export const inboundSchema = GetRecentlyAddedMedia$inboundSchema; - /** @deprecated use `GetRecentlyAddedMedia$outboundSchema` instead. */ - export const outboundSchema = GetRecentlyAddedMedia$outboundSchema; - /** @deprecated use `GetRecentlyAddedMedia$Outbound` instead. */ - export type Outbound = GetRecentlyAddedMedia$Outbound; +export namespace Media$ { + /** @deprecated use `Media$inboundSchema` instead. */ + export const inboundSchema = Media$inboundSchema; + /** @deprecated use `Media$outboundSchema` instead. */ + export const outboundSchema = Media$outboundSchema; + /** @deprecated use `Media$Outbound` instead. */ + export type Outbound = Media$Outbound; } /** @internal */ @@ -682,7 +520,7 @@ export const GetRecentlyAddedMetadata$inboundSchema: z.ZodType< chapterSource: z.string().optional(), primaryExtraKey: z.string().optional(), ratingImage: z.string().optional(), - Media: z.array(z.lazy(() => GetRecentlyAddedMedia$inboundSchema)).optional(), + Media: z.array(z.lazy(() => Media$inboundSchema)).optional(), Genre: z.array(z.lazy(() => Genre$inboundSchema)).optional(), Director: z.array(z.lazy(() => Director$inboundSchema)).optional(), Writer: z.array(z.lazy(() => Writer$inboundSchema)).optional(), @@ -728,7 +566,7 @@ export type GetRecentlyAddedMetadata$Outbound = { chapterSource?: string | undefined; primaryExtraKey?: string | undefined; ratingImage?: string | undefined; - Media?: Array | undefined; + Media?: Array | undefined; Genre?: Array | undefined; Director?: Array | undefined; Writer?: Array | undefined; @@ -772,7 +610,7 @@ export const GetRecentlyAddedMetadata$outboundSchema: z.ZodType< chapterSource: z.string().optional(), primaryExtraKey: z.string().optional(), ratingImage: z.string().optional(), - media: z.array(z.lazy(() => GetRecentlyAddedMedia$outboundSchema)).optional(), + media: z.array(z.lazy(() => Media$outboundSchema)).optional(), genre: z.array(z.lazy(() => Genre$outboundSchema)).optional(), director: z.array(z.lazy(() => Director$outboundSchema)).optional(), writer: z.array(z.lazy(() => Writer$outboundSchema)).optional(), diff --git a/src/sdk/models/operations/getrefreshlibrarymetadata.ts b/src/sdk/models/operations/getrefreshlibrarymetadata.ts new file mode 100644 index 00000000..78f88462 --- /dev/null +++ b/src/sdk/models/operations/getrefreshlibrarymetadata.ts @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +/** + * Force the refresh even if the library is already being refreshed. + */ +export enum Force { + Zero = 0, + One = 1, +} + +export type GetRefreshLibraryMetadataRequest = { + /** + * The unique key of the Plex library. + * + * @remarks + * Note: This is unique in the context of the Plex server. + * + */ + sectionKey: number; + /** + * Force the refresh even if the library is already being refreshed. + */ + force?: Force | undefined; +}; + +export type GetRefreshLibraryMetadataResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const Force$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Force); + +/** @internal */ +export const Force$outboundSchema: z.ZodNativeEnum = Force$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Force$ { + /** @deprecated use `Force$inboundSchema` instead. */ + export const inboundSchema = Force$inboundSchema; + /** @deprecated use `Force$outboundSchema` instead. */ + export const outboundSchema = Force$outboundSchema; +} + +/** @internal */ +export const GetRefreshLibraryMetadataRequest$inboundSchema: z.ZodType< + GetRefreshLibraryMetadataRequest, + z.ZodTypeDef, + unknown +> = z.object({ + sectionKey: z.number().int(), + force: Force$inboundSchema.optional(), +}); + +/** @internal */ +export type GetRefreshLibraryMetadataRequest$Outbound = { + sectionKey: number; + force?: number | undefined; +}; + +/** @internal */ +export const GetRefreshLibraryMetadataRequest$outboundSchema: z.ZodType< + GetRefreshLibraryMetadataRequest$Outbound, + z.ZodTypeDef, + GetRefreshLibraryMetadataRequest +> = z.object({ + sectionKey: z.number().int(), + force: Force$outboundSchema.optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRefreshLibraryMetadataRequest$ { + /** @deprecated use `GetRefreshLibraryMetadataRequest$inboundSchema` instead. */ + export const inboundSchema = GetRefreshLibraryMetadataRequest$inboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataRequest$outboundSchema` instead. */ + export const outboundSchema = GetRefreshLibraryMetadataRequest$outboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataRequest$Outbound` instead. */ + export type Outbound = GetRefreshLibraryMetadataRequest$Outbound; +} + +/** @internal */ +export const GetRefreshLibraryMetadataResponse$inboundSchema: z.ZodType< + GetRefreshLibraryMetadataResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type GetRefreshLibraryMetadataResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const GetRefreshLibraryMetadataResponse$outboundSchema: z.ZodType< + GetRefreshLibraryMetadataResponse$Outbound, + z.ZodTypeDef, + GetRefreshLibraryMetadataResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 GetRefreshLibraryMetadataResponse$ { + /** @deprecated use `GetRefreshLibraryMetadataResponse$inboundSchema` instead. */ + export const inboundSchema = GetRefreshLibraryMetadataResponse$inboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataResponse$outboundSchema` instead. */ + export const outboundSchema = GetRefreshLibraryMetadataResponse$outboundSchema; + /** @deprecated use `GetRefreshLibraryMetadataResponse$Outbound` instead. */ + export type Outbound = GetRefreshLibraryMetadataResponse$Outbound; +} diff --git a/src/models/getresizedphotoop.ts b/src/sdk/models/operations/getresizedphoto.ts similarity index 55% rename from src/models/getresizedphotoop.ts rename to src/sdk/models/operations/getresizedphoto.ts index cf90f71f..a240b53c 100644 --- a/src/models/getresizedphotoop.ts +++ b/src/sdk/models/operations/getresizedphoto.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -52,55 +52,6 @@ export type GetResizedPhotoRequest = { url: string; }; -export type GetResizedPhotoErrors = { - 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 GetResizedPhotoResponseBodyData = { - 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 GetResizedPhotoResponseBody 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$: GetResizedPhotoResponseBodyData; - - constructor(err: GetResizedPhotoResponseBodyData) { - 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 = "GetResizedPhotoResponseBody"; - } -} - export type GetResizedPhotoResponse = { /** * HTTP response content type for this operation @@ -204,111 +155,6 @@ export namespace GetResizedPhotoRequest$ { export type Outbound = GetResizedPhotoRequest$Outbound; } -/** @internal */ -export const GetResizedPhotoErrors$inboundSchema: z.ZodType< - GetResizedPhotoErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetResizedPhotoErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetResizedPhotoErrors$outboundSchema: z.ZodType< - GetResizedPhotoErrors$Outbound, - z.ZodTypeDef, - GetResizedPhotoErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResizedPhotoErrors$ { - /** @deprecated use `GetResizedPhotoErrors$inboundSchema` instead. */ - export const inboundSchema = GetResizedPhotoErrors$inboundSchema; - /** @deprecated use `GetResizedPhotoErrors$outboundSchema` instead. */ - export const outboundSchema = GetResizedPhotoErrors$outboundSchema; - /** @deprecated use `GetResizedPhotoErrors$Outbound` instead. */ - export type Outbound = GetResizedPhotoErrors$Outbound; -} - -/** @internal */ -export const GetResizedPhotoResponseBody$inboundSchema: z.ZodType< - GetResizedPhotoResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetResizedPhotoErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetResizedPhotoResponseBody(remapped); - }); - -/** @internal */ -export type GetResizedPhotoResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetResizedPhotoResponseBody$outboundSchema: z.ZodType< - GetResizedPhotoResponseBody$Outbound, - z.ZodTypeDef, - GetResizedPhotoResponseBody -> = z - .instanceof(GetResizedPhotoResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetResizedPhotoErrors$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 GetResizedPhotoResponseBody$ { - /** @deprecated use `GetResizedPhotoResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetResizedPhotoResponseBody$inboundSchema; - /** @deprecated use `GetResizedPhotoResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetResizedPhotoResponseBody$outboundSchema; - /** @deprecated use `GetResizedPhotoResponseBody$Outbound` instead. */ - export type Outbound = GetResizedPhotoResponseBody$Outbound; -} - /** @internal */ export const GetResizedPhotoResponse$inboundSchema: z.ZodType< GetResizedPhotoResponse, diff --git a/src/models/getresourcesstatisticsop.ts b/src/sdk/models/operations/getresourcesstatistics.ts similarity index 65% rename from src/models/getresourcesstatisticsop.ts rename to src/sdk/models/operations/getresourcesstatistics.ts index fa372d84..01e9edb6 100644 --- a/src/models/getresourcesstatisticsop.ts +++ b/src/sdk/models/operations/getresourcesstatistics.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetResourcesStatisticsRequest = { @@ -16,55 +16,6 @@ export type GetResourcesStatisticsRequest = { timespan?: number | undefined; }; -export type GetResourcesStatisticsErrors = { - 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 StatisticsResources = { timespan?: number | undefined; at?: number | undefined; @@ -153,113 +104,6 @@ export namespace GetResourcesStatisticsRequest$ { export type Outbound = GetResourcesStatisticsRequest$Outbound; } -/** @internal */ -export const GetResourcesStatisticsErrors$inboundSchema: z.ZodType< - GetResourcesStatisticsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetResourcesStatisticsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetResourcesStatisticsErrors$outboundSchema: z.ZodType< - GetResourcesStatisticsErrors$Outbound, - z.ZodTypeDef, - GetResourcesStatisticsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourcesStatisticsErrors$ { - /** @deprecated use `GetResourcesStatisticsErrors$inboundSchema` instead. */ - export const inboundSchema = GetResourcesStatisticsErrors$inboundSchema; - /** @deprecated use `GetResourcesStatisticsErrors$outboundSchema` instead. */ - export const outboundSchema = GetResourcesStatisticsErrors$outboundSchema; - /** @deprecated use `GetResourcesStatisticsErrors$Outbound` instead. */ - export type Outbound = GetResourcesStatisticsErrors$Outbound; -} - -/** @internal */ -export const GetResourcesStatisticsStatisticsResponseBody$inboundSchema: z.ZodType< - GetResourcesStatisticsStatisticsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetResourcesStatisticsErrors$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(() => GetResourcesStatisticsErrors$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 StatisticsResources$inboundSchema: z.ZodType< StatisticsResources, diff --git a/src/models/getsearchlibraryop.ts b/src/sdk/models/operations/getsearchlibrary.ts similarity index 74% rename from src/models/getsearchlibraryop.ts rename to src/sdk/models/operations/getsearchlibrary.ts index aca117e5..094084da 100644 --- a/src/models/getsearchlibraryop.ts +++ b/src/sdk/models/operations/getsearchlibrary.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -46,55 +46,6 @@ export type GetSearchLibraryRequest = { type: QueryParamType; }; -export type GetSearchLibraryErrors = { - 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 GetSearchLibraryMetadata = { ratingKey?: string | undefined; key?: string | undefined; @@ -218,111 +169,6 @@ export namespace GetSearchLibraryRequest$ { export type Outbound = GetSearchLibraryRequest$Outbound; } -/** @internal */ -export const GetSearchLibraryErrors$inboundSchema: z.ZodType< - GetSearchLibraryErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetSearchLibraryErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetSearchLibraryErrors$outboundSchema: z.ZodType< - GetSearchLibraryErrors$Outbound, - z.ZodTypeDef, - GetSearchLibraryErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSearchLibraryErrors$ { - /** @deprecated use `GetSearchLibraryErrors$inboundSchema` instead. */ - export const inboundSchema = GetSearchLibraryErrors$inboundSchema; - /** @deprecated use `GetSearchLibraryErrors$outboundSchema` instead. */ - export const outboundSchema = GetSearchLibraryErrors$outboundSchema; - /** @deprecated use `GetSearchLibraryErrors$Outbound` instead. */ - export type Outbound = GetSearchLibraryErrors$Outbound; -} - -/** @internal */ -export const GetSearchLibraryLibraryResponseBody$inboundSchema: z.ZodType< - GetSearchLibraryLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetSearchLibraryErrors$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(() => GetSearchLibraryErrors$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 GetSearchLibraryMetadata$inboundSchema: z.ZodType< GetSearchLibraryMetadata, diff --git a/src/models/getsearchresultsop.ts b/src/sdk/models/operations/getsearchresults.ts similarity index 85% rename from src/models/getsearchresultsop.ts rename to src/sdk/models/operations/getsearchresults.ts index 4395de6b..3acc6dd3 100644 --- a/src/models/getsearchresultsop.ts +++ b/src/sdk/models/operations/getsearchresults.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetSearchResultsRequest = { @@ -12,55 +12,6 @@ export type GetSearchResultsRequest = { query: string; }; -export type GetSearchResultsErrors = { - 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 GetSearchResultsPart = { id?: number | undefined; key?: string | undefined; @@ -224,111 +175,6 @@ export namespace GetSearchResultsRequest$ { export type Outbound = GetSearchResultsRequest$Outbound; } -/** @internal */ -export const GetSearchResultsErrors$inboundSchema: z.ZodType< - GetSearchResultsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetSearchResultsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetSearchResultsErrors$outboundSchema: z.ZodType< - GetSearchResultsErrors$Outbound, - z.ZodTypeDef, - GetSearchResultsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSearchResultsErrors$ { - /** @deprecated use `GetSearchResultsErrors$inboundSchema` instead. */ - export const inboundSchema = GetSearchResultsErrors$inboundSchema; - /** @deprecated use `GetSearchResultsErrors$outboundSchema` instead. */ - export const outboundSchema = GetSearchResultsErrors$outboundSchema; - /** @deprecated use `GetSearchResultsErrors$Outbound` instead. */ - export type Outbound = GetSearchResultsErrors$Outbound; -} - -/** @internal */ -export const GetSearchResultsSearchResponseBody$inboundSchema: z.ZodType< - GetSearchResultsSearchResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetSearchResultsErrors$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(() => GetSearchResultsErrors$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 GetSearchResultsPart$inboundSchema: z.ZodType< GetSearchResultsPart, diff --git a/src/models/getserveractivitiesop.ts b/src/sdk/models/operations/getserveractivities.ts similarity index 64% rename from src/models/getserveractivitiesop.ts rename to src/sdk/models/operations/getserveractivities.ts index 2c527147..6fbf2bc7 100644 --- a/src/models/getserveractivitiesop.ts +++ b/src/sdk/models/operations/getserveractivities.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetServerActivitiesErrors = { - 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 Context = { librarySectionID?: string | undefined; }; @@ -100,111 +51,6 @@ export type GetServerActivitiesResponse = { object?: GetServerActivitiesResponseBody | undefined; }; -/** @internal */ -export const GetServerActivitiesErrors$inboundSchema: z.ZodType< - GetServerActivitiesErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetServerActivitiesErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetServerActivitiesErrors$outboundSchema: z.ZodType< - GetServerActivitiesErrors$Outbound, - z.ZodTypeDef, - GetServerActivitiesErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerActivitiesErrors$ { - /** @deprecated use `GetServerActivitiesErrors$inboundSchema` instead. */ - export const inboundSchema = GetServerActivitiesErrors$inboundSchema; - /** @deprecated use `GetServerActivitiesErrors$outboundSchema` instead. */ - export const outboundSchema = GetServerActivitiesErrors$outboundSchema; - /** @deprecated use `GetServerActivitiesErrors$Outbound` instead. */ - export type Outbound = GetServerActivitiesErrors$Outbound; -} - -/** @internal */ -export const GetServerActivitiesActivitiesResponseBody$inboundSchema: z.ZodType< - GetServerActivitiesActivitiesResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetServerActivitiesErrors$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(() => GetServerActivitiesErrors$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 Context$inboundSchema: z.ZodType = z.object({ librarySectionID: z.string().optional(), diff --git a/src/models/getservercapabilitiesop.ts b/src/sdk/models/operations/getservercapabilities.ts similarity index 76% rename from src/models/getservercapabilitiesop.ts rename to src/sdk/models/operations/getservercapabilities.ts index 863acc44..e331d201 100644 --- a/src/models/getservercapabilitiesop.ts +++ b/src/sdk/models/operations/getservercapabilities.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type Errors = { - 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 Directory = { count?: number | undefined; key?: string | undefined; @@ -140,103 +91,6 @@ export type GetServerCapabilitiesResponse = { object?: GetServerCapabilitiesResponseBody | undefined; }; -/** @internal */ -export const Errors$inboundSchema: z.ZodType = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type Errors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const Errors$outboundSchema: z.ZodType = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Errors$ { - /** @deprecated use `Errors$inboundSchema` instead. */ - export const inboundSchema = Errors$inboundSchema; - /** @deprecated use `Errors$outboundSchema` instead. */ - export const outboundSchema = Errors$outboundSchema; - /** @deprecated use `Errors$Outbound` instead. */ - export type Outbound = Errors$Outbound; -} - -/** @internal */ -export const GetServerCapabilitiesServerResponseBody$inboundSchema: z.ZodType< - GetServerCapabilitiesServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => Errors$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(() => Errors$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 Directory$inboundSchema: z.ZodType = z.object({ count: z.number().optional(), diff --git a/src/models/getserveridentityop.ts b/src/sdk/models/operations/getserveridentity.ts similarity index 64% rename from src/models/getserveridentityop.ts rename to src/sdk/models/operations/getserveridentity.ts index e639f132..1a26ba58 100644 --- a/src/models/getserveridentityop.ts +++ b/src/sdk/models/operations/getserveridentity.ts @@ -2,53 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -/** - * Request Timeout - */ -export type GetServerIdentityServerResponseBodyData = { - code?: number | undefined; - message?: string | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; -}; - -/** - * Request Timeout - */ -export class GetServerIdentityServerResponseBody extends Error { - code?: number | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; - - /** The original data that was passed to this error instance. */ - data$: GetServerIdentityServerResponseBodyData; - - constructor(err: GetServerIdentityServerResponseBodyData) { - const message = - "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message); - this.data$ = err; - - if (err.code != null) { - this.code = err.code; - } - if (err.rawResponse != null) { - this.rawResponse = err.rawResponse; - } - - this.name = "GetServerIdentityServerResponseBody"; - } -} - export type GetServerIdentityMediaContainer = { size?: number | undefined; claimed?: boolean | undefined; @@ -82,72 +38,6 @@ export type GetServerIdentityResponse = { object?: GetServerIdentityResponseBody | undefined; }; -/** @internal */ -export const GetServerIdentityServerResponseBody$inboundSchema: z.ZodType< - GetServerIdentityServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - code: z.number().int().optional(), - message: z.string().optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetServerIdentityServerResponseBody(remapped); - }); - -/** @internal */ -export type GetServerIdentityServerResponseBody$Outbound = { - code?: number | undefined; - message?: string | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetServerIdentityServerResponseBody$outboundSchema: z.ZodType< - GetServerIdentityServerResponseBody$Outbound, - z.ZodTypeDef, - GetServerIdentityServerResponseBody -> = z - .instanceof(GetServerIdentityServerResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - code: z.number().int().optional(), - message: z.string().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 GetServerIdentityServerResponseBody$ { - /** @deprecated use `GetServerIdentityServerResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetServerIdentityServerResponseBody$inboundSchema; - /** @deprecated use `GetServerIdentityServerResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetServerIdentityServerResponseBody$outboundSchema; - /** @deprecated use `GetServerIdentityServerResponseBody$Outbound` instead. */ - export type Outbound = GetServerIdentityServerResponseBody$Outbound; -} - /** @internal */ export const GetServerIdentityMediaContainer$inboundSchema: z.ZodType< GetServerIdentityMediaContainer, diff --git a/src/models/getserverlistop.ts b/src/sdk/models/operations/getserverlist.ts similarity index 61% rename from src/models/getserverlistop.ts rename to src/sdk/models/operations/getserverlist.ts index 05a787e1..f9959212 100644 --- a/src/models/getserverlistop.ts +++ b/src/sdk/models/operations/getserverlist.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetServerListErrors = { - 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 GetServerListServer = { name?: string | undefined; host?: string | undefined; @@ -94,111 +45,6 @@ export type GetServerListResponse = { object?: GetServerListResponseBody | undefined; }; -/** @internal */ -export const GetServerListErrors$inboundSchema: z.ZodType< - GetServerListErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetServerListErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetServerListErrors$outboundSchema: z.ZodType< - GetServerListErrors$Outbound, - z.ZodTypeDef, - GetServerListErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerListErrors$ { - /** @deprecated use `GetServerListErrors$inboundSchema` instead. */ - export const inboundSchema = GetServerListErrors$inboundSchema; - /** @deprecated use `GetServerListErrors$outboundSchema` instead. */ - export const outboundSchema = GetServerListErrors$outboundSchema; - /** @deprecated use `GetServerListErrors$Outbound` instead. */ - export type Outbound = GetServerListErrors$Outbound; -} - -/** @internal */ -export const GetServerListServerResponseBody$inboundSchema: z.ZodType< - GetServerListServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetServerListErrors$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(() => GetServerListErrors$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 GetServerListServer$inboundSchema: z.ZodType< GetServerListServer, diff --git a/src/models/getserverpreferencesop.ts b/src/sdk/models/operations/getserverpreferences.ts similarity index 62% rename from src/models/getserverpreferencesop.ts rename to src/sdk/models/operations/getserverpreferences.ts index ef565559..77a2bf29 100644 --- a/src/models/getserverpreferencesop.ts +++ b/src/sdk/models/operations/getserverpreferences.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetServerPreferencesErrors = { - 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 Setting = { id?: string | undefined; label?: string | undefined; @@ -98,111 +49,6 @@ export type GetServerPreferencesResponse = { object?: GetServerPreferencesResponseBody | undefined; }; -/** @internal */ -export const GetServerPreferencesErrors$inboundSchema: z.ZodType< - GetServerPreferencesErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetServerPreferencesErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetServerPreferencesErrors$outboundSchema: z.ZodType< - GetServerPreferencesErrors$Outbound, - z.ZodTypeDef, - GetServerPreferencesErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerPreferencesErrors$ { - /** @deprecated use `GetServerPreferencesErrors$inboundSchema` instead. */ - export const inboundSchema = GetServerPreferencesErrors$inboundSchema; - /** @deprecated use `GetServerPreferencesErrors$outboundSchema` instead. */ - export const outboundSchema = GetServerPreferencesErrors$outboundSchema; - /** @deprecated use `GetServerPreferencesErrors$Outbound` instead. */ - export type Outbound = GetServerPreferencesErrors$Outbound; -} - -/** @internal */ -export const GetServerPreferencesServerResponseBody$inboundSchema: z.ZodType< - GetServerPreferencesServerResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetServerPreferencesErrors$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(() => GetServerPreferencesErrors$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 Setting$inboundSchema: z.ZodType = z.object({ id: z.string().optional(), diff --git a/src/models/getserverresourcesop.ts b/src/sdk/models/operations/getserverresources.ts similarity index 75% rename from src/models/getserverresourcesop.ts rename to src/sdk/models/operations/getserverresources.ts index 5b92748e..53b50211 100644 --- a/src/models/getserverresourcesop.ts +++ b/src/sdk/models/operations/getserverresources.ts @@ -2,10 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetServerResourcesOpServerList = ["https://plex.tv/api/v2"] as const; +export const GetServerResourcesServerList = ["https://plex.tv/api/v2"] as const; export type GetServerResourcesGlobals = { /** @@ -79,55 +79,6 @@ export type GetServerResourcesRequest = { includeIPv6?: IncludeIPv6 | undefined; }; -export type GetServerResourcesErrors = { - 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 GetServerResourcesResponseBodyData = { - 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 GetServerResourcesResponseBody 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$: GetServerResourcesResponseBodyData; - - constructor(err: GetServerResourcesResponseBodyData) { - 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 = "GetServerResourcesResponseBody"; - } -} - export type Connections = { protocol: string; address: string; @@ -354,111 +305,6 @@ export namespace GetServerResourcesRequest$ { export type Outbound = GetServerResourcesRequest$Outbound; } -/** @internal */ -export const GetServerResourcesErrors$inboundSchema: z.ZodType< - GetServerResourcesErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetServerResourcesErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetServerResourcesErrors$outboundSchema: z.ZodType< - GetServerResourcesErrors$Outbound, - z.ZodTypeDef, - GetServerResourcesErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetServerResourcesErrors$ { - /** @deprecated use `GetServerResourcesErrors$inboundSchema` instead. */ - export const inboundSchema = GetServerResourcesErrors$inboundSchema; - /** @deprecated use `GetServerResourcesErrors$outboundSchema` instead. */ - export const outboundSchema = GetServerResourcesErrors$outboundSchema; - /** @deprecated use `GetServerResourcesErrors$Outbound` instead. */ - export type Outbound = GetServerResourcesErrors$Outbound; -} - -/** @internal */ -export const GetServerResourcesResponseBody$inboundSchema: z.ZodType< - GetServerResourcesResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetServerResourcesErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetServerResourcesResponseBody(remapped); - }); - -/** @internal */ -export type GetServerResourcesResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetServerResourcesResponseBody$outboundSchema: z.ZodType< - GetServerResourcesResponseBody$Outbound, - z.ZodTypeDef, - GetServerResourcesResponseBody -> = z - .instanceof(GetServerResourcesResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetServerResourcesErrors$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 GetServerResourcesResponseBody$ { - /** @deprecated use `GetServerResourcesResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetServerResourcesResponseBody$inboundSchema; - /** @deprecated use `GetServerResourcesResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetServerResourcesResponseBody$outboundSchema; - /** @deprecated use `GetServerResourcesResponseBody$Outbound` instead. */ - export type Outbound = GetServerResourcesResponseBody$Outbound; -} - /** @internal */ export const Connections$inboundSchema: z.ZodType = z .object({ diff --git a/src/models/getsessionhistoryop.ts b/src/sdk/models/operations/getsessionhistory.ts similarity index 72% rename from src/models/getsessionhistoryop.ts rename to src/sdk/models/operations/getsessionhistory.ts index 4999f264..14a355c5 100644 --- a/src/models/getsessionhistoryop.ts +++ b/src/sdk/models/operations/getsessionhistory.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; /** @@ -47,55 +47,6 @@ export type GetSessionHistoryRequest = { librarySectionID?: number | undefined; }; -export type GetSessionHistoryErrors = { - 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 GetSessionHistoryMetadata = { historyKey?: string | undefined; key?: string | undefined; @@ -221,111 +172,6 @@ export namespace GetSessionHistoryRequest$ { export type Outbound = GetSessionHistoryRequest$Outbound; } -/** @internal */ -export const GetSessionHistoryErrors$inboundSchema: z.ZodType< - GetSessionHistoryErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetSessionHistoryErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetSessionHistoryErrors$outboundSchema: z.ZodType< - GetSessionHistoryErrors$Outbound, - z.ZodTypeDef, - GetSessionHistoryErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionHistoryErrors$ { - /** @deprecated use `GetSessionHistoryErrors$inboundSchema` instead. */ - export const inboundSchema = GetSessionHistoryErrors$inboundSchema; - /** @deprecated use `GetSessionHistoryErrors$outboundSchema` instead. */ - export const outboundSchema = GetSessionHistoryErrors$outboundSchema; - /** @deprecated use `GetSessionHistoryErrors$Outbound` instead. */ - export type Outbound = GetSessionHistoryErrors$Outbound; -} - -/** @internal */ -export const GetSessionHistorySessionsResponseBody$inboundSchema: z.ZodType< - GetSessionHistorySessionsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetSessionHistoryErrors$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(() => GetSessionHistoryErrors$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 GetSessionHistoryMetadata$inboundSchema: z.ZodType< GetSessionHistoryMetadata, diff --git a/src/models/getsessionsop.ts b/src/sdk/models/operations/getsessions.ts similarity index 85% rename from src/models/getsessionsop.ts rename to src/sdk/models/operations/getsessions.ts index a1a586ab..fdff8302 100644 --- a/src/models/getsessionsop.ts +++ b/src/sdk/models/operations/getsessions.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetSessionsErrors = { - 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 GetSessionsStream = { albumGain?: string | undefined; albumPeak?: string | undefined; @@ -202,108 +153,6 @@ export type GetSessionsResponse = { object?: GetSessionsResponseBody | undefined; }; -/** @internal */ -export const GetSessionsErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetSessionsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetSessionsErrors$outboundSchema: z.ZodType< - GetSessionsErrors$Outbound, - z.ZodTypeDef, - GetSessionsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSessionsErrors$ { - /** @deprecated use `GetSessionsErrors$inboundSchema` instead. */ - export const inboundSchema = GetSessionsErrors$inboundSchema; - /** @deprecated use `GetSessionsErrors$outboundSchema` instead. */ - export const outboundSchema = GetSessionsErrors$outboundSchema; - /** @deprecated use `GetSessionsErrors$Outbound` instead. */ - export type Outbound = GetSessionsErrors$Outbound; -} - -/** @internal */ -export const GetSessionsSessionsResponseBody$inboundSchema: z.ZodType< - GetSessionsSessionsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetSessionsErrors$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(() => GetSessionsErrors$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 GetSessionsStream$inboundSchema: z.ZodType = z.object({ diff --git a/src/sdk/models/operations/getsourceconnectioninformation.ts b/src/sdk/models/operations/getsourceconnectioninformation.ts new file mode 100644 index 00000000..29aeff61 --- /dev/null +++ b/src/sdk/models/operations/getsourceconnectioninformation.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type GetSourceConnectionInformationRequest = { + /** + * The source identifier with an included prefix. + */ + source: string; +}; + +export type GetSourceConnectionInformationResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const GetSourceConnectionInformationRequest$inboundSchema: z.ZodType< + GetSourceConnectionInformationRequest, + z.ZodTypeDef, + unknown +> = z.object({ + source: z.string(), +}); + +/** @internal */ +export type GetSourceConnectionInformationRequest$Outbound = { + source: string; +}; + +/** @internal */ +export const GetSourceConnectionInformationRequest$outboundSchema: z.ZodType< + GetSourceConnectionInformationRequest$Outbound, + z.ZodTypeDef, + GetSourceConnectionInformationRequest +> = z.object({ + source: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSourceConnectionInformationRequest$ { + /** @deprecated use `GetSourceConnectionInformationRequest$inboundSchema` instead. */ + export const inboundSchema = GetSourceConnectionInformationRequest$inboundSchema; + /** @deprecated use `GetSourceConnectionInformationRequest$outboundSchema` instead. */ + export const outboundSchema = GetSourceConnectionInformationRequest$outboundSchema; + /** @deprecated use `GetSourceConnectionInformationRequest$Outbound` instead. */ + export type Outbound = GetSourceConnectionInformationRequest$Outbound; +} + +/** @internal */ +export const GetSourceConnectionInformationResponse$inboundSchema: z.ZodType< + GetSourceConnectionInformationResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type GetSourceConnectionInformationResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const GetSourceConnectionInformationResponse$outboundSchema: z.ZodType< + GetSourceConnectionInformationResponse$Outbound, + z.ZodTypeDef, + GetSourceConnectionInformationResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 GetSourceConnectionInformationResponse$ { + /** @deprecated use `GetSourceConnectionInformationResponse$inboundSchema` instead. */ + export const inboundSchema = GetSourceConnectionInformationResponse$inboundSchema; + /** @deprecated use `GetSourceConnectionInformationResponse$outboundSchema` instead. */ + export const outboundSchema = GetSourceConnectionInformationResponse$outboundSchema; + /** @deprecated use `GetSourceConnectionInformationResponse$Outbound` instead. */ + export type Outbound = GetSourceConnectionInformationResponse$Outbound; +} diff --git a/src/models/getstatisticsop.ts b/src/sdk/models/operations/getstatistics.ts similarity index 73% rename from src/models/getstatisticsop.ts rename to src/sdk/models/operations/getstatistics.ts index 1a20b393..56692fa1 100644 --- a/src/models/getstatisticsop.ts +++ b/src/sdk/models/operations/getstatistics.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetStatisticsRequest = { @@ -16,55 +16,6 @@ export type GetStatisticsRequest = { timespan?: number | undefined; }; -export type GetStatisticsErrors = { - 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 GetStatisticsDevice = { id?: number | undefined; name?: string | undefined; @@ -175,111 +126,6 @@ export namespace GetStatisticsRequest$ { export type Outbound = GetStatisticsRequest$Outbound; } -/** @internal */ -export const GetStatisticsErrors$inboundSchema: z.ZodType< - GetStatisticsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetStatisticsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetStatisticsErrors$outboundSchema: z.ZodType< - GetStatisticsErrors$Outbound, - z.ZodTypeDef, - GetStatisticsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStatisticsErrors$ { - /** @deprecated use `GetStatisticsErrors$inboundSchema` instead. */ - export const inboundSchema = GetStatisticsErrors$inboundSchema; - /** @deprecated use `GetStatisticsErrors$outboundSchema` instead. */ - export const outboundSchema = GetStatisticsErrors$outboundSchema; - /** @deprecated use `GetStatisticsErrors$Outbound` instead. */ - export type Outbound = GetStatisticsErrors$Outbound; -} - -/** @internal */ -export const GetStatisticsStatisticsResponseBody$inboundSchema: z.ZodType< - GetStatisticsStatisticsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetStatisticsErrors$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(() => GetStatisticsErrors$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 GetStatisticsDevice$inboundSchema: z.ZodType< GetStatisticsDevice, diff --git a/src/models/getthumbimageop.ts b/src/sdk/models/operations/getthumbimage.ts similarity index 50% rename from src/models/getthumbimageop.ts rename to src/sdk/models/operations/getthumbimage.ts index d4e3e9f9..104b52d0 100644 --- a/src/models/getthumbimageop.ts +++ b/src/sdk/models/operations/getthumbimage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type GetThumbImageRequest = { @@ -20,55 +20,6 @@ export type GetThumbImageRequest = { xPlexToken: string; }; -export type GetThumbImageErrors = { - 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 GetThumbImageResponseBodyData = { - 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 GetThumbImageResponseBody 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$: GetThumbImageResponseBodyData; - - constructor(err: GetThumbImageResponseBodyData) { - 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 = "GetThumbImageResponseBody"; - } -} - export type GetThumbImageResponse = { /** * HTTP response content type for this operation @@ -152,111 +103,6 @@ export namespace GetThumbImageRequest$ { export type Outbound = GetThumbImageRequest$Outbound; } -/** @internal */ -export const GetThumbImageErrors$inboundSchema: z.ZodType< - GetThumbImageErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetThumbImageErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetThumbImageErrors$outboundSchema: z.ZodType< - GetThumbImageErrors$Outbound, - z.ZodTypeDef, - GetThumbImageErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetThumbImageErrors$ { - /** @deprecated use `GetThumbImageErrors$inboundSchema` instead. */ - export const inboundSchema = GetThumbImageErrors$inboundSchema; - /** @deprecated use `GetThumbImageErrors$outboundSchema` instead. */ - export const outboundSchema = GetThumbImageErrors$outboundSchema; - /** @deprecated use `GetThumbImageErrors$Outbound` instead. */ - export type Outbound = GetThumbImageErrors$Outbound; -} - -/** @internal */ -export const GetThumbImageResponseBody$inboundSchema: z.ZodType< - GetThumbImageResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetThumbImageErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetThumbImageResponseBody(remapped); - }); - -/** @internal */ -export type GetThumbImageResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetThumbImageResponseBody$outboundSchema: z.ZodType< - GetThumbImageResponseBody$Outbound, - z.ZodTypeDef, - GetThumbImageResponseBody -> = z - .instanceof(GetThumbImageResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetThumbImageErrors$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 GetThumbImageResponseBody$ { - /** @deprecated use `GetThumbImageResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetThumbImageResponseBody$inboundSchema; - /** @deprecated use `GetThumbImageResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetThumbImageResponseBody$outboundSchema; - /** @deprecated use `GetThumbImageResponseBody$Outbound` instead. */ - export type Outbound = GetThumbImageResponseBody$Outbound; -} - /** @internal */ export const GetThumbImageResponse$inboundSchema: z.ZodType< GetThumbImageResponse, diff --git a/src/models/gettimelineop.ts b/src/sdk/models/operations/gettimeline.ts similarity index 53% rename from src/models/gettimelineop.ts rename to src/sdk/models/operations/gettimeline.ts index ff13bee2..ebd9f8bc 100644 --- a/src/models/gettimelineop.ts +++ b/src/sdk/models/operations/gettimeline.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -57,55 +57,6 @@ export type GetTimelineRequest = { row: number; }; -export type GetTimelineErrors = { - 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 GetTimelineResponseBodyData = { - 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 GetTimelineResponseBody 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$: GetTimelineResponseBodyData; - - constructor(err: GetTimelineResponseBodyData) { - 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 = "GetTimelineResponseBody"; - } -} - export type GetTimelineResponse = { /** * HTTP response content type for this operation @@ -201,108 +152,6 @@ export namespace GetTimelineRequest$ { export type Outbound = GetTimelineRequest$Outbound; } -/** @internal */ -export const GetTimelineErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type GetTimelineErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetTimelineErrors$outboundSchema: z.ZodType< - GetTimelineErrors$Outbound, - z.ZodTypeDef, - GetTimelineErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTimelineErrors$ { - /** @deprecated use `GetTimelineErrors$inboundSchema` instead. */ - export const inboundSchema = GetTimelineErrors$inboundSchema; - /** @deprecated use `GetTimelineErrors$outboundSchema` instead. */ - export const outboundSchema = GetTimelineErrors$outboundSchema; - /** @deprecated use `GetTimelineErrors$Outbound` instead. */ - export type Outbound = GetTimelineErrors$Outbound; -} - -/** @internal */ -export const GetTimelineResponseBody$inboundSchema: z.ZodType< - GetTimelineResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetTimelineErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetTimelineResponseBody(remapped); - }); - -/** @internal */ -export type GetTimelineResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetTimelineResponseBody$outboundSchema: z.ZodType< - GetTimelineResponseBody$Outbound, - z.ZodTypeDef, - GetTimelineResponseBody -> = z - .instanceof(GetTimelineResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetTimelineErrors$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 GetTimelineResponseBody$ { - /** @deprecated use `GetTimelineResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTimelineResponseBody$inboundSchema; - /** @deprecated use `GetTimelineResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTimelineResponseBody$outboundSchema; - /** @deprecated use `GetTimelineResponseBody$Outbound` instead. */ - export type Outbound = GetTimelineResponseBody$Outbound; -} - /** @internal */ export const GetTimelineResponse$inboundSchema: z.ZodType< GetTimelineResponse, diff --git a/src/models/gettokenbypinidop.ts b/src/sdk/models/operations/gettokenbypinid.ts similarity index 58% rename from src/models/gettokenbypinidop.ts rename to src/sdk/models/operations/gettokenbypinid.ts index 032507a0..a6052877 100644 --- a/src/models/gettokenbypinidop.ts +++ b/src/sdk/models/operations/gettokenbypinid.ts @@ -2,10 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetTokenByPinIdOpServerList = ["https://plex.tv/api/v2"] as const; +export const GetTokenByPinIdServerList = ["https://plex.tv/api/v2"] as const; export type GetTokenByPinIdGlobals = { /** @@ -35,103 +35,6 @@ export type GetTokenByPinIdRequest = { pinID: number; }; -export type GetTokenByPinIdPlexErrors = { - code?: number | undefined; - message?: string | undefined; -}; - -/** - * Not Found or Expired - */ -export type GetTokenByPinIdPlexResponseBodyData = { - errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; -}; - -/** - * Not Found or Expired - */ -export class GetTokenByPinIdPlexResponseBody 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$: GetTokenByPinIdPlexResponseBodyData; - - constructor(err: GetTokenByPinIdPlexResponseBodyData) { - 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 = "GetTokenByPinIdPlexResponseBody"; - } -} - -export type GetTokenByPinIdErrors = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** - * Bad Request response when the X-Plex-Client-Identifier is missing - */ -export type GetTokenByPinIdResponseBodyData = { - errors?: Array | undefined; - /** - * Raw HTTP response; suitable for custom response parsing - */ - rawResponse?: Response | undefined; -}; - -/** - * Bad Request response when the X-Plex-Client-Identifier is missing - */ -export class GetTokenByPinIdResponseBody 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$: GetTokenByPinIdResponseBodyData; - - constructor(err: GetTokenByPinIdResponseBodyData) { - 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 = "GetTokenByPinIdResponseBody"; - } -} - /** * Geo location data */ @@ -327,213 +230,6 @@ export namespace GetTokenByPinIdRequest$ { export type Outbound = GetTokenByPinIdRequest$Outbound; } -/** @internal */ -export const GetTokenByPinIdPlexErrors$inboundSchema: z.ZodType< - GetTokenByPinIdPlexErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), -}); - -/** @internal */ -export type GetTokenByPinIdPlexErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; -}; - -/** @internal */ -export const GetTokenByPinIdPlexErrors$outboundSchema: z.ZodType< - GetTokenByPinIdPlexErrors$Outbound, - z.ZodTypeDef, - GetTokenByPinIdPlexErrors -> = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTokenByPinIdPlexErrors$ { - /** @deprecated use `GetTokenByPinIdPlexErrors$inboundSchema` instead. */ - export const inboundSchema = GetTokenByPinIdPlexErrors$inboundSchema; - /** @deprecated use `GetTokenByPinIdPlexErrors$outboundSchema` instead. */ - export const outboundSchema = GetTokenByPinIdPlexErrors$outboundSchema; - /** @deprecated use `GetTokenByPinIdPlexErrors$Outbound` instead. */ - export type Outbound = GetTokenByPinIdPlexErrors$Outbound; -} - -/** @internal */ -export const GetTokenByPinIdPlexResponseBody$inboundSchema: z.ZodType< - GetTokenByPinIdPlexResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetTokenByPinIdPlexErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetTokenByPinIdPlexResponseBody(remapped); - }); - -/** @internal */ -export type GetTokenByPinIdPlexResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetTokenByPinIdPlexResponseBody$outboundSchema: z.ZodType< - GetTokenByPinIdPlexResponseBody$Outbound, - z.ZodTypeDef, - GetTokenByPinIdPlexResponseBody -> = z - .instanceof(GetTokenByPinIdPlexResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetTokenByPinIdPlexErrors$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 GetTokenByPinIdPlexResponseBody$ { - /** @deprecated use `GetTokenByPinIdPlexResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTokenByPinIdPlexResponseBody$inboundSchema; - /** @deprecated use `GetTokenByPinIdPlexResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTokenByPinIdPlexResponseBody$outboundSchema; - /** @deprecated use `GetTokenByPinIdPlexResponseBody$Outbound` instead. */ - export type Outbound = GetTokenByPinIdPlexResponseBody$Outbound; -} - -/** @internal */ -export const GetTokenByPinIdErrors$inboundSchema: z.ZodType< - GetTokenByPinIdErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().int().optional(), - message: z.string().optional(), - status: z.number().int().optional(), -}); - -/** @internal */ -export type GetTokenByPinIdErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetTokenByPinIdErrors$outboundSchema: z.ZodType< - GetTokenByPinIdErrors$Outbound, - z.ZodTypeDef, - GetTokenByPinIdErrors -> = 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 GetTokenByPinIdErrors$ { - /** @deprecated use `GetTokenByPinIdErrors$inboundSchema` instead. */ - export const inboundSchema = GetTokenByPinIdErrors$inboundSchema; - /** @deprecated use `GetTokenByPinIdErrors$outboundSchema` instead. */ - export const outboundSchema = GetTokenByPinIdErrors$outboundSchema; - /** @deprecated use `GetTokenByPinIdErrors$Outbound` instead. */ - export type Outbound = GetTokenByPinIdErrors$Outbound; -} - -/** @internal */ -export const GetTokenByPinIdResponseBody$inboundSchema: z.ZodType< - GetTokenByPinIdResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetTokenByPinIdErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetTokenByPinIdResponseBody(remapped); - }); - -/** @internal */ -export type GetTokenByPinIdResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetTokenByPinIdResponseBody$outboundSchema: z.ZodType< - GetTokenByPinIdResponseBody$Outbound, - z.ZodTypeDef, - GetTokenByPinIdResponseBody -> = z - .instanceof(GetTokenByPinIdResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetTokenByPinIdErrors$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 GetTokenByPinIdResponseBody$ { - /** @deprecated use `GetTokenByPinIdResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTokenByPinIdResponseBody$inboundSchema; - /** @deprecated use `GetTokenByPinIdResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTokenByPinIdResponseBody$outboundSchema; - /** @deprecated use `GetTokenByPinIdResponseBody$Outbound` instead. */ - export type Outbound = GetTokenByPinIdResponseBody$Outbound; -} - /** @internal */ export const GetTokenByPinIdGeoData$inboundSchema: z.ZodType< GetTokenByPinIdGeoData, diff --git a/src/models/gettopwatchedcontentop.ts b/src/sdk/models/operations/gettopwatchedcontent.ts similarity index 82% rename from src/models/gettopwatchedcontentop.ts rename to src/sdk/models/operations/gettopwatchedcontent.ts index eac8acfb..8358fac4 100644 --- a/src/models/gettopwatchedcontentop.ts +++ b/src/sdk/models/operations/gettopwatchedcontent.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; /** @@ -46,55 +46,6 @@ export type GetTopWatchedContentRequest = { includeGuids?: number | undefined; }; -export type GetTopWatchedContentErrors = { - 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 GetTopWatchedContentGenre = { id?: number | undefined; filter?: string | undefined; @@ -254,111 +205,6 @@ export namespace GetTopWatchedContentRequest$ { export type Outbound = GetTopWatchedContentRequest$Outbound; } -/** @internal */ -export const GetTopWatchedContentErrors$inboundSchema: z.ZodType< - GetTopWatchedContentErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetTopWatchedContentErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetTopWatchedContentErrors$outboundSchema: z.ZodType< - GetTopWatchedContentErrors$Outbound, - z.ZodTypeDef, - GetTopWatchedContentErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTopWatchedContentErrors$ { - /** @deprecated use `GetTopWatchedContentErrors$inboundSchema` instead. */ - export const inboundSchema = GetTopWatchedContentErrors$inboundSchema; - /** @deprecated use `GetTopWatchedContentErrors$outboundSchema` instead. */ - export const outboundSchema = GetTopWatchedContentErrors$outboundSchema; - /** @deprecated use `GetTopWatchedContentErrors$Outbound` instead. */ - export type Outbound = GetTopWatchedContentErrors$Outbound; -} - -/** @internal */ -export const GetTopWatchedContentLibraryResponseBody$inboundSchema: z.ZodType< - GetTopWatchedContentLibraryResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetTopWatchedContentErrors$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(() => GetTopWatchedContentErrors$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 GetTopWatchedContentGenre$inboundSchema: z.ZodType< GetTopWatchedContentGenre, diff --git a/src/models/gettranscodesessionsop.ts b/src/sdk/models/operations/gettranscodesessions.ts similarity index 68% rename from src/models/gettranscodesessionsop.ts rename to src/sdk/models/operations/gettranscodesessions.ts index 4b2c960a..821650eb 100644 --- a/src/models/gettranscodesessionsop.ts +++ b/src/sdk/models/operations/gettranscodesessions.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetTranscodeSessionsErrors = { - 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 TranscodeSession = { key?: string | undefined; throttled?: boolean | undefined; @@ -112,111 +63,6 @@ export type GetTranscodeSessionsResponse = { object?: GetTranscodeSessionsResponseBody | undefined; }; -/** @internal */ -export const GetTranscodeSessionsErrors$inboundSchema: z.ZodType< - GetTranscodeSessionsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetTranscodeSessionsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetTranscodeSessionsErrors$outboundSchema: z.ZodType< - GetTranscodeSessionsErrors$Outbound, - z.ZodTypeDef, - GetTranscodeSessionsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTranscodeSessionsErrors$ { - /** @deprecated use `GetTranscodeSessionsErrors$inboundSchema` instead. */ - export const inboundSchema = GetTranscodeSessionsErrors$inboundSchema; - /** @deprecated use `GetTranscodeSessionsErrors$outboundSchema` instead. */ - export const outboundSchema = GetTranscodeSessionsErrors$outboundSchema; - /** @deprecated use `GetTranscodeSessionsErrors$Outbound` instead. */ - export type Outbound = GetTranscodeSessionsErrors$Outbound; -} - -/** @internal */ -export const GetTranscodeSessionsSessionsResponseBody$inboundSchema: z.ZodType< - GetTranscodeSessionsSessionsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetTranscodeSessionsErrors$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(() => GetTranscodeSessionsErrors$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 TranscodeSession$inboundSchema: z.ZodType = z.object({ diff --git a/src/models/gettransienttokenop.ts b/src/sdk/models/operations/gettransienttoken.ts similarity index 52% rename from src/models/gettransienttokenop.ts rename to src/sdk/models/operations/gettransienttoken.ts index fefcfb39..8e00b3f0 100644 --- a/src/models/gettransienttokenop.ts +++ b/src/sdk/models/operations/gettransienttoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -30,55 +30,6 @@ export type GetTransientTokenRequest = { scope: Scope; }; -export type GetTransientTokenErrors = { - 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 GetTransientTokenResponseBodyData = { - 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 GetTransientTokenResponseBody 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$: GetTransientTokenResponseBodyData; - - constructor(err: GetTransientTokenResponseBodyData) { - 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 = "GetTransientTokenResponseBody"; - } -} - export type GetTransientTokenResponse = { /** * HTTP response content type for this operation @@ -171,111 +122,6 @@ export namespace GetTransientTokenRequest$ { export type Outbound = GetTransientTokenRequest$Outbound; } -/** @internal */ -export const GetTransientTokenErrors$inboundSchema: z.ZodType< - GetTransientTokenErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetTransientTokenErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetTransientTokenErrors$outboundSchema: z.ZodType< - GetTransientTokenErrors$Outbound, - z.ZodTypeDef, - GetTransientTokenErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransientTokenErrors$ { - /** @deprecated use `GetTransientTokenErrors$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenErrors$inboundSchema; - /** @deprecated use `GetTransientTokenErrors$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenErrors$outboundSchema; - /** @deprecated use `GetTransientTokenErrors$Outbound` instead. */ - export type Outbound = GetTransientTokenErrors$Outbound; -} - -/** @internal */ -export const GetTransientTokenResponseBody$inboundSchema: z.ZodType< - GetTransientTokenResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetTransientTokenErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetTransientTokenResponseBody(remapped); - }); - -/** @internal */ -export type GetTransientTokenResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetTransientTokenResponseBody$outboundSchema: z.ZodType< - GetTransientTokenResponseBody$Outbound, - z.ZodTypeDef, - GetTransientTokenResponseBody -> = z - .instanceof(GetTransientTokenResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetTransientTokenErrors$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 GetTransientTokenResponseBody$ { - /** @deprecated use `GetTransientTokenResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetTransientTokenResponseBody$inboundSchema; - /** @deprecated use `GetTransientTokenResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetTransientTokenResponseBody$outboundSchema; - /** @deprecated use `GetTransientTokenResponseBody$Outbound` instead. */ - export type Outbound = GetTransientTokenResponseBody$Outbound; -} - /** @internal */ export const GetTransientTokenResponse$inboundSchema: z.ZodType< GetTransientTokenResponse, diff --git a/src/models/getupdatestatusop.ts b/src/sdk/models/operations/getupdatestatus.ts similarity index 62% rename from src/models/getupdatestatusop.ts rename to src/sdk/models/operations/getupdatestatus.ts index 191d3730..a6a1f1d9 100644 --- a/src/models/getupdatestatusop.ts +++ b/src/sdk/models/operations/getupdatestatus.ts @@ -2,58 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export type GetUpdateStatusErrors = { - 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 Release = { key?: string | undefined; version?: string | undefined; @@ -98,111 +49,6 @@ export type GetUpdateStatusResponse = { object?: GetUpdateStatusResponseBody | undefined; }; -/** @internal */ -export const GetUpdateStatusErrors$inboundSchema: z.ZodType< - GetUpdateStatusErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetUpdateStatusErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetUpdateStatusErrors$outboundSchema: z.ZodType< - GetUpdateStatusErrors$Outbound, - z.ZodTypeDef, - GetUpdateStatusErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUpdateStatusErrors$ { - /** @deprecated use `GetUpdateStatusErrors$inboundSchema` instead. */ - export const inboundSchema = GetUpdateStatusErrors$inboundSchema; - /** @deprecated use `GetUpdateStatusErrors$outboundSchema` instead. */ - export const outboundSchema = GetUpdateStatusErrors$outboundSchema; - /** @deprecated use `GetUpdateStatusErrors$Outbound` instead. */ - export type Outbound = GetUpdateStatusErrors$Outbound; -} - -/** @internal */ -export const GetUpdateStatusUpdaterResponseBody$inboundSchema: z.ZodType< - GetUpdateStatusUpdaterResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetUpdateStatusErrors$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(() => GetUpdateStatusErrors$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 Release$inboundSchema: z.ZodType = z.object({ key: z.string().optional(), diff --git a/src/models/getuserdetailsop.ts b/src/sdk/models/operations/getuserdetails.ts similarity index 88% rename from src/models/getuserdetailsop.ts rename to src/sdk/models/operations/getuserdetails.ts index 7a9a6bde..fa25bf6a 100644 --- a/src/models/getuserdetailsop.ts +++ b/src/sdk/models/operations/getuserdetails.ts @@ -2,10 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetUserDetailsOpServerList = ["https://plex.tv/api/v2"] as const; +export const GetUserDetailsServerList = ["https://plex.tv/api/v2"] as const; export type GetUserDetailsRequest = { /** @@ -14,55 +14,6 @@ export type GetUserDetailsRequest = { xPlexToken: string; }; -export type GetUserDetailsErrors = { - 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 GetUserDetailsResponseBodyData = { - 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 GetUserDetailsResponseBody 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$: GetUserDetailsResponseBodyData; - - constructor(err: GetUserDetailsResponseBodyData) { - 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 = "GetUserDetailsResponseBody"; - } -} - /** * Your current mailing list status */ @@ -570,111 +521,6 @@ export namespace GetUserDetailsRequest$ { export type Outbound = GetUserDetailsRequest$Outbound; } -/** @internal */ -export const GetUserDetailsErrors$inboundSchema: z.ZodType< - GetUserDetailsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetUserDetailsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetUserDetailsErrors$outboundSchema: z.ZodType< - GetUserDetailsErrors$Outbound, - z.ZodTypeDef, - GetUserDetailsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUserDetailsErrors$ { - /** @deprecated use `GetUserDetailsErrors$inboundSchema` instead. */ - export const inboundSchema = GetUserDetailsErrors$inboundSchema; - /** @deprecated use `GetUserDetailsErrors$outboundSchema` instead. */ - export const outboundSchema = GetUserDetailsErrors$outboundSchema; - /** @deprecated use `GetUserDetailsErrors$Outbound` instead. */ - export type Outbound = GetUserDetailsErrors$Outbound; -} - -/** @internal */ -export const GetUserDetailsResponseBody$inboundSchema: z.ZodType< - GetUserDetailsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetUserDetailsErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetUserDetailsResponseBody(remapped); - }); - -/** @internal */ -export type GetUserDetailsResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetUserDetailsResponseBody$outboundSchema: z.ZodType< - GetUserDetailsResponseBody$Outbound, - z.ZodTypeDef, - GetUserDetailsResponseBody -> = z - .instanceof(GetUserDetailsResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetUserDetailsErrors$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 GetUserDetailsResponseBody$ { - /** @deprecated use `GetUserDetailsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetUserDetailsResponseBody$inboundSchema; - /** @deprecated use `GetUserDetailsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetUserDetailsResponseBody$outboundSchema; - /** @deprecated use `GetUserDetailsResponseBody$Outbound` instead. */ - export type Outbound = GetUserDetailsResponseBody$Outbound; -} - /** @internal */ export const MailingListStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum(MailingListStatus); diff --git a/src/models/getuserfriendsop.ts b/src/sdk/models/operations/getuserfriends.ts similarity index 61% rename from src/models/getuserfriendsop.ts rename to src/sdk/models/operations/getuserfriends.ts index 99fc585d..80aa5b20 100644 --- a/src/models/getuserfriendsop.ts +++ b/src/sdk/models/operations/getuserfriends.ts @@ -2,59 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const GetUserFriendsOpServerList = ["https://plex.tv/api/v2"] as const; - -export type GetUserFriendsErrors = { - 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 GetUserFriendsResponseBodyData = { - 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 GetUserFriendsResponseBody 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$: GetUserFriendsResponseBodyData; - - constructor(err: GetUserFriendsResponseBodyData) { - 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 = "GetUserFriendsResponseBody"; - } -} +export const GetUserFriendsServerList = ["https://plex.tv/api/v2"] as const; export type SharedServers = {}; @@ -131,111 +82,6 @@ export type GetUserFriendsResponse = { friends?: Array | undefined; }; -/** @internal */ -export const GetUserFriendsErrors$inboundSchema: z.ZodType< - GetUserFriendsErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetUserFriendsErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetUserFriendsErrors$outboundSchema: z.ZodType< - GetUserFriendsErrors$Outbound, - z.ZodTypeDef, - GetUserFriendsErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUserFriendsErrors$ { - /** @deprecated use `GetUserFriendsErrors$inboundSchema` instead. */ - export const inboundSchema = GetUserFriendsErrors$inboundSchema; - /** @deprecated use `GetUserFriendsErrors$outboundSchema` instead. */ - export const outboundSchema = GetUserFriendsErrors$outboundSchema; - /** @deprecated use `GetUserFriendsErrors$Outbound` instead. */ - export type Outbound = GetUserFriendsErrors$Outbound; -} - -/** @internal */ -export const GetUserFriendsResponseBody$inboundSchema: z.ZodType< - GetUserFriendsResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetUserFriendsErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new GetUserFriendsResponseBody(remapped); - }); - -/** @internal */ -export type GetUserFriendsResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const GetUserFriendsResponseBody$outboundSchema: z.ZodType< - GetUserFriendsResponseBody$Outbound, - z.ZodTypeDef, - GetUserFriendsResponseBody -> = z - .instanceof(GetUserFriendsResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => GetUserFriendsErrors$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 GetUserFriendsResponseBody$ { - /** @deprecated use `GetUserFriendsResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetUserFriendsResponseBody$inboundSchema; - /** @deprecated use `GetUserFriendsResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetUserFriendsResponseBody$outboundSchema; - /** @deprecated use `GetUserFriendsResponseBody$Outbound` instead. */ - export type Outbound = GetUserFriendsResponseBody$Outbound; -} - /** @internal */ export const SharedServers$inboundSchema: z.ZodType = z.object({}); diff --git a/src/models/getwatchlistop.ts b/src/sdk/models/operations/getwatchlist.ts similarity index 80% rename from src/models/getwatchlistop.ts rename to src/sdk/models/operations/getwatchlist.ts index 8d73b511..f65ad6a8 100644 --- a/src/models/getwatchlistop.ts +++ b/src/sdk/models/operations/getwatchlist.ts @@ -2,11 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; -import { RFCDate } from "../types/rfcdate.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { RFCDate } from "../../types/rfcdate.js"; import * as z from "zod"; -export const GetWatchListOpServerList = [ +export const GetWatchListServerList = [ /** * The plex metadata provider server */ @@ -122,55 +122,6 @@ export type GetWatchListRequest = { xPlexToken: string; }; -export type GetWatchListErrors = { - 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 Image = { alt?: string | undefined; type?: string | undefined; @@ -395,111 +346,6 @@ export namespace GetWatchListRequest$ { export type Outbound = GetWatchListRequest$Outbound; } -/** @internal */ -export const GetWatchListErrors$inboundSchema: z.ZodType< - GetWatchListErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type GetWatchListErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const GetWatchListErrors$outboundSchema: z.ZodType< - GetWatchListErrors$Outbound, - z.ZodTypeDef, - GetWatchListErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWatchListErrors$ { - /** @deprecated use `GetWatchListErrors$inboundSchema` instead. */ - export const inboundSchema = GetWatchListErrors$inboundSchema; - /** @deprecated use `GetWatchListErrors$outboundSchema` instead. */ - export const outboundSchema = GetWatchListErrors$outboundSchema; - /** @deprecated use `GetWatchListErrors$Outbound` instead. */ - export type Outbound = GetWatchListErrors$Outbound; -} - -/** @internal */ -export const GetWatchListWatchlistResponseBody$inboundSchema: z.ZodType< - GetWatchListWatchlistResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => GetWatchListErrors$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(() => GetWatchListErrors$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 Image$inboundSchema: z.ZodType = z.object({ alt: z.string().optional(), diff --git a/src/sdk/models/operations/index.ts b/src/sdk/models/operations/index.ts new file mode 100644 index 00000000..f00363c8 --- /dev/null +++ b/src/sdk/models/operations/index.ts @@ -0,0 +1,78 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +export * from "./addplaylistcontents.js"; +export * from "./applyupdates.js"; +export * from "./cancelserveractivities.js"; +export * from "./checkforupdates.js"; +export * from "./clearplaylistcontents.js"; +export * from "./createplaylist.js"; +export * from "./deletelibrary.js"; +export * from "./deleteplaylist.js"; +export * from "./enablepapertrail.js"; +export * from "./getalllibraries.js"; +export * from "./getavailableclients.js"; +export * from "./getbandwidthstatistics.js"; +export * from "./getbannerimage.js"; +export * from "./getbutlertasks.js"; +export * from "./getcompanionsdata.js"; +export * from "./getdevices.js"; +export * from "./getfilehash.js"; +export * from "./getgeodata.js"; +export * from "./getglobalhubs.js"; +export * from "./gethomedata.js"; +export * from "./getlibrarydetails.js"; +export * from "./getlibraryhubs.js"; +export * from "./getlibraryitems.js"; +export * from "./getmediaproviders.js"; +export * from "./getmetadatabyratingkey.js"; +export * from "./getmetadatachildren.js"; +export * from "./getmyplexaccount.js"; +export * from "./getondeck.js"; +export * from "./getpin.js"; +export * from "./getplaylist.js"; +export * from "./getplaylistcontents.js"; +export * from "./getplaylists.js"; +export * from "./getrecentlyadded.js"; +export * from "./getrefreshlibrarymetadata.js"; +export * from "./getresizedphoto.js"; +export * from "./getresourcesstatistics.js"; +export * from "./getsearchlibrary.js"; +export * from "./getsearchresults.js"; +export * from "./getserveractivities.js"; +export * from "./getservercapabilities.js"; +export * from "./getserveridentity.js"; +export * from "./getserverlist.js"; +export * from "./getserverpreferences.js"; +export * from "./getserverresources.js"; +export * from "./getsessionhistory.js"; +export * from "./getsessions.js"; +export * from "./getsourceconnectioninformation.js"; +export * from "./getstatistics.js"; +export * from "./getthumbimage.js"; +export * from "./gettimeline.js"; +export * from "./gettokenbypinid.js"; +export * from "./gettopwatchedcontent.js"; +export * from "./gettranscodesessions.js"; +export * from "./gettransienttoken.js"; +export * from "./getupdatestatus.js"; +export * from "./getuserdetails.js"; +export * from "./getuserfriends.js"; +export * from "./getwatchlist.js"; +export * from "./logline.js"; +export * from "./logmultiline.js"; +export * from "./markplayed.js"; +export * from "./markunplayed.js"; +export * from "./performsearch.js"; +export * from "./performvoicesearch.js"; +export * from "./postuserssignindata.js"; +export * from "./startalltasks.js"; +export * from "./starttask.js"; +export * from "./startuniversaltranscode.js"; +export * from "./stopalltasks.js"; +export * from "./stoptask.js"; +export * from "./stoptranscodesession.js"; +export * from "./updateplaylist.js"; +export * from "./updateplayprogress.js"; +export * from "./uploadplaylist.js"; diff --git a/src/sdk/models/operations/logline.ts b/src/sdk/models/operations/logline.ts new file mode 100644 index 00000000..e7709af6 --- /dev/null +++ b/src/sdk/models/operations/logline.ts @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +/** + * An integer log level to write to the PMS log with. + * + * @remarks + * 0: Error + * 1: Warning + * 2: Info + * 3: Debug + * 4: Verbose + * + */ +export enum Level { + Zero = 0, + One = 1, + Two = 2, + Three = 3, + Four = 4, +} + +export type LogLineRequest = { + /** + * An integer log level to write to the PMS log with. + * + * @remarks + * 0: Error + * 1: Warning + * 2: Info + * 3: Debug + * 4: Verbose + * + */ + level: Level; + /** + * The text of the message to write to the log. + */ + message: string; + /** + * a string indicating the source of the message. + */ + source: string; +}; + +export type LogLineResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const Level$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Level); + +/** @internal */ +export const Level$outboundSchema: z.ZodNativeEnum = Level$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Level$ { + /** @deprecated use `Level$inboundSchema` instead. */ + export const inboundSchema = Level$inboundSchema; + /** @deprecated use `Level$outboundSchema` instead. */ + export const outboundSchema = Level$outboundSchema; +} + +/** @internal */ +export const LogLineRequest$inboundSchema: z.ZodType = + z.object({ + level: Level$inboundSchema, + message: z.string(), + source: z.string(), + }); + +/** @internal */ +export type LogLineRequest$Outbound = { + level: number; + message: string; + source: string; +}; + +/** @internal */ +export const LogLineRequest$outboundSchema: z.ZodType< + LogLineRequest$Outbound, + z.ZodTypeDef, + LogLineRequest +> = z.object({ + level: Level$outboundSchema, + message: z.string(), + source: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace LogLineRequest$ { + /** @deprecated use `LogLineRequest$inboundSchema` instead. */ + export const inboundSchema = LogLineRequest$inboundSchema; + /** @deprecated use `LogLineRequest$outboundSchema` instead. */ + export const outboundSchema = LogLineRequest$outboundSchema; + /** @deprecated use `LogLineRequest$Outbound` instead. */ + export type Outbound = LogLineRequest$Outbound; +} + +/** @internal */ +export const LogLineResponse$inboundSchema: z.ZodType = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type LogLineResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const LogLineResponse$outboundSchema: z.ZodType< + LogLineResponse$Outbound, + z.ZodTypeDef, + LogLineResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 LogLineResponse$ { + /** @deprecated use `LogLineResponse$inboundSchema` instead. */ + export const inboundSchema = LogLineResponse$inboundSchema; + /** @deprecated use `LogLineResponse$outboundSchema` instead. */ + export const outboundSchema = LogLineResponse$outboundSchema; + /** @deprecated use `LogLineResponse$Outbound` instead. */ + export type Outbound = LogLineResponse$Outbound; +} diff --git a/src/sdk/models/operations/logmultiline.ts b/src/sdk/models/operations/logmultiline.ts new file mode 100644 index 00000000..a98cb3a5 --- /dev/null +++ b/src/sdk/models/operations/logmultiline.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type LogMultiLineResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const LogMultiLineResponse$inboundSchema: z.ZodType< + LogMultiLineResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type LogMultiLineResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const LogMultiLineResponse$outboundSchema: z.ZodType< + LogMultiLineResponse$Outbound, + z.ZodTypeDef, + LogMultiLineResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 LogMultiLineResponse$ { + /** @deprecated use `LogMultiLineResponse$inboundSchema` instead. */ + export const inboundSchema = LogMultiLineResponse$inboundSchema; + /** @deprecated use `LogMultiLineResponse$outboundSchema` instead. */ + export const outboundSchema = LogMultiLineResponse$outboundSchema; + /** @deprecated use `LogMultiLineResponse$Outbound` instead. */ + export type Outbound = LogMultiLineResponse$Outbound; +} diff --git a/src/sdk/models/operations/markplayed.ts b/src/sdk/models/operations/markplayed.ts new file mode 100644 index 00000000..b6f151fa --- /dev/null +++ b/src/sdk/models/operations/markplayed.ts @@ -0,0 +1,121 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type MarkPlayedRequest = { + /** + * The media key to mark as played + */ + key: number; +}; + +export type MarkPlayedResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const MarkPlayedRequest$inboundSchema: z.ZodType = + z.object({ + key: z.number(), + }); + +/** @internal */ +export type MarkPlayedRequest$Outbound = { + key: number; +}; + +/** @internal */ +export const MarkPlayedRequest$outboundSchema: z.ZodType< + MarkPlayedRequest$Outbound, + z.ZodTypeDef, + MarkPlayedRequest +> = z.object({ + key: z.number(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MarkPlayedRequest$ { + /** @deprecated use `MarkPlayedRequest$inboundSchema` instead. */ + export const inboundSchema = MarkPlayedRequest$inboundSchema; + /** @deprecated use `MarkPlayedRequest$outboundSchema` instead. */ + export const outboundSchema = MarkPlayedRequest$outboundSchema; + /** @deprecated use `MarkPlayedRequest$Outbound` instead. */ + export type Outbound = MarkPlayedRequest$Outbound; +} + +/** @internal */ +export const MarkPlayedResponse$inboundSchema: z.ZodType< + MarkPlayedResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type MarkPlayedResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const MarkPlayedResponse$outboundSchema: z.ZodType< + MarkPlayedResponse$Outbound, + z.ZodTypeDef, + MarkPlayedResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 MarkPlayedResponse$ { + /** @deprecated use `MarkPlayedResponse$inboundSchema` instead. */ + export const inboundSchema = MarkPlayedResponse$inboundSchema; + /** @deprecated use `MarkPlayedResponse$outboundSchema` instead. */ + export const outboundSchema = MarkPlayedResponse$outboundSchema; + /** @deprecated use `MarkPlayedResponse$Outbound` instead. */ + export type Outbound = MarkPlayedResponse$Outbound; +} diff --git a/src/sdk/models/operations/markunplayed.ts b/src/sdk/models/operations/markunplayed.ts new file mode 100644 index 00000000..38bfc5eb --- /dev/null +++ b/src/sdk/models/operations/markunplayed.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type MarkUnplayedRequest = { + /** + * The media key to mark as Unplayed + */ + key: number; +}; + +export type MarkUnplayedResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const MarkUnplayedRequest$inboundSchema: z.ZodType< + MarkUnplayedRequest, + z.ZodTypeDef, + unknown +> = z.object({ + key: z.number(), +}); + +/** @internal */ +export type MarkUnplayedRequest$Outbound = { + key: number; +}; + +/** @internal */ +export const MarkUnplayedRequest$outboundSchema: z.ZodType< + MarkUnplayedRequest$Outbound, + z.ZodTypeDef, + MarkUnplayedRequest +> = z.object({ + key: z.number(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MarkUnplayedRequest$ { + /** @deprecated use `MarkUnplayedRequest$inboundSchema` instead. */ + export const inboundSchema = MarkUnplayedRequest$inboundSchema; + /** @deprecated use `MarkUnplayedRequest$outboundSchema` instead. */ + export const outboundSchema = MarkUnplayedRequest$outboundSchema; + /** @deprecated use `MarkUnplayedRequest$Outbound` instead. */ + export type Outbound = MarkUnplayedRequest$Outbound; +} + +/** @internal */ +export const MarkUnplayedResponse$inboundSchema: z.ZodType< + MarkUnplayedResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type MarkUnplayedResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const MarkUnplayedResponse$outboundSchema: z.ZodType< + MarkUnplayedResponse$Outbound, + z.ZodTypeDef, + MarkUnplayedResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 MarkUnplayedResponse$ { + /** @deprecated use `MarkUnplayedResponse$inboundSchema` instead. */ + export const inboundSchema = MarkUnplayedResponse$inboundSchema; + /** @deprecated use `MarkUnplayedResponse$outboundSchema` instead. */ + export const outboundSchema = MarkUnplayedResponse$outboundSchema; + /** @deprecated use `MarkUnplayedResponse$Outbound` instead. */ + export type Outbound = MarkUnplayedResponse$Outbound; +} diff --git a/src/sdk/models/operations/performsearch.ts b/src/sdk/models/operations/performsearch.ts new file mode 100644 index 00000000..831f3c19 --- /dev/null +++ b/src/sdk/models/operations/performsearch.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type PerformSearchRequest = { + /** + * The query term + */ + query: string; + /** + * This gives context to the search, and can result in re-ordering of search result hubs + */ + sectionId?: number | undefined; + /** + * The number of items to return per hub + */ + limit?: number | undefined; +}; + +export type PerformSearchResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const PerformSearchRequest$inboundSchema: z.ZodType< + PerformSearchRequest, + z.ZodTypeDef, + unknown +> = z.object({ + query: z.string(), + sectionId: z.number().optional(), + limit: z.number().default(3), +}); + +/** @internal */ +export type PerformSearchRequest$Outbound = { + query: string; + sectionId?: number | undefined; + limit: number; +}; + +/** @internal */ +export const PerformSearchRequest$outboundSchema: z.ZodType< + PerformSearchRequest$Outbound, + z.ZodTypeDef, + PerformSearchRequest +> = z.object({ + query: z.string(), + sectionId: z.number().optional(), + limit: z.number().default(3), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PerformSearchRequest$ { + /** @deprecated use `PerformSearchRequest$inboundSchema` instead. */ + export const inboundSchema = PerformSearchRequest$inboundSchema; + /** @deprecated use `PerformSearchRequest$outboundSchema` instead. */ + export const outboundSchema = PerformSearchRequest$outboundSchema; + /** @deprecated use `PerformSearchRequest$Outbound` instead. */ + export type Outbound = PerformSearchRequest$Outbound; +} + +/** @internal */ +export const PerformSearchResponse$inboundSchema: z.ZodType< + PerformSearchResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type PerformSearchResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const PerformSearchResponse$outboundSchema: z.ZodType< + PerformSearchResponse$Outbound, + z.ZodTypeDef, + PerformSearchResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 PerformSearchResponse$ { + /** @deprecated use `PerformSearchResponse$inboundSchema` instead. */ + export const inboundSchema = PerformSearchResponse$inboundSchema; + /** @deprecated use `PerformSearchResponse$outboundSchema` instead. */ + export const outboundSchema = PerformSearchResponse$outboundSchema; + /** @deprecated use `PerformSearchResponse$Outbound` instead. */ + export type Outbound = PerformSearchResponse$Outbound; +} diff --git a/src/sdk/models/operations/performvoicesearch.ts b/src/sdk/models/operations/performvoicesearch.ts new file mode 100644 index 00000000..fa190f71 --- /dev/null +++ b/src/sdk/models/operations/performvoicesearch.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type PerformVoiceSearchRequest = { + /** + * The query term + */ + query: string; + /** + * This gives context to the search, and can result in re-ordering of search result hubs + */ + sectionId?: number | undefined; + /** + * The number of items to return per hub + */ + limit?: number | undefined; +}; + +export type PerformVoiceSearchResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const PerformVoiceSearchRequest$inboundSchema: z.ZodType< + PerformVoiceSearchRequest, + z.ZodTypeDef, + unknown +> = z.object({ + query: z.string(), + sectionId: z.number().optional(), + limit: z.number().default(3), +}); + +/** @internal */ +export type PerformVoiceSearchRequest$Outbound = { + query: string; + sectionId?: number | undefined; + limit: number; +}; + +/** @internal */ +export const PerformVoiceSearchRequest$outboundSchema: z.ZodType< + PerformVoiceSearchRequest$Outbound, + z.ZodTypeDef, + PerformVoiceSearchRequest +> = z.object({ + query: z.string(), + sectionId: z.number().optional(), + limit: z.number().default(3), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PerformVoiceSearchRequest$ { + /** @deprecated use `PerformVoiceSearchRequest$inboundSchema` instead. */ + export const inboundSchema = PerformVoiceSearchRequest$inboundSchema; + /** @deprecated use `PerformVoiceSearchRequest$outboundSchema` instead. */ + export const outboundSchema = PerformVoiceSearchRequest$outboundSchema; + /** @deprecated use `PerformVoiceSearchRequest$Outbound` instead. */ + export type Outbound = PerformVoiceSearchRequest$Outbound; +} + +/** @internal */ +export const PerformVoiceSearchResponse$inboundSchema: z.ZodType< + PerformVoiceSearchResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type PerformVoiceSearchResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const PerformVoiceSearchResponse$outboundSchema: z.ZodType< + PerformVoiceSearchResponse$Outbound, + z.ZodTypeDef, + PerformVoiceSearchResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 PerformVoiceSearchResponse$ { + /** @deprecated use `PerformVoiceSearchResponse$inboundSchema` instead. */ + export const inboundSchema = PerformVoiceSearchResponse$inboundSchema; + /** @deprecated use `PerformVoiceSearchResponse$outboundSchema` instead. */ + export const outboundSchema = PerformVoiceSearchResponse$outboundSchema; + /** @deprecated use `PerformVoiceSearchResponse$Outbound` instead. */ + export type Outbound = PerformVoiceSearchResponse$Outbound; +} diff --git a/src/models/postuserssignindataop.ts b/src/sdk/models/operations/postuserssignindata.ts similarity index 91% rename from src/models/postuserssignindataop.ts rename to src/sdk/models/operations/postuserssignindata.ts index f2108e84..0f4c7ffb 100644 --- a/src/models/postuserssignindataop.ts +++ b/src/sdk/models/operations/postuserssignindata.ts @@ -2,10 +2,10 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; -export const PostUsersSignInDataOpServerList = ["https://plex.tv/api/v2"] as const; +export const PostUsersSignInDataServerList = ["https://plex.tv/api/v2"] as const; export type PostUsersSignInDataGlobals = { /** @@ -44,55 +44,6 @@ export type PostUsersSignInDataRequest = { requestBody?: PostUsersSignInDataRequestBody | undefined; }; -export type PostUsersSignInDataErrors = { - 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 PostUsersSignInDataResponseBodyData = { - 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 PostUsersSignInDataResponseBody 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$: PostUsersSignInDataResponseBodyData; - - constructor(err: PostUsersSignInDataResponseBodyData) { - 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 = "PostUsersSignInDataResponseBody"; - } -} - /** * Your current mailing list status */ @@ -728,111 +679,6 @@ export namespace PostUsersSignInDataRequest$ { export type Outbound = PostUsersSignInDataRequest$Outbound; } -/** @internal */ -export const PostUsersSignInDataErrors$inboundSchema: z.ZodType< - PostUsersSignInDataErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type PostUsersSignInDataErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const PostUsersSignInDataErrors$outboundSchema: z.ZodType< - PostUsersSignInDataErrors$Outbound, - z.ZodTypeDef, - PostUsersSignInDataErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostUsersSignInDataErrors$ { - /** @deprecated use `PostUsersSignInDataErrors$inboundSchema` instead. */ - export const inboundSchema = PostUsersSignInDataErrors$inboundSchema; - /** @deprecated use `PostUsersSignInDataErrors$outboundSchema` instead. */ - export const outboundSchema = PostUsersSignInDataErrors$outboundSchema; - /** @deprecated use `PostUsersSignInDataErrors$Outbound` instead. */ - export type Outbound = PostUsersSignInDataErrors$Outbound; -} - -/** @internal */ -export const PostUsersSignInDataResponseBody$inboundSchema: z.ZodType< - PostUsersSignInDataResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => PostUsersSignInDataErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new PostUsersSignInDataResponseBody(remapped); - }); - -/** @internal */ -export type PostUsersSignInDataResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const PostUsersSignInDataResponseBody$outboundSchema: z.ZodType< - PostUsersSignInDataResponseBody$Outbound, - z.ZodTypeDef, - PostUsersSignInDataResponseBody -> = z - .instanceof(PostUsersSignInDataResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => PostUsersSignInDataErrors$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 PostUsersSignInDataResponseBody$ { - /** @deprecated use `PostUsersSignInDataResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostUsersSignInDataResponseBody$inboundSchema; - /** @deprecated use `PostUsersSignInDataResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostUsersSignInDataResponseBody$outboundSchema; - /** @deprecated use `PostUsersSignInDataResponseBody$Outbound` instead. */ - export type Outbound = PostUsersSignInDataResponseBody$Outbound; -} - /** @internal */ export const PostUsersSignInDataMailingListStatus$inboundSchema: z.ZodNativeEnum< typeof PostUsersSignInDataMailingListStatus diff --git a/src/sdk/models/operations/startalltasks.ts b/src/sdk/models/operations/startalltasks.ts new file mode 100644 index 00000000..fb74fe0d --- /dev/null +++ b/src/sdk/models/operations/startalltasks.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type StartAllTasksResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const StartAllTasksResponse$inboundSchema: z.ZodType< + StartAllTasksResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type StartAllTasksResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const StartAllTasksResponse$outboundSchema: z.ZodType< + StartAllTasksResponse$Outbound, + z.ZodTypeDef, + StartAllTasksResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 StartAllTasksResponse$ { + /** @deprecated use `StartAllTasksResponse$inboundSchema` instead. */ + export const inboundSchema = StartAllTasksResponse$inboundSchema; + /** @deprecated use `StartAllTasksResponse$outboundSchema` instead. */ + export const outboundSchema = StartAllTasksResponse$outboundSchema; + /** @deprecated use `StartAllTasksResponse$Outbound` instead. */ + export type Outbound = StartAllTasksResponse$Outbound; +} diff --git a/src/models/starttaskop.ts b/src/sdk/models/operations/starttask.ts similarity index 50% rename from src/models/starttaskop.ts rename to src/sdk/models/operations/starttask.ts index 242d573c..8362851f 100644 --- a/src/models/starttaskop.ts +++ b/src/sdk/models/operations/starttask.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -32,55 +32,6 @@ export type StartTaskRequest = { taskName: TaskName; }; -export type StartTaskErrors = { - 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 StartTaskResponseBodyData = { - 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 StartTaskResponseBody 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$: StartTaskResponseBodyData; - - constructor(err: StartTaskResponseBodyData) { - 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 = "StartTaskResponseBody"; - } -} - export type StartTaskResponse = { /** * HTTP response content type for this operation @@ -146,108 +97,6 @@ export namespace StartTaskRequest$ { export type Outbound = StartTaskRequest$Outbound; } -/** @internal */ -export const StartTaskErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type StartTaskErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const StartTaskErrors$outboundSchema: z.ZodType< - StartTaskErrors$Outbound, - z.ZodTypeDef, - StartTaskErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTaskErrors$ { - /** @deprecated use `StartTaskErrors$inboundSchema` instead. */ - export const inboundSchema = StartTaskErrors$inboundSchema; - /** @deprecated use `StartTaskErrors$outboundSchema` instead. */ - export const outboundSchema = StartTaskErrors$outboundSchema; - /** @deprecated use `StartTaskErrors$Outbound` instead. */ - export type Outbound = StartTaskErrors$Outbound; -} - -/** @internal */ -export const StartTaskResponseBody$inboundSchema: z.ZodType< - StartTaskResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => StartTaskErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new StartTaskResponseBody(remapped); - }); - -/** @internal */ -export type StartTaskResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const StartTaskResponseBody$outboundSchema: z.ZodType< - StartTaskResponseBody$Outbound, - z.ZodTypeDef, - StartTaskResponseBody -> = z - .instanceof(StartTaskResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => StartTaskErrors$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 StartTaskResponseBody$ { - /** @deprecated use `StartTaskResponseBody$inboundSchema` instead. */ - export const inboundSchema = StartTaskResponseBody$inboundSchema; - /** @deprecated use `StartTaskResponseBody$outboundSchema` instead. */ - export const outboundSchema = StartTaskResponseBody$outboundSchema; - /** @deprecated use `StartTaskResponseBody$Outbound` instead. */ - export type Outbound = StartTaskResponseBody$Outbound; -} - /** @internal */ export const StartTaskResponse$inboundSchema: z.ZodType = z diff --git a/src/models/startuniversaltranscodeop.ts b/src/sdk/models/operations/startuniversaltranscode.ts similarity index 55% rename from src/models/startuniversaltranscodeop.ts rename to src/sdk/models/operations/startuniversaltranscode.ts index 4c50bd3b..b5d1ed72 100644 --- a/src/models/startuniversaltranscodeop.ts +++ b/src/sdk/models/operations/startuniversaltranscode.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; export type StartUniversalTranscodeRequest = { @@ -72,55 +72,6 @@ export type StartUniversalTranscodeRequest = { autoAdjustQuality?: number | undefined; }; -export type StartUniversalTranscodeErrors = { - 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 StartUniversalTranscodeResponseBodyData = { - 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 StartUniversalTranscodeResponseBody 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$: StartUniversalTranscodeResponseBodyData; - - constructor(err: StartUniversalTranscodeResponseBodyData) { - 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 = "StartUniversalTranscodeResponseBody"; - } -} - export type StartUniversalTranscodeResponse = { /** * HTTP response content type for this operation @@ -217,113 +168,6 @@ export namespace StartUniversalTranscodeRequest$ { export type Outbound = StartUniversalTranscodeRequest$Outbound; } -/** @internal */ -export const StartUniversalTranscodeErrors$inboundSchema: z.ZodType< - StartUniversalTranscodeErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type StartUniversalTranscodeErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const StartUniversalTranscodeErrors$outboundSchema: z.ZodType< - StartUniversalTranscodeErrors$Outbound, - z.ZodTypeDef, - StartUniversalTranscodeErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartUniversalTranscodeErrors$ { - /** @deprecated use `StartUniversalTranscodeErrors$inboundSchema` instead. */ - export const inboundSchema = StartUniversalTranscodeErrors$inboundSchema; - /** @deprecated use `StartUniversalTranscodeErrors$outboundSchema` instead. */ - export const outboundSchema = StartUniversalTranscodeErrors$outboundSchema; - /** @deprecated use `StartUniversalTranscodeErrors$Outbound` instead. */ - export type Outbound = StartUniversalTranscodeErrors$Outbound; -} - -/** @internal */ -export const StartUniversalTranscodeResponseBody$inboundSchema: z.ZodType< - StartUniversalTranscodeResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => StartUniversalTranscodeErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new StartUniversalTranscodeResponseBody(remapped); - }); - -/** @internal */ -export type StartUniversalTranscodeResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const StartUniversalTranscodeResponseBody$outboundSchema: z.ZodType< - StartUniversalTranscodeResponseBody$Outbound, - z.ZodTypeDef, - StartUniversalTranscodeResponseBody -> = z - .instanceof(StartUniversalTranscodeResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z - .array(z.lazy(() => StartUniversalTranscodeErrors$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 StartUniversalTranscodeResponseBody$ { - /** @deprecated use `StartUniversalTranscodeResponseBody$inboundSchema` instead. */ - export const inboundSchema = StartUniversalTranscodeResponseBody$inboundSchema; - /** @deprecated use `StartUniversalTranscodeResponseBody$outboundSchema` instead. */ - export const outboundSchema = StartUniversalTranscodeResponseBody$outboundSchema; - /** @deprecated use `StartUniversalTranscodeResponseBody$Outbound` instead. */ - export type Outbound = StartUniversalTranscodeResponseBody$Outbound; -} - /** @internal */ export const StartUniversalTranscodeResponse$inboundSchema: z.ZodType< StartUniversalTranscodeResponse, diff --git a/src/sdk/models/operations/stopalltasks.ts b/src/sdk/models/operations/stopalltasks.ts new file mode 100644 index 00000000..f97e4cad --- /dev/null +++ b/src/sdk/models/operations/stopalltasks.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type StopAllTasksResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const StopAllTasksResponse$inboundSchema: z.ZodType< + StopAllTasksResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type StopAllTasksResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const StopAllTasksResponse$outboundSchema: z.ZodType< + StopAllTasksResponse$Outbound, + z.ZodTypeDef, + StopAllTasksResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 StopAllTasksResponse$ { + /** @deprecated use `StopAllTasksResponse$inboundSchema` instead. */ + export const inboundSchema = StopAllTasksResponse$inboundSchema; + /** @deprecated use `StopAllTasksResponse$outboundSchema` instead. */ + export const outboundSchema = StopAllTasksResponse$outboundSchema; + /** @deprecated use `StopAllTasksResponse$Outbound` instead. */ + export type Outbound = StopAllTasksResponse$Outbound; +} diff --git a/src/models/stoptaskop.ts b/src/sdk/models/operations/stoptask.ts similarity index 50% rename from src/models/stoptaskop.ts rename to src/sdk/models/operations/stoptask.ts index 93910628..b883bb1d 100644 --- a/src/models/stoptaskop.ts +++ b/src/sdk/models/operations/stoptask.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -32,55 +32,6 @@ export type StopTaskRequest = { taskName: PathParamTaskName; }; -export type StopTaskErrors = { - 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 StopTaskResponseBodyData = { - 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 StopTaskResponseBody 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$: StopTaskResponseBodyData; - - constructor(err: StopTaskResponseBodyData) { - 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 = "StopTaskResponseBody"; - } -} - export type StopTaskResponse = { /** * HTTP response content type for this operation @@ -148,108 +99,6 @@ export namespace StopTaskRequest$ { export type Outbound = StopTaskRequest$Outbound; } -/** @internal */ -export const StopTaskErrors$inboundSchema: z.ZodType = - z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), - }); - -/** @internal */ -export type StopTaskErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const StopTaskErrors$outboundSchema: z.ZodType< - StopTaskErrors$Outbound, - z.ZodTypeDef, - StopTaskErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTaskErrors$ { - /** @deprecated use `StopTaskErrors$inboundSchema` instead. */ - export const inboundSchema = StopTaskErrors$inboundSchema; - /** @deprecated use `StopTaskErrors$outboundSchema` instead. */ - export const outboundSchema = StopTaskErrors$outboundSchema; - /** @deprecated use `StopTaskErrors$Outbound` instead. */ - export type Outbound = StopTaskErrors$Outbound; -} - -/** @internal */ -export const StopTaskResponseBody$inboundSchema: z.ZodType< - StopTaskResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => StopTaskErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new StopTaskResponseBody(remapped); - }); - -/** @internal */ -export type StopTaskResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const StopTaskResponseBody$outboundSchema: z.ZodType< - StopTaskResponseBody$Outbound, - z.ZodTypeDef, - StopTaskResponseBody -> = z - .instanceof(StopTaskResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => StopTaskErrors$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 StopTaskResponseBody$ { - /** @deprecated use `StopTaskResponseBody$inboundSchema` instead. */ - export const inboundSchema = StopTaskResponseBody$inboundSchema; - /** @deprecated use `StopTaskResponseBody$outboundSchema` instead. */ - export const outboundSchema = StopTaskResponseBody$outboundSchema; - /** @deprecated use `StopTaskResponseBody$Outbound` instead. */ - export type Outbound = StopTaskResponseBody$Outbound; -} - /** @internal */ export const StopTaskResponse$inboundSchema: z.ZodType = z .object({ diff --git a/src/sdk/models/operations/stoptranscodesession.ts b/src/sdk/models/operations/stoptranscodesession.ts new file mode 100644 index 00000000..6794f61e --- /dev/null +++ b/src/sdk/models/operations/stoptranscodesession.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type StopTranscodeSessionRequest = { + /** + * the Key of the transcode session to stop + */ + sessionKey: string; +}; + +export type StopTranscodeSessionResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const StopTranscodeSessionRequest$inboundSchema: z.ZodType< + StopTranscodeSessionRequest, + z.ZodTypeDef, + unknown +> = z.object({ + sessionKey: z.string(), +}); + +/** @internal */ +export type StopTranscodeSessionRequest$Outbound = { + sessionKey: string; +}; + +/** @internal */ +export const StopTranscodeSessionRequest$outboundSchema: z.ZodType< + StopTranscodeSessionRequest$Outbound, + z.ZodTypeDef, + StopTranscodeSessionRequest +> = z.object({ + sessionKey: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace StopTranscodeSessionRequest$ { + /** @deprecated use `StopTranscodeSessionRequest$inboundSchema` instead. */ + export const inboundSchema = StopTranscodeSessionRequest$inboundSchema; + /** @deprecated use `StopTranscodeSessionRequest$outboundSchema` instead. */ + export const outboundSchema = StopTranscodeSessionRequest$outboundSchema; + /** @deprecated use `StopTranscodeSessionRequest$Outbound` instead. */ + export type Outbound = StopTranscodeSessionRequest$Outbound; +} + +/** @internal */ +export const StopTranscodeSessionResponse$inboundSchema: z.ZodType< + StopTranscodeSessionResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type StopTranscodeSessionResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const StopTranscodeSessionResponse$outboundSchema: z.ZodType< + StopTranscodeSessionResponse$Outbound, + z.ZodTypeDef, + StopTranscodeSessionResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 StopTranscodeSessionResponse$ { + /** @deprecated use `StopTranscodeSessionResponse$inboundSchema` instead. */ + export const inboundSchema = StopTranscodeSessionResponse$inboundSchema; + /** @deprecated use `StopTranscodeSessionResponse$outboundSchema` instead. */ + export const outboundSchema = StopTranscodeSessionResponse$outboundSchema; + /** @deprecated use `StopTranscodeSessionResponse$Outbound` instead. */ + export type Outbound = StopTranscodeSessionResponse$Outbound; +} diff --git a/src/sdk/models/operations/updateplaylist.ts b/src/sdk/models/operations/updateplaylist.ts new file mode 100644 index 00000000..62d9be61 --- /dev/null +++ b/src/sdk/models/operations/updateplaylist.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type UpdatePlaylistRequest = { + /** + * the ID of the playlist + */ + playlistID: number; + /** + * name of the playlist + */ + title?: string | undefined; + /** + * summary description of the playlist + */ + summary?: string | undefined; +}; + +export type UpdatePlaylistResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const UpdatePlaylistRequest$inboundSchema: z.ZodType< + UpdatePlaylistRequest, + z.ZodTypeDef, + unknown +> = z.object({ + playlistID: z.number(), + title: z.string().optional(), + summary: z.string().optional(), +}); + +/** @internal */ +export type UpdatePlaylistRequest$Outbound = { + playlistID: number; + title?: string | undefined; + summary?: string | undefined; +}; + +/** @internal */ +export const UpdatePlaylistRequest$outboundSchema: z.ZodType< + UpdatePlaylistRequest$Outbound, + z.ZodTypeDef, + UpdatePlaylistRequest +> = z.object({ + playlistID: z.number(), + title: z.string().optional(), + summary: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePlaylistRequest$ { + /** @deprecated use `UpdatePlaylistRequest$inboundSchema` instead. */ + export const inboundSchema = UpdatePlaylistRequest$inboundSchema; + /** @deprecated use `UpdatePlaylistRequest$outboundSchema` instead. */ + export const outboundSchema = UpdatePlaylistRequest$outboundSchema; + /** @deprecated use `UpdatePlaylistRequest$Outbound` instead. */ + export type Outbound = UpdatePlaylistRequest$Outbound; +} + +/** @internal */ +export const UpdatePlaylistResponse$inboundSchema: z.ZodType< + UpdatePlaylistResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type UpdatePlaylistResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const UpdatePlaylistResponse$outboundSchema: z.ZodType< + UpdatePlaylistResponse$Outbound, + z.ZodTypeDef, + UpdatePlaylistResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 UpdatePlaylistResponse$ { + /** @deprecated use `UpdatePlaylistResponse$inboundSchema` instead. */ + export const inboundSchema = UpdatePlaylistResponse$inboundSchema; + /** @deprecated use `UpdatePlaylistResponse$outboundSchema` instead. */ + export const outboundSchema = UpdatePlaylistResponse$outboundSchema; + /** @deprecated use `UpdatePlaylistResponse$Outbound` instead. */ + export type Outbound = UpdatePlaylistResponse$Outbound; +} diff --git a/src/sdk/models/operations/updateplayprogress.ts b/src/sdk/models/operations/updateplayprogress.ts new file mode 100644 index 00000000..abe1763a --- /dev/null +++ b/src/sdk/models/operations/updateplayprogress.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { remap as remap$ } from "../../../lib/primitives.js"; +import * as z from "zod"; + +export type UpdatePlayProgressRequest = { + /** + * the media key + */ + key: string; + /** + * The time, in milliseconds, used to set the media playback progress. + */ + time: number; + /** + * The playback state of the media item. + */ + state: string; +}; + +export type UpdatePlayProgressResponse = { + /** + * HTTP response content type for this operation + */ + contentType: string; + /** + * HTTP response status code for this operation + */ + statusCode: number; + /** + * Raw HTTP response; suitable for custom response parsing + */ + rawResponse: Response; +}; + +/** @internal */ +export const UpdatePlayProgressRequest$inboundSchema: z.ZodType< + UpdatePlayProgressRequest, + z.ZodTypeDef, + unknown +> = z.object({ + key: z.string(), + time: z.number(), + state: z.string(), +}); + +/** @internal */ +export type UpdatePlayProgressRequest$Outbound = { + key: string; + time: number; + state: string; +}; + +/** @internal */ +export const UpdatePlayProgressRequest$outboundSchema: z.ZodType< + UpdatePlayProgressRequest$Outbound, + z.ZodTypeDef, + UpdatePlayProgressRequest +> = z.object({ + key: z.string(), + time: z.number(), + state: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePlayProgressRequest$ { + /** @deprecated use `UpdatePlayProgressRequest$inboundSchema` instead. */ + export const inboundSchema = UpdatePlayProgressRequest$inboundSchema; + /** @deprecated use `UpdatePlayProgressRequest$outboundSchema` instead. */ + export const outboundSchema = UpdatePlayProgressRequest$outboundSchema; + /** @deprecated use `UpdatePlayProgressRequest$Outbound` instead. */ + export type Outbound = UpdatePlayProgressRequest$Outbound; +} + +/** @internal */ +export const UpdatePlayProgressResponse$inboundSchema: z.ZodType< + UpdatePlayProgressResponse, + z.ZodTypeDef, + unknown +> = z + .object({ + ContentType: z.string(), + StatusCode: z.number().int(), + RawResponse: z.instanceof(Response), + }) + .transform((v) => { + return remap$(v, { + ContentType: "contentType", + StatusCode: "statusCode", + RawResponse: "rawResponse", + }); + }); + +/** @internal */ +export type UpdatePlayProgressResponse$Outbound = { + ContentType: string; + StatusCode: number; + RawResponse: never; +}; + +/** @internal */ +export const UpdatePlayProgressResponse$outboundSchema: z.ZodType< + UpdatePlayProgressResponse$Outbound, + z.ZodTypeDef, + UpdatePlayProgressResponse +> = z + .object({ + contentType: z.string(), + statusCode: z.number().int(), + rawResponse: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + }) + .transform((v) => { + return remap$(v, { + contentType: "ContentType", + statusCode: "StatusCode", + 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 UpdatePlayProgressResponse$ { + /** @deprecated use `UpdatePlayProgressResponse$inboundSchema` instead. */ + export const inboundSchema = UpdatePlayProgressResponse$inboundSchema; + /** @deprecated use `UpdatePlayProgressResponse$outboundSchema` instead. */ + export const outboundSchema = UpdatePlayProgressResponse$outboundSchema; + /** @deprecated use `UpdatePlayProgressResponse$Outbound` instead. */ + export type Outbound = UpdatePlayProgressResponse$Outbound; +} diff --git a/src/models/uploadplaylistop.ts b/src/sdk/models/operations/uploadplaylist.ts similarity index 54% rename from src/models/uploadplaylistop.ts rename to src/sdk/models/operations/uploadplaylist.ts index aa59a458..9561305c 100644 --- a/src/models/uploadplaylistop.ts +++ b/src/sdk/models/operations/uploadplaylist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { remap as remap$ } from "../lib/primitives.js"; +import { remap as remap$ } from "../../../lib/primitives.js"; import * as z from "zod"; /** @@ -44,55 +44,6 @@ export type UploadPlaylistRequest = { force: QueryParamForce; }; -export type UploadPlaylistErrors = { - 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 UploadPlaylistResponseBodyData = { - 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 UploadPlaylistResponseBody 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$: UploadPlaylistResponseBodyData; - - constructor(err: UploadPlaylistResponseBodyData) { - 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 = "UploadPlaylistResponseBody"; - } -} - export type UploadPlaylistResponse = { /** * HTTP response content type for this operation @@ -166,111 +117,6 @@ export namespace UploadPlaylistRequest$ { export type Outbound = UploadPlaylistRequest$Outbound; } -/** @internal */ -export const UploadPlaylistErrors$inboundSchema: z.ZodType< - UploadPlaylistErrors, - z.ZodTypeDef, - unknown -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** @internal */ -export type UploadPlaylistErrors$Outbound = { - code?: number | undefined; - message?: string | undefined; - status?: number | undefined; -}; - -/** @internal */ -export const UploadPlaylistErrors$outboundSchema: z.ZodType< - UploadPlaylistErrors$Outbound, - z.ZodTypeDef, - UploadPlaylistErrors -> = z.object({ - code: z.number().optional(), - message: z.string().optional(), - status: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadPlaylistErrors$ { - /** @deprecated use `UploadPlaylistErrors$inboundSchema` instead. */ - export const inboundSchema = UploadPlaylistErrors$inboundSchema; - /** @deprecated use `UploadPlaylistErrors$outboundSchema` instead. */ - export const outboundSchema = UploadPlaylistErrors$outboundSchema; - /** @deprecated use `UploadPlaylistErrors$Outbound` instead. */ - export type Outbound = UploadPlaylistErrors$Outbound; -} - -/** @internal */ -export const UploadPlaylistResponseBody$inboundSchema: z.ZodType< - UploadPlaylistResponseBody, - z.ZodTypeDef, - unknown -> = z - .object({ - errors: z.array(z.lazy(() => UploadPlaylistErrors$inboundSchema)).optional(), - RawResponse: z.instanceof(Response).optional(), - }) - .transform((v) => { - const remapped = remap$(v, { - RawResponse: "rawResponse", - }); - - return new UploadPlaylistResponseBody(remapped); - }); - -/** @internal */ -export type UploadPlaylistResponseBody$Outbound = { - errors?: Array | undefined; - RawResponse?: never | undefined; -}; - -/** @internal */ -export const UploadPlaylistResponseBody$outboundSchema: z.ZodType< - UploadPlaylistResponseBody$Outbound, - z.ZodTypeDef, - UploadPlaylistResponseBody -> = z - .instanceof(UploadPlaylistResponseBody) - .transform((v) => v.data$) - .pipe( - z - .object({ - errors: z.array(z.lazy(() => UploadPlaylistErrors$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 UploadPlaylistResponseBody$ { - /** @deprecated use `UploadPlaylistResponseBody$inboundSchema` instead. */ - export const inboundSchema = UploadPlaylistResponseBody$inboundSchema; - /** @deprecated use `UploadPlaylistResponseBody$outboundSchema` instead. */ - export const outboundSchema = UploadPlaylistResponseBody$outboundSchema; - /** @deprecated use `UploadPlaylistResponseBody$Outbound` instead. */ - export type Outbound = UploadPlaylistResponseBody$Outbound; -} - /** @internal */ export const UploadPlaylistResponse$inboundSchema: z.ZodType< UploadPlaylistResponse, diff --git a/src/sdk/models/shared/index.ts b/src/sdk/models/shared/index.ts new file mode 100644 index 00000000..2edb51c4 --- /dev/null +++ b/src/sdk/models/shared/index.ts @@ -0,0 +1,5 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +export * from "./security.js"; diff --git a/src/models/security.ts b/src/sdk/models/shared/security.ts similarity index 100% rename from src/models/security.ts rename to src/sdk/models/shared/security.ts diff --git a/src/sdk/playlists.ts b/src/sdk/playlists.ts index 63faf347..3352a387 100644 --- a/src/sdk/playlists.ts +++ b/src/sdk/playlists.ts @@ -12,8 +12,8 @@ import { playlistsGetPlaylists } from "../funcs/playlistsGetPlaylists.js"; import { playlistsUpdatePlaylist } from "../funcs/playlistsUpdatePlaylist.js"; import { playlistsUploadPlaylist } from "../funcs/playlistsUploadPlaylist.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Playlists extends ClientSDK { /** @@ -26,9 +26,9 @@ export class Playlists extends ClientSDK { * */ async createPlaylist( - request: models.CreatePlaylistRequest, + request: operations.CreatePlaylistRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsCreatePlaylist(this, request, options)); } @@ -39,10 +39,10 @@ export class Playlists extends ClientSDK { * Get All Playlists given the specified filters. */ async getPlaylists( - playlistType?: models.PlaylistType | undefined, - smart?: models.QueryParamSmart | undefined, + playlistType?: operations.PlaylistType | undefined, + smart?: operations.QueryParamSmart | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsGetPlaylists(this, playlistType, smart, options)); } @@ -57,7 +57,7 @@ export class Playlists extends ClientSDK { async getPlaylist( playlistID: number, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsGetPlaylist(this, playlistID, options)); } @@ -71,7 +71,7 @@ export class Playlists extends ClientSDK { async deletePlaylist( playlistID: number, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsDeletePlaylist(this, playlistID, options)); } @@ -87,7 +87,7 @@ export class Playlists extends ClientSDK { title?: string | undefined, summary?: string | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsUpdatePlaylist(this, playlistID, title, summary, options)); } @@ -103,9 +103,9 @@ export class Playlists extends ClientSDK { */ async getPlaylistContents( playlistID: number, - type: models.GetPlaylistContentsQueryParamType, + type: operations.GetPlaylistContentsQueryParamType, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsGetPlaylistContents(this, playlistID, type, options)); } @@ -119,7 +119,7 @@ export class Playlists extends ClientSDK { async clearPlaylistContents( playlistID: number, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsClearPlaylistContents(this, playlistID, options)); } @@ -136,7 +136,7 @@ export class Playlists extends ClientSDK { uri: string, playQueueID?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync( playlistsAddPlaylistContents(this, playlistID, uri, playQueueID, options) ); @@ -151,9 +151,9 @@ export class Playlists extends ClientSDK { */ async uploadPlaylist( path: string, - force: models.QueryParamForce, + force: operations.QueryParamForce, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(playlistsUploadPlaylist(this, path, force, options)); } } diff --git a/src/sdk/plex.ts b/src/sdk/plex.ts index 2f2addf5..6e848acd 100644 --- a/src/sdk/plex.ts +++ b/src/sdk/plex.ts @@ -10,8 +10,8 @@ import { plexGetServerResources } from "../funcs/plexGetServerResources.js"; import { plexGetTokenByPinId } from "../funcs/plexGetTokenByPinId.js"; import { plexGetUserFriends } from "../funcs/plexGetUserFriends.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Plex extends ClientSDK { /** @@ -22,7 +22,7 @@ export class Plex extends ClientSDK { */ async getCompanionsData( options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(plexGetCompanionsData(this, options)); } @@ -34,7 +34,7 @@ export class Plex extends ClientSDK { */ async getUserFriends( options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(plexGetUserFriends(this, options)); } @@ -46,7 +46,7 @@ export class Plex extends ClientSDK { */ async getGeoData( options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(plexGetGeoData(this, options)); } @@ -56,7 +56,7 @@ export class Plex extends ClientSDK { * @remarks * Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status. */ - async getHomeData(options?: RequestOptions): Promise { + async getHomeData(options?: RequestOptions): Promise { return unwrapAsync(plexGetHomeData(this, options)); } @@ -67,9 +67,9 @@ export class Plex extends ClientSDK { * Get Plex server access tokens and server connections */ async getServerResources( - request: models.GetServerResourcesRequest, + request: operations.GetServerResourcesRequest, options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(plexGetServerResources(this, request, options)); } @@ -84,7 +84,7 @@ export class Plex extends ClientSDK { xPlexClientIdentifier?: string | undefined, xPlexProduct?: string | undefined, options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(plexGetPin(this, strong, xPlexClientIdentifier, xPlexProduct, options)); } @@ -98,7 +98,7 @@ export class Plex extends ClientSDK { pinID: number, xPlexClientIdentifier?: string | undefined, options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(plexGetTokenByPinId(this, pinID, xPlexClientIdentifier, options)); } } diff --git a/src/sdk/search.ts b/src/sdk/search.ts index 85b245d5..664af601 100644 --- a/src/sdk/search.ts +++ b/src/sdk/search.ts @@ -6,8 +6,8 @@ import { searchGetSearchResults } from "../funcs/searchGetSearchResults.js"; import { searchPerformSearch } from "../funcs/searchPerformSearch.js"; import { searchPerformVoiceSearch } from "../funcs/searchPerformVoiceSearch.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Search extends ClientSDK { /** @@ -33,7 +33,7 @@ export class Search extends ClientSDK { sectionId?: number | undefined, limit?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(searchPerformSearch(this, query, sectionId, limit, options)); } @@ -52,7 +52,7 @@ export class Search extends ClientSDK { sectionId?: number | undefined, limit?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(searchPerformVoiceSearch(this, query, sectionId, limit, options)); } @@ -65,7 +65,7 @@ export class Search extends ClientSDK { async getSearchResults( query: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(searchGetSearchResults(this, query, options)); } } diff --git a/src/sdk/server.ts b/src/sdk/server.ts index 92b72718..239c3cc7 100644 --- a/src/sdk/server.ts +++ b/src/sdk/server.ts @@ -12,8 +12,8 @@ import { serverGetServerIdentity } from "../funcs/serverGetServerIdentity.js"; import { serverGetServerList } from "../funcs/serverGetServerList.js"; import { serverGetServerPreferences } from "../funcs/serverGetServerPreferences.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Server extends ClientSDK { /** @@ -24,7 +24,7 @@ export class Server extends ClientSDK { */ async getServerCapabilities( options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(serverGetServerCapabilities(this, options)); } @@ -36,7 +36,7 @@ export class Server extends ClientSDK { */ async getServerPreferences( options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(serverGetServerPreferences(this, options)); } @@ -48,7 +48,7 @@ export class Server extends ClientSDK { */ async getAvailableClients( options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(serverGetAvailableClients(this, options)); } @@ -58,7 +58,7 @@ export class Server extends ClientSDK { * @remarks * Get Devices */ - async getDevices(options?: RequestOptions): Promise { + async getDevices(options?: RequestOptions): Promise { return unwrapAsync(serverGetDevices(this, options)); } @@ -68,7 +68,9 @@ export class Server extends ClientSDK { * @remarks * This request is useful to determine if the server is online or offline */ - async getServerIdentity(options?: RequestOptions): Promise { + async getServerIdentity( + options?: RequestOptions + ): Promise { return unwrapAsync(serverGetServerIdentity(this, options)); } @@ -78,7 +80,7 @@ export class Server extends ClientSDK { * @remarks * Returns MyPlex Account Information */ - async getMyPlexAccount(options?: RequestOptions): Promise { + async getMyPlexAccount(options?: RequestOptions): Promise { return unwrapAsync(serverGetMyPlexAccount(this, options)); } @@ -90,9 +92,9 @@ export class Server extends ClientSDK { * */ async getResizedPhoto( - request: models.GetResizedPhotoRequest, + request: operations.GetResizedPhotoRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(serverGetResizedPhoto(this, request, options)); } @@ -105,7 +107,7 @@ export class Server extends ClientSDK { async getMediaProviders( xPlexToken: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(serverGetMediaProviders(this, xPlexToken, options)); } @@ -115,7 +117,7 @@ export class Server extends ClientSDK { * @remarks * Get Server List */ - async getServerList(options?: RequestOptions): Promise { + async getServerList(options?: RequestOptions): Promise { return unwrapAsync(serverGetServerList(this, options)); } } diff --git a/src/sdk/sessions.ts b/src/sdk/sessions.ts index b9ee68cd..ad4e31fd 100644 --- a/src/sdk/sessions.ts +++ b/src/sdk/sessions.ts @@ -7,8 +7,8 @@ import { sessionsGetSessions } from "../funcs/sessionsGetSessions.js"; import { sessionsGetTranscodeSessions } from "../funcs/sessionsGetTranscodeSessions.js"; import { sessionsStopTranscodeSession } from "../funcs/sessionsStopTranscodeSession.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Sessions extends ClientSDK { /** @@ -17,7 +17,7 @@ export class Sessions extends ClientSDK { * @remarks * This will retrieve the "Now Playing" Information of the PMS. */ - async getSessions(options?: RequestOptions): Promise { + async getSessions(options?: RequestOptions): Promise { return unwrapAsync(sessionsGetSessions(this, options)); } @@ -30,10 +30,10 @@ export class Sessions extends ClientSDK { async getSessionHistory( sort?: string | undefined, accountId?: number | undefined, - filter?: models.QueryParamFilter | undefined, + filter?: operations.QueryParamFilter | undefined, librarySectionID?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync( sessionsGetSessionHistory(this, sort, accountId, filter, librarySectionID, options) ); @@ -47,7 +47,7 @@ export class Sessions extends ClientSDK { */ async getTranscodeSessions( options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(sessionsGetTranscodeSessions(this, options)); } @@ -60,7 +60,7 @@ export class Sessions extends ClientSDK { async stopTranscodeSession( sessionKey: string, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(sessionsStopTranscodeSession(this, sessionKey, options)); } } diff --git a/src/sdk/statistics.ts b/src/sdk/statistics.ts index 2967a2b0..9b1c17c0 100644 --- a/src/sdk/statistics.ts +++ b/src/sdk/statistics.ts @@ -6,8 +6,8 @@ import { statisticsGetBandwidthStatistics } from "../funcs/statisticsGetBandwidt import { statisticsGetResourcesStatistics } from "../funcs/statisticsGetResourcesStatistics.js"; import { statisticsGetStatistics } from "../funcs/statisticsGetStatistics.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Statistics extends ClientSDK { /** @@ -19,7 +19,7 @@ export class Statistics extends ClientSDK { async getStatistics( timespan?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(statisticsGetStatistics(this, timespan, options)); } @@ -32,7 +32,7 @@ export class Statistics extends ClientSDK { async getResourcesStatistics( timespan?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(statisticsGetResourcesStatistics(this, timespan, options)); } @@ -45,7 +45,7 @@ export class Statistics extends ClientSDK { async getBandwidthStatistics( timespan?: number | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(statisticsGetBandwidthStatistics(this, timespan, options)); } } diff --git a/src/types/blobs.ts b/src/sdk/types/blobs.ts similarity index 100% rename from src/types/blobs.ts rename to src/sdk/types/blobs.ts diff --git a/src/types/constdatetime.ts b/src/sdk/types/constdatetime.ts similarity index 100% rename from src/types/constdatetime.ts rename to src/sdk/types/constdatetime.ts diff --git a/src/types/enums.ts b/src/sdk/types/enums.ts similarity index 100% rename from src/types/enums.ts rename to src/sdk/types/enums.ts diff --git a/src/types/fp.ts b/src/sdk/types/fp.ts similarity index 100% rename from src/types/fp.ts rename to src/sdk/types/fp.ts diff --git a/src/types/index.ts b/src/sdk/types/index.ts similarity index 100% rename from src/types/index.ts rename to src/sdk/types/index.ts diff --git a/src/types/operations.ts b/src/sdk/types/operations.ts similarity index 100% rename from src/types/operations.ts rename to src/sdk/types/operations.ts diff --git a/src/types/rfcdate.ts b/src/sdk/types/rfcdate.ts similarity index 100% rename from src/types/rfcdate.ts rename to src/sdk/types/rfcdate.ts diff --git a/src/types/streams.ts b/src/sdk/types/streams.ts similarity index 100% rename from src/types/streams.ts rename to src/sdk/types/streams.ts diff --git a/src/sdk/updater.ts b/src/sdk/updater.ts index 01a443d5..200ca92b 100644 --- a/src/sdk/updater.ts +++ b/src/sdk/updater.ts @@ -6,8 +6,8 @@ import { updaterApplyUpdates } from "../funcs/updaterApplyUpdates.js"; import { updaterCheckForUpdates } from "../funcs/updaterCheckForUpdates.js"; import { updaterGetUpdateStatus } from "../funcs/updaterGetUpdateStatus.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Updater extends ClientSDK { /** @@ -16,7 +16,7 @@ export class Updater extends ClientSDK { * @remarks * Querying status of updates */ - async getUpdateStatus(options?: RequestOptions): Promise { + async getUpdateStatus(options?: RequestOptions): Promise { return unwrapAsync(updaterGetUpdateStatus(this, options)); } @@ -27,9 +27,9 @@ export class Updater extends ClientSDK { * Checking for updates */ async checkForUpdates( - download?: models.Download | undefined, + download?: operations.Download | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(updaterCheckForUpdates(this, download, options)); } @@ -41,10 +41,10 @@ export class Updater extends ClientSDK { * */ async applyUpdates( - tonight?: models.Tonight | undefined, - skip?: models.Skip | undefined, + tonight?: operations.Tonight | undefined, + skip?: operations.Skip | undefined, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(updaterApplyUpdates(this, tonight, skip, options)); } } diff --git a/src/sdk/video.ts b/src/sdk/video.ts index d21b0a69..2ec694b0 100644 --- a/src/sdk/video.ts +++ b/src/sdk/video.ts @@ -5,8 +5,8 @@ import { videoGetTimeline } from "../funcs/videoGetTimeline.js"; import { videoStartUniversalTranscode } from "../funcs/videoStartUniversalTranscode.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Video extends ClientSDK { /** @@ -16,9 +16,9 @@ export class Video extends ClientSDK { * Get the timeline for a media item */ async getTimeline( - request: models.GetTimelineRequest, + request: operations.GetTimelineRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(videoGetTimeline(this, request, options)); } @@ -29,9 +29,9 @@ export class Video extends ClientSDK { * Begin a Universal Transcode Session */ async startUniversalTranscode( - request: models.StartUniversalTranscodeRequest, + request: operations.StartUniversalTranscodeRequest, options?: RequestOptions - ): Promise { + ): Promise { return unwrapAsync(videoStartUniversalTranscode(this, request, options)); } } diff --git a/src/sdk/watchlist.ts b/src/sdk/watchlist.ts index bd3551bb..f3e25af3 100644 --- a/src/sdk/watchlist.ts +++ b/src/sdk/watchlist.ts @@ -4,8 +4,8 @@ import { watchlistGetWatchList } from "../funcs/watchlistGetWatchList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as models from "../models/index.js"; -import { unwrapAsync } from "../types/fp.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; export class Watchlist extends ClientSDK { /** @@ -15,9 +15,9 @@ export class Watchlist extends ClientSDK { * Get User Watchlist */ async getWatchList( - request: models.GetWatchListRequest, + request: operations.GetWatchListRequest, options?: RequestOptions & { serverURL?: string } - ): Promise { + ): Promise { return unwrapAsync(watchlistGetWatchList(this, request, options)); } }